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
if (Configuration.DEBUG)
private void importChain(Collection chain) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importChain", chain); //$NON-NLS-1$ LinkedList reply = orderChain(chain); if (findTrustAndUpdate(reply, ! noPrompt)) { Certificate[] newChain = (Certificate[]) reply.toArray(new Certificate[0]); Key privateKey = getAliasPrivateKey(); store.setKeyEntry(alias, privateKey, keyPasswordChars, newChain); saveKeyStore(); } log.exiting(this.getClass().getName(), "importChain"); //$NON-NLS-1$ }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e10879cd4d1df8b463898498b99e01d9ae63f24/ImportCmd.java/clean/core/src/classpath/tools/gnu/classpath/tools/keytool/ImportCmd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 3238, 430, 261, 1750, 18, 9394, 13, 918, 430, 261, 1750, 18, 9394, 13, 1930, 3893, 12, 2532, 430, 261, 1750, 18, 9394, 13, 2687, 13, 430, 261, 1750, 18, 9394, 13, 1216, 430, 261, 1750, 18, 9394, 13, 17684, 16, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 11921, 743, 5126, 503, 16, 430, 261, 1750, 18, 9394, 13, 17017, 503, 16, 430, 261, 1750, 18, 9394, 13, 1351, 25864, 21914, 16, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 1860, 16, 430, 261, 1750, 18, 9394, 13, 7221, 2428, 503, 16, 430, 261, 1750, 18, 9394, 13, 29551, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 288, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 430, 261, 1750, 18, 9394, 13, 315, 5666, 3893, 3113, 430, 261, 1750, 18, 9394, 13, 2687, 1769, 430, 261, 1750, 18, 9394, 13, 4329, 3993, 17, 5106, 17, 21, 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, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 3238, 430, 261, 1750, 18, 9394, 13, 918, 430, 261, 1750, 18, 9394, 13, 1930, 3893, 12, 2532, 430, 261, 1750, 18, 9394, 13, 2687, 13, 430, 261, 1750, 18, 9394, 13, 1216, 430, 261, 1750, 18, 9394, 13, 17684, 16, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 11921, 743, 5126, 503, 16, 430, 261, 1750, 18, 9394, 13, 17017, 503, 16, 430, 261, 1750, 18, 9394, 13, 1351, 25864, 21914, 16, 430, 261, 1750, 18, 9394, 13, 2 ]
return new Eval_c(pos, expr);
Eval n = new Eval_c(pos, expr); if (extFactory != null) { n = (Eval)n.ext(extFactory.extEval()); } return n;
public Eval Eval(Position pos, Expr expr) { return new Eval_c(pos, expr); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/ec21da7849b4da32afcac1f9aedcf128f3700740/NodeFactory_c.java/clean/src/polyglot/ast/NodeFactory_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13163, 13163, 12, 2555, 949, 16, 8074, 3065, 13, 288, 3639, 13163, 290, 273, 394, 13163, 67, 71, 12, 917, 16, 3065, 1769, 309, 261, 408, 1733, 480, 446, 13, 288, 290, 273, 261, 13904, 13, 82, 18, 408, 12, 408, 1733, 18, 408, 13904, 10663, 289, 327, 290, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13163, 13163, 12, 2555, 949, 16, 8074, 3065, 13, 288, 3639, 13163, 290, 273, 394, 13163, 67, 71, 12, 917, 16, 3065, 1769, 309, 261, 408, 1733, 480, 446, 13, 288, 290, 273, 261, 13904, 13, 82, 18, 408, 12, 408, 1733, 18, 408, 13904, 10663, 289, 327, 290, 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 ]
public org.quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { org.quickfix.field.PartySubIDType value = new org.quickfix.field.PartySubIDType();
public quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { quickfix.field.PartySubIDType value = new quickfix.field.PartySubIDType();
public org.quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { org.quickfix.field.PartySubIDType value = new org.quickfix.field.PartySubIDType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstructionAck.java/buggy/src/java/src/quickfix/fix44/AllocationInstructionAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 559, 1689, 7325, 1676, 734, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 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, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 559, 1689, 7325, 1676, 734, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 1676, 734, 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, -100, -100, -100 ]
String result = startSection2("Modules");
StringBuffer result = new StringBuffer(startSection2("Modules"));
private String getModulesSection() { String result = startSection2("Modules"); if (codeDistributionChartCreated) { result += p(img(HTMLOutput.getCodeDistributionChartFilename(author), 640, 480)); } TableReport report = new DirectoriesForAuthorTableReport(getContent(), author); report.calculate(); Table table = report.getTable(); result += new TableRenderer(table, getRenderer()).getRenderedTable(); result += endSection2(); return result; }
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/57653c89911a6f0d5c928d7f3bef883748275bd0/AuthorPage.java/clean/statsvn/src/net/sf/statcvs/output/AuthorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 336, 7782, 5285, 1435, 288, 202, 202, 780, 563, 273, 787, 5285, 22, 2932, 7782, 8863, 202, 202, 430, 261, 710, 9003, 7984, 6119, 13, 288, 1082, 202, 2088, 1011, 293, 12, 6081, 12, 4870, 1447, 18, 588, 1085, 9003, 7984, 5359, 12, 4161, 3631, 5178, 20, 16, 1059, 3672, 10019, 202, 202, 97, 202, 202, 1388, 4820, 2605, 273, 4697, 202, 2704, 9908, 2401, 1290, 3594, 1388, 4820, 12, 588, 1350, 9334, 2869, 1769, 202, 202, 6006, 18, 11162, 5621, 202, 202, 1388, 1014, 273, 2605, 18, 588, 1388, 5621, 202, 202, 2088, 1011, 394, 3555, 6747, 12, 2121, 16, 336, 6747, 1435, 2934, 588, 19222, 1388, 5621, 3639, 563, 1011, 679, 5285, 22, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 514, 336, 7782, 5285, 1435, 288, 202, 202, 780, 563, 273, 787, 5285, 22, 2932, 7782, 8863, 202, 202, 430, 261, 710, 9003, 7984, 6119, 13, 288, 1082, 202, 2088, 1011, 293, 12, 6081, 12, 4870, 1447, 18, 588, 1085, 9003, 7984, 5359, 12, 4161, 3631, 5178, 20, 16, 1059, 3672, 10019, 202, 202, 97, 202, 202, 1388, 4820, 2605, 273, 4697, 202, 2704, 9908, 2401, 1290, 3594, 1388, 4820, 12, 588, 1350, 9334, 2869, 1769, 202, 202, 6006, 18, 11162, 5621, 202, 202, 1388, 1014, 273, 2605, 18, 588, 1388, 5621, 202, 202, 2088, 1011, 394, 3555, 6747, 12, 2121, 16, 336, 6747, 1435, 2934, 588, 19222, 1388, 5621, 3639, 563, 1011, 679, 5285, 22, 2 ]
IResource.NONE, monitor );
IResource.NONE, monitor );
public synchronized final void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable( ) { public void run( IProgressMonitor pm ) throws CoreException { try { execute( pm ); } catch ( CoreException e ) { throw e; } catch ( IOException e ) { ExceptionHandler.handle( e ); } } }; ResourcesPlugin.getWorkspace( ).run( workspaceRunnable, ResourcesPlugin.getWorkspace( ).getRoot( ), IResource.NONE, monitor ); } catch ( CoreException e ) { throw new InvocationTargetException( e ); } catch ( OperationCanceledException e ) { throw new InterruptedException( e.getMessage( ) ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/604ce5391dbc451664ffe72c0eb2da50e51bc4ed/FileReportProvider.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/editors/FileReportProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 3852, 727, 918, 1086, 12, 467, 5491, 7187, 6438, 262, 6862, 202, 15069, 15342, 16, 7558, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 8241, 20013, 6003, 20013, 273, 394, 467, 8241, 20013, 12, 262, 288, 25083, 202, 482, 918, 1086, 12, 467, 5491, 7187, 7430, 262, 6862, 9506, 202, 15069, 30015, 25083, 202, 95, 6862, 1082, 202, 698, 6862, 1082, 202, 95, 6862, 9506, 202, 8837, 12, 7430, 11272, 6862, 1082, 202, 97, 6862, 1082, 202, 14683, 261, 30015, 425, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 12849, 425, 31, 6862, 1082, 202, 97, 6862, 1082, 202, 14683, 261, 1860, 425, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 18894, 18, 4110, 12, 425, 11272, 6862, 1082, 202, 97, 25083, 202, 97, 6862, 202, 20451, 6862, 202, 3805, 3773, 18, 588, 8241, 12, 262, 18, 2681, 12, 6003, 20013, 16, 6862, 1082, 202, 3805, 3773, 18, 588, 8241, 12, 262, 18, 588, 2375, 12, 262, 16, 6862, 1082, 202, 45, 1420, 18, 9826, 16, 6862, 1082, 202, 10259, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 30015, 425, 262, 9506, 202, 95, 6862, 202, 12849, 394, 15342, 12, 425, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 4189, 23163, 503, 425, 262, 9506, 202, 95, 6862, 202, 12849, 394, 7558, 12, 425, 18, 24906, 12, 262, 11272, 9506, 202, 97, 1082, 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, 1875, 202, 482, 3852, 727, 918, 1086, 12, 467, 5491, 7187, 6438, 262, 6862, 202, 15069, 15342, 16, 7558, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 8241, 20013, 6003, 20013, 273, 394, 467, 8241, 20013, 12, 262, 288, 25083, 202, 482, 918, 1086, 12, 467, 5491, 7187, 7430, 262, 6862, 9506, 202, 15069, 30015, 25083, 202, 95, 6862, 1082, 202, 698, 6862, 1082, 202, 95, 6862, 9506, 202, 8837, 12, 7430, 11272, 6862, 1082, 202, 97, 6862, 1082, 202, 14683, 261, 30015, 425, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 12849, 425, 31, 6862, 1082, 202, 97, 6862, 1082, 202, 14683, 261, 1860, 425, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 18894, 2 ]
if (newLine.size() <= 1) return; Point ptS2 = newLine.getPoint(1); Point ptAbsS2 = new Point(ptS2); conn.translateToAbsolute(ptAbsS2); if (newLine.size() == 2) ptAbsS2 = conn.getTargetAnchor().getReferencePoint(); Point ptAbsS1 = conn.getSourceAnchor().getLocation(ptAbsS2); Point ptS1 = new Point(ptAbsS1); conn.translateToRelative(ptS1); Point ptE2 = newLine.getPoint(newLine.size() - 2); Point ptAbsE2 = new Point(ptE2); conn.translateToAbsolute(ptAbsE2); if (newLine.size() == 2) ptAbsE2 = ptAbsS1; Point ptE1 = new Point(conn.getTargetAnchor().getLocation(ptAbsE2)); conn.translateToRelative(ptE1); newLine.setPoint(ptS1, 0); newLine.setPoint(ptE1, newLine.size() - 1); if (newLine.size() != 2) { ptS2 = ptAbsS2; conn.translateToRelative(ptS2); newLine.setPoint(ptS2, 1); ptE2 = ptAbsE2; conn.translateToRelative(ptE2); newLine.setPoint(ptE2, newLine.size() - 2); }
RouterHelper.getInstance().resetEndPointsToEdge(conn, newLine);
protected void resetEndPointsToEdge( Connection conn, PointList newLine) { if (newLine.size() <= 1) return; Point ptS2 = newLine.getPoint(1); Point ptAbsS2 = new Point(ptS2); conn.translateToAbsolute(ptAbsS2); if (newLine.size() == 2) ptAbsS2 = conn.getTargetAnchor().getReferencePoint(); Point ptAbsS1 = conn.getSourceAnchor().getLocation(ptAbsS2); Point ptS1 = new Point(ptAbsS1); conn.translateToRelative(ptS1); Point ptE2 = newLine.getPoint(newLine.size() - 2); Point ptAbsE2 = new Point(ptE2); conn.translateToAbsolute(ptAbsE2); if (newLine.size() == 2) ptAbsE2 = ptAbsS1; Point ptE1 = new Point(conn.getTargetAnchor().getLocation(ptAbsE2)); conn.translateToRelative(ptE1); newLine.setPoint(ptS1, 0); // convert reference points back to relative to avoid rounding issues. newLine.setPoint(ptE1, newLine.size() - 1); if (newLine.size() != 2) { ptS2 = ptAbsS2; conn.translateToRelative(ptS2); newLine.setPoint(ptS2, 1); ptE2 = ptAbsE2; conn.translateToRelative(ptE2); newLine.setPoint(ptE2, newLine.size() - 2); } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/59b858043cca16f33386e815f2e236ffb460ac41/ObliqueRouter.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/routers/ObliqueRouter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2715, 1638, 5636, 774, 6098, 12, 565, 4050, 1487, 16, 565, 4686, 682, 8093, 13, 288, 202, 202, 430, 261, 2704, 1670, 18, 1467, 1435, 1648, 404, 13, 1082, 202, 2463, 31, 202, 202, 2148, 5818, 55, 22, 273, 8093, 18, 588, 2148, 12, 21, 1769, 202, 202, 2148, 5818, 9382, 55, 22, 273, 394, 4686, 12, 337, 55, 22, 1769, 202, 202, 4646, 18, 13929, 774, 10368, 12, 337, 9382, 55, 22, 1769, 202, 202, 430, 261, 2704, 1670, 18, 1467, 1435, 422, 576, 13, 5411, 5818, 9382, 55, 22, 273, 1487, 18, 588, 2326, 11605, 7675, 588, 2404, 2148, 5621, 202, 202, 2148, 5818, 9382, 55, 21, 273, 1487, 18, 588, 1830, 11605, 7675, 588, 2735, 12, 337, 9382, 55, 22, 1769, 202, 202, 2148, 5818, 55, 21, 273, 394, 4686, 12, 337, 9382, 55, 21, 1769, 3639, 1487, 18, 13929, 774, 8574, 12, 337, 55, 21, 1769, 7734, 4686, 5818, 41, 22, 273, 8093, 18, 588, 2148, 12, 2704, 1670, 18, 1467, 1435, 300, 576, 1769, 3639, 4686, 5818, 9382, 41, 22, 273, 394, 4686, 12, 337, 41, 22, 1769, 3639, 1487, 18, 13929, 774, 10368, 12, 337, 9382, 41, 22, 1769, 202, 202, 430, 261, 2704, 1670, 18, 1467, 1435, 422, 576, 13, 1082, 202, 337, 9382, 41, 22, 273, 5818, 9382, 55, 21, 31, 202, 202, 2148, 5818, 41, 21, 273, 394, 4686, 12, 4646, 18, 588, 2326, 11605, 7675, 588, 2735, 12, 337, 9382, 41, 22, 10019, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2715, 1638, 5636, 774, 6098, 12, 565, 4050, 1487, 16, 565, 4686, 682, 8093, 13, 288, 202, 202, 430, 261, 2704, 1670, 18, 1467, 1435, 1648, 404, 13, 1082, 202, 2463, 31, 202, 202, 2148, 5818, 55, 22, 273, 8093, 18, 588, 2148, 12, 21, 1769, 202, 202, 2148, 5818, 9382, 55, 22, 273, 394, 4686, 12, 337, 55, 22, 1769, 202, 202, 4646, 18, 13929, 774, 10368, 12, 337, 9382, 55, 22, 1769, 202, 202, 430, 261, 2704, 1670, 18, 1467, 1435, 422, 576, 13, 5411, 5818, 9382, 55, 22, 273, 1487, 18, 588, 2326, 11605, 7675, 588, 2404, 2148, 5621, 202, 202, 2148, 5818, 9382, 55, 21, 273, 1487, 18, 588, 1830, 11605, 2 ]
private void visitRegularCall(Node node, int type, Node child, boolean firstArgDone) { /* * Generate code for call. * * push <arity> * anewarray Ljava/lang/Object; * // "initCount" instances of code from here... * dup * push <i> * <gen code for child> * aastore * //...to here * invokestatic call */ OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); Node chelsea = child; int childCount = 0; int argSkipCount = (type == TokenStream.NEW) ? 1 : 2; while (child != null) { childCount++; child = child.getNext(); } child = chelsea; // re-start the iterator from the first child, // REMIND - too bad we couldn't just back-patch the count ? int argIndex = -argSkipCount; if (firstArgDone && (child != null)) { child = child.getNext(); argIndex++; aload(contextLocal); addByteCode(ByteCode.SWAP); } else aload(contextLocal); if (firstArgDone && (type == TokenStream.NEW)) constructArgArray(childCount - argSkipCount); boolean isSpecialCall = node.getProp(Node.SPECIALCALL_PROP) != null; boolean isSimpleCall = false; String simpleCallName = null; if (type != TokenStream.NEW) { simpleCallName = getSimpleCallName(node); if (simpleCallName != null && !isSpecialCall) { isSimpleCall = true; push(simpleCallName); aload(variableObjectLocal); child = child.getNext().getNext(); argIndex = 0; push(childCount - argSkipCount); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); } } while (child != null) { if (argIndex < 0) // not moving these arguments to the array generateCodeFromNode(child, node, -1, -1); else { addByteCode(ByteCode.DUP); push(argIndex); if (target != null) {/* If this has also been a directCall sequence, the Number flag will have remained set for any parameter so that the values could be copied directly into the outgoing args. Here we want to force it to be treated as not in a Number context, so we set the flag off.*/ boolean handled = false; if ((child.getType() == TokenStream.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar != null && lVar.isParameter()) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node, -1, -1); handled = true; } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, -1, -1); addDoubleConstructor(); } else generateCodeFromNode(child, node, -1, -1); } } else generateCodeFromNode(child, node, -1, -1); addByteCode(ByteCode.AASTORE); } argIndex++; if (argIndex == 0) { // now we need to construct the array // (even if there are no args to load // into it) - REMIND could pass null // instead ? constructArgArray(childCount - argSkipCount); } child = child.getNext(); } String className; String methodNameNewObj; String methodNameCall; String callSignature; if (isSpecialCall) { className = "org/mozilla/javascript/ScriptRuntime"; methodNameNewObj = "newObjectSpecial"; methodNameCall = "callSpecial"; if (type != TokenStream.NEW) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;I)"; // filename & linenumber aload(thisObjLocal); aload(variableObjectLocal); push(itsSourceFile == null ? "" : itsSourceFile); push(itsLineNumber); } else { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; aload(variableObjectLocal); } } else { methodNameNewObj = "newObject"; if (isSimpleCall) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)"; methodNameCall = "callSimple"; className = "org/mozilla/javascript/optimizer/OptRuntime"; } else { aload(variableObjectLocal); if (type == TokenStream.NEW) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; } else { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; } methodNameCall = "call"; className = "org/mozilla/javascript/ScriptRuntime"; } } if (type == TokenStream.NEW) { addStaticInvoke(className, methodNameNewObj, callSignature, "Lorg/mozilla/javascript/Scriptable;"); } else { addStaticInvoke(className, methodNameCall, callSignature, "Ljava/lang/Object;"); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/16f9ecfd66dac39e0dadf419185103dfc802e759/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 3757, 17974, 1477, 12, 907, 756, 16, 509, 618, 16, 225, 2029, 1151, 16, 1250, 1122, 4117, 7387, 15329, 20308, 380, 6654, 981, 364, 745, 18, 380, 380, 1817, 411, 20498, 34, 380, 392, 359, 1126, 511, 6290, 19, 4936, 19, 921, 31, 380, 368, 315, 2738, 1380, 6, 3884, 434, 981, 628, 2674, 2777, 380, 9417, 380, 1817, 411, 77, 34, 380, 411, 4507, 981, 364, 1151, 34, 380, 279, 689, 479, 380, 368, 2777, 869, 2674, 380, 5770, 395, 2126, 745, 1195, 6179, 2083, 907, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 907, 462, 12107, 69, 273, 1151, 31, 474, 31492, 273, 374, 31, 474, 1501, 6368, 1380, 273, 261, 723, 422, 3155, 1228, 18, 12917, 13, 692, 404, 294, 576, 31, 17523, 261, 3624, 480, 446, 13, 288, 3624, 1380, 9904, 31, 3624, 273, 1151, 18, 588, 2134, 5621, 97, 3624, 273, 462, 12107, 69, 31, 759, 283, 17, 1937, 326, 2775, 628, 326, 1122, 1151, 16, 759, 2438, 49, 2356, 300, 4885, 5570, 732, 17991, 1404, 2537, 1473, 17, 2272, 326, 1056, 692, 474, 1501, 1016, 273, 300, 3175, 6368, 1380, 31, 430, 261, 3645, 4117, 7387, 597, 261, 3624, 480, 446, 3719, 288, 3624, 273, 1151, 18, 588, 2134, 5621, 3175, 1016, 9904, 31, 287, 6189, 12, 2472, 2042, 1769, 1289, 3216, 1085, 12, 3216, 1085, 18, 18746, 2203, 1769, 97, 12107, 287, 6189, 12, 2472, 2042, 1769, 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, 3238, 918, 3757, 17974, 1477, 12, 907, 756, 16, 509, 618, 16, 225, 2029, 1151, 16, 1250, 1122, 4117, 7387, 15329, 20308, 380, 6654, 981, 364, 745, 18, 380, 380, 1817, 411, 20498, 34, 380, 392, 359, 1126, 511, 6290, 19, 4936, 19, 921, 31, 380, 368, 315, 2738, 1380, 6, 3884, 434, 981, 628, 2674, 2777, 380, 9417, 380, 1817, 411, 77, 34, 380, 411, 4507, 981, 364, 1151, 34, 380, 279, 689, 479, 380, 368, 2777, 869, 2674, 380, 5770, 395, 2126, 745, 1195, 6179, 2083, 907, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 907, 462, 12107, 69, 273, 1151, 31, 474, 31492, 273, 374, 2 ]
MailMessage mailMessage = sendNotificationAndGetMessage( project, build ); build.setStandardOutput( "stdout" );
MailMessage mailMessage = sendNotificationAndGetMessage( project, build, "output" );
public void testFailedBuild() throws Exception { ContinuumProject project = makeProject(); ContinuumBuild build = makeBuild( ContinuumProjectState.FAILED ); MailMessage mailMessage = sendNotificationAndGetMessage( project, build ); build.setStandardOutput( "stdout" ); dumpContent( mailMessage ); }
48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/3e8ef7817f4f729904c4598e6922e9262fccdd86/MailContinuumNotifierTest.java/buggy/continuum-core/src/test/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifierTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2925, 3116, 1435, 3639, 1216, 1185, 565, 288, 3639, 1816, 6860, 379, 4109, 1984, 273, 1221, 4109, 5621, 3639, 1816, 6860, 379, 3116, 1361, 273, 1221, 3116, 12, 1816, 6860, 379, 4109, 1119, 18, 11965, 11272, 3639, 11542, 1079, 4791, 1079, 273, 1366, 4386, 14042, 1079, 12, 1984, 16, 1361, 11272, 3639, 1361, 18, 542, 8336, 1447, 12, 315, 10283, 6, 11272, 3639, 4657, 1350, 12, 4791, 1079, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 918, 1842, 2925, 3116, 1435, 3639, 1216, 1185, 565, 288, 3639, 1816, 6860, 379, 4109, 1984, 273, 1221, 4109, 5621, 3639, 1816, 6860, 379, 3116, 1361, 273, 1221, 3116, 12, 1816, 6860, 379, 4109, 1119, 18, 11965, 11272, 3639, 11542, 1079, 4791, 1079, 273, 1366, 4386, 14042, 1079, 12, 1984, 16, 1361, 11272, 3639, 1361, 18, 542, 8336, 1447, 12, 315, 10283, 6, 11272, 3639, 4657, 1350, 12, 4791, 1079, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return getCurrentContext().getFrameEvalState().begin(node);
ThreadContext tc = getCurrentContext(); return EvaluationState.eval(tc, node, tc.getFrameSelf());
public IRubyObject eval(Node node) { try { return getCurrentContext().getFrameEvalState().begin(node); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.ReturnJump) { return (IRubyObject)je.getSecondaryData(); } else { throw je; } } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/6e15491217631472c05c6928672f9c7064a978b3/Ruby.java/buggy/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 12, 907, 756, 13, 288, 3639, 775, 288, 5411, 4884, 1042, 1715, 273, 5175, 1042, 5621, 327, 17340, 1119, 18, 8622, 12, 5111, 16, 756, 16, 1715, 18, 588, 3219, 10084, 10663, 3639, 289, 1044, 261, 26743, 503, 30356, 13, 288, 540, 202, 430, 261, 78, 73, 18, 588, 26743, 559, 1435, 422, 804, 2801, 503, 18, 26743, 559, 18, 990, 26743, 13, 288, 202, 5411, 327, 261, 7937, 10340, 921, 13, 78, 73, 18, 588, 14893, 751, 5621, 540, 202, 97, 469, 288, 540, 202, 202, 12849, 30356, 31, 540, 202, 97, 202, 202, 97, 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, 15908, 10340, 921, 5302, 12, 907, 756, 13, 288, 3639, 775, 288, 5411, 4884, 1042, 1715, 273, 5175, 1042, 5621, 327, 17340, 1119, 18, 8622, 12, 5111, 16, 756, 16, 1715, 18, 588, 3219, 10084, 10663, 3639, 289, 1044, 261, 26743, 503, 30356, 13, 288, 540, 202, 430, 261, 78, 73, 18, 588, 26743, 559, 1435, 422, 804, 2801, 503, 18, 26743, 559, 18, 990, 26743, 13, 288, 202, 5411, 327, 261, 7937, 10340, 921, 13, 78, 73, 18, 588, 14893, 751, 5621, 540, 202, 97, 469, 288, 540, 202, 202, 12849, 30356, 31, 540, 202, 97, 202, 202, 97, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER ) .setValue( null );
inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER ).setValue( null );
protected void okPressed( ) { try { // Remove original settings inputHandle.setURI( null ); inputHandle.setTargetBookmark( null ); inputHandle.setTargetWindow( null ); inputHandle.setReportName( null ); inputHandle.setFormatType( null ); inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER ) .setValue( null ); if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( selectedType ) ) { inputHandle.setURI( locationEditor.getText( ).trim( ) ); inputHandle.setTargetWindow( ChoiceSetFactory.getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( selectedType ) ) { inputHandle.setTargetBookmark( bookmarkEditor.getText( ).trim( ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( selectedType ) ) { inputHandle.setReportName( locationEditor.getText( ).trim( ) ); for ( Iterator iter = bindingList.iterator( ); iter.hasNext( ); ) { inputHandle.addParamBinding( (ParamBinding) iter.next( ) ); } if ( !StringUtil.isBlank( bookmarkEditor.getText( ) ) ) { inputHandle.setTargetBookmark( bookmarkEditor.getText( ) .trim( ) ); } inputHandle.setTargetWindow( ChoiceSetFactory.getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); inputHandle.setFormatType( ChoiceSetFactory.getValueFromChoiceSet( formatChooser.getText( ), CHOICESET_FORMAT ) ); } inputHandle.setLinkType( selectedType ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } setResult( inputHandle ); super.okPressed( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f5e62342ed517a2b257e427a5f18c7dee2b63f6d/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 3581, 2282, 1947, 1082, 202, 2630, 3259, 18, 542, 3098, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 2326, 22966, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 2326, 3829, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 4820, 461, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 1630, 559, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 588, 4419, 12, 4382, 18, 8388, 67, 2739, 55, 67, 19630, 262, 6862, 202, 18, 542, 620, 12, 446, 11272, 1082, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 44, 61, 3194, 10554, 18, 14963, 12, 3170, 559, 262, 262, 1082, 202, 95, 9506, 202, 2630, 3259, 18, 542, 3098, 12, 2117, 6946, 18, 588, 1528, 12, 262, 18, 5290, 12, 262, 11272, 9506, 202, 2630, 3259, 18, 542, 2326, 3829, 12, 16432, 694, 1733, 18, 24805, 1265, 10538, 694, 12, 1018, 17324, 18, 588, 1528, 12, 262, 16, 25083, 202, 22213, 11774, 4043, 67, 16374, 262, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 28163, 12693, 67, 10554, 18, 14963, 12, 3170, 559, 262, 262, 1082, 202, 95, 9506, 202, 2630, 3259, 18, 542, 2326, 22966, 12, 13696, 6946, 18, 588, 1528, 12, 262, 18, 5290, 12, 262, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 29703, 10538, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 3581, 2282, 1947, 1082, 202, 2630, 3259, 18, 542, 3098, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 2326, 22966, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 2326, 3829, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 4820, 461, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 542, 1630, 559, 12, 446, 11272, 1082, 202, 2630, 3259, 18, 588, 4419, 12, 4382, 18, 8388, 67, 2739, 55, 67, 19630, 262, 6862, 202, 18, 542, 620, 12, 446, 11272, 1082, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 44, 61, 3194, 10554, 2 ]
main.context.enableUpdate();
debugGui.context.enableUpdate();
public void run() { String lastFrameUrl = lastFrame.getUrl(); int line = lastFrame.getLineNumber(); main.statusBar.setText("Thread: " + threadTitle); if (lastFrameUrl != null && !lastFrameUrl.equals("<stdin>")) { FileWindow w = main.getFileWindow(lastFrameUrl); if (w != null) { new SetFilePosition(main, w, line).run(); } else { SourceInfo si = lastFrame.sourceInfo(); CreateFileWindow.action(main, si, line).run(); } } else { if (main.console.isVisible()) { main.console.show(); } } if (alertMessage != null) { MessageDialogWrapper.showMessageDialog(main, alertMessage, "Exception in Script", JOptionPane.ERROR_MESSAGE); } JMenu menu = main.getJMenuBar().getMenu(0); //menu.getItem(0).setEnabled(false); // File->Load menu = main.getJMenuBar().getMenu(2); menu.getItem(0).setEnabled(false); // Debug->Break int count = menu.getItemCount(); for (int i = 1; i < count; ++i) { menu.getItem(i).setEnabled(true); } boolean b = false; for (int ci = 0, cc = main.toolBar.getComponentCount(); ci < cc; ci++) { main.toolBar.getComponent(ci).setEnabled(b); b = true; } main.toolBar.setEnabled(true); // raise the debugger window main.toFront(); ContextData contextData = lastFrame.contextData(); main.context.enable(); JComboBox ctx = main.context.context; Vector toolTips = main.context.toolTips; main.context.disableUpdate(); int frameCount = contextData.frameCount(); ctx.removeAllItems(); // workaround for JDK 1.4 bug that caches selected value even after // removeAllItems() is called ctx.setSelectedItem(null); toolTips.removeAllElements(); for (int i = 0; i < frameCount; i++) { StackFrame frame = contextData.getFrame(i); String url = frame.getUrl(); int lineNumber = frame.getLineNumber(); String shortName = url; if (url.length() > 20) { shortName = "..." + url.substring(url.length() - 17); } String location = "\"" + shortName + "\", line " + lineNumber; ctx.insertItemAt(location, i); location = "\"" + url + "\", line " + lineNumber; toolTips.addElement(location); } main.context.enableUpdate(); ctx.setSelectedIndex(0); ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height)); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 514, 1142, 3219, 1489, 273, 1142, 3219, 18, 588, 1489, 5621, 3639, 509, 980, 273, 1142, 3219, 18, 588, 31063, 5621, 3639, 2774, 18, 2327, 5190, 18, 542, 1528, 2932, 3830, 30, 315, 397, 2650, 4247, 1769, 3639, 309, 261, 2722, 3219, 1489, 480, 446, 597, 401, 2722, 3219, 1489, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 2722, 3219, 1489, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 394, 1000, 812, 2555, 12, 5254, 16, 341, 16, 980, 2934, 2681, 5621, 5411, 289, 469, 288, 7734, 4998, 966, 7533, 273, 1142, 3219, 18, 3168, 966, 5621, 7734, 1788, 812, 3829, 18, 1128, 12, 5254, 16, 7533, 16, 980, 2934, 2681, 5621, 5411, 289, 3639, 289, 469, 288, 5411, 309, 261, 5254, 18, 8698, 18, 291, 6207, 10756, 288, 7734, 2774, 18, 8698, 18, 4500, 5621, 5411, 289, 3639, 289, 3639, 309, 261, 11798, 1079, 480, 446, 13, 288, 5411, 2350, 6353, 3611, 18, 4500, 1079, 6353, 12, 5254, 16, 4766, 10402, 6881, 1079, 16, 4766, 10402, 315, 503, 316, 7739, 3113, 4766, 10402, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 3639, 289, 3639, 804, 4599, 3824, 273, 2774, 18, 588, 46, 4599, 5190, 7675, 588, 4599, 12, 20, 1769, 3639, 368, 5414, 18, 588, 1180, 12, 20, 2934, 542, 1526, 12, 5743, 1769, 368, 1387, 2122, 2563, 3639, 3824, 273, 2774, 18, 588, 46, 4599, 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, 1435, 565, 288, 3639, 514, 1142, 3219, 1489, 273, 1142, 3219, 18, 588, 1489, 5621, 3639, 509, 980, 273, 1142, 3219, 18, 588, 31063, 5621, 3639, 2774, 18, 2327, 5190, 18, 542, 1528, 2932, 3830, 30, 315, 397, 2650, 4247, 1769, 3639, 309, 261, 2722, 3219, 1489, 480, 446, 597, 401, 2722, 3219, 1489, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 2722, 3219, 1489, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 394, 1000, 812, 2555, 12, 5254, 16, 341, 16, 980, 2934, 2681, 5621, 5411, 289, 469, 288, 7734, 4998, 966, 7533, 273, 1142, 3219, 18, 3168, 966, 5621, 7734, 1788, 2 ]
peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion());
peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNodeStatus.getVersion() : peerNodeStatus.getSimpleVersion());
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNode[] peerNodes = node.getDarknetConnections(); Arrays.sort(peerNodes, new Comparator() { public int compare(Object first, Object second) { PeerNode firstNode = (PeerNode) first; PeerNode secondNode = (PeerNode) second; int statusDifference = firstNode.getPeerNodeStatus() - secondNode.getPeerNodeStatus(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareTo(secondNode.getName()); } }); /* copy peer node statuses for consistent display. */ int[] peerNodeStatuses = new int[peerNodes.length]; for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { peerNodeStatuses[peerIndex] = peerNodes[peerIndex].getPeerNodeStatus(); } int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = String.valueOf(numberOfSimpleConnected); } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(node.alerts.createSummary()); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul", "id", "activity"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_connected", "Connected:\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_backedoff", (advancedEnabled ? "Backed off" : "Busy") + ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_new", "Too new:\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_old", "Too old:\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_disconnected", "Disconnected:\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Never Connected:\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Disabled:\u00a0" + numberOfDisabled); /* TODO */ } if (numberOfBursting > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Bursting:\u00a0" + numberOfBursting); /* TODO */ } if (numberOfListening > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */ } if (numberOfListenOnly > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listen Only:\u00a0" + numberOfListenOnly); /* TODO */ } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodes.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Click on the nodename link to send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Temporarily disconnected. Other node busy? Wait time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { PeerNode peerNode = peerNodes[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNode.hashCode() }); // status column String statusString = peerNode.getPeerNodeStatusString(); if (!advancedEnabled && (peerNode.getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNode.getPeerNodeStatusCSSClassName(), statusString + (peerNode.isFetchingARK() ? "*" : "")); // name column if (peerNode.isConnected() && (Integer.parseInt(peerNode.getSimpleVersion()) > 476)) { peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNode.hashCode(), peerNode.getName()); } else { peerRow.addChild("td", "class", "peer-name").addChild("#", peerNode.getName()); } // address column if (advancedEnabled) { String pingTime = ""; if (peerNode.isConnected()) { pingTime = " (" + String.valueOf((int) peerNode.averagePingTime()) + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNode.getDetectedPeer() != null) ? (peerNode.getDetectedPeer().toString()) : ("(unknown address)")) + pingTime); } // version column if (peerNode.publicReverseInvalidVersion()) { peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_too_new", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNode.getLocation().getValue())); } // backoff column if (advancedEnabled) { HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNode.backedOffPercent.currentValue())); int backoff = (int) (Math.max(peerNode.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNode.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNode.getLastBackoffReason() == null) ? "" : ("/" + (peerNode.getLastBackoffReason()))); } // idle column long idle = peerNode.timeLastRoutable(); if(peerNode.isRoutable()) { idle = peerNode.timeLastConnectionCompleted(); } else if(peerNodeStatuses[peerIndex] == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNode.getPeerAddedTime(); } peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 6 : 3)); HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNode.getLocalNodeReceivedMessagesFromStatistic().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNode.getLocalNodeReceivedMessagesFromStatistic().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNode.getLocalNodeSentMessagesToStatistic().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNode.getLocalNodeSentMessagesToStatistic().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } if(!advancedEnabled) { peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove selected peers" }); } else { HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } } // END PEER TABLE // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.txt", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/8894de616e17a43e740747a9eb17956bab9b3b3d/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 6385, 1250, 16111, 1526, 273, 756, 18, 588, 774, 361, 1810, 2170, 7675, 291, 23618, 40, 1313, 2758, 1526, 5621, 9506, 202, 20308, 11090, 1459, 7691, 1195, 202, 202, 6813, 907, 8526, 4261, 3205, 273, 756, 18, 588, 40, 1313, 2758, 9314, 5621, 202, 202, 12726, 18, 3804, 12, 12210, 3205, 16, 394, 13359, 1435, 288, 1082, 202, 482, 509, 3400, 12, 921, 1122, 16, 1033, 2205, 13, 288, 9506, 202, 6813, 907, 1122, 907, 273, 261, 6813, 907, 13, 1122, 31, 9506, 202, 6813, 907, 2205, 907, 273, 261, 6813, 907, 13, 2205, 31, 9506, 202, 474, 1267, 16220, 273, 1122, 907, 18, 588, 6813, 907, 1482, 1435, 300, 2205, 907, 18, 588, 6813, 907, 1482, 5621, 9506, 202, 430, 261, 2327, 16220, 480, 374, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2 ]
public Chart getModel(String sType, Orientation Orientation, String Dimension, Chart currentChart);
public Chart getModel( String sType, Orientation Orientation, String Dimension, Chart currentChart );
public Chart getModel(String sType, Orientation Orientation, String Dimension, Chart currentChart);
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/349f24e6a8f8484f0f1f1af682b4952337cac402/IChartType.java/buggy/chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/swt/interfaces/IChartType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14804, 7454, 12, 780, 22907, 16, 531, 12556, 531, 12556, 16, 514, 13037, 16, 14804, 783, 7984, 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, 14804, 7454, 12, 780, 22907, 16, 531, 12556, 531, 12556, 16, 514, 13037, 16, 14804, 783, 7984, 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 ]
.append(BagFormatter.toXML.transliterate(source))
.append(TransliteratorUtilities.toXML.transliterate(source))
private void addSamples(DateFormat x, boolean isDate, List result) throws ParseException { Object[] arguments = new Object[samples.length]; StringBuffer htmlMessage = new StringBuffer(); htmlMessage.append("<table border='1' cellpadding='2'><tr><th width='33%'>Number</th><th width='34%'>Localized Format</th></tr>"); for (int i = 0; i < samples.length; ++i) { String source = samples[i]; Date dateSource = isoBC.parse(source); String formatted = x.format(dateSource); Date parsed = x.parse(formatted); String resource = isoBC.format(parsed); arguments[i] = source + " => " + formatted + " => " + resource; htmlMessage.append("<tr><td>") .append(BagFormatter.toXML.transliterate(source)) .append("</td><td>") .append(BagFormatter.toXML.transliterate(formatted)) .append("</td><td>") .append(BagFormatter.toXML.transliterate(resource)) .append("</td></tr>"); } htmlMessage.append("</table>"); CheckStatus item = new CheckStatus().setType(CheckStatus.exampleType) .setMessage(SampleList, arguments) .setHTMLMessage(htmlMessage.toString()); result.add(item); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/52bcdfe5e692bb7a87e851b40f1fe803956a7b14/CheckDates.java/buggy/tools/java/org/unicode/cldr/test/CheckDates.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 13239, 12, 11878, 619, 16, 1250, 28931, 16, 987, 563, 13, 1216, 10616, 288, 202, 202, 921, 8526, 1775, 273, 394, 1033, 63, 7319, 18, 2469, 15533, 202, 202, 780, 1892, 1729, 1079, 273, 394, 6674, 5621, 202, 202, 2620, 1079, 18, 6923, 2932, 32, 2121, 5795, 2218, 21, 11, 2484, 9598, 2218, 22, 11, 4438, 313, 4438, 451, 1835, 2218, 3707, 8604, 34, 1854, 1757, 451, 4438, 451, 1835, 2218, 5026, 8604, 34, 2042, 1235, 4077, 1757, 451, 4695, 313, 2984, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5216, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 780, 1084, 273, 5216, 63, 77, 15533, 1082, 202, 1626, 1509, 1830, 273, 8702, 16283, 18, 2670, 12, 3168, 1769, 1082, 202, 780, 4955, 273, 619, 18, 2139, 12, 712, 1830, 1769, 1082, 202, 1626, 2707, 273, 619, 18, 2670, 12, 14897, 1769, 1082, 202, 780, 1058, 273, 8702, 16283, 18, 2139, 12, 10817, 1769, 1082, 202, 7099, 63, 77, 65, 273, 1084, 397, 315, 516, 315, 397, 4955, 397, 315, 516, 315, 397, 1058, 31, 1082, 202, 2620, 1079, 18, 6923, 2932, 32, 313, 4438, 4465, 2984, 13, 1082, 202, 18, 6923, 12, 5013, 5074, 18, 869, 4201, 18, 5379, 18793, 12, 3168, 3719, 1082, 202, 18, 6923, 2932, 1757, 4465, 4438, 4465, 2984, 13, 1082, 202, 18, 6923, 12, 5013, 5074, 18, 869, 4201, 18, 5379, 18793, 12, 14897, 3719, 1082, 202, 18, 6923, 2932, 1757, 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, 527, 13239, 12, 11878, 619, 16, 1250, 28931, 16, 987, 563, 13, 1216, 10616, 288, 202, 202, 921, 8526, 1775, 273, 394, 1033, 63, 7319, 18, 2469, 15533, 202, 202, 780, 1892, 1729, 1079, 273, 394, 6674, 5621, 202, 202, 2620, 1079, 18, 6923, 2932, 32, 2121, 5795, 2218, 21, 11, 2484, 9598, 2218, 22, 11, 4438, 313, 4438, 451, 1835, 2218, 3707, 8604, 34, 1854, 1757, 451, 4438, 451, 1835, 2218, 5026, 8604, 34, 2042, 1235, 4077, 1757, 451, 4695, 313, 2984, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5216, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 780, 1084, 273, 5216, 63, 77, 15533, 1082, 202, 1626, 2 ]
processChildren(manager.getItems(), addGroup(manager, parentLocation));
processChildren(manager.getItems(), parentLocation);
private void addContributionManager(IContributionManager manager, SLocation parentLocation) { System.err.println("addContributionManager: unknown: " //$NON-NLS-1$ + manager.getClass().getName()); processChildren(manager.getItems(), addGroup(manager, parentLocation)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5af242f9e1cef0507ee8fbeaa76acd846c7379b7/LegacyMenuManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyMenuManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 442, 4027, 1318, 12, 45, 442, 4027, 1318, 3301, 16, 1082, 202, 55, 2735, 982, 2735, 13, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1289, 442, 4027, 1318, 30, 5917, 30, 315, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 15, 3301, 18, 588, 797, 7675, 17994, 10663, 202, 202, 2567, 4212, 12, 4181, 18, 588, 3126, 9334, 18899, 12, 4181, 16, 982, 2735, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 918, 527, 442, 4027, 1318, 12, 45, 442, 4027, 1318, 3301, 16, 1082, 202, 55, 2735, 982, 2735, 13, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1289, 442, 4027, 1318, 30, 5917, 30, 315, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 15, 3301, 18, 588, 797, 7675, 17994, 10663, 202, 202, 2567, 4212, 12, 4181, 18, 588, 3126, 9334, 18899, 12, 4181, 16, 982, 2735, 10019, 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 ]
if ((b & 0xE) == 0xC0)
if ((b & 0xE0) == 0xC0)
public int read (char[] outbuffer, int outpos, int outlength) { int origpos = outpos; for (;;) { if (outpos >= outlength) break; if (inpos >= inlength) break; int b = inbuffer[inpos++]; if (b >= 0) outbuffer[outpos++] = (char) b; else { if ((b & 0xC0) == 0x80) // Continuation byte { partial = (partial << 6) | (b & 0x3F); --partial_bytes_expected; if (partial_bytes_expected == 1) { if (partial > (0xFFFF>>6)) { // The next continuation byte will cause the result // to exceed 0xFFFF, so we must use a surrogate pair. // The "Unicode scalar value" (see D28 in section 3.7 // of the Unicode Standard 2.0) is defined as: // value == (hi-0xD800)*0x400+(lo-0xDC00)+0x10000, // where (hi, lo) is the Unicode surrogate pair. // After reading the first three bytes, we have: // partial == (value >> 6). // Substituting and simplifying, we get: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400. // The definition lo>=0xDC00 && lo<=0xDFFF implies // that (lo-0xDC00)>>6 is in the range 0..15. // Hence we can infer (partial-0x400)>>4 == (hi-0xDB00) // and we can emit the high-surrogate without waiting // for the final byte: outbuffer[outpos++] = (char) (0xDA00+(partial>>4)); // Now we want to set it up so that when we read // the final byte on the next iteration, we will // get the low-surrogate without special handling. // I.e. we want: // lo == (next_partial << 6) | (next & 0x3F) // where next is the next input byte and next_partial // is the value of partial at the end of this // iteration. This implies: next_partial == lo >> 6. // We can simplify the previous: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400, // to: partial == (hi-0xD800)*0x10+(lo>>6)+0x90. // Inserting the values of hi and next_partial, // and simplifying, we get: partial == // ( (partial-0x400)&~0xF) + next_partial + 0x90. // Solving for next_partial, we get: // next_partial = partial+0x400-0x90-(partial&~0xF): // or: next_partial = (partial&0xF) + 0x370. Hence: partial = (partial & 0xF) + 0x370; } } else if (partial_bytes_expected == 0) { outbuffer[outpos++] = (char) partial; partial = 0; partial_bytes_expected = 0; } } else // prefix byte { if ((b & 0xE) == 0xC0) { partial = b & 0x1F; partial_bytes_expected = 1; } else if ((b & 0xF) == 0xF0) { partial = b & 0xF; partial_bytes_expected = 2; } else { partial = b & 7; partial_bytes_expected = 3; } } } } return outpos - origpos; }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/f7fdfabb16bac8562669335a5d1ca582fb97ede7/Input_UTF8.java/buggy/libjava/gnu/gcj/convert/Input_UTF8.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430, 261, 659, 917, 1545, 596, 2469, 13, 202, 225, 898, 31, 202, 430, 261, 267, 917, 1545, 316, 2469, 13, 202, 225, 898, 31, 202, 474, 324, 273, 316, 4106, 63, 267, 917, 9904, 15533, 202, 430, 261, 70, 1545, 374, 13, 202, 225, 596, 4106, 63, 659, 917, 9904, 65, 273, 261, 3001, 13, 324, 31, 202, 12107, 202, 225, 288, 202, 565, 309, 14015, 70, 473, 374, 14626, 20, 13, 422, 374, 92, 3672, 13, 368, 1816, 23946, 1160, 202, 1377, 288, 202, 202, 11601, 273, 261, 11601, 2296, 1666, 13, 571, 261, 70, 473, 374, 92, 23, 42, 1769, 202, 202, 413, 11601, 67, 3890, 67, 3825, 31, 202, 202, 430, 261, 11601, 67, 3890, 67, 3825, 422, 404, 13, 1082, 225, 288, 1082, 565, 309, 261, 11601, 405, 261, 20, 21718, 9778, 26, 3719, 1082, 1377, 288, 1082, 202, 759, 1021, 1024, 17378, 1160, 903, 4620, 326, 563, 1082, 202, 759, 358, 9943, 374, 21718, 16, 1427, 732, 1297, 999, 279, 24054, 3082, 18, 1082, 202, 759, 1021, 315, 16532, 4981, 460, 6, 261, 5946, 463, 6030, 316, 2442, 890, 18, 27, 1082, 202, 759, 434, 326, 9633, 8263, 576, 18, 20, 13, 353, 2553, 487, 30, 1082, 202, 759, 460, 422, 261, 12266, 17, 20, 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, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430, 261, 659, 917, 1545, 596, 2469, 13, 202, 225, 898, 31, 202, 430, 261, 267, 917, 1545, 316, 2469, 13, 202, 225, 898, 31, 202, 474, 324, 273, 316, 4106, 63, 267, 917, 9904, 15533, 202, 430, 261, 70, 1545, 374, 13, 202, 225, 596, 4106, 63, 659, 917, 9904, 65, 273, 261, 3001, 13, 324, 31, 202, 12107, 202, 225, 288, 202, 565, 309, 14015, 70, 473, 374, 14626, 20, 13, 422, 374, 92, 3672, 13, 368, 1816, 23946, 1160, 202, 2 ]
else if(command.equals("Stop")) {
else if(command.equals("Stop")) {
public void actionPerformed (ActionEvent evt) { String command = evt.getActionCommand(); try { if (command.equals("New Window")) { creator.CreateEMWindow(); } else if (command.equals("Close")) { System.out.println("Got windowClosing"); System.out.println("destroying the BrowserControl"); EMWindow.this.delete(); // should close the BrowserControlCanvas creator.DestroyEMWindow(winNum); } else if (command.equals("Find")) { if (null == findDialog) { Frame f = new Frame(); f.setSize(350,150); findDialog = new FindDialog(this, this, "Find in Page", "Find ", "", 20, false); findDialog.setModal(false); } findDialog.setVisible(true); // currentPage.findInPage("Sun", true, true); } else if (command.equals("Find Next")) { currentPage.findNextInPage(); } else if (command.equals("View Page Source as String")) { String sou = currentPage.getSource(); System.out.println("+++++++++++ Page Source is +++++++++++\n\n" + sou); } else if (command.equals("View Page Info")) { currentPage.getPageInfo(); } else if (command.equals("Select All")) { currentPage.selectAll(); } else if (command.equals("Copy")) { currentPage.copyCurrentSelectionToSystemClipboard(); } else if(command.equals("Stop")) { navigation.stop(); } else if (command.equals("Refresh")) { navigation.refresh(Navigation.LOAD_NORMAL); } else if (command.equals("Add Current Page")) { if (null == bookmarksTree) { bookmarksTree = bookmarks.getBookmarks(); } BookmarkEntry entry = bookmarks.newBookmarkEntry(urlField.getText()); bookmarks.addBookmark(null, entry); } else if (command.equals("Add Current Page In New Folder")) { if (null == bookmarksTree) { bookmarksTree = bookmarks.getBookmarks(); } BookmarkEntry folder = bookmarks.newBookmarkFolder("newFolder"); bookmarks.addBookmark(null, folder); BookmarkEntry entry = bookmarks.newBookmarkEntry(urlField.getText()); bookmarks.addBookmark(folder, entry); } else if (command.equals("Manage Bookmarks...")) { if (null == bookmarksTree) { bookmarksTree = bookmarks.getBookmarks(); } if (null == bookmarksFrame) { bookmarksFrame = new BookmarksFrame(bookmarksTree, browserControl); bookmarksFrame.setSize(new Dimension(320,480)); bookmarksFrame.setLocation(defaultWidth + 5, 0); } bookmarksFrame.setVisible(true); } else if (command.equals("Load Stream From File...")) { FileDialog fileDialog = new FileDialog(this, "Pick an HTML file", FileDialog.LOAD); fileDialog.show(); String file = fileDialog.getFile(); String directory = fileDialog.getDirectory(); if ((null != file) && (null != directory) && (0 < file.length()) && (0 < directory.length())) { String absPath = directory + file; FileInputStream fis = new FileInputStream(absPath); File tFile = new File(absPath); System.out.println("debug: edburns: file: " + absPath); navigation.loadFromStream(fis, "file:///hello.html", "text/html", (int) tFile.length(), null); } } else if (command.equals("Load Random HTML InputStream")) { RandomHTMLInputStream rhis = new RandomHTMLInputStream(3); System.out.println("debug: edburns: created RandomHTMLInputStream"); navigation.loadFromStream(rhis, "http://randomstream.com/", "text/html", -1, null); } else if (command.equals("DOMViewer")) { if (null == domViewer) { domViewer = new DOMViewerFrame("DOM Viewer", creator); domViewer.setSize(new Dimension(300, 600)); domViewer.setLocation(defaultWidth + 5, 0); } if (null != currentDocument) { domViewer.setDocument(currentDocument); domViewer.setVisible(true); } } else if (command.equals("POST")) { navigation.post(urlField.getText(), null, "TESTDATA\r\n", "Content-Length: 8\r\nX-Header:hello\r\n\r\n"); } else if (command.equals("Back")) { if (history.canBack()) { history.back(); } } else if (command.equals("Forward")) { if (history.canForward()) { history.forward(); } } else if (command.equals(" ")) { } else { navigation.loadURL(urlField.getText()); } } catch (Exception e) { System.out.println(e.getMessage()); }} // actionPerformed()
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/afee19ff581e3d13844917014bf035cd25e515ae/EMWindow.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 26100, 261, 1803, 1133, 6324, 13, 288, 565, 514, 1296, 273, 6324, 18, 588, 1803, 2189, 5621, 3639, 775, 288, 7734, 309, 261, 3076, 18, 14963, 2932, 1908, 6076, 6, 3719, 288, 5411, 11784, 18, 1684, 3375, 3829, 5621, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 4605, 6, 3719, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 15617, 2742, 15745, 8863, 5411, 2332, 18, 659, 18, 8222, 2932, 11662, 310, 326, 15408, 3367, 8863, 5411, 7141, 3829, 18, 2211, 18, 3733, 5621, 5411, 368, 1410, 1746, 326, 15408, 3367, 12971, 5411, 11784, 18, 10740, 3375, 3829, 12, 8082, 2578, 1769, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 3125, 6, 3719, 288, 5411, 309, 261, 2011, 422, 1104, 6353, 13, 288, 7734, 8058, 284, 273, 394, 8058, 5621, 7734, 284, 18, 542, 1225, 12, 23, 3361, 16, 23014, 1769, 7734, 1104, 6353, 273, 394, 4163, 6353, 12, 2211, 16, 333, 16, 4766, 2398, 315, 3125, 316, 3460, 3113, 315, 3125, 225, 3104, 4766, 2398, 23453, 4200, 16, 629, 1769, 7734, 1104, 6353, 18, 542, 20191, 12, 5743, 1769, 5411, 289, 5411, 1104, 6353, 18, 542, 6207, 12, 3767, 1769, 5411, 368, 202, 202, 2972, 1964, 18, 4720, 382, 1964, 2932, 29636, 3113, 638, 16, 638, 1769, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 3125, 4804, 6, 3719, 288, 5411, 15117, 18, 4720, 2134, 382, 1964, 5621, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 1767, 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, 918, 26100, 261, 1803, 1133, 6324, 13, 288, 565, 514, 1296, 273, 6324, 18, 588, 1803, 2189, 5621, 3639, 775, 288, 7734, 309, 261, 3076, 18, 14963, 2932, 1908, 6076, 6, 3719, 288, 5411, 11784, 18, 1684, 3375, 3829, 5621, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 4605, 6, 3719, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 15617, 2742, 15745, 8863, 5411, 2332, 18, 659, 18, 8222, 2932, 11662, 310, 326, 15408, 3367, 8863, 5411, 7141, 3829, 18, 2211, 18, 3733, 5621, 5411, 368, 1410, 1746, 326, 15408, 3367, 12971, 5411, 11784, 18, 10740, 3375, 3829, 12, 8082, 2578, 1769, 3639, 289, 3639, 469, 309, 261, 3076, 18, 14963, 2932, 3125, 6, 3719, 288, 2 ]
this.markFilterSource = new MarkFilterScannerSource(source); this.source = new LineFilterScannerSource(markFilterSource);
this.source = new LineBufferScannerSource(source);
public void setSource(IScannerSource source) { this.markFilterSource = new MarkFilterScannerSource(source); this.source = new LineFilterScannerSource(markFilterSource); this.support = new DefaultScannerSupport(this.source); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18913, 12, 45, 11338, 1830, 1084, 13, 288, 3639, 333, 18, 3355, 1586, 1830, 273, 394, 6622, 1586, 11338, 1830, 12, 3168, 1769, 3639, 333, 18, 3168, 273, 394, 5377, 1586, 11338, 1830, 12, 3355, 1586, 1830, 1769, 3639, 333, 18, 13261, 273, 394, 2989, 11338, 6289, 12, 2211, 18, 3168, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18913, 12, 45, 11338, 1830, 1084, 13, 288, 3639, 333, 18, 3355, 1586, 1830, 273, 394, 6622, 1586, 11338, 1830, 12, 3168, 1769, 3639, 333, 18, 3168, 273, 394, 5377, 1586, 11338, 1830, 12, 3355, 1586, 1830, 1769, 3639, 333, 18, 13261, 273, 394, 2989, 11338, 6289, 12, 2211, 18, 3168, 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 ]
Driver.debug("supportsSchemasInTableDefinitions " + schemas);
if (Driver.logDebug) Driver.debug("supportsSchemasInTableDefinitions " + schemas);
public boolean supportsSchemasInTableDefinitions() throws SQLException { boolean schemas = connection.haveMinimumServerVersion("7.3"); Driver.debug("supportsSchemasInTableDefinitions " + schemas); return schemas; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 16749, 382, 1388, 7130, 1435, 1216, 6483, 202, 95, 202, 202, 6494, 12783, 273, 1459, 18, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 8863, 202, 202, 4668, 18, 4148, 2932, 28064, 16749, 382, 1388, 7130, 315, 397, 12783, 1769, 202, 202, 2463, 12783, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 16749, 382, 1388, 7130, 1435, 1216, 6483, 202, 95, 202, 202, 6494, 12783, 273, 1459, 18, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 8863, 202, 202, 4668, 18, 4148, 2932, 28064, 16749, 382, 1388, 7130, 315, 397, 12783, 1769, 202, 202, 2463, 12783, 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 ]
HttpURL sourceURL = new HttpURL(uri); final WebdavResource resource = new WebdavResource(sourceURL, WebdavResource.NOACTION, WebdavResource.getDefaultDepth()); if(!resource.putMethod(content)) {
final String filename = uri.substring(uri.lastIndexOf("/")); final String uriPrefix = uri.substring(0, uri.lastIndexOf("/")); final HttpURL sourceURL = new HttpURL(uri); final WebdavResource resource = getWebdavResource(uriPrefix); if(!resource.putMethod(uriPrefix + filename, content)) {
static public void createResource(String uri, String content) throws HttpException, IOException { HttpURL sourceURL = new HttpURL(uri); final WebdavResource resource = new WebdavResource(sourceURL, WebdavResource.NOACTION, WebdavResource.getDefaultDepth()); if(!resource.putMethod(content)) { throw new HttpException("Error creating resource: " + uri + " Status: " + resource.getStatusCode() + " Message: " + resource.getStatusMessage()); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/c9a1ace561f344256eee5b0061b5a37b5eeb9209/WebDAVUtil.java/clean/src/blocks/webdav/java/org/apache/cocoon/components/webdav/WebDAVUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 24317, 12, 780, 2003, 16, 514, 913, 13, 565, 1216, 23190, 16, 1860, 288, 3639, 2541, 1785, 1084, 1785, 273, 394, 2541, 1785, 12, 1650, 1769, 3639, 727, 2999, 20752, 1420, 1058, 273, 394, 2999, 20752, 1420, 12, 3168, 1785, 16, 4766, 18701, 2999, 20752, 1420, 18, 3417, 12249, 16, 4766, 18701, 2999, 20752, 1420, 18, 588, 1868, 6148, 10663, 13491, 309, 12, 5, 3146, 18, 458, 1305, 12, 1745, 3719, 288, 5411, 604, 394, 23190, 2932, 668, 4979, 1058, 30, 315, 397, 2003, 4766, 565, 397, 315, 2685, 30, 315, 397, 1058, 18, 588, 14041, 1435, 4766, 565, 397, 315, 2350, 30, 315, 397, 1058, 18, 588, 1482, 1079, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 24317, 12, 780, 2003, 16, 514, 913, 13, 565, 1216, 23190, 16, 1860, 288, 3639, 2541, 1785, 1084, 1785, 273, 394, 2541, 1785, 12, 1650, 1769, 3639, 727, 2999, 20752, 1420, 1058, 273, 394, 2999, 20752, 1420, 12, 3168, 1785, 16, 4766, 18701, 2999, 20752, 1420, 18, 3417, 12249, 16, 4766, 18701, 2999, 20752, 1420, 18, 588, 1868, 6148, 10663, 13491, 309, 12, 5, 3146, 18, 458, 1305, 12, 1745, 3719, 288, 5411, 604, 394, 23190, 2932, 668, 4979, 1058, 30, 315, 397, 2003, 4766, 565, 397, 315, 2685, 30, 315, 397, 1058, 18, 588, 14041, 1435, 4766, 565, 397, 315, 2350, 30, 315, 397, 1058, 18, 588, 1482, 1079, 10663, 3639, 289, 565, 289, 2 ]
return new CPPASTTemplatedTypeTemplateParameter(); }
return new CPPASTTemplatedTypeTemplateParameter(); }
protected ICPPASTTemplatedTypeTemplateParameter createTemplatedTemplateParameter() { return new CPPASTTemplatedTypeTemplateParameter(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 4258, 4066, 882, 26033, 690, 559, 2283, 1662, 752, 26033, 690, 2283, 1662, 1435, 288, 202, 202, 2463, 394, 5181, 4066, 882, 26033, 690, 559, 2283, 1662, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 1117, 467, 4258, 4066, 882, 26033, 690, 559, 2283, 1662, 752, 26033, 690, 2283, 1662, 1435, 288, 202, 202, 2463, 394, 5181, 4066, 882, 26033, 690, 559, 2283, 1662, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean supportsUnicast = false; try { supportsUnicast = reply.supportsUnicast(); } catch(BadPacketException e) { }
boolean supportsUnicast = reply.supportsUnicast();
protected void handlePingReply(PingReply reply, ReplyHandler handler) { //update hostcatcher (even if the reply isn't for me) boolean newAddress = RouterService.getHostCatcher().add(reply, handler); //First route to originator in usual manner. ReplyHandler replyHandler = _pingRouteTable.getReplyHandler(reply.getGUID()); if(replyHandler != null) { replyHandler.handlePingReply(reply, handler); } else { if(RECORD_STATS) RouteErrorStat.PING_REPLY_ROUTE_ERRORS.incrementStat(); handler.countDroppedMessage(); } boolean supportsUnicast = false; try { supportsUnicast = reply.supportsUnicast(); } catch(BadPacketException e) { } //Then, if a marked pong from an Ultrapeer that we've never seen before, //send to all leaf connections except replyHandler (which may be null), //irregardless of GUID. The leafs will add the address then drop the //pong as they have no routing entry. Note that if Ultrapeers are very //prevalent, this may consume too much bandwidth. //Also forward any GUESS pongs to all leaves. if (newAddress && (reply.isMarked() || supportsUnicast)) { List list=_manager.getInitializedClientConnections2(); for (int i=0; i<list.size(); i++) { ManagedConnection c = (ManagedConnection)list.get(i); if (c!=handler && c!=replyHandler) { c.handlePingReply(reply, handler); } } } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/1ea561b940e0883ff7f44b42f1435559b320e072/MessageRouter.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/MessageRouter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 17223, 7817, 12, 17223, 7817, 4332, 16, 4766, 282, 16202, 1503, 1838, 13, 288, 3639, 368, 2725, 1479, 14683, 264, 261, 16728, 309, 326, 4332, 5177, 1404, 364, 1791, 13, 3639, 1250, 394, 1887, 273, 1875, 565, 9703, 1179, 18, 588, 2594, 14842, 264, 7675, 1289, 12, 10629, 16, 1838, 1769, 3639, 368, 3759, 1946, 358, 4026, 639, 316, 25669, 21296, 18, 3639, 16202, 1503, 4332, 1503, 273, 5411, 389, 1382, 3255, 1388, 18, 588, 7817, 1503, 12, 10629, 18, 588, 17525, 10663, 3639, 309, 12, 10629, 1503, 480, 446, 13, 288, 5411, 4332, 1503, 18, 4110, 17223, 7817, 12, 10629, 16, 1838, 1769, 3639, 289, 3639, 469, 288, 1082, 202, 430, 12, 22261, 67, 31983, 13, 4697, 202, 3255, 668, 5000, 18, 20002, 67, 862, 23893, 67, 30334, 67, 29127, 18, 15016, 5000, 5621, 5411, 1838, 18, 1883, 23683, 1079, 5621, 3639, 289, 202, 202, 6494, 6146, 984, 12544, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 28064, 984, 12544, 273, 4332, 18, 28064, 984, 12544, 5621, 202, 202, 97, 1044, 12, 6434, 6667, 503, 425, 13, 288, 202, 202, 97, 3639, 368, 20112, 16, 309, 279, 9350, 26856, 628, 392, 587, 80, 313, 1273, 264, 716, 732, 8081, 5903, 5881, 1865, 16, 3639, 368, 4661, 358, 777, 7839, 5921, 1335, 4332, 1503, 261, 12784, 2026, 506, 446, 3631, 3639, 368, 481, 1574, 1060, 2656, 434, 20322, 18, 225, 1021, 7839, 87, 903, 527, 326, 1758, 1508, 3640, 326, 3639, 368, 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, 1640, 17223, 7817, 12, 17223, 7817, 4332, 16, 4766, 282, 16202, 1503, 1838, 13, 288, 3639, 368, 2725, 1479, 14683, 264, 261, 16728, 309, 326, 4332, 5177, 1404, 364, 1791, 13, 3639, 1250, 394, 1887, 273, 1875, 565, 9703, 1179, 18, 588, 2594, 14842, 264, 7675, 1289, 12, 10629, 16, 1838, 1769, 3639, 368, 3759, 1946, 358, 4026, 639, 316, 25669, 21296, 18, 3639, 16202, 1503, 4332, 1503, 273, 5411, 389, 1382, 3255, 1388, 18, 588, 7817, 1503, 12, 10629, 18, 588, 17525, 10663, 3639, 309, 12, 10629, 1503, 480, 446, 13, 288, 5411, 4332, 1503, 18, 4110, 17223, 7817, 12, 10629, 16, 1838, 1769, 3639, 289, 3639, 469, 288, 1082, 202, 430, 12, 22261, 67, 2 ]
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode();
public quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { quickfix.field.UnderlyingCFICode value = new quickfix.field.UnderlyingCFICode();
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix44/Email.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 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 ]
if (value != null) { convertValue(); }
if (value != null) { convertValue(); }
public void doTag(XMLOutput output) throws Exception { SQLExecutionTag parent = (SQLExecutionTag) findAncestorWithClass(this, SQLExecutionTag.class); if (parent == null) { throw new JellyException(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); } if (value != null) { convertValue(); } parent.addSQLParameter(value); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/ed885dee7d315dcab3e18c17a0ba9823bcce7968/DateParamTag.java/buggy/src/java/org/apache/commons/jelly/tags/sql/DateParamTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 1805, 12, 4201, 1447, 876, 13, 1216, 1185, 288, 202, 202, 3997, 3210, 1805, 982, 273, 1082, 202, 12, 3997, 3210, 1805, 13, 1104, 15637, 1190, 797, 12, 2211, 16, 3063, 3210, 1805, 18, 1106, 1769, 202, 202, 430, 261, 2938, 422, 446, 13, 288, 1082, 202, 12849, 394, 804, 292, 715, 503, 12, 3805, 18, 24906, 2932, 3997, 67, 8388, 67, 5069, 26498, 67, 14943, 7923, 1769, 202, 202, 97, 202, 202, 430, 261, 1132, 480, 446, 13, 288, 1082, 202, 6283, 620, 5621, 202, 202, 97, 202, 202, 2938, 18, 1289, 3997, 1662, 12, 1132, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 1805, 12, 4201, 1447, 876, 13, 1216, 1185, 288, 202, 202, 3997, 3210, 1805, 982, 273, 1082, 202, 12, 3997, 3210, 1805, 13, 1104, 15637, 1190, 797, 12, 2211, 16, 3063, 3210, 1805, 18, 1106, 1769, 202, 202, 430, 261, 2938, 422, 446, 13, 288, 1082, 202, 12849, 394, 804, 292, 715, 503, 12, 3805, 18, 24906, 2932, 3997, 67, 8388, 67, 5069, 26498, 67, 14943, 7923, 1769, 202, 202, 97, 202, 202, 430, 261, 1132, 480, 446, 13, 288, 1082, 202, 6283, 620, 5621, 202, 202, 97, 202, 202, 2938, 18, 1289, 3997, 1662, 12, 1132, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (int i = startAt; i <= stopAt; i += incr)
for (int i = startAt; i <= stopAt; i += incr) {
protected void addToSet(int val, int end, int incr, int type) throws ParseException { TreeSet set = getSet(type); if (type == SECOND || type == MINUTE) { if ((val < 0 || val > 59 || end > 59) && (val != ALL_SPEC_INT)) throw new ParseException( "Minute and Second values must be between 0 and 59", -1); } else if (type == HOUR) { if ((val < 0 || val > 23 || end > 23) && (val != ALL_SPEC_INT)) throw new ParseException( "Hour values must be between 0 and 23", -1); } else if (type == DAY_OF_MONTH) { if ((val < 1 || val > 31 || end > 31) && (val != ALL_SPEC_INT) && (val != NO_SPEC_INT)) throw new ParseException( "Day of month values must be between 1 and 31", -1); } else if (type == MONTH) { if ((val < 1 || val > 12 || end > 12) && (val != ALL_SPEC_INT)) throw new ParseException( "Month values must be between 1 and 12", -1); } else if (type == DAY_OF_WEEK) { if ((val == 0 || val > 7 || end > 7) && (val != ALL_SPEC_INT) && (val != NO_SPEC_INT)) throw new ParseException( "Day-of-Week values must be between 1 and 7", -1); } if ((incr == 0 || incr == -1) && val != ALL_SPEC_INT) { if (val != -1) set.add(new Integer(val)); else set.add(NO_SPEC); return; } int startAt = val; int stopAt = end; if (val == ALL_SPEC_INT && incr <= 0) { incr = 1; set.add(ALL_SPEC); // put in a marker, but also fill values } if (type == SECOND || type == MINUTE) { if (stopAt == -1) stopAt = 59; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 0; } else if (type == HOUR) { if (stopAt == -1) stopAt = 23; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 0; } else if (type == DAY_OF_MONTH) { if (stopAt == -1) stopAt = 31; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == MONTH) { if (stopAt == -1) stopAt = 12; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == DAY_OF_WEEK) { if (stopAt == -1) stopAt = 7; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == YEAR) { if (stopAt == -1) stopAt = 2099; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1970; } for (int i = startAt; i <= stopAt; i += incr) set.add(new Integer(i)); }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/CronExpression.java/clean/src/java/org/quartz/CronExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 9604, 694, 12, 474, 1244, 16, 509, 679, 16, 509, 17633, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 19461, 444, 273, 336, 694, 12, 723, 1769, 3639, 309, 261, 723, 422, 19379, 747, 618, 422, 21596, 13, 288, 5411, 309, 14015, 1125, 411, 374, 747, 1244, 405, 14995, 747, 679, 405, 14995, 13, 597, 261, 1125, 480, 8061, 67, 13847, 67, 3217, 3719, 10792, 604, 394, 10616, 12, 18701, 315, 18329, 471, 7631, 924, 1297, 506, 3086, 374, 471, 14995, 3113, 18701, 300, 21, 1769, 3639, 289, 469, 309, 261, 723, 422, 17001, 13, 288, 5411, 309, 14015, 1125, 411, 374, 747, 1244, 405, 10213, 747, 679, 405, 10213, 13, 597, 261, 1125, 480, 8061, 67, 13847, 67, 3217, 3719, 10792, 604, 394, 10616, 12, 18701, 315, 13433, 924, 1297, 506, 3086, 374, 471, 10213, 3113, 300, 21, 1769, 3639, 289, 469, 309, 261, 723, 422, 11579, 67, 3932, 67, 13942, 13, 288, 5411, 309, 14015, 1125, 411, 404, 747, 1244, 405, 8231, 747, 679, 405, 8231, 13, 597, 261, 1125, 480, 8061, 67, 13847, 67, 3217, 13, 10792, 597, 261, 1125, 480, 3741, 67, 13847, 67, 3217, 3719, 10792, 604, 394, 10616, 12, 18701, 315, 4245, 434, 3138, 924, 1297, 506, 3086, 404, 471, 8231, 3113, 300, 21, 1769, 3639, 289, 469, 309, 261, 723, 422, 15813, 13, 288, 5411, 309, 14015, 1125, 411, 404, 747, 1244, 405, 2593, 747, 679, 405, 2593, 13, 597, 261, 1125, 480, 8061, 67, 13847, 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, 9604, 694, 12, 474, 1244, 16, 509, 679, 16, 509, 17633, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 19461, 444, 273, 336, 694, 12, 723, 1769, 3639, 309, 261, 723, 422, 19379, 747, 618, 422, 21596, 13, 288, 5411, 309, 14015, 1125, 411, 374, 747, 1244, 405, 14995, 747, 679, 405, 14995, 13, 597, 261, 1125, 480, 8061, 67, 13847, 67, 3217, 3719, 10792, 604, 394, 10616, 12, 18701, 315, 18329, 471, 7631, 924, 1297, 506, 3086, 374, 471, 14995, 3113, 18701, 300, 21, 1769, 3639, 289, 469, 309, 261, 723, 422, 17001, 13, 288, 5411, 309, 14015, 1125, 411, 374, 747, 1244, 405, 10213, 747, 679, 405, 10213, 13, 597, 261, 1125, 480, 2 ]
asm.emitMOV_Reg_RegDisp (EBX, S0, VM_Entrypoints.JNIRefsField.getOffset());
asm.emitMOV_Reg_RegDisp (EBX, S0, VM_Entrypoints.JNIRefsField.getOffsetAsInt());
static void popJNIrefForEpilog(VM_Assembler asm) { // on entry, S0 contains a pointer to the VM_Thread.jniEnv // set TOP to point to entry below the last frame asm.emitMOV_Reg_RegDisp (T1, S0, VM_Entrypoints.JNIRefsSavedFPField.getOffset()); // ebx <- JNIRefsSavedFP asm.emitMOV_RegDisp_Reg (S0, VM_Entrypoints.JNIRefsTopField.getOffset(), T1); // JNIRefsTop <- ebx asm.emitSUB_RegDisp_Imm (S0, VM_Entrypoints.JNIRefsTopField.getOffset(), WORDSIZE); // JNIRefsTop -= 4 // load savedFP with the index to the last frame asm.emitMOV_Reg_RegDisp (EBX, S0, VM_Entrypoints.JNIRefsField.getOffset()); // ebx <- JNIRefs base asm.emitMOV_Reg_RegIdx (EBX, EBX, T1, asm.BYTE, 0); // ebx <- (JNIRefs base + SavedFP index) asm.emitMOV_RegDisp_Reg (S0, VM_Entrypoints.JNIRefsSavedFPField.getOffset(), EBX); // JNIRefsSavedFP <- ebx }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_JNICompiler.java/clean/rvm/src/vm/arch/intel/jni/VM_JNICompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1843, 46, 50, 45, 1734, 1290, 18918, 21947, 12, 7397, 67, 1463, 5747, 749, 20415, 13, 288, 565, 368, 603, 1241, 16, 348, 20, 1914, 279, 4407, 358, 326, 8251, 67, 3830, 18, 78, 15834, 3491, 565, 368, 444, 18680, 358, 1634, 358, 1241, 5712, 326, 1142, 2623, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 261, 56, 21, 16, 348, 20, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 16776, 30246, 974, 18, 588, 2335, 10663, 565, 368, 20371, 92, 3290, 804, 50, 45, 9837, 16776, 30246, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 1669, 84, 67, 1617, 261, 55, 20, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 3401, 974, 18, 588, 2335, 9334, 399, 21, 1769, 3639, 368, 804, 50, 45, 9837, 3401, 3290, 20371, 92, 565, 20415, 18, 18356, 8362, 67, 1617, 1669, 84, 67, 1170, 81, 261, 55, 20, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 3401, 974, 18, 588, 2335, 9334, 21464, 4574, 1769, 225, 368, 804, 50, 45, 9837, 3401, 3947, 1059, 565, 368, 1262, 5198, 30246, 598, 326, 770, 358, 326, 1142, 2623, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 261, 29258, 60, 16, 348, 20, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 974, 18, 588, 2335, 31720, 10663, 1850, 368, 20371, 92, 3290, 804, 50, 45, 9837, 1026, 565, 20415, 18, 18356, 5980, 58, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1843, 46, 50, 45, 1734, 1290, 18918, 21947, 12, 7397, 67, 1463, 5747, 749, 20415, 13, 288, 565, 368, 603, 1241, 16, 348, 20, 1914, 279, 4407, 358, 326, 8251, 67, 3830, 18, 78, 15834, 3491, 565, 368, 444, 18680, 358, 1634, 358, 1241, 5712, 326, 1142, 2623, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 261, 56, 21, 16, 348, 20, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 16776, 30246, 974, 18, 588, 2335, 10663, 565, 368, 20371, 92, 3290, 804, 50, 45, 9837, 16776, 30246, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 1669, 84, 67, 1617, 261, 55, 20, 16, 8251, 67, 1622, 4139, 18, 46, 2 ]
if (this.selector == methods[i].selector && this.areParametersEqual(methods[i])) {
if (CharOperation.equals(this.selector, methods[i].selector) && this.areParametersEqual(methods[i])) {
public SyntheticAccessMethodBinding(FieldBinding targetField, boolean isReadAccess, ReferenceBinding declaringClass) { this.modifiers = AccDefault | AccStatic | AccSynthetic; SourceTypeBinding declaringSourceType = (SourceTypeBinding) declaringClass; SyntheticAccessMethodBinding[] knownAccessMethods = declaringSourceType.syntheticAccessMethods(); int methodId = knownAccessMethods == null ? 0 : knownAccessMethods.length; this.index = methodId; this.selector = CharOperation.concat(AccessMethodPrefix, String.valueOf(methodId).toCharArray()); if (isReadAccess) { this.returnType = targetField.type; if (targetField.isStatic()) { this.parameters = NoParameters; } else { this.parameters = new TypeBinding[1]; this.parameters[0] = declaringSourceType; } this.targetReadField = targetField; this.accessType = FieldReadAccess; } else { this.returnType = VoidBinding; if (targetField.isStatic()) { this.parameters = new TypeBinding[1]; this.parameters[0] = targetField.type; } else { this.parameters = new TypeBinding[2]; this.parameters[0] = declaringSourceType; this.parameters[1] = targetField.type; } this.targetWriteField = targetField; this.accessType = FieldWriteAccess; } this.thrownExceptions = NoExceptions; this.declaringClass = declaringSourceType; // check for method collision boolean needRename; do { check : { needRename = false; // check for collision with known methods MethodBinding[] methods = declaringSourceType.methods; for (int i = 0, length = methods.length; i < length; i++) { if (this.selector == methods[i].selector && this.areParametersEqual(methods[i])) { needRename = true; break check; } } // check for collision with synthetic accessors if (knownAccessMethods != null) { for (int i = 0, length = knownAccessMethods.length; i < length; i++) { if (knownAccessMethods[i] == null) continue; if (this.selector == knownAccessMethods[i].selector && this.areParametersEqual(methods[i])) { needRename = true; break check; } } } } if (needRename) { // retry with a selector postfixed by a growing methodId this.setSelector(CharOperation.concat(AccessMethodPrefix, String.valueOf(++methodId).toCharArray())); } } while (needRename); // retrieve sourceStart position for the target field for line number attributes FieldDeclaration[] fieldDecls = declaringSourceType.scope.referenceContext.fields; if (fieldDecls != null) { for (int i = 0, max = fieldDecls.length; i < max; i++) { if (fieldDecls[i].binding == targetField) { this.sourceStart = fieldDecls[i].sourceStart; return; } } } /* did not find the target field declaration - it is a synthetic one public class A { public class B { public class C { void foo() { System.out.println("A.this = " + A.this); } } } public static void main(String args[]) { new A().new B().new C().foo(); } } */ // We now at this point - per construction - it is for sure an enclosing instance, we are going to // show the target field type declaration location. this.sourceStart = declaringSourceType.scope.referenceContext.sourceStart; // use the target declaring class name position instead }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a4342ed9aa4d42a5f6414550e01ed96e0ac5d655/SyntheticAccessMethodBinding.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticAccessMethodBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16091, 16466, 1862, 1305, 5250, 12, 974, 5250, 1018, 974, 16, 1250, 353, 1994, 1862, 16, 6268, 5250, 3496, 14682, 13, 288, 202, 202, 2211, 18, 15432, 273, 15980, 1868, 571, 15980, 5788, 571, 15980, 10503, 16466, 31, 202, 202, 1830, 559, 5250, 20845, 1830, 559, 273, 261, 1830, 559, 5250, 13, 3496, 14682, 31, 202, 202, 10503, 16466, 1862, 1305, 5250, 8526, 4846, 1862, 4712, 273, 20845, 1830, 559, 18, 11982, 16466, 1862, 4712, 5621, 202, 202, 474, 707, 548, 273, 4846, 1862, 4712, 422, 446, 692, 374, 294, 4846, 1862, 4712, 18, 2469, 31, 202, 202, 2211, 18, 1615, 273, 707, 548, 31, 202, 202, 2211, 18, 9663, 273, 3703, 2988, 18, 16426, 12, 1862, 1305, 2244, 16, 514, 18, 1132, 951, 12, 2039, 548, 2934, 869, 15936, 10663, 202, 202, 430, 261, 291, 1994, 1862, 13, 288, 1082, 202, 2211, 18, 2463, 559, 273, 1018, 974, 18, 723, 31, 1082, 202, 430, 261, 3299, 974, 18, 291, 5788, 10756, 288, 9506, 202, 2211, 18, 3977, 273, 2631, 2402, 31, 1082, 202, 97, 469, 288, 9506, 202, 2211, 18, 3977, 273, 394, 1412, 5250, 63, 21, 15533, 9506, 202, 2211, 18, 3977, 63, 20, 65, 273, 20845, 1830, 559, 31, 1082, 202, 97, 1082, 202, 2211, 18, 3299, 1994, 974, 273, 1018, 974, 31, 1082, 202, 2211, 18, 3860, 559, 273, 2286, 1994, 1862, 31, 202, 202, 97, 469, 288, 1082, 202, 2211, 18, 2463, 559, 273, 6988, 5250, 31, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16091, 16466, 1862, 1305, 5250, 12, 974, 5250, 1018, 974, 16, 1250, 353, 1994, 1862, 16, 6268, 5250, 3496, 14682, 13, 288, 202, 202, 2211, 18, 15432, 273, 15980, 1868, 571, 15980, 5788, 571, 15980, 10503, 16466, 31, 202, 202, 1830, 559, 5250, 20845, 1830, 559, 273, 261, 1830, 559, 5250, 13, 3496, 14682, 31, 202, 202, 10503, 16466, 1862, 1305, 5250, 8526, 4846, 1862, 4712, 273, 20845, 1830, 559, 18, 11982, 16466, 1862, 4712, 5621, 202, 202, 474, 707, 548, 273, 4846, 1862, 4712, 422, 446, 692, 374, 294, 4846, 1862, 4712, 18, 2469, 31, 202, 202, 2211, 18, 1615, 273, 707, 548, 31, 202, 202, 2211, 18, 9663, 273, 3703, 2988, 18, 16426, 12, 2 ]
public static boolean isCollectionWithInitialCapacity(@Nullable PsiType type){ if(!(type instanceof PsiClassType)) {
public static boolean isCollectionWithInitialCapacity( @Nullable PsiType type){ if(!(type instanceof PsiClassType)){
public static boolean isCollectionWithInitialCapacity(@Nullable PsiType type){ if(!(type instanceof PsiClassType)) { return false; } final PsiClassType classType = (PsiClassType) type; final PsiClass resolved = classType.resolve(); if(resolved == null) { return false; } final String className = resolved.getQualifiedName(); return s_collectionClassesRequiringCapacity.contains(className); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b38fc3306f3e89c0f06e6c584ed1b7d3e946cc50/CollectionUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 26506, 1190, 4435, 7437, 26964, 13349, 453, 7722, 559, 618, 15329, 3639, 309, 12, 5, 12, 723, 1276, 453, 7722, 18328, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 18328, 24959, 273, 261, 52, 7722, 18328, 13, 618, 31, 3639, 727, 453, 7722, 797, 4640, 273, 24959, 18, 10828, 5621, 3639, 309, 12, 11792, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 2658, 273, 4640, 18, 588, 12345, 5621, 3639, 327, 272, 67, 5548, 4818, 426, 372, 11256, 7437, 18, 12298, 12, 12434, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 1250, 26506, 1190, 4435, 7437, 26964, 13349, 453, 7722, 559, 618, 15329, 3639, 309, 12, 5, 12, 723, 1276, 453, 7722, 18328, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 18328, 24959, 273, 261, 52, 7722, 18328, 13, 618, 31, 3639, 727, 453, 7722, 797, 4640, 273, 24959, 18, 10828, 5621, 3639, 309, 12, 11792, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 2658, 273, 4640, 18, 588, 12345, 5621, 3639, 327, 272, 67, 5548, 4818, 426, 372, 11256, 7437, 18, 12298, 12, 12434, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
doActiveConsoleChanged(console, consoleView);
IWorkbenchPage page = consoleView.getViewSite().getPage(); if (page != null) { PageRegistry reg = getPageRegistry(page); reg.doActiveConsoleChanged(console, consoleView); }
public void consoleActivated(IConsoleView consoleView, NIConsole console) { doActiveConsoleChanged(console, consoleView); }
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/4ac520b948009ac8bebb514656f12bf19c28c2d6/ToolRegistry.java/clean/de.walware.statet.base/srcNico/de/walware/statet/nico/ToolRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2983, 28724, 12, 45, 10215, 1767, 2983, 1767, 16, 423, 45, 10215, 2983, 13, 288, 202, 202, 2896, 3896, 10215, 5033, 12, 8698, 16, 2983, 1767, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2983, 28724, 12, 45, 10215, 1767, 2983, 1767, 16, 423, 45, 10215, 2983, 13, 288, 202, 202, 2896, 3896, 10215, 5033, 12, 8698, 16, 2983, 1767, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bug = editorInput.getBug();
taskData = editorInput.getBug();
public void init(IEditorSite site, IEditorInput input) throws PartInitException { if (!(input instanceof ExistingBugEditorInput)) throw new PartInitException("Invalid Input: Must be ExistingBugEditorInput"); ExistingBugEditorInput editorInput = (ExistingBugEditorInput) input; repository = editorInput.getRepository(); setSite(site); setInput(input); bugzillaInput = editorInput; bugzillaOutlineModel = BugzillaOutlineNode.parseBugReport(bugzillaInput.getBug()); bug = editorInput.getBug(); restoreBug(); isDirty = false; updateEditorTitle(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d6adf902ecafbef942349464348e4435750dd099/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 45, 6946, 4956, 2834, 16, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 202, 202, 430, 16051, 12, 2630, 1276, 28257, 19865, 6946, 1210, 3719, 1082, 202, 12849, 394, 6393, 2570, 503, 2932, 1941, 2741, 30, 6753, 506, 28257, 19865, 6946, 1210, 8863, 202, 202, 9895, 19865, 6946, 1210, 4858, 1210, 273, 261, 9895, 19865, 6946, 1210, 13, 810, 31, 202, 202, 9071, 273, 4858, 1210, 18, 588, 3305, 5621, 202, 202, 542, 4956, 12, 4256, 1769, 202, 202, 542, 1210, 12, 2630, 1769, 202, 202, 925, 15990, 1210, 273, 4858, 1210, 31, 202, 202, 925, 15990, 21805, 1488, 273, 16907, 15990, 21805, 907, 18, 2670, 19865, 4820, 12, 925, 15990, 1210, 18, 588, 19865, 10663, 202, 202, 925, 273, 4858, 1210, 18, 588, 19865, 5621, 202, 202, 13991, 19865, 5621, 202, 202, 291, 10785, 273, 629, 31, 202, 202, 2725, 6946, 4247, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 45, 6946, 4956, 2834, 16, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 202, 202, 430, 16051, 12, 2630, 1276, 28257, 19865, 6946, 1210, 3719, 1082, 202, 12849, 394, 6393, 2570, 503, 2932, 1941, 2741, 30, 6753, 506, 28257, 19865, 6946, 1210, 8863, 202, 202, 9895, 19865, 6946, 1210, 4858, 1210, 273, 261, 9895, 19865, 6946, 1210, 13, 810, 31, 202, 202, 9071, 273, 4858, 1210, 18, 588, 3305, 5621, 202, 202, 542, 4956, 12, 4256, 1769, 202, 202, 542, 1210, 12, 2630, 1769, 202, 202, 925, 15990, 1210, 273, 4858, 1210, 31, 202, 202, 925, 15990, 21805, 1488, 273, 16907, 15990, 21805, 907, 18, 2670, 19865, 4820, 12, 925, 15990, 2 ]
try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) setTitle(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accesskey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setMaxlength((String) evalAttr("maxlength", getMaxlengthExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELTextTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 856, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 15034, 12443, 12, 5507, 13, 5302, 3843, 2932, 19626, 3113, 8088, 329, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 15604, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 10851, 2469, 12443, 780, 13, 5302, 3843, 2932, 27875, 3113, 7288, 2469, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 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, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 856, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 2 ]
case 586: {
case 585: {
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a0ef25c366453f5aff64a3c99c145987b17c8f23/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 7734, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 13, 7734, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 2678, 7005, 310, 4932, 315, 397, 4766, 4202, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 622, 315, 397, 4766, 4202, 846, 87, 1228, 18, 588, 1670, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 6153, 397, 4766, 4202, 846, 87, 1228, 18, 588, 1494, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 1368, 392, 2756, 8863, 7734, 289, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 576, 30, 225, 14488, 559, 493, 33, 16980, 559, 5411, 368, 5411, 648, 576, 30, 7734, 898, 31, 2398, 368, 5411, 368, 6781, 890, 30, 225, 14488, 559, 493, 33, 1250, 5411, 368, 5411, 648, 890, 30, 288, 7734, 10921, 2678, 18, 542, 11901, 21, 12, 82, 74, 18, 15512, 559, 907, 12, 917, 9334, 3742, 18, 5507, 1435, 10019, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 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, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 7734, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 13, 7734, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 2678, 7005, 310, 4932, 315, 397, 4766, 4202, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 622, 315, 397, 4766, 2 ]
return owner;
public Tank checkHit(MapPoint location, boolean remove) { ListIterator iter = m_Flying.listIterator(); while (iter.hasNext()) { Missile missile = (Missile)iter.next(); if (location.equals(missile.getCurrentLocation())) { Tank owner = missile.getOwner(); if (remove) { iter.remove(); } return owner; } if (missile.getFlightPhase() == 2) { MapPoint missileLoc = new MapPoint(missile.getCurrentLocation()); missileLoc.travel(missile.getDirection()); if (location.equals(missileLoc)) { Tank owner = missile.getOwner(); if (remove) { iter.remove(); } return owner; } } } return null; }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/aadf2a2397a5b9309ade4fbb1570002367b7a7fd/TankSoarWorld.java/clean/SoarSuite/Environments/JavaTankSoar/source/tanksoar/TankSoarWorld.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 565, 202, 482, 399, 2304, 866, 13616, 12, 863, 2148, 2117, 16, 1250, 1206, 13, 288, 202, 565, 202, 202, 682, 3198, 1400, 273, 312, 67, 42, 6291, 18, 1098, 3198, 5621, 202, 565, 202, 202, 17523, 261, 2165, 18, 5332, 2134, 10756, 288, 202, 565, 1082, 202, 27797, 398, 12543, 398, 273, 261, 27797, 398, 13, 2165, 18, 4285, 5621, 202, 565, 1082, 202, 430, 261, 3562, 18, 14963, 12, 3105, 398, 18, 588, 3935, 2735, 1435, 3719, 288, 202, 565, 9506, 202, 56, 2304, 3410, 273, 12543, 398, 18, 588, 5541, 5621, 202, 565, 9506, 202, 430, 261, 4479, 13, 288, 202, 565, 6862, 202, 2165, 18, 4479, 5621, 202, 565, 9506, 202, 97, 202, 565, 9506, 202, 2463, 3410, 31, 202, 565, 1082, 202, 97, 202, 565, 1082, 202, 430, 261, 3105, 398, 18, 588, 24243, 11406, 1435, 422, 576, 13, 288, 1082, 565, 1082, 202, 863, 2148, 12543, 398, 1333, 273, 394, 1635, 2148, 12, 3105, 398, 18, 588, 3935, 2735, 10663, 1082, 565, 1082, 202, 3105, 398, 1333, 18, 313, 7882, 12, 3105, 398, 18, 588, 8212, 10663, 1082, 565, 1082, 202, 430, 261, 3562, 18, 14963, 12, 3105, 398, 1333, 3719, 288, 1082, 565, 9506, 202, 56, 2304, 3410, 273, 12543, 398, 18, 588, 5541, 5621, 1082, 565, 9506, 202, 430, 261, 4479, 13, 288, 1082, 565, 6862, 202, 2165, 18, 4479, 5621, 1082, 565, 9506, 202, 97, 1082, 565, 9506, 202, 2463, 3410, 31, 1082, 565, 1082, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 565, 202, 482, 399, 2304, 866, 13616, 12, 863, 2148, 2117, 16, 1250, 1206, 13, 288, 202, 565, 202, 202, 682, 3198, 1400, 273, 312, 67, 42, 6291, 18, 1098, 3198, 5621, 202, 565, 202, 202, 17523, 261, 2165, 18, 5332, 2134, 10756, 288, 202, 565, 1082, 202, 27797, 398, 12543, 398, 273, 261, 27797, 398, 13, 2165, 18, 4285, 5621, 202, 565, 1082, 202, 430, 261, 3562, 18, 14963, 12, 3105, 398, 18, 588, 3935, 2735, 1435, 3719, 288, 202, 565, 9506, 202, 56, 2304, 3410, 273, 12543, 398, 18, 588, 5541, 5621, 202, 565, 9506, 202, 430, 261, 4479, 13, 288, 202, 565, 6862, 202, 2165, 18, 4479, 5621, 202, 565, 9506, 202, 97, 202, 565, 2 ]
if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy (b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain (); writeBlockDataHeader (len); realOutput.write (b, off, len); }
blockData[ blockDataCount++ ] = (byte)data;
public void write (byte b[], int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException (); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy (b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain (); writeBlockDataHeader (len); realOutput.write (b, off, len); } } else realOutput.write (b, off, len); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/19f06d8622c5119a2b265f34d018cd1646e244f1/ObjectOutputStream.java/buggy/libjava/java/io/ObjectOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 7229, 324, 63, 6487, 509, 3397, 16, 509, 562, 13, 1216, 1860, 225, 288, 565, 309, 261, 2626, 751, 1463, 6450, 13, 565, 288, 1377, 309, 261, 1897, 411, 374, 13, 202, 12849, 394, 17768, 261, 1769, 1377, 309, 261, 2629, 751, 1380, 397, 562, 411, 25859, 67, 4574, 13, 1377, 288, 202, 3163, 18, 1126, 3530, 261, 70, 16, 3397, 16, 1203, 751, 16, 1203, 751, 1380, 16, 562, 1769, 202, 2629, 751, 1380, 1011, 562, 31, 1377, 289, 1377, 469, 1377, 288, 202, 72, 7596, 261, 1769, 202, 2626, 1768, 751, 1864, 261, 1897, 1769, 202, 7688, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 1769, 1377, 289, 565, 289, 565, 469, 1377, 2863, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 7229, 324, 63, 6487, 509, 3397, 16, 509, 562, 13, 1216, 1860, 225, 288, 565, 309, 261, 2626, 751, 1463, 6450, 13, 565, 288, 1377, 309, 261, 1897, 411, 374, 13, 202, 12849, 394, 17768, 261, 1769, 1377, 309, 261, 2629, 751, 1380, 397, 562, 411, 25859, 67, 4574, 13, 1377, 288, 202, 3163, 18, 1126, 3530, 261, 70, 16, 3397, 16, 1203, 751, 16, 1203, 751, 1380, 16, 562, 1769, 202, 2629, 751, 1380, 1011, 562, 31, 1377, 289, 1377, 469, 1377, 288, 202, 72, 7596, 261, 1769, 202, 2626, 1768, 751, 1864, 261, 1897, 1769, 202, 7688, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 1769, 1377, 289, 565, 289, 565, 2 ]
}
}
public void saveFormToModel(Widget frmModel, JXPathContext jxpc) throws BindingException { // Find the repeater Repeater repeater = (Repeater) frmModel.getWidget(this.repeaterId); // and his context JXPathContext repeaterContext = jxpc.getRelativeContext(jxpc.getPointer(this.repeaterPath)); // create set of updatedRowIds Set updatedRowIds = new HashSet(); //create list of rows to insert at end List rowsToInsert = new ArrayList(); // iterate rows... int formRowCount = repeater.getSize(); for (int i = 0; i < formRowCount; i++) { Repeater.RepeaterRow thisRow = repeater.getRow(i); Widget rowIdWidget = thisRow.getWidget(this.uniqueRowId); Object rowIdValue = rowIdWidget.getValue(); if (rowIdValue != null) { //if rowIdValue != null --> iterate nodes to find match Iterator rowPointers = repeaterContext.iteratePointers(this.rowPath); while (rowPointers.hasNext()) { Pointer jxp = (Pointer) rowPointers.next(); JXPathContext rowContext = repeaterContext.getRelativeContext(jxp); Object matchId = rowContext.getValue(this.uniqueRowIdPath); if (matchId != null && this.uniqueRowIdConvertor != null) { if (matchId instanceof String) { matchId = this.uniqueRowIdConvertor.convertFromString((String)matchId, this.uniqueRowIdConvertorLocale, null); } else { getLogger().warn("Convertor ignored on backend-value which isn't of type String."); } } if (rowIdValue.equals(matchId)) { // match! --> bind to children this.rowBinding.saveFormToModel(thisRow, rowContext); // --> store rowIdValue in list of updatedRowIds updatedRowIds.add(rowIdValue); break; } } } else { //if rowId == null --> remember to insert this one later rowsToInsert.add(thisRow); } } //again iterate nodes for deletion Iterator rowPointers = repeaterContext.iteratePointers(this.rowPath); List rowsToDelete = new ArrayList(); while (rowPointers.hasNext()) { Pointer jxp = (Pointer) rowPointers.next(); JXPathContext rowContext = repeaterContext.getRelativeContext(jxp); Object matchId = rowContext.getValue(this.uniqueRowIdPath); if (matchId != null && this.uniqueRowIdConvertor != null) { if (matchId instanceof String) { matchId = this.uniqueRowIdConvertor.convertFromString((String)matchId, this.uniqueRowIdConvertorLocale, null); } else { getLogger().warn("Convertor ignored on backend-value which isn't of type String."); } } // check if matchPath was in list of updates, if not --> bind for delete if (!updatedRowIds.contains(matchId)) { rowsToDelete.add(rowContext); } } if (rowsToDelete.size() > 0) { if (this.deleteRowBinding == null) { getLogger().warn("RepeaterBinding has detected rows to delete, " + "but misses the <on-delete-row> binding to do it."); } else { // run backwards through the list, so that we don't get into trouble by shifting indexes for (int i = rowsToDelete.size() - 1; i >= 0; i--) this.deleteRowBinding.saveFormToModel(frmModel, rowsToDelete.get(i)); } } // count how many we have now int indexCount = 1; rowPointers = repeaterContext.iteratePointers(this.rowPath); while (rowPointers.hasNext()) { rowPointers.next(); indexCount++; } // end with rows to insert (to make sure they don't get deleted!) if(rowsToInsert.size() > 0) { if (this.insertRowBinding != null) { Iterator rowIterator = rowsToInsert.iterator(); //register the factory! this.insertRowBinding.saveFormToModel(repeater, repeaterContext); while (rowIterator.hasNext()) { Repeater.RepeaterRow thisRow = (Repeater.RepeaterRow) rowIterator.next(); // --> create the path to let the context be created Pointer newRowContextPointer = repeaterContext.createPath(this.rowPath + "[" + indexCount + "]"); JXPathContext newRowContext = repeaterContext.getRelativeContext(newRowContextPointer); if (getLogger().isDebugEnabled()) getLogger().debug("inserted row at " + newRowContextPointer.asPath()); // + rebind to children for update this.rowBinding.saveFormToModel(thisRow, newRowContext); getLogger().debug("bound new row"); indexCount++; } } else { getLogger().warn("RepeaterBinding has detected rows to insert, " + "but misses the <on-insert-row> binding to do it."); } } if (getLogger().isDebugEnabled()) getLogger().debug("done saving rows " + toString()); }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/8424b04cd5510e196ce7f45d3338bfedd6d17792/RepeaterJXPathBinding.java/clean/src/blocks/woody/java/org/apache/cocoon/woody/binding/RepeaterJXPathBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 1204, 774, 1488, 12, 4609, 31074, 1488, 16, 804, 14124, 1042, 525, 92, 2436, 13, 1216, 15689, 503, 288, 3639, 368, 4163, 326, 16304, 2045, 3639, 868, 347, 2045, 16304, 2045, 273, 261, 426, 347, 2045, 13, 31074, 1488, 18, 588, 4609, 12, 2211, 18, 28956, 2045, 548, 1769, 3639, 368, 471, 18423, 819, 3639, 804, 14124, 1042, 16304, 2045, 1042, 273, 5411, 525, 92, 2436, 18, 588, 8574, 1042, 12, 78, 92, 2436, 18, 588, 4926, 12, 2211, 18, 28956, 2045, 743, 10019, 3639, 368, 752, 444, 434, 3526, 1999, 2673, 3639, 1000, 3526, 1999, 2673, 273, 394, 6847, 5621, 3639, 368, 2640, 666, 434, 2595, 358, 2243, 622, 679, 540, 987, 2595, 774, 4600, 273, 394, 2407, 5621, 3639, 368, 7401, 2595, 2777, 7734, 509, 646, 26359, 273, 16304, 2045, 18, 588, 1225, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 646, 26359, 31, 277, 27245, 288, 5411, 868, 347, 2045, 18, 426, 347, 2045, 1999, 333, 1999, 273, 16304, 2045, 18, 588, 1999, 12, 77, 1769, 5411, 11103, 26798, 4609, 273, 333, 1999, 18, 588, 4609, 12, 2211, 18, 6270, 1999, 548, 1769, 5411, 1033, 26798, 620, 273, 26798, 4609, 18, 24805, 5621, 5411, 309, 261, 492, 548, 620, 480, 446, 13, 288, 7734, 368, 430, 26798, 620, 480, 446, 15431, 7401, 2199, 358, 1104, 845, 1171, 4498, 1027, 27452, 273, 10792, 16304, 2045, 1042, 18, 18793, 27452, 12, 2211, 18, 492, 743, 1769, 7734, 1323, 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, 1071, 918, 1923, 1204, 774, 1488, 12, 4609, 31074, 1488, 16, 804, 14124, 1042, 525, 92, 2436, 13, 1216, 15689, 503, 288, 3639, 368, 4163, 326, 16304, 2045, 3639, 868, 347, 2045, 16304, 2045, 273, 261, 426, 347, 2045, 13, 31074, 1488, 18, 588, 4609, 12, 2211, 18, 28956, 2045, 548, 1769, 3639, 368, 471, 18423, 819, 3639, 804, 14124, 1042, 16304, 2045, 1042, 273, 5411, 525, 92, 2436, 18, 588, 8574, 1042, 12, 78, 92, 2436, 18, 588, 4926, 12, 2211, 18, 28956, 2045, 743, 10019, 3639, 368, 752, 444, 434, 3526, 1999, 2673, 3639, 1000, 3526, 1999, 2673, 273, 394, 6847, 5621, 3639, 368, 2640, 666, 434, 2595, 358, 2243, 622, 679, 540, 987, 2595, 774, 2 ]
assertEquals("QNX-Photon", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue());
assertEquals("QNX-Photon", newReport.getAttribute(BugzillaReportElement.OP_SYS).getValue());
public void testPlatformOptions() throws Exception { File f = FileTool.getFileInPlugin(BugzillaTestPlugin.getDefault(), new Path("testdata/pages/cdt-page.html")); Reader in = new FileReader(f); NewBugModel model = new NewBugModel(); AbstractBugzillaWizardPage page = new TestWizardDataPage(); new NewBugParser(in).parseBugAttributes(model, true); // ** TRUE vs // FALSE ** page.setPlatformOptions(model); String os = Platform.getOS(); if (os.equals("win32")) assertEquals("Windows All", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("solaris")) assertEquals("Solaris", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("qnx")) assertEquals("QNX-Photon", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("macosx")) assertEquals("MacOS X", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("linux")) assertEquals("Linux", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("hpux")) assertEquals("HP-UX", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); else if (os.equals("aix")) assertEquals("AIX", model.getAttribute(BugReport.ATTRIBUTE_OS).getValue()); String platform = Platform.getOSArch(); if (platform.equals("x86")) assertEquals("PC", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); else if (platform.equals("x86_64")) assertEquals("PC", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); else if (platform.equals("ia64")) assertEquals("PC", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); else if (platform.equals("ia64_32")) assertEquals("PC", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); else if (platform.equals("sparc")) assertEquals("Sun", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); else if (platform.equals("ppc")) assertEquals("Power", model.getAttribute(BugReport.ATTRIBUTE_PLATFORM).getValue()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/83cf0584c09e67ead32e09ae9585eafa8dce592e/NewBugWizardTest.java/clean/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/NewBugWizardTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8201, 1320, 1435, 1216, 1185, 288, 202, 202, 812, 284, 273, 1387, 6364, 18, 29925, 382, 3773, 12, 19865, 15990, 4709, 3773, 18, 588, 1868, 9334, 394, 2666, 2932, 3813, 892, 19, 7267, 19, 4315, 88, 17, 2433, 18, 2620, 7923, 1769, 202, 202, 2514, 316, 273, 394, 23010, 12, 74, 1769, 202, 202, 1908, 19865, 1488, 938, 273, 394, 1166, 19865, 1488, 5621, 202, 202, 7469, 19865, 15990, 27130, 1964, 1363, 273, 394, 7766, 27130, 751, 1964, 5621, 202, 202, 2704, 1166, 19865, 2678, 12, 267, 2934, 2670, 19865, 2498, 12, 2284, 16, 638, 1769, 368, 2826, 5383, 6195, 6862, 6862, 6862, 9506, 202, 759, 4934, 2826, 202, 202, 2433, 18, 542, 8201, 1320, 12, 2284, 1769, 202, 202, 780, 1140, 273, 11810, 18, 588, 4618, 5621, 202, 202, 430, 261, 538, 18, 14963, 2932, 8082, 1578, 6, 3719, 1082, 202, 11231, 8867, 2932, 10399, 4826, 3113, 938, 18, 588, 1499, 12, 19865, 4820, 18, 11616, 67, 4618, 2934, 24805, 10663, 202, 202, 12107, 309, 261, 538, 18, 14963, 2932, 18281, 297, 291, 6, 3719, 1082, 202, 11231, 8867, 2932, 20608, 297, 291, 3113, 938, 18, 588, 1499, 12, 19865, 4820, 18, 11616, 67, 4618, 2934, 24805, 10663, 202, 202, 12107, 309, 261, 538, 18, 14963, 2932, 15785, 92, 6, 3719, 1082, 202, 11231, 8867, 2932, 53, 17106, 17, 3731, 352, 265, 3113, 938, 18, 588, 1499, 12, 19865, 4820, 18, 11616, 67, 4618, 2934, 24805, 10663, 202, 202, 12107, 309, 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, 8201, 1320, 1435, 1216, 1185, 288, 202, 202, 812, 284, 273, 1387, 6364, 18, 29925, 382, 3773, 12, 19865, 15990, 4709, 3773, 18, 588, 1868, 9334, 394, 2666, 2932, 3813, 892, 19, 7267, 19, 4315, 88, 17, 2433, 18, 2620, 7923, 1769, 202, 202, 2514, 316, 273, 394, 23010, 12, 74, 1769, 202, 202, 1908, 19865, 1488, 938, 273, 394, 1166, 19865, 1488, 5621, 202, 202, 7469, 19865, 15990, 27130, 1964, 1363, 273, 394, 7766, 27130, 751, 1964, 5621, 202, 202, 2704, 1166, 19865, 2678, 12, 267, 2934, 2670, 19865, 2498, 12, 2284, 16, 638, 1769, 368, 2826, 5383, 6195, 6862, 6862, 6862, 9506, 202, 759, 4934, 2826, 202, 202, 2433, 18, 542, 8201, 2 ]
StringBuffer result = new StringBuffer(); for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); if (ch == '<') result.append("&lt;"); else if (ch == '>') result.append("&gt;"); else if (ch == '&') result.append("&amp;"); else if (ch == '"') result.append("&quot;"); else result.append(ch); } return (result.toString());
StringBuffer result = new StringBuffer(); for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); if (ch == '<') result.append("&lt;"); else if (ch == '>') result.append("&gt;"); else if (ch == '&') result.append("&amp;"); else if (ch == '"') result.append("&quot;"); else result.append(ch); } return (result.toString());
public static String filter(String value) { if (value == null) return (null); StringBuffer result = new StringBuffer(); for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); if (ch == '<') result.append("&lt;"); else if (ch == '>') result.append("&gt;"); else if (ch == '&') result.append("&amp;"); else if (ch == '"') result.append("&quot;"); else result.append(ch); } return (result.toString()); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/c4a3db353670bb832b3550d8a8a3b86ec2910377/BeanUtils.java/buggy/src/share/org/apache/struts/util/BeanUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1034, 12, 780, 460, 13, 288, 202, 430, 261, 1132, 422, 446, 13, 202, 565, 327, 261, 2011, 1769, 202, 780, 1892, 563, 273, 394, 6674, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 460, 18, 2469, 5621, 277, 27245, 288, 202, 565, 1149, 462, 273, 460, 18, 3001, 861, 12, 77, 1769, 202, 565, 309, 261, 343, 422, 2368, 6134, 202, 202, 2088, 18, 6923, 2932, 10, 5618, 4868, 1769, 202, 565, 469, 309, 261, 343, 422, 7481, 13, 202, 202, 2088, 18, 6923, 2932, 10, 4521, 4868, 1769, 202, 565, 469, 309, 261, 343, 422, 5183, 6134, 202, 202, 2088, 18, 6923, 2932, 10, 931, 4868, 1769, 202, 565, 469, 309, 261, 343, 422, 4754, 13, 202, 202, 2088, 18, 6923, 2932, 10, 9270, 4868, 1769, 202, 565, 469, 202, 202, 2088, 18, 6923, 12, 343, 1769, 202, 97, 202, 2463, 261, 2088, 18, 10492, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1034, 12, 780, 460, 13, 288, 202, 430, 261, 1132, 422, 446, 13, 202, 565, 327, 261, 2011, 1769, 202, 780, 1892, 563, 273, 394, 6674, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 460, 18, 2469, 5621, 277, 27245, 288, 202, 565, 1149, 462, 273, 460, 18, 3001, 861, 12, 77, 1769, 202, 565, 309, 261, 343, 422, 2368, 6134, 202, 202, 2088, 18, 6923, 2932, 10, 5618, 4868, 1769, 202, 565, 469, 309, 261, 343, 422, 7481, 13, 202, 202, 2088, 18, 6923, 2932, 10, 4521, 4868, 1769, 202, 565, 469, 309, 261, 343, 422, 5183, 6134, 202, 202, 2088, 18, 6923, 2932, 10, 931, 4868, 1769, 202, 565, 469, 2 ]
modelMap.put("userInfo", myUserInfo);
modelMap.put("userInfo", myUserInfo);
public EOModelMap toMap() { EOModelMap modelMap = myModelMap.cloneModelMap(); modelMap.setString("EOModelVersion", myVersion, true); modelMap.setString("adaptorName", myAdaptorName, true); modelMap.put("connectionDictionary", myConnectionDictionary); List entities = new LinkedList(); Iterator entitiesIter = myEntities.iterator(); while (entitiesIter.hasNext()) { EOEntity entity = (EOEntity) entitiesIter.next(); EOModelMap entityMap = new EOModelMap(); entityMap.setString("className", entity.getClassName(), true); EOEntity parent = entity.getParent(); String parentName = (parent == null) ? null : parent.getName(); entityMap.setString("parent", parentName, true); entityMap.setString("name", entity.getName(), true); entities.add(entityMap); } modelMap.put("entities", entities); Map internalInfoMap = modelMap.getMap("internalInfo"); if (internalInfoMap == null) { internalInfoMap = new HashMap(); modelMap.put("internalInfo", internalInfoMap); } if (myDeletedEntityNamesInObjectStore != null) { internalInfoMap.put("_deletedEntityNamesInObjectStore", myDeletedEntityNamesInObjectStore); } modelMap.put("userInfo", myUserInfo); return modelMap; }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/d39ae6aad0341c8bf84f634fb6d078b5ba63e8f8/EOModel.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 512, 51, 1488, 863, 24382, 1435, 288, 565, 512, 51, 1488, 863, 938, 863, 273, 3399, 1488, 863, 18, 14056, 1488, 863, 5621, 565, 938, 863, 18, 542, 780, 2932, 41, 51, 1488, 1444, 3113, 3399, 1444, 16, 638, 1769, 565, 938, 863, 18, 542, 780, 2932, 19195, 280, 461, 3113, 3399, 29888, 461, 16, 638, 1769, 565, 938, 863, 18, 458, 2932, 4071, 10905, 3113, 3399, 1952, 10905, 1769, 565, 987, 5140, 273, 394, 10688, 5621, 565, 4498, 5140, 2360, 273, 3399, 8108, 18, 9838, 5621, 565, 1323, 261, 9996, 2360, 18, 5332, 2134, 10756, 288, 1377, 512, 51, 1943, 1522, 273, 261, 41, 51, 1943, 13, 5140, 2360, 18, 4285, 5621, 1377, 512, 51, 1488, 863, 1522, 863, 273, 394, 512, 51, 1488, 863, 5621, 1377, 1522, 863, 18, 542, 780, 2932, 12434, 3113, 1522, 18, 588, 3834, 9334, 638, 1769, 1377, 512, 51, 1943, 982, 273, 1522, 18, 588, 3054, 5621, 1377, 514, 26119, 273, 261, 2938, 422, 446, 13, 692, 446, 294, 982, 18, 17994, 5621, 1377, 1522, 863, 18, 542, 780, 2932, 2938, 3113, 26119, 16, 638, 1769, 1377, 1522, 863, 18, 542, 780, 2932, 529, 3113, 1522, 18, 17994, 9334, 638, 1769, 1377, 5140, 18, 1289, 12, 1096, 863, 1769, 565, 289, 565, 938, 863, 18, 458, 2932, 9996, 3113, 5140, 1769, 565, 1635, 2713, 966, 863, 273, 938, 863, 18, 588, 863, 2932, 7236, 966, 8863, 565, 309, 261, 7236, 966, 863, 422, 446, 13, 288, 1377, 2713, 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, 512, 51, 1488, 863, 24382, 1435, 288, 565, 512, 51, 1488, 863, 938, 863, 273, 3399, 1488, 863, 18, 14056, 1488, 863, 5621, 565, 938, 863, 18, 542, 780, 2932, 41, 51, 1488, 1444, 3113, 3399, 1444, 16, 638, 1769, 565, 938, 863, 18, 542, 780, 2932, 19195, 280, 461, 3113, 3399, 29888, 461, 16, 638, 1769, 565, 938, 863, 18, 458, 2932, 4071, 10905, 3113, 3399, 1952, 10905, 1769, 565, 987, 5140, 273, 394, 10688, 5621, 565, 4498, 5140, 2360, 273, 3399, 8108, 18, 9838, 5621, 565, 1323, 261, 9996, 2360, 18, 5332, 2134, 10756, 288, 1377, 512, 51, 1943, 1522, 273, 261, 41, 51, 1943, 13, 5140, 2360, 18, 4285, 5621, 1377, 512, 51, 1488, 2 ]
setFilter(null);
if ( filter!=null ) query.removeFilter( filter );
public void setOptions(Option[] options) { unassignPushOptions(); setFilter(null); filterValueToItem = resetList(list, options); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/5c72748ff7bd84ebeffdd775a53d50146c100f76/ListFilterWidget.java/buggy/src/java/org/ensembl/mart/explorer/ListFilterWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16526, 12, 1895, 8526, 702, 13, 288, 565, 640, 6145, 7621, 1320, 5621, 565, 309, 261, 1034, 5, 33, 2011, 262, 843, 18, 4479, 1586, 12, 1034, 11272, 565, 1034, 620, 774, 1180, 273, 2715, 682, 12, 1098, 16, 702, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 16526, 12, 1895, 8526, 702, 13, 288, 565, 640, 6145, 7621, 1320, 5621, 565, 309, 261, 1034, 5, 33, 2011, 262, 843, 18, 4479, 1586, 12, 1034, 11272, 565, 1034, 620, 774, 1180, 273, 2715, 682, 12, 1098, 16, 702, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
float parent_height = parent_metrics.getHeight(); String vertical_align = c.css.getStringProperty(elem,"vertical-align"); if(!InlineLayout.isReplaced(node)) { box.height = FontUtil.lineHeight(c,node);
if(vertical_align.equals("sub")) { box.y = box.y - (int) parent_metrics.getStrikethroughOffset();
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE) { parent = parent.getParentNode(); elem = (Element)node.getParentNode(); } else { elem = (Element)node; } //u.p("parent = " + parent + " elem = " + elem); //int parent_height = FontUtil.lineHeight(c,parent); Font parent_font = FontUtil.getFont(c,parent); LineMetrics parent_metrics = null; if(!InlineLayout.isReplaced(node)) { if(!InlineLayout.isFloatedBlock(node,c)) { parent_metrics = parent_font.getLineMetrics(box.text, ((Graphics2D)c.getGraphics()).getFontRenderContext()); } else { parent_metrics = parent_font.getLineMetrics("Test", ((Graphics2D)c.getGraphics()).getFontRenderContext()); } } else { parent_metrics = parent_font.getLineMetrics("Test", ((Graphics2D)c.getGraphics()).getFontRenderContext()); } // the height of the font float parent_height = parent_metrics.getHeight(); //u.p("parent strikethrough height = " + parent_metrics.getStrikethroughOffset()); String vertical_align = c.css.getStringProperty(elem,"vertical-align"); // set the height of the box to the height of the font if(!InlineLayout.isReplaced(node)) { box.height = FontUtil.lineHeight(c,node); } //u.p("vertical align = " + vertical_align); if(vertical_align == null) { vertical_align = "baseline"; } box.baseline = 0; // box.y is relative to the parent's baseline box.y = 0; // do nothing for 'baseline' box.vset = true; if(vertical_align.equals("baseline")) { //noop box.y = box.y; } // works okay i think if(vertical_align.equals("super")) { box.y = box.y + (int) (parent_metrics.getStrikethroughOffset()*2.0); } // works okay, i think if(vertical_align.equals("sub")) { box.y = box.y - (int) parent_metrics.getStrikethroughOffset(); } // joshy: this is using the current baseline instead of the parent's baseline // must fix if(vertical_align.equals("text-top")) { // the top of this text is equal to the top of the parent's text // so we take the parent's height above the baseline and subtract our // height above the baseline box.y = -((int)parent_height - box.height);//(int) (parent_metrics.getStrikethroughOffset()*2.0); } // not implemented correctly yet if(vertical_align.equals("text-bottom")) { box.y = 0; } // not implemented correctly yet. if(vertical_align.equals("top")) { //u.p("before y = " + box.y); //u.p("baseline = " + box.baseline); box.y = box.y - box.baseline;//(int) (parent_metrics.getStrikethroughOffset()*2.0); box.top_align = true; //u.p("after y = " + box.y); box.vset = false; } if(vertical_align.equals("bottom")) { //u.p("before y = " + box.y); //u.p("baseline = " + box.baseline); box.y = box.y - box.baseline;//(int) (parent_metrics.getStrikethroughOffset()*2.0); box.bottom_align = true; //u.p("after y = " + box.y); box.vset = false; } //u.p("returning box: " + box);}
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 3875, 15704, 10044, 12, 1042, 276, 16, 2029, 756, 16, 16355, 3514, 3919, 13, 288, 565, 368, 89, 18, 84, 2932, 8401, 9768, 5689, 30, 756, 273, 315, 397, 756, 397, 315, 3919, 273, 315, 397, 3919, 1769, 565, 368, 336, 326, 982, 756, 364, 16253, 2456, 565, 2029, 982, 273, 756, 18, 588, 3054, 907, 5621, 565, 368, 89, 18, 84, 2932, 2938, 273, 315, 397, 982, 1769, 565, 3010, 3659, 273, 446, 31, 565, 309, 12, 2159, 18, 588, 15101, 1435, 422, 756, 18, 5151, 67, 8744, 13, 288, 3639, 982, 273, 982, 18, 588, 3054, 907, 5621, 3639, 3659, 273, 261, 1046, 13, 2159, 18, 588, 3054, 907, 5621, 565, 289, 469, 288, 3639, 3659, 273, 261, 1046, 13, 2159, 31, 565, 289, 565, 368, 89, 18, 84, 2932, 2938, 273, 315, 397, 982, 397, 315, 3659, 273, 315, 397, 3659, 1769, 565, 368, 474, 982, 67, 4210, 273, 10063, 1304, 18, 1369, 2686, 12, 71, 16, 2938, 1769, 565, 10063, 982, 67, 5776, 273, 10063, 1304, 18, 588, 5711, 12, 71, 16, 2938, 1769, 565, 5377, 5653, 982, 67, 9597, 273, 446, 31, 565, 309, 12, 5, 10870, 3744, 18, 291, 5729, 72, 12, 2159, 3719, 288, 3639, 309, 12, 5, 10870, 3744, 18, 291, 42, 383, 690, 1768, 12, 2159, 16, 71, 3719, 288, 5411, 982, 67, 9597, 273, 982, 67, 5776, 18, 588, 1670, 5653, 12, 2147, 18, 955, 16, 14015, 17558, 22, 40, 13, 71, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 3875, 15704, 10044, 12, 1042, 276, 16, 2029, 756, 16, 16355, 3514, 3919, 13, 288, 565, 368, 89, 18, 84, 2932, 8401, 9768, 5689, 30, 756, 273, 315, 397, 756, 397, 315, 3919, 273, 315, 397, 3919, 1769, 565, 368, 336, 326, 982, 756, 364, 16253, 2456, 565, 2029, 982, 273, 756, 18, 588, 3054, 907, 5621, 565, 368, 89, 18, 84, 2932, 2938, 273, 315, 397, 982, 1769, 565, 3010, 3659, 273, 446, 31, 565, 309, 12, 2159, 18, 588, 15101, 1435, 422, 756, 18, 5151, 67, 8744, 13, 288, 3639, 982, 273, 982, 18, 588, 3054, 907, 5621, 3639, 3659, 273, 261, 1046, 13, 2159, 18, 588, 3054, 907, 5621, 565, 289, 469, 288, 2 ]
if (jj_scan_token(METHOD_PROTECTED)) return true;
if (jj_scan_token(METHOD_PUBLIC)) return true;
static final private boolean jj_3R_99() { if (jj_scan_token(METHOD_PROTECTED)) return true; return false; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/9befe20e19a1c795e3084b85df3ae067ddf49066/ExpressionParser.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 2733, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5327, 67, 14939, 3719, 327, 638, 31, 565, 327, 629, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 2733, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5327, 67, 14939, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else { roller.setUser(UserData.SYSTEM_USER); HashMap pages = null; website = mgr.createWebsite( user, pages, form.getHandle(), form.getName(), form.getDescription(), form.getEmailAddress(), form.getTheme(), form.getLocale(), form.getTimeZone()); roller.commit(); request.setAttribute("model", new CreateWebsitePageModel(request, response, mapping, website)); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("createWebsite.created", form.getHandle())); saveMessages(request, msgs);
public ActionForward save( ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { CreateWebsiteForm form = (CreateWebsiteForm)actionForm; ActionMessages msgs = new ActionMessages(); ActionMessages errors = validate(form, new ActionErrors()); ActionForward forward = mapping.findForward("yourWebsites"); Roller roller = RollerFactory.getRoller(); WebsiteData website = null; if (!errors.isEmpty()) { saveErrors(request, errors); forward = mapping.findForward("createWebsite.page"); } else try { RollerContext rollerContext = RollerContext.getRollerContext(request); UserData user = RollerSession.getRollerSession(request).getAuthenticatedUser(); UserManager mgr = roller.getUserManager(); if (!RollerConfig.getBooleanProperty("groupblogging.enabled")) { List permissions = roller.getUserManager().getAllPermissions(user); if (permissions.size() > 0) { // sneaky user trying to get around 1 blog limit that applies // only when group blogging is disabled forward = mapping.findForward("access-denied"); } } else { // Need system user to create website roller.setUser(UserData.SYSTEM_USER); HashMap pages = null; //rollerContext.readThemeMacros(form.getTheme()); website = mgr.createWebsite( user, pages, form.getHandle(), form.getName(), form.getDescription(), form.getEmailAddress(), form.getTheme(), form.getLocale(), form.getTimeZone()); roller.commit(); request.setAttribute("model", new CreateWebsitePageModel(request, response, mapping, website)); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("createWebsite.created", form.getHandle())); saveMessages(request, msgs); } } catch (RollerException e) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(e.getMessage())); saveErrors(request, errors); mLogger.error("ERROR in createWebsite", e); } request.setAttribute("model", new CreateWebsitePageModel(request, response, mapping, website)); return forward; }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/b51bf8f91e26d160aeac752e61dcf642e22d1035/CreateWebsiteAction.java/buggy/src/org/roller/presentation/website/actions/CreateWebsiteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1923, 12, 5411, 4382, 3233, 4202, 2874, 16, 5411, 4382, 1204, 1850, 1301, 1204, 16, 5411, 9984, 225, 590, 16, 5411, 12446, 766, 13, 5411, 1216, 1185, 565, 288, 3639, 1788, 19186, 1204, 646, 273, 261, 1684, 19186, 1204, 13, 1128, 1204, 31, 3639, 4382, 5058, 8733, 273, 394, 4382, 5058, 5621, 3639, 4382, 5058, 1334, 273, 1954, 12, 687, 16, 394, 4382, 4229, 10663, 3639, 4382, 8514, 5104, 273, 2874, 18, 4720, 8514, 2932, 93, 477, 3218, 2038, 2997, 8863, 540, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 1660, 12343, 751, 12504, 273, 446, 31, 3639, 309, 16051, 4324, 18, 291, 1921, 10756, 3639, 288, 5411, 1923, 4229, 12, 2293, 16, 1334, 1769, 5411, 5104, 273, 2874, 18, 4720, 8514, 2932, 2640, 19186, 18, 2433, 8863, 3639, 289, 3639, 469, 775, 3639, 288, 5411, 11714, 749, 1042, 10643, 749, 1042, 273, 11714, 749, 1042, 18, 588, 4984, 749, 1042, 12, 2293, 1769, 5411, 31109, 729, 273, 1171, 11714, 749, 2157, 18, 588, 4984, 749, 2157, 12, 2293, 2934, 588, 15606, 1299, 5621, 5411, 2177, 1318, 13333, 273, 10643, 749, 18, 588, 1299, 1318, 5621, 7682, 309, 16051, 4984, 749, 809, 18, 588, 5507, 1396, 2932, 1655, 70, 11167, 18, 5745, 6, 3719, 288, 12900, 987, 4371, 273, 10643, 749, 18, 588, 1299, 1318, 7675, 588, 1595, 6521, 12, 1355, 1769, 7734, 309, 261, 9612, 18, 1467, 1435, 405, 374, 13, 288, 10792, 368, 4556, 73, 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, 4382, 8514, 1923, 12, 5411, 4382, 3233, 4202, 2874, 16, 5411, 4382, 1204, 1850, 1301, 1204, 16, 5411, 9984, 225, 590, 16, 5411, 12446, 766, 13, 5411, 1216, 1185, 565, 288, 3639, 1788, 19186, 1204, 646, 273, 261, 1684, 19186, 1204, 13, 1128, 1204, 31, 3639, 4382, 5058, 8733, 273, 394, 4382, 5058, 5621, 3639, 4382, 5058, 1334, 273, 1954, 12, 687, 16, 394, 4382, 4229, 10663, 3639, 4382, 8514, 5104, 273, 2874, 18, 4720, 8514, 2932, 93, 477, 3218, 2038, 2997, 8863, 540, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 1660, 12343, 751, 12504, 273, 446, 31, 3639, 309, 16051, 4324, 18, 291, 1921, 10756, 3639, 288, 5411, 1923, 2 ]
if(nf.parse(sElement).doubleValue() < 0)
if (nf.parse(sElement).doubleValue() < 0)
private String getConvertedOrthogonalSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); NumberFormat nf = NumberFormat.getNumberInstance(); StringBuffer sbNewRepresentation = new StringBuffer(""); int iValueCount = 0; while(strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); try { if(nf.parse(sElement).doubleValue() < 0) { // If the value is negative, use an arbitrary positive value sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } } catch (ParseException e ) { sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } sbNewRepresentation.append("H"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" L"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" O"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" C"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 1162, 451, 28396, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 29587, 13958, 273, 29587, 18, 588, 1854, 1442, 5621, 3639, 6674, 2393, 1908, 13742, 273, 394, 6674, 2932, 8863, 3639, 509, 277, 620, 1380, 273, 374, 31, 3639, 1323, 12, 701, 17692, 18, 5332, 7417, 5157, 10756, 3639, 288, 5411, 514, 272, 1046, 273, 609, 17692, 18, 4285, 1345, 7675, 5290, 5621, 5411, 775, 5411, 288, 7734, 309, 261, 82, 74, 18, 2670, 12, 87, 1046, 2934, 9056, 620, 1435, 411, 374, 13, 7734, 288, 10792, 368, 971, 326, 460, 353, 6092, 16, 999, 392, 11078, 6895, 460, 10792, 272, 1046, 273, 514, 18, 1132, 951, 12, 24, 18, 20, 397, 277, 620, 1380, 1769, 10792, 277, 620, 1380, 9904, 31, 7734, 289, 5411, 289, 5411, 1044, 261, 13047, 425, 262, 5411, 288, 7734, 272, 1046, 273, 514, 18, 1132, 951, 12, 24, 18, 20, 397, 277, 620, 1380, 1769, 7734, 277, 620, 1380, 9904, 31, 5411, 289, 5411, 2393, 1908, 13742, 18, 6923, 2932, 44, 8863, 5411, 2393, 1908, 13742, 18, 6923, 12, 87, 1046, 1769, 5411, 2393, 1908, 13742, 18, 6923, 2932, 315, 1769, 13491, 2393, 1908, 13742, 18, 6923, 2932, 511, 8863, 5411, 2393, 1908, 13742, 18, 6923, 12, 87, 1046, 1769, 5411, 2393, 1908, 13742, 18, 6923, 2932, 315, 1769, 5411, 2393, 1908, 13742, 18, 6923, 2932, 531, 8863, 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, 514, 336, 22063, 1162, 451, 28396, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 29587, 13958, 273, 29587, 18, 588, 1854, 1442, 5621, 3639, 6674, 2393, 1908, 13742, 273, 394, 6674, 2932, 8863, 3639, 509, 277, 620, 1380, 273, 374, 31, 3639, 1323, 12, 701, 17692, 18, 5332, 7417, 5157, 10756, 3639, 288, 5411, 514, 272, 1046, 273, 609, 17692, 18, 4285, 1345, 7675, 5290, 5621, 5411, 775, 5411, 288, 7734, 309, 261, 82, 74, 18, 2670, 12, 87, 1046, 2934, 9056, 620, 1435, 411, 374, 13, 7734, 288, 10792, 368, 971, 326, 460, 353, 6092, 16, 999, 392, 2 ]
approver = new ContextConsultingOperationApprover(); history.addOperationApprover(new ContextConsultingOperationApprover());
approver = new LinearUndoEnforcer(); history.addOperationApprover(approver);
public IOperationHistory getOperationHistory() { IOperationHistory history = OperationHistoryFactory.getOperationHistory(); /* * Set up the history if we have not done so before. */ if (approver == null) { /* * install an operation approver that consults an operation's * context prior to performing an operation */ approver = new ContextConsultingOperationApprover(); history.addOperationApprover(new ContextConsultingOperationApprover()); /* * set a limit for the workbench undo context */ history.setLimit(getUndoContext(), 25); } return history; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c5bc2e0c8b2f8ab5abdf74d2c30f8849d1acac3e/WorkbenchOperationSupport.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/WorkbenchOperationSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1665, 1193, 5623, 21162, 5623, 1435, 288, 202, 202, 45, 2988, 5623, 4927, 273, 4189, 5623, 1733, 18, 588, 2988, 5623, 5621, 202, 202, 20308, 1082, 380, 1000, 731, 326, 4927, 309, 732, 1240, 486, 2731, 1427, 1865, 18, 1082, 1195, 202, 202, 430, 261, 12908, 502, 422, 446, 13, 288, 1082, 202, 20308, 9506, 380, 3799, 392, 1674, 6617, 502, 716, 27710, 87, 392, 1674, 1807, 9506, 380, 819, 6432, 358, 14928, 392, 1674, 9506, 1195, 1082, 202, 12908, 502, 273, 394, 1772, 9054, 406, 310, 2988, 12053, 502, 5621, 1082, 202, 8189, 18, 1289, 2988, 12053, 502, 12, 2704, 1772, 9054, 406, 310, 2988, 12053, 502, 10663, 1082, 202, 20308, 9506, 380, 444, 279, 1800, 364, 326, 1440, 22144, 15436, 819, 9506, 1195, 1082, 202, 8189, 18, 542, 3039, 12, 588, 31224, 1042, 9334, 6969, 1769, 202, 202, 97, 202, 202, 2463, 4927, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 1665, 1193, 5623, 21162, 5623, 1435, 288, 202, 202, 45, 2988, 5623, 4927, 273, 4189, 5623, 1733, 18, 588, 2988, 5623, 5621, 202, 202, 20308, 1082, 380, 1000, 731, 326, 4927, 309, 732, 1240, 486, 2731, 1427, 1865, 18, 1082, 1195, 202, 202, 430, 261, 12908, 502, 422, 446, 13, 288, 1082, 202, 20308, 9506, 380, 3799, 392, 1674, 6617, 502, 716, 27710, 87, 392, 1674, 1807, 9506, 380, 819, 6432, 358, 14928, 392, 1674, 9506, 1195, 1082, 202, 12908, 502, 273, 394, 1772, 9054, 406, 310, 2988, 12053, 502, 5621, 1082, 202, 8189, 18, 1289, 2988, 12053, 502, 12, 2704, 1772, 9054, 406, 310, 2988, 12053, 502, 10663, 1082, 202, 20308, 9506, 380, 444, 279, 2 ]
L.setWindow(getFileWindow(iwac));
L.setURL(iwac.getIWMainApplication().getMediaServletURI()+"report.pdf"); L.setTarget(Link.TARGET_BLANK_WINDOW);
public static Link getPDFLink(IWApplicationContext iwac,Image image,int iReportId){ Link L = new Link( image ); L.setWindow(getFileWindow(iwac)); L.addParameter(PRM_REPORTID,iReportId); L.addParameter(ReportWriter.prmReportId,iReportId); L.addParameter(ReportWriter.prmPrintType,ReportWriter.PDF); L.addParameter(ReportWriter.PRM_WRITABLE_CLASS,IWMainApplication.getEncryptedClassName(ReportWriter.class)); return L; }
57003 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57003/2416b33166db2cfe7f89b275b00c9abd6c1a9fab/Reporter.java/buggy/src/java/com/idega/block/reports/presentation/Reporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 760, 4048, 1689, 4577, 2098, 12, 45, 59, 28278, 25522, 1077, 16, 2040, 1316, 16, 474, 277, 4820, 548, 15329, 565, 4048, 511, 273, 394, 4048, 12, 1316, 11272, 565, 511, 18, 542, 1785, 12, 22315, 1077, 18, 588, 45, 59, 6376, 3208, 7675, 588, 5419, 4745, 3098, 1435, 9078, 6006, 18, 7699, 8863, 511, 18, 542, 2326, 12, 2098, 18, 16374, 67, 38, 24307, 67, 23407, 1769, 565, 511, 18, 1289, 1662, 12, 8025, 49, 67, 22710, 734, 16, 77, 4820, 548, 1769, 565, 511, 18, 1289, 1662, 12, 4820, 2289, 18, 683, 81, 4820, 548, 16, 77, 4820, 548, 1769, 565, 511, 18, 1289, 1662, 12, 4820, 2289, 18, 683, 81, 5108, 559, 16, 4820, 2289, 18, 17508, 1769, 565, 511, 18, 1289, 1662, 12, 4820, 2289, 18, 8025, 49, 67, 7181, 1285, 2782, 67, 5237, 16, 45, 59, 6376, 3208, 18, 588, 14678, 3834, 12, 4820, 2289, 18, 1106, 10019, 565, 327, 511, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 760, 4048, 1689, 4577, 2098, 12, 45, 59, 28278, 25522, 1077, 16, 2040, 1316, 16, 474, 277, 4820, 548, 15329, 565, 4048, 511, 273, 394, 4048, 12, 1316, 11272, 565, 511, 18, 542, 1785, 12, 22315, 1077, 18, 588, 45, 59, 6376, 3208, 7675, 588, 5419, 4745, 3098, 1435, 9078, 6006, 18, 7699, 8863, 511, 18, 542, 2326, 12, 2098, 18, 16374, 67, 38, 24307, 67, 23407, 1769, 565, 511, 18, 1289, 1662, 12, 8025, 49, 67, 22710, 734, 16, 77, 4820, 548, 1769, 565, 511, 18, 1289, 1662, 12, 4820, 2289, 18, 683, 81, 4820, 548, 16, 77, 4820, 548, 1769, 565, 511, 18, 1289, 1662, 12, 4820, 2289, 18, 683, 81, 5108, 559, 16, 4820, 2 ]
thumbRect.height = extent * trackRect.height / (max - min);
thumbRect.height = Math.max(extent * trackRect.height / (max - min), getMinimumThumbSize().height);
protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbRect.y = trackRect.y; if (scrollbar.getOrientation() == HORIZONTAL) { thumbRect.width = getMinimumThumbSize().width; thumbRect.height = trackRect.height; } else { thumbRect.width = trackRect.width; thumbRect.height = getMinimumThumbSize().height; } return thumbRect; } if (scrollbar.getOrientation() == HORIZONTAL) { thumbRect.x = trackRect.x; thumbRect.x += (value - min) * trackRect.width / (max - min); thumbRect.y = trackRect.y; thumbRect.width = extent * trackRect.width / (max - min); thumbRect.height = trackRect.height; } else { thumbRect.x = trackRect.x; thumbRect.y = trackRect.y + value * trackRect.height / (max - min); thumbRect.width = trackRect.width; thumbRect.height = extent * trackRect.height / (max - min); } return thumbRect; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 13264, 336, 18922, 5694, 1435, 225, 288, 565, 509, 943, 273, 27123, 18, 588, 13528, 5621, 565, 509, 1131, 273, 27123, 18, 588, 13042, 5621, 565, 509, 460, 273, 27123, 18, 24805, 5621, 565, 509, 11933, 273, 27123, 18, 588, 6207, 6275, 5621, 565, 368, 2332, 18, 370, 18, 8222, 12, 2211, 397, 3552, 588, 18922, 5694, 1435, 8863, 565, 309, 261, 1896, 422, 1131, 13, 565, 288, 1377, 11156, 6120, 18, 92, 273, 3298, 6120, 18, 92, 31, 1377, 11156, 6120, 18, 93, 273, 3298, 6120, 18, 93, 31, 1377, 309, 261, 12033, 3215, 18, 588, 14097, 1435, 422, 24606, 13, 1377, 288, 202, 21639, 6120, 18, 2819, 273, 30665, 18922, 1225, 7675, 2819, 31, 202, 21639, 6120, 18, 4210, 273, 3298, 6120, 18, 4210, 31, 1377, 289, 1377, 469, 1377, 288, 3639, 11156, 6120, 18, 2819, 273, 3298, 6120, 18, 2819, 31, 202, 21639, 6120, 18, 4210, 273, 30665, 18922, 1225, 7675, 4210, 31, 1377, 289, 1377, 327, 11156, 6120, 31, 565, 289, 10402, 309, 261, 12033, 3215, 18, 588, 14097, 1435, 422, 24606, 13, 1377, 288, 202, 21639, 6120, 18, 92, 273, 3298, 6120, 18, 92, 31, 202, 21639, 6120, 18, 92, 1011, 261, 1132, 300, 1131, 13, 380, 3298, 6120, 18, 2819, 342, 261, 1896, 300, 1131, 1769, 202, 21639, 6120, 18, 93, 273, 3298, 6120, 18, 93, 31, 202, 21639, 6120, 18, 2819, 273, 11933, 380, 3298, 6120, 18, 2819, 342, 261, 1896, 300, 1131, 1769, 202, 21639, 6120, 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, 4750, 13264, 336, 18922, 5694, 1435, 225, 288, 565, 509, 943, 273, 27123, 18, 588, 13528, 5621, 565, 509, 1131, 273, 27123, 18, 588, 13042, 5621, 565, 509, 460, 273, 27123, 18, 24805, 5621, 565, 509, 11933, 273, 27123, 18, 588, 6207, 6275, 5621, 565, 368, 2332, 18, 370, 18, 8222, 12, 2211, 397, 3552, 588, 18922, 5694, 1435, 8863, 565, 309, 261, 1896, 422, 1131, 13, 565, 288, 1377, 11156, 6120, 18, 92, 273, 3298, 6120, 18, 92, 31, 1377, 11156, 6120, 18, 93, 273, 3298, 6120, 18, 93, 31, 1377, 309, 261, 12033, 3215, 18, 588, 14097, 1435, 422, 24606, 13, 1377, 288, 202, 21639, 6120, 18, 2819, 273, 30665, 18922, 1225, 7675, 2819, 31, 202, 2 ]
ctRow = ((IntList)vra.celltype.get(rowNum));
private CellValueRecordInterface findNextCell(CellValueRecordInterface current) { IntList ctRow = null; int rowNum = -1; int colNum = -1; int newCol = -1; boolean wasntFirst = false; if (current != null) { wasntFirst = true; rowNum = current.getRow(); colNum = current.getColumn(); ctRow = ((IntList)vra.celltype.get(rowNum)); } //if popindex = row iwth no cells, fast forward till we get to one with size > 0 while ((ctRow == null || ctRow.size() == 0) && vra.populatedRows.size() > popindex) { if (wasntFirst == true) { throw new RuntimeException("CANT HAPPEN WASNTFIRST BUT WE'RE FASTFORWARDING!"); } rowNum = vra.populatedRows.get(popindex); ctRow = (IntList)vra.celltype.get(rowNum); if (ctRow.size() == 0) { if ((rowlimit == -1)||(rowNum<=rowlimit)) { popindex++; } else { this.hasNext = false; } } } if (rowNum == -1) { return null; } while (newCol == -1) { newCol = findNextPopulatedCell(rowNum,colNum); colNum = newCol; if (colNum == -1) { //end of row, forward one row popindex++; if (popindex < vra.populatedRows.size() && ((rowlimit == -1)||(rowNum<=rowlimit))) { rowNum = vra.populatedRows.get(popindex); //Return null if the row is out of range if ((rowlimit != -1) &&( rowNum > rowlimit)) return null; } else { return null; } } } return vra.constructRecord(rowNum,colNum); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/7081acbc742cb155dd851336248adf4ce8cdd2a4/ValueRecordsAggregate.java/clean/src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8614, 620, 2115, 1358, 19429, 4020, 12, 27758, 2115, 1358, 783, 13, 288, 3639, 3094, 682, 5691, 1999, 273, 446, 31, 3639, 509, 1027, 2578, 273, 300, 21, 31, 3639, 509, 645, 2578, 273, 300, 21, 31, 3639, 509, 394, 914, 273, 300, 21, 31, 3639, 1250, 1703, 496, 3759, 273, 629, 31, 3639, 309, 261, 2972, 480, 446, 13, 288, 5411, 1703, 496, 3759, 273, 638, 31, 5411, 1027, 2578, 273, 783, 18, 588, 1999, 5621, 5411, 645, 2578, 273, 783, 18, 588, 1494, 5621, 10792, 289, 3639, 368, 430, 1843, 1615, 273, 1027, 25522, 451, 1158, 5983, 16, 4797, 5104, 21364, 732, 336, 358, 1245, 598, 963, 405, 374, 3639, 1323, 14015, 299, 1999, 422, 446, 747, 5691, 1999, 18, 1467, 1435, 422, 374, 13, 597, 331, 354, 18, 5120, 11799, 4300, 18, 1467, 1435, 405, 1843, 1615, 13, 288, 5411, 309, 261, 17416, 496, 3759, 422, 638, 13, 288, 7734, 604, 394, 3235, 2932, 39, 6856, 670, 7215, 1157, 678, 3033, 1784, 15354, 605, 1693, 13880, 11, 862, 24239, 7473, 21343, 1360, 4442, 1769, 5411, 289, 5411, 1027, 2578, 273, 331, 354, 18, 5120, 11799, 4300, 18, 588, 12, 5120, 1615, 1769, 5411, 5691, 1999, 273, 261, 1702, 682, 13, 90, 354, 18, 3855, 723, 18, 588, 12, 492, 2578, 1769, 5411, 309, 261, 299, 1999, 18, 1467, 1435, 422, 374, 13, 288, 7734, 309, 14015, 492, 3595, 422, 300, 21, 14047, 96, 12, 492, 2578, 32, 33, 492, 3595, 3719, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8614, 620, 2115, 1358, 19429, 4020, 12, 27758, 2115, 1358, 783, 13, 288, 3639, 3094, 682, 5691, 1999, 273, 446, 31, 3639, 509, 1027, 2578, 273, 300, 21, 31, 3639, 509, 645, 2578, 273, 300, 21, 31, 3639, 509, 394, 914, 273, 300, 21, 31, 3639, 1250, 1703, 496, 3759, 273, 629, 31, 3639, 309, 261, 2972, 480, 446, 13, 288, 5411, 1703, 496, 3759, 273, 638, 31, 5411, 1027, 2578, 273, 783, 18, 588, 1999, 5621, 5411, 645, 2578, 273, 783, 18, 588, 1494, 5621, 10792, 289, 3639, 368, 430, 1843, 1615, 273, 1027, 25522, 451, 1158, 5983, 16, 4797, 5104, 21364, 732, 336, 358, 1245, 598, 963, 405, 374, 3639, 1323, 14015, 299, 1999, 422, 2 ]
fStringPool = stringPool; fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false;
fStringPool = stringPool; fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false;
private void resetCommon(StringPool stringPool) throws Exception { fStringPool = stringPool; fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false; fCurrentScope = TOP_LEVEL_SCOPE; fCurrentSchemaURI = -1; fEmptyURI = - 1; fXsiPrefix = - 1; fXsiTypeValidator = null; fGrammar = null; fGrammarNameSpaceIndex = -1; //fGrammarResolver = null; if (fGrammarResolver != null) { fGrammarResolver.clearGrammarResolver(); } fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; init(); } // resetCommon(StringPool)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2715, 6517, 12, 780, 2864, 533, 2864, 13, 1216, 1185, 288, 3639, 284, 780, 2864, 273, 533, 2864, 31, 3639, 284, 31496, 273, 284, 4354, 1526, 31, 3639, 284, 4354, 1526, 858, 9791, 273, 629, 31, 3639, 284, 9791, 8853, 858, 4354, 273, 629, 31, 3639, 2845, 7013, 5621, 3639, 284, 8185, 1685, 2519, 273, 629, 31, 3639, 284, 20612, 12451, 2514, 273, 300, 21, 31, 3639, 284, 1046, 4212, 1782, 273, 374, 31, 3639, 284, 1046, 6148, 273, 300, 21, 31, 3639, 284, 15160, 2375, 1046, 273, 629, 31, 3639, 284, 15160, 3244, 12387, 3456, 273, 629, 31, 3639, 284, 13180, 3876, 273, 446, 31, 3639, 284, 13180, 2244, 273, 300, 21, 31, 3639, 284, 2375, 1046, 18, 8507, 5621, 3639, 284, 3843, 682, 3259, 273, 300, 21, 31, 3639, 284, 11454, 1290, 3078, 273, 629, 31, 3639, 284, 3935, 3876, 273, 18680, 67, 10398, 67, 19444, 31, 3639, 284, 3935, 3078, 3098, 273, 300, 21, 31, 3639, 284, 1921, 3098, 273, 300, 404, 31, 540, 284, 60, 7722, 2244, 273, 300, 404, 31, 3639, 284, 60, 7722, 559, 5126, 273, 446, 31, 3639, 284, 18576, 273, 446, 31, 3639, 284, 18576, 26857, 1016, 273, 300, 21, 31, 3639, 368, 74, 18576, 4301, 273, 446, 31, 3639, 309, 261, 74, 18576, 4301, 480, 446, 13, 288, 5411, 284, 18576, 4301, 18, 8507, 18576, 4301, 5621, 3639, 289, 3639, 284, 18576, 2520, 25728, 18576, 273, 629, 31, 3639, 284, 18576, 2520, 3078, 18576, 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, 3238, 918, 2715, 6517, 12, 780, 2864, 533, 2864, 13, 1216, 1185, 288, 3639, 284, 780, 2864, 273, 533, 2864, 31, 3639, 284, 31496, 273, 284, 4354, 1526, 31, 3639, 284, 4354, 1526, 858, 9791, 273, 629, 31, 3639, 284, 9791, 8853, 858, 4354, 273, 629, 31, 3639, 2845, 7013, 5621, 3639, 284, 8185, 1685, 2519, 273, 629, 31, 3639, 284, 20612, 12451, 2514, 273, 300, 21, 31, 3639, 284, 1046, 4212, 1782, 273, 374, 31, 3639, 284, 1046, 6148, 273, 300, 21, 31, 3639, 284, 15160, 2375, 1046, 273, 629, 31, 3639, 284, 15160, 3244, 12387, 3456, 273, 629, 31, 3639, 284, 13180, 3876, 273, 446, 31, 3639, 284, 13180, 2244, 273, 300, 21, 31, 3639, 284, 2 ]
if (marker == null) return ""; try { Object obj = marker.getAttribute(property); if (obj != null) return obj.toString(); return ""; } catch (CoreException e) { return ""; } }
if (marker == null) return ""; try { Object obj = marker.getAttribute(property); if (obj != null) return obj.toString(); return ""; } catch (CoreException e) { return ""; } }
public static String getProperty(String property, IMarker marker) { if (marker == null) return ""; //$NON-NLS-1$ try { Object obj = marker.getAttribute(property); if (obj != null) return obj.toString(); return ""; //$NON-NLS-1$ } catch (CoreException e) { return ""; //$NON-NLS-1$ } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d182f0fc26b7a52f6b3328f7f3791e818dbe0d65/Util.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3911, 12, 780, 1272, 16, 467, 7078, 5373, 13, 288, 3639, 309, 261, 11145, 422, 446, 13, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 775, 288, 5411, 1033, 1081, 273, 5373, 18, 588, 1499, 12, 4468, 1769, 5411, 309, 261, 2603, 480, 446, 13, 7734, 327, 1081, 18, 10492, 5621, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 1044, 261, 25341, 425, 13, 288, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 3911, 12, 780, 1272, 16, 467, 7078, 5373, 13, 288, 3639, 309, 261, 11145, 422, 446, 13, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 775, 288, 5411, 1033, 1081, 273, 5373, 18, 588, 1499, 12, 4468, 1769, 5411, 309, 261, 2603, 480, 446, 13, 7734, 327, 1081, 18, 10492, 5621, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 1044, 261, 25341, 425, 13, 288, 5411, 327, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
if (sizeESet) result.append(size); else result.append("<unset>");
if (sizeESet) result.append(size); else result.append("<unset>");
public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (type: "); if (typeESet) result.append(type); else result.append("<unset>"); result.append(", size: "); if (sizeESet) result.append(size); else result.append("<unset>"); result.append(", visible: "); if (visibleESet) result.append(visible); else result.append("<unset>"); result.append(')'); return result.toString(); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/MarkerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932, 261, 723, 30, 315, 1769, 3639, 309, 261, 723, 41, 694, 13, 563, 18, 6923, 12, 723, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 963, 30, 315, 1769, 3639, 309, 261, 1467, 41, 694, 13, 563, 18, 6923, 12, 1467, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 6021, 30, 315, 1769, 3639, 309, 261, 8613, 41, 694, 13, 563, 18, 6923, 12, 8613, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2668, 2506, 1769, 3639, 327, 563, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932, 261, 723, 30, 315, 1769, 3639, 309, 261, 723, 41, 694, 13, 563, 18, 6923, 12, 723, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 963, 30, 315, 1769, 3639, 309, 261, 1467, 41, 694, 13, 563, 18, 6923, 12, 1467, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 6021, 30, 315, 1769, 3639, 309, 261, 8613, 41, 694, 13, 563, 18, 6923, 12, 8613, 1769, 469, 563, 2 ]
DesugarNegBoolExpr des1 = null;
private static Expression readExpression(byte[] bytes) throws ReadAttributeException { int _byte = readByte(bytes); System.out.print(Integer.toHexString((_byte + 256) % 256) + "(" + pos + "), "); if (_byte == Code.PLUS) { // ARithmetic Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, e2, ExpressionConstants.ADD); return e; } else if (_byte == Code.MINUS) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, e2, ExpressionConstants.SUB); return e; } else if (_byte == Code.MULT) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, e2, ExpressionConstants.MULT); return e; } else if (_byte == Code.DIV) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, e2, ExpressionConstants.DIV); return e; } else if (_byte == Code.REM) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, e2, ExpressionConstants.REM); return e; } else if (_byte == Code.NEG) { Expression e1 = readExpression(bytes); Expression e = ArithmeticExpression.getArithmeticExpression(e1, ExpressionConstants.NEG); return e; } else if (_byte == Code.BITWISEAND) { // Bitwise Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = new BitExpression(e1, e2, ExpressionConstants.BITWISEAND); return e; } else if (_byte == Code.BITWISEOR) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = new BitExpression(e1, e2, ExpressionConstants.BITWISEOR); return e; } else if (_byte == Code.BITWISEXOR) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = new BitExpression(e1, e2, ExpressionConstants.BITWISEXOR); return e; } else if (_byte == Code.SHL) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = // e1 the expression that is shifted // e2 is the number of positions e1 to shift with new BitExpression(e1, e2, ExpressionConstants.SHL); return e; } else if (_byte == Code.SHR) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = // e1 the expression that is shifted // e2 is the number of positions e1 to shift with new BitExpression(e1, e2, ExpressionConstants.SHR); return e; } else if (_byte == Code.USHR) { Expression e1 = readExpression(bytes); Expression e2 = readExpression(bytes); Expression e = // e1 the expression that is shifted // e2 is the number of positions e1 to shift with new BitExpression(e1, e2, ExpressionConstants.USHR); return e; } else if (_byte == Code.INT_LITERAL) { // Literals int literal = readInt(bytes); Expression e = new NumberLiteral(literal); return e; } else if (_byte == Code.CHAR_LITERAL) { int literal = readChar(bytes); Expression e = new NumberLiteral(literal); return e; /*} else if (_byte == Code.TYPE_OF) { // JML expressions Expression e1 = readExpression(bytes); Expression e = new TYPEOF(e1); return e; } else if (_byte == Code.ELEM_TYPE) { Expression e1 = readExpression(bytes); Expression e = new ELEMTYPE(e1); return e; } else if (_byte == Code.RESULT) { Expression e = RESULT._RESULT; return e; } else if (_byte == Code._type) { JavaType javaType = readJavaType(bytes); Expression _type = new _TYPE(javaType); return _type; } else if (_byte == Code.TYPE) { Expression TYPE = JML_CONST_TYPE.JML_CONST_TYPE; return TYPE; } else if (_byte == Code.ARRAY_ACCESS) { Expression array = readExpression(bytes); Expression arrIndex = readExpression(bytes); if (array instanceof OLD) { array = ((OLD) array).getSubExpressions()[0]; if (arrIndex instanceof OLD) { arrIndex = ((OLD) arrIndex).getSubExpressions()[0]; } Expression fieldAccessExpr = new OLD(new ArrayAccessExpression( array, arrIndex)); return fieldAccessExpr; } Expression arrAccess = new ArrayAccessExpression(array, arrIndex); return arrAccess; } else if (_byte == Code.METHOD_CALL) { // what to do here - there is not encoding offered for the method // references // methodRef expression n expression^n BCConstantMethodRef mRef = (BCConstantMethodRef) readExpression(bytes); Expression ref = readExpression(bytes); int numberArgs = readShort(bytes); Expression[] subExpr = new Expression[numberArgs + 1]; subExpr[0] = ref; for (int i = 0; i < numberArgs; i++) { subExpr[i + 1] = readExpression(bytes); }// commented by jgc: what's its use?// String clazz_name = ((BCConstantClass) (clazz.getConstantPool()// .getConstant(mRef.getClassIndex()))).getName(); MethodInvocation methInv = new MethodInvocation(mRef, subExpr); return methInv; // here should be substituted with the specification of the called // method with the needed substitutions } else if (_byte == Code.CAST) { JavaType type = readJavaType(bytes); Expression expr = readExpression(bytes); CastExpression castExpr = new CastExpression(type, expr); return castExpr;*/ } else if (_byte == Code.FULL_QUALIFIED_NAME) { Expression expr = readExpression(bytes);// for (int xx = 0; xx < 2; xx++) // tego tu nie ma (3 linie)// readByte(bytes); Expression constant = readExpression(bytes);// if (constant instanceof OLD) {// constant = ((OLD) constant).getSubExpressions()[0];// if (expr instanceof OLD) {// expr = ((OLD) expr).getSubExpressions()[0];// }// Expression fieldAccessExpr = new OLD(new FieldAccess(constant,// expr));// return fieldAccessExpr;// } Expression fieldAccessExpr = new FieldAccess(constant, expr); return fieldAccessExpr; // else null; e.i. if a qualified name is found it must a field // access expression /*} else if (_byte == Code.BOOLEAN_EXPR) { // ? : Formula condition = (Formula) readExpression(bytes); Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); ConditionalExpression conditionExpr = new ConditionalExpression( condition, expr1, expr2); return conditionExpr;*/ } else if (_byte == Code.THIS) { // this expression// Expression _this = localVariables[0];// return _this;// } else if (_byte == Code.OLD_THIS) {// Expression oldThis = new OLD(localVariables[0]);// return oldThis; } else if (_byte == Code.NULL) { return NULL._NULL;/* } else if ((_byte == Code.OLD_FIELD_REF) || (_byte == Code.OLD_JML_MODEL_FIELD)) { // see in the file remarks int cpIndex = readShort(bytes); // find the object in the constant field BCConstant constantField = clazz.getConstantPool().getConstant( cpIndex); if (!(constantField instanceof BCConstantFieldRef)) { throw new ReadAttributeException( "Error reading in the Constant Pool : reason : CONSTANT_Fieldref expected at index " + cpIndex); } Expression oldFieldRef = new OLD(constantField); return oldFieldRef; } else if (_byte == Code.LOCAL_VARIABLE) { // the index of the local variable int ind = readShort(bytes); if (localVariables.length <= ind) { throw new ArrayIndexOutOfBoundsException(); } Expression lVarAccess = localVariables[ind]; return lVarAccess; } else if (_byte == Code.OLD_LOCAL_VARIABLE) { // the index of the local variable int ind = readShort(bytes); Expression lVarAccess = localVariables[ind]; Expression oldValue = new OLD(lVarAccess); return oldValue; } else if (_byte == Code.ARRAYLENGTH) { ArrayLengthConstant length = ArrayLengthConstant.ARRAYLENGTHCONSTANT; return length;*/ } else if (_byte == Code.FIELD_LOC) { // read the index of the field_ref in the constant pool int cpIndex = readShort(bytes); // find the object in the constant field// BCConstant constantField = clazz.getConstantPool().getConstant(// cpIndex);// if (!(constantField instanceof BCConstantFieldRef)) {// throw new ReadAttributeException(// "Error reading in the Constant Pool : reason : CONSTANT_Fieldref expected at index "// + cpIndex);// }// return constantField; return new UnknownExpression();/* } else if (_byte == Code.JML_MODEL_FIELD) { int cpIndex = readShort(bytes); BCConstant constantField = clazz.getConstantPool().getConstant( cpIndex); if (!(constantField instanceof BCConstantFieldRef)) { throw new ReadAttributeException( "Error reading in the Constant Pool :reason : CONSTANT_Fieldref expected for a model field ref at index " + cpIndex); } return constantField; } else if (_byte == Code.METHOD_REF) { int cpIndex = readShort(bytes); BCConstant consantMethodRef = clazz.getConstantPool().getConstant( cpIndex); if (!(consantMethodRef instanceof BCConstantMethodRef)) { throw new ReadAttributeException( "Error reading in the Constant Pool : reason: CONSTANT_Methodref expected at index " + cpIndex); } return consantMethodRef; } else if (_byte == Code.JAVA_TYPE) { int cpIndex = readShort(bytes); BCConstant constantUtf8 = clazz.getConstantPool().getConstant( cpIndex); if (!(constantUtf8 instanceof BCConstantUtf8)) { throw new ReadAttributeException( "Error reading in the Constant Pool : reason: CONSTANT_Utf8 expected at index " + cpIndex); } return constantUtf8; } else if (_byte == Code.BOUND_VAR) { int ind = readShort(bytes); Variable var = new Variable(ind); return var; } else if (_byte == Code.STACK) { ArithmeticExpression counter = (ArithmeticExpression) readExpression(bytes); Stack stack = new Stack(counter); return stack; } else if (_byte == Code.STACK_COUNTER) { Counter c = Counter.getCounter(); return c;*/ } else if (_byte == Code.TRUE) { return Predicate0Ar.TRUE; } else if (_byte == Code.FALSE) { return Predicate0Ar.FALSE; } else if (_byte == Code.AND) { Expression f1 = readExpression(bytes); Expression f2 = readExpression(bytes); Formula formula = Formula.getFormula(f1, f2, Connector.AND); return formula; } else if (_byte == Code.OR) { Expression f1 = readExpression(bytes); Expression f2 = readExpression(bytes); Formula formula = Formula.getFormula(f1, f2, Connector.OR); return formula; } else if (_byte == Code.IMPLIES) { Expression f1 = readExpression(bytes); Expression f2 = readExpression(bytes); Formula formula = Formula.getFormula(f1, f2, Connector.IMPLIES); return formula; } else if (_byte == Code.NOT) { Expression f1 = readExpression(bytes); if (f1 instanceof Formula) { Formula formula = Formula.getFormula((Formula) f1, Connector.NOT); return formula; } DesugarNegBoolExpr des = new DesugarNegBoolExpr(f1, true); return des; } else if (_byte == Code.GRT) { Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); Formula predicate = Predicate2Ar.getPredicate(expr1, expr2, PredicateSymbol.GRT); return predicate; } else if (_byte == Code.GRTEQ) { Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); Formula predicate = Predicate2Ar.getPredicate(expr1, expr2, PredicateSymbol.GRTEQ); return predicate; } else if (_byte == Code.LESS) { Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); Formula predicate = Predicate2Ar.getPredicate(expr1, expr2, PredicateSymbol.LESS); return predicate; } else if (_byte == Code.LESSEQ) { Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); Formula predicate = Predicate2Ar.getPredicate(expr1, expr2, PredicateSymbol.LESSEQ); return predicate; } else if (_byte == Code.EQ) { Expression expr1 = readExpression(bytes); // here we substitute the appearing formulas in equality relation // as the JVM do not support the boolean type, in place of the true // boolean value // 1 is used and in place of the false boolean value 0 is used // Thus suppose that expr1 is a formula. It is substituted with: // 1 if the formula is the predicate true // 0 if the formula is the predicate false // else if it is another type of formula and expr2 is not a formula: // f == expr2 is substituted with // 1 == expr2 ==> f /\ 0 == expr2 ==> !f // else if Formula f1 = null; DesugarNegBoolExpr des1 = null; if (expr1 == Predicate0Ar.TRUE) { expr1 = new NumberLiteral(1); } else if (expr1 == Predicate0Ar.FALSE) { expr1 = new NumberLiteral(0); } else if (expr1 instanceof Formula) { f1 = (Formula) expr1; } else if (expr1 instanceof DesugarNegBoolExpr) { des1 = (DesugarNegBoolExpr) expr1; } Expression expr2 = readExpression(bytes); Formula f2 = null; DesugarNegBoolExpr des2 = null; if (expr2 == Predicate0Ar.TRUE) { expr2 = new NumberLiteral(1); } else if (expr2 == Predicate0Ar.FALSE) { expr2 = new NumberLiteral(0); } else if (expr2 instanceof Formula) { f2 = (Formula) expr2; } else if (expr2 instanceof DesugarNegBoolExpr) { des2 = (DesugarNegBoolExpr) expr2; } if ((des2 != null) && (f1 == null) && (des1 == null)) { Formula posCondition = des2.getPositiveCondition(); Expression posValue = des2.getPositiveValue(); Formula expr2_eq_posValue = new Predicate2Ar(expr1, posValue, PredicateSymbol.EQ); Formula posCase = Formula.getFormula(posCondition, expr2_eq_posValue, Connector.EQUIV); return posCase; } if ((f1 != null) && (f2 != null)) { Formula f = Formula.getFormula(f1, f2, Connector.EQUIV); return f; } else if (f1 != null) { Formula true_eq_e2 = Predicate2Ar.getPredicate( new NumberLiteral(1), expr2, PredicateSymbol.EQ); Formula true_eq_e2_equiv_f1 = Formula.getFormula(true_eq_e2, f1, Connector.EQUIV); return true_eq_e2_equiv_f1; } else if (f2 != null) { Formula true_eq_e1 = Predicate2Ar.getPredicate(expr1, new NumberLiteral(1), PredicateSymbol.EQ); Formula true_eq_e1_equiv_f2 = Formula.getFormula(true_eq_e1, f2, Connector.EQUIV); return true_eq_e1_equiv_f2; } else { Formula predicate = Predicate2Ar.getPredicate(expr1, expr2, PredicateSymbol.EQ); return predicate; } } else if (_byte == Code.NOTEQ) { Expression expr1 = readExpression(bytes); Expression expr2 = readExpression(bytes); Formula predicate = Formula.getFormula(Predicate2Ar.getPredicate( expr1, expr2, PredicateSymbol.EQ), Connector.NOT); return predicate;// return new UnknownExpression(); /*} else if (_byte == Code.INSTANCEOF) { Expression expr1 = readExpression(bytes); JavaType type = readJavaType(bytes); Formula predicate = new Predicate2Ar(type, expr1, PredicateSymbol.INSTANCEOF); return predicate; } else if (_byte == Code.SUBTYPE) { JavaType type1 = readJavaType(bytes); JavaType type2 = readJavaType(bytes); Formula predicate = new Predicate2Ar(type1, type2, PredicateSymbol.SUBTYPE); return predicate; } if (_byte == Code.EXISTS) { int numBoundVars = readByte(bytes); Variable[] vars = new Variable[numBoundVars]; for (int i = 0; i < numBoundVars; i++) { JavaType jType = readJavaType(bytes); Variable var = new Variable(i, jType); vars[i] = var; } Quantificator exists = new Quantificator(Quantificator.EXISTS, vars); Formula f = (Formula) readExpression(bytes); Formula forallFormula = Formula.getFormula(f, exists); return forallFormula; } else if (_byte == Code.FORALL) { int numBoundVars = readByte(bytes); Variable[] vars = new Variable[numBoundVars]; for (int i = 0; i < numBoundVars; i++) { JavaType jType = readJavaType(bytes); Variable var = new Variable(i, jType); vars[i] = var; } Quantificator forall = new Quantificator(Quantificator.FORALL, vars); Formula f = (Formula) readExpression(bytes); Formula forallFormula = Formula.getFormula(f, forall); return forallFormula;*/ } return new UnknownExpression(); }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/a3982875c015e382d74649a8731d20aff971ed87/AttributeReader.java/clean/src/Umbra/source/umbra/annot/io/AttributeReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 5371, 855, 2300, 12, 7229, 8526, 1731, 13, 1082, 202, 15069, 2720, 1499, 503, 288, 202, 202, 474, 389, 7229, 273, 22301, 12, 3890, 1769, 202, 202, 3163, 18, 659, 18, 1188, 12, 4522, 18, 869, 14866, 12443, 67, 7229, 397, 8303, 13, 738, 8303, 13, 397, 12452, 397, 949, 397, 315, 3631, 315, 1769, 202, 202, 430, 261, 67, 7229, 422, 3356, 18, 6253, 3378, 13, 288, 368, 6052, 16368, 1082, 202, 2300, 425, 21, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 22, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 273, 27443, 2300, 18, 588, 686, 16368, 2300, 12, 73, 21, 16, 425, 22, 16, 6862, 202, 2300, 2918, 18, 8355, 1769, 1082, 202, 2463, 425, 31, 202, 202, 97, 469, 309, 261, 67, 7229, 422, 3356, 18, 6236, 3378, 13, 288, 1082, 202, 2300, 425, 21, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 22, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 273, 27443, 2300, 18, 588, 686, 16368, 2300, 12, 73, 21, 16, 425, 22, 16, 6862, 202, 2300, 2918, 18, 8362, 1769, 1082, 202, 2463, 425, 31, 202, 202, 97, 469, 309, 261, 67, 7229, 422, 3356, 18, 12845, 13, 288, 1082, 202, 2300, 425, 21, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 22, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 273, 27443, 2300, 18, 588, 686, 16368, 2300, 12, 73, 21, 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, 5371, 855, 2300, 12, 7229, 8526, 1731, 13, 1082, 202, 15069, 2720, 1499, 503, 288, 202, 202, 474, 389, 7229, 273, 22301, 12, 3890, 1769, 202, 202, 3163, 18, 659, 18, 1188, 12, 4522, 18, 869, 14866, 12443, 67, 7229, 397, 8303, 13, 738, 8303, 13, 397, 12452, 397, 949, 397, 315, 3631, 315, 1769, 202, 202, 430, 261, 67, 7229, 422, 3356, 18, 6253, 3378, 13, 288, 368, 6052, 16368, 1082, 202, 2300, 425, 21, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 22, 273, 855, 2300, 12, 3890, 1769, 1082, 202, 2300, 425, 273, 27443, 2300, 18, 588, 686, 16368, 2300, 12, 73, 21, 16, 425, 22, 16, 6862, 202, 2300, 2 ]
out.print( "<p><hr><p>"+ "<h2>Remove an existing move request:</h2>\n");
out.print( "<p>"+ "<h3>Remove an existing request:</h3>\n");
private void writeForm( PrintWriter out) throws IOException { // begin form out.print("<form method=\"GET\" action=\""); out.print(request.getRequestURI()); out.print("\">\n"); // show the current time out.print("<i>Time: "); out.print(new Date()); out.print("</i><p>"); out.print( "<h2>"+ "Local MoveAgent Objects:</h2><p>"); // show current MoveAgent objects Collection c = queryMoveAgents(); int n = ((c != null) ? c.size() : 0); if (n == 0) { out.print("<i>none</i>"); } else { out.print( "<table border=1 cellpadding=1\n"+ " cellspacing=1 width=95%\n"+ " bordercolordark=#660000 bordercolorlight=#cc9966>\n"+ "<tr>"+ "<td>\n"+ "<font size=+1 color=mediumblue><b>UID</b></font>"+ "</td>"+ "<td>"+ "<font size=+1 color=mediumblue><b>Ticket</b></font>"+ "</td>"+ "<td>"+ "<font size=+1 color=mediumblue><b>Status</b></font>"+ "</td>"+ "</tr>\n"); Iterator iter = c.iterator(); for (int i = 0; i < n; i++) { MoveAgent ma = (MoveAgent) iter.next(); out.print("<tr><td>"); out.print(ma.getUID()); out.print("</td><td>"); out.print(ma.getTicket()); out.print("</td><td bgcolor=\""); MoveAgent.Status status = ma.getStatus(); if (status == null) { out.print( "#FFFFBB\">"+ // yellow "In progress"); } else { out.print( (status.getCode() == MoveAgent.Status.OKAY) ? "#BBFFBB\">" : // green "#FFBBBB\">"); // red out.print(status); } out.print("</td></tr>\n"); } out.print("</table>\n"); } out.print( "<p><input type=\"submit\" name=\""+ ACTION_PARAM+ "\" value=\""+ REFRESH_VALUE+ "\">\n"); // allow user to remove an existing MoveAgent out.print( "<p><hr><p>"+ "<h2>Remove an existing move request:</h2>\n"); if (n > 0) { out.print( "<select name=\""+ REMOVE_UID_PARAM+ "\">"); Iterator iter = c.iterator(); for (int i = 0; i < n; i++) { MoveAgent ma = (MoveAgent) iter.next(); UID uid = ma.getUID(); out.print("<option value=\""); out.print(uid); out.print("\">"); out.print(uid); out.print("</option>"); } out.print( "</select>"+ "<input type=\"submit\" name=\""+ ACTION_PARAM+ "\" value=\""+ REMOVE_VALUE+ "\">\n"); } else { out.print("<i>none</i>"); } // allow user to submit a new MoveAgent request out.print( "<p>"+ "<h2>Create a new agent-movement request:</h2>\n"); out.print( "<table>\n"+ "<tr><td>"+ "Mobile Agent"+ "</td><td>\n"+ "<input type=\"text\" name=\""+ MOBILE_AGENT_PARAM+ "\" size=70"); if (mobileAgent != null) { out.print(" value=\""); out.print(mobileAgent); out.print("\""); } out.print( ">"+ "</td></tr>\n"+ "<tr><td>"+ "Origin Node"+ "</td><td>"+ "<input type=\"text\" name=\""+ ORIGIN_NODE_PARAM+ "\" size=70"); if (originNode != null) { out.print(" value=\""); out.print(originNode); out.print("\""); } out.print( ">"+ "</td></tr>\n"+ "<tr><td>"+ "Destination Node"+ "</td><td>"+ "<input type=\"text\" name=\""+ DEST_NODE_PARAM+ "\" size=70"); if (destNode != null) { out.print(" value=\""); out.print(destNode); out.print("\""); } out.print( ">"+ "</td></tr>\n"+ "<tr><td>"+ "Force Restart"+ "</td><td>"+ "<select name=\""+ IS_FORCE_RESTART_PARAM+ "\">"+ "<option value=\"true\""); if (isForceRestart) { out.print(" selected"); } out.print( ">true</option>"+ "<option value=\"false\""); if (!(isForceRestart)) { out.print(" selected"); } out.print( ">false</option>"+ "</select>\n"+ "</td></tr>\n"+ "<tr><td colwidth=2>"+ "<input type=\"submit\" name=\""+ ACTION_PARAM+ "\" value=\""+ ADD_VALUE+ "\">"+ "<input type=\"reset\">"+ "</td></tr>\n"+ "</table>\n"+ "</form>\n"); }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/5771f339b6d2a0a1b2a246499efaa8f9773fa486/MoveAgentServlet.java/buggy/core/src/org/cougaar/core/mobility/servlet/MoveAgentServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 918, 1045, 1204, 12, 1850, 14071, 596, 13, 1216, 1860, 288, 3639, 368, 2376, 646, 3639, 596, 18, 1188, 2932, 32, 687, 707, 5189, 3264, 2412, 1301, 5189, 8863, 3639, 596, 18, 1188, 12, 2293, 18, 588, 691, 3098, 10663, 3639, 596, 18, 1188, 2932, 28219, 82, 8863, 3639, 368, 2405, 326, 783, 813, 3639, 596, 18, 1188, 2932, 32, 77, 34, 950, 30, 315, 1769, 3639, 596, 18, 1188, 12, 2704, 2167, 10663, 3639, 596, 18, 1188, 2932, 1757, 77, 4438, 84, 2984, 1769, 3639, 596, 18, 1188, 12, 5411, 3532, 76, 22, 2984, 15, 5411, 315, 2042, 9933, 3630, 8487, 19814, 76, 22, 4438, 84, 2984, 1769, 3639, 368, 2405, 783, 9933, 3630, 2184, 3639, 2200, 276, 273, 843, 7607, 23400, 5621, 3639, 509, 290, 273, 14015, 71, 480, 446, 13, 692, 276, 18, 1467, 1435, 294, 374, 1769, 3639, 309, 261, 82, 422, 374, 13, 288, 1850, 596, 18, 1188, 2932, 32, 77, 34, 6102, 1757, 77, 2984, 1769, 3639, 289, 469, 288, 1850, 596, 18, 1188, 12, 2868, 3532, 2121, 5795, 33, 21, 2484, 9598, 33, 21, 64, 82, 6, 15, 2868, 315, 2484, 14080, 33, 21, 1835, 33, 8778, 30671, 82, 6, 15, 2868, 315, 5795, 1293, 517, 1313, 33, 7, 6028, 2787, 5795, 3266, 5099, 33, 7, 952, 2733, 6028, 5333, 82, 6, 15, 2868, 3532, 313, 2984, 15, 2868, 3532, 4465, 5333, 82, 6, 15, 2868, 3532, 5776, 963, 33, 15, 21, 2036, 33, 19011, 14081, 4438, 70, 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, 4202, 3238, 918, 1045, 1204, 12, 1850, 14071, 596, 13, 1216, 1860, 288, 3639, 368, 2376, 646, 3639, 596, 18, 1188, 2932, 32, 687, 707, 5189, 3264, 2412, 1301, 5189, 8863, 3639, 596, 18, 1188, 12, 2293, 18, 588, 691, 3098, 10663, 3639, 596, 18, 1188, 2932, 28219, 82, 8863, 3639, 368, 2405, 326, 783, 813, 3639, 596, 18, 1188, 2932, 32, 77, 34, 950, 30, 315, 1769, 3639, 596, 18, 1188, 12, 2704, 2167, 10663, 3639, 596, 18, 1188, 2932, 1757, 77, 4438, 84, 2984, 1769, 3639, 596, 18, 1188, 12, 5411, 3532, 76, 22, 2984, 15, 5411, 315, 2042, 9933, 3630, 8487, 19814, 76, 22, 4438, 84, 2984, 1769, 3639, 368, 2405, 783, 9933, 3630, 2184, 3639, 2 ]
} else if ("Logout".equals(action)) {
} else if (authAction && "Logout".equals(action)) {
public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8"); resp.setContentType("text/html"); User user = (User)req.getSession().getAttribute("user"); String login = req.getParameter("login"); String pass = req.getParameter("password"); String action = req.getParameter("action"); boolean forceNewIndex = false; if (req.getParameter("regenerateIndex") != null) forceNewIndex = true; User oldUser = user; user = handleRegister(user, req); if (oldUser != user) forceNewIndex = true; if (user == null) { if ("Login".equals(action)) { user = BlogManager.instance().login(login, pass); // ignore failures - user will just be unauthorized if (!user.getAuthenticated()) user = BlogManager.instance().getDefaultUser(); } else { user = BlogManager.instance().getDefaultUser(); } forceNewIndex = true; } else if ("Login".equals(action)) { user = BlogManager.instance().login(login, pass); // ignore failures - user will just be unauthorized if (!user.getAuthenticated()) user = BlogManager.instance().getDefaultUser(); forceNewIndex = true; } else if ("Logout".equals(action)) { user = BlogManager.instance().getDefaultUser(); forceNewIndex = true; } req.getSession().setAttribute("user", user); handleAdmin(user, req); forceNewIndex = handleAddressbook(user, req) || forceNewIndex; forceNewIndex = handleBookmarking(user, req) || forceNewIndex; handleUpdateProfile(user, req); FilteredThreadIndex index = (FilteredThreadIndex)req.getSession().getAttribute("threadIndex"); Collection tags = getFilteredTags(req); Collection filteredAuthors = getFilteredAuthors(req); if (forceNewIndex || (index == null) || (!index.getFilteredTags().equals(tags)) || (!index.getFilteredAuthors().equals(filteredAuthors))) { index = new FilteredThreadIndex(user, BlogManager.instance().getArchive(), getFilteredTags(req), filteredAuthors); req.getSession().setAttribute("threadIndex", index); } render(user, req, resp.getWriter(), index); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/ddd438de35fbe3d75565ba0a1660cac2e44a66b7/BaseServlet.java/clean/apps/syndie/java/src/net/i2p/syndie/web/BaseServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1156, 12, 2940, 18572, 1111, 16, 12446, 1718, 13, 1216, 16517, 16, 1860, 288, 3639, 1111, 18, 542, 7069, 4705, 2932, 5159, 17, 28, 8863, 3639, 1718, 18, 542, 7069, 4705, 2932, 5159, 17, 28, 8863, 3639, 1718, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 7734, 2177, 729, 273, 261, 1299, 13, 3658, 18, 588, 2157, 7675, 588, 1499, 2932, 1355, 8863, 3639, 514, 3925, 273, 1111, 18, 588, 1662, 2932, 5819, 8863, 3639, 514, 1342, 273, 1111, 18, 588, 1662, 2932, 3664, 8863, 3639, 514, 1301, 273, 1111, 18, 588, 1662, 2932, 1128, 8863, 3639, 1250, 2944, 1908, 1016, 273, 629, 31, 7734, 309, 261, 3658, 18, 588, 1662, 2932, 1574, 14681, 1016, 7923, 480, 446, 13, 5411, 2944, 1908, 1016, 273, 638, 31, 3639, 2177, 1592, 1299, 273, 729, 31, 3639, 729, 273, 1640, 3996, 12, 1355, 16, 1111, 1769, 3639, 309, 261, 1673, 1299, 480, 729, 13, 5411, 2944, 1908, 1016, 273, 638, 31, 7734, 309, 261, 1355, 422, 446, 13, 288, 5411, 309, 7566, 5358, 9654, 14963, 12, 1128, 3719, 288, 7734, 729, 273, 25464, 1318, 18, 1336, 7675, 5819, 12, 5819, 16, 1342, 1769, 368, 2305, 11720, 300, 729, 903, 2537, 506, 640, 8434, 7734, 309, 16051, 1355, 18, 588, 15606, 10756, 10792, 729, 273, 25464, 1318, 18, 1336, 7675, 588, 1868, 1299, 5621, 5411, 289, 469, 288, 7734, 729, 273, 25464, 1318, 18, 1336, 7675, 588, 1868, 1299, 5621, 5411, 289, 5411, 2944, 1908, 1016, 273, 638, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1156, 12, 2940, 18572, 1111, 16, 12446, 1718, 13, 1216, 16517, 16, 1860, 288, 3639, 1111, 18, 542, 7069, 4705, 2932, 5159, 17, 28, 8863, 3639, 1718, 18, 542, 7069, 4705, 2932, 5159, 17, 28, 8863, 3639, 1718, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 7734, 2177, 729, 273, 261, 1299, 13, 3658, 18, 588, 2157, 7675, 588, 1499, 2932, 1355, 8863, 3639, 514, 3925, 273, 1111, 18, 588, 1662, 2932, 5819, 8863, 3639, 514, 1342, 273, 1111, 18, 588, 1662, 2932, 3664, 8863, 3639, 514, 1301, 273, 1111, 18, 588, 1662, 2932, 1128, 8863, 3639, 1250, 2944, 1908, 1016, 273, 629, 31, 7734, 309, 261, 3658, 18, 588, 1662, 2932, 1574, 14681, 1016, 7923, 2 ]
defaults.font = new Font("Lucida Sans", Font.PLAIN, 12);
defaults.font = new Font("Arial", Font.PLAIN, 12);
protected SVGGraphics2D buildSVGGraphics2D() { // CSSDocumentHandler.setParserClassName(CSS_PARSER_CLASS_NAME); DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String namespaceURI = SVGDOMImplementation.SVG_NAMESPACE_URI; Document domFactory = impl.createDocument(namespaceURI, SVG_SVG_TAG, null); SVGGeneratorContext ctx = SVGGeneratorContext.createDefault(domFactory); GraphicContextDefaults defaults = new GraphicContextDefaults(); defaults.font = new Font("Lucida Sans", Font.PLAIN, 12); ctx.setGraphicContextDefaults(defaults); return new SVGGraphics2D(ctx, false); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8a6427ea70d7da849e67917ba442d88a58a4a07a/SVGAccuracyTest.java/clean/test-sources/org/apache/batik/svggen/SVGAccuracyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 11281, 17558, 22, 40, 1361, 26531, 17558, 22, 40, 1435, 288, 3639, 368, 6765, 2519, 1503, 18, 542, 2678, 3834, 12, 10276, 67, 30692, 67, 5237, 67, 1985, 1769, 3639, 4703, 13621, 9380, 273, 11281, 8168, 13621, 18, 588, 8168, 13621, 5621, 3639, 514, 19421, 273, 11281, 8168, 13621, 18, 26531, 67, 11368, 67, 3098, 31, 3639, 4319, 4092, 1733, 273, 9380, 18, 2640, 2519, 12, 4937, 3098, 16, 11281, 67, 26531, 67, 7927, 16, 446, 1769, 3639, 11281, 3908, 1042, 1103, 273, 11281, 3908, 1042, 18, 2640, 1868, 12, 9859, 1733, 1769, 3639, 5601, 335, 1042, 7019, 3467, 2398, 273, 394, 5601, 335, 1042, 7019, 5621, 3639, 3467, 18, 5776, 273, 394, 10063, 2932, 37, 566, 287, 3113, 10063, 18, 26549, 16, 2593, 1769, 3639, 1103, 18, 542, 29459, 1042, 7019, 12, 7606, 1769, 3639, 327, 394, 11281, 17558, 22, 40, 12, 5900, 16, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 11281, 17558, 22, 40, 1361, 26531, 17558, 22, 40, 1435, 288, 3639, 368, 6765, 2519, 1503, 18, 542, 2678, 3834, 12, 10276, 67, 30692, 67, 5237, 67, 1985, 1769, 3639, 4703, 13621, 9380, 273, 11281, 8168, 13621, 18, 588, 8168, 13621, 5621, 3639, 514, 19421, 273, 11281, 8168, 13621, 18, 26531, 67, 11368, 67, 3098, 31, 3639, 4319, 4092, 1733, 273, 9380, 18, 2640, 2519, 12, 4937, 3098, 16, 11281, 67, 26531, 67, 7927, 16, 446, 1769, 3639, 11281, 3908, 1042, 1103, 273, 11281, 3908, 1042, 18, 2640, 1868, 12, 9859, 1733, 1769, 3639, 5601, 335, 1042, 7019, 3467, 2398, 273, 394, 5601, 335, 1042, 7019, 5621, 3639, 3467, 18, 5776, 273, 394, 10063, 2932, 37, 566, 2 ]
refreshFilterMenu();
void addDropDownContributions(IMenuManager menu) { super.addDropDownContributions(menu); menu.add(new Separator(MENU_FILTERS_GROUP)); // Don't add in the filters until they are set filtersMenu = new MenuManager(MarkerMessages.filtersSubMenu_title); menu.appendToGroup(MENU_FILTERS_GROUP, filtersMenu); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e8a9fb3cb08bb3870580bd7911646a2ccaf3dbc3/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 9144, 1586, 4599, 5621, 527, 7544, 4164, 442, 15326, 12, 3445, 2104, 1318, 9144, 1586, 4599, 5621, 3824, 13, 9144, 1586, 4599, 5621, 288, 202, 202, 9565, 18, 1289, 7544, 4164, 442, 15326, 12, 5414, 1769, 202, 202, 5414, 18, 1289, 12, 2704, 9144, 1586, 4599, 5621, 27519, 12, 29227, 67, 11126, 55, 67, 8468, 10019, 202, 202, 759, 9144, 1586, 4599, 5621, 7615, 1404, 9144, 1586, 4599, 5621, 527, 9144, 1586, 4599, 5621, 316, 9144, 1586, 4599, 5621, 1915, 74, 1955, 1586, 4599, 5621, 3415, 9144, 1586, 4599, 5621, 3180, 9144, 1586, 4599, 5621, 2898, 9144, 1586, 4599, 5621, 419, 822, 74, 1955, 1586, 4599, 5621, 444, 202, 202, 6348, 49, 275, 594, 74, 1955, 1586, 4599, 5621, 273, 9144, 1586, 4599, 5621, 394, 9144, 1586, 4599, 5621, 9809, 1318, 12, 7078, 5058, 18, 6348, 1676, 4599, 67, 2649, 1769, 202, 202, 5414, 18, 6923, 774, 1114, 12, 29227, 67, 11126, 55, 67, 8468, 16, 9144, 1586, 4599, 5621, 3415, 4599, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 9144, 1586, 4599, 5621, 527, 7544, 4164, 442, 15326, 12, 3445, 2104, 1318, 9144, 1586, 4599, 5621, 3824, 13, 9144, 1586, 4599, 5621, 288, 202, 202, 9565, 18, 1289, 7544, 4164, 442, 15326, 12, 5414, 1769, 202, 202, 5414, 18, 1289, 12, 2704, 9144, 1586, 4599, 5621, 27519, 12, 29227, 67, 11126, 55, 67, 8468, 10019, 202, 202, 759, 9144, 1586, 4599, 5621, 7615, 1404, 9144, 1586, 4599, 5621, 527, 9144, 1586, 4599, 5621, 316, 9144, 1586, 4599, 5621, 1915, 74, 1955, 1586, 4599, 5621, 3415, 9144, 1586, 4599, 5621, 3180, 9144, 1586, 4599, 5621, 2898, 9144, 1586, 4599, 5621, 419, 822, 74, 1955, 1586, 4599, 5621, 444, 202, 202, 6348, 49, 275, 594, 74, 1955, 2 ]
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d = null; AttributeDescr a = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:4: ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | a= auto_focus ) int alt18=6; switch ( input.LA(1) ) { case 41: alt18=1; break; case 42: alt18=2; break; case 45: alt18=3; break; case 46: alt18=4; break; case 44: alt18=5; break; case 43: alt18=6; break; default: if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("496:1: rule_attribute returns [AttributeDescr d] : ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | a= auto_focus );", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:4: ( salience )=>a= salience { pushFollow(FOLLOW_salience_in_rule_attribute795); a=salience(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:502:5: ( no_loop )=>a= no_loop { pushFollow(FOLLOW_no_loop_in_rule_attribute805); a=no_loop(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:503:5: ( agenda_group )=>a= agenda_group { pushFollow(FOLLOW_agenda_group_in_rule_attribute816); a=agenda_group(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:504:5: ( duration )=>a= duration { pushFollow(FOLLOW_duration_in_rule_attribute829); a=duration(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:505:5: ( activation_group )=>a= activation_group { pushFollow(FOLLOW_activation_group_in_rule_attribute843); a=activation_group(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:506:5: a= auto_focus { pushFollow(FOLLOW_auto_focus_in_rule_attribute854); a=auto_focus(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = a; } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 9172, 30, 24, 30, 261, 261, 12814, 6254, 13216, 69, 33, 12814, 6254, 571, 261, 1158, 67, 6498, 13216, 69, 33, 1158, 67, 6498, 571, 261, 28809, 67, 1655, 13216, 69, 33, 28809, 67, 1655, 571, 261, 3734, 13216, 69, 33, 3734, 571, 261, 10027, 67, 1655, 13216, 69, 33, 10027, 67, 1655, 571, 279, 33, 3656, 67, 13923, 262, 5411, 509, 3770, 2643, 33, 26, 31, 5411, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 5411, 648, 20170, 30, 7734, 3770, 2643, 33, 21, 31, 7734, 898, 31, 5411, 648, 14856, 30, 7734, 3770, 2643, 33, 22, 31, 7734, 898, 31, 5411, 648, 12292, 30, 7734, 3770, 2643, 33, 23, 31, 7734, 898, 31, 5411, 648, 17077, 30, 7734, 3770, 2643, 33, 24, 31, 7734, 898, 31, 5411, 648, 13291, 30, 7734, 3770, 2643, 33, 25, 31, 7734, 898, 31, 5411, 648, 21193, 30, 7734, 3770, 2643, 33, 26, 31, 7734, 898, 31, 5411, 805, 30, 7734, 309, 261, 823, 6440, 34, 20, 13, 288, 7307, 33, 3767, 31, 327, 302, 31, 97, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 9172, 30, 24, 30, 261, 261, 12814, 6254, 13216, 69, 33, 12814, 6254, 571, 261, 1158, 67, 6498, 13216, 69, 33, 1158, 67, 6498, 571, 261, 28809, 67, 1655, 13216, 69, 33, 28809, 67, 1655, 571, 261, 3734, 13216, 69, 33, 3734, 571, 261, 10027, 67, 1655, 13216, 69, 2 ]
public void setDoubleBufferMaximumSize(Dimension size) { }
public void setDoubleBufferMaximumSize(Dimension size) { doubleBufferMaximumSize = size; }
public void setDoubleBufferMaximumSize(Dimension size) { // TODO } // setDoubleBufferMaximumSize()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5265, 1892, 13528, 1225, 12, 8611, 963, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 444, 5265, 1892, 13528, 1225, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5265, 1892, 13528, 1225, 12, 8611, 963, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 444, 5265, 1892, 13528, 1225, 1435, 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 ]
return null;
Field f[] = new Field[8]; Vector v = new Vector(); f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); f[1] = new Field(connection,new String("TABLE_SCHEM"),iVarcharOid,32); f[2] = new Field(connection,new String("TABLE_NAME"),iVarcharOid,32); f[3] = new Field(connection,new String("COLUMN_NAME"),iVarcharOid,32); f[4] = new Field(connection,new String("GRANTOR"),iVarcharOid,32); f[5] = new Field(connection,new String("GRANTEE"),iVarcharOid,32); f[6] = new Field(connection,new String("PRIVILEGE"),iVarcharOid,32); f[7] = new Field(connection,new String("IS_GRANTABLE"),iVarcharOid,32); ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner ORDER BY relname"); while(r.next()) { byte[][] tuple = new byte[8][0]; tuple[0] = tuple[1]= "".getBytes(); DriverManager.println("relname=\""+r.getString(1)+"\" relacl=\""+r.getString(2)+"\""); } return new ResultSet(connection,f,v,"OK",1);
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { // XXX-Not Implemented as grant is broken return null; //Field f[] = new Field[8]; //Vector v = new Vector(); // //f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); //f[1] = new Field(connection,new String("TABLE_SCHEM"),iVarcharOid,32); //f[2] = new Field(connection,new String("TABLE_NAME"),iVarcharOid,32); //f[3] = new Field(connection,new String("COLUMN_NAME"),iVarcharOid,32); //f[4] = new Field(connection,new String("GRANTOR"),iVarcharOid,32); //f[5] = new Field(connection,new String("GRANTEE"),iVarcharOid,32); //f[6] = new Field(connection,new String("PRIVILEGE"),iVarcharOid,32); //f[7] = new Field(connection,new String("IS_GRANTABLE"),iVarcharOid,32); // //// This is taken direct from the psql source //ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner ORDER BY relname"); //while(r.next()) { //byte[][] tuple = new byte[8][0]; //tuple[0] = tuple[1]= "default".getBytes(); // //v.addElement(tuple); //} // //return new ResultSet(connection,f,v,"OK",1); }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/4e9dd952966b600951f05ab2913b5b97936d42ba/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 368, 11329, 17, 1248, 18788, 487, 7936, 353, 12933, 565, 327, 446, 31, 565, 368, 974, 284, 8526, 273, 394, 2286, 63, 28, 15533, 565, 368, 5018, 331, 273, 394, 5589, 5621, 565, 368, 565, 368, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7775, 67, 14130, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7775, 67, 55, 10390, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7775, 67, 1985, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 11009, 67, 1985, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 6997, 6856, 916, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 6997, 1258, 1448, 41, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7698, 4136, 900, 7113, 6, 3631, 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, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 368, 11329, 17, 1248, 18788, 487, 7936, 353, 12933, 565, 327, 446, 31, 565, 368, 974, 284, 8526, 273, 394, 2286, 63, 28, 15533, 565, 368, 5018, 331, 273, 394, 5589, 5621, 565, 368, 565, 368, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7775, 67, 14130, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 2704, 514, 2932, 7775, 67, 55, 10390, 6, 3631, 77, 58, 22483, 19105, 16, 1578, 1769, 565, 368, 2 ]
Date sinceDate = new Date(request.getDateHeader("If-Modified-Since"));
long sinceDate = request.getDateHeader("If-Modified-Since");
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { mLogger.debug("entering"); HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; WeblogPageRequest pageRequest = null; try { pageRequest = new WeblogPageRequest(request); } catch(Exception e) { mLogger.error("error creating page request", e); response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } String key = this.CACHE_ID+":"+this.generateKey(pageRequest); Date updateTime = null; try { // we need the last expiration time for the given weblog long lastExpiration = 0; Date lastExpirationDate = (Date) CacheManager.getLastExpiredDate(pageRequest.getWeblogHandle()); if(lastExpirationDate != null) lastExpiration = lastExpirationDate.getTime(); LazyExpiringCacheEntry entry = (LazyExpiringCacheEntry) this.mCache.get(key); if(entry != null) { updateTime = (Date) entry.getValue(lastExpiration); if(updateTime == null) mLogger.debug("HIT-INVALID "+key); } if (updateTime == null) { mLogger.debug("MISS "+key); if(pageRequest.getWeblogHandle() != null) { // just set updateTime to now updateTime = new Date(); this.mCache.put(key, new LazyExpiringCacheEntry(updateTime)); } } else { mLogger.debug("HIT "+key); } // Check the incoming if-modified-since header Date sinceDate = new Date(request.getDateHeader("If-Modified-Since")); if (updateTime != null) { // convert date (JDK 1.5 workaround) String date = dateFormatter.format(updateTime); updateTime = new Date(date); if (updateTime.compareTo(sinceDate) <= 0) { mLogger.debug("NOT_MODIFIED "+key); response.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return; } } } catch (IllegalArgumentException e) { // Thrown by getDateHeader if not in valid format. This can be // safely ignored, the only consequence is that the NOT MODIFIED // response is not set. } // Set outgoing last modified header if (updateTime != null) { response.setDateHeader("Last-Modified", updateTime.getTime()); } chain.doFilter(request, response); mLogger.debug("exiting"); }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/dc8131615f06cc2b450807d2feaa6d73729725f2/IfModifiedWeblogPageCacheFilter.java/clean/src/org/apache/roller/ui/rendering/filters/IfModifiedWeblogPageCacheFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1586, 12, 18572, 1111, 16, 7682, 7971, 1064, 400, 16, 7682, 4008, 3893, 2687, 13, 5411, 1216, 1860, 16, 16517, 288, 7734, 312, 3328, 18, 4148, 2932, 2328, 310, 8863, 7734, 9984, 590, 273, 261, 2940, 18572, 13, 1111, 31, 3639, 12446, 766, 273, 261, 2940, 29910, 13, 400, 31, 7734, 2999, 1330, 1964, 691, 1363, 691, 273, 446, 31, 3639, 775, 288, 5411, 1363, 691, 273, 394, 2999, 1330, 1964, 691, 12, 2293, 1769, 3639, 289, 1044, 12, 503, 425, 13, 288, 5411, 312, 3328, 18, 1636, 2932, 1636, 4979, 1363, 590, 3113, 425, 1769, 5411, 766, 18, 4661, 668, 12, 2940, 29910, 18, 2312, 67, 4400, 67, 9294, 1769, 5411, 327, 31, 3639, 289, 7734, 514, 498, 273, 333, 18, 8495, 67, 734, 9078, 2773, 15, 2211, 18, 7163, 653, 12, 2433, 691, 1769, 7734, 2167, 1089, 950, 273, 446, 31, 3639, 775, 288, 5411, 368, 732, 1608, 326, 1142, 7686, 813, 364, 326, 864, 3311, 1330, 5411, 1525, 1142, 12028, 273, 374, 31, 5411, 2167, 1142, 12028, 1626, 273, 10792, 261, 1626, 13, 4379, 1318, 18, 588, 3024, 10556, 1626, 12, 2433, 691, 18, 588, 4079, 1330, 3259, 10663, 5411, 309, 12, 2722, 12028, 1626, 480, 446, 13, 7734, 1142, 12028, 273, 1142, 12028, 1626, 18, 588, 950, 5621, 13491, 12805, 2966, 11256, 27630, 1241, 273, 10792, 261, 14443, 2966, 11256, 27630, 13, 333, 18, 81, 1649, 18, 588, 12, 856, 1769, 5411, 309, 12, 4099, 480, 446, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1586, 12, 18572, 1111, 16, 7682, 7971, 1064, 400, 16, 7682, 4008, 3893, 2687, 13, 5411, 1216, 1860, 16, 16517, 288, 7734, 312, 3328, 18, 4148, 2932, 2328, 310, 8863, 7734, 9984, 590, 273, 261, 2940, 18572, 13, 1111, 31, 3639, 12446, 766, 273, 261, 2940, 29910, 13, 400, 31, 7734, 2999, 1330, 1964, 691, 1363, 691, 273, 446, 31, 3639, 775, 288, 5411, 1363, 691, 273, 394, 2999, 1330, 1964, 691, 12, 2293, 1769, 3639, 289, 1044, 12, 503, 425, 13, 288, 5411, 312, 3328, 18, 1636, 2932, 1636, 4979, 1363, 590, 3113, 425, 1769, 5411, 766, 18, 4661, 668, 12, 2940, 29910, 18, 2312, 67, 4400, 67, 9294, 1769, 5411, 327, 31, 3639, 2 ]
commandNameColumn.setText(Util.translateString(RESOURCE_BUNDLE, "commandNameColumn.Text"));
commandNameColumn.setText(NewKeysPreferenceMessages.CommandNameColumn_Text);
private final Control createTree(final Composite parent) { GridData gridData; filteredTree = new DougsSuperFilteredTree(parent, SWT.SINGLE /* | SWT.FULL_SELECTION */| SWT.BORDER); final GridLayout layout = new GridLayout(2, false); layout.marginWidth = 0; filteredTree.setLayout(layout); gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.grabExcessVerticalSpace = true; gridData.horizontalAlignment = SWT.FILL; gridData.verticalAlignment = SWT.FILL; filteredTree.setLayoutData(gridData); // Make sure the filtered tree has a height of ITEMS_TO_SHOW final Tree tree = filteredTree.getViewer().getTree(); tree.setHeaderVisible(true); final Object layoutData = tree.getLayoutData(); if (layoutData instanceof GridData) { gridData = (GridData) layoutData; final int itemHeight = tree.getItemHeight(); if (itemHeight > 1) { gridData.heightHint = ITEMS_TO_SHOW * itemHeight; } } // Create the columns for the tree. final TreeColumn commandNameColumn = new TreeColumn(tree, SWT.LEFT, BindingLabelProvider.COLUMN_COMMAND); commandNameColumn.setText(Util.translateString(RESOURCE_BUNDLE, "commandNameColumn.Text")); //$NON-NLS-1$ final TreeColumn triggerSequenceColumn = new TreeColumn(tree, SWT.LEFT, BindingLabelProvider.COLUMN_TRIGGER_SEQUENCE); triggerSequenceColumn.setText(Util.translateString(RESOURCE_BUNDLE, "triggerSequenceColumn.Text")); //$NON-NLS-1$ new TreeColumn(tree, SWT.LEFT, BindingLabelProvider.COLUMN_ADD); new TreeColumn(tree, SWT.LEFT, BindingLabelProvider.COLUMN_REMOVE); // Set up the providers for the viewer. final TreeViewer viewer = filteredTree.getViewer(); viewer.setLabelProvider(new BindingLabelProvider()); viewer.setContentProvider(new TreeNodeContentProvider()); viewer.setSorter(new BindingSorter()); /* * Listen for selection changes so that the data controls can be * updated. */ viewer.addSelectionChangedListener(new ISelectionChangedListener() { public final void selectionChanged(final SelectionChangedEvent event) { selectTreeRow(event); } }); tree.addMouseListener(new MouseAdapter() { public final void mouseDown(final MouseEvent event) { selectTreeColumn(event); } }); // Adjust how the filter works. filteredTree.getPatternFilter().setIncludeLeadingWildcard(true); // Set the grouping options. final Combo groupingCombo = filteredTree.getGroupingCombo(); final String[] groupings = { GROUPING_CATEGORY_NAME, GROUPING_CONTEXT_NAME, GROUPING_NONE_NAME }; final Collator collator = Collator.getInstance(); Arrays.sort(groupings, collator); groupingCombo.setItems(groupings); groupingCombo.setText(GROUPING_NONE_NAME); groupingCombo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { update(); } }); return filteredTree; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/513fdd2ff09faa46895497ae1bc94b7630736b66/NewKeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/NewKeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 8888, 752, 2471, 12, 6385, 14728, 982, 13, 288, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 12071, 2471, 273, 394, 463, 1395, 564, 8051, 14478, 2471, 12, 2938, 16, 348, 8588, 18, 20184, 202, 202, 20308, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 1195, 96, 348, 8588, 18, 38, 7954, 1769, 202, 202, 6385, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 22, 16, 629, 1769, 202, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 12071, 2471, 18, 542, 3744, 12, 6741, 1769, 202, 202, 5222, 751, 273, 394, 7145, 751, 5621, 202, 202, 5222, 751, 18, 2752, 70, 424, 614, 14457, 3819, 273, 638, 31, 202, 202, 5222, 751, 18, 2752, 70, 424, 614, 15704, 3819, 273, 638, 31, 202, 202, 5222, 751, 18, 18396, 11535, 273, 348, 8588, 18, 29818, 31, 202, 202, 5222, 751, 18, 17824, 11535, 273, 348, 8588, 18, 29818, 31, 202, 202, 12071, 2471, 18, 542, 3744, 751, 12, 5222, 751, 1769, 202, 202, 759, 4344, 3071, 326, 5105, 2151, 711, 279, 2072, 434, 467, 1448, 3537, 67, 4296, 67, 16677, 202, 202, 6385, 4902, 2151, 273, 5105, 2471, 18, 588, 18415, 7675, 588, 2471, 5621, 202, 202, 3413, 18, 542, 1864, 6207, 12, 3767, 1769, 202, 202, 6385, 1033, 3511, 751, 273, 2151, 18, 588, 3744, 751, 5621, 202, 202, 430, 261, 6741, 751, 1276, 7145, 751, 13, 288, 1082, 202, 5222, 751, 273, 261, 6313, 751, 13, 3511, 751, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 8888, 752, 2471, 12, 6385, 14728, 982, 13, 288, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 12071, 2471, 273, 394, 463, 1395, 564, 8051, 14478, 2471, 12, 2938, 16, 348, 8588, 18, 20184, 202, 202, 20308, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 1195, 96, 348, 8588, 18, 38, 7954, 1769, 202, 202, 6385, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 22, 16, 629, 1769, 202, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 12071, 2471, 18, 542, 3744, 12, 6741, 1769, 202, 202, 5222, 751, 273, 394, 7145, 751, 5621, 202, 202, 5222, 751, 18, 2752, 70, 424, 614, 14457, 3819, 273, 638, 31, 202, 202, 5222, 751, 2 ]
IWorkbenchPage page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage();
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
public void close(IMylarElement node) { IWorkbenchPage page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage(); if (page != null) { IEditorReference[] references = page.getEditorReferences(); for (int i = 0; i < references.length; i++) { IEditorPart part = references[i].getEditor(false); if (part != null) { if (part instanceof AbstractBugEditor) { ((AbstractBugEditor) part).close(); } else if (part instanceof BugzillaTaskEditor) { ((BugzillaTaskEditor) part).close(); } } } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d16d23b44149efbe108b019fef3a51af0711ee70/BugzillaUiBridge.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/BugzillaUiBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1746, 12, 3445, 93, 7901, 1046, 756, 13, 288, 202, 202, 45, 2421, 22144, 1964, 1363, 273, 4147, 22144, 18, 588, 1442, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 202, 202, 430, 261, 2433, 480, 446, 13, 288, 1082, 202, 45, 6946, 2404, 8526, 5351, 273, 1363, 18, 588, 6946, 8221, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5351, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 6946, 1988, 1087, 273, 5351, 63, 77, 8009, 588, 6946, 12, 5743, 1769, 9506, 202, 430, 261, 2680, 480, 446, 13, 288, 6862, 202, 430, 261, 2680, 1276, 4115, 19865, 6946, 13, 288, 25083, 202, 12443, 7469, 19865, 6946, 13, 1087, 2934, 4412, 5621, 6862, 202, 97, 469, 309, 261, 2680, 1276, 16907, 15990, 2174, 6946, 13, 288, 25083, 202, 12443, 19865, 15990, 2174, 6946, 13, 1087, 2934, 4412, 5621, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 482, 918, 1746, 12, 3445, 93, 7901, 1046, 756, 13, 288, 202, 202, 45, 2421, 22144, 1964, 1363, 273, 4147, 22144, 18, 588, 1442, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 202, 202, 430, 261, 2433, 480, 446, 13, 288, 1082, 202, 45, 6946, 2404, 8526, 5351, 273, 1363, 18, 588, 6946, 8221, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5351, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 6946, 1988, 1087, 273, 5351, 63, 77, 8009, 588, 6946, 12, 5743, 1769, 9506, 202, 430, 261, 2680, 480, 446, 13, 288, 6862, 202, 430, 261, 2680, 1276, 4115, 19865, 6946, 13, 288, 25083, 202, 12443, 7469, 19865, 2 ]
invertedXform);
invertedXform, bgcolor);
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) { if (img instanceof GtkOffScreenImage && img.getGraphics () instanceof GdkGraphics2D && (xform == null || xform.getType () == AffineTransform.TYPE_IDENTITY || xform.getType () == AffineTransform.TYPE_TRANSLATION) ) { // we are being asked to flush a double buffer from Gdk GdkGraphics2D g2 = (GdkGraphics2D) img.getGraphics (); gdkDrawDrawable (g2, (int)xform.getTranslateX(), (int)xform.getTranslateY()); if (isBufferedImageGraphics ()) updateBufferedImage(); return true; } else { // In this case, xform is an AffineTransform that transforms bounding // box of the specified image from image space to user space. However // when we pass this transform to cairo, cairo will use this transform // to map "user coordinates" to "pixel" coordinates, which is the // other way around. Therefore to get the "user -> pixel" transform // that cairo wants from "image -> user" transform that we currently // have, we will need to invert the transformation matrix. AffineTransform invertedXform = new AffineTransform(); try { invertedXform = xform.createInverse(); if (img instanceof BufferedImage) { // draw an image which has actually been loaded // into memory fully BufferedImage b = (BufferedImage) img; return drawRaster (b.getColorModel (), b.getData (), invertedXform); } else { // begin progressive loading in a separate thread new PainterThread (this, img, invertedXform); return false; } } catch (NoninvertibleTransformException e) { throw new ImagingOpException("Unable to invert transform " + xform.toString()); } } }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/14511e3ad21013e92c6399b2bd2ec09a8263e33a/GdkGraphics2D.java/clean/libjava/gnu/java/awt/peer/gtk/GdkGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 25783, 12, 2040, 3774, 16, 18701, 23906, 558, 4059, 619, 687, 16, 21821, 3421, 11048, 7160, 13, 225, 288, 565, 309, 261, 6081, 1276, 22132, 7210, 7956, 2040, 597, 3639, 3774, 18, 588, 17558, 1832, 1276, 611, 2883, 17558, 22, 40, 597, 10792, 261, 92, 687, 422, 446, 1850, 747, 619, 687, 18, 588, 559, 1832, 422, 23906, 558, 4059, 18, 2399, 67, 29413, 1850, 747, 619, 687, 18, 588, 559, 1832, 422, 23906, 558, 4059, 18, 2399, 67, 25419, 2689, 13, 3639, 262, 4202, 288, 3639, 368, 732, 854, 3832, 19279, 358, 3663, 279, 1645, 1613, 628, 611, 2883, 3639, 611, 2883, 17558, 22, 40, 314, 22, 273, 261, 43, 2883, 17558, 22, 40, 13, 3774, 18, 588, 17558, 261, 1769, 3639, 314, 2883, 6493, 16149, 261, 75, 22, 16, 261, 474, 13, 92, 687, 18, 588, 12818, 60, 9334, 261, 474, 13, 92, 687, 18, 588, 12818, 61, 10663, 7734, 309, 261, 291, 17947, 2040, 17558, 1832, 13, 6647, 1089, 17947, 2040, 5621, 565, 202, 540, 327, 638, 31, 1377, 289, 565, 469, 1377, 288, 2868, 368, 657, 333, 648, 16, 619, 687, 353, 392, 23906, 558, 4059, 716, 13680, 7552, 3639, 368, 3919, 434, 326, 1269, 1316, 628, 1316, 3476, 358, 729, 3476, 18, 10724, 3639, 368, 1347, 732, 1342, 333, 2510, 358, 14503, 16, 14503, 903, 999, 333, 2510, 3639, 368, 358, 852, 315, 1355, 5513, 6, 358, 315, 11743, 6, 5513, 16, 1492, 353, 326, 540, 368, 1308, 4031, 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, 1250, 25783, 12, 2040, 3774, 16, 18701, 23906, 558, 4059, 619, 687, 16, 21821, 3421, 11048, 7160, 13, 225, 288, 565, 309, 261, 6081, 1276, 22132, 7210, 7956, 2040, 597, 3639, 3774, 18, 588, 17558, 1832, 1276, 611, 2883, 17558, 22, 40, 597, 10792, 261, 92, 687, 422, 446, 1850, 747, 619, 687, 18, 588, 559, 1832, 422, 23906, 558, 4059, 18, 2399, 67, 29413, 1850, 747, 619, 687, 18, 588, 559, 1832, 422, 23906, 558, 4059, 18, 2399, 67, 25419, 2689, 13, 3639, 262, 4202, 288, 3639, 368, 732, 854, 3832, 19279, 358, 3663, 279, 1645, 1613, 628, 611, 2883, 3639, 611, 2883, 17558, 22, 40, 314, 22, 273, 261, 43, 2883, 17558, 22, 40, 13, 2 ]
if(log.isInfoEnabled()) log.info("mbr=" + mbr);
if(log.isDebugEnabled()) log.debug("mbr=" + mbr);
public synchronized void handleLeave(Address mbr, boolean suspected) { Vector v=new Vector(); // contains either leaving mbrs or suspected mbrs if(log.isInfoEnabled()) log.info("mbr=" + mbr); if(!gms.members.contains(mbr)) { if(log.isErrorEnabled()) log.error("mbr " + mbr + " is not a member !"); return; } v.addElement(mbr); if(suspected) gms.castViewChange(null, null, v); else gms.castViewChange(null, v, null); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 21300, 12, 1887, 312, 2848, 16, 1250, 11375, 1789, 13, 288, 3639, 5589, 331, 33, 2704, 5589, 5621, 3639, 368, 1914, 3344, 15086, 312, 2848, 87, 578, 11375, 1789, 312, 2848, 87, 5411, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 613, 18, 4148, 2932, 1627, 86, 1546, 397, 312, 2848, 1769, 3639, 309, 12, 5, 75, 959, 18, 7640, 18, 12298, 12, 1627, 86, 3719, 288, 7734, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 1627, 86, 315, 397, 312, 2848, 397, 315, 353, 486, 279, 3140, 401, 8863, 5411, 327, 31, 3639, 289, 3639, 331, 18, 1289, 1046, 12, 1627, 86, 1769, 3639, 309, 12, 87, 407, 1789, 13, 5411, 314, 959, 18, 4155, 1767, 3043, 12, 2011, 16, 446, 16, 331, 1769, 3639, 469, 5411, 314, 959, 18, 4155, 1767, 3043, 12, 2011, 16, 331, 16, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 21300, 12, 1887, 312, 2848, 16, 1250, 11375, 1789, 13, 288, 3639, 5589, 331, 33, 2704, 5589, 5621, 3639, 368, 1914, 3344, 15086, 312, 2848, 87, 578, 11375, 1789, 312, 2848, 87, 5411, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 613, 18, 4148, 2932, 1627, 86, 1546, 397, 312, 2848, 1769, 3639, 309, 12, 5, 75, 959, 18, 7640, 18, 12298, 12, 1627, 86, 3719, 288, 7734, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 1627, 86, 315, 397, 312, 2848, 397, 315, 353, 486, 279, 3140, 401, 8863, 5411, 327, 31, 3639, 289, 3639, 331, 18, 1289, 1046, 12, 1627, 86, 1769, 3639, 309, 12, 87, 407, 1789, 2 ]
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID();
public quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { quickfix.field.UnderlyingSecurityID value = new quickfix.field.UnderlyingSecurityID();
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID(); 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, 14655, 6291, 4368, 734, 10833, 765, 6291, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 10833, 765, 6291, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public long insertTransHop(long id_transformation, long id_step_from, long id_step_to, boolean enabled)
public synchronized long insertTransHop(long id_transformation, long id_step_from, long id_step_to, boolean enabled)
public long insertTransHop(long id_transformation, long id_step_from, long id_step_to, boolean enabled) throws KettleDatabaseException { long id = getNextTransHopID(); Row table = new Row(); table.addValue(new Value("ID_TRANS_HOP", id)); table.addValue(new Value("ID_TRANSFORMATION", id_transformation)); table.addValue(new Value("ID_STEP_FROM", id_step_from)); table.addValue(new Value("ID_STEP_TO", id_step_to)); table.addValue(new Value("ENABLED", enabled)); database.prepareInsert(table, "R_TRANS_HOP"); database.setValuesInsert(table); database.insertRow(); database.closeInsert(); return id; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9a23bf7234591fe690816bbf6320414c2ad3eaae/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 2243, 1429, 27461, 12, 5748, 612, 67, 2338, 1471, 16, 1525, 612, 67, 4119, 67, 2080, 16, 1525, 612, 67, 4119, 67, 869, 16, 1250, 3696, 13, 1082, 202, 15069, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 5748, 612, 273, 6927, 1429, 27461, 734, 5621, 202, 202, 1999, 1014, 273, 394, 6556, 5621, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 16596, 67, 44, 3665, 3113, 612, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 16596, 23805, 3113, 612, 67, 2338, 1471, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 26951, 67, 11249, 3113, 612, 67, 4119, 67, 2080, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 26951, 67, 4296, 3113, 612, 67, 4119, 67, 869, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 13560, 3113, 3696, 10019, 202, 202, 6231, 18, 9366, 4600, 12, 2121, 16, 315, 54, 67, 16596, 67, 44, 3665, 8863, 202, 202, 6231, 18, 542, 1972, 4600, 12, 2121, 1769, 202, 202, 6231, 18, 6387, 1999, 5621, 202, 202, 6231, 18, 4412, 4600, 5621, 202, 202, 2463, 612, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 2243, 1429, 27461, 12, 5748, 612, 67, 2338, 1471, 16, 1525, 612, 67, 4119, 67, 2080, 16, 1525, 612, 67, 4119, 67, 869, 16, 1250, 3696, 13, 1082, 202, 15069, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 5748, 612, 273, 6927, 1429, 27461, 734, 5621, 202, 202, 1999, 1014, 273, 394, 6556, 5621, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 16596, 67, 44, 3665, 3113, 612, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 16596, 23805, 3113, 612, 67, 2338, 1471, 10019, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 26951, 67, 11249, 3113, 612, 67, 4119, 67, 2080, 2 ]
private Point2D adjustChunkOffsets(Point2D location, List textRuns, TextChunk chunk) { TextRun r = (TextRun) textRuns.get(chunk.begin); int anchorType = r.getAnchorType(); Float length = r.getLength(); Integer lengthAdj = r.getLengthAdjust(); boolean doAdjust = true; if ((length == null) || length.isNaN()) doAdjust = false; int numChars = 0; for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); AttributedCharacterIterator aci = r.getACI(); numChars += aci.getEndIndex()-aci.getBeginIndex(); } if ((lengthAdj == GVTAttributedCharacterIterator.TextAttribute.ADJUST_SPACING) && (numChars == 1)) doAdjust = false; float xScale = 1; float yScale = 1; r = (TextRun)textRuns.get(chunk.end-1); TextSpanLayout layout = r.getLayout(); GVTGlyphMetrics lastMetrics = layout.getGlyphMetrics(layout.getGlyphCount()-1); Rectangle2D lastBounds = lastMetrics.getBounds2D(); float lastW = (float)(lastBounds.getWidth()+lastBounds.getX()); float lastH = (float)(lastBounds.getHeight()); Point2D visualAdvance; if (!doAdjust) { // System.out.println("Adv: " + chunk.advance); // System.out.println("LastBounds: " + lastBounds); // System.out.println("LastMetrics.hadv: " + lastMetrics.getHorizontalAdvance()); // System.out.println("LastMetrics.vadv: " + lastMetrics.getVerticalAdvance()); visualAdvance = new Point2D.Float ((float)(chunk.advance.getX() + lastW - lastMetrics.getHorizontalAdvance()), (float)(chunk.advance.getY() + lastH - lastMetrics.getVerticalAdvance())); } else { Point2D advance = chunk.advance; // We have to do this here since textLength needs to be // handled at the text chunk level. Otherwise tspans get // messed up. float delta = 0; if (layout.isVertical()) { if (lengthAdj == ADJUST_SPACING) { yScale = (float) ((length.floatValue()-lastH)/ (advance.getY()-lastMetrics.getVerticalAdvance())); } else { double adv = (advance.getY()- lastMetrics.getVerticalAdvance() + lastH); yScale = (float)(length.floatValue()/adv); } visualAdvance = new Point2D.Float(0, length.floatValue()); } else { if (lengthAdj == ADJUST_SPACING) { xScale = (float) ((length.floatValue()-lastW)/ (advance.getX()-lastMetrics.getHorizontalAdvance())); } else { double adv = (advance.getX() + lastW - lastMetrics.getHorizontalAdvance()); xScale = (float)(length.floatValue()/adv); } visualAdvance = new Point2D.Float(length.floatValue(), 0); } // System.out.println("Adv: " + advance + " Len: " + length + // " scale: [" + xScale + ", " + yScale + "]"); Point2D.Float adv = new Point2D.Float(0,0); for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); layout = r.getLayout(); layout.setScale(xScale, yScale, lengthAdj==ADJUST_SPACING); Point2D lAdv = layout.getAdvance2D(); adv.x += (float)lAdv.getX(); adv.y += (float)lAdv.getY(); } chunk.advance = adv; } float dx = 0f; float dy = 0f; switch(anchorType){ case TextNode.Anchor.ANCHOR_MIDDLE: dx = (float) (-visualAdvance.getX()/2d); dy = (float) (-visualAdvance.getY()/2d); break; case TextNode.Anchor.ANCHOR_END: dx = (float) (-visualAdvance.getX()); dy = (float) (-visualAdvance.getY()); break; default: break; // leave untouched } // System.out.println("DX/DY: [" + dx + ", " + dy + "]"); r = (TextRun) textRuns.get(chunk.begin); layout = r.getLayout(); AttributedCharacterIterator runaci = r.getACI(); runaci.first(); boolean vertical = layout.isVertical(); Float runX = (Float) runaci.getAttribute(XPOS); Float runY = (Float) runaci.getAttribute(YPOS); TextPath textPath = (TextPath) runaci.getAttribute(TEXTPATH); // The point that the next peice of normal text should be // layed out from, only used for normal text not text on a path. float absX = (float)location.getX(); float absY = (float)location.getY(); // TextPath Shift used to account for startOffset. float tpShiftX = 0; float tpShiftY = 0; // Of course X and Y override that, but they don't apply for text on a path. if ((runX != null) && (!runX.isNaN())) { absX = runX.floatValue(); tpShiftX = absX; } if ((runY != null) && (!runY.isNaN())) { absY = runY.floatValue(); tpShiftY = absY; } // Factor in text-anchor in writing direction. // Ignore tpShift in non-writing direction. if (vertical) { absY += dy; tpShiftY += dy; tpShiftX = 0; } else { absX += dx; tpShiftX += dx; tpShiftY = 0; } // System.out.println("ABS: [" + absX + "," + absY + "," + // visualAdvance.getX() + "," + // visualAdvance.getY() + "]"); for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); layout = r.getLayout(); runaci = r.getACI(); runaci.first(); textPath = (TextPath) runaci.getAttribute(TEXTPATH); if (textPath == null) { layout.setOffset(new Point2D.Float(absX, absY)); Point2D ladv = layout.getAdvance2D(); absX += ladv.getX(); absY += ladv.getY(); } else { layout.setOffset(new Point2D.Float(tpShiftX, tpShiftY)); Point2D ladv = layout.getAdvance2D(); tpShiftX += (float)ladv.getX(); tpShiftY += (float)ladv.getY(); ladv = layout.getTextPathAdvance(); absX = (float)ladv.getX(); absY = (float)ladv.getY(); } } return new Point2D.Float(absX, absY); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/ad2cbb76e2a2754c89ba98a35cb4a6ce17850ae6/StrokingTextPainter.java/buggy/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 225, 4686, 22, 40, 225, 5765, 5579, 13830, 12, 2148, 22, 40, 225, 2117, 16, 28524, 3639, 987, 225, 977, 9361, 16, 28524, 1850, 3867, 5579, 225, 2441, 13, 225, 288, 7734, 3867, 1997, 225, 436, 10792, 273, 225, 261, 1528, 1997, 13, 225, 977, 9361, 18, 588, 12, 6551, 18, 10086, 1769, 7734, 509, 1850, 6984, 559, 225, 273, 225, 436, 18, 588, 11605, 559, 5621, 7734, 5450, 1377, 769, 1850, 273, 225, 436, 18, 588, 1782, 5621, 7734, 2144, 225, 769, 17886, 565, 273, 225, 436, 18, 588, 1782, 10952, 5621, 7734, 1250, 225, 741, 10952, 225, 273, 225, 638, 31, 7734, 309, 225, 14015, 2469, 225, 422, 225, 446, 13, 225, 747, 225, 769, 18, 291, 21172, 10756, 13491, 741, 10952, 225, 273, 225, 629, 31, 27573, 509, 225, 818, 7803, 225, 273, 225, 374, 31, 7734, 364, 225, 261, 474, 225, 290, 33, 6551, 18, 10086, 31, 225, 290, 32, 6551, 18, 409, 31, 225, 965, 82, 13, 225, 288, 13491, 436, 225, 273, 225, 261, 1528, 1997, 13, 225, 977, 9361, 18, 588, 12, 82, 1769, 13491, 2380, 11050, 7069, 3198, 225, 1721, 77, 225, 273, 225, 436, 18, 588, 2226, 45, 5621, 13491, 818, 7803, 225, 1011, 225, 1721, 77, 18, 588, 24152, 1435, 17, 1077, 77, 18, 588, 8149, 1016, 5621, 7734, 289, 7734, 309, 225, 14015, 2469, 17886, 225, 422, 18701, 611, 58, 56, 861, 11050, 7069, 3198, 18, 1528, 1499, 18, 1880, 46, 5996, 67, 3118, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 225, 4686, 22, 40, 225, 5765, 5579, 13830, 12, 2148, 22, 40, 225, 2117, 16, 28524, 3639, 987, 225, 977, 9361, 16, 28524, 1850, 3867, 5579, 225, 2441, 13, 225, 288, 7734, 3867, 1997, 225, 436, 10792, 273, 225, 261, 1528, 1997, 13, 225, 977, 9361, 18, 588, 12, 6551, 18, 10086, 1769, 7734, 509, 1850, 6984, 559, 225, 273, 225, 436, 18, 588, 11605, 559, 5621, 7734, 5450, 1377, 769, 1850, 273, 225, 436, 18, 588, 1782, 5621, 7734, 2144, 225, 769, 17886, 565, 273, 225, 436, 18, 588, 1782, 10952, 5621, 7734, 1250, 225, 741, 10952, 225, 273, 225, 638, 31, 7734, 309, 225, 14015, 2469, 225, 422, 225, 446, 13, 225, 747, 225, 769, 2 ]
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // if no lifecycle method exists, redirect to error page! String method = (String) request.getAttribute(SportletProperties.PORTLET_LIFECYCLE_METHOD); if (method == null) { response.sendRedirect("/" + SportletProperties.getInstance().getProperty("gridsphere.deploy") + "/" + SportletProperties.getInstance().getProperty("gridsphere.context") + "?" + SportletProperties.LAYOUT_PAGE_PARAM + "=" + "ErrorLayout" + "&" + "errorPage=unauthorized.jsp"); return; } if (method.equals(SportletProperties.INIT)) { initJSRPortletWebapp(); if (portletWebApp.getWebApplicationStatus().equals(PortletStatus.FAILURE)) return; Set set = portlets.keySet(); Iterator it = set.iterator(); while (it.hasNext()) { String portletName = (String) it.next(); JSRApplicationPortletImpl appPortlet = (JSRApplicationPortletImpl) portletApps.get(portletName); Portlet portlet = (Portlet) portlets.get(portletName); log.debug("in PortletServlet: service(): Initializing portlet " + portletName); PortletDefinition portletDef = portletWebApp.getPortletDefinition(portletName); PortletConfig portletConfig = new PortletConfigImpl(getServletConfig(), portletDef, Thread.currentThread().getContextClassLoader()); try { portlet.init(portletConfig); portletConfigHash.put(portletName, portletConfig); } catch (Exception e) { appPortlet.setApplicationPortletStatus(PortletStatus.FAILURE); StringWriter sw = new StringWriter(); PrintWriter pout = new PrintWriter(sw); e.printStackTrace(pout); appPortlet.setApplicationPortletStatusMessage("Unable to initialize portlet " + portletName + "\n\n" + sw.getBuffer()); log.error("in PortletServlet: service(): Unable to INIT portlet " + portletName, e); // PLT.5.5.2.1 Portlet that fails to initialize must not be placed in active service it.remove(); portletWebApp.setWebApplicationStatus(PortletStatus.FAILURE); portletWebApp.setWebApplicationStatusMessage("Failed to initialize one or more portlets"); } } PortletManagerService manager = (PortletManagerService)PortletServiceFactory.createPortletService(PortletManagerService.class, true); manager.addPortletWebApplication(portletWebApp); return; } else if (method.equals(SportletProperties.INIT_CONCRETE)) { // do nothing for concrete portlets return; } else if (method.equals(SportletProperties.DESTROY)) { Iterator it = portlets.keySet().iterator(); while (it.hasNext()) { String portletName = (String) it.next(); Portlet portlet = (Portlet) portlets.get(portletName); log.debug("in PortletServlet: service(): Destroying portlet " + portletName); try { portlet.destroy(); it.remove(); } catch (RuntimeException e) { log.error("Caught exception during portlet destroy", e); } } return; } else if (method.equals(SportletProperties.DESTROY_CONCRETE)) { // do nothing for concrete portlets return; } else if (method.equals(SportletProperties.LOGIN)) { } else if (method.equals(SportletProperties.LOGOUT)) { request.getSession(true).invalidate(); } // There must be a portlet ID to know which portlet to service String pid = (String) request.getAttribute(SportletProperties.PORTLETID); String cid = (String) request.getAttribute(SportletProperties.COMPONENT_ID); if (pid == null) { // it may be in the request parameter pid = request.getParameter(SportletProperties.PORTLETID); if (pid == null) { log.debug("in PortletServlet: service(): No PortletID found in request!"); return; } request.setAttribute(SportletProperties.PORTLETID, pid); } log.debug("have a portlet id " + pid + " component id= " + cid); String portletName = ""; int idx = pid.indexOf("#"); Portlet portlet = null; if (idx > 0) { portletName = pid.substring(idx+1); // this hack uses the portletclasses hash that identifies classname to portlet mappings } else { portletName = (String)portletclasses.get(pid); } if (portletName == null) { log.debug("Check the layout descriptors to make sure the portlet identified as " + pid + " matches with the class and/or portlet name of the portlet.xml"); return; } portlet = (Portlet) portlets.get(portletName); request.setAttribute(SportletProperties.PORTLET_CONFIG, portletConfigHash.get(portletName)); JSRApplicationPortletImpl appPortlet = (JSRApplicationPortletImpl) registryService.getApplicationPortlet(pid); if (appPortlet == null) { log.error("Unable to get portlet from registry identified by: " + pid); return; } // set the supported mime types Supports[] supports = appPortlet.getSupports(); List mimeTypes = new ArrayList(); for (int i = 0; i < supports.length; i++) { Supports s = supports[i]; String mimeType = s.getMimeType().getContent(); mimeTypes.add(mimeType); request.setAttribute(SportletProperties.MIME_TYPES, mimeTypes); } setPortletModes(request, appPortlet); // perform user conversion from gridsphere to JSR model User user = (User) request.getAttribute(SportletProperties.PORTLET_USER); Map userInfo; if (user != null) { userInfo = new HashMap(); userInfo.putAll(userKeys); if (userInfo.containsKey("user.name")) userInfo.put("user.name", user.getUserName()); if (userInfo.containsKey("user.id")) userInfo.put("user.id", user.getID()); if (userInfo.containsKey("user.email")) userInfo.put("user.email", user.getEmailAddress()); if (userInfo.containsKey("user.organization")) userInfo.put("user.organization", user.getOrganization()); if (userInfo.containsKey("user.lastlogintime")) userInfo.put("user.lastlogintime", new Long(user.getLastLoginTime()).toString()); if (userInfo.containsKey("user.name.full")) userInfo.put("user.name.full", user.getFullName()); if (userInfo.containsKey("user.timezone")) userInfo.put("user.timezone", user.getAttribute(User.TIMEZONE)); if (userInfo.containsKey("user.locale")) userInfo.put("user.locale", user.getAttribute(User.LOCALE)); if (userInfo.containsKey("user.theme")) userInfo.put("user.theme", user.getAttribute(User.THEME)); if (userInfo.containsKey("user.login.id")) userInfo.put("user.login.id", user.getUserName()); Enumeration e = user.getAttributeNames(); while (e.hasMoreElements()) { String key = (String)e.nextElement(); if (userInfo.containsKey(key)) userInfo.put(key, user.getAttribute(key)); } //userInfo.put("user.name.given", user.getGivenName()); //userInfo.put("user.name.family", user.getFamilyName()); request.setAttribute(PortletRequest.USER_INFO, userInfo); // create user principal UserPrincipal userPrincipal = new UserPrincipal(user.getUserName()); request.setAttribute(SportletProperties.PORTLET_USER_PRINCIPAL, userPrincipal); } /* UserAttribute[] userAttrs = portletWebApp.getUserAttributes(); for (int i = 0; i < userAttrs.length; i++) { UserAttribute userAttr = userAttrs[i]; String name = userAttr.getName().getContent(); userInfo.put(name, ""); } request.setAttribute(PortletRequest.USER_INFO, userInfo); */ // portlet preferences PortalContext portalContext = appPortlet.getPortalContext(); request.setAttribute(SportletProperties.PORTAL_CONTEXT, portalContext); if (portlet == null) { log.error("in PortletServlet: service(): No portlet matching " + pid + " found!"); return; } request.removeAttribute(SportletProperties.SSL_REQUIRED); if (securePortlets.contains(pid)) { request.setAttribute(SportletProperties.SSL_REQUIRED, "true"); } if (method.equals(SportletProperties.SERVICE)) { String action = (String) request.getAttribute(SportletProperties.PORTLET_ACTION_METHOD); if (action != null) { log.debug("in PortletServlet: action is not NULL"); if (action.equals(SportletProperties.DO_TITLE)) { RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext, supports); RenderResponse renderResponse = new RenderResponseImpl(request, response, portalContext); renderRequest.setAttribute(SportletProperties.RENDER_REQUEST, renderRequest); renderRequest.setAttribute(SportletProperties.RENDER_RESPONSE, renderResponse); log.debug("in PortletServlet: do title " + pid); try { doTitle(portlet, renderRequest, renderResponse); } catch (Exception e) { log.error("Error during doTitle:", e); request.setAttribute(SportletProperties.PORTLETERROR + pid, new org.gridsphere.portlet.PortletException(e)); } } else if (action.equals(SportletProperties.WINDOW_EVENT)) { // do nothing } else if (action.equals(SportletProperties.MESSAGE_RECEIVED)) { // do nothing } else if (action.equals(SportletProperties.ACTION_PERFORMED)) { PortletPreferencesManager prefsManager = new PortletPreferencesManager(); javax.portlet.PreferencesValidator validator = appPortlet.getPreferencesValidator(); prefsManager.setValidator(validator); prefsManager.setIsRender(false); if (user != null) { prefsManager.setUserId(user.getID()); } prefsManager.setPortletId(appPortlet.getApplicationPortletID()); prefsManager.setPreferencesDesc(appPortlet.getPreferencesDescriptor()); request.setAttribute(SportletProperties.PORTLET_PREFERENCES_MANAGER, prefsManager); ActionRequestImpl actionRequest = new ActionRequestImpl(request, portalContext, portletContext, supports); ActionResponse actionResponse = new ActionResponseImpl(request, response, portalContext); log.debug("in PortletServlet: action handling portlet " + pid); try { // INVOKE PORTLET ACTION portlet.processAction(actionRequest, actionResponse); Map params = ((ActionResponseImpl) actionResponse).getRenderParameters(); actionRequest.setAttribute(SportletProperties.RENDER_PARAM_PREFIX + pid + "_" + cid, params); log.debug("placing render params in attribute: key= " + SportletProperties.RENDER_PARAM_PREFIX + pid + "_" + cid); redirect(request, response, actionRequest, actionResponse, portalContext); } catch (Exception e) { log.error("Error during processAction:", e); request.setAttribute(SportletProperties.PORTLETERROR + pid, new org.gridsphere.portlet.PortletException(e)); } } } else { PortletPreferencesManager prefsManager = new PortletPreferencesManager(); javax.portlet.PreferencesValidator validator = appPortlet.getPreferencesValidator(); prefsManager.setValidator(validator); prefsManager.setIsRender(true); if (user != null) { prefsManager.setUserId(user.getID()); } prefsManager.setPortletId(appPortlet.getApplicationPortletID()); prefsManager.setPreferencesDesc(appPortlet.getPreferencesDescriptor()); request.setAttribute(SportletProperties.PORTLET_PREFERENCES_MANAGER, prefsManager); RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext, supports); RenderResponse renderResponse = new RenderResponseImpl(request, response, portalContext); renderRequest.setAttribute(SportletProperties.RENDER_REQUEST, renderRequest); renderRequest.setAttribute(SportletProperties.RENDER_RESPONSE, renderResponse); log.debug("in PortletServlet: rendering portlet " + pid); if (renderRequest.getAttribute(SportletProperties.RESPONSE_COMMITTED) == null) { try { portlet.render(renderRequest, renderResponse); } catch (UnavailableException e) { log.error("in PortletServlet(): doRender() caught unavailable exception: "); try { portlet.destroy(); } catch (Exception d) { log.error("in PortletServlet(): destroy caught unavailable exception: ", d); } } catch (Exception e) { if (request.getAttribute(SportletProperties.PORTLETERROR + pid) == null) { request.setAttribute(SportletProperties.PORTLETERROR + pid, e); } throw new ServletException(e); } } } request.removeAttribute(SportletProperties.PORTLET_ACTION_METHOD); } else { log.error("in PortletServlet: service(): No " + SportletProperties.PORTLET_LIFECYCLE_METHOD + " found in request!"); } request.removeAttribute(SportletProperties.PORTLET_LIFECYCLE_METHOD); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/cef732788fbed386cdd840cd3d98a9354d07844b/PortletServlet.java/buggy/src/org/gridsphere/provider/portlet/jsr/PortletServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3278, 12, 2940, 18572, 2293, 16, 2940, 4745, 607, 500, 550, 281, 575, 13, 15069, 4745, 503, 16, 14106, 95, 759, 430, 82, 355, 430, 4578, 27305, 390, 92, 1486, 16, 7590, 869, 1636, 2433, 5, 780, 2039, 28657, 780, 13, 2293, 18, 588, 1499, 12, 55, 655, 1810, 2297, 18, 6354, 15146, 67, 2053, 42, 7228, 61, 23181, 67, 5327, 1769, 430, 12, 2039, 631, 2011, 15329, 2740, 18, 4661, 5961, 2932, 4898, 15, 55, 655, 1810, 2297, 18, 588, 1442, 7675, 588, 1396, 2932, 5222, 87, 9346, 18, 12411, 7923, 9078, 4898, 15, 55, 655, 1810, 2297, 18, 588, 1442, 7675, 588, 1396, 2932, 5222, 87, 9346, 18, 2472, 7923, 9078, 7225, 15, 55, 655, 1810, 2297, 18, 7868, 5069, 67, 11219, 67, 8388, 9078, 1546, 9078, 668, 3744, 6, 9078, 10, 6, 9078, 1636, 1964, 33, 318, 8434, 18, 24926, 8863, 2463, 31, 97, 430, 12, 2039, 18, 14963, 12, 55, 655, 1810, 2297, 18, 12919, 3719, 95, 2738, 6479, 54, 18566, 4079, 2910, 5621, 430, 12, 655, 1810, 4079, 3371, 18, 588, 4079, 3208, 1482, 7675, 14963, 12, 18566, 1482, 18, 17623, 3719, 2463, 31, 694, 542, 33, 655, 17307, 18, 856, 694, 5621, 3198, 305, 33, 542, 18, 9838, 5621, 17523, 12, 305, 18, 5332, 2134, 10756, 95, 780, 655, 1810, 461, 28657, 780, 13, 305, 18, 4285, 5621, 6479, 54, 3208, 18566, 2828, 2910, 18566, 28657, 6479, 54, 3208, 18566, 2828, 13, 655, 1810, 16339, 18, 588, 12, 655, 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, 6459, 3278, 12, 2940, 18572, 2293, 16, 2940, 4745, 607, 500, 550, 281, 575, 13, 15069, 4745, 503, 16, 14106, 95, 759, 430, 82, 355, 430, 4578, 27305, 390, 92, 1486, 16, 7590, 869, 1636, 2433, 5, 780, 2039, 28657, 780, 13, 2293, 18, 588, 1499, 12, 55, 655, 1810, 2297, 18, 6354, 15146, 67, 2053, 42, 7228, 61, 23181, 67, 5327, 1769, 430, 12, 2039, 631, 2011, 15329, 2740, 18, 4661, 5961, 2932, 4898, 15, 55, 655, 1810, 2297, 18, 588, 1442, 7675, 588, 1396, 2932, 5222, 87, 9346, 18, 12411, 7923, 9078, 4898, 15, 55, 655, 1810, 2297, 18, 588, 1442, 7675, 588, 1396, 2932, 5222, 87, 9346, 18, 2472, 7923, 9078, 7225, 15, 55, 655, 2 ]
((!Base.isMacOS()) ? "tools/avr/bin/avr-g++" : userDir + "tools/avr/bin/avr-g++"),
avrBasePath + "avr-g++",
public boolean build() throws RunnerException { // fail if library is not buildable (contains no sources) if(!isBuildable()){ return false; } String userDir = System.getProperty("user.dir") + File.separator; String[] baseCompileCommandC = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-gcc" : userDir + "tools/avr/bin/avr-gcc"), "-c", "-g", "-Os", "-Wall", "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), "-I" + libManager.getTarget().getPath(), "-I" + getFolder(), }; String[] baseCompileCommandCPP = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-g++" : userDir + "tools/avr/bin/avr-g++"), "-c", "-g", "-Os", "-Wall", "-fno-exceptions", "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), "-I" + libManager.getTarget().getPath(), "-I" + getFolder(), }; // use built lib directories in include paths when searching for headers // this allows libs to use other libs easily int extraSpots = 2; // two spots for file path and -o portions utilityFolder = getUtilityFolder(); // refresh status of utility folder if(null != utilityFolder){ extraSpots = 3; // an extra spot for utility folder as include } String[] libDirs = libManager.getFolderPaths(); String[] compileCommandC = new String[baseCompileCommandC.length + libDirs.length + extraSpots]; String[] compileCommandCPP = new String[baseCompileCommandCPP.length + libDirs.length + extraSpots]; System.arraycopy(baseCompileCommandC, 0, compileCommandC, 0, baseCompileCommandC.length); System.arraycopy(baseCompileCommandCPP, 0, compileCommandCPP, 0, baseCompileCommandCPP.length); for (int i = 0; i < libDirs.length; ++i) { compileCommandC[baseCompileCommandC.length + i] = "-I" + libDirs[i]; compileCommandCPP[baseCompileCommandCPP.length + i] = "-I" + libDirs[i]; } // add this library's "utility" folder to inclusion paths if(null != utilityFolder){ compileCommandC[compileCommandC.length - 3] = "-I" + utilityFolder.getPath(); compileCommandCPP[compileCommandCPP.length - 3] = "-I" + utilityFolder.getPath(); } File[] sourcesC = getCSourceFiles(); File[] sourcesCPP = getCPPSourceFiles(); // execute the compiler, and create threads to deal // with the input and error streams // int result = 0; try { String pathSansExtension; Process process; boolean compiling = true; // compile c sources for(int i = 0; i < sourcesC.length; ++i) { pathSansExtension = sourcesC[i].getPath(); pathSansExtension = pathSansExtension.substring(0, pathSansExtension.length() - 2); // -2 because ".c" compileCommandC[compileCommandC.length - 2] = sourcesC[i].getPath(); compileCommandC[compileCommandC.length - 1] = "-o" + pathSansExtension + ".o"; process = Runtime.getRuntime().exec(compileCommandC); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result != 0){ return false; } } // compile c++ sources for(int i = 0; i < sourcesCPP.length; ++i) { pathSansExtension = sourcesCPP[i].getPath(); pathSansExtension = pathSansExtension.substring(0, pathSansExtension.length() - 4); // -4 because ".cpp" compileCommandCPP[compileCommandCPP.length - 2] = sourcesCPP[i].getPath(); compileCommandCPP[compileCommandCPP.length - 1] = "-o" + pathSansExtension + ".o"; process = Runtime.getRuntime().exec(compileCommandCPP); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result != 0){ return false; } } } catch (Exception e) { String msg = e.getMessage(); if ((msg != null) && (msg.indexOf("avr-gcc: not found") != -1)) { Base.showWarning("Compiler error", "Could not find the compiler.\n" + "avr-gcc is missing from your PATH,\n" + "see readme.txt for help.", null); return false; } else if ((msg != null) && (msg.indexOf("avr-g++: not found") != -1)) { Base.showWarning("Compiler error", "Could not find the compiler.\n" + "avr-g++ is missing from your PATH,\n" + "see readme.txt for help.", null); return false; } else { e.printStackTrace(); result = -1; } } // an error was queued up by message() if (exception != null) { throw exception; } if (result != 0 && result != 1 ) { Base.openURL(BUGS_URL); throw new RunnerException(SUPER_BADNESS); } // success would mean that 'result' is set to zero return (result == 0); // ? true : false; }
4995 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4995/fc1ca8a0661ef52aa16fb05258e17c074e4d780d/Library.java/clean/app/Library.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1361, 1435, 1216, 22712, 503, 225, 288, 565, 368, 2321, 309, 5313, 353, 486, 1361, 429, 261, 12298, 1158, 5550, 13, 565, 309, 12, 5, 291, 3116, 429, 10756, 95, 1377, 327, 629, 31, 565, 289, 3639, 514, 729, 1621, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 397, 1387, 18, 11287, 31, 565, 514, 8526, 1026, 9937, 2189, 39, 273, 394, 514, 8526, 288, 1377, 14015, 5, 2171, 18, 291, 9990, 4618, 10756, 692, 315, 6642, 19, 842, 86, 19, 4757, 19, 842, 86, 17, 75, 952, 6, 294, 729, 1621, 397, 315, 6642, 19, 842, 86, 19, 4757, 19, 842, 86, 17, 75, 952, 6, 3631, 1377, 3701, 71, 3113, 1377, 3701, 75, 3113, 1377, 3701, 15112, 3113, 1377, 3701, 26558, 3113, 1377, 3701, 7020, 6319, 1546, 397, 28310, 18, 588, 2932, 3510, 18, 81, 6319, 6, 3631, 1377, 3701, 4577, 67, 15222, 1546, 397, 28310, 18, 588, 2932, 3510, 18, 74, 67, 11447, 6, 3631, 1377, 3701, 45, 6, 397, 2561, 1318, 18, 588, 2326, 7675, 588, 743, 9334, 1377, 3701, 45, 6, 397, 29001, 9334, 565, 289, 31, 565, 514, 8526, 1026, 9937, 2189, 4258, 52, 273, 394, 514, 8526, 288, 1377, 1712, 86, 15912, 397, 315, 842, 86, 17, 75, 9904, 3113, 1377, 3701, 71, 3113, 1377, 3701, 75, 3113, 1377, 3701, 15112, 3113, 1377, 3701, 26558, 3113, 1377, 3701, 74, 2135, 17, 11855, 3113, 1377, 3701, 7020, 6319, 1546, 397, 28310, 18, 588, 2932, 3510, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1361, 1435, 1216, 22712, 503, 225, 288, 565, 368, 2321, 309, 5313, 353, 486, 1361, 429, 261, 12298, 1158, 5550, 13, 565, 309, 12, 5, 291, 3116, 429, 10756, 95, 1377, 327, 629, 31, 565, 289, 3639, 514, 729, 1621, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 397, 1387, 18, 11287, 31, 565, 514, 8526, 1026, 9937, 2189, 39, 273, 394, 514, 8526, 288, 1377, 14015, 5, 2171, 18, 291, 9990, 4618, 10756, 692, 315, 6642, 19, 842, 86, 19, 4757, 19, 842, 86, 17, 75, 952, 6, 294, 729, 1621, 397, 315, 6642, 19, 842, 86, 19, 4757, 19, 842, 86, 17, 75, 952, 6, 3631, 1377, 3701, 71, 3113, 1377, 3701, 2 ]
System.out.print(" " + propName + " [" + svalue + "]: ");
System.out.print(" " + propertyName + " [" + svalue + "]: ");
public void editConfig(String name) { Symbol symbol = symbolTable.get(name); boolean done = false; if (symbol == null) { System.out.println("No component: " + name); return; } System.out.println(symbol.getName() + ":"); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for (Iterator j = propertyNames.iterator(); j.hasNext();) { try { String propName = (String) j.next(); Object value = properties.getRaw(propName); String svalue = null; if (value instanceof List) { continue; } else if (value instanceof String) { svalue = (String) value; } else { svalue = "DEFAULT"; } done = false; while (!done) { System.out.print(" " + propName + " [" + svalue + "]: "); String in = br.readLine(); if (in.length() == 0) { done = true; } else if (in.equals(".")) { return; } else { try { setProperty(name, propName, in); done = true; } catch (PropertyException pe) { System.out.println("error setting value " + pe); svalue = in; } } } } catch (PropertyException pe) { System.out.println("error getting values " + pe); } catch (IOException ioe) { System.out.println("Trouble reading input"); return; } } }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/a26f9dbdd67fef63e66c52e6ac4e962ff3b13c30/ConfigurationManager.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3874, 809, 12, 780, 508, 13, 288, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 1250, 2731, 273, 629, 31, 3639, 309, 261, 7175, 422, 446, 13, 225, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 2279, 1794, 30, 315, 397, 508, 1769, 5411, 327, 31, 3639, 289, 3639, 2332, 18, 659, 18, 8222, 12, 7175, 18, 17994, 1435, 397, 6153, 1769, 3639, 5438, 4023, 273, 3273, 18, 588, 4243, 5621, 3639, 2200, 26570, 273, 4023, 18, 588, 10868, 2297, 5621, 3639, 4276, 8229, 1790, 273, 3273, 18, 588, 1396, 8229, 5621, 3639, 10633, 5186, 273, 394, 10633, 12, 2704, 7734, 15322, 12, 3163, 18, 267, 10019, 3639, 364, 261, 3198, 525, 273, 26570, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 13, 288, 5411, 775, 288, 7734, 514, 9994, 273, 261, 780, 13, 525, 18, 4285, 5621, 7734, 1033, 460, 273, 1790, 18, 588, 4809, 12, 5986, 461, 1769, 7734, 514, 272, 1132, 273, 446, 31, 7734, 309, 261, 1132, 1276, 987, 13, 288, 10792, 1324, 31, 7734, 289, 469, 309, 261, 1132, 1276, 514, 13, 288, 10792, 272, 1132, 273, 261, 780, 13, 460, 31, 7734, 289, 469, 288, 10792, 272, 1132, 273, 315, 5280, 14432, 7734, 289, 7734, 2731, 273, 629, 31, 7734, 1323, 16051, 8734, 13, 288, 10792, 2332, 18, 659, 18, 1188, 2932, 225, 315, 397, 5470, 397, 315, 8247, 397, 272, 1132, 397, 9850, 30, 315, 1769, 10792, 514, 316, 273, 5186, 18, 896, 1670, 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, 3874, 809, 12, 780, 508, 13, 288, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 1250, 2731, 273, 629, 31, 3639, 309, 261, 7175, 422, 446, 13, 225, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 2279, 1794, 30, 315, 397, 508, 1769, 5411, 327, 31, 3639, 289, 3639, 2332, 18, 659, 18, 8222, 12, 7175, 18, 17994, 1435, 397, 6153, 1769, 3639, 5438, 4023, 273, 3273, 18, 588, 4243, 5621, 3639, 2200, 26570, 273, 4023, 18, 588, 10868, 2297, 5621, 3639, 4276, 8229, 1790, 273, 3273, 18, 588, 1396, 8229, 5621, 3639, 10633, 5186, 273, 394, 10633, 12, 2704, 7734, 15322, 12, 3163, 18, 267, 10019, 3639, 364, 261, 3198, 525, 273, 2 ]
IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings(); if(settings == null) { settings = WorkbenchPlugin.getDefault().getDialogSettings().addNewSection(sectionName);
IDialogSettings settings = WorkbenchPlugin.getDefault() .getDialogSettings(); if (settings == null) { settings = WorkbenchPlugin.getDefault().getDialogSettings() .addNewSection(sectionName);
protected IDialogSettings getDialogSettings() { String sectionName = getId(); IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings(); if(settings == null) { settings = WorkbenchPlugin.getDefault().getDialogSettings().addNewSection(sectionName); } return settings; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d198555256c7cf4755935797308ecc22177f9aa9/CtrlEAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/incubator/CtrlEAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 1599, 3529, 2628, 31774, 2628, 1435, 288, 1082, 202, 780, 28887, 273, 2634, 5621, 1082, 202, 734, 3529, 2628, 1947, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 1082, 202, 430, 12, 4272, 422, 446, 13, 288, 9506, 202, 4272, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 7675, 1289, 1908, 5285, 12, 3464, 461, 1769, 1082, 202, 97, 1082, 202, 2463, 1947, 31, 9506, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 1599, 3529, 2628, 31774, 2628, 1435, 288, 1082, 202, 780, 28887, 273, 2634, 5621, 1082, 202, 734, 3529, 2628, 1947, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 1082, 202, 430, 12, 4272, 422, 446, 13, 288, 9506, 202, 4272, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 7675, 1289, 1908, 5285, 12, 3464, 461, 1769, 1082, 202, 97, 1082, 202, 2463, 1947, 31, 9506, 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 ]
/*********
bookmarksTree = bookmarks.getBookmarks();
public EMWindow (String title, String binDir, String url, int winnum, EmbeddedMozilla Creator) { super(title); popup = new PopupMenu(); creator = Creator; currentURL = url; winNum = winnum; myBinDir = binDir; mInPrintPreview = false; System.out.println("constructed with binDir: " + binDir + " url: " + url); setSize(defaultWidth, defaultHeight); createMenubar(); createToolbar(url); // Create the browser try { BrowserControlFactory.setAppData(binDir); browserControl = BrowserControlFactory.newBrowserControl(); browserCanvas = (BrowserControlCanvas) browserControl.queryInterface(BrowserControl.BROWSER_CONTROL_CANVAS_NAME); } catch(Exception e) { System.out.println("Can't create BrowserControl: " + e.getMessage()); } Assert.assert_it(null != browserCanvas); browserCanvas.setSize(defaultWidth, defaultHeight); // Add the control panel and the browserCanvas add(browserCanvas, BorderLayout.CENTER); // Create the status panel createStatusbar(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.out.println("Got windowClosing"); System.out.println("destroying the BrowserControl"); EMWindow.this.delete(); // should close the BrowserControlCanvas creator.DestroyEMWindow(winNum); } public void windowClosed(WindowEvent e) { System.out.println("Got windowClosed"); } }); // Create the Context Menus add(popup); popup.add(popup_ViewSource = new MenuItem("View Source as ByteArray")); popup.add(popup_SelectAll = new MenuItem("Select All")); popup.add(popup_ViewSelection = new MenuItem("View Selection")); contextListener = new PopupActionListener(); popup_ViewSource.addActionListener (contextListener); popup_SelectAll.addActionListener (contextListener); popup_ViewSelection.addActionListener (contextListener); show(); toFront(); try { navigation = (Navigation2) browserControl.queryInterface(BrowserControl.NAVIGATION_NAME); navigation.setPrompt(this); currentPage = (CurrentPage2) browserControl.queryInterface(BrowserControl.CURRENT_PAGE_NAME); history = (History) browserControl.queryInterface(BrowserControl.HISTORY_NAME); prefs = (Preferences) browserControl.queryInterface(BrowserControl.PREFERENCES_NAME); prefs.registerPrefChangedCallback(this, "network.cookie.warnAboutCookies", "This IS the Closure!"); prefs.setPref("network.cookie.warnAboutCookies", "true"); prefs.setPref("browser.cache.disk_cache_size", "0"); // pull out the proxies, and make java aware of them Properties prefsProps = prefs.getPrefs(); String proxyHost = (String) prefsProps.get("network.proxy.http"); String proxyPort = (String) prefsProps.get("network.proxy.http_port"); if (null != proxyHost && null != proxyPort) { System.setProperty("http.proxyHost", proxyHost); System.setProperty("http.proxyPort", proxyPort); } //prefsProps = prefs.getPrefs(); //prefsProps.list(System.out); // This works, try it! } catch (Exception e) { System.out.println(e.toString()); } try { EventRegistration eventRegistration = (EventRegistration) browserControl.queryInterface(BrowserControl.EVENT_REGISTRATION_NAME); eventRegistration.addDocumentLoadListener(this); eventRegistration.addMouseListener(this); // PENDING(edburns): test code, replace with production code bookmarks = (Bookmarks) browserControl.queryInterface(BrowserControl.BOOKMARKS_NAME); System.out.println("debug: edburns: got Bookmarks instance"); bookmarksTree = bookmarks.getBookmarks(); /********* TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot(); System.out.println("debug: edburns: testing the Enumeration"); int childCount = bookmarksRoot.getChildCount(); System.out.println("debug: edburns: root has " + childCount + " children."); Enumeration rootChildren = bookmarksRoot.children(); TreeNode currentChild; int i = 0, childIndex; while (rootChildren.hasMoreElements()) { currentChild = (TreeNode) rootChildren.nextElement(); System.out.println("debug: edburns: bookmarks root has children! child: " + i + " name: " + currentChild.toString()); i++; } System.out.println("debug: edburns: testing getChildAt(" + --i + "): "); currentChild = bookmarksRoot.getChildAt(i); System.out.println("debug: edburns: testing getIndex(Child " + i + "): index should be " + i + "."); childIndex = bookmarksRoot.getIndex(currentChild); System.out.println("debug: edburns: index is: " + childIndex); *****/ /********** System.out.println("debug: edburns: got new entry"); Properties entryProps = entry.getProperties(); System.out.println("debug: edburns: entry url: " + entryProps.getProperty(BookmarkEntry.URL)); bookmarks.addBookmark(folder, entry); **********/ } catch (Exception e) { System.out.println(e.toString()); } if (null != navigation) { navigation.loadURL(url); } } // EMWindow() ctor
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/c51f266635955ea9a40fa057209a78cf7b0fb900/EMWindow.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7141, 3829, 261, 780, 2077, 16, 514, 4158, 1621, 16, 514, 880, 16, 509, 5657, 2107, 16, 21829, 49, 11142, 10745, 29525, 13, 565, 288, 3639, 2240, 12, 2649, 1769, 3639, 10431, 273, 394, 10264, 416, 4599, 5621, 3639, 11784, 273, 29525, 31, 3639, 783, 1785, 273, 880, 31, 3639, 5657, 2578, 273, 5657, 2107, 31, 3639, 3399, 9913, 1621, 273, 4158, 1621, 31, 3639, 312, 382, 5108, 11124, 273, 629, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10062, 329, 598, 4158, 1621, 30, 315, 397, 4158, 1621, 397, 315, 880, 30, 315, 397, 880, 1769, 5411, 19106, 12, 1886, 2384, 16, 805, 2686, 1769, 5411, 752, 49, 275, 373, 297, 5621, 3639, 752, 17907, 12, 718, 1769, 3639, 368, 1788, 326, 4748, 3639, 775, 288, 5411, 15408, 3367, 1733, 18, 542, 3371, 751, 12, 4757, 1621, 1769, 5411, 4748, 3367, 273, 15408, 3367, 1733, 18, 2704, 9132, 3367, 5621, 5411, 4748, 12971, 273, 7734, 261, 9132, 3367, 12971, 13, 7734, 4748, 3367, 18, 2271, 1358, 12, 9132, 3367, 18, 38, 24846, 67, 18248, 67, 39, 1258, 58, 3033, 67, 1985, 1769, 3639, 289, 3639, 1044, 12, 503, 425, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 2568, 1404, 752, 15408, 3367, 30, 315, 397, 1171, 9079, 425, 18, 24906, 10663, 3639, 289, 3639, 5452, 18, 11231, 67, 305, 12, 2011, 480, 4748, 12971, 1769, 3639, 4748, 12971, 18, 542, 1225, 12, 1886, 2384, 16, 805, 2686, 1769, 3639, 368, 1436, 326, 3325, 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, 7141, 3829, 261, 780, 2077, 16, 514, 4158, 1621, 16, 514, 880, 16, 509, 5657, 2107, 16, 21829, 49, 11142, 10745, 29525, 13, 565, 288, 3639, 2240, 12, 2649, 1769, 3639, 10431, 273, 394, 10264, 416, 4599, 5621, 3639, 11784, 273, 29525, 31, 3639, 783, 1785, 273, 880, 31, 3639, 5657, 2578, 273, 5657, 2107, 31, 3639, 3399, 9913, 1621, 273, 4158, 1621, 31, 3639, 312, 382, 5108, 11124, 273, 629, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10062, 329, 598, 4158, 1621, 30, 315, 397, 4158, 1621, 397, 315, 880, 30, 315, 397, 880, 1769, 5411, 19106, 12, 1886, 2384, 16, 805, 2686, 1769, 5411, 752, 49, 275, 373, 297, 5621, 3639, 752, 17907, 12, 2 ]
if (rubyModule.getSuperClass() != null) { rbClass.includeModule(rubyModule.getSuperClass()); } return;
continue;
public void includeModule(RubyModule rubyModule) { if (rubyModule == null || rubyModule == this) { return; } RubyModule actClass = this; while (rubyModule != null) { for (RubyModule rbClass = actClass.getSuperClass(); rbClass != null; rbClass = rbClass.getSuperClass()) { if (rbClass.isIncluded() && rbClass.getMethods() == rubyModule.getMethods()) { if (rubyModule.getSuperClass() != null) { rbClass.includeModule(rubyModule.getSuperClass()); } return; } } actClass.setSuperClass(rubyModule.newIncludeClass(actClass.getSuperClass())); actClass = actClass.getSuperClass(); rubyModule = rubyModule.getSuperClass(); } }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/60d09f0d06e157ff7d9bb828d89273706e4e2798/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2341, 3120, 12, 54, 10340, 3120, 22155, 3120, 13, 288, 3639, 309, 261, 27768, 3120, 422, 446, 747, 22155, 3120, 422, 333, 13, 288, 5411, 327, 31, 3639, 289, 7734, 19817, 3120, 1328, 797, 273, 333, 31, 3639, 1323, 261, 27768, 3120, 480, 446, 13, 288, 5411, 364, 261, 54, 10340, 3120, 7138, 797, 273, 1328, 797, 18, 588, 8051, 797, 5621, 7138, 797, 480, 446, 31, 7138, 797, 273, 7138, 797, 18, 588, 8051, 797, 10756, 288, 7734, 309, 261, 6731, 797, 18, 291, 19323, 1435, 597, 7138, 797, 18, 588, 4712, 1435, 422, 22155, 3120, 18, 588, 4712, 10756, 288, 10792, 309, 261, 27768, 3120, 18, 588, 8051, 797, 1435, 480, 446, 13, 288, 13491, 7138, 797, 18, 6702, 3120, 12, 27768, 3120, 18, 588, 8051, 797, 10663, 10792, 289, 10792, 327, 31, 7734, 289, 5411, 289, 5411, 1328, 797, 18, 542, 8051, 797, 12, 27768, 3120, 18, 2704, 8752, 797, 12, 621, 797, 18, 588, 8051, 797, 1435, 10019, 5411, 1328, 797, 273, 1328, 797, 18, 588, 8051, 797, 5621, 5411, 22155, 3120, 273, 22155, 3120, 18, 588, 8051, 797, 5621, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2341, 3120, 12, 54, 10340, 3120, 22155, 3120, 13, 288, 3639, 309, 261, 27768, 3120, 422, 446, 747, 22155, 3120, 422, 333, 13, 288, 5411, 327, 31, 3639, 289, 7734, 19817, 3120, 1328, 797, 273, 333, 31, 3639, 1323, 261, 27768, 3120, 480, 446, 13, 288, 5411, 364, 261, 54, 10340, 3120, 7138, 797, 273, 1328, 797, 18, 588, 8051, 797, 5621, 7138, 797, 480, 446, 31, 7138, 797, 273, 7138, 797, 18, 588, 8051, 797, 10756, 288, 7734, 309, 261, 6731, 797, 18, 291, 19323, 1435, 597, 7138, 797, 18, 588, 4712, 1435, 422, 22155, 3120, 18, 588, 4712, 10756, 288, 10792, 309, 261, 27768, 3120, 18, 588, 8051, 797, 1435, 480, 446, 13, 288, 2 ]
try { Field field = ref.getWrappedClass().getField(name); if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers())) { Object value = field.get(ref.getWrappedInstance()); if (value != null && (type.equals(value.getClass()) || org.codehaus.groovy.grails.support.ClassUtils.isMatchBetweenPrimativeAndWrapperTypes(type, value.getClass()))) { return value; } else { return null; } } } catch (NoSuchFieldException e) { } catch (IllegalAccessException e) { }
protected Object getPropertyValue(String name, Class type) { BeanWrapper ref = getReference(); if (ref.isReadableProperty(name) && ref.getPropertyType(name).isAssignableFrom(type)) { Object value = ref.getPropertyValue(name); if(value != null && type.isAssignableFrom(value.getClass())) { return value; } return null; } else { try { Field field = ref.getWrappedClass().getField(name); if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers()) && field.getType().equals(type)) { return field.get(ref.getWrappedInstance()); } } catch (NoSuchFieldException e) { // ignore } catch (IllegalAccessException e) { // ignore } } return null; }
46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/9223022b559de4f00a583c44eed40c6022214f08/AbstractGrailsClass.java/buggy/grails/src/commons/org/codehaus/groovy/grails/commons/AbstractGrailsClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 698, 288, 2286, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 309, 261, 9829, 18, 291, 5788, 12, 1518, 18, 588, 11948, 10756, 597, 12832, 18, 291, 4782, 12, 1518, 18, 588, 11948, 1435, 3719, 288, 1033, 460, 273, 652, 18, 588, 12, 1734, 18, 588, 17665, 1442, 10663, 309, 261, 1132, 480, 446, 597, 261, 723, 18, 14963, 12, 1132, 18, 588, 797, 10756, 747, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 13261, 18, 797, 1989, 18, 291, 2060, 11831, 2050, 381, 1535, 1876, 3611, 2016, 12, 723, 16, 460, 18, 588, 797, 1435, 20349, 288, 327, 460, 31, 289, 469, 288, 327, 446, 31, 289, 289, 289, 1044, 261, 28341, 28846, 425, 13, 288, 225, 289, 1044, 261, 12195, 9773, 425, 13, 288, 225, 289, 225, 1033, 698, 288, 2286, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 309, 261, 9829, 18, 291, 5788, 12, 1518, 18, 588, 11948, 10756, 597, 12832, 18, 291, 4782, 12, 1518, 18, 588, 11948, 1435, 3719, 288, 1033, 460, 273, 652, 18, 588, 12, 1734, 18, 588, 17665, 1442, 10663, 309, 261, 1132, 480, 446, 597, 261, 723, 18, 14963, 12, 1132, 18, 588, 797, 10756, 747, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 13261, 18, 797, 1989, 18, 291, 2060, 11831, 2050, 381, 1535, 1876, 3611, 2016, 12, 723, 16, 460, 18, 588, 797, 1435, 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, 698, 288, 2286, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 309, 261, 9829, 18, 291, 5788, 12, 1518, 18, 588, 11948, 10756, 597, 12832, 18, 291, 4782, 12, 1518, 18, 588, 11948, 1435, 3719, 288, 1033, 460, 273, 652, 18, 588, 12, 1734, 18, 588, 17665, 1442, 10663, 309, 261, 1132, 480, 446, 597, 261, 723, 18, 14963, 12, 1132, 18, 588, 797, 10756, 747, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 13261, 18, 797, 1989, 18, 291, 2060, 11831, 2050, 381, 1535, 1876, 3611, 2016, 12, 723, 16, 460, 18, 588, 797, 1435, 20349, 288, 327, 460, 31, 289, 469, 288, 327, 446, 31, 2 ]
switch (cacheObj.updateMode) { case UPDATE_CREATE: trans.create(cacheObj.sobj, cacheObj.name); break; case UPDATE_DESTROY: trans.destroy(cacheObj.id); break;
if (cacheObj.updateMode == UPDATE_DESTROY) { trans.destroy(cacheObj.idObj.longValue());
public void commit() { synchronized (this) { synchronized (updateSet) { for (Entry cacheObj : updateSet) { switch (cacheObj.updateMode) { case UPDATE_CREATE: trans.create(cacheObj.sobj, cacheObj.name); break; case UPDATE_DESTROY: trans.destroy(cacheObj.id); break; } } updateSet.clear(); cstore.commit(this); // finish my transaction } trans.commit(); } }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/2f23674f4de52df87aaa80740784705fb4dbe973/CachingObjectStoreTransaction.java/buggy/src/com/sun/gi/objectstore/impl/CachingObjectStoreTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3294, 1435, 288, 3639, 3852, 261, 2211, 13, 288, 5411, 3852, 261, 2725, 694, 13, 288, 7734, 364, 261, 1622, 1247, 2675, 294, 1089, 694, 13, 288, 10792, 1620, 261, 2493, 2675, 18, 2725, 2309, 13, 288, 13491, 648, 11028, 67, 9344, 30, 18701, 906, 18, 2640, 12, 2493, 2675, 18, 2048, 441, 16, 1247, 2675, 18, 529, 1769, 18701, 898, 31, 13491, 648, 11028, 67, 1639, 25870, 61, 30, 18701, 906, 18, 11662, 12, 2493, 2675, 18, 350, 1769, 18701, 898, 31, 10792, 289, 4766, 565, 289, 7734, 1089, 694, 18, 8507, 5621, 7734, 276, 2233, 18, 7371, 12, 2211, 1769, 368, 4076, 3399, 2492, 5411, 289, 5411, 906, 18, 7371, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 3294, 1435, 288, 3639, 3852, 261, 2211, 13, 288, 5411, 3852, 261, 2725, 694, 13, 288, 7734, 364, 261, 1622, 1247, 2675, 294, 1089, 694, 13, 288, 10792, 1620, 261, 2493, 2675, 18, 2725, 2309, 13, 288, 13491, 648, 11028, 67, 9344, 30, 18701, 906, 18, 2640, 12, 2493, 2675, 18, 2048, 441, 16, 1247, 2675, 18, 529, 1769, 18701, 898, 31, 13491, 648, 11028, 67, 1639, 25870, 61, 30, 18701, 906, 18, 11662, 12, 2493, 2675, 18, 350, 1769, 18701, 898, 31, 10792, 289, 4766, 565, 289, 7734, 1089, 694, 18, 8507, 5621, 7734, 276, 2233, 18, 7371, 12, 2211, 1769, 368, 4076, 3399, 2492, 5411, 289, 5411, 906, 18, 7371, 5621, 3639, 289, 565, 2 ]
protected static IASTDeclSpecifier findDefinition( ICASTElaboratedTypeSpecifier declSpec ){ String elabName = declSpec.getName().toString(); return (IASTDeclSpecifier) findDefinition(declSpec, elabName);
protected static IASTFunctionDeclarator findDefinition( IASTFunctionDeclarator declarator ){ return (IASTFunctionDeclarator) findDefinition( declarator, declarator.getName().toString() );
protected static IASTDeclSpecifier findDefinition( ICASTElaboratedTypeSpecifier declSpec ){ String elabName = declSpec.getName().toString(); return (IASTDeclSpecifier) findDefinition(declSpec, elabName); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d72d34cf02737d1469299184397a760b79e0fd1f/CVisitor.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser2/c/CVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 467, 9053, 3456, 21416, 1104, 1852, 12, 467, 21871, 4958, 378, 280, 690, 559, 21416, 3496, 1990, 262, 95, 202, 202, 780, 415, 378, 461, 273, 3496, 1990, 18, 17994, 7675, 10492, 5621, 202, 202, 2463, 261, 45, 9053, 3456, 21416, 13, 1104, 1852, 12, 8840, 1990, 16, 415, 378, 461, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 467, 9053, 3456, 21416, 1104, 1852, 12, 467, 21871, 4958, 378, 280, 690, 559, 21416, 3496, 1990, 262, 95, 202, 202, 780, 415, 378, 461, 273, 3496, 1990, 18, 17994, 7675, 10492, 5621, 202, 202, 2463, 261, 45, 9053, 3456, 21416, 13, 1104, 1852, 12, 8840, 1990, 16, 415, 378, 461, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fPrintMarginColumn= addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 4, 0);
fPrintMarginColumn= addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 4, 0, true);
private Control createBehaviorPage(Composite parent) { Composite behaviorComposite= new Composite(parent, SWT.NULL); GridLayout layout= new GridLayout(); layout.numColumns= 2; behaviorComposite.setLayout(layout); String label= JavaUIMessages.getString("JavaEditorPreferencePage.textFont"); //$NON-NLS-1$ addTextFontEditor(behaviorComposite, label, AbstractTextEditor.PREFERENCE_FONT); label= JavaUIMessages.getString("JavaEditorPreferencePage.displayedTabWidth"); //$NON-NLS-1$ addTextField(behaviorComposite, label, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 2, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.insertSpaceForTabs"); //$NON-NLS-1$ addCheckBox(behaviorComposite, label, CompilationUnitEditor.SPACES_FOR_TABS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showProblemsBeforeCompiling"); //$NON-NLS-1$ addCheckBox(behaviorComposite, label, CompilationUnitDocumentProvider.HANDLE_TEMPRARY_PROBELMS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showOverviewRuler"); //$NON-NLS-1$ addCheckBox(behaviorComposite, label, CompilationUnitEditor.OVERVIEW_RULER, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightMatchingBrackets"); //$NON-NLS-1$ fBracketHighlightButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.MATCHING_BRACKETS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.matchingBracketsHighlightColor"); //$NON-NLS-1$ fBracketHighlightColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.MATCHING_BRACKETS_COLOR, 0); fBracketHighlightButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { setEnabled(fBracketHighlightColor, fBracketHighlightButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightCurrentLine"); //$NON-NLS-1$ fLineHighlightButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.CURRENT_LINE, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.currentLineHighlightColor"); //$NON-NLS-1$ fLineHighlightColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.CURRENT_LINE_COLOR, 0); fLineHighlightButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { setEnabled(fLineHighlightColor, fLineHighlightButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightProblems"); //$NON-NLS-1$ fProblemIndicationButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.PROBLEM_INDICATION, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.problemHighlightColor"); //$NON-NLS-1$ fProblemIndicationColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.PROBLEM_INDICATION_COLOR, 0); fProblemIndicationButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { setEnabled(fProblemIndicationColor, fProblemIndicationButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }); label= JavaUIMessages.getString("JavaEditorPreferencePage.showPrintMargin"); //$NON-NLS-1$ fPrintMarginButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColor"); //$NON-NLS-1$ fPrintMarginColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLOR, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColumn"); //$NON-NLS-1$ fPrintMarginColumn= addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 4, 0); fPrintMarginButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { boolean enabled= fPrintMarginButton.getSelection(); setEnabled(fPrintMarginColor, enabled); setEnabled(fPrintMarginColumn, enabled); } public void widgetDefaultSelected(SelectionEvent e) { } }); label= JavaUIMessages.getString("JavaEditorPreferencePage.findScopeColor"); //$NON-NLS-1$ fFindScopeColor= addColorButton(behaviorComposite, label, AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.linkedPositionColor"); //$NON-NLS-1$ fLinkedPositionColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.LINKED_POSITION_COLOR, 0); return behaviorComposite; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/0fabdbdd9c1152f86a2af1133050670f2c102484/JavaEditorPreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8888, 752, 9212, 1964, 12, 9400, 982, 13, 288, 202, 202, 9400, 6885, 9400, 33, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 33, 394, 7145, 3744, 5621, 3511, 18, 2107, 3380, 33, 576, 31, 202, 202, 31936, 9400, 18, 542, 3744, 12, 6741, 1769, 25083, 202, 780, 1433, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 1964, 18, 955, 5711, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1289, 1528, 5711, 6946, 12, 31936, 9400, 16, 1433, 16, 4115, 1528, 6946, 18, 3670, 10830, 67, 25221, 1769, 9506, 202, 1925, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 1964, 18, 5417, 329, 5661, 2384, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1289, 16157, 12, 31936, 9400, 16, 1433, 16, 5110, 1830, 18415, 1750, 18, 3670, 10830, 67, 28899, 67, 10023, 16, 576, 16, 374, 1769, 9506, 202, 1925, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 1964, 18, 6387, 3819, 1290, 17348, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1289, 19174, 12, 31936, 9400, 16, 1433, 16, 22416, 2802, 6946, 18, 6616, 55, 67, 7473, 67, 28899, 55, 16, 374, 1769, 9506, 202, 1925, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 1964, 18, 4500, 626, 19122, 4649, 2945, 4973, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1289, 19174, 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, 8888, 752, 9212, 1964, 12, 9400, 982, 13, 288, 202, 202, 9400, 6885, 9400, 33, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 33, 394, 7145, 3744, 5621, 3511, 18, 2107, 3380, 33, 576, 31, 202, 202, 31936, 9400, 18, 542, 3744, 12, 6741, 1769, 25083, 202, 780, 1433, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 1964, 18, 955, 5711, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1289, 1528, 5711, 6946, 12, 31936, 9400, 16, 1433, 16, 4115, 1528, 6946, 18, 3670, 10830, 67, 25221, 1769, 9506, 202, 1925, 33, 5110, 57, 3445, 1753, 18, 588, 780, 2932, 5852, 6946, 9624, 2 ]
String[] options = new String[10]; int current = 0; options[current] = "-Q"; options[current++] = getQuery();
Vector options = new Vector(); options.add("-Q"); options.add(getQuery());
public String[] getOptions() { String[] options = new String[10]; int current = 0; options[current] = "-Q"; options[current++] = getQuery(); StringBuffer text = new StringBuffer(); int i; for(i = 0;i < m_orderBy.size()-1;i++){ text.append((String)m_orderBy.elementAt(i)); text.append(", "); } if(i == m_orderBy.size()-1){ text.append((String)m_orderBy.elementAt(i)); options[current] = "-P"; options[current++] = text.toString(); } if (m_inc) { options[current++] = "-I"; } while (current < options.length) { options[current++] = ""; } return options; }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/6019bd3a324dc129a6c699ab236cf2dd9c572a93/DatabaseLoader.java/clean/weka/core/converters/DatabaseLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 9849, 1435, 288, 1850, 514, 8526, 702, 273, 394, 514, 63, 2163, 15533, 565, 509, 783, 273, 374, 31, 565, 702, 63, 2972, 65, 273, 3701, 53, 14432, 702, 63, 2972, 9904, 65, 273, 6041, 5621, 565, 6674, 977, 273, 394, 6674, 5621, 565, 509, 277, 31, 565, 364, 12, 77, 273, 374, 31, 77, 411, 312, 67, 26323, 18, 1467, 1435, 17, 21, 31, 77, 27245, 95, 3639, 977, 18, 6923, 12443, 780, 13, 81, 67, 26323, 18, 2956, 861, 12, 77, 10019, 3639, 977, 18, 6923, 2932, 16, 315, 1769, 565, 289, 565, 309, 12, 77, 422, 312, 67, 26323, 18, 1467, 1435, 17, 21, 15329, 3639, 977, 18, 6923, 12443, 780, 13, 81, 67, 26323, 18, 2956, 861, 12, 77, 10019, 3639, 702, 63, 2972, 65, 273, 3701, 52, 14432, 702, 63, 2972, 9904, 65, 273, 977, 18, 10492, 5621, 565, 289, 565, 309, 261, 81, 67, 9523, 13, 288, 1377, 702, 63, 2972, 9904, 65, 273, 3701, 45, 14432, 565, 289, 565, 1323, 261, 2972, 411, 702, 18, 2469, 13, 288, 1377, 702, 63, 2972, 9904, 65, 273, 1408, 31, 565, 289, 3639, 327, 225, 702, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 9849, 1435, 288, 1850, 514, 8526, 702, 273, 394, 514, 63, 2163, 15533, 565, 509, 783, 273, 374, 31, 565, 702, 63, 2972, 65, 273, 3701, 53, 14432, 702, 63, 2972, 9904, 65, 273, 6041, 5621, 565, 6674, 977, 273, 394, 6674, 5621, 565, 509, 277, 31, 565, 364, 12, 77, 273, 374, 31, 77, 411, 312, 67, 26323, 18, 1467, 1435, 17, 21, 31, 77, 27245, 95, 3639, 977, 18, 6923, 12443, 780, 13, 81, 67, 26323, 18, 2956, 861, 12, 77, 10019, 3639, 977, 18, 6923, 2932, 16, 315, 1769, 565, 289, 565, 309, 12, 77, 422, 312, 67, 26323, 18, 1467, 1435, 17, 21, 15329, 3639, 977, 18, 6923, 12443, 780, 13, 2 ]
if ((duration > 100) && _log.shouldLog(Log.ERROR)) _log.error("Message availability notification for " + msgId.intValue() + " took "
if ((duration > 100) && _log.shouldLog(Log.WARN)) _log.warn("Message availability notification for " + msgId.intValue() + " took "
public void run() { _alive = true; while (_alive) { Long msgId = null; Integer size = null; synchronized (AvailabilityNotifier.this) { if (_pendingIds.size() <= 0) { try { AvailabilityNotifier.this.wait(); } catch (InterruptedException ie) { // nop } } if (_pendingIds.size() > 0) { msgId = (Long)_pendingIds.remove(0); size = (Integer)_pendingSizes.remove(0); } } if ( (msgId != null) && (size != null) ) { if (_sessionListener != null) { try { long before = System.currentTimeMillis(); _sessionListener.messageAvailable(I2PSessionImpl.this, msgId.intValue(), size.intValue()); long duration = System.currentTimeMillis() - before; if ((duration > 100) && _log.shouldLog(Log.ERROR)) _log.error("Message availability notification for " + msgId.intValue() + " took " + duration + " to " + _sessionListener); } catch (Exception e) { _log.log(Log.CRIT, "Error notifying app of message availability", e); } } else { _log.log(Log.CRIT, "Unable to notify an app that " + msgId + " of size " + size + " is available!"); } } } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/24bad8e4bbb44f0148e118f584047e5149fff555/I2PSessionImpl.java/clean/core/java/src/net/i2p/client/I2PSessionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 389, 11462, 273, 638, 31, 5411, 1323, 261, 67, 11462, 13, 288, 7734, 3407, 1234, 548, 273, 446, 31, 7734, 2144, 963, 273, 446, 31, 7734, 3852, 261, 10427, 14889, 18, 2211, 13, 288, 10792, 309, 261, 67, 9561, 2673, 18, 1467, 1435, 1648, 374, 13, 288, 13491, 775, 288, 18701, 19309, 14889, 18, 2211, 18, 7048, 5621, 13491, 289, 1044, 261, 24485, 503, 9228, 13, 288, 368, 28797, 13491, 289, 10792, 289, 10792, 309, 261, 67, 9561, 2673, 18, 1467, 1435, 405, 374, 13, 288, 13491, 1234, 548, 273, 261, 3708, 13, 67, 9561, 2673, 18, 4479, 12, 20, 1769, 13491, 963, 273, 261, 4522, 13, 67, 9561, 11923, 18, 4479, 12, 20, 1769, 10792, 289, 7734, 289, 7734, 309, 261, 261, 3576, 548, 480, 446, 13, 597, 261, 1467, 480, 446, 13, 262, 288, 10792, 309, 261, 67, 3184, 2223, 480, 446, 13, 288, 13491, 775, 288, 18701, 1525, 1865, 273, 2332, 18, 2972, 28512, 5621, 18701, 389, 3184, 2223, 18, 2150, 5268, 12, 45, 22, 52, 2157, 2828, 18, 2211, 16, 1234, 548, 18, 474, 620, 9334, 963, 18, 474, 620, 10663, 18701, 1525, 3734, 273, 2332, 18, 2972, 28512, 1435, 300, 1865, 31, 18701, 309, 14015, 8760, 405, 2130, 13, 597, 389, 1330, 18, 13139, 1343, 12, 1343, 18, 3589, 3719, 4766, 389, 1330, 18, 1636, 2932, 1079, 13395, 3851, 364, 315, 397, 1234, 548, 18, 474, 620, 1435, 397, 315, 23151, 315, 4766, 5411, 397, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 389, 11462, 273, 638, 31, 5411, 1323, 261, 67, 11462, 13, 288, 7734, 3407, 1234, 548, 273, 446, 31, 7734, 2144, 963, 273, 446, 31, 7734, 3852, 261, 10427, 14889, 18, 2211, 13, 288, 10792, 309, 261, 67, 9561, 2673, 18, 1467, 1435, 1648, 374, 13, 288, 13491, 775, 288, 18701, 19309, 14889, 18, 2211, 18, 7048, 5621, 13491, 289, 1044, 261, 24485, 503, 9228, 13, 288, 368, 28797, 13491, 289, 10792, 289, 10792, 309, 261, 67, 9561, 2673, 18, 1467, 1435, 405, 374, 13, 288, 13491, 1234, 548, 273, 261, 3708, 13, 67, 9561, 2673, 18, 4479, 12, 20, 1769, 13491, 963, 273, 261, 4522, 13, 67, 9561, 11923, 18, 4479, 2 ]
return layout(c, block, content);
if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, block, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, block, content); } else return layout(c, block, content);
public static Box realLayout(Context c, Box block, Content content) { return layout(c, block, content); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/ea25c36d8670e0a2297b9a25e4765c46f98952c5/Boxing.java/clean/src/java/org/xhtmlrenderer/layout/Boxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8549, 2863, 3744, 12, 1042, 276, 16, 8549, 1203, 16, 3697, 913, 13, 288, 3639, 309, 261, 1745, 1276, 29775, 1768, 1350, 13, 288, 327, 29775, 3514, 310, 18, 6741, 12, 71, 16, 1203, 16, 913, 1769, 289, 469, 309, 261, 1745, 1276, 3555, 1350, 13, 288, 327, 3555, 3514, 310, 18, 6741, 12, 71, 16, 1203, 16, 913, 1769, 289, 469, 327, 3511, 12, 71, 16, 1203, 16, 913, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 8549, 2863, 3744, 12, 1042, 276, 16, 8549, 1203, 16, 3697, 913, 13, 288, 3639, 309, 261, 1745, 1276, 29775, 1768, 1350, 13, 288, 327, 29775, 3514, 310, 18, 6741, 12, 71, 16, 1203, 16, 913, 1769, 289, 469, 309, 261, 1745, 1276, 3555, 1350, 13, 288, 327, 3555, 3514, 310, 18, 6741, 12, 71, 16, 1203, 16, 913, 1769, 289, 469, 327, 3511, 12, 71, 16, 1203, 16, 913, 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 ]
} else if (!updateTask.isCompleted() && !endDate.isDisposed()) { endDate.setText(""); }
}
public void taskChanged(ITask updateTask) { if (updateTask != null && updateTask.getHandleIdentifier().equals(task.getHandleIdentifier())) { if (!description.isDisposed()) { description.setText(updateTask.getDescription(false)); TaskInfoEditor.this.setPartName(updateTask.getDescription(true)); parentEditor.updatePartName(); } if (!priorityCombo.isDisposed()) { int selectionIndex = priorityCombo.indexOf(updateTask.getPriority()); priorityCombo.select(selectionIndex); } if (!completedCheckbox.isDisposed()) { completedCheckbox.setSelection(updateTask.isCompleted()); } if (updateTask.isCompleted() && !endDate.isDisposed()) { endDate.setText(getTaskDateString(updateTask)); } else if (!updateTask.isCompleted() && !endDate.isDisposed()) { endDate.setText(""); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/558f40fad2aeb69f17a96cb2eabee4fb34ccd036/TaskInfoEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1562, 5033, 12, 1285, 835, 1089, 2174, 13, 288, 1082, 202, 430, 261, 2725, 2174, 480, 446, 597, 1089, 2174, 18, 588, 3259, 3004, 7675, 14963, 12, 4146, 18, 588, 3259, 3004, 1435, 3719, 288, 9506, 202, 430, 16051, 3384, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 3384, 18, 542, 1528, 12, 2725, 2174, 18, 588, 3291, 12, 5743, 10019, 6862, 202, 2174, 966, 6946, 18, 2211, 18, 542, 1988, 461, 12, 2725, 2174, 18, 588, 3291, 12, 3767, 10019, 6862, 202, 2938, 6946, 18, 2725, 1988, 461, 5621, 9506, 202, 97, 9506, 202, 430, 16051, 8457, 16156, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 474, 4421, 1016, 273, 4394, 16156, 18, 31806, 12, 2725, 2174, 18, 588, 8183, 10663, 6862, 202, 8457, 16156, 18, 4025, 12, 10705, 1016, 1769, 9506, 202, 97, 9506, 202, 430, 16051, 13615, 21272, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 13615, 21272, 18, 542, 6233, 12, 2725, 2174, 18, 291, 9556, 10663, 9506, 202, 97, 9506, 202, 430, 261, 2725, 2174, 18, 291, 9556, 1435, 597, 401, 409, 1626, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 409, 1626, 18, 542, 1528, 12, 588, 2174, 1626, 780, 12, 2725, 2174, 10019, 9506, 202, 97, 469, 309, 16051, 2725, 2174, 18, 291, 9556, 1435, 597, 401, 409, 1626, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 409, 1626, 18, 542, 1528, 2932, 8863, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1562, 5033, 12, 1285, 835, 1089, 2174, 13, 288, 1082, 202, 430, 261, 2725, 2174, 480, 446, 597, 1089, 2174, 18, 588, 3259, 3004, 7675, 14963, 12, 4146, 18, 588, 3259, 3004, 1435, 3719, 288, 9506, 202, 430, 16051, 3384, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 3384, 18, 542, 1528, 12, 2725, 2174, 18, 588, 3291, 12, 5743, 10019, 6862, 202, 2174, 966, 6946, 18, 2211, 18, 542, 1988, 461, 12, 2725, 2174, 18, 588, 3291, 12, 3767, 10019, 6862, 202, 2938, 6946, 18, 2725, 1988, 461, 5621, 9506, 202, 97, 9506, 202, 430, 16051, 8457, 16156, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 474, 4421, 1016, 273, 4394, 16156, 18, 31806, 2 ]
GrouperMember m = GrouperMember.load(s, sid, stid); if (m != null) { try { g.listAddVal(m); rv = true; _report("Added member: " + name + " to " + g.name()); } catch (RuntimeException e) { System.err.println(e); rv = false;
try { GrouperMember m = GrouperMember.load(s, sid, stid); if (m != null) { try { g.listAddVal(m); rv = true; _report("Added member: " + name + " to " + g.name()); } catch (RuntimeException e) { System.err.println(e.getMessage()); rv = false; }
private static boolean _memberAdd(List tokens) { boolean rv = false; String stem = (String) tokens.get(0); String extn = (String) tokens.get(1); String name = null; // For pretty printing String sid = null; String stid = Grouper.DEF_SUBJ_TYPE; if (tokens.size() == 3) { // Adding a non-group as a member sid = (String) tokens.get(2); name = sid; } else if (tokens.size() > 1) { // Adding a group as a member // Ye Olde Silent Ignore Trick String mS = (String) tokens.get(2); String mE = (String) tokens.get(3); GrouperGroup mAsG = GrouperGroup.load(s, mS, mE); if (mAsG != null) { name = mAsG.name(); sid = mAsG.id(); stid = "group"; } else { System.err.println("Unable to fetch member group!"); } } // Load the group GrouperGroup g = GrouperGroup.load(s, stem, extn); if (g != null) { // Load the member GrouperMember m = GrouperMember.load(s, sid, stid); if (m != null) { try { g.listAddVal(m); rv = true; _report("Added member: " + name + " to " + g.name()); } catch (RuntimeException e) { System.err.println(e); rv = false; } } } if (rv != true) { _report("Failed to add member " + name + " to " + stem + ":" + extn); } return rv; }
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/137a81498ddc2ed08350bf796995da3424635ac5/csv2group.java/buggy/grouper/contrib/old/load/csv2group/csv2group.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 389, 5990, 986, 12, 682, 2430, 13, 288, 565, 1250, 5633, 273, 629, 31, 565, 514, 13119, 273, 261, 780, 13, 2430, 18, 588, 12, 20, 1769, 565, 514, 1110, 82, 273, 261, 780, 13, 2430, 18, 588, 12, 21, 1769, 565, 514, 508, 273, 446, 31, 368, 2457, 7517, 19171, 565, 514, 7348, 225, 273, 446, 31, 565, 514, 384, 350, 273, 3756, 264, 18, 12904, 67, 8362, 46, 67, 2399, 31, 565, 309, 3639, 261, 7860, 18, 1467, 1435, 422, 890, 13, 225, 288, 1377, 368, 21240, 279, 1661, 17, 1655, 487, 279, 3140, 1377, 7348, 225, 273, 261, 780, 13, 2430, 18, 588, 12, 22, 1769, 1377, 508, 273, 7348, 31, 565, 289, 469, 309, 261, 7860, 18, 1467, 1435, 405, 404, 13, 282, 288, 1377, 368, 21240, 279, 1041, 487, 279, 3140, 1377, 368, 1624, 73, 531, 80, 323, 348, 8125, 8049, 840, 1200, 1377, 514, 312, 55, 273, 261, 780, 13, 2430, 18, 588, 12, 22, 1769, 1377, 514, 312, 41, 273, 261, 780, 13, 2430, 18, 588, 12, 23, 1769, 1377, 3756, 264, 1114, 312, 1463, 43, 273, 3756, 264, 1114, 18, 945, 12, 87, 16, 312, 55, 16, 312, 41, 1769, 1377, 309, 261, 81, 1463, 43, 480, 446, 13, 288, 3639, 508, 225, 273, 312, 1463, 43, 18, 529, 5621, 3639, 7348, 282, 273, 312, 1463, 43, 18, 350, 5621, 3639, 384, 350, 225, 273, 315, 1655, 14432, 1377, 289, 469, 288, 3639, 2332, 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, 3238, 760, 1250, 389, 5990, 986, 12, 682, 2430, 13, 288, 565, 1250, 5633, 273, 629, 31, 565, 514, 13119, 273, 261, 780, 13, 2430, 18, 588, 12, 20, 1769, 565, 514, 1110, 82, 273, 261, 780, 13, 2430, 18, 588, 12, 21, 1769, 565, 514, 508, 273, 446, 31, 368, 2457, 7517, 19171, 565, 514, 7348, 225, 273, 446, 31, 565, 514, 384, 350, 273, 3756, 264, 18, 12904, 67, 8362, 46, 67, 2399, 31, 565, 309, 3639, 261, 7860, 18, 1467, 1435, 422, 890, 13, 225, 288, 1377, 368, 21240, 279, 1661, 17, 1655, 487, 279, 3140, 1377, 7348, 225, 273, 261, 780, 13, 2430, 18, 588, 12, 22, 1769, 1377, 508, 273, 7348, 31, 565, 2 ]
if(loadList.length == 1) { startLoad = toLoad; prevLoad = toLoad; }
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 [] loadCount = new int[getWidth()]; int [] cacheCount = new int[getWidth()]; for(int i = 0;i < loadCount.length;i++) { loadCount[i] = 0; cacheCount[i] = 0; } //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++) { boolean isLoaded = false; if( Arrays.binarySearch(cache, loadList[i]) >= 0) isLoaded = true; int index = translate(loadList[i]); if(!isLoaded) loadCount[index]++; } for(int i = 0;i<cache.length;i++) { int index = translate(cache[i]); cacheCount[index]++; } for(int i = 0;i < getWidth();i++) { int loadColor,cacheColor; loadColor = colorAmount * loadCount[i]; cacheColor = colorAmount * cacheCount[i]; if(loadColor != 0 || cacheColor != 0) { g.setColor(new Color(loadColor,0,cacheColor)); g.drawLine(i,1,i,COMPONENT_HEIGHT - 2); } } } 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; } } } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/289943af78317ee7a2a840e853bcce40ec7eadfa/CacheIndicator.java/clean/loci/plugins/browser/CacheIndicator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 565, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 1071, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 918, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 12574, 12, 17558, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 314, 13, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 288, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 565, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 565, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 565, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 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, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 565, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 1071, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 918, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2563, 31, 2807, 2563, 273, 358, 2563, 31, 289, 225, 12574, 12, 17558, 225, 309, 12, 945, 682, 18, 2469, 422, 404, 13, 288, 787, 2563, 273, 358, 2 ]
vPhaseReport.addElement(r);
addReport(r);
private void resolveHeat() { Report r; //Heat phase header vPhaseReport.addElement(new Report(5000, Report.PUBLIC)); for (Enumeration i = game.getEntities(); i.hasMoreElements();) { Entity entity = (Entity)i.nextElement(); if ( null == entity.getPosition() ) { continue; } IHex entityHex = game.getBoard().getHex(entity.getPosition()); // heat doesn't matter for non-mechs if (!(entity instanceof Mech)) { entity.heatBuildup = 0; if(game.getOptions().booleanOption("vehicle_fires") && entity instanceof Tank) { resolveVehicleFire((Tank)entity, true); } // If the unit is hit with an Inferno, do flaming death test. else if ( entity.infernos.isStillBurning()) { doFlamingDeath(entity); } continue; } else { // Meks gain heat from inferno hits. if ( entity.infernos.isStillBurning() ) { int infernoHeat = entity.infernos.getHeat(); entity.heatBuildup += infernoHeat; r = new Report(5010); r.subject = entity.getId(); r.add(infernoHeat); vPhaseReport.addElement(r); } } // should we even bother? if ( entity.isDestroyed() || entity.isDoomed() || entity.crew.isDoomed() || entity.crew.isDead() ) { continue; } // engine hits add a lot of heat, provided the engine is on entity.heatBuildup += entity.getEngineCritHeat(); // If a Mek had an active Stealth suite, add 10 heat. if ( entity instanceof Mech && entity.isStealthActive() ) { entity.heatBuildup += 10; r = new Report(5015); r.subject = entity.getId(); vPhaseReport.addElement(r); } // If a Mek is in extreme Temperatures, add or subtract one // heat per 10 degrees (or fraction of 10 degrees) above or // below 50 or -30 degrees Celsius if ( entity instanceof Mech && game.getTemperatureDifference() != 0 && !((Mech)entity).hasLaserHeatSinks()) { if (game.getOptions().intOption("temperature") > 50) { entity.heatBuildup += game.getTemperatureDifference(); r = new Report(5020); r.subject = entity.getId(); r.add(game.getTemperatureDifference()); vPhaseReport.addElement(r); } else { entity.heatBuildup -= game.getTemperatureDifference(); r = new Report(5025); r.subject = entity.getId(); r.add(game.getTemperatureDifference()); vPhaseReport.addElement(r); } } // Add +5 Heat if the hex you're in is on fire // and was on fire for the full round. if (entityHex != null) { if (entityHex.terrainLevel(Terrains.FIRE) == 2) { entity.heatBuildup += 5; r = new Report(5030); r.subject = entity.getId(); vPhaseReport.addElement(r); } int magma = entityHex.terrainLevel(Terrains.MAGMA); if(magma > 0) { entity.heatBuildup += 5 * magma; r = new Report(5032); r.subject = entity.getId(); r.add(5 * magma); vPhaseReport.addElement(r); } } // if heatbuildup is negative due to temperature, set it to 0 // for prettier turnreports if (entity.heatBuildup < 0) { entity.heatBuildup = 0; } // add the heat we've built up so far. entity.heat += entity.heatBuildup; // how much heat can we sink? int tosink = entity.getHeatCapacityWithWater(); // should we use a coolant pod? int safeHeat = entity.hasInfernoAmmo() ? 9 : 13; int possibleSinkage = ((Mech)entity).getNumberOfSinks(); for(Enumeration equip=entity.getEquipment();equip.hasMoreElements();) { Mounted m = (Mounted)equip.nextElement(); if(m.getType() instanceof AmmoType) { AmmoType at = (AmmoType)(m.getType()); if(at.getAmmoType() == AmmoType.T_COOLANT_POD && m.isAmmoUsable()) { EquipmentMode mode = m.curMode(); if(mode.equals("dump")) { r = new Report(5260); r.subject = entity.getId(); vPhaseReport.addElement(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } if(mode.equals("safe") && entity.heat - tosink > safeHeat) { r = new Report(5265); r.subject = entity.getId(); vPhaseReport.addElement(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } if(mode.equals("efficient") && entity.heat - tosink >= possibleSinkage) { r = new Report(5270); r.subject = entity.getId(); vPhaseReport.addElement(r); m.setShotsLeft(0); tosink += possibleSinkage; break; } } } } tosink = Math.min( tosink, entity.heat ); entity.heat -= tosink; r = new Report(5035); r.subject = entity.getId(); r.addDesc(entity); r.add(entity.heatBuildup); r.add(tosink); r.add(entity.heat); vPhaseReport.addElement(r); entity.heatBuildup = 0; // Does the unit have inferno ammo? if( entity.hasInfernoAmmo() ) { // Roll for possible inferno ammo explosion. if (entity.heat >= 10) { int boom = 4 + (entity.heat >= 14 ? 2 : 0) + (entity.heat >= 19 ? 2 : 0) + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); int boomroll = Compute.d6(2); r = new Report(5040); r.subject = entity.getId(); r.addDesc(entity); r.add(boom); r.add(boomroll); if (boomroll >= boom) { //avoided r.choose(true); vPhaseReport.addElement(r); } else { r.choose(false); vPhaseReport.addElement(r); vPhaseReport.addAll( explodeInfernoAmmoFromHeat(entity)); } } } // End avoid-inferno-explosion int autoShutDownHeat; boolean mtHeat; if (game.getOptions().booleanOption("maxtech_heat")) { autoShutDownHeat = 50; mtHeat = true; } else { autoShutDownHeat = 30; mtHeat = false; } // heat effects: start up if (entity.heat < autoShutDownHeat && entity.isShutDown()) { if (entity.heat < 14) { //automatically starts up again entity.setShutDown(false); r = new Report(5045); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); } else { //roll for startup int startup = 4 + (((entity.heat - 14) / 4) * 2); if (mtHeat) { startup = entity.crew.getPiloting() + startup - 8; } int suroll = Compute.d6(2); r = new Report(5050); r.subject = entity.getId(); r.addDesc(entity); r.add(startup); r.add(suroll); if (suroll >= startup) { //start 'er back up entity.setShutDown(false); r.choose(true); } else { r.choose(false); } vPhaseReport.addElement(r); } } // heat effects: shutdown! // 2003-01-26 JAD - Don't shut down if you just restarted. else if (entity.heat >= 14 && !entity.isShutDown()) { if (entity.heat >= autoShutDownHeat) { r = new Report(5055); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } else if (entity.heat >= 14) { int shutdown = 4 + (((entity.heat - 14) / 4) * 2); if (mtHeat) { shutdown = entity.crew.getPiloting() + shutdown - 8; } int sdroll = Compute.d6(2); r = new Report(5060); r.subject = entity.getId(); r.addDesc(entity); r.add(shutdown); r.add(sdroll); if (sdroll >= shutdown) { //avoided r.choose(true); vPhaseReport.addElement(r); } else { //shutting down... r.choose(false); vPhaseReport.addElement(r); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } } } // heat effects: ammo explosion! if (entity.heat >= 19) { int boom = 4 + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); if (mtHeat) { boom += (entity.heat >= 35 ? 2 : 0) + (entity.heat >= 40 ? 2 : 0) + (entity.heat >= 45 ? 2 : 0); // Last line is a crutch; 45 heat should be no roll // but automatic explosion. } if(entity instanceof Mech && ((Mech)entity).hasLaserHeatSinks()) boom--; int boomroll = Compute.d6(2); r = new Report(5065); r.subject = entity.getId(); r.addDesc(entity); r.add(boom); r.add(boomroll); if (boomroll >= boom) { //mech is ok r.choose(true); vPhaseReport.addElement(r); } else { //boom! r.choose(false); vPhaseReport.addElement(r); vPhaseReport.addAll( explodeAmmoFromHeat(entity)); } } // heat effects: mechwarrior damage // N.B. The pilot may already be dead. int lifeSupportCritCount = 0; boolean torsoMountedCockpit = ((Mech)entity).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED; if ((entity instanceof Mech) && torsoMountedCockpit) {System.out.println("In here!"); lifeSupportCritCount = entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_RT); lifeSupportCritCount += entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_LT); } else { lifeSupportCritCount = entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_HEAD); } if (lifeSupportCritCount > 0 && ((entity.heat >= 15) || (torsoMountedCockpit && (entity.heat >= 0))) && !entity.crew.isDead() && !entity.crew.isDoomed() && !entity.crew.isEjected()) { int heatLimitDesc = 1; int damageToCrew = 0; if (entity.heat >= 47 && mtHeat) { // mechwarrior takes 5 damage heatLimitDesc = 47; damageToCrew = 5; } else if (entity.heat >= 39 && mtHeat) { // mechwarrior takes 4 damage heatLimitDesc = 39; damageToCrew = 4; } else if (entity.heat >= 32 && mtHeat) { // mechwarrior takes 3 damage heatLimitDesc = 32; damageToCrew = 3; } else if (entity.heat >= 25) { // mechwarrior takes 2 damage heatLimitDesc = 25; damageToCrew = 2; } else if (entity.heat >= 15) { // mechwarrior takes 1 damage heatLimitDesc = 15; damageToCrew = 1; } if (entity.heat > 0 && (entity instanceof Mech) && ((Mech)entity).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) damageToCrew += 1; r = new Report(5070); r.subject = entity.getId(); r.addDesc(entity); r.add(heatLimitDesc); r.add(damageToCrew); vPhaseReport.addElement(r); damageCrew(entity, damageToCrew); } else if (mtHeat && entity.heat >= 32 && !entity.crew.isDead() && !entity.crew.isDoomed() ) { // Pilot may take damage from heat if MaxTech option is set int heatroll = Compute.d6(2); int avoidNumber = -1; if (entity.heat >= 47) { avoidNumber = 12; } else if (entity.heat >= 39) { avoidNumber = 10; } else if (entity.heat >= 32) { avoidNumber = 8; } r = new Report(5075); r.subject = entity.getId(); r.addDesc(entity); r.add(avoidNumber); r.add(heatroll); if (heatroll >= avoidNumber) { //damage avoided r.choose(true); } else { damageCrew(entity, 1); r.choose(false); } vPhaseReport.addElement(r); } // The pilot may have just expired. if ( (entity.crew.isDead() || entity.crew.isDoomed() ) && !entity.crew.isEjected() ) { r = new Report(5080); r.subject = entity.getId(); r.addDesc(entity); r.newlines = 0; vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(entity, "crew death", true)); } // With MaxTech Heat Scale, there may occur critical damage if (mtHeat) { if (entity.heat >= 36) { int damageroll = Compute.d6(2); int damageNumber = -1; if (entity.heat >= 44) { damageNumber = 10; } else if (entity.heat >= 36) { damageNumber = 8; } r = new Report(5085); r.subject = entity.getId(); r.addDesc(entity); r.add(damageNumber); r.add(damageroll); r.newlines = 0; if (damageroll >= damageNumber) { r.choose(true); vPhaseReport.addElement(r); } else { r.choose(false); vPhaseReport.addElement(r); vPhaseReport.addAll( oneCriticalEntity(entity, Compute.d6(2))); //add an empty report, for linebreaking r = new Report(1210); vPhaseReport.add(r); } } } } if (vPhaseReport.size() == 1) { //I guess nothing happened... vPhaseReport.addElement(new Report(1205, Report.PUBLIC)); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 5256, 270, 1435, 288, 3639, 8706, 436, 31, 3639, 368, 5256, 270, 6855, 1446, 3639, 331, 11406, 4820, 18, 1289, 1046, 12, 2704, 8706, 12, 25, 3784, 16, 8706, 18, 14939, 10019, 3639, 364, 261, 21847, 277, 273, 7920, 18, 588, 8108, 5621, 277, 18, 5332, 7417, 3471, 5621, 13, 288, 5411, 3887, 1522, 273, 261, 1943, 13, 77, 18, 4285, 1046, 5621, 5411, 309, 261, 446, 422, 1522, 18, 588, 2555, 1435, 262, 288, 7734, 1324, 31, 5411, 289, 5411, 467, 7037, 1522, 7037, 273, 7920, 18, 588, 22233, 7675, 588, 7037, 12, 1096, 18, 588, 2555, 10663, 5411, 368, 19347, 3302, 1404, 15177, 364, 1661, 17, 3501, 343, 87, 5411, 309, 16051, 12, 1096, 1276, 7499, 343, 3719, 288, 7734, 1522, 18, 580, 270, 3116, 416, 273, 374, 31, 7734, 309, 12, 13957, 18, 588, 1320, 7675, 6494, 1895, 2932, 537, 18870, 67, 74, 2814, 7923, 13491, 597, 1522, 1276, 399, 2304, 13, 288, 10792, 2245, 58, 73, 18870, 9723, 12443, 56, 2304, 13, 1096, 16, 638, 1769, 7734, 289, 7734, 368, 971, 326, 2836, 353, 6800, 598, 392, 657, 586, 2135, 16, 741, 1183, 7772, 443, 421, 1842, 18, 7734, 469, 309, 261, 1522, 18, 25889, 18050, 18, 291, 510, 737, 38, 321, 310, 10756, 288, 10792, 741, 2340, 7772, 758, 421, 12, 1096, 1769, 7734, 289, 7734, 1324, 31, 5411, 289, 5411, 469, 288, 7734, 368, 490, 3839, 87, 17527, 19347, 628, 12455, 2135, 11076, 18, 7734, 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, 918, 2245, 5256, 270, 1435, 288, 3639, 8706, 436, 31, 3639, 368, 5256, 270, 6855, 1446, 3639, 331, 11406, 4820, 18, 1289, 1046, 12, 2704, 8706, 12, 25, 3784, 16, 8706, 18, 14939, 10019, 3639, 364, 261, 21847, 277, 273, 7920, 18, 588, 8108, 5621, 277, 18, 5332, 7417, 3471, 5621, 13, 288, 5411, 3887, 1522, 273, 261, 1943, 13, 77, 18, 4285, 1046, 5621, 5411, 309, 261, 446, 422, 1522, 18, 588, 2555, 1435, 262, 288, 7734, 1324, 31, 5411, 289, 5411, 467, 7037, 1522, 7037, 273, 7920, 18, 588, 22233, 7675, 588, 7037, 12, 1096, 18, 588, 2555, 10663, 5411, 368, 19347, 3302, 1404, 15177, 364, 1661, 17, 3501, 343, 87, 5411, 309, 16051, 12, 2 ]
private void endOperation(ICDescriptor descriptor) { CDescriptorEvent event = (CDescriptorEvent) fOperationMap.remove(descriptor); if (event != null) { fireEvent(event); }
private CDescriptorEvent endOperation(ICDescriptor descriptor) { return (CDescriptorEvent) fOperationMap.remove(descriptor);
private void endOperation(ICDescriptor descriptor) { CDescriptorEvent event = (CDescriptorEvent) fOperationMap.remove(descriptor); if (event != null) { fireEvent(event); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b0cedbe5cc753bf7f9a3f7d2cd7a89c66b953c26/CDescriptorManager.java/buggy/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 679, 2988, 12, 2871, 3187, 4950, 13, 288, 202, 202, 39, 3187, 1133, 871, 273, 261, 39, 3187, 1133, 13, 284, 2988, 863, 18, 4479, 12, 12628, 1769, 202, 202, 430, 261, 2575, 480, 446, 13, 288, 1082, 202, 12179, 1133, 12, 2575, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 679, 2988, 12, 2871, 3187, 4950, 13, 288, 202, 202, 39, 3187, 1133, 871, 273, 261, 39, 3187, 1133, 13, 284, 2988, 863, 18, 4479, 12, 12628, 1769, 202, 202, 430, 261, 2575, 480, 446, 13, 288, 1082, 202, 12179, 1133, 12, 2575, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!TestUtil.haveMinimumServerVersion(_conn, "7.4"))
if (!TestUtil.isProtocolVersion(_conn, 3))
public void testParameterMD() throws SQLException { if (!TestUtil.haveMinimumServerVersion(_conn, "7.4")) return; PreparedStatement pstmt = _conn.prepareStatement("SELECT a FROM parametertest WHERE b = ? AND c = ? AND d >^ ? "); ParameterMetaData pmd = pstmt.getParameterMetaData(); assertEquals(3, pmd.getParameterCount()); assertEquals(Types.DOUBLE, pmd.getParameterType(1)); assertEquals("float8", pmd.getParameterTypeName(1)); assertEquals("java.lang.Double", pmd.getParameterClassName(1)); assertEquals(Types.VARCHAR, pmd.getParameterType(2)); assertEquals("text", pmd.getParameterTypeName(2)); assertEquals("java.lang.String", pmd.getParameterClassName(2)); assertEquals(Types.OTHER, pmd.getParameterType(3)); assertEquals("point", pmd.getParameterTypeName(3)); assertEquals("org.postgresql.geometric.PGpoint", pmd.getParameterClassName(3)); pstmt.close(); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/1826bb723f40e25e79ac5b3da873f558f27f4e0c/ParameterMetaDataTest.java/buggy/org/postgresql/test/jdbc3/ParameterMetaDataTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1662, 6188, 1435, 1216, 6483, 288, 3639, 309, 16051, 4709, 1304, 18, 291, 28252, 24899, 4646, 16, 890, 3719, 5411, 327, 31, 3639, 16913, 293, 10589, 273, 389, 4646, 18, 9366, 3406, 2932, 4803, 279, 4571, 1569, 3813, 4852, 324, 273, 692, 4116, 276, 273, 692, 4116, 302, 405, 66, 692, 315, 1769, 3639, 5498, 6998, 293, 1264, 273, 293, 10589, 18, 588, 1662, 6998, 5621, 3639, 1815, 8867, 12, 23, 16, 293, 1264, 18, 588, 1662, 1380, 10663, 3639, 1815, 8867, 12, 2016, 18, 17088, 16, 293, 1264, 18, 588, 28460, 12, 21, 10019, 3639, 1815, 8867, 2932, 5659, 28, 3113, 293, 1264, 18, 588, 1662, 7947, 12, 21, 10019, 3639, 1815, 8867, 2932, 6290, 18, 4936, 18, 5265, 3113, 293, 1264, 18, 588, 1662, 3834, 12, 21, 10019, 3639, 1815, 8867, 12, 2016, 18, 7716, 7305, 16, 293, 1264, 18, 588, 28460, 12, 22, 10019, 3639, 1815, 8867, 2932, 955, 3113, 293, 1264, 18, 588, 1662, 7947, 12, 22, 10019, 3639, 1815, 8867, 2932, 6290, 18, 4936, 18, 780, 3113, 293, 1264, 18, 588, 1662, 3834, 12, 22, 10019, 3639, 1815, 8867, 12, 2016, 18, 23940, 16, 293, 1264, 18, 588, 28460, 12, 23, 10019, 3639, 1815, 8867, 2932, 1153, 3113, 293, 1264, 18, 588, 1662, 7947, 12, 23, 10019, 3639, 1815, 8867, 2932, 3341, 18, 2767, 24330, 18, 10049, 1591, 18, 18679, 1153, 3113, 293, 1264, 18, 588, 1662, 3834, 12, 23, 10019, 3639, 293, 10589, 18, 4412, 5621, 565, 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, 1662, 6188, 1435, 1216, 6483, 288, 3639, 309, 16051, 4709, 1304, 18, 291, 28252, 24899, 4646, 16, 890, 3719, 5411, 327, 31, 3639, 16913, 293, 10589, 273, 389, 4646, 18, 9366, 3406, 2932, 4803, 279, 4571, 1569, 3813, 4852, 324, 273, 692, 4116, 276, 273, 692, 4116, 302, 405, 66, 692, 315, 1769, 3639, 5498, 6998, 293, 1264, 273, 293, 10589, 18, 588, 1662, 6998, 5621, 3639, 1815, 8867, 12, 23, 16, 293, 1264, 18, 588, 1662, 1380, 10663, 3639, 1815, 8867, 12, 2016, 18, 17088, 16, 293, 1264, 18, 588, 28460, 12, 21, 10019, 3639, 1815, 8867, 2932, 5659, 28, 3113, 293, 1264, 18, 588, 1662, 7947, 12, 21, 10019, 3639, 1815, 8867, 2932, 2 ]
protected QueryOperation getRemoteFolderOperation(boolean truth, Mailbox mbox) { try { Folder root = mbox.getFolderById(null, Mailbox.ID_FOLDER_ROOT); List<Folder> allFolders = root.getSubfolderHierarchy(); Folder trash = mbox.getFolderById(null, Mailbox.ID_FOLDER_TRASH); List<Folder> trashFolders = trash.getSubfolderHierarchy(); allFolders.remove(trash); for (Folder f : trashFolders) { allFolders.remove(f); } Folder spam = mbox.getFolderById(null, Mailbox.ID_FOLDER_SPAM); allFolders.remove(spam); for (Iterator<Folder> iter = allFolders.iterator(); iter.hasNext();) { Folder f = iter.next(); if (!(f instanceof Mountpoint)) iter.remove(); else { Mountpoint mpt = (Mountpoint)f;// if (mpt. .getAccount() == mbox.getAccount()) {// iter.remove();// } } } if (allFolders.size() == 0) { if (truth) { return new NullQueryOperation(); } } else { if (truth) { UnionQueryOperation outer = new UnionQueryOperation(); for (Folder f : allFolders) { DBQueryOperation dbop = new DBQueryOperation(); outer.add(dbop); dbop.addInClause(f, truth); } return outer; } else { IntersectionQueryOperation outer = new IntersectionQueryOperation(); for (Folder f : allFolders) { DBQueryOperation dbop = new DBQueryOperation(); outer.addQueryOp(dbop); dbop.addInClause(f, truth); } return outer; } } } catch (ServiceException e) {} return new NullQueryOperation(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/a07eda4fc014f2ae97dbf008b9ff80eb06a01f69/ZimbraQuery.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/ZimbraQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 2770, 2988, 14879, 3899, 2988, 12, 6494, 16512, 16, 11542, 2147, 312, 2147, 13, 288, 13491, 775, 288, 7734, 12623, 1365, 273, 312, 2147, 18, 588, 3899, 5132, 12, 2011, 16, 11542, 2147, 18, 734, 67, 17357, 67, 9185, 1769, 7734, 987, 32, 3899, 34, 777, 14885, 273, 1365, 18, 588, 1676, 5609, 12074, 5621, 27573, 12623, 20703, 273, 312, 2147, 18, 588, 3899, 5132, 12, 2011, 16, 11542, 2147, 18, 734, 67, 17357, 67, 20060, 2664, 1769, 7734, 987, 32, 3899, 34, 20703, 14885, 273, 20703, 18, 588, 1676, 5609, 12074, 5621, 27573, 777, 14885, 18, 4479, 12, 28665, 1769, 7734, 364, 261, 3899, 284, 294, 20703, 14885, 13, 288, 4766, 3639, 777, 14885, 18, 4479, 12, 74, 1769, 7734, 289, 27573, 12623, 24824, 273, 312, 2147, 18, 588, 3899, 5132, 12, 2011, 16, 11542, 2147, 18, 734, 67, 17357, 67, 3118, 2192, 1769, 7734, 777, 14885, 18, 4479, 12, 1752, 301, 1769, 27573, 364, 261, 3198, 32, 3899, 34, 1400, 273, 777, 14885, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 10792, 12623, 284, 273, 1400, 18, 4285, 5621, 10792, 309, 16051, 12, 74, 1276, 13076, 1153, 3719, 13491, 1400, 18, 4479, 5621, 10792, 469, 288, 13491, 13076, 1153, 312, 337, 273, 261, 8725, 1153, 13, 74, 31, 759, 13491, 309, 261, 81, 337, 18, 263, 588, 3032, 1435, 422, 312, 2147, 18, 588, 3032, 10756, 288, 759, 18701, 1400, 18, 4479, 5621, 759, 13491, 289, 10792, 289, 7734, 289, 27573, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 2770, 2988, 14879, 3899, 2988, 12, 6494, 16512, 16, 11542, 2147, 312, 2147, 13, 288, 13491, 775, 288, 7734, 12623, 1365, 273, 312, 2147, 18, 588, 3899, 5132, 12, 2011, 16, 11542, 2147, 18, 734, 67, 17357, 67, 9185, 1769, 7734, 987, 32, 3899, 34, 777, 14885, 273, 1365, 18, 588, 1676, 5609, 12074, 5621, 27573, 12623, 20703, 273, 312, 2147, 18, 588, 3899, 5132, 12, 2011, 16, 11542, 2147, 18, 734, 67, 17357, 67, 20060, 2664, 1769, 7734, 987, 32, 3899, 34, 20703, 14885, 273, 20703, 18, 588, 1676, 5609, 12074, 5621, 27573, 777, 14885, 18, 4479, 12, 28665, 1769, 7734, 364, 261, 3899, 284, 294, 20703, 14885, 13, 288, 4766, 3639, 777, 14885, 18, 4479, 2 ]
for (int column = 0; column < columnCount || column == 0; column++) { String text = ""; Image image = null; treeColorAndFont.setFontsAndColors(treeItem, element,column);
if(columnCount == 0){
protected void doUpdateItem(final Item item, Object element) { if (!(item instanceof TreeItem)) return; TreeItem treeItem = (TreeItem)item; if (treeItem.isDisposed()) { unmapElement(element); return; } colorAndFontCollector.setFontsAndColors(element); IBaseLabelProvider prov = getLabelProvider(); ITableLabelProvider tprov = null; if (prov instanceof ITableLabelProvider) { tprov = (ITableLabelProvider) prov; } int columnCount = tree.getColumnCount(); for (int column = 0; column < columnCount || column == 0; column++) { // Similar code in TableViewer.doUpdateItem() String text = "";//$NON-NLS-1$ Image image = null; treeColorAndFont.setFontsAndColors(treeItem, element,column); if (tprov == null) { if (column == 0) { ViewerLabel updateLabel = new ViewerLabel(treeItem .getText(), treeItem.getImage()); buildLabel(updateLabel,element); // As it is possible for user code to run the event //loop check here. if (treeItem.isDisposed()) { unmapElement(element); return; } text = updateLabel.getText(); image = updateLabel.getImage(); } } else { text = tprov.getColumnText(element, column); image = tprov.getColumnImage(element, column); } //Avoid setting text to null if (text == null) text = ""; //$NON-NLS-1$ treeItem.setText(column, text); if (treeItem.getImage(column) != image) { treeItem.setImage(column, image); } } colorAndFontCollector.applyFontsAndColors(treeItem); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c6c348eed3550305a7d7b692977d454e979b6203/TreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 1891, 1180, 12, 6385, 4342, 761, 16, 1033, 930, 13, 288, 1082, 309, 16051, 12, 1726, 1276, 4902, 1180, 3719, 327, 31, 3639, 4902, 1180, 2151, 1180, 273, 261, 2471, 1180, 13, 1726, 31, 3639, 309, 261, 3413, 1180, 18, 291, 1669, 7423, 10756, 288, 5411, 640, 1458, 1046, 12, 2956, 1769, 5411, 327, 31, 3639, 289, 13491, 2036, 1876, 5711, 7134, 18, 542, 5711, 87, 1876, 12570, 12, 2956, 1769, 7734, 467, 2171, 2224, 2249, 17197, 273, 11237, 2249, 5621, 202, 202, 1285, 429, 2224, 2249, 268, 25529, 273, 446, 31, 202, 202, 430, 261, 25529, 1276, 467, 1388, 2224, 2249, 13, 288, 1082, 202, 88, 25529, 273, 261, 1285, 429, 2224, 2249, 13, 17197, 31, 202, 202, 97, 540, 509, 22429, 273, 2151, 18, 588, 1494, 1380, 5621, 202, 202, 1884, 261, 474, 1057, 273, 374, 31, 1057, 411, 22429, 747, 1057, 422, 374, 31, 1057, 27245, 288, 1082, 202, 759, 22967, 981, 316, 3555, 18415, 18, 2896, 1891, 1180, 1435, 1082, 202, 780, 977, 273, 1408, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2040, 1316, 273, 446, 31, 1082, 202, 3413, 2957, 1876, 5711, 18, 542, 5711, 87, 1876, 12570, 12, 3413, 1180, 16, 930, 16, 2827, 1769, 1082, 202, 430, 261, 88, 25529, 422, 446, 13, 288, 9506, 202, 430, 261, 2827, 422, 374, 13, 288, 6862, 202, 18415, 2224, 1089, 2224, 273, 394, 4441, 264, 2224, 12, 3413, 1180, 6862, 1082, 202, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 1891, 1180, 12, 6385, 4342, 761, 16, 1033, 930, 13, 288, 1082, 309, 16051, 12, 1726, 1276, 4902, 1180, 3719, 327, 31, 3639, 4902, 1180, 2151, 1180, 273, 261, 2471, 1180, 13, 1726, 31, 3639, 309, 261, 3413, 1180, 18, 291, 1669, 7423, 10756, 288, 5411, 640, 1458, 1046, 12, 2956, 1769, 5411, 327, 31, 3639, 289, 13491, 2036, 1876, 5711, 7134, 18, 542, 5711, 87, 1876, 12570, 12, 2956, 1769, 7734, 467, 2171, 2224, 2249, 17197, 273, 11237, 2249, 5621, 202, 202, 1285, 429, 2224, 2249, 268, 25529, 273, 446, 31, 202, 202, 430, 261, 25529, 1276, 467, 1388, 2224, 2249, 13, 288, 1082, 202, 88, 25529, 273, 261, 1285, 429, 2224, 2249, 13, 2 ]
return null;
return Collections.enumeration(attributes.keySet());
public Enumeration getAttributeNames() { return null; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/9ed66c241def82eb6ebbd33722ef191f3c962fc9/ProcessorTest.java/clean/test/src/org/orbeon/oxf/test/ProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13864, 4061, 1557, 1435, 288, 3639, 327, 5737, 18, 7924, 7067, 12, 4350, 18, 856, 694, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13864, 4061, 1557, 1435, 288, 3639, 327, 5737, 18, 7924, 7067, 12, 4350, 18, 856, 694, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!astTryStatement.hasCatch()) { return super.visit(astTryStatement, o);
if (!tryStmt.hasCatch()) { return super.visit(tryStmt, o);
public Object visit(ASTTryStatement astTryStatement, Object o) { // Requires a catch statement if (!astTryStatement.hasCatch()) { return super.visit(astTryStatement, o); } /* Checking all catch statements */ for (int i = 0; i < astTryStatement.getCatchBlocks().size(); i++) { evaluateCatch((ASTCatch) astTryStatement.getCatchBlocks().get(i), (RuleContext) o); } return super.visit(astTryStatement, o); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/6e0f03a8f30340ec15d7924a14e7da08a1976879/AvoidCatchingThrowable.java/buggy/pmd/src/net/sourceforge/pmd/rules/strictexception/AvoidCatchingThrowable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 12, 9053, 7833, 3406, 3364, 7833, 3406, 16, 1033, 320, 13, 288, 3639, 368, 16412, 279, 1044, 3021, 3639, 309, 16051, 689, 7833, 3406, 18, 5332, 14842, 10756, 288, 5411, 327, 2240, 18, 11658, 12, 689, 7833, 3406, 16, 320, 1769, 3639, 289, 3639, 1748, 24471, 777, 1044, 6317, 1195, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3364, 7833, 3406, 18, 588, 14842, 6450, 7675, 1467, 5621, 277, 27245, 288, 5411, 5956, 14842, 12443, 9053, 14842, 13, 3364, 7833, 3406, 18, 588, 14842, 6450, 7675, 588, 12, 77, 3631, 261, 2175, 1042, 13, 320, 1769, 3639, 289, 3639, 327, 2240, 18, 11658, 12, 689, 7833, 3406, 16, 320, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 12, 9053, 7833, 3406, 3364, 7833, 3406, 16, 1033, 320, 13, 288, 3639, 368, 16412, 279, 1044, 3021, 3639, 309, 16051, 689, 7833, 3406, 18, 5332, 14842, 10756, 288, 5411, 327, 2240, 18, 11658, 12, 689, 7833, 3406, 16, 320, 1769, 3639, 289, 3639, 1748, 24471, 777, 1044, 6317, 1195, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3364, 7833, 3406, 18, 588, 14842, 6450, 7675, 1467, 5621, 277, 27245, 288, 5411, 5956, 14842, 12443, 9053, 14842, 13, 3364, 7833, 3406, 18, 588, 14842, 6450, 7675, 588, 12, 77, 3631, 261, 2175, 1042, 13, 320, 1769, 3639, 289, 3639, 327, 2240, 18, 11658, 12, 689, 7833, 3406, 16, 320, 1769, 565, 289, 2, -100 ]
data.ruleSet.findIncrementalMatch(text, start, limit, cursor,
data.ruleSet.findIncrementalMatch(text, index.contextStart, limit, cursor,
protected void handleTransliterate(Replaceable text, Position index, boolean incremental) { /* We keep start and limit fixed the entire time, * relative to the text -- limit may move numerically if text is * inserted or removed. The cursor moves from start to limit, with * replacements happening under it. * * Example: rules 1. ab>x|y * 2. yc>z * * |eabcd start - no match, advance cursor * e|abcd match rule 1 - change text & adjust cursor * ex|ycd match rule 2 - change text & adjust cursor * exz|d no match, advance cursor * exzd| done */ int start = index.contextStart; int limit = index.contextLimit; int cursor = index.start; if (DEBUG) { System.out.print("\"" + Utility.escape(rsubstring(text, start, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, limit)) + "\""); } /* A rule like * a>b|a * creates an infinite loop. To prevent that, we put an arbitrary * limit on the number of iterations that we take, one that is * high enough that any reasonable rules are ok, but low enough to * prevent a server from hanging. The limit is 16 times the * number of characters n, unless n is so large that 16n exceeds a * uint32_t. */ int loopCount = 0; int loopLimit = limit - cursor; if (loopLimit >= 0x08000000) { loopLimit = 0x7FFFFFFF; } else { loopLimit <<= 4; } boolean partial[] = new boolean[1]; partial[0] = false; while (cursor < limit && loopCount <= loopLimit) { TransliterationRule r = incremental ? data.ruleSet.findIncrementalMatch(text, start, limit, cursor, data, partial, getFilter()) : data.ruleSet.findMatch(text, start, limit, cursor, data, getFilter()); /* If we match a rule then apply it by replacing the key * with the rule output and repositioning the cursor * appropriately. If we get a partial match, then we * can't do anything without more text; return with the * cursor at the current position. If we get null, then * there is no match at this position, and we can advance * the cursor. */ if (r == null) { if (partial[0]) { break; } else { ++cursor; } } else { // Delegate replacement to TransliterationRule object limit += r.replace(text, cursor, data); // text.replace(cursor, cursor + r.getKeyLength(), r.getOutput()); // limit += r.getOutput().length() - r.getKeyLength(); cursor += r.getCursorPos(); ++loopCount; } } if (DEBUG) { System.out.println(" -> \"" + Utility.escape(rsubstring(text, start, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, limit)) + "\""); } index.contextLimit = limit; index.start = cursor; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/0067d14bf080468f732888d0970cb818e7c7fdf3/RuleBasedTransliterator.java/buggy/icu4j/src/com/ibm/text/RuleBasedTransliterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 3873, 18793, 12, 5729, 429, 977, 16, 4766, 4202, 11010, 770, 16, 1250, 20649, 13, 288, 3639, 1748, 1660, 3455, 787, 471, 1800, 5499, 326, 7278, 813, 16, 540, 380, 3632, 358, 326, 977, 1493, 1800, 2026, 3635, 6389, 1230, 309, 977, 353, 540, 380, 9564, 578, 3723, 18, 225, 1021, 3347, 13934, 628, 787, 358, 1800, 16, 598, 540, 380, 11413, 5865, 310, 3613, 518, 18, 540, 380, 540, 380, 5090, 30, 2931, 404, 18, 1223, 34, 92, 96, 93, 540, 380, 7734, 576, 18, 27495, 34, 94, 540, 380, 540, 380, 571, 73, 378, 4315, 282, 787, 300, 1158, 845, 16, 8312, 3347, 540, 380, 425, 96, 378, 4315, 282, 845, 1720, 404, 300, 2549, 977, 473, 5765, 3347, 540, 380, 431, 96, 93, 4315, 282, 845, 1720, 576, 300, 2549, 977, 473, 5765, 3347, 540, 380, 431, 94, 96, 72, 565, 1158, 845, 16, 8312, 3347, 540, 380, 431, 94, 72, 96, 565, 2731, 540, 1195, 3639, 509, 787, 273, 770, 18, 2472, 1685, 31, 3639, 509, 1800, 273, 770, 18, 2472, 3039, 31, 3639, 509, 3347, 273, 770, 18, 1937, 31, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 18, 1188, 2932, 8530, 397, 7734, 13134, 18, 6939, 12, 86, 28023, 12, 955, 16, 787, 16, 3347, 3719, 397, 8030, 397, 7734, 13134, 18, 6939, 12, 86, 28023, 12, 955, 16, 3347, 16, 1800, 3719, 397, 11143, 1769, 3639, 289, 3639, 1748, 432, 1720, 3007, 540, 380, 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, 1640, 3873, 18793, 12, 5729, 429, 977, 16, 4766, 4202, 11010, 770, 16, 1250, 20649, 13, 288, 3639, 1748, 1660, 3455, 787, 471, 1800, 5499, 326, 7278, 813, 16, 540, 380, 3632, 358, 326, 977, 1493, 1800, 2026, 3635, 6389, 1230, 309, 977, 353, 540, 380, 9564, 578, 3723, 18, 225, 1021, 3347, 13934, 628, 787, 358, 1800, 16, 598, 540, 380, 11413, 5865, 310, 3613, 518, 18, 540, 380, 540, 380, 5090, 30, 2931, 404, 18, 1223, 34, 92, 96, 93, 540, 380, 7734, 576, 18, 27495, 34, 94, 540, 380, 540, 380, 571, 73, 378, 4315, 282, 787, 300, 1158, 845, 16, 8312, 3347, 540, 380, 425, 96, 378, 4315, 282, 845, 1720, 404, 2 ]
null, "setAlt");
null, "setAltExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[30]; try { result[0] = new PropertyDescriptor("accesskey", ELTextareaTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELTextareaTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELTextareaTag.class, null, "setAltKey"); result[3] = new PropertyDescriptor("cols", ELTextareaTag.class, null, "setCols"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("disabled", ELTextareaTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELTextareaTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("name", ELTextareaTag.class, null, "setName"); result[7] = new PropertyDescriptor("onblur", ELTextareaTag.class, null, "setOnblur"); result[8] = new PropertyDescriptor("onchange", ELTextareaTag.class, null, "setOnchange"); result[9] = new PropertyDescriptor("onclick", ELTextareaTag.class, null, "setOnclick"); result[10] = new PropertyDescriptor("ondblclick", ELTextareaTag.class, null, "setOndblclick"); result[11] = new PropertyDescriptor("onfocus", ELTextareaTag.class, null, "setOnfocus"); result[12] = new PropertyDescriptor("onkeydown", ELTextareaTag.class, null, "setOnkeydown"); result[13] = new PropertyDescriptor("onkeypress", ELTextareaTag.class, null, "setOnkeypress"); result[14] = new PropertyDescriptor("onkeyup", ELTextareaTag.class, null, "setOnkeyup"); result[15] = new PropertyDescriptor("onmousedown", ELTextareaTag.class, null, "setOnmousedown"); result[16] = new PropertyDescriptor("onmousemove", ELTextareaTag.class, null, "setOnmousemove"); result[17] = new PropertyDescriptor("onmouseout", ELTextareaTag.class, null, "setOnmouseout"); result[18] = new PropertyDescriptor("onmouseover", ELTextareaTag.class, null, "setOnmouseover"); result[19] = new PropertyDescriptor("onmouseup", ELTextareaTag.class, null, "setOnmouseup"); result[20] = new PropertyDescriptor("property", ELTextareaTag.class, null, "setProperty"); result[21] = new PropertyDescriptor("readonly", ELTextareaTag.class, null, "setReadonlyExpr"); result[22] = new PropertyDescriptor("rows", ELTextareaTag.class, null, "setRows"); result[23] = new PropertyDescriptor("style", ELTextareaTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELTextareaTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELTextareaTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("tabindex", ELTextareaTag.class, null, "setTabindex"); result[27] = new PropertyDescriptor("title", ELTextareaTag.class, null, "setTitle"); result[28] = new PropertyDescriptor("titleKey", ELTextareaTag.class, null, "setTitleKey"); result[29] = new PropertyDescriptor("value", ELTextareaTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 4742, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 6842, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8011, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 24, 65, 273, 394, 26761, 2932, 9278, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8853, 4742, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 25, 65, 273, 394, 26761, 2932, 19626, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 15034, 4742, 8863, 5411, 563, 63, 26, 65, 273, 394, 26761, 2932, 529, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 461, 8863, 5411, 563, 63, 27, 65, 273, 394, 26761, 2932, 265, 27065, 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, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 4742, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 6842, 3113, 2 ]
SimpleToadletServer server = new SimpleToadletServer(port, bind_ip); node.setToadletContainer(server); FproxyToadlet fproxy = new FproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); node.setFproxy(fproxy); server.register(fproxy, "/", false); PproxyToadlet pproxy = new PproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), node.pluginManager); server.register(pproxy, "/plugins/", true); WelcomeToadlet welcometoadlet = new WelcomeToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(welcometoadlet, "/welcome/", true); StaticToadlet statictoadlet = new StaticToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(statictoadlet, "/static/", true); fproxyConfig.finishedInitialization(); System.out.println("Starting fproxy on port "+(port)); Logger.normal(node,"Starting fproxy on "+bind_ip+":"+port);
System.out.println("Starting fproxy on port "+(port)); Logger.normal(node,"Starting fproxy on "+bind_ip+":"+port); try { SimpleToadletServer server = new SimpleToadletServer(port, bind_ip); node.setToadletContainer(server); FproxyToadlet fproxy = new FproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); node.setFproxy(fproxy); server.register(fproxy, "/", false); PproxyToadlet pproxy = new PproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), node.pluginManager); server.register(pproxy, "/plugins/", true); WelcomeToadlet welcometoadlet = new WelcomeToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(welcometoadlet, "/welcome/", true); StaticToadlet statictoadlet = new StaticToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(statictoadlet, "/static/", true); } catch (IOException ioe) { Logger.error(node,"Failed to start fproxy on "+bind_ip+":"+port); } fproxyConfig.finishedInitialization();
public static void maybeCreateFproxyEtc(Node node, Config config) throws IOException { SubConfig fproxyConfig = new SubConfig("fproxy", config); fproxyConfig.register("enabled", true, 1, true, "Enable fproxy?", "Whether to enable fproxy and related HTTP services", new FproxyEnabledCallback(node)); boolean fproxyEnabled = fproxyConfig.getBoolean("enabled"); if(!fproxyEnabled) { fproxyConfig.finishedInitialization(); Logger.normal(node, "Not starting Fproxy as it's disabled"); return; } fproxyConfig.register("port", DEFAULT_FPROXY_PORT, 2, true, "Fproxy port number", "Fproxy port number", new FproxyPortCallback(node)); fproxyConfig.register("bindto", "127.0.0.1", 2, true, "IP address to bind to", "IP address to bind to", new FproxyBindtoCallback(node)); int port = fproxyConfig.getInt("port"); String bind_ip = fproxyConfig.getString("bindto"); SimpleToadletServer server = new SimpleToadletServer(port, bind_ip); node.setToadletContainer(server); FproxyToadlet fproxy = new FproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); node.setFproxy(fproxy); server.register(fproxy, "/", false); PproxyToadlet pproxy = new PproxyToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), node.pluginManager); server.register(pproxy, "/plugins/", true); WelcomeToadlet welcometoadlet = new WelcomeToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(welcometoadlet, "/welcome/", true); StaticToadlet statictoadlet = new StaticToadlet(node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(statictoadlet, "/static/", true); fproxyConfig.finishedInitialization(); System.out.println("Starting fproxy on port "+(port)); Logger.normal(node,"Starting fproxy on "+bind_ip+":"+port); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/7d3dced890678e00d512f446f68f2eb71428df32/FproxyToadlet.java/clean/src/freenet/clients/http/FproxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 6944, 1684, 42, 5656, 41, 5111, 12, 907, 756, 16, 1903, 642, 13, 1216, 1860, 288, 9506, 202, 1676, 809, 284, 5656, 809, 273, 394, 2592, 809, 2932, 74, 5656, 3113, 642, 1769, 9506, 202, 74, 5656, 809, 18, 4861, 2932, 5745, 3113, 638, 16, 404, 16, 638, 16, 315, 8317, 284, 5656, 35, 3113, 315, 18247, 358, 4237, 284, 5656, 471, 3746, 2239, 4028, 3113, 9506, 202, 2704, 478, 5656, 1526, 2428, 12, 2159, 10019, 9506, 202, 6494, 284, 5656, 1526, 273, 284, 5656, 809, 18, 588, 5507, 2932, 5745, 8863, 9506, 202, 430, 12, 5, 74, 5656, 1526, 13, 288, 1082, 202, 74, 5656, 809, 18, 13527, 17701, 5621, 1082, 202, 3328, 18, 6130, 12, 2159, 16, 315, 1248, 5023, 478, 5656, 487, 518, 1807, 5673, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 74, 5656, 809, 18, 4861, 2932, 655, 3113, 3331, 67, 42, 16085, 67, 6354, 16, 576, 16, 638, 16, 315, 42, 5656, 1756, 1300, 3113, 315, 42, 5656, 1756, 1300, 3113, 9506, 202, 2704, 478, 5656, 2617, 2428, 12, 2159, 10019, 202, 202, 74, 5656, 809, 18, 4861, 2932, 4376, 869, 3113, 315, 14260, 18, 20, 18, 20, 18, 21, 3113, 576, 16, 638, 16, 315, 2579, 1758, 358, 1993, 358, 3113, 315, 2579, 1758, 358, 1993, 358, 3113, 6862, 1377, 394, 478, 5656, 3357, 869, 2428, 12, 2159, 10019, 9506, 202, 474, 1756, 273, 284, 5656, 809, 18, 588, 1702, 2932, 655, 8863, 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, 760, 918, 6944, 1684, 42, 5656, 41, 5111, 12, 907, 756, 16, 1903, 642, 13, 1216, 1860, 288, 9506, 202, 1676, 809, 284, 5656, 809, 273, 394, 2592, 809, 2932, 74, 5656, 3113, 642, 1769, 9506, 202, 74, 5656, 809, 18, 4861, 2932, 5745, 3113, 638, 16, 404, 16, 638, 16, 315, 8317, 284, 5656, 35, 3113, 315, 18247, 358, 4237, 284, 5656, 471, 3746, 2239, 4028, 3113, 9506, 202, 2704, 478, 5656, 1526, 2428, 12, 2159, 10019, 9506, 202, 6494, 284, 5656, 1526, 273, 284, 5656, 809, 18, 588, 5507, 2932, 5745, 8863, 9506, 202, 430, 12, 5, 74, 5656, 1526, 13, 288, 1082, 202, 74, 5656, 809, 18, 13527, 17701, 5621, 1082, 202, 3328, 2 ]
if(m_upProcessingThread != null) { Thread t=m_upProcessingThread; m_upProcessingThread=null;
if(upProcessingThread != null) { Thread t=upProcessingThread; upProcessingThread=null;
synchronized void suspend() { m_upLatch.lock(); if(m_upProcessingThread != null) { Thread t=m_upProcessingThread; m_upProcessingThread=null; t.interrupt(); } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/cd6e0cd18d7f2bfc6a260e50a8abe009ba9aa2ee/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3852, 918, 20413, 1435, 288, 5411, 312, 67, 416, 23463, 18, 739, 5621, 5411, 309, 12, 81, 67, 416, 7798, 3830, 480, 446, 13, 288, 7734, 4884, 268, 33, 81, 67, 416, 7798, 3830, 31, 7734, 312, 67, 416, 7798, 3830, 33, 2011, 31, 7734, 268, 18, 31847, 5621, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3852, 918, 20413, 1435, 288, 5411, 312, 67, 416, 23463, 18, 739, 5621, 5411, 309, 12, 81, 67, 416, 7798, 3830, 480, 446, 13, 288, 7734, 4884, 268, 33, 81, 67, 416, 7798, 3830, 31, 7734, 312, 67, 416, 7798, 3830, 33, 2011, 31, 7734, 268, 18, 31847, 5621, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
JspServletWrapper(ServletConfig config, Options options, String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) throws JasperException {
JspServletWrapper(ServletConfig config, Options options, String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) throws JasperException {
JspServletWrapper(ServletConfig config, Options options, String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) throws JasperException { this.isTagFile = false; this.config = config; this.options = options; this.jspUri = jspUri; ctxt = new JspCompilationContext(jspUri, isErrorPage, options, config.getServletContext(), this, rctxt); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ea5857c4cef1cb29975e7fa24489265ce454d3f3/JspServletWrapper.java/clean/displaytag/src/test/java/org/apache/jasper/servlet/JspServletWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19300, 4745, 3611, 12, 4745, 809, 642, 16, 5087, 702, 16, 514, 22535, 3006, 16, 8227, 1250, 14574, 1964, 16, 19300, 5576, 1042, 436, 20364, 13, 5411, 1216, 804, 345, 457, 503, 288, 565, 333, 18, 291, 1805, 812, 273, 629, 31, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 2116, 273, 702, 31, 3639, 333, 18, 24926, 3006, 273, 22535, 3006, 31, 3639, 14286, 273, 394, 19300, 19184, 1042, 12, 24926, 3006, 16, 14574, 1964, 16, 702, 16, 5397, 642, 18, 588, 4745, 1042, 9334, 5397, 333, 16, 436, 20364, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19300, 4745, 3611, 12, 4745, 809, 642, 16, 5087, 702, 16, 514, 22535, 3006, 16, 8227, 1250, 14574, 1964, 16, 19300, 5576, 1042, 436, 20364, 13, 5411, 1216, 804, 345, 457, 503, 288, 565, 333, 18, 291, 1805, 812, 273, 629, 31, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 2116, 273, 702, 31, 3639, 333, 18, 24926, 3006, 273, 22535, 3006, 31, 3639, 14286, 273, 394, 19300, 19184, 1042, 12, 24926, 3006, 16, 14574, 1964, 16, 702, 16, 5397, 642, 18, 588, 4745, 1042, 9334, 5397, 333, 16, 436, 20364, 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 ]
public int length() { return xs.length; }
public int length() { return value.length; }
public int length() { return xs.length; }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/clean/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 769, 1435, 288, 327, 9280, 18, 2469, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 769, 1435, 288, 327, 9280, 18, 2469, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
headerGrid.setStyleName("Message.HeaderGrid"); headerGrid.setWidth(new Extent(100, Extent.PERCENT));
headerGrid.setInsets(new Insets(0, 2));
public ComposeWindow(Message replyMessage) { super(Messages.getString("ComposeWindow.Title"), new Extent(450), new Extent(450)); setStyleName("Default"); SplitPane mainPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new Extent(32)); add(mainPane); Row controlPane = new Row(); controlPane.setStyleName("ControlPane"); mainPane.add(controlPane); Button sendButton = new Button(Messages.getString("ComposeWindow.SendButton")); sendButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (sendMessage()) { ((EmailApp) getApplicationInstance()).getWindows()[0].getContent().remove(ComposeWindow.this); } } }); controlPane.add(sendButton); Button cancelButton = new Button(Messages.getString("ComposeWindow.CancelButton")); controlPane.add(cancelButton); Column layoutColumn = new Column(); layoutColumn.setCellSpacing(new Extent(10)); layoutColumn.setInsets(new Insets(10)); mainPane.add(layoutColumn); Grid headerGrid = new Grid(); headerGrid.setStyleName("Message.HeaderGrid"); headerGrid.setWidth(new Extent(100, Extent.PERCENT)); layoutColumn.add(headerGrid); Label label; label = new Label(Messages.getString("Message.PromptLabel.To")); headerGrid.add(label); toField = new TextField(); toField.setStyleName("Default"); toField.setWidth(TEXT_100_PERCENT); headerGrid.add(toField); label = new Label(Messages.getString("Message.PromptLabel.Cc")); headerGrid.add(label); ccField = new TextField(); ccField.setStyleName("Default"); ccField.setWidth(TEXT_100_PERCENT); headerGrid.add(ccField); label = new Label(Messages.getString("Message.PromptLabel.Bcc")); headerGrid.add(label); bccField = new TextField(); bccField.setStyleName("Default"); bccField.setWidth(TEXT_100_PERCENT); headerGrid.add(bccField); label = new Label(Messages.getString("Message.PromptLabel.Subject")); headerGrid.add(label); subjectField = new TextField(); subjectField.setStyleName("Default"); subjectField.setWidth(TEXT_100_PERCENT); headerGrid.add(subjectField); messageField = new TextArea(); messageField.setStyleName("Default"); messageField.setWidth(TEXT_100_PERCENT); messageField.setHeight(new Extent(15, Extent.EM)); layoutColumn.add(messageField); if (replyMessage != null) { try { toField.setText(replyMessage.getFrom()[0].toString()); subjectField.setText(replyMessage.getSubject()); } catch (MessagingException ex) { EmailApp.getApp().processFatalException(ex); } } }
45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/34bf95f5e7f8277adc4ea87dfc3df9fd55300f89/ComposeWindow.java/buggy/src/exampleapp/email/src/java/echo2example/email/ComposeWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1286, 4150, 3829, 12, 1079, 4332, 1079, 13, 288, 3639, 2240, 12, 5058, 18, 588, 780, 2932, 22375, 3829, 18, 4247, 6, 3631, 394, 6419, 319, 12, 24, 3361, 3631, 394, 6419, 319, 12, 24, 3361, 10019, 3639, 18995, 461, 2932, 1868, 8863, 7734, 5385, 8485, 2774, 8485, 273, 394, 5385, 8485, 12, 5521, 8485, 18, 916, 45, 2222, 2689, 67, 21654, 10109, 16, 394, 6419, 319, 12, 1578, 10019, 3639, 527, 12, 5254, 8485, 1769, 7734, 6556, 3325, 8485, 273, 394, 6556, 5621, 3639, 3325, 8485, 18, 542, 2885, 461, 2932, 3367, 8485, 8863, 3639, 2774, 8485, 18, 1289, 12, 7098, 8485, 1769, 7734, 12569, 1366, 3616, 273, 394, 12569, 12, 5058, 18, 588, 780, 2932, 22375, 3829, 18, 3826, 3616, 7923, 1769, 3639, 1366, 3616, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 309, 261, 4661, 1079, 10756, 288, 10792, 14015, 4134, 3371, 13, 9615, 1442, 1435, 2934, 588, 10399, 1435, 63, 20, 8009, 588, 1350, 7675, 4479, 12, 22375, 3829, 18, 2211, 1769, 7734, 289, 5411, 289, 3639, 15549, 3639, 3325, 8485, 18, 1289, 12, 4661, 3616, 1769, 3639, 12569, 3755, 3616, 273, 394, 12569, 12, 5058, 18, 588, 780, 2932, 22375, 3829, 18, 6691, 3616, 7923, 1769, 3639, 3325, 8485, 18, 1289, 12, 10996, 3616, 1769, 3639, 4753, 3511, 1494, 273, 394, 4753, 5621, 3639, 3511, 1494, 18, 542, 4020, 18006, 12, 2704, 6419, 319, 12, 2163, 10019, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1286, 4150, 3829, 12, 1079, 4332, 1079, 13, 288, 3639, 2240, 12, 5058, 18, 588, 780, 2932, 22375, 3829, 18, 4247, 6, 3631, 394, 6419, 319, 12, 24, 3361, 3631, 394, 6419, 319, 12, 24, 3361, 10019, 3639, 18995, 461, 2932, 1868, 8863, 7734, 5385, 8485, 2774, 8485, 273, 394, 5385, 8485, 12, 5521, 8485, 18, 916, 45, 2222, 2689, 67, 21654, 10109, 16, 394, 6419, 319, 12, 1578, 10019, 3639, 527, 12, 5254, 8485, 1769, 7734, 6556, 3325, 8485, 273, 394, 6556, 5621, 3639, 3325, 8485, 18, 542, 2885, 461, 2932, 3367, 8485, 8863, 3639, 2774, 8485, 18, 1289, 12, 7098, 8485, 1769, 7734, 12569, 1366, 3616, 273, 394, 12569, 12, 5058, 18, 588, 780, 2932, 2 ]
IndexedFaceSet ifs = (IndexedFaceSet) i;
IndexedFaceSet ifs = (IndexedFaceSet) SceneGraphUtility.copy(i);
public void visit(PointSet oldi) { // have to copy the geometry in case it is reused! PointSet i = (PointSet) SceneGraphUtility.copy(oldi); //System.err.println("point set is "+i); if (i.getVertexAttributes(Attribute.COORDINATES) == null) return; double[][] v = i.getVertexAttributes(Attribute.COORDINATES).toDoubleArrayArray(null); double[] currentMatrix = thePath.getMatrix(null); double[][] nv = Rn.matrixTimesVector(null, currentMatrix, v); i.setVertexAttributes(Attribute.COORDINATES, StorageModel.DOUBLE_ARRAY.array(nv[0].length).createWritableDataList(nv)); double[] cmp = null; if (i instanceof IndexedFaceSet) { IndexedFaceSet ifs = (IndexedFaceSet) i; double[] mat = Rn.transpose(null, currentMatrix); mat[12] = mat[13] = mat[14] = 0.0; Rn.inverse(mat, mat);// if (Rn.determinant(currentMatrix) < 0.0) cmp = Rn.times(null, flipit, mat);// else cmp = mat; if (ifs.getFaceAttributes(Attribute.NORMALS) != null) { //System.out.println("Setting face normals"); v = ifs.getFaceAttributes(Attribute.NORMALS).toDoubleArrayArray(null); nv = Rn.matrixTimesVector(null, cmp, v); ifs.setFaceAttributes(Attribute.NORMALS, StorageModel.DOUBLE_ARRAY.array(nv[0].length).createWritableDataList(nv)); } else calculateAndSetFaceNormals(ifs); if (ifs.getVertexAttributes(Attribute.NORMALS) != null) { //System.out.println("Setting vertex normals"); v = ifs.getVertexAttributes(Attribute.NORMALS).toDoubleArrayArray(null); nv = Rn.matrixTimesVector(null, cmp, v); ifs.setVertexAttributes(Attribute.NORMALS, StorageModel.DOUBLE_ARRAY.array(nv[0].length).createWritableDataList(nv)); } else calculateAndSetVertexNormals(ifs); if (Rn.determinant(currentMatrix) < 0.0) { //System.out.println("Flipping normals"); v = ifs.getFaceAttributes(Attribute.NORMALS).toDoubleArrayArray(null); nv = Rn.matrixTimesVector(null, flipit, v); ifs.setFaceAttributes(Attribute.NORMALS, StorageModel.DOUBLE_ARRAY.array(nv[0].length).createWritableDataList(nv)); v = ifs.getVertexAttributes(Attribute.NORMALS).toDoubleArrayArray(null); nv = Rn.matrixTimesVector(null, flipit, v); ifs.setVertexAttributes(Attribute.NORMALS, StorageModel.DOUBLE_ARRAY.array(nv[0].length).createWritableDataList(nv)); } } //System.out.println("det is "+Rn.determinant(currentMatrix));// if (Rn.determinant(currentMatrix) < 0.0) { SceneGraphComponent foo = new SceneGraphComponent(); foo.setGeometry(i); if (thePath.getLastComponent().getAppearance() != null) { foo.setAppearance(thePath.getLastComponent().getAppearance()); } geoms.add(foo); // } }
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/70c5ea1deadc6e2e28b74db6d849e5518f3f29a5/GeometryUtility.java/clean/src-core/de/jreality/geometry/GeometryUtility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3757, 12, 2148, 694, 1592, 77, 13, 288, 2398, 202, 759, 1240, 358, 1610, 326, 5316, 316, 648, 518, 353, 23312, 5, 2398, 202, 2148, 694, 277, 273, 261, 2148, 694, 13, 29347, 4137, 6497, 18, 3530, 12, 1673, 77, 1769, 2398, 202, 759, 3163, 18, 370, 18, 8222, 2932, 1153, 444, 353, 13773, 77, 1769, 2398, 202, 430, 261, 77, 18, 588, 6475, 2498, 12, 1499, 18, 27237, 21329, 1777, 55, 13, 422, 446, 13, 327, 31, 5411, 202, 565, 1645, 63, 6362, 65, 331, 273, 277, 18, 588, 6475, 2498, 12, 1499, 18, 27237, 21329, 1777, 55, 2934, 869, 5265, 1076, 1076, 12, 2011, 1769, 2398, 202, 9056, 8526, 783, 4635, 273, 326, 743, 18, 588, 4635, 12, 2011, 1769, 2398, 202, 9056, 63, 6362, 65, 8779, 273, 534, 82, 18, 5667, 10694, 5018, 12, 2011, 16, 783, 4635, 16, 331, 1769, 2398, 202, 77, 18, 542, 6475, 2498, 12, 1499, 18, 27237, 21329, 1777, 55, 16, 5235, 1488, 18, 17088, 67, 8552, 18, 1126, 12, 16588, 63, 20, 8009, 2469, 2934, 2640, 12061, 24274, 12, 16588, 10019, 7734, 1645, 8526, 9411, 273, 446, 31, 1850, 202, 565, 309, 261, 77, 1276, 22524, 11824, 694, 13, 202, 95, 2398, 202, 565, 22524, 11824, 694, 309, 87, 273, 261, 15034, 11824, 694, 13, 29347, 4137, 6497, 18, 3530, 12, 77, 1769, 10792, 1645, 8526, 4834, 273, 534, 82, 18, 2338, 4150, 12, 2011, 16, 783, 4635, 1769, 6647, 202, 10792, 4834, 63, 2138, 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, 2398, 1071, 918, 3757, 12, 2148, 694, 1592, 77, 13, 288, 2398, 202, 759, 1240, 358, 1610, 326, 5316, 316, 648, 518, 353, 23312, 5, 2398, 202, 2148, 694, 277, 273, 261, 2148, 694, 13, 29347, 4137, 6497, 18, 3530, 12, 1673, 77, 1769, 2398, 202, 759, 3163, 18, 370, 18, 8222, 2932, 1153, 444, 353, 13773, 77, 1769, 2398, 202, 430, 261, 77, 18, 588, 6475, 2498, 12, 1499, 18, 27237, 21329, 1777, 55, 13, 422, 446, 13, 327, 31, 5411, 202, 565, 1645, 63, 6362, 65, 331, 273, 277, 18, 588, 6475, 2498, 12, 1499, 18, 27237, 21329, 1777, 55, 2934, 869, 5265, 1076, 1076, 12, 2011, 1769, 2398, 202, 9056, 8526, 783, 4635, 273, 326, 743, 2 ]
public void fireBeforeActionPerformed(AnAction action, DataContext dataContext) { if (action != null) { myPrevPerformedActionId = myLastPreformedActionId; myLastPreformedActionId = getId(action); IdeaLogger.ourLastActionId = myLastPreformedActionId; } AnActionListener[] listeners = getActionListeners(); for (AnActionListener listener : listeners) { listener.beforeActionPerformed(action, dataContext); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 12179, 4649, 19449, 12, 979, 1803, 1128, 16, 751, 1042, 892, 1042, 15329, 430, 12, 1128, 5, 33, 2011, 15329, 4811, 9958, 13889, 1803, 548, 33, 4811, 3024, 1386, 7312, 1803, 548, 31, 4811, 3024, 1386, 7312, 1803, 548, 33, 26321, 12, 1128, 1769, 45, 323, 69, 3328, 18, 477, 3024, 1803, 548, 33, 4811, 3024, 1386, 7312, 1803, 548, 31, 97, 979, 1803, 2223, 8526, 16072, 33, 588, 1803, 5583, 5621, 1884, 12, 979, 1803, 2223, 12757, 30, 16072, 15329, 12757, 18, 5771, 19449, 12, 1128, 16, 892, 1042, 1769, 9090, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 12179, 4649, 19449, 12, 979, 1803, 1128, 16, 751, 1042, 892, 1042, 15329, 430, 12, 1128, 5, 33, 2011, 15329, 4811, 9958, 13889, 1803, 548, 33, 4811, 3024, 1386, 7312, 1803, 548, 31, 4811, 3024, 1386, 7312, 1803, 548, 33, 26321, 12, 1128, 1769, 45, 323, 69, 3328, 18, 477, 3024, 1803, 548, 33, 4811, 3024, 1386, 7312, 1803, 548, 31, 97, 979, 1803, 2223, 8526, 16072, 33, 588, 1803, 5583, 5621, 1884, 12, 979, 1803, 2223, 12757, 30, 16072, 15329, 12757, 18, 5771, 19449, 12, 1128, 16, 892, 1042, 1769, 9090, 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 ]
public boolean getBool(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return BooleanConverter.convert(getString(sessionID, key)); } catch (FieldConvertError e) { throw new ConfigError(e); }
public boolean getBool(String key) throws ConfigError, FieldConvertError { return getBool(DEFAULT_SESSION_ID, key);
public boolean getBool(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return BooleanConverter.convert(getString(sessionID, key)); } catch (FieldConvertError e) { throw new ConfigError(e); } }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/04578eb97bcdf26592ba9a5fda655a42780d16a4/SessionSettings.java/buggy/src/quickfix/SessionSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2882, 1371, 12, 2157, 734, 13737, 16, 514, 498, 13, 1216, 1903, 668, 16, 2286, 2723, 668, 288, 3639, 775, 288, 5411, 327, 3411, 5072, 18, 6283, 12, 588, 780, 12, 17255, 16, 498, 10019, 3639, 289, 1044, 261, 974, 2723, 668, 425, 13, 288, 5411, 604, 394, 1903, 668, 12, 73, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2882, 1371, 12, 2157, 734, 13737, 16, 514, 498, 13, 1216, 1903, 668, 16, 2286, 2723, 668, 288, 3639, 775, 288, 5411, 327, 3411, 5072, 18, 6283, 12, 588, 780, 12, 17255, 16, 498, 10019, 3639, 289, 1044, 261, 974, 2723, 668, 425, 13, 288, 5411, 604, 394, 1903, 668, 12, 73, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final PsiMethod[] superMethods = PsiSuperMethodUtil.findSuperMethods(method); if(superMethods!=null && superMethods.length!=0) {
final PsiMethod[] superMethods = PsiSuperMethodUtil .findSuperMethods(method); if(superMethods != null && superMethods.length != 0){
public void visitMethod(@NotNull PsiMethod method) { final PsiClass aClass = method.getContainingClass(); if (aClass == null) { return; } if (method.hasModifierProperty(PsiModifier.PRIVATE) || method.hasModifierProperty(PsiModifier.STATIC)) { return; } final PsiMethod[] superMethods = PsiSuperMethodUtil.findSuperMethods(method); if(superMethods!=null && superMethods.length!=0) { return; } PsiClass ancestorClass = aClass.getSuperClass(); final Set<PsiClass> visitedClasses = new HashSet<PsiClass>(); while (ancestorClass != null) { if (!visitedClasses.add(ancestorClass)) { return; } if (methodOverloads(method, ancestorClass)) { registerMethodError(method); return; } ancestorClass = ancestorClass.getSuperClass(); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d2d5a2a31b1804a2f58e4a9df770e410283777f/MethodOverloadsParentMethodInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/visibility/MethodOverloadsParentMethodInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 26964, 5962, 453, 7722, 1305, 707, 13, 288, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 588, 24344, 797, 5621, 5411, 309, 261, 69, 797, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 309, 261, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 20055, 13, 10792, 747, 707, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1305, 8526, 2240, 4712, 273, 453, 7722, 8051, 1305, 1304, 18, 4720, 8051, 4712, 12, 2039, 1769, 5411, 309, 12, 9565, 4712, 5, 33, 2011, 597, 2240, 4712, 18, 2469, 5, 33, 20, 13, 5411, 288, 7734, 327, 31, 5411, 289, 5411, 453, 7722, 797, 9731, 797, 273, 20148, 18, 588, 8051, 797, 5621, 5411, 727, 1000, 32, 52, 7722, 797, 34, 9711, 4818, 273, 394, 6847, 32, 52, 7722, 797, 34, 5621, 5411, 1323, 261, 28798, 797, 480, 446, 13, 288, 7734, 309, 16051, 30129, 4818, 18, 1289, 12, 28798, 797, 3719, 288, 10792, 327, 31, 7734, 289, 7734, 309, 261, 2039, 4851, 17135, 12, 2039, 16, 9731, 797, 3719, 288, 10792, 1744, 1305, 668, 12, 2039, 1769, 10792, 327, 31, 7734, 289, 7734, 9731, 797, 273, 9731, 797, 18, 588, 8051, 797, 5621, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 26964, 5962, 453, 7722, 1305, 707, 13, 288, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 588, 24344, 797, 5621, 5411, 309, 261, 69, 797, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 309, 261, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 20055, 13, 10792, 747, 707, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1305, 8526, 2240, 4712, 273, 453, 7722, 8051, 1305, 1304, 18, 4720, 8051, 4712, 12, 2039, 1769, 5411, 309, 12, 9565, 4712, 5, 33, 2011, 597, 2240, 4712, 18, 2469, 5, 33, 20, 13, 5411, 288, 7734, 327, 31, 5411, 289, 2 ]