rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
VariableByteOutputStream os;
public void remove() { if (elementIds.size() == 0) return; Lock lock = dbElement.getLock(); Map.Entry entry; String elementName; List newList = new ArrayList(), idList; NodeProxy p; VariableByteOutputStream os; VariableByteInputStream is; int len, docId; byte[] data; Value ref; Value val; short sym; short collectionId = doc.getCollection().getId(); long delta, last, gid, address; try { // iterate through elements for (Iterator i = elementIds.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); idList = (ArrayList) entry.getValue(); elementName = (String) entry.getKey(); sym = NativeBroker.getSymbols().getSymbol(elementName); ref = new NativeBroker.ElementValue(collectionId, sym); // try to retrieve old index entry for the element try { lock.acquire(Lock.READ_LOCK); val = dbElement.get(ref); } catch (LockException e) { LOG.error("could not acquire lock for index on " + elementName); return; } finally { lock.release(); } os = new VariableByteOutputStream(); newList.clear(); if (val != null) { // add old entries to the new list data = val.getData(); is = new VariableByteInputStream(data); try { while (is.available() > 0) { docId = is.readInt(); len = is.readInt(); if (docId != doc.getDocId()) { // section belongs to another document: // copy data to new buffer os.writeInt(docId); os.writeInt(len); for (int j = 0; j < len * 4; j++) { is.copyTo(os); } } else { // copy nodes to new list last = 0; for (int j = 0; j < len; j++) { delta = is.readLong(); gid = last + delta; last = gid; address = StorageAddress.read(is); if(!containsNode(idList, gid)) { //address = DOMFile.createPointer(page, tid); newList.add(new NodeProxy(doc, gid, address)); } } } } } catch (EOFException e) { LOG.error("end-of-file while updating index for element " + elementName); } catch (IOException e) { LOG.error("io-error while updating index for element " + elementName); } } // write out the updated list FastQSort.sort(newList, 0, newList.size() - 1); len = newList.size(); os.writeInt(doc.getDocId()); os.writeInt(len); last = 0; for (int j = 0; j < len; j++) { p = (NodeProxy) newList.get(j); delta = p.gid - last; last = p.gid; os.writeLong(delta); StorageAddress.write(p.internalAddress, os); } data = os.toByteArray(); try { lock.acquire(Lock.WRITE_LOCK); if (val == null) dbElement.put(ref, data); else dbElement.update(val.getAddress(), ref, data); } catch (LockException e) { LOG.error("could not acquire lock on elements", e); } finally { lock.release(); } } } catch (ReadOnlyException e) { LOG.warn("database is read only"); } elementIds.clear(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/59ca20fa7f3d75ce3217db0a6b9b6203354d1fa8/NativeElementIndex.java/clean/src/org/exist/storage/NativeElementIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1435, 288, 202, 202, 430, 261, 2956, 2673, 18, 1467, 1435, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 2531, 2176, 273, 1319, 1046, 18, 588, 2531, 5621, 202, 202, 863, 18, 1622, 1241, 31, 202, 202, 780, 14453, 31, 202, 202, 682, 23605, 273, 394, 2407, 9334, 29174, 31, 202, 202, 907, 3886, 293, 31, 202, 202, 3092, 3216, 4632, 1140, 31, 202, 202, 3092, 3216, 4348, 353, 31, 202, 202, 474, 562, 16, 20111, 31, 202, 202, 7229, 8526, 501, 31, 202, 202, 620, 1278, 31, 202, 202, 620, 1244, 31, 202, 202, 6620, 5382, 31, 202, 202, 6620, 1849, 548, 273, 997, 18, 588, 2532, 7675, 26321, 5621, 202, 202, 5748, 3622, 16, 1142, 16, 11399, 16, 1758, 31, 202, 202, 698, 288, 1082, 202, 759, 7401, 3059, 2186, 1082, 202, 1884, 261, 3198, 277, 273, 930, 2673, 18, 4099, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 9506, 202, 4099, 273, 261, 863, 18, 1622, 13, 277, 18, 4285, 5621, 9506, 202, 350, 682, 273, 261, 19558, 13, 1241, 18, 24805, 5621, 9506, 202, 2956, 461, 273, 261, 780, 13, 1241, 18, 588, 653, 5621, 9506, 202, 8117, 273, 16717, 11194, 18, 588, 14821, 7675, 588, 5335, 12, 2956, 461, 1769, 9506, 202, 1734, 273, 394, 16717, 11194, 18, 1046, 620, 12, 5548, 548, 16, 5382, 1769, 9506, 202, 759, 775, 358, 4614, 1592, 770, 1241, 364, 326, 930, 9506, 202, 698, 288, 6862, 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, 1206, 1435, 288, 202, 202, 430, 261, 2956, 2673, 18, 1467, 1435, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 2531, 2176, 273, 1319, 1046, 18, 588, 2531, 5621, 202, 202, 863, 18, 1622, 1241, 31, 202, 202, 780, 14453, 31, 202, 202, 682, 23605, 273, 394, 2407, 9334, 29174, 31, 202, 202, 907, 3886, 293, 31, 202, 202, 3092, 3216, 4632, 1140, 31, 202, 202, 3092, 3216, 4348, 353, 31, 202, 202, 474, 562, 16, 20111, 31, 202, 202, 7229, 8526, 501, 31, 202, 202, 620, 1278, 31, 202, 202, 620, 1244, 31, 202, 202, 6620, 5382, 31, 202, 202, 6620, 1849, 548, 273, 997, 18, 588, 2532, 7675, 26321, 5621, 202, 202, 2 ]
m.setElement(1,84);
m.setElement(1,17);
public SerialMessage createOutPacket() { // Count the number of DLE's to be inserted int nOutBytes = numOutputCards() * (bitsPerCard/8); // Create a Serial message and add initial bytes SerialMessage m = new SerialMessage(); m.setElement(0,nodeAddress); // node address m.setElement(1,84); // Add output bytes return m; }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/9110953c6936e23542c9b3b9de77388299774425/SerialNode.java/buggy/jmri/jmrix/oaktree/SerialNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7366, 1079, 752, 1182, 6667, 1435, 288, 3639, 368, 6974, 326, 1300, 434, 463, 900, 1807, 358, 506, 9564, 3639, 509, 290, 1182, 2160, 273, 818, 1447, 30492, 1435, 380, 261, 6789, 2173, 6415, 19, 28, 1769, 3639, 368, 1788, 279, 7366, 883, 471, 527, 2172, 1731, 3639, 7366, 1079, 312, 273, 394, 7366, 1079, 5621, 3639, 312, 18, 542, 1046, 12, 20, 16, 2159, 1887, 1769, 368, 756, 1758, 3639, 312, 18, 542, 1046, 12, 21, 16, 4033, 1769, 5375, 368, 1436, 876, 1731, 3639, 327, 312, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7366, 1079, 752, 1182, 6667, 1435, 288, 3639, 368, 6974, 326, 1300, 434, 463, 900, 1807, 358, 506, 9564, 3639, 509, 290, 1182, 2160, 273, 818, 1447, 30492, 1435, 380, 261, 6789, 2173, 6415, 19, 28, 1769, 3639, 368, 1788, 279, 7366, 883, 471, 527, 2172, 1731, 3639, 7366, 1079, 312, 273, 394, 7366, 1079, 5621, 3639, 312, 18, 542, 1046, 12, 20, 16, 2159, 1887, 1769, 368, 756, 1758, 3639, 312, 18, 542, 1046, 12, 21, 16, 4033, 1769, 5375, 368, 1436, 876, 1731, 3639, 327, 312, 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 ]
Enumeration keys = propertyNames();
Enumeration<?> keys = propertyNames();
public void list(PrintStream out) { if (out == null) throw new NullPointerException(); StringBuffer buffer = new StringBuffer(80); Enumeration keys = propertyNames(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); Properties def = defaults; while (property == null) { property = (String) def.get(key); def = def.defaults; } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); //$NON-NLS-1$ } else buffer.append(property); out.println(buffer.toString()); buffer.setLength(0); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/41f9233159b665323ba7090a30e06a881c4e4a20/Properties.java/buggy/modules/luni/src/main/java/java/util/Properties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 666, 12, 5108, 1228, 596, 13, 288, 202, 202, 430, 261, 659, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 780, 1892, 1613, 273, 394, 6674, 12, 3672, 1769, 202, 202, 21847, 1311, 273, 26570, 5621, 202, 202, 17523, 261, 2452, 18, 5332, 7417, 3471, 10756, 288, 1082, 202, 780, 498, 273, 261, 780, 13, 1311, 18, 4285, 1046, 5621, 1082, 202, 4106, 18, 6923, 12, 856, 1769, 1082, 202, 4106, 18, 6923, 2668, 2218, 1769, 1082, 202, 780, 1272, 273, 261, 780, 13, 336, 12, 856, 1769, 1082, 202, 2297, 1652, 273, 3467, 31, 1082, 202, 17523, 261, 4468, 422, 446, 13, 288, 9506, 202, 4468, 273, 261, 780, 13, 1652, 18, 588, 12, 856, 1769, 9506, 202, 536, 273, 1652, 18, 7606, 31, 1082, 202, 97, 1082, 202, 430, 261, 4468, 18, 2469, 1435, 405, 8063, 13, 288, 9506, 202, 4106, 18, 6923, 12, 4468, 18, 28023, 12, 20, 16, 18091, 10019, 9506, 202, 4106, 18, 6923, 2932, 7070, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 97, 469, 9506, 202, 4106, 18, 6923, 12, 4468, 1769, 1082, 202, 659, 18, 8222, 12, 4106, 18, 10492, 10663, 1082, 202, 4106, 18, 542, 1782, 12, 20, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 666, 12, 5108, 1228, 596, 13, 288, 202, 202, 430, 261, 659, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 780, 1892, 1613, 273, 394, 6674, 12, 3672, 1769, 202, 202, 21847, 1311, 273, 26570, 5621, 202, 202, 17523, 261, 2452, 18, 5332, 7417, 3471, 10756, 288, 1082, 202, 780, 498, 273, 261, 780, 13, 1311, 18, 4285, 1046, 5621, 1082, 202, 4106, 18, 6923, 12, 856, 1769, 1082, 202, 4106, 18, 6923, 2668, 2218, 1769, 1082, 202, 780, 1272, 273, 261, 780, 13, 336, 12, 856, 1769, 1082, 202, 2297, 1652, 273, 3467, 31, 1082, 202, 17523, 261, 4468, 422, 446, 13, 288, 9506, 202, 4468, 273, 261, 780, 13, 1652, 2 ]
source.append((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, source, inForInit));
sourceAdd((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, inForInit));
private Object bitOrExpr(TokenStream ts, Source source, boolean inForInit) throws IOException, JavaScriptException { Object pn = bitXorExpr(ts, source, inForInit); while (ts.matchToken(ts.BITOR)) { source.append((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, source, inForInit)); } return pn; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2831, 1162, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 2831, 60, 280, 4742, 12, 3428, 16, 1084, 16, 316, 1290, 2570, 1769, 3639, 1323, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 15650, 916, 3719, 288, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 15650, 916, 1769, 5411, 11059, 273, 13958, 18, 2640, 5905, 12, 3428, 18, 15650, 916, 16, 11059, 16, 2831, 60, 280, 4742, 12, 3428, 16, 1084, 16, 4766, 12900, 316, 1290, 2570, 10019, 3639, 289, 3639, 327, 11059, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2831, 1162, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 2831, 60, 280, 4742, 12, 3428, 16, 1084, 16, 316, 1290, 2570, 1769, 3639, 1323, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 15650, 916, 3719, 288, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 15650, 916, 1769, 5411, 11059, 273, 13958, 18, 2640, 5905, 12, 3428, 18, 15650, 916, 16, 11059, 16, 2831, 60, 280, 4742, 12, 3428, 16, 1084, 16, 4766, 12900, 316, 1290, 2570, 10019, 3639, 289, 3639, 327, 11059, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(ISpecificationSource)servletContext.getAttribute(SPECIFICATION_SOURCE_NAME);
(ISpecificationSource)servletContext.getAttribute(name);
protected void setupForRequest(RequestContext context) { HttpServlet servlet; ServletContext servletContext = null; String name; String servletPath; servlet = context.getServlet(); servletContext = servlet.getServletContext(); if (servletPrefix == null) { servletPath = context.getRequest().getServletPath(); contextPath = servlet.getInitParameter("com.primix.tapestry.context-path"); if (contextPath == null) servletPrefix = servletPath; else servletPrefix = contextPath + servletPath; } // Need to redo a bunch of this because of class loader issues related // to IResourceResolver. Each Tapestry app will need its own template source // and page source. Possibly, there should be chaining, such that templates // and specifications provided by the framework can come from dedicated // sources .. this allows greater sharing. Somewhat academic though, since // typically only a single Tapestry application will be running within // a single servlet container or ServletContext. if (templateSource == null) { templateSource = (ITemplateSource)servletContext.getAttribute(TEMPLATE_SOURCE_NAME); if (templateSource == null) templateSource = new DefaultTemplateSource(getResourceResolver()); servletContext.setAttribute(TEMPLATE_SOURCE_NAME, templateSource); } if (specificationSource == null) { specificationSource = (ISpecificationSource)servletContext.getAttribute(SPECIFICATION_SOURCE_NAME); if (specificationSource == null) specificationSource = new DefaultSpecificationSource(getResourceResolver(), specification); servletContext.setAttribute(SPECIFICATION_SOURCE_NAME, specificationSource); } if (pageSource == null) { name = PAGE_SOURCE_NAME + "." + specification.getName(); pageSource = (PageSource)servletContext.getAttribute(name); if (pageSource == null) pageSource = new PageSource(); servletContext.setAttribute(name, pageSource); } }
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/d4a3651ed863531de57db48d14f0c509ed7adf3a/AbstractApplication.java/clean/framework/src/com/primix/tapestry/app/AbstractApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3875, 27649, 12, 21426, 819, 13, 202, 95, 202, 202, 2940, 4745, 8100, 31, 202, 202, 4745, 1042, 20474, 273, 446, 31, 202, 202, 780, 508, 31, 202, 202, 780, 8100, 743, 31, 202, 202, 23231, 273, 819, 18, 588, 4745, 5621, 9506, 202, 23231, 1042, 273, 8100, 18, 588, 4745, 1042, 5621, 9506, 202, 430, 261, 23231, 2244, 422, 446, 13, 202, 202, 95, 1082, 202, 23231, 743, 273, 819, 18, 588, 691, 7675, 588, 4745, 743, 5621, 1082, 202, 2472, 743, 273, 8100, 18, 588, 2570, 1662, 2932, 832, 18, 30438, 697, 18, 88, 7315, 698, 18, 2472, 17, 803, 8863, 25083, 202, 430, 261, 2472, 743, 422, 446, 13, 9506, 202, 23231, 2244, 273, 8100, 743, 31, 1082, 202, 12107, 9506, 202, 23231, 2244, 273, 23154, 397, 8100, 743, 31, 202, 202, 97, 1082, 202, 759, 12324, 358, 24524, 279, 25606, 434, 333, 2724, 434, 667, 4088, 8296, 3746, 202, 202, 759, 358, 467, 1420, 4301, 18, 225, 8315, 399, 7315, 698, 595, 903, 1608, 2097, 4953, 1542, 1084, 202, 202, 759, 471, 1363, 1084, 18, 225, 6818, 8781, 16, 1915, 1410, 506, 23381, 16, 4123, 716, 5539, 202, 202, 759, 471, 21950, 2112, 635, 326, 8257, 848, 12404, 628, 24328, 202, 202, 759, 5550, 6116, 333, 5360, 6802, 21001, 18, 225, 348, 362, 359, 11304, 1721, 2486, 27593, 11376, 16, 3241, 202, 202, 759, 14755, 1338, 279, 2202, 399, 7315, 698, 2521, 903, 506, 3549, 3470, 202, 202, 759, 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, 3875, 27649, 12, 21426, 819, 13, 202, 95, 202, 202, 2940, 4745, 8100, 31, 202, 202, 4745, 1042, 20474, 273, 446, 31, 202, 202, 780, 508, 31, 202, 202, 780, 8100, 743, 31, 202, 202, 23231, 273, 819, 18, 588, 4745, 5621, 9506, 202, 23231, 1042, 273, 8100, 18, 588, 4745, 1042, 5621, 9506, 202, 430, 261, 23231, 2244, 422, 446, 13, 202, 202, 95, 1082, 202, 23231, 743, 273, 819, 18, 588, 691, 7675, 588, 4745, 743, 5621, 1082, 202, 2472, 743, 273, 8100, 18, 588, 2570, 1662, 2932, 832, 18, 30438, 697, 18, 88, 7315, 698, 18, 2472, 17, 803, 8863, 25083, 202, 430, 261, 2472, 743, 422, 446, 13, 9506, 202, 23231, 2 ]
final void printStackTrace(int instructionOffset, java.io.PrintStream out) {
final void printStackTrace(int instructionOffset, java.io.PrintStream out) throws VM_PragmaInterruptible {
final void printStackTrace(int instructionOffset, java.io.PrintStream out) { VM_OptMachineCodeMap map = getMCMap(); int iei = map.getInlineEncodingForMCOffset(instructionOffset); if (iei >= 0) { int[] inlineEncoding = map.inlineEncoding; int bci = map.getBytecodeIndexForMCOffset(instructionOffset); for (int j = iei; j >= 0; j = VM_OptEncodedCallSiteTree.getParent(j, inlineEncoding)) { int mid = VM_OptEncodedCallSiteTree.getMethodID(j, inlineEncoding); VM_Method m = VM_MethodDictionary.getValue(mid); VM_LineNumberMap lmap = m.getLineNumberMap(); int lineNumber = 0; if (lmap != null) { lineNumber = lmap.getLineNumberForBCIndex(bci); } out.println("\tat " + m.getDeclaringClass().getDescriptor().classNameFromDescriptor() + "." + m.getName() + " (" + m.getDeclaringClass().getSourceName() + ":" + lineNumber + ")"); if (j > 0) { bci = VM_OptEncodedCallSiteTree.getByteCodeOffset(j, inlineEncoding); } } } else { out.println("\tat " + method.getDeclaringClass().getDescriptor(). classNameFromDescriptor() + "." + method.getName() + " (" + method.getDeclaringClass().getSourceName() + ": machine code offset " + VM.intAsHexString(instructionOffset) + ")"); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a259eee8ff750bfcf6596f83ad8ce6c1bcc7286d/VM_OptCompiledMethod.java/buggy/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptCompiledMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 7973, 12, 474, 7592, 2335, 16, 2252, 18, 1594, 18, 5108, 1228, 596, 13, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 8251, 67, 6179, 6981, 1085, 863, 852, 273, 2108, 39, 863, 5621, 565, 509, 9228, 77, 273, 852, 18, 588, 10870, 4705, 1290, 20022, 2335, 12, 19116, 2335, 1769, 565, 309, 261, 1385, 77, 1545, 374, 13, 288, 1377, 509, 8526, 6370, 4705, 273, 852, 18, 10047, 4705, 31, 1377, 509, 6533, 77, 273, 852, 18, 588, 858, 16651, 1016, 1290, 20022, 2335, 12, 19116, 2335, 1769, 1377, 364, 261, 474, 525, 273, 9228, 77, 31, 30378, 525, 1545, 374, 31, 30378, 525, 273, 8251, 67, 6179, 10397, 1477, 4956, 2471, 18, 588, 3054, 12, 78, 16, 6370, 4705, 3719, 288, 3639, 509, 7501, 273, 8251, 67, 6179, 10397, 1477, 4956, 2471, 18, 588, 1305, 734, 12, 78, 16, 6370, 4705, 1769, 3639, 8251, 67, 1305, 312, 273, 8251, 67, 1305, 10905, 18, 24805, 12, 13138, 1769, 3639, 8251, 67, 31063, 863, 328, 1458, 273, 312, 18, 588, 31063, 863, 5621, 3639, 509, 13629, 273, 374, 31, 3639, 309, 261, 80, 1458, 480, 446, 13, 288, 1850, 13629, 273, 328, 1458, 18, 588, 31063, 1290, 16283, 1016, 12, 70, 8450, 1769, 3639, 289, 3639, 596, 18, 8222, 31458, 88, 270, 315, 1875, 565, 397, 312, 18, 588, 3456, 14682, 7675, 588, 3187, 7675, 12434, 1265, 3187, 1435, 1082, 565, 397, 4585, 397, 312, 18, 17994, 1435, 397, 315, 7566, 397, 1875, 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, 727, 918, 7973, 12, 474, 7592, 2335, 16, 2252, 18, 1594, 18, 5108, 1228, 596, 13, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 8251, 67, 6179, 6981, 1085, 863, 852, 273, 2108, 39, 863, 5621, 565, 509, 9228, 77, 273, 852, 18, 588, 10870, 4705, 1290, 20022, 2335, 12, 19116, 2335, 1769, 565, 309, 261, 1385, 77, 1545, 374, 13, 288, 1377, 509, 8526, 6370, 4705, 273, 852, 18, 10047, 4705, 31, 1377, 509, 6533, 77, 273, 852, 18, 588, 858, 16651, 1016, 1290, 20022, 2335, 12, 19116, 2335, 1769, 1377, 364, 261, 474, 525, 273, 9228, 77, 31, 30378, 525, 1545, 374, 31, 30378, 525, 273, 8251, 67, 6179, 10397, 1477, 4956, 2471, 18, 588, 2 ]
if (t instanceof ModalContextThread) return (ModalContextThread) t;
if (t instanceof ModalContextThread) { return (ModalContextThread) t; }
private static ModalContextThread getCurrentModalContextThread() { Thread t = Thread.currentThread(); if (t instanceof ModalContextThread) return (ModalContextThread) t; return null; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ModalContext.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 3431, 287, 1042, 3830, 5175, 20191, 1042, 3830, 1435, 288, 3639, 4884, 268, 273, 4884, 18, 2972, 3830, 5621, 3639, 309, 261, 88, 1276, 3431, 287, 1042, 3830, 13, 5411, 327, 261, 20191, 1042, 3830, 13, 268, 31, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 3431, 287, 1042, 3830, 5175, 20191, 1042, 3830, 1435, 288, 3639, 4884, 268, 273, 4884, 18, 2972, 3830, 5621, 3639, 309, 261, 88, 1276, 3431, 287, 1042, 3830, 13, 5411, 327, 261, 20191, 1042, 3830, 13, 268, 31, 3639, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void rewireRequire(BundleConstraint req) {
private void rewireRequire(BundleConstraint req, ArrayList visited) {
private void rewireRequire(BundleConstraint req) { if (req.getMatchingBundle() != null) return; ResolverBundle matchingBundle = (ResolverBundle) bundleMapping.get(req.getVersionConstraint().getSupplier()); req.setMatchingBundle(matchingBundle); if (matchingBundle == null && !req.isOptional()) { System.err.println("Could not find matching bundle for " + req.getVersionConstraint()); //$NON-NLS-1$ // TODO log error!! } if (matchingBundle != null) { rewireBundle(matchingBundle); } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/dbbf2dbb992725eedee07c818c2ee0b2e4c10b8d/ResolverImpl.java/clean/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 283, 14538, 8115, 12, 3405, 5806, 1111, 13, 288, 202, 202, 430, 261, 3658, 18, 588, 9517, 3405, 1435, 480, 446, 13, 1082, 202, 2463, 31, 202, 202, 4301, 3405, 3607, 3405, 273, 261, 4301, 3405, 13, 3440, 3233, 18, 588, 12, 3658, 18, 588, 1444, 5806, 7675, 588, 13254, 10663, 202, 202, 3658, 18, 542, 9517, 3405, 12, 16271, 3405, 1769, 202, 202, 430, 261, 16271, 3405, 422, 446, 597, 401, 3658, 18, 291, 6542, 10756, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 4445, 486, 1104, 3607, 3440, 364, 315, 397, 1111, 18, 588, 1444, 5806, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 759, 2660, 613, 555, 8548, 202, 202, 97, 202, 202, 430, 261, 16271, 3405, 480, 446, 13, 288, 1082, 202, 266, 14538, 3405, 12, 16271, 3405, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 283, 14538, 8115, 12, 3405, 5806, 1111, 13, 288, 202, 202, 430, 261, 3658, 18, 588, 9517, 3405, 1435, 480, 446, 13, 1082, 202, 2463, 31, 202, 202, 4301, 3405, 3607, 3405, 273, 261, 4301, 3405, 13, 3440, 3233, 18, 588, 12, 3658, 18, 588, 1444, 5806, 7675, 588, 13254, 10663, 202, 202, 3658, 18, 542, 9517, 3405, 12, 16271, 3405, 1769, 202, 202, 430, 261, 16271, 3405, 422, 446, 597, 401, 3658, 18, 291, 6542, 10756, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 4445, 486, 1104, 3607, 3440, 364, 315, 397, 1111, 18, 588, 1444, 5806, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 759, 2660, 613, 555, 8548, 202, 2 ]
retorno = this.getName().equalsIgnoreCase(theme.getName());
equalsResult = this.getName().equalsIgnoreCase(theme.getName());
public boolean equals(Object obj) { boolean retorno= false; if (obj instanceof ITheme) { ITheme theme= (ITheme) obj; if (theme.getName() == null) retorno= (this.getName() == null); else retorno = this.getName().equalsIgnoreCase(theme.getName()); } return false; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c6cd0cd6a15b7561dfd5f9e69bacfec14e7341f6/Theme.java/clean/src/Dominio/Seminaries/Theme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 921, 1081, 13, 202, 95, 202, 202, 6494, 325, 280, 2135, 33, 629, 31, 202, 202, 430, 261, 2603, 1276, 467, 8335, 13, 202, 202, 95, 1082, 202, 1285, 76, 4698, 5006, 33, 261, 1285, 76, 4698, 13, 1081, 31, 1082, 202, 430, 261, 7997, 18, 17994, 1435, 422, 446, 13, 9506, 202, 1349, 280, 2135, 33, 261, 2211, 18, 17994, 1435, 422, 446, 1769, 1082, 202, 12107, 9506, 202, 1349, 280, 2135, 273, 333, 18, 17994, 7675, 14963, 5556, 12, 7997, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 921, 1081, 13, 202, 95, 202, 202, 6494, 325, 280, 2135, 33, 629, 31, 202, 202, 430, 261, 2603, 1276, 467, 8335, 13, 202, 202, 95, 1082, 202, 1285, 76, 4698, 5006, 33, 261, 1285, 76, 4698, 13, 1081, 31, 1082, 202, 430, 261, 7997, 18, 17994, 1435, 422, 446, 13, 9506, 202, 1349, 280, 2135, 33, 261, 2211, 18, 17994, 1435, 422, 446, 1769, 1082, 202, 12107, 9506, 202, 1349, 280, 2135, 273, 333, 18, 17994, 7675, 14963, 5556, 12, 7997, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type);
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type = project.findType(className); if (type == null) { return null; } if (fMethodName == null) { return type; } IMethod method = findMethodInTypeHierarchy(type);
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
57075 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57075/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/buggy/src/main/org/testng/eclipse/ui/OpenTestAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 5852, 1046, 1104, 1046, 12, 45, 5852, 4109, 1984, 16, 514, 2658, 13, 1216, 5110, 1488, 503, 288, 202, 202, 45, 559, 618, 33, 1984, 18, 4720, 559, 12, 12434, 1769, 202, 202, 430, 261, 723, 422, 446, 13, 1875, 202, 2463, 446, 31, 9506, 202, 430, 261, 74, 11666, 422, 446, 13, 1082, 202, 2463, 618, 31, 6862, 202, 45, 1305, 707, 33, 1104, 1305, 382, 559, 12074, 12, 723, 1769, 565, 309, 261, 2011, 422, 707, 13, 288, 1377, 707, 33, 21315, 3125, 1305, 382, 559, 12074, 12, 723, 1769, 565, 289, 202, 202, 430, 261, 2039, 422, 446, 13, 288, 1082, 202, 780, 2077, 33, 2591, 1304, 18, 588, 780, 2932, 3678, 4709, 1803, 18, 1636, 18, 2649, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 780, 883, 33, 2591, 1304, 18, 588, 18298, 780, 2932, 3678, 4709, 1803, 18, 1636, 18, 2039, 2279, 2043, 3113, 284, 11666, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 1079, 6353, 18, 3190, 5369, 12, 588, 13220, 9334, 2077, 16, 883, 1769, 1082, 202, 2463, 618, 31, 202, 202, 97, 202, 202, 74, 2655, 33, 707, 18, 17994, 2655, 5621, 202, 202, 2463, 707, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 5852, 1046, 1104, 1046, 12, 45, 5852, 4109, 1984, 16, 514, 2658, 13, 1216, 5110, 1488, 503, 288, 202, 202, 45, 559, 618, 33, 1984, 18, 4720, 559, 12, 12434, 1769, 202, 202, 430, 261, 723, 422, 446, 13, 1875, 202, 2463, 446, 31, 9506, 202, 430, 261, 74, 11666, 422, 446, 13, 1082, 202, 2463, 618, 31, 6862, 202, 45, 1305, 707, 33, 1104, 1305, 382, 559, 12074, 12, 723, 1769, 565, 309, 261, 2011, 422, 707, 13, 288, 1377, 707, 33, 21315, 3125, 1305, 382, 559, 12074, 12, 723, 1769, 565, 289, 202, 202, 430, 261, 2039, 422, 446, 13, 288, 1082, 202, 780, 2077, 33, 2591, 1304, 18, 588, 780, 2932, 3678, 2 ]
{ player.setQuest("clean_storage","rejected"); }
{ player.setQuest("clean_storage","rejected"); }
public void fire(Player player, String text, SpeakerNPC engine) { player.setQuest("clean_storage","rejected"); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/ecfe586cc023f057c38e81b5ae8082477344f44b/CleanStorageSpace.java/clean/src/games/stendhal/server/maps/quests/CleanStorageSpace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 4452, 12, 12148, 7291, 16, 514, 977, 16, 348, 347, 6388, 50, 3513, 4073, 13, 5375, 288, 5375, 7291, 18, 542, 30791, 2932, 6200, 67, 5697, 15937, 266, 6059, 8863, 5375, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 4452, 12, 12148, 7291, 16, 514, 977, 16, 348, 347, 6388, 50, 3513, 4073, 13, 5375, 288, 5375, 7291, 18, 542, 30791, 2932, 6200, 67, 5697, 15937, 266, 6059, 8863, 5375, 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 ]
Integer newRoleId = getMaxIntValuePlusOne( transaction, "roles", "role_id" );
Integer newRoleId = getNextUniquePrimaryKey( "roles", "role_id" );
public int sproc_RoleAddNew( final String role_name ) { final SQLTransaction transaction = sqlProcessor.startTransaction(); transaction.executeAndCommit( new TransactionContent() { public void execute() throws SQLException { Integer newRoleId = getMaxIntValuePlusOne( transaction, "roles", "role_id" ); String sql = "INSERT INTO roles ( role_id , role_name, permissions, admin_role ) VALUES( ?, ?, ?, ? )"; Object[] paramValues = new Object[]{ newRoleId, role_name, new Integer( 0 ), new Integer( 0 )}; transaction.executeUpdate( sql, paramValues ); } } ); return transaction.getRowCount(); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/92985c71b38c159d3e33b0a6189f7037c00bd8c7/DatabaseService.java/buggy/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 272, 9381, 67, 2996, 986, 1908, 12, 727, 514, 2478, 67, 529, 262, 288, 3639, 727, 3063, 3342, 2492, 273, 1847, 5164, 18, 1937, 3342, 5621, 3639, 2492, 18, 8837, 1876, 5580, 12, 394, 5947, 1350, 1435, 288, 5411, 1071, 918, 1836, 1435, 1216, 6483, 288, 7734, 2144, 394, 2996, 548, 273, 6927, 6303, 11575, 12, 315, 7774, 3113, 315, 4615, 67, 350, 6, 11272, 7734, 514, 1847, 273, 315, 11356, 12421, 4900, 261, 2478, 67, 350, 269, 2478, 67, 529, 16, 4371, 16, 3981, 67, 4615, 262, 13477, 12, 20033, 20033, 20033, 692, 262, 14432, 7734, 1033, 8526, 579, 1972, 273, 394, 1033, 63, 7073, 394, 2996, 548, 16, 2478, 67, 529, 16, 394, 2144, 12, 374, 262, 16, 394, 2144, 12, 374, 262, 20451, 7734, 2492, 18, 8837, 1891, 12, 1847, 16, 579, 1972, 11272, 5411, 289, 3639, 289, 11272, 3639, 327, 2492, 18, 588, 26359, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 509, 272, 9381, 67, 2996, 986, 1908, 12, 727, 514, 2478, 67, 529, 262, 288, 3639, 727, 3063, 3342, 2492, 273, 1847, 5164, 18, 1937, 3342, 5621, 3639, 2492, 18, 8837, 1876, 5580, 12, 394, 5947, 1350, 1435, 288, 5411, 1071, 918, 1836, 1435, 1216, 6483, 288, 7734, 2144, 394, 2996, 548, 273, 6927, 6303, 11575, 12, 315, 7774, 3113, 315, 4615, 67, 350, 6, 11272, 7734, 514, 1847, 273, 315, 11356, 12421, 4900, 261, 2478, 67, 350, 269, 2478, 67, 529, 16, 4371, 16, 3981, 67, 4615, 262, 13477, 12, 20033, 20033, 20033, 692, 262, 14432, 7734, 1033, 8526, 579, 1972, 273, 394, 1033, 63, 7073, 394, 2996, 548, 16, 2478, 67, 529, 16, 394, 2144, 2 ]
} else if ( imageData.disposalMethod == SWT.DM_FILL_PREVIOUS) {
} else if (imageData.disposalMethod == SWT.DM_FILL_PREVIOUS) {
void animateLoop(IProgressMonitor monitor) { // Create an off-screen image to draw on, and a GC to draw with. // Both are disposed after the animation. if (items.size() == 0) return; AnimationItem[] animationItems = getAnimationItems(); boolean startErrorState = showingError; Display display = animationItems[0].getControl().getDisplay(); ImageData[] imageDataArray = getImageData(); ImageData imageData = imageDataArray[0]; Image image = JobProgressManager.getInstance().getImage(imageData); int imageDataIndex = 0; ImageLoader loader = getLoader(); if (display.isDisposed()) { monitor.setCanceled(true); setAnimated(false); return; } Image offScreenImage = new Image( display, loader.logicalScreenWidth, loader.logicalScreenHeight); GC offScreenImageGC = new GC(offScreenImage); try { // Fill the off-screen image with the background color of the canvas. offScreenImageGC.setBackground(background); offScreenImageGC.fillRectangle( 0, 0, loader.logicalScreenWidth, loader.logicalScreenHeight); // Draw the current image onto the off-screen image. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); if (loader.repeatCount > 0) { while (isAnimated() && !monitor.isCanceled() && (startErrorState == showingError)) { if (display.isDisposed()) { monitor.setCanceled(true); continue; } if (imageData.disposalMethod == SWT.DM_FILL_BACKGROUND) { // Fill with the background color before drawing. Color bgColor = null; int backgroundPixel = loader.backgroundPixel; if (backgroundPixel != -1) { // Fill with the background color. RGB backgroundRGB = imageData.palette.getRGB(backgroundPixel); bgColor = new Color(null, backgroundRGB); } try { offScreenImageGC.setBackground( bgColor != null ? bgColor : background); offScreenImageGC.fillRectangle( imageData.x, imageData.y, imageData.width, imageData.height); } finally { if (bgColor != null) bgColor.dispose(); } } else if ( imageData.disposalMethod == SWT.DM_FILL_PREVIOUS) { // Restore the previous image before drawing. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); } // Get the next image data. imageDataIndex = (imageDataIndex + 1) % imageDataArray.length; imageData = imageDataArray[imageDataIndex]; image.dispose(); image = new Image(display, imageData); // Draw the new image data. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); boolean refreshItems = false; for (int i = 0; i < animationItems.length; i++) { AnimationItem item = animationItems[i]; if (item.imageCanvasGC.isDisposed()) { refreshItems = true; continue; } // Draw the off-screen image to the screen. item.imageCanvasGC.drawImage(offScreenImage, 0, 0); } if (refreshItems) animationItems = getAnimationItems(); // Sleep for the specified delay time before drawing again. try { Thread.sleep(visibleDelay(imageData.delayTime * 10)); } catch (InterruptedException e) { } } } } finally { image.dispose(); offScreenImage.dispose(); offScreenImageGC.dispose(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4e2d6cb95ed1b15963cfd0327c709ad8ca53c4b5/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 14671, 6452, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118, 854, 1015, 7423, 1839, 326, 8794, 18, 202, 202, 430, 261, 3319, 18, 1467, 1435, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 10816, 1180, 8526, 8794, 3126, 273, 336, 10816, 3126, 5621, 202, 202, 6494, 787, 668, 1119, 273, 17253, 668, 31, 202, 202, 4236, 2562, 273, 8794, 3126, 63, 20, 8009, 588, 3367, 7675, 588, 4236, 5621, 202, 202, 2040, 751, 8526, 26229, 1076, 273, 10567, 751, 5621, 202, 202, 2040, 751, 26229, 273, 26229, 1076, 63, 20, 15533, 202, 202, 2040, 1316, 273, 3956, 5491, 1318, 18, 588, 1442, 7675, 588, 2040, 12, 2730, 751, 1769, 202, 202, 474, 26229, 1016, 273, 374, 31, 202, 202, 2040, 2886, 4088, 273, 336, 2886, 5621, 202, 202, 430, 261, 5417, 18, 291, 1669, 7423, 10756, 288, 1082, 202, 10259, 18, 542, 23163, 12, 3767, 1769, 1082, 202, 542, 979, 17275, 12, 5743, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2040, 3397, 7956, 2040, 273, 1082, 202, 2704, 3421, 12, 9506, 202, 5417, 16, 9506, 202, 6714, 18, 20300, 7956, 2384, 16, 9506, 202, 6714, 18, 20300, 7956, 2686, 1769, 202, 202, 15396, 3397, 7956, 2040, 15396, 273, 394, 15085, 12, 3674, 7956, 2040, 1769, 202, 202, 698, 288, 1082, 202, 759, 14192, 326, 3397, 17, 9252, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 14671, 6452, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118, 854, 1015, 7423, 1839, 326, 8794, 18, 202, 202, 430, 261, 3319, 18, 1467, 1435, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 10816, 1180, 8526, 8794, 3126, 273, 336, 10816, 3126, 5621, 202, 202, 6494, 787, 668, 1119, 273, 17253, 668, 31, 202, 202, 4236, 2562, 273, 8794, 3126, 63, 20, 8009, 588, 3367, 7675, 588, 4236, 5621, 202, 202, 2040, 751, 8526, 26229, 1076, 273, 10567, 751, 5621, 202, 202, 2040, 751, 26229, 273, 26229, 1076, 63, 20, 15533, 202, 2 ]
throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle );
source = JavascriptEvalUtil.convertJavascriptValue( source ); switch ( toType ) { case DataType.INTEGER_TYPE : return toInteger( source ); case DataType.DECIMAL_TYPE : return toBigDecimal( source ); case DataType.BOOLEAN_TYPE : return toBoolean( source ); case DataType.DATE_TYPE : return toDate( source ); case DataType.DOUBLE_TYPE : return toDouble( source ); case DataType.STRING_TYPE : return toString( source ); case DataType.BLOB_TYPE : return toBlob( source ); case DataType.BINARY_TYPE : return toBytes( source ); default : throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle ); }
public static Object convert( Object source, Class toTypeClass ) throws BirtException { if ( toTypeClass == DataType.getClass( DataType.ANY_TYPE ) ) return source; if ( toTypeClass == Integer.class ) return toInteger( source ); if ( toTypeClass == BigDecimal.class ) return toBigDecimal( source ); if ( toTypeClass == Boolean.class ) return toBoolean( source ); if ( Date.class.isAssignableFrom( toTypeClass ) ) return toDate( source ); if ( toTypeClass == Double.class ) return toDouble( source ); if ( toTypeClass == String.class ) return toString( source ); if ( toTypeClass == Blob.class ) return toBlob( source ); throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0422fa1f1214e4ce5865835e08483d64e4da2529/DataTypeUtil.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 1765, 12, 1033, 1084, 16, 1659, 28234, 797, 262, 202, 202, 15069, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 28234, 797, 422, 14828, 18, 588, 797, 12, 14828, 18, 15409, 67, 2399, 262, 262, 1082, 202, 2463, 1084, 31, 202, 202, 430, 261, 28234, 797, 422, 2144, 18, 1106, 262, 1082, 202, 2463, 358, 4522, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 8150, 18, 1106, 262, 1082, 202, 2463, 358, 29436, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 3411, 18, 1106, 262, 1082, 202, 2463, 358, 5507, 12, 1084, 11272, 202, 202, 430, 261, 2167, 18, 1106, 18, 291, 7961, 1265, 12, 28234, 797, 262, 262, 1082, 202, 2463, 25443, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 3698, 18, 1106, 262, 1082, 202, 2463, 358, 5265, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 514, 18, 1106, 262, 1082, 202, 2463, 1762, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 12741, 18, 1106, 262, 1082, 202, 2463, 358, 9405, 12, 1084, 11272, 9506, 202, 12849, 394, 605, 2714, 503, 12, 1909, 548, 16, 9506, 202, 1420, 2918, 18, 9347, 67, 2399, 16, 9506, 202, 3146, 3405, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 1765, 12, 1033, 1084, 16, 1659, 28234, 797, 262, 202, 202, 15069, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 28234, 797, 422, 14828, 18, 588, 797, 12, 14828, 18, 15409, 67, 2399, 262, 262, 1082, 202, 2463, 1084, 31, 202, 202, 430, 261, 28234, 797, 422, 2144, 18, 1106, 262, 1082, 202, 2463, 358, 4522, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 8150, 18, 1106, 262, 1082, 202, 2463, 358, 29436, 12, 1084, 11272, 202, 202, 430, 261, 28234, 797, 422, 3411, 18, 1106, 262, 1082, 202, 2463, 358, 5507, 12, 1084, 11272, 202, 202, 430, 261, 2167, 18, 1106, 18, 291, 7961, 1265, 12, 28234, 797, 262, 262, 2 ]
blobQueue = new HashSet(); blobRules = new ArrayList(); treeQueue = new LinkedHashMap(); ow = new ObjectWriter(m.getRepository()); rm = m;
blobQueue = new HashSet(); blobRules = new ArrayList(); treeQueue = new LinkedHashMap(); ow = new ObjectWriter(m.getRepository()); rm = m;
public CheckpointJob(final RepositoryMapping m) { super(CoreText.bind(CoreText.CheckpointJob_name, m.getContainer() .getFullPath())); setPriority(Job.LONG); blobQueue = new HashSet(); blobRules = new ArrayList(); treeQueue = new LinkedHashMap(); ow = new ObjectWriter(m.getRepository()); rm = m; }
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a4e486719ce78b8050373e6534dfaf4a1572b269/CheckpointJob.java/clean/org.spearce.egit.core/src/org/spearce/egit/core/project/CheckpointJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 25569, 2278, 12, 6385, 6281, 3233, 312, 13, 565, 288, 3639, 2240, 12, 4670, 1528, 18, 4376, 12, 4670, 1528, 18, 14431, 2278, 67, 529, 16, 312, 18, 588, 2170, 1435, 5411, 263, 588, 24173, 1435, 10019, 3639, 444, 8183, 12, 2278, 18, 14639, 1769, 3639, 4795, 3183, 273, 394, 6847, 5621, 3639, 4795, 4478, 273, 394, 2407, 5621, 3639, 2151, 3183, 273, 394, 13589, 5621, 3639, 2523, 273, 394, 1033, 2289, 12, 81, 18, 588, 3305, 10663, 3639, 6692, 273, 312, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 25569, 2278, 12, 6385, 6281, 3233, 312, 13, 565, 288, 3639, 2240, 12, 4670, 1528, 18, 4376, 12, 4670, 1528, 18, 14431, 2278, 67, 529, 16, 312, 18, 588, 2170, 1435, 5411, 263, 588, 24173, 1435, 10019, 3639, 444, 8183, 12, 2278, 18, 14639, 1769, 3639, 4795, 3183, 273, 394, 6847, 5621, 3639, 4795, 4478, 273, 394, 2407, 5621, 3639, 2151, 3183, 273, 394, 13589, 5621, 3639, 2523, 273, 394, 1033, 2289, 12, 81, 18, 588, 3305, 10663, 3639, 6692, 273, 312, 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 ]
String newBuildOutput = manageDialog.getBuildArtifactName(); if (!selectedTarget.getArtifactName().equals(newBuildOutput)) { selectedTarget.setArtifactName(newBuildOutput); } String newBuildExt = manageDialog.getBuildArtifaceExtension(); if (!selectedTarget.getArtifactExtension().equals(newBuildExt)) { selectedTarget.setArtifactExtension(newBuildExt); } if (manageDialog.useDefaultMakeCommand()) { selectedTarget.resetMakeCommand(); } else { String rawCommand = manageDialog.getMakeCommand(); String makeCommand = parseMakeCommand(rawCommand); selectedTarget.setMakeCommand(makeCommand); String makeArguments = parseMakeArgs(rawCommand); selectedTarget.setMakeArguments(makeArguments); }
private void handleManageConfig () { ManageConfigDialog manageDialog = new ManageConfigDialog(getShell(), ManagedBuilderUIMessages.getResourceString(MANAGE_TITLE), selectedTarget); if (manageDialog.open() == ManageConfigDialog.OK) { boolean updateConfigs = false; // Get the build output name String newBuildOutput = manageDialog.getBuildArtifactName(); if (!selectedTarget.getArtifactName().equals(newBuildOutput)) { selectedTarget.setArtifactName(newBuildOutput); } String newBuildExt = manageDialog.getBuildArtifaceExtension(); if (!selectedTarget.getArtifactExtension().equals(newBuildExt)) { selectedTarget.setArtifactExtension(newBuildExt); } // Get the new make command if (manageDialog.useDefaultMakeCommand()) { // This is a cheap assignment to null so do it to be doubly sure selectedTarget.resetMakeCommand(); } else { // Parse for command and arguments String rawCommand = manageDialog.getMakeCommand(); String makeCommand = parseMakeCommand(rawCommand); selectedTarget.setMakeCommand(makeCommand); String makeArguments = parseMakeArgs(rawCommand); selectedTarget.setMakeArguments(makeArguments); } // Check to see if any configurations have to be deleted List deletedConfigs = manageDialog.getDeletedConfigIds(); Iterator iter = deletedConfigs.listIterator(); while (iter.hasNext()) { String id = (String)iter.next(); // Remove the configurations from the target selectedTarget.removeConfiguration(id); // Remove any settings stores getSettingsStoreMap().remove(id); // Clean up the UI configurations = selectedTarget.getConfigurations(); configSelector.removeAll(); configSelector.setItems(getConfigurationNames()); configSelector.select(0); updateConfigs = true; } // Check to see if any have to be added SortedMap newConfigs = manageDialog.getNewConfigs(); Set keys = newConfigs.keySet(); Iterator keyIter = keys.iterator(); Random r = new Random(); r.setSeed(System.currentTimeMillis()); while (keyIter.hasNext()) { String name = (String) keyIter.next(); IConfiguration parent = (IConfiguration) newConfigs.get(name); if (parent != null) { int id = r.nextInt(); if (id < 0) { id *= -1; } // Create ID for the new component based on the parent ID and random component String newId = parent.getId(); int index = newId.lastIndexOf(ID_SEPARATOR); if (index > 0) { String lastComponent = newId.substring(index + 1, newId.length()); if (Character.isDigit(lastComponent.charAt(0))) { // Strip the last component newId = newId.substring(0, index); } } newId += ID_SEPARATOR + id; IConfiguration newConfig = selectedTarget.createConfiguration(parent, newId); newConfig.setName(name); // Update the config lists configurations = selectedTarget.getConfigurations(); configSelector.removeAll(); configSelector.setItems(getConfigurationNames()); configSelector.select(configSelector.indexOf(name)); updateConfigs = true; } } if (updateConfigs){ handleConfigSelection(); } } return; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18b49394c46cbbecf041078a70e83e4975d004a7/BuildPropertyPage.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 21258, 809, 1832, 288, 202, 202, 21258, 809, 6353, 10680, 6353, 273, 394, 24247, 809, 6353, 12, 588, 13220, 9334, 10024, 1263, 57, 3445, 1753, 18, 588, 1420, 780, 12, 9560, 2833, 67, 14123, 3631, 3170, 2326, 1769, 202, 202, 430, 261, 12633, 6353, 18, 3190, 1435, 422, 24247, 809, 6353, 18, 3141, 13, 288, 1082, 202, 6494, 1089, 8062, 273, 629, 31, 25083, 202, 759, 968, 326, 1361, 876, 508, 1082, 202, 780, 394, 3116, 1447, 273, 10680, 6353, 18, 588, 3116, 7581, 461, 5621, 1082, 202, 430, 16051, 8109, 2326, 18, 588, 7581, 461, 7675, 14963, 12, 2704, 3116, 1447, 3719, 288, 9506, 202, 8109, 2326, 18, 542, 7581, 461, 12, 2704, 3116, 1447, 1769, 1082, 202, 97, 1082, 202, 780, 394, 3116, 2482, 273, 10680, 6353, 18, 588, 3116, 4411, 31479, 3625, 5621, 1082, 202, 430, 16051, 8109, 2326, 18, 588, 7581, 3625, 7675, 14963, 12, 2704, 3116, 2482, 3719, 288, 9506, 202, 8109, 2326, 18, 542, 7581, 3625, 12, 2704, 3116, 2482, 1769, 1082, 202, 97, 25083, 202, 759, 968, 326, 394, 1221, 1296, 1082, 202, 430, 261, 12633, 6353, 18, 1202, 1868, 6464, 2189, 10756, 288, 9506, 202, 759, 1220, 353, 279, 19315, 438, 6661, 358, 446, 1427, 741, 518, 358, 506, 741, 440, 93, 3071, 9506, 202, 8109, 2326, 18, 6208, 6464, 2189, 5621, 1082, 202, 97, 469, 288, 9506, 202, 759, 2884, 364, 1296, 471, 1775, 9506, 202, 780, 1831, 2189, 273, 10680, 6353, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 21258, 809, 1832, 288, 202, 202, 21258, 809, 6353, 10680, 6353, 273, 394, 24247, 809, 6353, 12, 588, 13220, 9334, 10024, 1263, 57, 3445, 1753, 18, 588, 1420, 780, 12, 9560, 2833, 67, 14123, 3631, 3170, 2326, 1769, 202, 202, 430, 261, 12633, 6353, 18, 3190, 1435, 422, 24247, 809, 6353, 18, 3141, 13, 288, 1082, 202, 6494, 1089, 8062, 273, 629, 31, 25083, 202, 759, 968, 326, 1361, 876, 508, 1082, 202, 780, 394, 3116, 1447, 273, 10680, 6353, 18, 588, 3116, 7581, 461, 5621, 1082, 202, 430, 16051, 8109, 2326, 18, 588, 7581, 461, 7675, 14963, 12, 2704, 3116, 1447, 3719, 288, 9506, 202, 8109, 2326, 18, 542, 7581, 461, 12, 2704, 2 ]
if(timeAllSent > 0 && System.currentTimeMillis() - timeAllSent > SEND_TIMEOUT &&
if(timeAllSent > 0 && (System.currentTimeMillis() - timeAllSent) > SEND_TIMEOUT &&
public boolean send() { _receiverThread = Thread.currentThread(); try { _unsent = _prb.addListener(new PartiallyReceivedBlock.PacketReceivedListener() {; public void packetReceived(int packetNo) { _unsent.addLast(new Integer(packetNo)); _sentPackets.setBit(packetNo, false); synchronized(_senderThread) { _senderThread.notify(); } } public void receiveAborted(int reason, String description) { try { ((PeerNode)_destination).sendAsync(DMT.createSendAborted(_uid, reason, description), null); } catch (NotConnectedException e) { Logger.minor(this, "Receive aborted and receiver is not connected"); } } }); _senderThread.start(); while (true) { if (_prb.isAborted()) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } Message msg; try { msg = _usm.waitFor(MessageFilter.create().setTimeout(SEND_TIMEOUT).setType(DMT.missingPacketNotification).setField(DMT.UID, _uid).or(MessageFilter.create().setType(DMT.allReceived).setField(DMT.UID, _uid))); } catch (DisconnectedException e) { Logger.normal(this, "Terminating send "+_uid+" to "+_destination+" from "+_usm.getPortNumber()+" because node disconnected while waiting"); synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } if(_sendComplete || !_destination.isConnected()) return false; if (msg == null) { if(timeAllSent > 0 && System.currentTimeMillis() - timeAllSent > SEND_TIMEOUT && getNumSent() == _prb.getNumPackets()) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } Logger.error(this, "Terminating send "+_uid+" to "+_destination+" from "+_usm.getPortNumber()+" as we haven't heard from receiver in "+SEND_TIMEOUT+"ms."); return false; } else continue; } else if (msg.getSpec().equals(DMT.missingPacketNotification)) { LinkedList missing = (LinkedList) msg.getObject(DMT.MISSING); for (Iterator i = missing.iterator(); i.hasNext();) { Integer packetNo = (Integer) i.next(); if (_prb.isReceived(packetNo.intValue())) { synchronized(_unsent) { _unsent.addFirst(packetNo); } _sentPackets.setBit(packetNo.intValue(), false); synchronized(_senderThread) { _senderThread.notify(); } } } } else if (msg.getSpec().equals(DMT.allReceived)) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return true; } else if(_sendComplete) { // Terminated abnormally return false; } } } catch (AbortedException e) { // Terminate synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/6765347f423d03c4bfc3d2fea4cf928ffa597805/BlockTransmitter.java/clean/src/freenet/io/xfer/BlockTransmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1366, 1435, 288, 202, 202, 67, 24454, 3830, 273, 4884, 18, 2972, 3830, 5621, 9506, 202, 698, 288, 202, 202, 67, 318, 7569, 273, 389, 683, 70, 18, 1289, 2223, 12, 2704, 6393, 6261, 8872, 1768, 18, 6667, 8872, 2223, 1435, 288, 31, 1082, 202, 482, 918, 4414, 8872, 12, 474, 4414, 2279, 13, 288, 9506, 202, 67, 318, 7569, 18, 1289, 3024, 12, 2704, 2144, 12, 11482, 2279, 10019, 9506, 202, 67, 7569, 27328, 18, 542, 5775, 12, 11482, 2279, 16, 629, 1769, 9506, 202, 22043, 24899, 15330, 3830, 13, 288, 6862, 202, 67, 15330, 3830, 18, 12336, 5621, 9506, 202, 97, 1082, 202, 97, 1082, 202, 482, 918, 6798, 27821, 12, 474, 3971, 16, 514, 2477, 13, 288, 9506, 202, 698, 288, 6862, 202, 12443, 6813, 907, 13, 67, 10590, 2934, 4661, 2771, 12, 40, 6152, 18, 2640, 3826, 27821, 24899, 1911, 16, 3971, 16, 2477, 3631, 446, 1769, 7734, 289, 1044, 261, 1248, 8932, 503, 425, 13, 288, 10792, 4242, 18, 17364, 12, 2211, 16, 315, 11323, 18166, 471, 5971, 353, 486, 5840, 8863, 7734, 289, 1082, 202, 97, 15549, 202, 202, 67, 15330, 3830, 18, 1937, 5621, 9506, 202, 17523, 261, 3767, 13, 288, 1082, 202, 430, 261, 67, 683, 70, 18, 291, 27821, 10756, 288, 9506, 202, 22043, 24899, 15330, 3830, 13, 288, 6862, 202, 67, 4661, 6322, 273, 638, 31, 6862, 202, 67, 15330, 3830, 18, 12336, 1595, 5621, 9506, 202, 97, 9506, 202, 2463, 629, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1366, 1435, 288, 202, 202, 67, 24454, 3830, 273, 4884, 18, 2972, 3830, 5621, 9506, 202, 698, 288, 202, 202, 67, 318, 7569, 273, 389, 683, 70, 18, 1289, 2223, 12, 2704, 6393, 6261, 8872, 1768, 18, 6667, 8872, 2223, 1435, 288, 31, 1082, 202, 482, 918, 4414, 8872, 12, 474, 4414, 2279, 13, 288, 9506, 202, 67, 318, 7569, 18, 1289, 3024, 12, 2704, 2144, 12, 11482, 2279, 10019, 9506, 202, 67, 7569, 27328, 18, 542, 5775, 12, 11482, 2279, 16, 629, 1769, 9506, 202, 22043, 24899, 15330, 3830, 13, 288, 6862, 202, 67, 15330, 3830, 18, 12336, 5621, 9506, 202, 97, 1082, 202, 97, 1082, 202, 482, 918, 6798, 27821, 12, 474, 3971, 2 ]
String arg = ((RubyString) args[0]).getValue();
String arg = ((RubyString) args[0].convertToString()).getValue();
public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { String arg = ((RubyString) args[0]).getValue(); // Should this logic be pushed into RubyIO Somewhere? if (arg.startsWith("|")) { String command = arg.substring(1); // exec process, create IO with process try { // TODO: may need to part cli parms out ourself? Process p = Runtime.getRuntime().exec(command); RubyIO io = new RubyIO(recv.getRuntime(), p); if (recv.getRuntime().isBlockGiven()) { try { recv.getRuntime().yield(io); return recv.getRuntime().getNil(); } finally { io.close(); } } return io; } catch (IOException ioe) { throw new IOError(recv.getRuntime(), ioe.getMessage()); } } return RubyFile.open(recv.getRuntime().getClass("File"), args); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/ae3178fbb3656e01c3d379a6255e1af956725271/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1696, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 514, 1501, 273, 14015, 54, 10340, 780, 13, 833, 63, 20, 8009, 6283, 5808, 1435, 2934, 24805, 5621, 3639, 368, 9363, 333, 4058, 506, 18543, 1368, 19817, 4294, 348, 362, 359, 14852, 35, 3639, 309, 261, 3175, 18, 17514, 1190, 2932, 22317, 3719, 288, 5411, 514, 1296, 273, 1501, 18, 28023, 12, 21, 1769, 540, 202, 759, 1196, 1207, 16, 752, 1665, 598, 1207, 540, 202, 698, 288, 7734, 368, 2660, 30, 2026, 1608, 358, 1087, 4942, 17902, 596, 3134, 2890, 35, 7734, 4389, 293, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1769, 7734, 19817, 4294, 2527, 273, 394, 19817, 4294, 12, 18334, 18, 588, 5576, 9334, 293, 1769, 540, 1082, 540, 202, 565, 309, 261, 18334, 18, 588, 5576, 7675, 291, 1768, 6083, 10756, 288, 540, 202, 3639, 775, 288, 540, 202, 5411, 10665, 18, 588, 5576, 7675, 23604, 12, 1594, 1769, 540, 202, 7682, 202, 3639, 327, 10665, 18, 588, 5576, 7675, 588, 12616, 5621, 540, 202, 3639, 289, 3095, 288, 540, 202, 5411, 2527, 18, 4412, 5621, 540, 202, 3639, 289, 540, 202, 565, 289, 7734, 327, 2527, 31, 540, 202, 97, 1044, 261, 14106, 10847, 13, 288, 540, 202, 202, 12849, 394, 8340, 12, 18334, 18, 588, 5576, 9334, 10847, 18, 24906, 10663, 540, 202, 97, 3639, 289, 540, 327, 19817, 812, 18, 3190, 12, 18334, 18, 588, 5576, 7675, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1696, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 514, 1501, 273, 14015, 54, 10340, 780, 13, 833, 63, 20, 8009, 6283, 5808, 1435, 2934, 24805, 5621, 3639, 368, 9363, 333, 4058, 506, 18543, 1368, 19817, 4294, 348, 362, 359, 14852, 35, 3639, 309, 261, 3175, 18, 17514, 1190, 2932, 22317, 3719, 288, 5411, 514, 1296, 273, 1501, 18, 28023, 12, 21, 1769, 540, 202, 759, 1196, 1207, 16, 752, 1665, 598, 1207, 540, 202, 698, 288, 7734, 368, 2660, 30, 2026, 1608, 358, 1087, 4942, 17902, 596, 3134, 2890, 35, 7734, 4389, 293, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1769, 7734, 19817, 4294, 2 ]
public abstract boolean delete(Blob blob) throws IOException;
public abstract boolean delete(MailboxBlob blob) throws IOException;
public abstract boolean delete(Blob blob) throws IOException;
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1f6dc291ddd5bf283eb6c507337dfa905129c4e9/StoreManager.java/buggy/ZimbraServer/src/java/com/zimbra/cs/store/StoreManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1250, 1430, 12, 9405, 4795, 13, 1216, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8770, 1250, 1430, 12, 9405, 4795, 13, 1216, 1860, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if( !file.exists() )
if( !file.exists() ) {
public void setSrc( String fileName ) { File file = new File( fileName ); if( !file.exists() ) throw new TaskException( "file " + fileName + " not found." ); int count = (int)file.length(); byte data[] = new byte[ count ]; try { FileInputStream inStream = new FileInputStream( file ); inStream.read( data ); inStream.close(); } catch( IOException e ) { throw new TaskException( "Error", e ); } script += new String( data ); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/b95d90a13da3fb8d362982bc84652f1e03e8325e/Script.java/buggy/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Script.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7740, 12, 514, 3968, 262, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 3968, 11272, 3639, 309, 12, 401, 768, 18, 1808, 1435, 262, 288, 5411, 604, 394, 3837, 503, 12, 315, 768, 315, 397, 3968, 397, 315, 486, 1392, 1199, 11272, 3639, 509, 1056, 273, 261, 474, 13, 768, 18, 2469, 5621, 3639, 1160, 501, 8526, 273, 394, 1160, 63, 1056, 308, 31, 3639, 775, 3639, 288, 5411, 11907, 28987, 273, 394, 11907, 12, 585, 11272, 5411, 28987, 18, 896, 12, 501, 11272, 5411, 28987, 18, 4412, 5621, 3639, 289, 3639, 1044, 12, 1860, 425, 262, 3639, 288, 5411, 604, 394, 3837, 503, 12, 315, 668, 3113, 425, 11272, 3639, 289, 3639, 2728, 1011, 394, 514, 12, 501, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 444, 7740, 12, 514, 3968, 262, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 3968, 11272, 3639, 309, 12, 401, 768, 18, 1808, 1435, 262, 288, 5411, 604, 394, 3837, 503, 12, 315, 768, 315, 397, 3968, 397, 315, 486, 1392, 1199, 11272, 3639, 509, 1056, 273, 261, 474, 13, 768, 18, 2469, 5621, 3639, 1160, 501, 8526, 273, 394, 1160, 63, 1056, 308, 31, 3639, 775, 3639, 288, 5411, 11907, 28987, 273, 394, 11907, 12, 585, 11272, 5411, 28987, 18, 896, 12, 501, 11272, 5411, 28987, 18, 4412, 5621, 3639, 289, 3639, 1044, 12, 1860, 425, 262, 3639, 288, 5411, 604, 394, 3837, 503, 12, 315, 668, 3113, 425, 11272, 3639, 289, 3639, 2728, 2 ]
String spName = procName;
public boolean execute() throws SQLException { checkOpen(); resultQueue.clear(); genKeyResultSet = null; String spName = procName; if (spName == null) { spName = connection.prepareSQL(this, sql, parameters, returnKeys); } return executeSQL(sql, spName, sqlWord, parameters, returnKeys, false); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/3b4656eb53d4c8088a432699346fa700742dda0f/JtdsPreparedStatement.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/JtdsPreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1836, 1435, 1216, 6483, 288, 3639, 866, 3678, 5621, 3639, 563, 3183, 18, 8507, 5621, 3639, 3157, 653, 13198, 273, 446, 31, 9079, 309, 261, 1752, 461, 422, 446, 13, 288, 5411, 1694, 461, 273, 1459, 18, 9366, 3997, 12, 2211, 16, 1847, 16, 1472, 16, 327, 2396, 1769, 3639, 289, 3639, 327, 1836, 3997, 12, 4669, 16, 1694, 461, 16, 1847, 3944, 16, 1472, 16, 327, 2396, 16, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1836, 1435, 1216, 6483, 288, 3639, 866, 3678, 5621, 3639, 563, 3183, 18, 8507, 5621, 3639, 3157, 653, 13198, 273, 446, 31, 9079, 309, 261, 1752, 461, 422, 446, 13, 288, 5411, 1694, 461, 273, 1459, 18, 9366, 3997, 12, 2211, 16, 1847, 16, 1472, 16, 327, 2396, 1769, 3639, 289, 3639, 327, 1836, 3997, 12, 4669, 16, 1694, 461, 16, 1847, 3944, 16, 1472, 16, 327, 2396, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return DataTools.read2UnsignedBytes(this, false);
return DataTools.read2UnsignedBytes(this, littleEndian);
public int readUnsignedShort() throws IOException { return DataTools.read2UnsignedBytes(this, false); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/2df09d33bfdc966378aae0cc09cb503afb983bc2/RandomAccessStream.java/clean/loci/formats/RandomAccessStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 28198, 1435, 1216, 1860, 288, 565, 327, 1910, 10348, 18, 896, 22, 13290, 2160, 12, 2211, 16, 328, 10609, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 28198, 1435, 1216, 1860, 288, 565, 327, 1910, 10348, 18, 896, 22, 13290, 2160, 12, 2211, 16, 328, 10609, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(cmd.equals("Cut")) {
if (cmd.equals("Cut")) {
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cut")) { consoleTextArea.cut(); } else if(cmd.equals("Copy")) { consoleTextArea.copy(); } else if(cmd.equals("Paste")) { consoleTextArea.paste(); } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 5150, 5621, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 2951, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 3530, 5621, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 52, 14725, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 29795, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 5150, 5621, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 2951, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 3530, 5621, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 52, 14725, 6, 3719, 288, 5411, 2983, 1528, 5484, 18, 29795, 5621, 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 ]
public Object doInTransaction() throws Exception
public Object doInTransaction() throws Exception
public void testTransactionsWithExceptionThrown() throws Exception { final MuleClient client = new MuleClient(); final Map props = new HashMap(); props.put("JMSReplyTo", "replyTo.queue"); props.put(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, "false"); // Empty reply queue while (client.receive("jms://replyTo.queue", 2000) != null) { // hmm..mesages } MuleTransactionConfig tc = new MuleTransactionConfig(); tc.setFactory(new JmsTransactionFactory()); tc.setAction(UMOTransactionConfig.ACTION_ALWAYS_BEGIN); TransactionTemplate tt = new TransactionTemplate(tc, null); try { tt.execute(new TransactionCallback() { public Object doInTransaction() throws Exception { for (int i = 0; i < 100; i++) { client.send("jms://test.queue", "Test Client Dispatch message " + i, props); } throw new Exception(); } }); fail(); } catch (Exception e) { // this is ok } UMOMessage result = client.receive("jms://replyTo.queue", 2000); assertNull(result); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/589f59b15144184ea22999b384d5ea92ddec8bb9/MuleClientTransactionTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/client/MuleClientTransactionTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14186, 1190, 503, 29591, 1435, 1216, 1185, 377, 288, 3639, 727, 490, 725, 1227, 1004, 273, 394, 490, 725, 1227, 5621, 3639, 727, 1635, 3458, 273, 394, 4317, 5621, 3639, 3458, 18, 458, 2932, 46, 3537, 7817, 774, 3113, 315, 10629, 774, 18, 4000, 8863, 3639, 3458, 18, 458, 12, 49, 725, 2297, 18, 49, 5595, 67, 15790, 67, 25142, 67, 9900, 16, 315, 5743, 8863, 7734, 368, 8953, 4332, 2389, 3639, 1323, 261, 2625, 18, 18149, 2932, 78, 959, 2207, 10629, 774, 18, 4000, 3113, 16291, 13, 480, 446, 13, 288, 540, 202, 759, 366, 7020, 838, 26244, 1023, 3639, 289, 3639, 490, 725, 3342, 809, 1715, 273, 394, 490, 725, 3342, 809, 5621, 3639, 1715, 18, 542, 1733, 12, 2704, 19870, 3342, 1733, 10663, 3639, 1715, 18, 542, 1803, 12, 2799, 51, 3342, 809, 18, 12249, 67, 1013, 29295, 67, 16061, 1769, 3639, 5947, 2283, 3574, 273, 394, 5947, 2283, 12, 5111, 16, 446, 1769, 3639, 775, 288, 5411, 3574, 18, 8837, 12, 2704, 5947, 2428, 1435, 288, 7734, 1071, 1033, 741, 382, 3342, 1435, 1216, 1185, 1171, 288, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2130, 31, 277, 27245, 288, 13491, 1004, 18, 4661, 2932, 78, 959, 2207, 3813, 18, 4000, 3113, 315, 4709, 2445, 11552, 883, 315, 397, 277, 16, 3458, 1769, 10792, 289, 10792, 604, 394, 1185, 5621, 7734, 289, 5411, 15549, 5411, 2321, 5621, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 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, 1071, 918, 1842, 14186, 1190, 503, 29591, 1435, 1216, 1185, 377, 288, 3639, 727, 490, 725, 1227, 1004, 273, 394, 490, 725, 1227, 5621, 3639, 727, 1635, 3458, 273, 394, 4317, 5621, 3639, 3458, 18, 458, 2932, 46, 3537, 7817, 774, 3113, 315, 10629, 774, 18, 4000, 8863, 3639, 3458, 18, 458, 12, 49, 725, 2297, 18, 49, 5595, 67, 15790, 67, 25142, 67, 9900, 16, 315, 5743, 8863, 7734, 368, 8953, 4332, 2389, 3639, 1323, 261, 2625, 18, 18149, 2932, 78, 959, 2207, 10629, 774, 18, 4000, 3113, 16291, 13, 480, 446, 13, 288, 540, 202, 759, 366, 7020, 838, 26244, 1023, 3639, 289, 3639, 490, 725, 3342, 809, 1715, 273, 394, 490, 725, 3342, 809, 5621, 2 ]
protected void fillFields(byte [] data, short size, int offset)
protected void fillFields(RecordInputStream in)
protected void fillFields(byte [] data, short size, int offset) { subrecords = new ArrayList(); int pos = offset; while (pos - offset <= size-2) // atleast one "short" must be present { short subRecordSid = LittleEndian.getShort(data, pos); short subRecordSize = -1; // set default to "< 0" if (pos-offset <= size-4) { // see if size info is present, else default to -1 subRecordSize = LittleEndian.getShort(data, pos + 2); } Record subRecord = SubRecord.createSubRecord(subRecordSid, subRecordSize, data, pos + 4); subrecords.add(subRecord); pos += subRecord.getRecordSize(); } }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/ada69333b277a95ccfc608144b991cfd8d1a9d37/ObjRecord.java/clean/src/java/org/apache/poi/hssf/record/ObjRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 2314, 12, 2115, 4348, 316, 13, 565, 288, 3639, 720, 7094, 273, 394, 2407, 5621, 3639, 509, 949, 273, 1384, 31, 3639, 1323, 261, 917, 300, 1384, 1648, 963, 17, 22, 13, 368, 20098, 1245, 315, 6620, 6, 1297, 506, 3430, 3639, 288, 5411, 3025, 720, 2115, 11067, 273, 11567, 18, 588, 4897, 12, 892, 16, 949, 1769, 5411, 3025, 720, 2115, 1225, 273, 300, 21, 31, 368, 444, 805, 358, 3532, 374, 6, 5411, 309, 261, 917, 17, 3348, 1648, 963, 17, 24, 13, 288, 368, 2621, 309, 963, 1123, 353, 3430, 16, 469, 805, 358, 300, 21, 7734, 720, 2115, 1225, 273, 11567, 18, 588, 4897, 12, 892, 16, 949, 397, 576, 1769, 5411, 289, 5411, 5059, 720, 2115, 273, 2592, 2115, 18, 2640, 1676, 2115, 12, 1717, 2115, 11067, 16, 720, 2115, 1225, 16, 501, 16, 949, 397, 1059, 1769, 5411, 720, 7094, 18, 1289, 12, 1717, 2115, 1769, 5411, 949, 1011, 720, 2115, 18, 588, 2115, 1225, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 2314, 12, 2115, 4348, 316, 13, 565, 288, 3639, 720, 7094, 273, 394, 2407, 5621, 3639, 509, 949, 273, 1384, 31, 3639, 1323, 261, 917, 300, 1384, 1648, 963, 17, 22, 13, 368, 20098, 1245, 315, 6620, 6, 1297, 506, 3430, 3639, 288, 5411, 3025, 720, 2115, 11067, 273, 11567, 18, 588, 4897, 12, 892, 16, 949, 1769, 5411, 3025, 720, 2115, 1225, 273, 300, 21, 31, 368, 444, 805, 358, 3532, 374, 6, 5411, 309, 261, 917, 17, 3348, 1648, 963, 17, 24, 13, 288, 368, 2621, 309, 963, 1123, 353, 3430, 16, 469, 805, 358, 300, 21, 7734, 720, 2115, 1225, 273, 11567, 18, 588, 4897, 12, 892, 16, 949, 397, 576, 1769, 2 ]
for (int i = 0; i < virtualProviders.length; i++) { if (virtualProviders[i].isVirtualRoot(id)) {
try { if (isCached(id)) {
public boolean hasItemState(ItemId id) { if (isCached(id)) { return true; } // check the virtual root ids (needed for overlay) for (int i = 0; i < virtualProviders.length; i++) { if (virtualProviders[i].isVirtualRoot(id)) { return true; } } // check if this manager has the item state if (hasNonVirtualItemState(id)) { return true; } // otherwise check virtual ones for (int i = 0; i < virtualProviders.length; i++) { if (virtualProviders[i].hasItemState(id)) { return true; } } return false; }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/3ad2165c197cae3f9cabaf2a0e5a1fb7569149fb/SharedItemStateManager.java/buggy/core/src/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1180, 1119, 12, 17673, 612, 13, 288, 3639, 309, 261, 291, 9839, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 368, 866, 326, 5024, 1365, 3258, 261, 17471, 364, 9218, 13, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5024, 10672, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 12384, 10672, 63, 77, 8009, 291, 6466, 2375, 12, 350, 3719, 288, 7734, 327, 638, 31, 5411, 289, 3639, 289, 3639, 368, 866, 309, 333, 3301, 711, 326, 761, 919, 3639, 309, 261, 5332, 3989, 6466, 1180, 1119, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 368, 3541, 866, 5024, 5945, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5024, 10672, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 12384, 10672, 63, 77, 8009, 5332, 1180, 1119, 12, 350, 3719, 288, 7734, 327, 638, 31, 5411, 289, 3639, 289, 3639, 327, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1180, 1119, 12, 17673, 612, 13, 288, 3639, 309, 261, 291, 9839, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 368, 866, 326, 5024, 1365, 3258, 261, 17471, 364, 9218, 13, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5024, 10672, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 12384, 10672, 63, 77, 8009, 291, 6466, 2375, 12, 350, 3719, 288, 7734, 327, 638, 31, 5411, 289, 3639, 289, 3639, 368, 866, 309, 333, 3301, 711, 326, 761, 919, 3639, 309, 261, 5332, 3989, 6466, 1180, 1119, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 368, 3541, 866, 5024, 5945, 3639, 364, 261, 474, 277, 273, 2 ]
public List getParameters() { return this.parameters; }
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/35dc200a52e3e2c26eade982e310f6c48668714d/DefaultFunctionCallExpr.java/buggy/src/java/main/org/jaxen/expr/DefaultFunctionCallExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 682, 588, 2402, 1435, 95, 2463, 2211, 18, 3977, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 682, 588, 2402, 1435, 95, 2463, 2211, 18, 3977, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rs.refreshRow();
public void testColumnCollations() throws Exception { Statement stmt = con.createStatement(); stmt.execute("create table #testColumnCollations (id int primary key, " + "cp437val varchar(255) collate SQL_Latin1_General_Cp437_CI_AS, " + "cp850val varchar(255) collate SQL_Latin1_General_Cp850_CI_AS, " + "ms874val varchar(255) collate Thai_CI_AS, " + "ms932val varchar(255) collate Japanese_CI_AS, " + "ms936val varchar(255) collate Chinese_PRC_CI_AS, " + "ms949val varchar(255) collate Korean_Wansung_CI_AS, " + "ms950val varchar(255) collate Chinese_Taiwan_Stroke_CI_AS, " + "cp1250val varchar(255) collate SQL_Romanian_Cp1250_CI_AS, " + "cp1252val varchar(255) collate SQL_Latin1_General_Cp1_CI_AS)"); ResultSet rs = stmt.executeQuery("select * from #testColumnCollations"); assertFalse(rs.next()); rs.close(); PreparedStatement pstmt = con.prepareStatement( "insert into #testColumnCollations " + "(id, cp437val, cp850val, ms874val, ms932val, " + "ms936val, ms949val, ms950val, cp1250val, cp1252val) " + "values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); // Test inserting and retrieving pure-ASCII values pstmt.setInt(1, 1); for (int i = 2; i <= 10; i++) { pstmt.setString(i, "test"); } assertEquals(1, pstmt.executeUpdate()); rs = stmt.executeQuery("select * from #testColumnCollations"); assertTrue(rs.next()); for (int i = 2; i <= 10; i++) { assertEquals("test", rs.getString(i)); } assertFalse(rs.next()); rs.close(); assertEquals(1, stmt.executeUpdate("delete from #testColumnCollations")); // Test inserting and retrieving charset-specific values via PreparedStatement String[] values = { "123abc\u2591\u2592\u2593\u221a\u221e\u03b1", "123abc\u00d5\u00f5\u2017\u00a5\u2591\u2592", "123abc\u20ac\u2018\u2019\u0e10\u0e1e\u0e3a", "123abc\uff67\uff68\uff9e\u60c6\u7210\ufa27", "123abc\u6325\u8140\u79a9\u9f1e\u9f32\ufa29", "123abc\uac4e\ub009\ubcde\u00de\u24d0\u30e5", "123abc\ufe4f\u00d7\uff5e\u515e\u65b0\u7881", "123abc\u20ac\u201a\u0103\u015e\u0162\u00f7", "123abc\u20ac\u201e\u017d\u00fe\u02dc\u00b8" }; for (int i = 2; i <= 10; i++) { pstmt.setString(i, values[i - 2]); } assertEquals(1, pstmt.executeUpdate()); pstmt.close(); rs = stmt.executeQuery("select * from #testColumnCollations"); assertTrue(rs.next()); for (int i = 2; i <= 10; i++) { assertEquals("Column " + i + " doesn't match", values[i - 2], rs.getString(i)); } assertFalse(rs.next()); rs.close(); pstmt.close(); stmt.close(); // Test inserting and retrieving charset-specific values via updateable ResultSet stmt = con.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); rs = stmt.executeQuery("select * from #testColumnCollations"); assertTrue(rs.next()); for (int i = 2; i <= 10; i++) { rs.updateString(i, rs.getString(i) + "updated"); values[i - 2] = values[i - 2] + "updated"; } rs.updateRow(); rs.refreshRow(); for (int i = 2; i <= 10; i++) { assertEquals("Column " + i + " doesn't match", values[i - 2], rs.getString(i)); } assertFalse(rs.next()); rs.close(); stmt.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/361d6997806f499d3df7264c40e6ad6e3a68375e/Tds8Test.java/clean/src/test/net/sourceforge/jtds/test/Tds8Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1494, 13535, 1012, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 2640, 1014, 468, 3813, 1494, 13535, 1012, 261, 350, 509, 3354, 498, 16, 315, 7734, 397, 315, 4057, 24, 6418, 1125, 30871, 12, 10395, 13, 4508, 340, 3063, 67, 6607, 267, 21, 67, 12580, 67, 28954, 24, 6418, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 4057, 28, 3361, 1125, 30871, 12, 10395, 13, 4508, 340, 3063, 67, 6607, 267, 21, 67, 12580, 67, 28954, 28, 3361, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 28, 5608, 1125, 30871, 12, 10395, 13, 4508, 340, 935, 10658, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 29, 1578, 1125, 30871, 12, 10395, 13, 4508, 340, 804, 30472, 3392, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 29, 5718, 1125, 30871, 12, 10395, 13, 4508, 340, 1680, 25331, 67, 8025, 39, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 29, 7616, 1125, 30871, 12, 10395, 13, 4508, 340, 1475, 479, 304, 67, 59, 634, 20651, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 29, 3361, 1125, 30871, 12, 10395, 13, 4508, 340, 1680, 25331, 67, 56, 10658, 91, 304, 67, 14602, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 4057, 2138, 3361, 1125, 30871, 12, 10395, 13, 4508, 340, 3063, 67, 54, 362, 304, 2779, 67, 28954, 2138, 3361, 67, 7266, 67, 3033, 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, 1494, 13535, 1012, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 2640, 1014, 468, 3813, 1494, 13535, 1012, 261, 350, 509, 3354, 498, 16, 315, 7734, 397, 315, 4057, 24, 6418, 1125, 30871, 12, 10395, 13, 4508, 340, 3063, 67, 6607, 267, 21, 67, 12580, 67, 28954, 24, 6418, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 4057, 28, 3361, 1125, 30871, 12, 10395, 13, 4508, 340, 3063, 67, 6607, 267, 21, 67, 12580, 67, 28954, 28, 3361, 67, 7266, 67, 3033, 16, 315, 7734, 397, 315, 959, 28, 5608, 1125, 30871, 12, 10395, 13, 4508, 340, 935, 10658, 67, 7266, 67, 3033, 16, 2 ]
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty();
public quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { quickfix.field.LegRatioQty value = new quickfix.field.LegRatioQty();
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/clean/src/java/src/quickfix/fix44/MarketDataRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 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, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 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 ]
defaultLatePPs.add(lpp);
synchronized (defaultLatePPs) { defaultLatePPs.add(lpp); }
public void addLatePropertyProvider(LatePropertyProvider lpp) { Collection c = lpp.getPropertyGroupsProvided(); if (c == null) { defaultLatePPs.add(lpp); } else { try { for (Iterator it = c.iterator(); it.hasNext(); ) { Class pgc = (Class) it.next(); ArrayList l = (ArrayList) latePPs.get(pgc); if (l == null) { l = new ArrayList(3); latePPs.put(pgc,l); } l.add(lpp); } } catch (ClassCastException e) { System.err.println("LatePropertyProvider "+lpp+" returned an illegal PropertyGroup spec:"); e.printStackTrace(); } } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/82cc83b6f4d5ba72794065b6c02bd53537fb2279/PrototypeRegistry.java/clean/core/src/org/cougaar/domain/planning/ldm/PrototypeRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 48, 340, 1396, 2249, 12, 48, 340, 1396, 2249, 328, 11858, 13, 288, 565, 2200, 276, 273, 328, 11858, 18, 588, 1396, 3621, 19254, 5621, 565, 309, 261, 71, 422, 446, 13, 288, 1377, 3852, 261, 1886, 48, 340, 6584, 87, 13, 288, 805, 48, 340, 6584, 87, 18, 1289, 12, 9953, 84, 1769, 289, 565, 289, 469, 288, 1377, 775, 288, 3639, 364, 261, 3198, 518, 273, 276, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1850, 1659, 7184, 71, 273, 261, 797, 13, 518, 18, 4285, 5621, 1850, 2407, 328, 273, 261, 19558, 13, 26374, 6584, 87, 18, 588, 12, 8365, 71, 1769, 1850, 309, 261, 80, 422, 446, 13, 288, 5411, 328, 273, 394, 2407, 12, 23, 1769, 5411, 26374, 6584, 87, 18, 458, 12, 8365, 71, 16, 80, 1769, 1850, 289, 1850, 328, 18, 1289, 12, 9953, 84, 1769, 3639, 289, 1377, 289, 1044, 261, 797, 22768, 425, 13, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 48, 340, 1396, 2249, 13773, 9953, 84, 9078, 2106, 392, 16720, 4276, 1114, 857, 2773, 1769, 3639, 425, 18, 1188, 6332, 5621, 1377, 289, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 48, 340, 1396, 2249, 12, 48, 340, 1396, 2249, 328, 11858, 13, 288, 565, 2200, 276, 273, 328, 11858, 18, 588, 1396, 3621, 19254, 5621, 565, 309, 261, 71, 422, 446, 13, 288, 1377, 3852, 261, 1886, 48, 340, 6584, 87, 13, 288, 805, 48, 340, 6584, 87, 18, 1289, 12, 9953, 84, 1769, 289, 565, 289, 469, 288, 1377, 775, 288, 3639, 364, 261, 3198, 518, 273, 276, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1850, 1659, 7184, 71, 273, 261, 797, 13, 518, 18, 4285, 5621, 1850, 2407, 328, 273, 261, 19558, 13, 26374, 6584, 87, 18, 588, 12, 8365, 71, 1769, 1850, 309, 261, 80, 422, 446, 13, 288, 2 ]
private Structure getStructureRanges(int pos , Structure s ) throws StructureException{ Structure newStruc = new StructureImpl(); // check if the alignment has an object detail "region" for this // if yes = restrict the used structure... Annotation[] objects = alignment.getObjects(); Annotation object = objects[pos]; if ( object.containsProperty("details")){ List details = (List) object.getProperty("details"); newStruc.setPDBCode(s.getPDBCode()); newStruc.setHeader(s.getHeader()); for ( int det = 0 ; det< details.size();det++) { Annotation detanno = (Annotation) details.get(det); String property = (String)detanno.getProperty("property"); if ( property.equals("region")){ String detail = (String) detanno.getProperty("detail"); // split up the structure and add the region to the new structure... int cpos = detail.indexOf(":"); String chainId = " "; if ( cpos > 0) { chainId = detail.substring(0,cpos); detail = detail.substring(cpos+1,detail.length()); } else { detail = detail.substring(1,detail.length()); } System.out.println(detail + " " + cpos + " " + chainId); String[] spl = detail.split("-"); if ( spl.length != 2) continue; String start = spl[0]; String end = spl[1]; System.out.println("start " + start + " end " + end); Chain c = s.getChainByPDB(chainId); Group[] groups = c.getGroupsByPDB(start,end); Chain nc = new ChainImpl (); nc.setName(chainId); boolean knownChain = false; try { nc = newStruc.findChain(chainId); knownChain = true; } catch (Exception e){} for (int g=0;g<groups.length;g++){ Group gr = groups[g]; nc.addGroup(gr); } if ( ! knownChain) newStruc.addChain(nc); } } } if (newStruc.size() > 0){ return newStruc; } else return null; }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/204b10b1100446b304f6d263d5522d1aeb8e212e/StructureAlignment.java/clean/src/org/biojava/spice/StructureAlignment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 13348, 18730, 9932, 12, 474, 949, 269, 13348, 272, 262, 1216, 13348, 503, 95, 7734, 13348, 394, 1585, 5286, 273, 394, 13348, 2828, 5621, 7734, 368, 866, 309, 326, 8710, 711, 392, 733, 7664, 315, 6858, 6, 364, 333, 3639, 368, 309, 12465, 273, 13108, 326, 1399, 3695, 2777, 3639, 6090, 8526, 2184, 273, 8710, 18, 588, 4710, 5621, 3639, 6090, 733, 273, 2184, 63, 917, 15533, 3639, 309, 261, 733, 18, 12298, 1396, 2932, 6395, 6, 3719, 95, 5411, 987, 3189, 273, 261, 682, 13, 733, 18, 588, 1396, 2932, 6395, 8863, 13491, 394, 1585, 5286, 18, 542, 52, 2290, 1085, 12, 87, 18, 588, 52, 2290, 1085, 10663, 5411, 394, 1585, 5286, 18, 542, 1864, 12, 87, 18, 588, 1864, 10663, 13491, 364, 261, 509, 3023, 273, 374, 274, 3023, 32, 3189, 18, 1467, 5621, 8238, 27245, 288, 7734, 6090, 3023, 1072, 83, 273, 261, 3257, 13, 3189, 18, 588, 12, 8238, 1769, 7734, 514, 1272, 273, 261, 780, 13, 8238, 1072, 83, 18, 588, 1396, 2932, 4468, 8863, 7734, 309, 261, 1272, 18, 14963, 2932, 6858, 6, 3719, 95, 10792, 514, 7664, 273, 261, 780, 13, 3023, 1072, 83, 18, 588, 1396, 2932, 8992, 8863, 4766, 3639, 368, 1416, 731, 326, 3695, 471, 527, 326, 3020, 358, 326, 394, 3695, 2777, 10792, 509, 276, 917, 273, 7664, 18, 31806, 2932, 2773, 1769, 10792, 514, 2687, 548, 273, 315, 13636, 4766, 3639, 309, 261, 276, 917, 405, 374, 13, 288, 13491, 2687, 548, 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, 13348, 18730, 9932, 12, 474, 949, 269, 13348, 272, 262, 1216, 13348, 503, 95, 7734, 13348, 394, 1585, 5286, 273, 394, 13348, 2828, 5621, 7734, 368, 866, 309, 326, 8710, 711, 392, 733, 7664, 315, 6858, 6, 364, 333, 3639, 368, 309, 12465, 273, 13108, 326, 1399, 3695, 2777, 3639, 6090, 8526, 2184, 273, 8710, 18, 588, 4710, 5621, 3639, 6090, 733, 273, 2184, 63, 917, 15533, 3639, 309, 261, 733, 18, 12298, 1396, 2932, 6395, 6, 3719, 95, 5411, 987, 3189, 273, 261, 682, 13, 733, 18, 588, 1396, 2932, 6395, 8863, 13491, 394, 1585, 5286, 18, 542, 52, 2290, 1085, 12, 87, 18, 588, 52, 2290, 1085, 10663, 5411, 394, 1585, 5286, 18, 542, 1864, 2 ]
case ts.WHILE: {
case TokenStream.WHILE: {
private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case ts.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case ts.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case ts.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case ts.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case ts.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case ts.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case ts.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case ts.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case ts.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case ts.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case ts.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case ts.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case ts.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case ts.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case ts.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case ts.ERROR: // Fall thru, to have a node for error recovery to work on case ts.EOL: case ts.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/40ff06028a06e98171197c83b9b067a0c12f72ae/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 16, 1084, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 16, 1084, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 1084, 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, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2 ]
return ConvertUtils.tokensToArray(parameter,getTokenSep()); /*
public String[] tokenize(String parameter) { StringTokenizer tokenizer = new StringTokenizer(parameter,getTokenSep()); int i = 0; String[] tokens = new String[tokenizer.countTokens()]; while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken().trim(); if ((token==null) || (token.length()==0)) continue; tokens[i++] = token; } return tokens; } // end tokenize()
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/c6b21c47cf09a5e5ee8a3c0bcb728b30ab4b55b4/BaseAction.java/clean/scaffold/src/java/org/apache/struts/scaffold/BaseAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 1071, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 514, 8526, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 13672, 12, 780, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 1569, 13, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 288, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 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, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 225, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 1071, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 514, 8526, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 13672, 12, 780, 327, 4037, 1989, 18, 7860, 11698, 12, 6775, 16, 588, 1345, 5097, 10663, 225, 1748, 1569, 13, 327, 4037, 2 ]
}
public void onSuccess(ClientPutState state) { synchronized(this) { if(finished) return; waitingFor.remove(state); if(!(waitingFor.isEmpty() && started)) return; } /* Using this.e here will cause complete to consider the * insert as failed if onFailed has been called in the past * for this request. This makes collisions work. It does * mean that onSuccess gets called, and then we consider * the insert to have failed, which may or may not make sense. */ complete(this.e); }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/MultiPutCompletionCallback.java/clean/src/freenet/client/async/MultiPutCompletionCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 20241, 1290, 18, 4479, 12, 2019, 1769, 1082, 202, 430, 12, 5, 12, 20241, 1290, 18, 291, 1921, 1435, 597, 5746, 3719, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 20308, 11637, 333, 18, 73, 2674, 903, 4620, 3912, 358, 5260, 326, 1082, 380, 2243, 487, 2535, 309, 603, 2925, 711, 2118, 2566, 316, 326, 8854, 1082, 380, 364, 333, 590, 18, 1220, 7297, 27953, 1440, 18, 2597, 1552, 1082, 380, 3722, 716, 20613, 5571, 2566, 16, 471, 1508, 732, 5260, 1082, 380, 326, 2243, 358, 1240, 2535, 16, 1492, 2026, 578, 2026, 486, 1221, 12764, 18, 1082, 1195, 202, 202, 6226, 12, 2211, 18, 73, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 20241, 1290, 18, 4479, 12, 2019, 1769, 1082, 202, 430, 12, 5, 12, 20241, 1290, 18, 291, 1921, 1435, 597, 5746, 3719, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 20308, 11637, 333, 18, 73, 2674, 903, 4620, 3912, 358, 5260, 326, 1082, 380, 2243, 487, 2535, 309, 603, 2925, 711, 2118, 2566, 316, 326, 8854, 1082, 380, 364, 333, 590, 18, 1220, 7297, 27953, 1440, 18, 2597, 1552, 1082, 380, 3722, 716, 20613, 5571, 2566, 16, 471, 1508, 732, 5260, 1082, 380, 326, 2243, 358, 1240, 2535, 16, 2 ]
if(variableIsAssigned(variable, context)){
if(VariableAccessUtils.variableIsAssigned(variable, context)){
private static boolean collectionContentsAreUpdated(PsiVariable variable, PsiElement context){ if(collectionUpdateCalled(variable, context)){ return true; } final PsiExpression initializer = variable.getInitializer(); if(initializer != null && !isEmptyCollectionInitializer(initializer)){ return true; } if(variableIsAssigned(variable, context)){ return true; } if(variableIsAssignedFrom(variable, context)){ return true; } return variableIsPassedAsMethodArgument(variable, context); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/53dc2c87dffe1d7a7f9334690a18ec0520e31630/MismatchedCollectionQueryUpdateInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/MismatchedCollectionQueryUpdateInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 1849, 6323, 4704, 7381, 12, 52, 7722, 3092, 2190, 16, 4766, 13491, 453, 7722, 1046, 819, 15329, 3639, 309, 12, 5548, 1891, 8185, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 12562, 273, 2190, 18, 588, 14729, 5621, 3639, 309, 12, 22181, 480, 446, 597, 401, 291, 1921, 2532, 14729, 12, 22181, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 3092, 1862, 1989, 18, 6105, 2520, 20363, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 6105, 2520, 20363, 1265, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 327, 2190, 2520, 22530, 1463, 1305, 1379, 12, 6105, 16, 819, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 1849, 6323, 4704, 7381, 12, 52, 7722, 3092, 2190, 16, 4766, 13491, 453, 7722, 1046, 819, 15329, 3639, 309, 12, 5548, 1891, 8185, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 12562, 273, 2190, 18, 588, 14729, 5621, 3639, 309, 12, 22181, 480, 446, 597, 401, 291, 1921, 2532, 14729, 12, 22181, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 3092, 1862, 1989, 18, 6105, 2520, 20363, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 6105, 2520, 20363, 1265, 12, 6105, 16, 819, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 327, 2190, 2520, 22530, 2 ]
message = "File does not exist."
message = "File does not exist.";
public void doTag(XMLOutput output) throws JellyTagException { String message = getBodyText(); if (message == null || message.length() == 0) { message = "File does not exist." } if (file == null) { fail(message, "file given is null"); } else { if (!file.exists()) { fail(message); } } } /** * The file to be tested. If this file exists, the test will pass. * @param aFile the file to test. */ public void setFile(File aFile) { file = aFile; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/fe7eb17e30f727223212795980a010b09274c5b6/AssertFileExistsTag.java/buggy/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 1805, 12, 4201, 1447, 876, 13, 1216, 804, 292, 715, 1805, 503, 565, 288, 3639, 514, 883, 273, 7587, 1528, 5621, 3639, 309, 261, 2150, 422, 446, 747, 883, 18, 2469, 1435, 422, 374, 13, 3639, 288, 5411, 883, 273, 315, 812, 1552, 486, 1005, 1199, 31, 3639, 289, 7734, 309, 261, 768, 422, 446, 13, 3639, 288, 5411, 2321, 12, 2150, 16, 315, 768, 864, 353, 446, 8863, 3639, 289, 3639, 469, 3639, 288, 5411, 309, 16051, 768, 18, 1808, 10756, 5411, 288, 7734, 2321, 12, 2150, 1769, 5411, 289, 3639, 289, 202, 97, 3639, 1783, 377, 380, 1021, 585, 358, 506, 18432, 18, 971, 333, 585, 1704, 16, 326, 1842, 903, 1342, 18, 377, 380, 632, 891, 279, 812, 326, 585, 358, 1842, 18, 377, 1195, 565, 1071, 918, 19658, 12, 812, 279, 812, 13, 565, 288, 3639, 585, 273, 279, 812, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 741, 1805, 12, 4201, 1447, 876, 13, 1216, 804, 292, 715, 1805, 503, 565, 288, 3639, 514, 883, 273, 7587, 1528, 5621, 3639, 309, 261, 2150, 422, 446, 747, 883, 18, 2469, 1435, 422, 374, 13, 3639, 288, 5411, 883, 273, 315, 812, 1552, 486, 1005, 1199, 31, 3639, 289, 7734, 309, 261, 768, 422, 446, 13, 3639, 288, 5411, 2321, 12, 2150, 16, 315, 768, 864, 353, 446, 8863, 3639, 289, 3639, 469, 3639, 288, 5411, 309, 16051, 768, 18, 1808, 10756, 5411, 288, 7734, 2321, 12, 2150, 1769, 5411, 289, 3639, 289, 202, 97, 3639, 1783, 377, 380, 1021, 585, 358, 506, 18432, 18, 971, 333, 585, 1704, 16, 326, 1842, 903, 1342, 2 ]
int delimLength = delim.length(); int newLineEnd = lineOffset + lineLength - delimLength; theDocument.replace(newLineEnd, delimLength, null);
if (delim != null) { int delimLength = delim.length(); int newLineEnd = lineOffset + lineLength - delimLength; theDocument.replace(newLineEnd, delimLength, null); }
public void run() { // Make sure we can proceed. if ((theEditor != null) && isEnabled() && canModifyEditor()) { // Retrieve the current editor's document IDocument theDocument = getDocument(theEditor); if (theDocument != null) { try { // First, retrieve the current selection ITextSelection theSelection = getSelection(theEditor); if (theSelection != null) { // Now, figure out the end line of the selection int currentLine = theSelection.getEndLine(); // What's the offset of this line in the document? int lineOffset = theDocument.getLineOffset(currentLine); // And the length of the line? int lineLength = theDocument.getLineLength(currentLine); // What delimeter do we have? String delim = theDocument.getLineDelimiter(currentLine); // How long is it? int delimLength = delim.length(); // Now back track to the last real char in the line int newLineEnd = lineOffset + lineLength - delimLength; // Replace the delimter char(s) with nothing theDocument.replace(newLineEnd, delimLength, null); } } catch (BadLocationException e) { e.printStackTrace(); } } // end of if (document) } // end of isEnabled() } // end of run
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a83a5ccd71beb0ea72f96cdb2df33dede2b9c7c8/JoinLinesAction.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/JoinLinesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 4344, 3071, 732, 848, 11247, 18, 202, 202, 430, 14015, 5787, 6946, 480, 446, 13, 597, 12047, 1435, 597, 848, 11047, 6946, 10756, 288, 25083, 202, 759, 10708, 326, 783, 4858, 1807, 1668, 1082, 202, 734, 504, 650, 326, 2519, 273, 9956, 12, 5787, 6946, 1769, 25083, 202, 430, 261, 5787, 2519, 480, 446, 13, 288, 6862, 9506, 202, 698, 288, 6862, 25083, 202, 759, 5783, 16, 4614, 326, 783, 4421, 6862, 202, 1285, 408, 6233, 326, 6233, 273, 23204, 12, 5787, 6946, 1769, 6862, 25083, 202, 430, 261, 5787, 6233, 480, 446, 13, 288, 6862, 6862, 1082, 202, 759, 4494, 16, 7837, 596, 326, 679, 980, 434, 326, 4421, 25083, 202, 474, 22325, 273, 326, 6233, 18, 588, 1638, 1670, 5621, 6862, 6862, 9506, 202, 759, 18734, 1807, 326, 1384, 434, 333, 980, 316, 326, 1668, 35, 25083, 202, 474, 980, 2335, 273, 326, 2519, 18, 588, 1670, 2335, 12, 2972, 1670, 1769, 6862, 6862, 9506, 202, 759, 7835, 326, 769, 434, 326, 980, 35, 25083, 202, 474, 980, 1782, 273, 326, 2519, 18, 588, 1670, 1782, 12, 2972, 1670, 1769, 6862, 6862, 9506, 202, 759, 18734, 10508, 847, 741, 732, 1240, 35, 25083, 202, 780, 10508, 273, 326, 2519, 18, 588, 1670, 12007, 12, 2972, 1670, 1769, 6862, 6862, 9506, 202, 759, 9017, 1525, 353, 518, 35, 25083, 202, 474, 10508, 1782, 273, 10508, 18, 2469, 5621, 6862, 6862, 9506, 202, 759, 4494, 1473, 3298, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 4344, 3071, 732, 848, 11247, 18, 202, 202, 430, 14015, 5787, 6946, 480, 446, 13, 597, 12047, 1435, 597, 848, 11047, 6946, 10756, 288, 25083, 202, 759, 10708, 326, 783, 4858, 1807, 1668, 1082, 202, 734, 504, 650, 326, 2519, 273, 9956, 12, 5787, 6946, 1769, 25083, 202, 430, 261, 5787, 2519, 480, 446, 13, 288, 6862, 9506, 202, 698, 288, 6862, 25083, 202, 759, 5783, 16, 4614, 326, 783, 4421, 6862, 202, 1285, 408, 6233, 326, 6233, 273, 23204, 12, 5787, 6946, 1769, 6862, 25083, 202, 430, 261, 5787, 6233, 480, 446, 13, 288, 6862, 6862, 1082, 202, 759, 4494, 16, 7837, 596, 326, 679, 980, 434, 326, 2 ]
orderedStatuses = new Status[statusesMap.size()]; it = statusesMap.values().iterator(); k =0; while(it.hasNext()){ orderedStatuses[k++]=(Status)it.next(); } Arrays.sort(orderedStatuses);
protected static Map[] parseMapProperties() throws FileNotFoundException, IOException { log.debug("Parsing map.properties..."); severitiesMap = new HashMap(); statusesMap = new HashMap(); availsMap = new HashMap(); assetFields = new ArrayList(); // read the file Properties props = new Properties(); props.load(new FileInputStream(MapPropertiesFactory.mapPropertiesFile)); // look up severities and their properties String[] severities = BundleLists.parseBundleList(props.getProperty("severities")); for (int i = 0; i < severities.length; i++) { String id = props.getProperty("severity." + severities[i] + ".id"); String label = props.getProperty("severity." + severities[i] + ".label"); String color = props.getProperty("severity." + severities[i] + ".color"); String flash = props.getProperty("severity." + severities[i] + ".flash"); Severity sev = new Severity(Integer.parseInt(id),label,color); if (flash != null && flash.equalsIgnoreCase("true")) sev.setFlash(true); log.debug("found severity "+severities[i]+" with id="+id+", label="+label+", color="+color+ ". Adding it."); severitiesMap.put(label, sev); } // look up statuses and their properties String[] statuses = BundleLists.parseBundleList(props.getProperty("statuses")); for (int i = 0; i < statuses.length; i++) { String id = props.getProperty("status." + statuses[i] + ".id"); String uei = props.getProperty("status." + statuses[i] + ".uei"); String color = props.getProperty("status." + statuses[i] + ".color"); String text = props.getProperty("status." + statuses[i] + ".text"); log.debug("found status "+statuses[i]+" with id="+id+", uei="+uei+", color="+color+ ", text="+text+ ". Adding it."); Status status = new Status(Integer.parseInt(id),uei,color,text); statusesMap.put(uei, status); } // look up statuses and their properties String[] availes = BundleLists.parseBundleList(props.getProperty("availabilities")); for (int i = 0; i < availes.length; i++) { String id = props.getProperty("avail." + availes[i] + ".id"); String min = props.getProperty("avail." + availes[i] + ".min"); String color = props.getProperty("avail." + availes[i] + ".color"); String flash = props.getProperty("avail." + availes[i] + ".flash"); log.debug("found avail "+statuses[i]+" with id="+id+", min="+min+", color="+color+ ". Adding it."); Avail avail = new Avail(Integer.parseInt(id),Integer.parseInt(min),color); if (flash != null && flash.equalsIgnoreCase("true")) avail.setFlash(true); availsMap.put(min, avail); } // look up asset fields String assets =props.getProperty("assets"); if(assets!=null){ String[] assFields = BundleLists.parseBundleList(props.getProperty("assets")); assetFields = Arrays.asList(assFields); } propertiesMaps = new Map[] { severitiesMap, statusesMap, availsMap }; return (propertiesMaps); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/069d0e7b3a96289b7c94aecc6c8a14fee3498895/MapPropertiesFactory.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/config/MapPropertiesFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 282, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 282, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 282, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 225, 4750, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 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, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 282, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 18, 1467, 1435, 15533, 518, 273, 13516, 863, 18, 2372, 7675, 9838, 5621, 417, 273, 20, 31, 1323, 12, 305, 18, 5332, 2134, 10756, 95, 5901, 15220, 63, 79, 9904, 65, 28657, 1482, 13, 305, 18, 4285, 5621, 289, 5647, 18, 3804, 12, 9885, 15220, 1769, 282, 5901, 15220, 273, 394, 2685, 63, 21655, 863, 2 ]
return "Boolean method name must start with question word #loc";
return "Boolean method name '#ref' does not start with question word #loc";
public String buildErrorString(PsiElement location){ return "Boolean method name must start with question word #loc"; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/BooleanMethodNameMustStartWithQuestionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/naming/BooleanMethodNameMustStartWithQuestionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 327, 315, 5507, 707, 508, 2946, 1734, 11, 1552, 486, 787, 598, 5073, 2076, 468, 1829, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 327, 315, 5507, 707, 508, 2946, 1734, 11, 1552, 486, 787, 598, 5073, 2076, 468, 1829, 14432, 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 ]
DenseSegmentDataset data = new DenseSegmentDataset(); datas[i] = data; data.segment = segments[i]; data.values = new Object[n];
datas[i] = sparse ? new SparseSegmentDataset(segments[i]) : new DenseSegmentDataset(segments[i], new Object[n]);
static void load(Segment[] segments, Collection pinnedSegments) { Segment segment0 = segments[0]; RolapStar star = segment0.aggregation.star; RolapStar.Column[] columns = segment0.aggregation.columns; int arity = columns.length; SqlQuery sqlQuery; try { sqlQuery = new SqlQuery( star.getJdbcConnection().getMetaData()); } catch (SQLException e) { throw Util.getRes().newInternal("while loading segment", e); } // add constraining dimensions for (int i = 0; i < arity; i++) { Object[] constraints = segments[0].axes[i].constraints; RolapStar.Column column = columns[i]; RolapStar.Table table = column.table; if (table.isFunky()) { // this is a funky dimension -- ignore for now continue; } table.addToFrom(sqlQuery, false, true); String expr = column.getExpression(sqlQuery); if (constraints != null) { sqlQuery.addWhere( expr + " in " + column.quoteValues(constraints)); } sqlQuery.addSelect(expr); sqlQuery.addGroupBy(expr); } // add measures for (int i = 0; i < segments.length; i++) { Segment segment = segments[i]; RolapStar.Measure measure = segment.measure; Util.assertTrue(measure.table == star.factTable); if (i > 0) { Util.assertTrue(segment.aggregation == segment0.aggregation); int n = segment.axes.length; Util.assertTrue(n == segment0.axes.length); for (int j = 0; j < segment.axes.length; j++) { // We only require that the two arrays have the same // contents, we but happen to know they are the same array, // because we constructed them at the same time. Util.assertTrue( segment.axes[j].constraints == segment0.axes[j].constraints); } } star.factTable.addToFrom(sqlQuery, false, true); sqlQuery.addSelect( measure.aggregator + "(" + measure.getExpression(sqlQuery) + ")"); } // execute String sql = sqlQuery.toString(); ResultSet resultSet = null; final int measureCount = segments.length; try { resultSet = RolapUtil.executeQuery( star.getJdbcConnection(), sql, "Segment.load"); ArrayList rows = new ArrayList(); while (resultSet.next()) { Object[] row = new Object[arity + measureCount]; // get the columns int k = 1; for (int i = 0; i < arity; i++) { Object o = resultSet.getObject(k++); HashMap h = segment0.axes[i].mapKeyToOffset; Integer offsetInteger = (Integer) h.get(o); if (offsetInteger == null) { h.put(o, new Integer(h.size())); } row[i] = o; } // get the measure for (int i = 0; i < measureCount; i++) { Segment segment = segments[i]; Object o = resultSet.getObject(k++); if (o == null) { o = Util.nullValue; // convert to placeholder } row[arity + i] = o; } rows.add(row); } // figure out size of dense array, and allocate it (todo: use // sparse array sometimes) int n = 1; for (int i = 0; i < arity; i++) { Aggregation.Axis axis = segment0.axes[i]; int size = axis.mapKeyToOffset.size(); axis.keys = new Object[size]; for (Iterator keys = axis.mapKeyToOffset.keySet().iterator(); keys.hasNext();) { Object key = keys.next(); Integer offsetInteger = (Integer) axis.mapKeyToOffset.get(key); int offset = offsetInteger.intValue(); Util.assertTrue(axis.keys[offset] == null); axis.keys[offset] = key; } n *= size; } DenseSegmentDataset[] datas = new DenseSegmentDataset[segments.length]; for (int i = 0; i < segments.length; i++) { DenseSegmentDataset data = new DenseSegmentDataset(); datas[i] = data; data.segment = segments[i]; data.values = new Object[n]; } // now convert the rows into a dense array for (int i = 0, count = rows.size(); i < count; i++) { Object[] row = (Object[]) rows.get(i); int k = 0; for (int j = 0; j < arity; j++) { k *= segment0.axes[j].keys.length; Object o = row[j]; Aggregation.Axis axis = segment0.axes[j]; Integer offsetInteger = (Integer) axis.mapKeyToOffset.get(o); int offset = offsetInteger.intValue(); k += offset; } for (int j = 0; j < segments.length; j++) { datas[j].values[k] = row[arity + j]; } } for (int i = 0; i < segments.length; i++) { Segment segment = segments[i]; segment.setData(datas[i], segments[0].axes, pinnedSegments); } } catch (SQLException e) { throw Util.getRes().newInternal( "while loading segment; sql=[" + sql + "]", e); } finally { try { if (resultSet != null) { resultSet.getStatement().close(); resultSet.close(); } } catch (SQLException e) { // ignore } } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/2424ff77609b115fe47ef73b530729920441b9e2/Segment.java/buggy/src/main/mondrian/rolap/agg/Segment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1262, 12, 4131, 8526, 5155, 16, 2200, 26193, 7946, 13, 288, 202, 202, 4131, 3267, 20, 273, 5155, 63, 20, 15533, 202, 202, 4984, 438, 18379, 10443, 273, 3267, 20, 18, 22082, 18, 10983, 31, 202, 202, 4984, 438, 18379, 18, 1494, 8526, 2168, 273, 3267, 20, 18, 22082, 18, 5112, 31, 202, 202, 474, 19353, 273, 2168, 18, 2469, 31, 202, 202, 5101, 1138, 24451, 31, 202, 202, 698, 288, 1082, 202, 4669, 1138, 273, 394, 8855, 1138, 12, 9506, 202, 10983, 18, 588, 25316, 1952, 7675, 588, 6998, 10663, 202, 202, 97, 1044, 261, 23116, 425, 13, 288, 1082, 202, 12849, 3564, 18, 588, 607, 7675, 2704, 3061, 2932, 17523, 7153, 3267, 3113, 425, 1769, 202, 202, 97, 202, 202, 759, 527, 14472, 3280, 5769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 19353, 31, 277, 27245, 288, 1082, 202, 921, 8526, 6237, 273, 5155, 63, 20, 8009, 10855, 63, 77, 8009, 11967, 31, 1082, 202, 4984, 438, 18379, 18, 1494, 1057, 273, 2168, 63, 77, 15533, 1082, 202, 4984, 438, 18379, 18, 1388, 1014, 273, 1057, 18, 2121, 31, 1082, 202, 430, 261, 2121, 18, 291, 42, 1683, 93, 10756, 288, 9506, 202, 759, 333, 353, 279, 284, 1683, 93, 4968, 1493, 2305, 364, 2037, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 2121, 18, 1289, 774, 1265, 12, 4669, 1138, 16, 629, 16, 638, 1769, 1082, 202, 780, 3065, 273, 1057, 18, 588, 2300, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1262, 12, 4131, 8526, 5155, 16, 2200, 26193, 7946, 13, 288, 202, 202, 4131, 3267, 20, 273, 5155, 63, 20, 15533, 202, 202, 4984, 438, 18379, 10443, 273, 3267, 20, 18, 22082, 18, 10983, 31, 202, 202, 4984, 438, 18379, 18, 1494, 8526, 2168, 273, 3267, 20, 18, 22082, 18, 5112, 31, 202, 202, 474, 19353, 273, 2168, 18, 2469, 31, 202, 202, 5101, 1138, 24451, 31, 202, 202, 698, 288, 1082, 202, 4669, 1138, 273, 394, 8855, 1138, 12, 9506, 202, 10983, 18, 588, 25316, 1952, 7675, 588, 6998, 10663, 202, 202, 97, 1044, 261, 23116, 425, 13, 288, 1082, 202, 12849, 3564, 18, 588, 607, 7675, 2704, 3061, 2932, 17523, 7153, 3267, 3113, 2 ]
public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) {
public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) {
public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) { update(draggedObject, location, dragRectangle); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/04aabdd41be60938c86dabee86663a60046dd26c/PerspectiveSwitcher.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 453, 414, 16772, 7544, 2326, 12, 921, 8823, 2423, 921, 16, 4686, 2117, 16, 225, 13264, 8823, 19463, 13, 288, 6862, 202, 2725, 12, 15997, 2423, 921, 16, 2117, 16, 8823, 19463, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4697, 202, 482, 453, 414, 16772, 7544, 2326, 12, 921, 8823, 2423, 921, 16, 4686, 2117, 16, 225, 13264, 8823, 19463, 13, 288, 6862, 202, 2725, 12, 15997, 2423, 921, 16, 2117, 16, 8823, 19463, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
TableCreator.sendQuery(db,
DatabaseManager.sendQuery(db,
public static void createTables(final Hsqldb db) { //sendQuery(db, // "SET IGNORECASE TRUE"); TableCreator.sendQuery(db, "CREATE CACHED TABLE indexCategories (" + "id INTEGER IDENTITY NOT NULL," + "name VARCHAR(255) NOT NULL," + "positionInTree INTEGER NOT NULL," + "modifiableIndexes BOOLEAN NOT NULL," /* Obsolete */ + "parent INTEGER NULL," + "PRIMARY KEY (id)," + "FOREIGN KEY (parent) REFERENCES indexCategories (id))"); TableCreator.sendQuery(db, "CREATE CACHED TABLE indexes (" + "id INTEGER IDENTITY NOT NULL, " + "originalName VARCHAR(255) NOT NULL, " + "displayName VARCHAR(255) NULL, " + "publicKey VARCHAR(255) NOT NULL, " + "privateKey VARCHAR(255) NULL, " + "author VARCHAR(255) NULL, " + "positionInTree INTEGER NOT NULL, " + "revision INTEGER NOT NULL, " + "parent INTEGER NULL, " + "PRIMARY KEY (id), " + "FOREIGN KEY (parent) REFERENCES indexCategories (id))"); TableCreator.sendQuery(db, "CREATE CACHED TABLE categories (" + "id INTEGER IDENTITY NOT NULL," + "name VARCHAR(255) NOT NULL)"); TableCreator.sendQuery(db, "CREATE CACHED TABLE files (" + "id INTEGER IDENTITY NOT NULL," + "filename VARCHAR(255) NOT NULL," + "publicKey VARCHAR(350) NOT NULL," // key ~= 100 + filename == 255 max => 350 + "localPath VARCHAR(500) NULL," + "mime VARCHAR(50) NULL," + "size BIGINT NOT NULL," + "category INTEGER NULL," + "indexParent INTEGER NOT NULL," + "PRIMARY KEY (id)," + "FOREIGN KEY (indexParent) REFERENCES indexes (id)," + "FOREIGN KEY (category) REFERENCES categories (id))"); TableCreator.sendQuery(db, "CREATE CACHED TABLE links (" + "id INTEGER IDENTITY NOT NULL," + "publicKey VARCHAR(350) NOT NULL," // key ~= 100 + filename == 255 max + "mark INTEGER NOT NULL," + "comment VARCHAR(512) NOT NULL," + "indexParent INTEGER NOT NULL," + "indexTarget INTEGER NULL," + "PRIMARY KEY (id)," + "FOREIGN KEY (indexParent) REFERENCES indexes (id)," + "FOREIGN KEY (indexTarget) REFERENCES indexes (id))"); TableCreator.sendQuery(db, "CREATE CACHED TABLE metadataNames (" + "id INTEGER IDENTITY NOT NULL," + "name VARCHAR(255) NOT NULL," + "PRIMARY KEY (id))"); TableCreator.sendQuery(db, "CREATE CACHED TABLE metadatas (" + "id INTEGER IDENTITY NOT NULL," + "nameId INTEGER NOT NULL," + "value VARCHAR(255) NOT NULL," + "fileId INTEGER NOT NULL," + "PRIMARY KEY (id)," + "FOREIGN KEY (fileId) REFERENCES files (id)," + "FOREIGN KEY (nameId) REFERENCES metadataNames (id))"); }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/ce561fcd3edc88f57160f70c09f6dc71d6151a17/DatabaseManager.java/buggy/src/thaw/plugins/index/DatabaseManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 752, 6905, 12, 6385, 31714, 1966, 1319, 13, 288, 202, 202, 759, 4661, 1138, 12, 1966, 16, 202, 202, 759, 202, 225, 315, 4043, 28557, 5383, 8863, 202, 202, 1388, 10636, 18, 4661, 1138, 12, 1966, 16, 9506, 225, 315, 9344, 6425, 15023, 7567, 770, 10487, 7566, 9506, 225, 397, 315, 350, 16481, 1599, 11101, 4269, 3206, 10837, 9506, 225, 397, 315, 529, 27915, 12, 10395, 13, 4269, 3206, 10837, 9506, 225, 397, 315, 3276, 382, 2471, 16481, 4269, 3206, 10837, 9506, 225, 397, 315, 13388, 8639, 18993, 4269, 3206, 10837, 1748, 531, 2038, 19513, 1195, 9506, 225, 397, 315, 2938, 16481, 3206, 10837, 9506, 225, 397, 315, 18864, 5311, 261, 350, 3631, 6, 9506, 225, 397, 315, 11701, 10452, 5311, 261, 2938, 13, 22898, 55, 770, 10487, 261, 350, 30743, 1769, 202, 202, 1388, 10636, 18, 4661, 1138, 12, 1966, 16, 9506, 225, 315, 9344, 6425, 15023, 7567, 5596, 7566, 9506, 225, 397, 315, 350, 16481, 1599, 11101, 4269, 3206, 16, 315, 9506, 225, 397, 315, 8830, 461, 27915, 12, 10395, 13, 4269, 3206, 16, 315, 9506, 225, 397, 315, 5417, 461, 27915, 12, 10395, 13, 3206, 16, 315, 9506, 225, 397, 315, 482, 653, 27915, 12, 10395, 13, 4269, 3206, 16, 315, 9506, 225, 397, 315, 1152, 653, 27915, 12, 10395, 13, 3206, 16, 315, 9506, 225, 397, 315, 4161, 27915, 12, 10395, 13, 3206, 16, 315, 9506, 225, 397, 315, 3276, 382, 2471, 16481, 4269, 3206, 16, 315, 9506, 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, 752, 6905, 12, 6385, 31714, 1966, 1319, 13, 288, 202, 202, 759, 4661, 1138, 12, 1966, 16, 202, 202, 759, 202, 225, 315, 4043, 28557, 5383, 8863, 202, 202, 1388, 10636, 18, 4661, 1138, 12, 1966, 16, 9506, 225, 315, 9344, 6425, 15023, 7567, 770, 10487, 7566, 9506, 225, 397, 315, 350, 16481, 1599, 11101, 4269, 3206, 10837, 9506, 225, 397, 315, 529, 27915, 12, 10395, 13, 4269, 3206, 10837, 9506, 225, 397, 315, 3276, 382, 2471, 16481, 4269, 3206, 10837, 9506, 225, 397, 315, 13388, 8639, 18993, 4269, 3206, 10837, 1748, 531, 2038, 19513, 1195, 9506, 225, 397, 315, 2938, 16481, 3206, 10837, 9506, 225, 397, 315, 18864, 5311, 261, 350, 3631, 6, 2 ]
scanAttributeValue(this.fTempString, fTempString2, fAttributeQName.rawname, isVC, fCurrentElement.rawname);
boolean isSameNormalizedAttr = scanAttributeValue(this.fTempString, fTempString2, fAttributeQName.rawname, isVC, fCurrentElement.rawname);
protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fEntityScanner.skipChar('=')) { reportFatalError("EqRequiredInAttribute", new Object[]{fCurrentElement.rawname,fAttributeQName.rawname}); } fEntityScanner.skipSpaces(); // content int attrIndex; if (fBindNamespaces) { attrIndex = attributes.getLength(); attributes.addAttributeNS(fAttributeQName, XMLSymbols.fCDATASymbol, null); } else { int oldLen = attributes.getLength(); attrIndex = attributes.addAttribute(fAttributeQName, XMLSymbols.fCDATASymbol, null); // WFC: Unique Att Spec if (oldLen == attributes.getLength()) { reportFatalError("AttributeNotUnique", new Object[]{fCurrentElement.rawname, fAttributeQName.rawname}); } } //REVISIT: one more case needs to be included: external PE and standalone is no boolean isVC = fHasExternalDTD && !fStandalone; scanAttributeValue(this.fTempString, fTempString2, fAttributeQName.rawname, isVC, fCurrentElement.rawname); String value = fTempString.toString(); attributes.setValue(attrIndex, value); attributes.setNonNormalizedValue(attrIndex, fTempString2.toString()); attributes.setSpecified(attrIndex, true); // record namespace declarations if any. if (fBindNamespaces) { String localpart = fAttributeQName.localpart; String prefix = fAttributeQName.prefix != null ? fAttributeQName.prefix : XMLSymbols.EMPTY_STRING; // when it's of form xmlns="..." or xmlns:prefix="...", // it's a namespace declaration. but prefix:xmlns="..." isn't. if (prefix == XMLSymbols.PREFIX_XMLNS || prefix == XMLSymbols.EMPTY_STRING && localpart == XMLSymbols.PREFIX_XMLNS) { // get the internalized value of this attribute String uri = fSymbolTable.addSymbol(value); // 1. "xmlns" can't be bound to any namespace if (prefix == XMLSymbols.PREFIX_XMLNS && localpart == XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 2. the namespace for "xmlns" can't be bound to any prefix if (uri == NamespaceContext.XMLNS_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 3. "xml" can't be bound to any other namespace than it's own if (localpart == XMLSymbols.PREFIX_XML) { if (uri != NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } // 4. the namespace for "xml" can't be bound to any other prefix else { if (uri ==NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } prefix = localpart != XMLSymbols.PREFIX_XMLNS ? localpart : XMLSymbols.EMPTY_STRING; // http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-prefix // We should only report an error if there is a prefix, // that is, the local part is not "xmlns". -SG if (uri == XMLSymbols.EMPTY_STRING && localpart != XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "EmptyPrefixedAttName", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // declare prefix in context fNamespaceContext.declarePrefix(prefix, uri.length() != 0 ? uri : null); // bind namespace attribute to a namespace attributes.setURI(attrIndex, fNamespaceContext.getURI(XMLSymbols.PREFIX_XMLNS)); } else { // attempt to bind attribute if (fAttributeQName.prefix != null) { attributes.setURI(attrIndex, fNamespaceContext.getURI(fAttributeQName.prefix)); } } } if (DEBUG_CONTENT_SCANNING) System.out.println("<<< scanAttribute()"); } // scanAttribute(XMLAttributes)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/867902c7fc63436b34806f03bed64ca2b0285e43/XMLNSDocumentScannerImpl.java/buggy/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4135, 1499, 12, 4201, 2498, 2828, 1677, 13, 565, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 2332, 18, 659, 18, 8222, 2932, 23012, 4135, 1499, 1435, 8863, 3639, 368, 508, 3639, 284, 1943, 11338, 18, 9871, 13688, 12, 74, 1499, 13688, 1769, 3639, 368, 1606, 3639, 284, 1943, 11338, 18, 7457, 12077, 5621, 3639, 309, 16051, 74, 1943, 11338, 18, 7457, 2156, 2668, 2218, 3719, 288, 5411, 2605, 19593, 668, 2932, 19508, 3705, 382, 1499, 3113, 11794, 394, 1033, 63, 7073, 74, 3935, 1046, 18, 1899, 529, 16, 74, 1499, 13688, 18, 1899, 529, 22938, 3639, 289, 3639, 284, 1943, 11338, 18, 7457, 12077, 5621, 3639, 368, 913, 3639, 509, 1604, 1016, 31, 9079, 309, 261, 74, 3357, 13180, 13, 288, 5411, 1604, 1016, 273, 1677, 18, 588, 1782, 5621, 5411, 1677, 18, 1289, 1499, 3156, 12, 74, 1499, 13688, 16, 3167, 14821, 18, 74, 10160, 789, 3033, 3284, 16, 446, 1769, 3639, 289, 3639, 469, 288, 5411, 509, 1592, 2891, 273, 1677, 18, 588, 1782, 5621, 5411, 1604, 1016, 273, 1677, 18, 1289, 1499, 12, 74, 1499, 13688, 16, 3167, 14821, 18, 74, 10160, 789, 3033, 3284, 16, 446, 1769, 540, 202, 5411, 368, 678, 4488, 30, 14584, 6020, 4185, 5411, 309, 261, 1673, 2891, 422, 1677, 18, 588, 1782, 10756, 288, 7734, 2605, 19593, 668, 2932, 1499, 1248, 6303, 3113, 4766, 394, 1033, 63, 7073, 74, 3935, 1046, 18, 1899, 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, 4135, 1499, 12, 4201, 2498, 2828, 1677, 13, 565, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 2332, 18, 659, 18, 8222, 2932, 23012, 4135, 1499, 1435, 8863, 3639, 368, 508, 3639, 284, 1943, 11338, 18, 9871, 13688, 12, 74, 1499, 13688, 1769, 3639, 368, 1606, 3639, 284, 1943, 11338, 18, 7457, 12077, 5621, 3639, 309, 16051, 74, 1943, 11338, 18, 7457, 2156, 2668, 2218, 3719, 288, 5411, 2605, 19593, 668, 2932, 19508, 3705, 382, 1499, 3113, 11794, 394, 1033, 63, 7073, 74, 3935, 1046, 18, 1899, 529, 16, 74, 1499, 13688, 18, 1899, 529, 22938, 3639, 289, 3639, 284, 1943, 11338, 18, 7457, 12077, 2 ]
String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ;
String host = req.getHeader("Host") ; IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface(req) ; String start_url = imcref.getStartUrl() ;
public void doPost ( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; // Check if user logged on User user ; if ( (user = Check.userLoggedOn(req,res,start_url))==null ) { return ; } // Is user superadmin? String sqlStr = "select role_id from users,user_roles_crossref\n" ; sqlStr += "where users.user_id = user_roles_crossref.user_id\n" ; sqlStr += "and user_roles_crossref.role_id = 0\n" ; sqlStr += "and users.user_id = " + user.getInt("user_id") ; if ( IMCServiceRMI.sqlQuery(imcserver,sqlStr).length == 0 ) { Utility.redirect(req,res,start_url) ; return ; } //res.setContentType("text/html") ; int length = req.getContentLength(); String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; PrintWriter out = res.getWriter() ; ServletInputStream in = req.getInputStream() ; byte buffer[] = new byte[ length ] ; int bytes_read = 0; while ( bytes_read < length ) { bytes_read += in.read(buffer,bytes_read,length-bytes_read) ; } String contentType = req.getContentType() ; // Min klass tar emot datan och plockar ut det som r intressant... MultipartFormdataParser mp = new MultipartFormdataParser(buffer,contentType) ; if ( mp.getParameter("cancel") != null ) { Utility.redirect(req,res,"TemplateAdmin") ; return; } // Plocka ut sprket, s vi vet vilket vi editerar... String lang = mp.getParameter("language") ; boolean demo = mp.getParameter("demo") != null ; String template = null ; String simple_name = null ; if ( demo ) { template = mp.getParameter("template") ; if ( template == null || template.equals("") ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); String htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "templatedemo_upload_template_blank.html", lang_prefix) ; res.setContentType("text/html") ; out.print(htmlStr) ; return ; // ************************* DELETE DEMO } else if ( mp.getParameter("delete_demo")!=null ) { IMCServiceRMI.deleteDemoTemplate(imcserver, Integer.parseInt(template)) ; String list[] ; list = IMCServiceRMI.getDemoTemplateList(imcserver) ; String temp[] ; temp = IMCServiceRMI.sqlQuery(imcserver, "select template_id, simple_name from templates where lang_prefix = '"+lang+"' order by simple_name") ; Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang) ; String htmlStr ; if ( temp.length > 0 ) { String temps = "" ; for (int i = 0; i < temp.length; i+=2) { int tmp = Integer.parseInt(temp[i]) ; for ( int j = 0 ; j < list.length ; j++ ) { if ( Integer.parseInt(list[j]) == tmp ) { temp[i+1] = "*" + temp[i+1] ; break ; } } temps += "<option value=\""+temp[i]+"\">"+temp[i+1]+"</option>" ; } vec.add("#templates#") ; vec.add(temps); htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "templatedemo_upload.html",lang_prefix) ; } else { htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "template_no_langtemplates.html",lang_prefix) ; } res.setContentType("text/html") ; out.print(htmlStr) ; return ; // ************************** VIEW DEMO // Updated IMCService + interface, IMCServiceRMI : Now returns Object[] filesuffix, byteStream } else if ( mp.getParameter("view_demo") != null ) { Object[] suffixAndStream = IMCServiceRMI.getDemoTemplate(imcserver,Integer.parseInt(template)) ; String htmlStr ; res.setContentType("text/html"); if ( suffixAndStream == null) { htmlStr = IMCServiceRMI.parseDoc( imcserver, null, "no_demotemplate.html", lang_prefix ) ; out.print(htmlStr) ; return ; } else { byte[] temp = (byte[])suffixAndStream[1]; if (temp == null) { htmlStr = IMCServiceRMI.parseDoc( imcserver, null, "no_demotemplate.html", lang_prefix ) ; out.print(htmlStr) ; return ; } else { htmlStr = new String(temp,"8859_1") ; //res.setContentType(mimeType) ; String redirect = ("TemplateAdd?action=noCacheImageView&template=" + template + "&bogus=" + (int)(1000*Math.random())); // create frameset with topframe containing return-button // and the main-frame doing a redirect //FIXME: What The Fawk is this? Put it in a template, or suffer the consequences! out.print( "<html><head><title></title></head>" + "<frameset rows=\"80,*\" frameborder=\"NO\" border=\"0\" framespacing=\"0\">" + "<frame name=\"topFrame\" scrolling=\"NO\" noresize src=\"TemplateAdd?action=return\">" + "<frame name=\"mainFrame\" src=\"" + redirect + "\">" + "</frameset>" + "<noframes><body>" + redirect + "</body></noframes></html>"); //res.sendRedirect(redirect); } } } } else { simple_name = mp.getParameter("name") ; if ( simple_name == null || simple_name.equals("") ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); String htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "template_upload_name_blank.html", lang_prefix) ; res.setContentType("text/html") ; out.print(htmlStr) ; return ; } } String file = mp.getParameter("file") ; if ( file == null || file.length() == 0 ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); String htmlStr = null ; if ( demo ) { htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "templatedemo_upload_file_blank.html", lang_prefix) ; } else { htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "template_upload_file_blank.html", lang_prefix) ; } res.setContentType("text/html") ; out.print(htmlStr) ; return ; } log ("Filesize: "+file.length()) ; String filename = mp.getFilename("file") ; log (filename) ; File fn = new File(filename) ; filename = fn.getName() ; boolean overwrite = (mp.getParameter("overwrite") != null) ; String htmlStr = null ; // ********************************** OK if ( demo ) { try { // get the suffix log("*** TEMPLATE_ADD *** FILENAME = " + filename + " | SUFFIX = " + filename.substring(filename.lastIndexOf('.') +1)); String suffix = filename.substring(filename.lastIndexOf('.') +1); if(filename.lastIndexOf(".") == -1) suffix=""; Vector vec = new Vector() ; if(!suffix.equals("jpg") && !suffix.equals("jpeg") && !suffix.equals("png") && !suffix.equals("gif") && !suffix.equals("htm") && !suffix.equals("html")) { vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "templatedemo_upload_done.html", lang_prefix) ; } else { IMCServiceRMI.saveDemoTemplate( imcserver, Integer.parseInt(template), file.getBytes("8859_1"), suffix) ; vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "templatedemo_upload_done.html", lang_prefix) ; } } catch ( RemoteException ex ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "templatedemo_upload_error.html", lang_prefix) ; } } else { int result = IMCServiceRMI.saveTemplate( imcserver, simple_name, filename, file.getBytes("8859_1"), overwrite, lang ) ; if ( result == -2 ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "template_upload_error.html", lang_prefix) ; } else if ( result == -1 ) { Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "template_upload_file_exists.html", lang_prefix) ; } else { String t_id = IMCServiceRMI.sqlQueryStr (imcserver,"select template_id from templates where simple_name = '"+ simple_name+"'" ) ; String[] temp = mp.getParameterValues("templategroup") ; sqlStr = "" ; if ( temp != null ) { for ( int foo = 0 ; foo < temp.length ; foo++ ) { sqlStr += "delete from templates_cref where group_id = "+temp[foo]+" and template_id = "+t_id+"\n" ; sqlStr += "insert into templates_cref (group_id, template_id) values("+temp[foo]+","+t_id+")\n" ; } IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; } Vector vec = new Vector() ; vec.add("#language#") ; vec.add(lang); htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "template_upload_done.html", lang_prefix) ; } } res.setContentType("text/html") ; out.print(htmlStr) ; return ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/TemplateAdd.java/buggy/servlets/TemplateAdd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 261, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 1875, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 540, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 1082, 202, 759, 2073, 309, 729, 7545, 603, 202, 1299, 729, 274, 202, 430, 261, 261, 1355, 273, 2073, 18, 1355, 19862, 1398, 12, 3658, 16, 455, 16, 1937, 67, 718, 3719, 631, 2011, 262, 288, 202, 565, 327, 274, 202, 97, 225, 202, 759, 2585, 729, 2240, 3666, 35, 202, 780, 1847, 1585, 225, 273, 315, 4025, 2478, 67, 350, 628, 3677, 16, 1355, 67, 7774, 67, 14653, 1734, 64, 82, 6, 274, 202, 4669, 1585, 1011, 315, 6051, 3677, 18, 1355, 67, 350, 273, 729, 67, 7774, 67, 14653, 1734, 18, 1355, 67, 350, 64, 82, 6, 274, 202, 4669, 1585, 1011, 315, 464, 729, 67, 7774, 67, 14653, 1734, 18, 4615, 67, 350, 273, 374, 64, 82, 6, 274, 202, 4669, 1585, 1011, 315, 464, 3677, 18, 1355, 67, 350, 273, 315, 397, 729, 18, 588, 1702, 2932, 1355, 67, 350, 7923, 274, 1082, 202, 430, 261, 6246, 39, 1179, 54, 7492, 18, 4669, 1138, 12, 381, 71, 3567, 16, 4669, 1585, 2934, 2469, 422, 374, 262, 288, 202, 565, 13134, 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, 3349, 261, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 1875, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 540, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 1082, 202, 759, 2073, 309, 729, 7545, 603, 202, 1299, 729, 274, 202, 430, 261, 261, 1355, 273, 2073, 18, 1355, 19862, 1398, 12, 3658, 16, 455, 16, 1937, 67, 718, 3719, 631, 2011, 262, 288, 202, 565, 327, 274, 202, 97, 225, 202, 759, 2585, 2 ]
public void store_local(Local local) { store_local(local.getType(), local.getIndex());
private void store_local(Class t, int pos) { if (t != null && t.isPrimitive()) { if (t.equals(Long.TYPE)) { backend.emit_var(Opcodes.LSTORE, pos); } else if (t.equals(Double.TYPE)) { backend.emit_var(Opcodes.DSTORE, pos); } else if (t.equals(Float.TYPE)) { backend.emit_var(Opcodes.FSTORE, pos); } else { backend.emit_var(Opcodes.ISTORE, pos); } } else { backend.emit_var(Opcodes.ASTORE, pos); }
public void store_local(Local local) { store_local(local.getType(), local.getIndex()); }
836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/836/2131acff8c6d89d16c19da3c50cf689e6652d87f/BasicCodeGenerator.java/buggy/src/proxy/net/sf/cglib/util/BasicCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 67, 3729, 12, 2042, 1191, 13, 288, 3639, 1707, 67, 3729, 12, 3729, 18, 588, 559, 9334, 1191, 18, 588, 1016, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 67, 3729, 12, 2042, 1191, 13, 288, 3639, 1707, 67, 3729, 12, 3729, 18, 588, 559, 9334, 1191, 18, 588, 1016, 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 ]
vPhaseReport.addElement(r);
addReport(r);
private void processMovement(Entity entity, MovePath md) { Report r; boolean sideslipped = false; // for VTOL sideslipping // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. r = new Report(2005, Report.PUBLIC); r.addDesc(entity); vPhaseReport.addElement(r); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. r = new Report(2010, Report.PUBLIC); r.indent(); r.addDesc(passenger); vPhaseReport.addElement(r); game.removeEntity( passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = IEntityRemovalConditions.REMOVE_IN_RETREAT; r = new Report(2010); if (mw.isCaptured()) { r = new Report(2015); condition = IEntityRemovalConditions.REMOVE_CAPTURED; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); r.addDesc(mw); r.indent(); vPhaseReport.addElement(r); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2015, Report.PUBLIC); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); game.removeEntity( swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { if (entity instanceof Mech) { r = new Report(2020); r.subject = entity.getId(); r.add(entity.getCrew().getName()); r.addDesc(entity); vPhaseReport.addElement(r); } else if (entity instanceof Tank) { r = new Report(2025); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); } vPhaseReport.addAll( ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int curVTOLElevation = entity.getElevation(); int distance = 0; int mpUsed = 0; int moveType = IEntityMovementType.MOVE_NONE; int overallMoveType = IEntityMovementType.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = IEntityMovementType.MOVE_WALK; overallMoveType = IEntityMovementType.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = IEntityMovementType.MOVE_RUN; overallMoveType = IEntityMovementType.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; IHex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // cache this here, otherwise changing MP in the turn causes // errorneous gravity PSRs int cachedGravityLimit = (IEntityMovementType.MOVE_JUMP == moveType)? entity.getOriginalJumpMP() : entity.getRunMP(false); // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { Vector crits = new Vector(); if (((Mech)entity).checkForMASCFailure(md, vPhaseReport, crits)) { CriticalSlot cs = null; int loc = Entity.LOC_NONE; for(Enumeration e = crits.elements();e.hasMoreElements();) { Object o = e.nextElement(); if(o instanceof Integer) loc = (Integer) o; else if (o instanceof CriticalSlot) { cs = (CriticalSlot) o; applyCriticalHit(entity, loc, cs, true); } } // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); //check for starting in liquid magma if(game.getBoard().getHex(entity.getPosition()).terrainLevel(Terrains.MAGMA) == 2 && entity.getElevation() == 0) { doMagmaDamage(entity, false); } // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); boolean entityFellWhileAttemptingToStand = false; // stop for illegal movement if (step.getMovementType() == IEntityMovementType.MOVE_ILLEGAL) { break; } //stop if the entity already killed itself if(entity.isDestroyed() || entity.isDoomed()) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); entity.setHullDown(false); wasProne = false; game.resetPSRs(entity); entityFellWhileAttemptingToStand = !doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (entityFellWhileAttemptingToStand) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } if (step.getType() == MovePath.STEP_LAY_MINE) { LayMinefieldAction lma = new LayMinefieldAction(entity.getId(), step.getMineToLay()); game.addLayMinefieldAction(lma); entity.setLayingMines(true); break; } if (step.getType() == MovePath.STEP_SEARCHLIGHT && entity.hasSpotlight()) { final boolean SearchOn = !entity.isUsingSpotlight(); entity.setSpotlightState(SearchOn); sendServerChat(entity.getDisplayName() + " switched searchlight "+(SearchOn?"on":"off")+"."); } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // set last step parameters curPos = step.getPosition(); if(moveType != IEntityMovementType.MOVE_JUMP || entity.getJumpType() != Mech.JUMP_BOOSTER) curFacing = step.getFacing(); curVTOLElevation = step.getElevation(); //set elevation in case of collapses entity.setElevation(step.getElevation()); final IHex curHex = game.getBoard().getHex(curPos); // check for automatic unstick if(entity.canUnstickByJumping() && entity.isStuck() && moveType == IEntityMovementType.MOVE_JUMP) { entity.setStuck(false); entity.setCanUnstickByJumping(false); } // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; IHex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; int skidDirection = prevFacing; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = IEntityMovementType.MOVE_SKID; // What is the first hex in the skid? if(step.isThisStepBackwards()) { skidDirection = (skidDirection + 3) % 6; } nextPos = curPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); // Move the entity a number hexes from curPos in the // skidDirection direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.getBoard().contains(nextPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030, Report.PUBLIC); r.addDesc(entity); vPhaseReport.addElement(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); r.indent(); vPhaseReport.addElement(r); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. r = new Report(2040); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // all units can skid over ice. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementMode() == IEntityMovementMode.HOVER ) { if ( curHex.containsTerrain(Terrains.WATER) ) { curElevation = curHex.surface(); } if ( nextHex.containsTerrain(Terrains.WATER) ) { nextElevation += nextHex.surface(); } } else { if(curHex.containsTerrain(Terrains.ICE)) { curElevation = curHex.surface(); } if(nextHex.containsTerrain(Terrains.ICE)) { nextElevation = nextHex.surface(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { r = new Report(2045); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.getBoard().getBuildingAt(nextPos); boolean bldgSuffered = false; boolean stopTheSkid = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. targets = game.getEntities( nextPos ); if ( targets.hasMoreElements()) { boolean skidChargeHit = false; while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged, // but need to make a to-hit roll if ( target instanceof Mech || target instanceof Tank ) { ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true); // Calculate hit location. if ( entity instanceof Tank && ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) && 0 < nextHex.terrainLevel(Terrains.WATER) && target.getElevation() < 0) { if ( 2 <= nextHex.terrainLevel(Terrains.WATER) || target.isProne() ) { // Hovercraft/Naval Craft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } toHit.setSideTable (Compute.targetSideTable(entity, target)); // roll int roll = Compute.d6(2); // Update report. r = new Report(2050); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; vPhaseReport.addElement(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(2055); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; vPhaseReport.addElement(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(2060); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; vPhaseReport.addElement(r); roll = Integer.MAX_VALUE; } else { // report the roll r = new Report(2065); r.subject = entity.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); } // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. if (roll < toHit.getValue()) { r = new Report(2070); r.subject = entity.getId(); vPhaseReport.addElement(r); } else { // Resolve the charge. resolveChargeDamage (entity, target, toHit, skidDirection); // HACK: set the entity's location // to the original hex again, for the other targets if (targets.hasMoreElements()) { entity.setPosition(curPos); } bldgSuffered = true; skidChargeHit = true; } // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. if (!target.isDone()) { resolvePilotingRolls(target); game.resetPSRs(target); target.applyDamage(); Report.addNewline(vPhaseReport); } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( target instanceof Infantry && bldg != null ) { // Update report. r = new Report(2075); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; vPhaseReport.addElement(r); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. vPhaseReport.addAll( damageEntity(target, hit, Math.round(entity.getWeight()/5))); Report.addNewline(vPhaseReport); } // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // if we missed all the entities in the hex, // move attacker to side hex if (!skidChargeHit) { Coords src = entity.getPosition(); Coords dest = Compute.getMissedChargeDisplacement (game, entity.getId(), src, skidDirection); doEntityDisplacement(entity, src, dest, null); } else { // HACK: otherwise, set the entities position to that // hex's coords, because we had to move the entity // back earlier for the other targets entity.setPosition(nextPos); } } // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. r = new Report(2080); r.subject = entity.getId(); r.indent(); r.add(bldg.getName()); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { Report buildingReport = damageBuilding( bldg, chargeDamage ); buildingReport.indent(2); buildingReport.subject = entity.getId(); vPhaseReport.addElement(buildingReport); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, entity.sideTable(nextPos) ); vPhaseReport.addAll( damageEntity( entity, hit, toAttacker )); Report.addNewline(vPhaseReport); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // is the next hex a rubble hex? rollTarget = entity.checkRubbleMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, true); if (entity.isProne()) { // if we fell, stop the skid (see bug 1115608) break; } } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // is the next hex a swamp? rollTarget = entity.checkSwampMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, false)){ entity.setStuck(true); r = new Report(2081); r.subject = entity.getId(); r.add(entity.getDisplayName(), true); // stay here and stop skidding, see bug 1115608 break; } } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; r = new Report(2085); r.subject = entity.getId(); r.indent(); r.add(curPos.getBoardNum(), true); vPhaseReport.addElement(r); // Get the next hex in the skid? nextPos = nextPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), skidDirection); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } // indent displacement r = new Report(1210, Report.PUBLIC); r.indent(); r.newlines = 0; vPhaseReport.addElement(r); doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage r = new Report(2090); r.subject = entity.getId(); r.indent(); r.addDesc(entity); r.add(damage); vPhaseReport.addElement(r); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); vPhaseReport.addAll( damageEntity(entity, hit, cluster)); damage -= cluster; } Report.addNewline(vPhaseReport); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. r = new Report(2095); r.subject = entity.getId(); r.indent(); vPhaseReport.addElement(r); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr if(entity instanceof VTOL) { rollTarget = ((VTOL)entity).checkSideSlip(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, distance); if(rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if(!doSkillCheckWhileMoving(entity,lastPos,curPos,rollTarget, false)) { //report sideslip sideslipped = true; r = new Report(2100); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); Coords newPos = lastPos.translated((prevFacing));//does this work for opposing hex? // Is the next hex off the board? if ( !game.getBoard().contains(newPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); vPhaseReport.addElement(r); } // Stay in the current hex and stop skidding. break; } int newElevation=(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); if(newElevation<=0) { r = new Report(2105); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); vPhaseReport.addElement(r); int hitSide=curFacing-prevFacing+6; hitSide=hitSide % 6; int table=0; switch(hitSide) {//quite hackish...I think it ought to work, though. case 0://can this happen? table=ToHitData.SIDE_FRONT; break; case 1: case 2: table=ToHitData.SIDE_LEFT; break; case 3: table=ToHitData.SIDE_REAR; break; case 4: case 5: table=ToHitData.SIDE_RIGHT; break; } curPos=newPos; curVTOLElevation=newElevation; vPhaseReport.addAll( crashVTOL(((VTOL)entity),true,distance,curPos,curVTOLElevation,table)); curVTOLElevation=0; IHex hex = game.getBoard().getHex(newPos); if((hex.containsTerrain(Terrains.WATER) && !hex.containsTerrain(Terrains.ICE)) || hex.containsTerrain(Terrains.WOODS) || hex.containsTerrain(Terrains.JUNGLE)) { vPhaseReport.addAll( destroyEntity(entity,"could not land in crash site")); } else { } } else { r = new Report(2110); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); vPhaseReport.addElement(r); entity.setElevation(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); curPos=newPos; } if(!entity.isDestroyed() && !entity.isDoomed()) { fellDuringMovement= true; //No, but it should work... } break; } } } // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { doMagmaDamage(entity, false); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); entity.setCanUnstickByJumping(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); vPhaseReport.addElement(r); break; } } // check to see if we are a mech and we've moved OUT of fire IHex lastHex = game.getBoard().getHex(lastPos); if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && (lastHex.containsTerrain(Terrains.FIRE) || lastHex.containsTerrain(Terrains.MAGMA)) && ( step.getMovementType() != IEntityMovementType.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { int heat=0; if(lastHex.containsTerrain(Terrains.FIRE)) heat+=2; if(lastHex.terrainLevel(Terrains.MAGMA) == 1) { heat+=2; } else if(lastHex.terrainLevel(Terrains.MAGMA) == 2) { heat+=5; } entity.heatBuildup+=heat; r = new Report(2115); r.subject = entity.getId(); r.addDesc(entity); r.add(heat); vPhaseReport.addElement(r); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && step.getElevation() <= 1 ) { if(game.getOptions().booleanOption("vehicle_fires") && entity instanceof Tank) { checkForVehicleFire((Tank)entity, false); } else { doFlamingDeath(entity); } } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != IEntityMovementType.MOVE_JUMP)) || ((overallMoveType == IEntityMovementType.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); boolean isOnGround = (!i.hasMoreElements()); isOnGround |= (step.getMovementType() != IEntityMovementType.MOVE_JUMP); isOnGround &= step.getElevation() == 0; if (isOnGround) { enterMinefield(entity, mf, curPos, curPos, true); } else if (mf.getType() == Minefield.TYPE_THUNDER_ACTIVE) { enterMinefield(entity, mf, curPos, curPos, true, 2); } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { r = new Report(2120); r.subject = entity.getId(); r.add(entity.getShortName(), true); vPhaseReport.addElement(r); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Swarmers need special handling. final int swarmerId = entity.getSwarmAttackerId(); boolean swarmerDone = true; Entity swarmer = null; if (Entity.NONE != swarmerId) { swarmer = game.getEntity( swarmerId ); swarmerDone = swarmer.isDone(); } // Now do the skill check. doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); // Swarming infantry platoons may drown. if (curHex.terrainLevel(Terrains.WATER) > 1) { drownSwarmer(entity, curPos); } // Do we need to remove a game turn for the swarmer if (!swarmerDone && ( swarmer.isDoomed() || swarmer.isDestroyed() )) { // We have to diddle with the swarmer's // status to get its turn removed. swarmer.setDone( false ); swarmer.setUnloaded( false ); // Dead entities don't take turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Return the original status. swarmer.setDone( true ); swarmer.setUnloaded( true ); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, step.getMovementType() == IEntityMovementType.MOVE_JUMP, step.getElevation()); //check for breaking ice by breaking through from below if(prevHex != null && prevStep != null && prevStep.getElevation() < 0 && step.getElevation() == 0 && prevHex.containsTerrain(Terrains.ICE) && prevHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { r = new Report(2410); r.addDesc(entity); vPhaseReport.add(r); resolveIceBroken(lastPos); } //check for breaking ice by stepping on it if(curHex.containsTerrain(Terrains.ICE) && curHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { if(step.getElevation() == 0 ) { int roll = Compute.d6(1); r = new Report(2118); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } //or intersecting it else if(step.getElevation() + entity.height() == 0) { r = new Report(2410); r.addDesc(entity); vPhaseReport.add(r); resolveIceBroken(curPos); } } // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing, step.getElevation() ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. int buildingMove = entity.checkMovementInBuilding(step, prevStep, curHex, prevHex); if (buildingMove > 0) { // Get the building being exited. Building bldgExited = null; if((buildingMove & 1) == 1) bldgExited = game.getBoard().getBuildingAt( lastPos ); // Get the building being entered. Building bldgEntered = null; if((buildingMove & 2) == 2) bldgEntered = game.getBoard().getBuildingAt( curPos ); // Get the building being stepped on. Building bldgStepped = null; if((buildingMove & 4) == 4) bldgStepped = game.getBoard().getBuildingAt( curPos ); boolean collapsed = false; //are we passing through a building wall? if(bldgEntered != null || bldgExited != null) { // If we're not leaving a building, just handle the "entered". if ( bldgExited == null) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else if (bldgExited != null){ collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } } //stepping on roof, no PSR just check for over weight if(bldgStepped != null) { collapsed = checkBuildingCollapseWhileMoving(bldgStepped, entity, curPos); this.addAffectedBldg( bldgStepped, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(step); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } //going hull down if(step.getType() == MovePath.STEP_HULL_DOWN) { mpUsed = step.getMpUsed(); entity.setHullDown(true); } // Track this step's location. movePath.addElement( new UnitLocation( entity.getId(), curPos, curFacing ) ); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; if (!sideslipped && !fellDuringMovement) { entity.setElevation(curVTOLElevation); } entity.setClimbMode(md.getFinalClimbMode()); // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == IEntityMovementType.MOVE_JUMP && !entity.isMakingDfa()) { final IHex curHex = game.getBoard().getHex(curPos); // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = curHex.terrainLevel(Terrains.WATER); if(curHex.containsTerrain(Terrains.ICE) && waterLevel > 0) { waterLevel = 0; //check for breaking ice int roll = Compute.d6(1); r = new Report(2122); r.add(entity.getDisplayName(), true); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll >= 4) { //oops! resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } //check for building collapse Building bldg = game.getBoard().getBuildingAt(curPos); if(bldg != null) { checkForCollapse( bldg, game.getPositionMap() ); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // jumped into swamp? maybe stuck! if (curHex.containsTerrain(Terrains.SWAMP) || curHex.containsTerrain(Terrains.MAGMA) || curHex.containsTerrain(Terrains.SNOW) || curHex.containsTerrain(Terrains.MUD) || curHex.containsTerrain(Terrains.TUNDRA)) { if (entity instanceof Mech) { entity.setStuck(true); r = new Report(2121); r.add(entity.getDisplayName(), true); r.subject = entity.getId(); vPhaseReport.addElement(r); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); vPhaseReport.addElement(r); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); entity.addPilotingModifierForTerrain(roll); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info r = new Report(2125); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); // roll final int diceRoll = Compute.d6(2); r = new Report(2130); r.subject = entity.getId(); r.add(roll.getValueAsString()); r.add(roll.getDesc()); r.add(diceRoll); if (diceRoll < roll.getValue()) { r.choose(false); vPhaseReport.addElement(r); } else { // Dislodged swarmers don't get turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Update the report and the swarmer's status. r.choose(true); vPhaseReport.addElement(r); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? if ( curHex.terrainLevel(Terrains.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); r = new Report(2135); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. r = new Report(2140); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll(damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11)); Report.addNewline(vPhaseReport); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.getBoard().getHex(curPos), false, entity.getElevation()); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened send(entity.getOwner().getId(), createSpecialReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2145); r.subject = entity.getId(); r.indent(); r.add(swarmer.getShortName(), true); vPhaseReport.addElement(r); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { entityUpdate( entity.getId(), movePath ); if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } } // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, 1)); } }
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, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 8706, 436, 31, 3639, 1250, 22423, 3169, 1845, 273, 629, 31, 368, 364, 22944, 1741, 22423, 3169, 1382, 7734, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 436, 273, 394, 8706, 12, 6976, 25, 16, 8706, 18, 14939, 1769, 5411, 436, 18, 1289, 4217, 12, 1096, 1769, 5411, 527, 4820, 12, 86, 1769, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 291, 1921, 1435, 262, 288, 7734, 727, 13864, 1400, 273, 1342, 275, 6215, 18, 6274, 5621, 7734, 1323, 261, 1400, 18, 5332, 7417, 3471, 1435, 262, 288, 10792, 727, 3887, 1342, 14348, 273, 261, 1943, 13, 1400, 18, 4285, 1046, 5621, 10792, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 10792, 436, 273, 394, 8706, 12, 6734, 20, 16, 8706, 18, 14939, 1769, 10792, 436, 18, 9355, 5621, 10792, 436, 18, 1289, 4217, 12, 5466, 14348, 1769, 10792, 527, 4820, 12, 86, 1769, 10792, 7920, 18, 4479, 1943, 12, 1342, 14348, 18, 26321, 9334, 18701, 29202, 24543, 8545, 18, 22122, 67, 706, 67, 10238, 862, 789, 11272, 10792, 1366, 12, 752, 3288, 1943, 6667, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 8706, 436, 31, 3639, 1250, 22423, 3169, 1845, 273, 629, 31, 368, 364, 22944, 1741, 22423, 3169, 1382, 7734, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 436, 273, 394, 8706, 12, 6976, 25, 16, 8706, 18, 14939, 1769, 5411, 436, 18, 1289, 4217, 12, 1096, 1769, 5411, 527, 4820, 12, 86, 1769, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 2 ]
m_report.print( Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.C_FORMAT_NOTE);
m_report.print(Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.C_FORMAT_NOTE);
private void importAllResources( Vector excludeList, Vector writtenFilenames, Vector fileCodes, String propertyName, String propertyValue) throws CmsImportExportException { String source, destination, type, uuidstructure, uuidresource, userlastmodified, usercreated, flags, timestamp; long datelastmodified, datecreated; List fileNodes, acentryNodes; Element currentElement, currentEntry; List properties = null; if (m_importingChannelData) { m_cms.getRequestContext().saveSiteRoot(); m_cms.getRequestContext().setSiteRoot(I_CmsConstants.VFS_FOLDER_CHANNELS); } // clear some required structures at the init phase of the import if (excludeList == null) { excludeList = new Vector(); } // get list of unwanted properties List deleteProperties = OpenCms.getImportExportManager().getIgnoredProperties(); if (deleteProperties == null) { deleteProperties = new ArrayList(); } // get list of immutable resources List immutableResources = OpenCms.getImportExportManager().getImmutableResources(); if (immutableResources == null) { immutableResources = new ArrayList(); } // get the wanted page type for imported pages m_convertToXmlPage = OpenCms.getImportExportManager().convertToXmlPage(); try { // get all file-nodes fileNodes = m_docXml.selectNodes("//" + CmsImportExportManager.N_FILE); int importSize = fileNodes.size(); // walk through all files in manifest for (int i = 0; i < fileNodes.size(); i++) { m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(i + 1), String.valueOf(importSize))); currentElement = (Element)fileNodes.get(i); // get all information for a file-import // <source> source = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_SOURCE); // <destintion> destination = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_DESTINATION); // <type> type = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_TYPE); // <uuidstructure> uuidstructure = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_UUIDSTRUCTURE); // <uuidresource> uuidresource = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_UUIDRESOURCE); // <datelastmodified> if ((timestamp = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_DATELASTMODIFIED)) != null) { datelastmodified = Long.parseLong(timestamp); } else { datelastmodified = System.currentTimeMillis(); } // <userlastmodified> userlastmodified = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_USERLASTMODIFIED); // <datecreated> if ((timestamp = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_DATECREATED)) != null) { datecreated = Long.parseLong(timestamp); } else { datecreated = System.currentTimeMillis(); } // <usercreated> usercreated = CmsImport.getChildElementTextValue( currentElement, CmsImportExportManager.N_USERCREATED); // <flags> flags = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_FLAGS); String translatedName = m_cms.getRequestContext().addSiteRoot(m_importPath + destination); if (CmsResourceTypeFolder.C_RESOURCE_TYPE_NAME.equals(type)) { translatedName += "/"; } // translate the name during import translatedName = m_cms.getRequestContext().getDirectoryTranslator().translateResource(translatedName); // check if this resource is immutable boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources); translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName); // if the resource is not immutable and not on the exclude list, import it if (resourceNotImmutable && (!excludeList.contains(translatedName))) { // print out the information to the report m_report.print( Messages.get().container(Messages.RPT_IMPORTING_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, translatedName)); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0)); // get all properties properties = readPropertiesFromManifest( currentElement, propertyName, propertyValue, deleteProperties); // import the resource CmsResource res = importResource( source, destination, type, uuidstructure, uuidresource, datelastmodified, userlastmodified, datecreated, usercreated, flags, properties, writtenFilenames, fileCodes); List aceList = new ArrayList(); if (res != null) { // write all imported access control entries for this file acentryNodes = currentElement.selectNodes("*/" + CmsImportExportManager.N_ACCESSCONTROL_ENTRY); // collect all access control entries for (int j = 0; j < acentryNodes.size(); j++) { currentEntry = (Element)acentryNodes.get(j); // get the data of the access control entry String id = CmsImport.getChildElementTextValue( currentEntry, CmsImportExportManager.N_ACCESSCONTROL_PRINCIPAL); String acflags = CmsImport.getChildElementTextValue( currentEntry, CmsImportExportManager.N_FLAGS); String allowed = CmsImport.getChildElementTextValue( currentEntry, CmsImportExportManager.N_ACCESSCONTROL_ALLOWEDPERMISSIONS); String denied = CmsImport.getChildElementTextValue( currentEntry, CmsImportExportManager.N_ACCESSCONTROL_DENIEDPERMISSIONS); // add the entry to the list aceList.add(getImportAccessControlEntry(res, id, allowed, denied, acflags)); } importAccessControlEntries(res, aceList); } else { // resource import failed, since no CmsResource was created m_report.print( Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.C_FORMAT_NOTE); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, translatedName)); } } else { // skip the file import, just print out the information to the report m_report.print( Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.C_FORMAT_NOTE); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, translatedName)); } } } catch (Exception e) { m_report.println(e); CmsMessageContainer message = Messages.get().container(Messages.ERR_IMPORTEXPORT_ERROR_IMPORTING_RESOURCES_0); if (LOG.isDebugEnabled()) { LOG.debug(message.key(), e); } throw new CmsImportExportException(message, e); } finally { if (m_importingChannelData) { m_cms.getRequestContext().restoreSiteRoot(); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c7083871cfaaede3aa187a175b34be606d8431f2/CmsImportVersion3.java/buggy/src/org/opencms/importexport/CmsImportVersion3.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 1595, 3805, 12, 3639, 5589, 4433, 682, 16, 3639, 5589, 5941, 25579, 6809, 16, 3639, 5589, 585, 6295, 16, 3639, 514, 5470, 16, 3639, 514, 12337, 13, 1216, 2149, 5010, 6144, 503, 288, 3639, 514, 1084, 16, 2929, 16, 618, 16, 3822, 7627, 16, 3822, 3146, 16, 729, 2722, 7342, 16, 729, 4824, 16, 2943, 16, 2858, 31, 3639, 1525, 1150, 292, 689, 7342, 16, 1509, 4824, 31, 3639, 987, 585, 3205, 16, 1721, 4099, 3205, 31, 3639, 3010, 22993, 16, 783, 1622, 31, 3639, 987, 1790, 273, 446, 31, 3639, 309, 261, 81, 67, 5666, 310, 2909, 751, 13, 288, 5411, 312, 67, 6851, 18, 588, 21426, 7675, 5688, 21889, 5621, 5411, 312, 67, 6851, 18, 588, 21426, 7675, 542, 21889, 12, 45, 67, 4747, 2918, 18, 58, 4931, 67, 17357, 67, 15814, 55, 1769, 3639, 289, 3639, 368, 2424, 2690, 1931, 12597, 622, 326, 1208, 6855, 434, 326, 1930, 2868, 309, 261, 10157, 682, 422, 446, 13, 288, 5411, 4433, 682, 273, 394, 5589, 5621, 3639, 289, 3639, 368, 336, 666, 434, 30264, 1790, 3639, 987, 1430, 2297, 273, 10319, 18, 588, 5010, 6144, 1318, 7675, 588, 15596, 2297, 5621, 3639, 309, 261, 3733, 2297, 422, 446, 13, 288, 5411, 1430, 2297, 273, 394, 2407, 5621, 3639, 289, 3639, 368, 336, 666, 434, 11732, 2703, 3639, 987, 11732, 3805, 273, 10319, 18, 588, 5010, 6144, 1318, 7675, 588, 16014, 3805, 5621, 3639, 309, 261, 381, 5146, 3805, 422, 446, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 1595, 3805, 12, 3639, 5589, 4433, 682, 16, 3639, 5589, 5941, 25579, 6809, 16, 3639, 5589, 585, 6295, 16, 3639, 514, 5470, 16, 3639, 514, 12337, 13, 1216, 2149, 5010, 6144, 503, 288, 3639, 514, 1084, 16, 2929, 16, 618, 16, 3822, 7627, 16, 3822, 3146, 16, 729, 2722, 7342, 16, 729, 4824, 16, 2943, 16, 2858, 31, 3639, 1525, 1150, 292, 689, 7342, 16, 1509, 4824, 31, 3639, 987, 585, 3205, 16, 1721, 4099, 3205, 31, 3639, 3010, 22993, 16, 783, 1622, 31, 3639, 987, 1790, 273, 446, 31, 3639, 309, 261, 81, 67, 5666, 310, 2909, 751, 13, 288, 5411, 312, 67, 6851, 18, 588, 21426, 7675, 5688, 21889, 5621, 5411, 312, 67, 2 ]
private File createFile( String name, byte[] data ) throws IOException { File jpeg = new File( "/tmp/" + name ); jpeg.createNewFile(); DataOutputStream os = new DataOutputStream( new FileOutputStream( jpeg ) ); os.write( data ); os.close(); // This file will be deleted when the JVM // will exit. jpeg.deleteOnExit(); return jpeg; }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/0f6df9849de10807595e87e279b521f2470ac7a2/LdifReaderTest.java/clean/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1387, 21266, 12, 514, 508, 16, 1160, 8526, 501, 262, 1216, 1860, 202, 95, 3639, 1387, 29726, 273, 394, 1387, 12, 2206, 5645, 4898, 397, 508, 11272, 7734, 29726, 18, 2640, 1908, 812, 5621, 7734, 28680, 1140, 273, 394, 28680, 12, 540, 202, 202, 2704, 12942, 12, 29726, 262, 11272, 1082, 3639, 1140, 18, 2626, 12, 501, 11272, 3639, 1140, 18, 4412, 5621, 7734, 368, 1220, 585, 903, 506, 4282, 1347, 326, 14131, 3639, 368, 903, 2427, 18, 3639, 29726, 18, 3733, 1398, 6767, 5621, 7734, 327, 29726, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 1387, 21266, 12, 514, 508, 16, 1160, 8526, 501, 262, 1216, 1860, 202, 95, 3639, 1387, 29726, 273, 394, 1387, 12, 2206, 5645, 4898, 397, 508, 11272, 7734, 29726, 18, 2640, 1908, 812, 5621, 7734, 28680, 1140, 273, 394, 28680, 12, 540, 202, 202, 2704, 12942, 12, 29726, 262, 11272, 1082, 3639, 1140, 18, 2626, 12, 501, 11272, 3639, 1140, 18, 4412, 5621, 7734, 368, 1220, 585, 903, 506, 4282, 1347, 326, 14131, 3639, 368, 903, 2427, 18, 3639, 29726, 18, 3733, 1398, 6767, 5621, 7734, 327, 29726, 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 ]
Process process = dtarget.getProcess();
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask("Launching Local C Application", IProgressMonitor.UNKNOWN); // check for cancellation if (monitor.isCanceled()) { return; } IPath projectPath = verifyProgramFile(config); ICDebugConfiguration debugConfig = getDebugConfig(config); IFile exe = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(projectPath); ICDISession dsession = null; ICProject cproject = getCProject(config); IPath corefile = getCoreFilePath((IProject)cproject.getResource()); if ( corefile == null ) { cancel("No Corefile selected", ICDTLaunchConfigurationConstants.ERR_NO_COREFILE); } try { dsession = debugConfig.getDebugger().createCoreSession(config, exe, corefile); } catch (CDIException e) { abort( "Failed Launching CDI Debugger", e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); } ICDITarget dtarget = dsession.getTargets()[0]; Process process = dtarget.getProcess(); IProcess iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(projectPath.toOSString())); CDebugModel.newDebugTarget( launch, dsession.getTargets()[0], renderTargetLabel(debugConfig), iprocess, exe.getProject(), false, true, false); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/103c42de84799d83f1d9d1af375f97a4bfe4e8b2/CoreFileLaunchDelegate.java/buggy/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CoreFileLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 9506, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 202, 202, 10259, 18, 10086, 2174, 2932, 9569, 310, 3566, 385, 4257, 3113, 467, 5491, 7187, 18, 14737, 1769, 202, 202, 759, 866, 364, 7272, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 743, 1984, 743, 273, 3929, 9459, 812, 12, 1425, 1769, 202, 202, 2871, 2829, 1750, 1198, 809, 273, 29264, 809, 12, 1425, 1769, 202, 202, 45, 812, 15073, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 7675, 29925, 1290, 2735, 12, 4406, 743, 1769, 202, 202, 2871, 2565, 2157, 302, 3184, 273, 446, 31, 202, 202, 2871, 4109, 276, 4406, 273, 1927, 4109, 12, 1425, 1769, 1082, 202, 45, 743, 2922, 768, 273, 23677, 5598, 12443, 45, 4109, 13, 71, 4406, 18, 588, 1420, 10663, 202, 202, 430, 261, 2922, 768, 422, 446, 262, 288, 1082, 202, 10996, 2932, 2279, 4586, 768, 3170, 3113, 467, 10160, 5967, 4760, 1750, 2918, 18, 9712, 67, 3417, 67, 15715, 3776, 1769, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 2377, 893, 273, 1198, 809, 18, 588, 24113, 7675, 2640, 4670, 2157, 12, 1425, 16, 15073, 16, 2922, 768, 1769, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 9506, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 202, 202, 10259, 18, 10086, 2174, 2932, 9569, 310, 3566, 385, 4257, 3113, 467, 5491, 7187, 18, 14737, 1769, 202, 202, 759, 866, 364, 7272, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 743, 1984, 743, 273, 3929, 9459, 812, 12, 1425, 1769, 202, 202, 2871, 2829, 1750, 1198, 809, 273, 29264, 809, 12, 1425, 1769, 202, 202, 2 ]
if ( !list.contains( cb.getResultSetColumnName( ) ) )
if ( !list.contains( cb.getResultSetColumnName( ) ) && cb.getOuterLevel( ) == 0 )
private static void populateColumnList( List list, IScriptExpression expression ) throws DataException { if ( expression != null ) { List l; try { l = ExpressionUtil.extractColumnExpressions( expression.getText( ) ); } catch ( BirtException e ) { throw DataException.wrap( e ); } for ( int i = 0; i < l.size( ); i++ ) { IColumnBinding cb = (IColumnBinding) l.get( i ); if ( !list.contains( cb.getResultSetColumnName( ) ) ) list.add( cb.getResultSetColumnName( ) ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a245aae0fc513721353b551ff29c71bd63952341/ExpressionCompilerUtil.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/ExpressionCompilerUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 6490, 1494, 682, 12, 987, 666, 16, 1082, 202, 45, 3651, 2300, 2652, 262, 1216, 1910, 503, 202, 95, 202, 202, 430, 261, 2652, 480, 446, 262, 202, 202, 95, 1082, 202, 682, 328, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 80, 273, 5371, 1304, 18, 8004, 1494, 8927, 12, 2652, 18, 588, 1528, 12, 262, 11272, 1082, 202, 97, 1082, 202, 14683, 261, 605, 2714, 503, 425, 262, 1082, 202, 95, 9506, 202, 12849, 1910, 503, 18, 4113, 12, 425, 11272, 1082, 202, 97, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 328, 18, 1467, 12, 11272, 277, 9904, 262, 1082, 202, 95, 9506, 202, 45, 1494, 5250, 2875, 273, 261, 45, 1494, 5250, 13, 328, 18, 588, 12, 277, 11272, 9506, 202, 430, 261, 401, 1098, 18, 12298, 12, 2875, 18, 588, 13198, 8516, 12, 262, 262, 262, 6862, 202, 1098, 18, 1289, 12, 2875, 18, 588, 13198, 8516, 12, 262, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 6490, 1494, 682, 12, 987, 666, 16, 1082, 202, 45, 3651, 2300, 2652, 262, 1216, 1910, 503, 202, 95, 202, 202, 430, 261, 2652, 480, 446, 262, 202, 202, 95, 1082, 202, 682, 328, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 80, 273, 5371, 1304, 18, 8004, 1494, 8927, 12, 2652, 18, 588, 1528, 12, 262, 11272, 1082, 202, 97, 1082, 202, 14683, 261, 605, 2714, 503, 425, 262, 1082, 202, 95, 9506, 202, 12849, 1910, 503, 18, 4113, 12, 425, 11272, 1082, 202, 97, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 328, 18, 1467, 12, 11272, 277, 9904, 262, 1082, 202, 95, 9506, 202, 45, 1494, 5250, 2 ]
final List list = (List)dataProvided.get(name); final DataProviderMetadata dataMeta = (DataProviderMetadata)dataProvidedListByFieldName
final DataProviderMetadata dataMeta = (DataProviderMetadata)dataProvided
public void updateSelection(String name, Object widget) throws Exception { final int[] selected = thinlet.getSelectedIndexes(widget); final List list = (List)dataProvided.get(name); final DataProviderMetadata dataMeta = (DataProviderMetadata)dataProvidedListByFieldName .get(name); dataMeta.populateSelectedFields(form, list, selected); controller.update(); updateAndSave(controller.getDataProviderActions(), false, false); }
4173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4173/837cc864f302ee7d224034d01d22ba6f2805343f/ThinletBinder.java/clean/genesis/modules/client/src/net/java/dev/genesis/ui/thinlet/ThinletBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1089, 6233, 12, 780, 508, 16, 1033, 3604, 13, 1216, 1185, 288, 1377, 727, 509, 8526, 3170, 273, 21936, 1810, 18, 588, 7416, 8639, 12, 6587, 1769, 1377, 727, 987, 666, 273, 261, 682, 13, 892, 19254, 18, 588, 12, 529, 1769, 1377, 727, 1910, 2249, 2277, 501, 2781, 273, 261, 20757, 2277, 13, 892, 19254, 682, 858, 7287, 5411, 263, 588, 12, 529, 1769, 1377, 501, 2781, 18, 19936, 7416, 2314, 12, 687, 16, 666, 16, 3170, 1769, 1377, 2596, 18, 2725, 5621, 1377, 1089, 1876, 4755, 12, 5723, 18, 588, 20757, 6100, 9334, 629, 16, 629, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1071, 918, 1089, 6233, 12, 780, 508, 16, 1033, 3604, 13, 1216, 1185, 288, 1377, 727, 509, 8526, 3170, 273, 21936, 1810, 18, 588, 7416, 8639, 12, 6587, 1769, 1377, 727, 987, 666, 273, 261, 682, 13, 892, 19254, 18, 588, 12, 529, 1769, 1377, 727, 1910, 2249, 2277, 501, 2781, 273, 261, 20757, 2277, 13, 892, 19254, 682, 858, 7287, 5411, 263, 588, 12, 529, 1769, 1377, 501, 2781, 18, 19936, 7416, 2314, 12, 687, 16, 666, 16, 3170, 1769, 1377, 2596, 18, 2725, 5621, 1377, 1089, 1876, 4755, 12, 5723, 18, 588, 20757, 6100, 9334, 629, 16, 629, 1769, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return SqlHelpers.sqlQueryHash( m_conPool, sqlQuery, params );
return SqlHelpers.sqlQueryHash( connectionPool, sqlQuery, params );
public Map sqlQueryHash( String sqlQuery, String[] params ) { return SqlHelpers.sqlQueryHash( m_conPool, sqlQuery, params ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/f2f9ad94bcc2d4bef2da5495cc29d37e598778da/IMCService.java/clean/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 24451, 2310, 12, 514, 24451, 16, 514, 8526, 859, 262, 288, 3639, 327, 8855, 13375, 18, 4669, 1138, 2310, 12, 1459, 2864, 16, 24451, 16, 859, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 24451, 2310, 12, 514, 24451, 16, 514, 8526, 859, 262, 288, 3639, 327, 8855, 13375, 18, 4669, 1138, 2310, 12, 1459, 2864, 16, 24451, 16, 859, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 UGLY_METHODS ? getUglyMethod() : getFullMethod(); else if (key.equals("givenClass")) return getNameInClass();
return UGLY_METHODS ? getUglyMethod() : getFullMethod(primaryClass); else if (key.equals("givenClass")) return getNameInClass(primaryClass);
protected String formatPackageMember(String key) { if (key.equals("")) return UGLY_METHODS ? getUglyMethod() : getFullMethod(); else if (key.equals("givenClass")) return getNameInClass(); else if (key.equals("shortMethod")) return className + "." + methodName + "()"; else if (key.equals("returnType")) { int i = methodSig.indexOf(')'); String returnType = methodSig.substring(i+1); String pkgName = getPackageName(); SignatureConverter converter = new SignatureConverter(returnType); return shorten(pkgName, converter.parseNext()); } else throw new IllegalArgumentException("unknown key " + key); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/f87af9d068b4325d4ede3d630495fe7754971e9d/MethodAnnotation.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/MethodAnnotation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 740, 2261, 4419, 12, 780, 498, 13, 288, 202, 202, 430, 261, 856, 18, 14963, 2932, 6, 3719, 1082, 202, 2463, 587, 43, 7076, 67, 25750, 692, 23037, 75, 715, 1305, 1435, 294, 10208, 1305, 5621, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 10822, 797, 6, 3719, 327, 1723, 382, 797, 5621, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 6620, 1305, 6, 3719, 1082, 202, 2463, 2658, 397, 4585, 397, 4918, 397, 315, 10031, 31, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 2463, 559, 6, 3719, 288, 1082, 202, 474, 277, 273, 707, 8267, 18, 31806, 2668, 2506, 1769, 1082, 202, 780, 9424, 273, 707, 8267, 18, 28023, 12, 77, 15, 21, 1769, 1082, 202, 780, 27288, 273, 28951, 5621, 1082, 202, 5374, 5072, 6027, 273, 394, 9249, 5072, 12, 2463, 559, 1769, 1082, 202, 2463, 19651, 12, 10657, 461, 16, 6027, 18, 2670, 2134, 10663, 202, 202, 97, 202, 12107, 1082, 202, 12849, 394, 2754, 2932, 8172, 498, 315, 397, 498, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 740, 2261, 4419, 12, 780, 498, 13, 288, 202, 202, 430, 261, 856, 18, 14963, 2932, 6, 3719, 1082, 202, 2463, 587, 43, 7076, 67, 25750, 692, 23037, 75, 715, 1305, 1435, 294, 10208, 1305, 5621, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 10822, 797, 6, 3719, 327, 1723, 382, 797, 5621, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 6620, 1305, 6, 3719, 1082, 202, 2463, 2658, 397, 4585, 397, 4918, 397, 315, 10031, 31, 202, 202, 12107, 309, 261, 856, 18, 14963, 2932, 2463, 559, 6, 3719, 288, 1082, 202, 474, 277, 273, 707, 8267, 18, 31806, 2668, 2506, 1769, 1082, 202, 780, 9424, 273, 707, 8267, 18, 28023, 12, 2 ]
"You already did the quest.",
"You've already helped me out! I'm feeling much better now.",
private void step_1() { SpeakerNPC npc = npcs.get("Tad"); npc.add(ConversationStates.ATTENDING, SpeakerNPC.QUEST_MESSAGES, null, ConversationStates.ATTENDING, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { if (player.isQuestCompleted("introduce_players")) { engine.say("I have nothing for you now."); } else { engine.say("I need you to get a #flask from someone."); } } }); /** In case Quest has already been completed */ npc.add(ConversationStates.ATTENDING, "flask", new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC npc) { return player.isQuestCompleted("introduce_players"); } }, ConversationStates.ATTENDING, "You already did the quest.", null); /** If quest is not started yet, start it. */ npc.add(ConversationStates.ATTENDING, "flask", new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC npc) { return !player.hasQuest("introduce_players"); } }, ConversationStates.QUEST_OFFERED, "Could you buy a flask from #Margaret?", null); npc.add(ConversationStates.QUEST_OFFERED, SpeakerNPC.YES_MESSAGES, null, ConversationStates.ATTENDING, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { engine.say("Nice! Please hurry up!"); player.setQuest("introduce_players", "start"); } }); npc.add(ConversationStates.QUEST_OFFERED, "no", null, ConversationStates.ATTENDING, "Ok. But you should really consider it.|There is a nice reward :).", null); npc.add(ConversationStates.QUEST_OFFERED, "margaret", null, ConversationStates.QUEST_OFFERED, "Margaret is the tavern maid that work in Semos tavern. So will you do it?", null); /** Remind player about the quest */ npc.add(ConversationStates.ATTENDING, "flask", new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC npc) { return player.hasQuest("introduce_players") && player.getQuest("introduce_players").equals("start") && !player.isEquipped("flask"); } }, ConversationStates.ATTENDING, "I really need that #flask now! Go to talk with #Margaret.", null); npc.add(ConversationStates.ATTENDING, "margaret", null, ConversationStates.ATTENDING, "Margaret is the tavern maid that work in Semos tavern.", null); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/b511c7b8281580eef17837278eb84d11fc63c0bc/IntroducePlayers.java/buggy/src/games/stendhal/server/maps/quests/IntroducePlayers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2235, 67, 21, 1435, 288, 202, 202, 55, 347, 6388, 50, 3513, 1130, 71, 273, 1130, 2143, 18, 588, 2932, 56, 361, 8863, 202, 202, 82, 2436, 18, 1289, 12, 15717, 7629, 18, 789, 56, 12280, 16, 9506, 202, 55, 347, 6388, 50, 3513, 18, 4740, 67, 26195, 16, 9506, 202, 2011, 16, 9506, 202, 15717, 7629, 18, 789, 56, 12280, 16, 9506, 202, 2011, 16, 9506, 202, 2704, 348, 347, 6388, 50, 3513, 18, 14163, 1803, 1435, 288, 6862, 202, 36, 6618, 6862, 202, 482, 918, 4452, 12, 12148, 7291, 16, 514, 977, 16, 348, 347, 6388, 50, 3513, 4073, 13, 288, 25083, 202, 430, 261, 14872, 18, 291, 30791, 9556, 2932, 23342, 2544, 311, 67, 1601, 414, 6, 3719, 288, 6862, 1082, 202, 8944, 18, 87, 528, 2932, 45, 1240, 5083, 364, 1846, 2037, 1199, 1769, 25083, 202, 97, 469, 288, 6862, 1082, 202, 8944, 18, 87, 528, 2932, 45, 1608, 1846, 358, 336, 279, 468, 2242, 835, 628, 18626, 1199, 1769, 25083, 202, 97, 6862, 202, 97, 9506, 202, 22938, 202, 202, 26873, 657, 648, 4783, 395, 711, 1818, 2118, 5951, 1195, 202, 202, 82, 2436, 18, 1289, 12, 15717, 7629, 18, 789, 56, 12280, 16, 9506, 202, 6, 2242, 835, 3113, 9506, 202, 2704, 348, 347, 6388, 50, 3513, 18, 14163, 3418, 1435, 288, 6862, 202, 36, 6618, 6862, 202, 482, 1250, 4452, 12, 12148, 7291, 16, 348, 347, 6388, 50, 3513, 1130, 71, 13, 288, 25083, 202, 2463, 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, 2235, 67, 21, 1435, 288, 202, 202, 55, 347, 6388, 50, 3513, 1130, 71, 273, 1130, 2143, 18, 588, 2932, 56, 361, 8863, 202, 202, 82, 2436, 18, 1289, 12, 15717, 7629, 18, 789, 56, 12280, 16, 9506, 202, 55, 347, 6388, 50, 3513, 18, 4740, 67, 26195, 16, 9506, 202, 2011, 16, 9506, 202, 15717, 7629, 18, 789, 56, 12280, 16, 9506, 202, 2011, 16, 9506, 202, 2704, 348, 347, 6388, 50, 3513, 18, 14163, 1803, 1435, 288, 6862, 202, 36, 6618, 6862, 202, 482, 918, 4452, 12, 12148, 7291, 16, 514, 977, 16, 348, 347, 6388, 50, 3513, 4073, 13, 288, 25083, 202, 430, 261, 14872, 18, 291, 30791, 9556, 2932, 23342, 2544, 2 ]
super.cancel(); if(currentState != null) { Logger.minor(this, "Cancelling "+currentState); currentState.cancel(); }
s = currentState; } if(s != null) { Logger.minor(this, "Cancelling "+currentState); s.cancel();
public void cancel() { Logger.minor(this, "Cancelling "+this); synchronized(this) { super.cancel(); if(currentState != null) { Logger.minor(this, "Cancelling "+currentState); currentState.cancel(); } } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/ba61984610fbdc6ae89adf37e39660cc27c3f343/ClientGetter.java/buggy/src/freenet/client/async/ClientGetter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3755, 1435, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2568, 3855, 310, 13773, 2211, 1769, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 9565, 18, 10996, 5621, 1082, 202, 430, 12, 2972, 1119, 480, 446, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2568, 3855, 310, 13773, 2972, 1119, 1769, 9506, 202, 2972, 1119, 18, 10996, 5621, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3755, 1435, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2568, 3855, 310, 13773, 2211, 1769, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 9565, 18, 10996, 5621, 1082, 202, 430, 12, 2972, 1119, 480, 446, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2568, 3855, 310, 13773, 2972, 1119, 1769, 9506, 202, 2972, 1119, 18, 10996, 5621, 1082, 202, 97, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Debug.log(e.getMessage()); e.printStackTrace();
Debug.trace("Can not find optional resource " + CONDITIONS_SPECRESOURCENAME); this.rules = new RulesEngine(null,installdata);
protected void loadConditions() { try { InputStream input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { // there seem to be no conditions return; } StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setValidator(new NonValidator()); parser.setReader(new StdXMLReader(input)); // get the data XMLElement conditionsxml = (XMLElement) parser.parse(); this.rules = new RulesEngine(conditionsxml, installdata); } catch (Exception e) { Debug.log(e.getMessage()); e.printStackTrace(); } }
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/6c51646e243ae60296ff6cfdfb4d5ace6876673f/InstallerFrame.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/InstallerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 8545, 1435, 288, 3639, 775, 288, 5411, 5037, 810, 273, 333, 18, 588, 1420, 12, 22017, 55, 67, 23810, 5458, 3584, 1099, 39, 21150, 1769, 5411, 309, 261, 2630, 422, 446, 13, 288, 7734, 368, 1915, 19264, 358, 506, 1158, 4636, 7734, 327, 31, 5411, 289, 5411, 6276, 4201, 2678, 2082, 273, 394, 6276, 4201, 2678, 5621, 5411, 2082, 18, 542, 1263, 12, 2704, 6276, 4201, 1263, 10663, 5411, 2082, 18, 542, 5126, 12, 2704, 3858, 5126, 10663, 5411, 2082, 18, 542, 2514, 12, 2704, 6276, 4201, 2514, 12, 2630, 10019, 5411, 368, 336, 326, 501, 5411, 1139, 11155, 4636, 2902, 273, 261, 15223, 13, 2082, 18, 2670, 5621, 5411, 333, 18, 7482, 273, 394, 15718, 4410, 12, 6381, 2902, 16, 3799, 892, 1769, 3639, 289, 3639, 1044, 261, 503, 425, 13, 288, 5411, 4015, 18, 1330, 12, 73, 18, 24906, 10663, 5411, 425, 18, 1188, 6332, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 8545, 1435, 288, 3639, 775, 288, 5411, 5037, 810, 273, 333, 18, 588, 1420, 12, 22017, 55, 67, 23810, 5458, 3584, 1099, 39, 21150, 1769, 5411, 309, 261, 2630, 422, 446, 13, 288, 7734, 368, 1915, 19264, 358, 506, 1158, 4636, 7734, 327, 31, 5411, 289, 5411, 6276, 4201, 2678, 2082, 273, 394, 6276, 4201, 2678, 5621, 5411, 2082, 18, 542, 1263, 12, 2704, 6276, 4201, 1263, 10663, 5411, 2082, 18, 542, 5126, 12, 2704, 3858, 5126, 10663, 5411, 2082, 18, 542, 2514, 12, 2704, 6276, 4201, 2514, 12, 2630, 10019, 5411, 368, 336, 326, 501, 5411, 1139, 11155, 4636, 2902, 273, 261, 15223, 13, 2082, 18, 2670, 5621, 5411, 333, 18, 7482, 273, 394, 2 ]
return jjStopAtPos(0, 117);
return jjStopAtPos(0, 121);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 33: return jjMoveStringLiteralDfa1_0(0x1000000000000L, 0x0L); case 37: jjmatchedKind = 36; return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L); case 38: jjmatchedKind = 40; return jjMoveStringLiteralDfa1_0(0x80000000000000L, 0x0L); case 40: return jjStopAtPos(0, 18); case 41: return jjStopAtPos(0, 19); case 42: jjmatchedKind = 30; return jjMoveStringLiteralDfa1_0(0x1008000200000000L, 0x0L); case 43: jjmatchedKind = 28; return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0x0L); case 44: return jjStopAtPos(0, 25); case 45: jjmatchedKind = 29; return jjMoveStringLiteralDfa1_0(0x4000000000000L, 0x0L); case 46: return jjStartNfaWithStates_0(0, 26, 70); case 47: jjmatchedKind = 31; return jjMoveStringLiteralDfa1_0(0x30000100000000L, 0x0L); case 58: return jjStopAtPos(0, 27); case 59: return jjStopAtPos(0, 24); case 60: jjmatchedKind = 43; return jjMoveStringLiteralDfa1_0(0x400a00400000000L, 0x0L); case 61: jjmatchedKind = 41; return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x0L); case 62: jjmatchedKind = 42; return jjMoveStringLiteralDfa1_0(0x800400800000000L, 0x0L); case 91: return jjStopAtPos(0, 22); case 93: return jjStopAtPos(0, 23); case 94: jjmatchedKind = 38; return jjMoveStringLiteralDfa1_0(0x200000000000000L, 0x0L); case 96: return jjStopAtPos(0, 117); case 97: return jjMoveStringLiteralDfa1_0(0x4000000000000000L, 0x6000000L); case 98: return jjMoveStringLiteralDfa1_0(0x0L, 0x8000L); case 99: return jjMoveStringLiteralDfa1_0(0x0L, 0x10800L); case 100: return jjMoveStringLiteralDfa1_0(0x0L, 0x200400L); case 101: return jjMoveStringLiteralDfa1_0(0x0L, 0x1000230L); case 102: return jjMoveStringLiteralDfa1_0(0x0L, 0x101080L); case 103: return jjMoveStringLiteralDfa1_0(0x0L, 0x800000L); case 105: return jjMoveStringLiteralDfa1_0(0x0L, 0x8000bL); case 108: return jjMoveStringLiteralDfa1_0(0x0L, 0x4L); case 110: return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x0L); case 111: return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x0L, 0x6000L); case 114: return jjMoveStringLiteralDfa1_0(0x0L, 0x420000L); case 116: return jjMoveStringLiteralDfa1_0(0x0L, 0x100L); case 119: return jjMoveStringLiteralDfa1_0(0x0L, 0x40L); case 121: return jjMoveStringLiteralDfa1_0(0x0L, 0x40000L); case 123: return jjStopAtPos(0, 20); case 124: jjmatchedKind = 39; return jjMoveStringLiteralDfa1_0(0x100000000000000L, 0x0L); case 125: return jjStopAtPos(0, 21); case 126: return jjStopAtPos(0, 37); default : return jjMoveNfa_0(0, 0); }}
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammarTokenManager.java/clean/org/python/parser/PythonGrammarTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13159, 30, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 21, 12648, 2787, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 18091, 30, 540, 10684, 11073, 5677, 273, 6580, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 24, 12648, 11706, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 18012, 30, 540, 10684, 11073, 5677, 273, 8063, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 28, 12648, 11706, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 8063, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 6549, 1769, 1377, 648, 20170, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 5342, 1769, 1377, 648, 14856, 30, 540, 10684, 11073, 5677, 273, 5196, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 6625, 17374, 3103, 12648, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 21193, 30, 540, 10684, 11073, 5677, 273, 9131, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 22, 12648, 2787, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 13291, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 6969, 1769, 1377, 648, 12292, 30, 540, 10684, 11073, 5677, 273, 12899, 31, 540, 327, 10684, 7607, 28565, 40, 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, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13159, 30, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 21, 12648, 2787, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 18091, 30, 540, 10684, 11073, 5677, 273, 6580, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 24, 12648, 11706, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 18012, 30, 540, 10684, 11073, 5677, 273, 8063, 31, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12, 20, 92, 28, 12648, 11706, 48, 16, 374, 92, 20, 48, 1769, 1377, 648, 8063, 2 ]
if (thisOnTOS && !staticMethod) { switch(seen) { case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount ) {
if (thisOnTOS && !staticMethod) { switch (seen) { case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount) {
public void sawOpcode(int seen) { assert check; /* System.out.println("Saw " + PC + ": " + OPCODE_NAMES[seen] + " " + thisOnTOS + " " + fieldOnTOS ); */ if (staticMethod && dangerousToStoreIntoField && seen == PUTSTATIC && MutableStaticFields.mutableSignature(getSigConstantOperand()) ) { bugReporter.reportBug(new BugInstance("EI_EXPOSE_STATIC_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(getClassConstantOperand(), getNameConstantOperand(), getSigConstantOperand(), true) .addSourceLine(this)); } if (!staticMethod && dangerousToStoreIntoField && seen == PUTFIELD && MutableStaticFields.mutableSignature(getSigConstantOperand()) ) { bugReporter.reportBug(new BugInstance("EI_EXPOSE_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(getClassConstantOperand(), getNameConstantOperand(), getSigConstantOperand(), true) .addSourceLine(this)); /* System.out.println("Store of parameter " + r +"/" + parameterCount + " into field of type " + sigConstant + " in " + betterMethodName); bugReporter.reportBug(new BugInstance("EI_EXPOSE_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(betterClassConstant, nameConstant, betterSigConstant, false) .addSourceLine(this)); ` */ } dangerousToStoreIntoField = false; int reg = -1; // this value should never be seen checkStore: { switch(seen) { case ALOAD_0: reg = 0; break; case ALOAD_1: reg = 1; break; case ALOAD_2: reg = 2; break; case ALOAD_3: reg = 3; break; case ALOAD: reg = getRegisterOperand(); break; default: break checkStore; } if (reg < parameterCount) timesRead[reg]++; } if (thisOnTOS && !staticMethod) { switch(seen) { case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount ) { //r = reg; dangerousToStoreIntoField = true; // System.out.println("Found dangerous value from parameter " + reg); } default: } } else if (staticMethod) { switch(seen) { case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount ) { //r = reg; dangerousToStoreIntoField = true; } default: } } if (seen == ALOAD_0 && !staticMethod) { thisOnTOS = true; fieldOnTOS = false; return; } if (thisOnTOS && seen == GETFIELD && getClassConstantOperand().equals(getClassName())) { fieldOnTOS = true; thisOnTOS = false; nameOnStack = getNameConstantOperand(); classNameOnStack = getDottedClassConstantOperand(); sigOnStack = getSigConstantOperand(); fieldIsStatic = false; // System.out.println("Saw getfield"); return; } if (seen == GETSTATIC && getClassConstantOperand().equals(getClassName())) { fieldOnTOS = true; thisOnTOS = false; nameOnStack = getNameConstantOperand(); classNameOnStack = getDottedClassConstantOperand(); sigOnStack = getSigConstantOperand(); fieldIsStatic = true; return; } thisOnTOS = false; if (check && fieldOnTOS && seen == ARETURN /* && !sigOnStack.equals("Ljava/lang/String;") && sigOnStack.indexOf("Exception") == -1 && sigOnStack.indexOf("[") >= 0 */ && nameOnStack.indexOf("EMPTY") == -1 && MutableStaticFields.mutableSignature(sigOnStack) ) { bugReporter.reportBug(new BugInstance(staticMethod ? "MS_EXPOSE_REP" : "EI_EXPOSE_REP", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(classNameOnStack, nameOnStack, sigOnStack, fieldIsStatic) .addSourceLine(this)); } fieldOnTOS = false; thisOnTOS = false; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindReturnRef.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindReturnRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 11231, 866, 31, 202, 20308, 202, 3163, 18, 659, 18, 8222, 2932, 55, 2219, 315, 397, 26300, 397, 6398, 315, 397, 531, 3513, 2712, 67, 16257, 63, 15156, 65, 397, 315, 202, 6, 1875, 202, 15, 333, 1398, 4296, 55, 1082, 202, 15, 315, 202, 6, 1082, 202, 15, 652, 1398, 4296, 55, 1082, 202, 1769, 202, 5549, 202, 430, 261, 3845, 1305, 597, 27308, 1481, 774, 2257, 5952, 974, 597, 5881, 422, 11443, 22741, 1875, 202, 10, 10, 10960, 5788, 2314, 18, 5146, 5374, 12, 588, 8267, 6902, 10265, 10756, 262, 288, 1082, 202, 925, 13289, 18, 6006, 19865, 12, 2704, 16907, 1442, 2932, 41, 45, 67, 2294, 23757, 67, 22741, 67, 28879, 22, 3113, 16362, 67, 19804, 13, 9506, 202, 18, 1289, 797, 1876, 1305, 12, 2211, 13, 9506, 202, 18, 1289, 974, 12, 588, 797, 6902, 10265, 9334, 1723, 6902, 10265, 9334, 1322, 360, 6902, 10265, 9334, 25083, 202, 3767, 13, 9506, 202, 18, 1289, 1830, 1670, 12, 2211, 10019, 202, 202, 97, 202, 430, 16051, 3845, 1305, 597, 27308, 1481, 774, 2257, 5952, 974, 597, 5881, 422, 11443, 6776, 1875, 202, 10, 10, 10960, 5788, 2314, 18, 5146, 5374, 12, 588, 8267, 6902, 10265, 10756, 262, 288, 202, 202, 925, 13289, 18, 6006, 19865, 12, 2704, 16907, 1442, 2932, 41, 45, 67, 2294, 23757, 67, 28879, 22, 3113, 16362, 67, 19804, 13, 1082, 202, 18, 1289, 797, 1876, 1305, 12, 2211, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 11231, 866, 31, 202, 20308, 202, 3163, 18, 659, 18, 8222, 2932, 55, 2219, 315, 397, 26300, 397, 6398, 315, 397, 531, 3513, 2712, 67, 16257, 63, 15156, 65, 397, 315, 202, 6, 1875, 202, 15, 333, 1398, 4296, 55, 1082, 202, 15, 315, 202, 6, 1082, 202, 15, 652, 1398, 4296, 55, 1082, 202, 1769, 202, 5549, 202, 430, 261, 3845, 1305, 597, 27308, 1481, 774, 2257, 5952, 974, 597, 5881, 422, 11443, 22741, 1875, 202, 10, 10, 10960, 5788, 2314, 18, 5146, 5374, 12, 588, 8267, 6902, 10265, 10756, 262, 288, 1082, 202, 925, 13289, 18, 6006, 19865, 12, 2704, 16907, 1442, 2932, 41, 45, 67, 2 ]
System.setProperty("swing.aatext", "true"); try { javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) {}
System.out.println("Starting...");
public static void notmain(String[] args) throws Exception { System.setProperty("swing.aatext", "true"); //Antialiased text try { javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) {} if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAccessFile(isoFile, "rw"); isoRaf.setLength(0); printlnVerbose("Extracting to: " + isoFile); } else { testOnly = true; printlnVerbose("Simulating extraction..."); } dmgRaf.seek(dmgRaf.length()-PLIST_ADDRESS_1); long plistBegin1 = dmgRaf.readLong(); long plistEnd = dmgRaf.readLong(); dmgRaf.seek(dmgRaf.length()-PLIST_ADDRESS_2); long plistBegin2 = dmgRaf.readLong(); long plistSize = dmgRaf.readLong(); if(DEBUG) { println("Read addresses:", " " + plistBegin1, " " + plistBegin2); } if(plistBegin1 != plistBegin2) { println("Addresses not equal! Assumption broken... =/", plistBegin1 + " != " + plistBegin2); System.exit(0); } if(plistSize != (plistEnd-plistBegin1)) { println("plistSize field does not match plistEnd marker!", "plistSize=" + plistSize + " plistBegin1=" + plistBegin1 + " plistEnd=" + plistEnd + " plistEnd-plistBegin1=" + (plistEnd-plistBegin1)); } printlnVerbose("Jumping to address..."); dmgRaf.seek(plistBegin1); byte[] buffer = new byte[(int)plistSize]; dmgRaf.read(buffer); InputStream is = new ByteArrayInputStream(buffer); NodeBuilder handler = new NodeBuilder(); SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser(); try {// System.out.println("validation: " + saxParser.getProperty("validation"));// System.out.println("external-general-entities: " + saxParser.getProperty("external-general-entities"));// System.out.println("external-parameter-entities: " + saxParser.getProperty("external-parameter-entities"));// System.out.println("is-standalone: " + saxParser.getProperty("is-standalone"));// System.out.println("lexical-handler: " + saxParser.getProperty("lexical-handler"));// System.out.println("parameter-entities: " + saxParser.getProperty("parameter-entities"));// System.out.println("namespaces: " + saxParser.getProperty("namespaces"));// System.out.println("namespace-prefixes: " + saxParser.getProperty("namespace-prefixes"));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty("")); System.out.println("isValidating: " + saxParser.isValidating()); saxParser.parse(is, handler); } catch(SAXException se) { se.printStackTrace(); System.err.println("Could not read the partition list... exiting."); System.exit(1); } XMLNode[] rootNodes = handler.getRoots(); if(rootNodes.length != 1) { println("Could not parse DMG-file!"); System.exit(0); } /* Ok, now we have a tree built from the XML-document. Let's walk to the right place. */ /* cd plist cd dict cdkey resource-fork (type:dict) cdkey blkx (type:array) */ XMLNode current; XMLElement[] children; boolean keyFound; current = rootNodes[0]; //We are at plist... probably (there should be only one root node) current = current.cd("dict"); current = current.cdkey("resource-fork"); current = current.cdkey("blkx"); printlnVerbose("Found " + current.getChildren().length + " partitions:"); byte[] tmp = new byte[0x40000]; byte[] otmp = new byte[0x40000]; byte[] zeroblock = new byte[4096]; /* I think java always zeroes its arrays on creation... but let's play safe. */ for(int y = 0; y < zeroblock.length; ++y) zeroblock[y] = 0; LinkedList<DMGBlock> blocks = new LinkedList<DMGBlock>(); //long lastOffs = 0; long lastOutOffset = 0; long lastInOffset = 0; long totalSize = 0; boolean errorsFound = false; reportProgress(0); for(XMLElement xe : current.getChildren()) { if(progmon != null && progmon.isCanceled()) System.exit(0); if(xe instanceof XMLNode) { XMLNode xn = (XMLNode)xe; byte[] data = Base64.decode(xn.getKeyValue("Data")); long partitionSize = calculatePartitionSize(data); totalSize += partitionSize; printlnVerbose(" " + xn.getKeyValue("Name")); printlnVerbose(" ID: " + xn.getKeyValue("ID")); printlnVerbose(" Attributes: " + xn.getKeyValue("Attributes")); printlnVerbose(" Partition map data length: " + data.length + " bytes"); printlnVerbose(" Partition size: " + partitionSize + " bytes"); if(verbose) { printlnVerbose(" Dumping blkx..."); FileOutputStream fos = new FileOutputStream(xn.getKeyValue("ID") + ".blkx"); fos.write(data); fos.close(); } if(DEBUG) { File dumpFile = new File("data " + xn.getKeyValue("ID") + ".bin"); println(" Dumping partition map to file: " + dumpFile); FileOutputStream dump = new FileOutputStream(dumpFile); dump.write(data); dump.close(); } int offset = 0xCC; int blockType = 0; /* Offset of the input data for the current block in the input file */ long inOffset = 0; /* Size of the input data for the current block */ long inSize = 0; /* Offset of the output data for the current block in the output file */ long outOffset = 0; /* Size of the output data (possibly larger than inSize because of decompression, zero expansion...) */ long outSize = 0; long lastByteReadInBlock = -1; boolean addInOffset = false; //, lastInOffs = 0; int blockCount = 0; long previousPercentage = -1; while(blockType != BT_END) { if(progmon != null && progmon.isCanceled()) System.exit(0); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(data)); int bytesSkipped = 0; while(bytesSkipped < offset) bytesSkipped += dis.skipBytes(offset-bytesSkipped); blockType = dis.readInt(); int skipped = dis.readInt(); //Skip 4 bytes forward outOffset = dis.readLong()*0x200;//(dis.readInt() & 0xffffffffL)*0x200; //unsigned int -> long //dis.readInt(); //Skip 4 bytes forward outSize = dis.readLong()*0x200;//(dis.readInt() & 0xffffffffL)*0x200; //unsigned int -> long inOffset = dis.readLong();// & 0xffffffffL; //unsigned int -> long //dis.readInt(); //Skip 4 bytes forward inSize = dis.readLong();//dis.readInt() & 0xffffffffL; //unsigned int -> long blocks.add(new DMGBlock(blockType, skipped, outOffset, outSize, inOffset, inSize)); if(lastByteReadInBlock == -1) lastByteReadInBlock = inOffset; lastByteReadInBlock += inSize; /* The lines below are a "hack" that I had to do to make dmgx work with certain dmg-files. I don't understand the issue at all, which is why this hack is here, but sometimes inOffset == 0 means that it is 0 relative to the previous partition's last inOffset. And sometimes it doesn't (meaning the actual position 0 in the dmg file). */ if(addInOffset) inOffset += lastInOffset; else if(inOffset == 0) { addInOffset = true; inOffset += lastInOffset; } outOffset += lastOutOffset; if(DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset /*+ " lastInOffs=" + lastInOffs + " lastOffs=" + lastOffs*/); } if(blockType == BT_ADC) { println(" " + blockCount + ". BT_ADC not supported."); if(!testOnly) System.exit(0); } else if(blockType == BT_ZLIB) { if(DEBUG) println(" " + blockCount + ". BT_ZLIB processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_ZLIB FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); dmgRaf.seek(/*lastOffs+*/inOffset); if(tmp.length < inSize) tmp = new byte[(int)inSize]; long totalBytesRead = 0; while(totalBytesRead < inSize) { totalBytesRead += dmgRaf.read(tmp, (int)totalBytesRead, Math.min((int)(inSize-totalBytesRead), tmp.length)); } long progressPercentage = dmgRaf.getFilePointer()*100/dmgRaf.length(); if(progressPercentage != previousPercentage) { reportProgress(progressPercentage); previousPercentage = progressPercentage; } Inflater inflater = new Inflater(); inflater.setInput(tmp, 0, (int)totalBytesRead); if(otmp.length < outSize) otmp = new byte[(int)outSize]; int bytesInflated = 0; while(true) { try { int counter = 0; while(bytesInflated < outSize && counter++ < 10) { int old = bytesInflated; bytesInflated += inflater.inflate(otmp, bytesInflated, (int)(outSize-bytesInflated)); if(old == bytesInflated) println("Nothing new! finished()=" + inflater.finished() + " needsInput()=" + inflater.needsInput() + " needsDictionary()=" + inflater.needsDictionary() + " getAdler()=" + inflater.getAdler() + " getBytesRead()=" + inflater.getBytesRead() + " getBytesWritten()=" + inflater.getBytesWritten() + " getRemaining()=" + inflater.getRemaining()); } //System.out.println(" Inflated " + bytesInflated + " bytes. Left in buffer: " + inflater.getRemaining() + " bytes inSize="+inSize+" outSize="+outSize); if(inflater.getRemaining() == 0) { //System.out.println(" done!"); break; } else { println(" " + blockCount + ". BT_ZLIB ERROR: otmp contents lost! (should not happen...)", " outSize=" + outSize + " inSize=" + inSize + " tmp.length=" + tmp.length + " otmp.length=" + otmp.length + " bytesInflated=" + bytesInflated + " inflater.getRemaining()=" + inflater.getRemaining());// if(bytesInflated == 0) throw new RuntimeException("WTF"); } } catch(DataFormatException dfe) { println(" " + blockCount + ". BT_ZLIB Could not decode..."); if(!DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset); } dfe.printStackTrace(); if(!testOnly) System.exit(0); else { println(" Testing mode, so continuing..."); //System.exit(0); errorsFound = true; break; } } } inflater.end(); if(!testOnly) isoRaf.write(otmp, 0, (int)outSize); //lastInOffs = inOffset+inSize; } else if(blockType == BT_BZIP2) { println(" " + blockCount + ". BT_BZIP2 not currently supported."); if(!testOnly) System.exit(0); } else if(blockType == BT_COPY) { if(DEBUG) println(" " + blockCount + ". BT_COPY processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_COPY FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); dmgRaf.seek(/*lastOffs+*/inOffset); int bytesRead = dmgRaf.read(tmp, 0, Math.min((int)inSize, tmp.length)); long totalBytesRead = bytesRead; while(bytesRead != -1) { long progressPercentage = dmgRaf.getFilePointer()*100/dmgRaf.length(); if(progressPercentage != previousPercentage) { reportProgress(progressPercentage); previousPercentage = progressPercentage; } if(!testOnly) isoRaf.write(tmp, 0, bytesRead); if(totalBytesRead >= inSize) break; bytesRead = dmgRaf.read(tmp, 0, Math.min((int)(inSize-totalBytesRead), tmp.length)); if(bytesRead > 0) totalBytesRead += bytesRead; } //lastInOffs = inOffset+inSize; } else if(blockType == BT_ZERO) { if(DEBUG) println(" " + blockCount + ". BT_ZERO processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_ZERO FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); long progressPercentage = dmgRaf.getFilePointer()*100/dmgRaf.length(); if(progressPercentage != previousPercentage) { reportProgress(progressPercentage); previousPercentage = progressPercentage; } long numberOfZeroBlocks = outSize/zeroblock.length; int numberOfRemainingBytes = (int)(outSize%zeroblock.length); for(int j = 0; j < numberOfZeroBlocks; ++j) { if(!testOnly) isoRaf.write(zeroblock); } if(!testOnly) isoRaf.write(zeroblock, 0, numberOfRemainingBytes); //lastInOffs = inOffset+inSize; } else if(blockType == BT_UNKNOWN) { /* I have no idea what this blocktype is... but it's common, and usually doesn't appear more than 2-3 times in a dmg. As long as its input and output sizes are 0, there's no reason to complain... is there? */ if(DEBUG) println(" " + blockCount + ". BT_UNKNOWN processing..."); if(!(inSize == 0 && outSize == 0)) { println(" " + blockCount + ". WARNING! Blocktype BT_UNKNOWN had non-zero sizes...", " inSize=" + inSize + ", outSize=" + outSize); //println(" The author of the program would be pleased if you contacted him about this."); // ...or would I? } } else if(blockType == BT_END) { if(DEBUG) println(" " + blockCount + ". BT_END processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_END FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); //lastOffs += lastInOffs; lastOutOffset = outOffset; lastInOffset += lastByteReadInBlock; } else { println(" " + blockCount + ". WARNING: previously unseen blocktype " + blockType + " [0x" + Integer.toHexString(blockType) + "]", " " + blockCount + ". outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". unknown blocktype FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); } offset += 0x28; ++blockCount; } } } //printlnVerbose("Progress: 100% Done!"); reportProgress(100); String errors = errorsFound?"There were errors...":"No errors reported."; if(!graphical) { newline(); println(errors); printlnVerbose("Total extracted bytes: " + totalSize + " B"); } else { progmon.close(); JOptionPane.showMessageDialog(null, "Extraction complete! " + errors + "\n" + "Total extracted bytes: " + totalSize + " B", "Information", JOptionPane.INFORMATION_MESSAGE); System.exit(0); }// System.out.println("blocks.size()=" + blocks.size());// for(DMGBlock b : blocks)// System.out.println(" " + b.toString()); LinkedList<DMGBlock> merged = mergeBlocks(blocks);// System.out.println("merged.size()=" + merged.size());// for(DMGBlock b : merged)// System.out.println(" " + b.toString()); System.out.println("Extracting all the parts not containing block data from source file:"); int i = 1; DMGBlock previous = null; for(DMGBlock b : merged) { if(previous == null && b.inOffset > 0) { String filename = i++ + ".block"; System.out.print(" " + filename + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(0); byte[] data = new byte[(int)(b.inOffset)]; dmgRaf.read(data); curFos.write(data); curFos.close(); } else if(previous != null) { String filename = i++ + ".block"; System.out.print(" " + filename + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(previous.inOffset+previous.inSize); byte[] data = new byte[(int)(b.inOffset-(previous.inOffset+previous.inSize))]; dmgRaf.read(data); curFos.write(data); curFos.close(); } previous = b; } if(previous.inOffset+previous.inSize != dmgRaf.length()) { String filename = i++ + ".block"; System.out.print(" " + filename + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(previous.inOffset+previous.inSize); byte[] data = new byte[(int)(dmgRaf.length()-(previous.inOffset+previous.inSize))]; dmgRaf.read(data); curFos.write(data); curFos.close(); } dmgRaf.close(); System.out.println("done!"); }
52348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52348/5670851fe35d7f4a279935ee6fab51c9c4391e55/DMGExtractor.java/clean/src/org/catacombae/dmgx/DMGExtractor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 486, 5254, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 3163, 18, 542, 1396, 2932, 5328, 310, 18, 69, 270, 408, 3113, 315, 3767, 8863, 368, 14925, 649, 77, 8905, 977, 3639, 202, 698, 288, 6863, 18, 5328, 310, 18, 5370, 1318, 18, 542, 9794, 1876, 2954, 292, 12, 28384, 18, 5328, 310, 18, 5370, 1318, 18, 588, 3163, 9794, 1876, 2954, 292, 3834, 10663, 289, 202, 14683, 12, 503, 425, 13, 2618, 202, 202, 430, 12, 9394, 13, 3988, 273, 638, 31, 202, 202, 2670, 2615, 12, 1968, 1769, 202, 8222, 14489, 2932, 7798, 30, 315, 397, 9113, 75, 812, 1769, 202, 8529, 26933, 9113, 75, 54, 1727, 273, 394, 8072, 26933, 12, 10956, 75, 812, 16, 315, 86, 8863, 202, 8529, 26933, 8702, 54, 1727, 273, 446, 31, 202, 6494, 1842, 3386, 273, 629, 31, 202, 430, 12, 9699, 812, 480, 446, 13, 288, 202, 565, 8702, 54, 1727, 273, 394, 8072, 26933, 12, 9699, 812, 16, 315, 21878, 8863, 202, 565, 8702, 54, 1727, 18, 542, 1782, 12, 20, 1769, 202, 565, 3785, 14489, 2932, 4976, 310, 358, 30, 315, 397, 8702, 812, 1769, 202, 97, 202, 12107, 288, 202, 565, 1842, 3386, 273, 638, 31, 202, 565, 3785, 14489, 2932, 7993, 27967, 18752, 7070, 1769, 202, 97, 202, 202, 10956, 75, 54, 1727, 18, 16508, 12, 10956, 75, 54, 1727, 18, 2469, 1435, 17, 52, 7085, 67, 15140, 67, 21, 1769, 202, 5748, 21074, 8149, 21, 273, 9113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 486, 5254, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 3163, 18, 542, 1396, 2932, 5328, 310, 18, 69, 270, 408, 3113, 315, 3767, 8863, 368, 14925, 649, 77, 8905, 977, 3639, 202, 698, 288, 6863, 18, 5328, 310, 18, 5370, 1318, 18, 542, 9794, 1876, 2954, 292, 12, 28384, 18, 5328, 310, 18, 5370, 1318, 18, 588, 3163, 9794, 1876, 2954, 292, 3834, 10663, 289, 202, 14683, 12, 503, 425, 13, 2618, 202, 202, 430, 12, 9394, 13, 3988, 273, 638, 31, 202, 202, 2670, 2615, 12, 1968, 1769, 202, 8222, 14489, 2932, 7798, 30, 315, 397, 9113, 75, 812, 1769, 202, 8529, 26933, 9113, 75, 54, 1727, 273, 394, 8072, 26933, 12, 2 ]
if (newWorkingSets == null)
if (newWorkingSets == null) {
public void setWorkingSets(IWorkingSet[] newWorkingSets) { if (newWorkingSets == null) newWorkingSets = new IWorkingSet[0]; IWorkingSet[] oldWorkingSets = workingSets; // filter out any duplicates if necessary if (newWorkingSets.length > 1) { Set setOfSets = new HashSet(); for (int i = 0; i < newWorkingSets.length; i++) { if (newWorkingSets[i] == null) throw new IllegalArgumentException(); setOfSets.add(newWorkingSets[i]); } newWorkingSets = (IWorkingSet[]) setOfSets .toArray(new IWorkingSet[setOfSets.size()]); } workingSets = newWorkingSets; if (!Arrays.equals(oldWorkingSets, newWorkingSets)) { firePropertyChange(CHANGE_WORKING_SETS_REPLACE, oldWorkingSets, newWorkingSets); if (aggregateWorkingSet != null) { aggregateWorkingSet.setComponents(workingSets); } } if (newWorkingSets != null) { WorkbenchPlugin .getDefault() .getWorkingSetManager() .addPropertyChangeListener(workingSetPropertyChangeListener); } else { WorkbenchPlugin.getDefault().getWorkingSetManager() .removePropertyChangeListener( workingSetPropertyChangeListener); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 14836, 2785, 12, 45, 14836, 694, 8526, 394, 14836, 2785, 13, 288, 202, 202, 430, 261, 2704, 14836, 2785, 422, 446, 13, 1082, 202, 2704, 14836, 2785, 273, 394, 467, 14836, 694, 63, 20, 15533, 202, 202, 45, 14836, 694, 8526, 1592, 14836, 2785, 273, 5960, 2785, 31, 9506, 202, 759, 1034, 596, 1281, 11211, 309, 4573, 202, 202, 430, 261, 2704, 14836, 2785, 18, 2469, 405, 404, 13, 288, 9506, 202, 694, 444, 951, 2785, 273, 394, 6847, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 394, 14836, 2785, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 261, 2704, 14836, 2785, 63, 77, 65, 422, 446, 13, 6862, 202, 12849, 394, 2754, 5621, 9506, 202, 542, 951, 2785, 18, 1289, 12, 2704, 14836, 2785, 63, 77, 19226, 1082, 202, 97, 1082, 202, 2704, 14836, 2785, 273, 261, 45, 14836, 694, 63, 5717, 444, 951, 2785, 6862, 202, 18, 31447, 12, 2704, 467, 14836, 694, 63, 542, 951, 2785, 18, 1467, 1435, 19226, 202, 202, 97, 202, 202, 20478, 2785, 273, 394, 14836, 2785, 31, 202, 202, 430, 16051, 12726, 18, 14963, 12, 1673, 14836, 2785, 16, 394, 14836, 2785, 3719, 288, 1082, 202, 12179, 1396, 3043, 12, 14473, 67, 10566, 1360, 67, 28092, 67, 21726, 16, 1592, 14836, 2785, 16, 6862, 202, 2704, 14836, 2785, 1769, 1082, 202, 430, 261, 18573, 14836, 694, 480, 446, 13, 288, 9506, 202, 18573, 14836, 694, 18, 542, 7171, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 14836, 2785, 12, 45, 14836, 694, 8526, 394, 14836, 2785, 13, 288, 202, 202, 430, 261, 2704, 14836, 2785, 422, 446, 13, 1082, 202, 2704, 14836, 2785, 273, 394, 467, 14836, 694, 63, 20, 15533, 202, 202, 45, 14836, 694, 8526, 1592, 14836, 2785, 273, 5960, 2785, 31, 9506, 202, 759, 1034, 596, 1281, 11211, 309, 4573, 202, 202, 430, 261, 2704, 14836, 2785, 18, 2469, 405, 404, 13, 288, 9506, 202, 694, 444, 951, 2785, 273, 394, 6847, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 394, 14836, 2785, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 261, 2704, 14836, 2785, 63, 77, 65, 422, 446, 13, 6862, 2 ]
public TableModelListener[] getTableModelListeners() {
public TableModelListener[] getTableModelListeners() {
public TableModelListener[] getTableModelListeners() { if (baseModel == null) return new TableModelListener[0]; return baseModel.getTableModelListeners(); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/762cd8fa7c0f438d6db0cf0eaf90b5d52c85a33e/DefaultSortedTableModel.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/DefaultSortedTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3555, 1488, 2223, 8526, 5638, 1488, 5583, 1435, 202, 95, 202, 202, 430, 261, 1969, 1488, 422, 446, 13, 1082, 202, 2463, 394, 3555, 1488, 2223, 63, 20, 15533, 6862, 202, 2463, 1026, 1488, 18, 588, 1388, 1488, 5583, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3555, 1488, 2223, 8526, 5638, 1488, 5583, 1435, 202, 95, 202, 202, 430, 261, 1969, 1488, 422, 446, 13, 1082, 202, 2463, 394, 3555, 1488, 2223, 63, 20, 15533, 6862, 202, 2463, 1026, 1488, 18, 588, 1388, 1488, 5583, 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 ]
public DataList getVertexAttributes(Attribute attr) {
public DataListSet getVertexAttributes() {
public DataList getVertexAttributes(Attribute attr) { startReader(); try { return vertexAttributes.getList(attr); } finally { finishReader(); } }
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/ebefa80ebc57705657a2249820470c341a94948d/PointSet.java/buggy/src-core/de/jreality/scene/PointSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 682, 694, 336, 6475, 2498, 1435, 288, 565, 787, 2514, 5621, 565, 775, 288, 1377, 327, 5253, 2498, 18, 588, 682, 12, 1747, 1769, 565, 289, 3095, 288, 1377, 4076, 2514, 5621, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1910, 682, 694, 336, 6475, 2498, 1435, 288, 565, 787, 2514, 5621, 565, 775, 288, 1377, 327, 5253, 2498, 18, 588, 682, 12, 1747, 1769, 565, 289, 3095, 288, 1377, 4076, 2514, 5621, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaClass"), javaClass);
super(runtime, (RubyClass) runtime.getModule("Java").getClass("JavaClass"), javaClass);
private JavaClass(Ruby runtime, Class javaClass) { super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaClass"), javaClass); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 29491, 12, 54, 10340, 3099, 16, 1659, 2252, 797, 13, 288, 3639, 2240, 12, 9448, 16, 261, 54, 10340, 797, 13, 3099, 18, 588, 3120, 2932, 5852, 20387, 588, 797, 2932, 5852, 797, 6, 3631, 2252, 797, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 29491, 12, 54, 10340, 3099, 16, 1659, 2252, 797, 13, 288, 3639, 2240, 12, 9448, 16, 261, 54, 10340, 797, 13, 3099, 18, 588, 3120, 2932, 5852, 20387, 588, 797, 2932, 5852, 797, 6, 3631, 2252, 797, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
di.addQuery(findByPrimaryKeyMethod, findByPrimarKeyQuery); } catch ( Exception e ) { throw new org.openejb.SystemException("Could not generate a query statement for the findByPrimaryKey method of the deployment = "+di.getDeploymentID(),e);
di.addQuery( findByPrimaryKeyMethod, findByPrimarKeyQuery ); } catch ( Exception e ) { throw new org.openejb.SystemException( "Could not generate a query statement for the findByPrimaryKey method of the deployment = " + di.getDeploymentID(), e );
public void init(Object id, HashMap registry, Properties properties) throws org.openejb.OpenEJBException { containerID = id; deploymentRegistry = registry; if ( properties == null ) properties = new Properties(); SafeToolkit toolkit = SafeToolkit.getToolkit("CastorCMP11_EntityContainer"); SafeProperties safeProps = toolkit.getSafeProperties(properties); poolsize = safeProps.getPropertyAsInt("PoolSize", 100); Global_TX_Database = safeProps.getProperty("Global_TX_Database"); Local_TX_Database = safeProps.getProperty("Local_TX_Database"); File gTxDb = null; File lTxDb = null; try{ gTxDb = org.openejb.util.FileUtils.getFile( Global_TX_Database ); } catch (Exception e){ throw new OpenEJBException("Cannot locate the Global_TX_Database file. "+e.getMessage()); } try{ lTxDb = org.openejb.util.FileUtils.getFile( Local_TX_Database ); } catch (Exception e){ throw new OpenEJBException("Cannot locate the Local_TX_Database file. "+e.getMessage()); } /* * Castor JDO obtains a reference to the TransactionManager throught the InitialContext. * The new InitialContext will use the deployment's JNDI Context, which is normal inside * the container system, so we need to bind the TransactionManager to the deployment's name space * The biggest problem with this is that the bean itself may access the TransactionManager if it * knows the JNDI name, so we bind the TransactionManager into dynamically created transient name * space based every time the container starts. It nearly impossible for the bean to anticipate * and use the binding directly. It may be possible, however, to locate it using a Context listing method. */ String transactionManagerJndiName = "java:openejb/"+(new java.rmi.dgc.VMID()).toString().replace(':', '_'); /* * Because the Tyrex root (used by Castor) is different from the IntraVM root, * we have to bind the TxMgr under env in the IntraVM/comp * IntraVM/comp is bound under TyrexRoot/comp so beans can use java:comp indifferently. */ String transactionManagerJndiNameTyrex = "env/"+(new java.rmi.dgc.VMID()).toString().replace(':', '_'); /* * This container uses two different JDO objects. One whose transactions are managed by a tx manager * and which is not. The following code configures both. */ jdo_ForGlobalTransaction = new JDO(); // Assign the TransactionManager JNDI name to the dynamically generated JNDI name jdo_ForGlobalTransaction.setTransactionManager("java:comp/"+transactionManagerJndiNameTyrex); jdo_ForGlobalTransaction.setDatabasePooling( true ); jdo_ForGlobalTransaction.setConfiguration(gTxDb.getAbsolutePath()); jdo_ForGlobalTransaction.setDatabaseName("Global_TX_Database"); jdo_ForGlobalTransaction.setCallbackInterceptor(this); jdo_ForGlobalTransaction.setInstanceFactory(this); jdo_ForGlobalTransaction.setLogInterceptor(new CMPLogger("Global_TX_Database")); // Make sure the DB is registered as a as synchronization object before the transaction begins. jdo_ForLocalTransaction = new JDO(); jdo_ForLocalTransaction.setConfiguration(lTxDb.getAbsolutePath()); jdo_ForLocalTransaction.setDatabaseName("Local_TX_Database"); jdo_ForLocalTransaction.setCallbackInterceptor(this); jdo_ForLocalTransaction.setInstanceFactory(this); jdo_ForLocalTransaction.setLogInterceptor(new CMPLogger("Local_TX_Database")); /* * This block of code is necessary to avoid a chicken and egg problem. * The DeploymentInfo objects must have a reference to their container * during this assembly process, but the container is created after the * DeploymentInfo necessitating this loop to assign all deployment info * object's their containers. * * In addition the loop is leveraged for other oprations like creating * the method ready pool and the keyGenerator pool. */ org.openejb.DeploymentInfo [] deploys = this.deployments(); /* * the JndiTxReference will dynamically obtian a reference to the TransactionManger the first * time it used. The same Reference is shared by all deployments, which is not a problem. */ JndiTxReference txReference = new JndiTxReference(); for ( int x = 0; x < deploys.length; x++ ) { org.openejb.core.DeploymentInfo di = (org.openejb.core.DeploymentInfo)deploys[x]; di.setContainer(this); // also added this line to create the Method Ready Pool for each deployment methodReadyPoolMap.put(di.getDeploymentID(),new LinkedListStack(poolsize/2)); KeyGenerator kg = null; try { kg = KeyGeneratorFactory.createKeyGenerator(di); di.setKeyGenerator( kg ); } catch ( Exception e ) { logger.error("Unable to create KeyGenerator for deployment id = "+di.getDeploymentID(), e); throw new org.openejb.SystemException("Unable to create KeyGenerator for deployment id = "+di.getDeploymentID(), e); } // bind the TransactionManager to the dynamically generated JNDI name try { if ( di instanceof org.openejb.tyrex.TyrexDeploymentInfo ) { ((javax.naming.Context)di.getJndiEnc().lookup("java:comp")).bind("comp/"+transactionManagerJndiNameTyrex,txReference); } else { di.getJndiEnc().bind(transactionManagerJndiName,txReference); jdo_ForGlobalTransaction.setTransactionManager(transactionManagerJndiName); } } catch ( Exception e ) { logger.error("Unable to bind TransactionManager to deployment id = "+di.getDeploymentID()+" using JNDI name = \""+transactionManagerJndiName+"\"", e); throw new org.openejb.SystemException("Unable to bind TransactionManager to deployment id = "+di.getDeploymentID()+" using JNDI name = \""+transactionManagerJndiName+"\"", e); } try { /** * The following code adds a findByPrimaryKey query-statement to the list of queries * held by the deployment descriptor. The container is required to generate this query * automatically, which is what this code does. */ String findByPrimarKeyQuery = "SELECT e FROM "+di.getBeanClass().getName()+" e WHERE "; if ( kg.isKeyComplex() ) { Field [] pkFields = di.getPrimaryKeyClass().getFields(); for ( int i = 1; i <= pkFields.length; i++ ) { findByPrimarKeyQuery += "e."+pkFields[i-1].getName()+" = $"+i; if ( (i+1)<=pkFields.length ) findByPrimarKeyQuery += " AND "; } } else { findByPrimarKeyQuery += "e."+di.getPrimaryKeyField().getName()+" = $1"; } Method findByPrimaryKeyMethod = di.getHomeInterface().getMethod("findByPrimaryKey", new Class []{di.getPrimaryKeyClass()}); di.addQuery(findByPrimaryKeyMethod, findByPrimarKeyQuery); } catch ( Exception e ) { throw new org.openejb.SystemException("Could not generate a query statement for the findByPrimaryKey method of the deployment = "+di.getDeploymentID(),e); } } resetMap = new HashMap(); resetMap.put(byte.class, new Byte((byte)0)); resetMap.put(boolean.class, new Boolean(false)); resetMap.put(char.class, new Character((char)0)); resetMap.put(short.class, new Short((short)0)); resetMap.put(int.class, new Integer(0)); resetMap.put(long.class, new Long(0)); resetMap.put(float.class, new Float(0)); resetMap.put(double.class, new Double(0.0)); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/573534e5a220c625cf2ee9c177d1c12d1949a023/CastorCMP11_EntityContainer.java/clean/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 921, 612, 16, 4317, 4023, 16, 6183, 1790, 13, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 565, 288, 3639, 24257, 273, 612, 31, 3639, 6314, 4243, 273, 4023, 31, 3639, 309, 261, 1790, 422, 446, 262, 1790, 273, 394, 6183, 5621, 3639, 14060, 6364, 8691, 5226, 8691, 273, 14060, 6364, 8691, 18, 588, 6364, 8691, 2932, 9735, 280, 39, 4566, 2499, 67, 1943, 2170, 8863, 3639, 14060, 2297, 4183, 5047, 273, 5226, 8691, 18, 588, 9890, 2297, 12, 4738, 1769, 7734, 2845, 1467, 6647, 273, 4183, 5047, 18, 588, 1396, 31720, 2932, 18834, 3113, 2130, 1769, 3639, 8510, 67, 16556, 67, 4254, 273, 4183, 5047, 18, 588, 1396, 2932, 5160, 67, 16556, 67, 4254, 8863, 3639, 3566, 67, 16556, 67, 4254, 225, 273, 4183, 5047, 18, 588, 1396, 2932, 2042, 67, 16556, 67, 4254, 8863, 7734, 1387, 314, 4188, 4331, 273, 446, 31, 3639, 1387, 328, 4188, 4331, 273, 446, 31, 3639, 775, 95, 5411, 314, 4188, 4331, 273, 2358, 18, 3190, 73, 10649, 18, 1367, 18, 812, 1989, 18, 29925, 12, 8510, 67, 16556, 67, 4254, 11272, 3639, 289, 1044, 261, 503, 425, 15329, 5411, 604, 394, 3502, 22719, 503, 2932, 4515, 10627, 326, 8510, 67, 16556, 67, 4254, 585, 18, 13773, 73, 18, 24906, 10663, 540, 289, 3639, 775, 95, 5411, 328, 4188, 4331, 273, 2358, 18, 3190, 73, 10649, 18, 1367, 18, 812, 1989, 18, 29925, 12, 3566, 67, 16556, 67, 4254, 11272, 3639, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 921, 612, 16, 4317, 4023, 16, 6183, 1790, 13, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 565, 288, 3639, 24257, 273, 612, 31, 3639, 6314, 4243, 273, 4023, 31, 3639, 309, 261, 1790, 422, 446, 262, 1790, 273, 394, 6183, 5621, 3639, 14060, 6364, 8691, 5226, 8691, 273, 14060, 6364, 8691, 18, 588, 6364, 8691, 2932, 9735, 280, 39, 4566, 2499, 67, 1943, 2170, 8863, 3639, 14060, 2297, 4183, 5047, 273, 5226, 8691, 18, 588, 9890, 2297, 12, 4738, 1769, 7734, 2845, 1467, 6647, 273, 4183, 5047, 18, 588, 1396, 31720, 2932, 18834, 3113, 2130, 1769, 3639, 8510, 67, 16556, 67, 4254, 273, 4183, 5047, 18, 588, 1396, 2932, 5160, 2 ]
final ProgressIndicator pi = ProgressManager.getInstance().getProgressIndicator(); pi.setText("Synchronizing files..."); application.invokeAndWait(new Runnable() { public void run() { application.runWriteAction(synchronizeRunnable); } }, pi.getModalityState()); }
vfMan.refresh(true, new Runnable() { public void run() { refreshSemaphore.up(); } }); }
public void run() { final ProgressIndicator pi = ProgressManager.getInstance().getProgressIndicator(); pi.setText("Synchronizing files..."); application.invokeAndWait(new Runnable() { public void run() { application.runWriteAction(synchronizeRunnable); } }, pi.getModalityState()); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54dc3dac5f475bb7fd62a982d7c0ef8ec0a7ddc6/SynchronizeAction.java/clean/source/com/intellij/ide/actions/SynchronizeAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 727, 10980, 13140, 4790, 273, 10980, 1318, 18, 588, 1442, 7675, 588, 5491, 13140, 5621, 1850, 4790, 18, 542, 1528, 2932, 19298, 6894, 1390, 7070, 1769, 1850, 2521, 18, 14407, 1876, 5480, 12, 2704, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 2868, 2521, 18, 2681, 3067, 1803, 12, 87, 2600, 554, 20013, 1769, 5411, 289, 1850, 19879, 4790, 18, 588, 1739, 7919, 1119, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 1086, 1435, 288, 1850, 727, 10980, 13140, 4790, 273, 10980, 1318, 18, 588, 1442, 7675, 588, 5491, 13140, 5621, 1850, 4790, 18, 542, 1528, 2932, 19298, 6894, 1390, 7070, 1769, 1850, 2521, 18, 14407, 1876, 5480, 12, 2704, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 2868, 2521, 18, 2681, 3067, 1803, 12, 87, 2600, 554, 20013, 1769, 5411, 289, 1850, 19879, 4790, 18, 588, 1739, 7919, 1119, 10663, 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 ]
hardware.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_HARDWARE, selectedProducts, repositoryUrl)); monitor.worked(1);
hardware.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_HARDWARE, selectedProducts, repositoryUrl)); monitor.worked(1);
private void updateAttributesFromRepository(String repositoryUrl, String[] selectedProducts, boolean connect) { monitorDialog.open(); IProgressMonitor monitor = monitorDialog.getProgressMonitor(); monitor.beginTask("Updating search options...", 55); try { // TaskRepository repository = // MylarTaskListPlugin.getRepositoryManager().getDefaultRepository( // BugzillaPlugin.REPOSITORY_KIND); // String repositoryUrl = repository.getUrl(); if (connect) { BugzillaUiPlugin.updateQueryOptions(repository, monitor); } if (selectedProducts == null) { String[] productsList = BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_PRODUCT, null, repositoryUrl); Arrays.sort(productsList, String.CASE_INSENSITIVE_ORDER); product.setItems(productsList); monitor.worked(1); } String[] componentsList = BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_COMPONENT, selectedProducts, repositoryUrl); Arrays.sort(componentsList, String.CASE_INSENSITIVE_ORDER); component.setItems(componentsList); monitor.worked(1); version.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_VERSION, selectedProducts, repositoryUrl)); monitor.worked(1); target.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_TARGET, selectedProducts, repositoryUrl)); monitor.worked(1); status.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_STATUS, selectedProducts, repositoryUrl)); monitor.worked(1); // status.setSelection(BugzillaRepositoryUtil.getQueryOptions(IBugzillaConstants.VALUSE_STATUS_PRESELECTED, // repositoryUrl)); monitor.worked(1); resolution.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_RESOLUTION, selectedProducts, repositoryUrl)); monitor.worked(1); severity.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_SEVERITY, selectedProducts, repositoryUrl)); monitor.worked(1); priority.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_PRIORITY, selectedProducts, repositoryUrl)); monitor.worked(1); hardware.setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_HARDWARE, selectedProducts, repositoryUrl)); monitor.worked(1); os .setItems(BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_OS, selectedProducts, repositoryUrl)); monitor.worked(1); } catch (LoginException exception) { // we had a problem that seems to have been caused from bad // login info MessageDialog .openError( null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); // BugzillaPlugin.log(exception); } catch (IOException e) { MessageDialog.openError(null, "Connection Error", e.getMessage() + "\nPlease check your settings in the bugzilla preferences. "); } finally { monitor.done(); monitorDialog.close(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/cbd9c4d43f7cb902bb50706f45afab6f7985cdd2/BugzillaSearchPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 2498, 1265, 3305, 12, 780, 3352, 1489, 16, 514, 8526, 3170, 13344, 16, 1250, 3077, 13, 288, 202, 202, 10259, 6353, 18, 3190, 5621, 202, 202, 45, 5491, 7187, 6438, 273, 6438, 6353, 18, 588, 5491, 7187, 5621, 202, 202, 10259, 18, 10086, 2174, 2932, 17858, 1623, 702, 7070, 16, 21483, 1769, 202, 202, 698, 288, 1082, 202, 759, 3837, 3305, 3352, 273, 1082, 202, 759, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 1868, 3305, 12, 1082, 202, 759, 16907, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 1769, 1082, 202, 759, 514, 3352, 1489, 273, 3352, 18, 588, 1489, 5621, 1082, 202, 430, 261, 3612, 13, 288, 9506, 202, 19865, 15990, 13943, 3773, 18, 2725, 1138, 1320, 12, 9071, 16, 6438, 1769, 1082, 202, 97, 1082, 202, 430, 261, 8109, 13344, 422, 446, 13, 288, 9506, 202, 780, 8526, 10406, 682, 273, 16907, 15990, 13943, 3773, 18, 588, 1138, 1320, 12, 13450, 637, 15990, 2918, 18, 16386, 67, 25883, 16, 446, 16, 25083, 202, 9071, 1489, 1769, 9506, 202, 12726, 18, 3804, 12, 18736, 682, 16, 514, 18, 13415, 67, 706, 26753, 16325, 67, 7954, 1769, 9506, 202, 5896, 18, 542, 3126, 12, 18736, 682, 1769, 9506, 202, 10259, 18, 1252, 329, 12, 21, 1769, 1082, 202, 97, 1082, 202, 780, 8526, 4085, 682, 273, 16907, 15990, 13943, 3773, 18, 588, 1138, 1320, 12, 13450, 637, 15990, 2918, 18, 16386, 67, 22922, 16, 6862, 202, 8109, 13344, 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, 1089, 2498, 1265, 3305, 12, 780, 3352, 1489, 16, 514, 8526, 3170, 13344, 16, 1250, 3077, 13, 288, 202, 202, 10259, 6353, 18, 3190, 5621, 202, 202, 45, 5491, 7187, 6438, 273, 6438, 6353, 18, 588, 5491, 7187, 5621, 202, 202, 10259, 18, 10086, 2174, 2932, 17858, 1623, 702, 7070, 16, 21483, 1769, 202, 202, 698, 288, 1082, 202, 759, 3837, 3305, 3352, 273, 1082, 202, 759, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 1868, 3305, 12, 1082, 202, 759, 16907, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 1769, 1082, 202, 759, 514, 3352, 1489, 273, 3352, 18, 588, 1489, 5621, 1082, 202, 430, 261, 3612, 13, 288, 9506, 202, 2 ]
ProgressJob pJob1 = ProgressManager.createProgressJob( "pavlab", "Test1 of Notify" ); ProgressJob pJob2 = ProgressManager.createProgressJob( "pavlab", "Test2 of Notify" ); ProgressJob pJob3 = ProgressManager.createProgressJob( "pavlab", "Test3 of Notify" ); ProgressJob pJob4 = ProgressManager.createProgressJob( "pavlab", "Test4 of Notify" );
ProgressJob pJob1 = ProgressManager.createProgressJob( testUserName, "Test1 of Notify" ); ProgressJob pJob2 = ProgressManager.createProgressJob( testUserName, "Test2 of Notify" ); ProgressJob pJob3 = ProgressManager.createProgressJob( testUserName, "Test3 of Notify" ); ProgressJob pJob4 = ProgressManager.createProgressJob( testUserName, "Test4 of Notify" );
public void testAddToRecentNotificationStringObserver() { pObserver = new HttpProgressObserver( "pavlab" ); pJob = ProgressManager.createProgressJob( "pavlab", "Testing the Progress Manager" ); // single case ProgressManager.addToNotification( pJob.getUser(), pObserver ); pJob.updateProgress( new ProgressData( 88, "Another test", true ) ); assertEquals( pObserver.getProgressData().getPercent(), 88 ); assertEquals( pObserver.getProgressData().getDescription(), "Another test" ); assert ( pObserver.getProgressData().isDone() ); ProgressManager.destroyProgressJob( pJob ); pJob = null; // multiple case ProgressJob pJob1 = ProgressManager.createProgressJob( "pavlab", "Test1 of Notify" ); ProgressJob pJob2 = ProgressManager.createProgressJob( "pavlab", "Test2 of Notify" ); ProgressJob pJob3 = ProgressManager.createProgressJob( "pavlab", "Test3 of Notify" ); ProgressJob pJob4 = ProgressManager.createProgressJob( "pavlab", "Test4 of Notify" ); MockClient mClient = new MockClient(); ProgressManager.addToRecentNotification( "pavlab", mClient ); pJob1.updateProgress(); assertEquals( mClient.upDateTimes(), 1 ); pJob2.updateProgress(); assertEquals( mClient.upDateTimes(), 2 ); pJob3.updateProgress(); assertEquals( mClient.upDateTimes(), 3 ); pJob4.updateProgress(); assertEquals( mClient.upDateTimes(), 4 ); assertEquals( mClient.getProgressData().size(), 1 ); ProgressManager.destroyProgressJob( pJob1 ); ProgressManager.destroyProgressJob( pJob2 ); ProgressManager.destroyProgressJob( pJob3 ); ProgressManager.destroyProgressJob( pJob4 ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/9634af88188fbbf44ec5a9872ed3acbaa906130c/ProgressIntegrationTest.java/buggy/gemma-web/src/test/java/ubic/gemma/web/util/progress/ProgressIntegrationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 774, 17076, 4386, 780, 11048, 1435, 288, 3639, 293, 11048, 273, 394, 2541, 5491, 11048, 12, 315, 84, 842, 7411, 6, 11272, 3639, 293, 2278, 273, 10980, 1318, 18, 2640, 5491, 2278, 12, 315, 84, 842, 7411, 3113, 315, 22218, 326, 10980, 8558, 6, 11272, 3639, 368, 2202, 648, 3639, 10980, 1318, 18, 1289, 774, 4386, 12, 293, 2278, 18, 588, 1299, 9334, 293, 11048, 11272, 3639, 293, 2278, 18, 2725, 5491, 12, 394, 10980, 751, 12, 24153, 16, 315, 37, 24413, 1842, 3113, 638, 262, 11272, 3639, 1815, 8867, 12, 293, 11048, 18, 588, 5491, 751, 7675, 588, 8410, 9334, 24153, 11272, 3639, 1815, 8867, 12, 293, 11048, 18, 588, 5491, 751, 7675, 588, 3291, 9334, 315, 37, 24413, 1842, 6, 11272, 3639, 1815, 261, 293, 11048, 18, 588, 5491, 751, 7675, 291, 7387, 1435, 11272, 3639, 10980, 1318, 18, 11662, 5491, 2278, 12, 293, 2278, 11272, 3639, 293, 2278, 273, 446, 31, 3639, 368, 3229, 648, 3639, 10980, 2278, 293, 2278, 21, 273, 10980, 1318, 18, 2640, 5491, 2278, 12, 315, 84, 842, 7411, 3113, 315, 4709, 21, 434, 10918, 6, 11272, 3639, 10980, 2278, 293, 2278, 22, 273, 10980, 1318, 18, 2640, 5491, 2278, 12, 315, 84, 842, 7411, 3113, 315, 4709, 22, 434, 10918, 6, 11272, 3639, 10980, 2278, 293, 2278, 23, 273, 10980, 1318, 18, 2640, 5491, 2278, 12, 315, 84, 842, 7411, 3113, 315, 4709, 23, 434, 10918, 6, 11272, 3639, 10980, 2278, 293, 2278, 24, 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, 986, 774, 17076, 4386, 780, 11048, 1435, 288, 3639, 293, 11048, 273, 394, 2541, 5491, 11048, 12, 315, 84, 842, 7411, 6, 11272, 3639, 293, 2278, 273, 10980, 1318, 18, 2640, 5491, 2278, 12, 315, 84, 842, 7411, 3113, 315, 22218, 326, 10980, 8558, 6, 11272, 3639, 368, 2202, 648, 3639, 10980, 1318, 18, 1289, 774, 4386, 12, 293, 2278, 18, 588, 1299, 9334, 293, 11048, 11272, 3639, 293, 2278, 18, 2725, 5491, 12, 394, 10980, 751, 12, 24153, 16, 315, 37, 24413, 1842, 3113, 638, 262, 11272, 3639, 1815, 8867, 12, 293, 11048, 18, 588, 5491, 751, 7675, 588, 8410, 9334, 24153, 11272, 3639, 1815, 8867, 12, 293, 11048, 18, 588, 5491, 751, 7675, 2 ]
if (logger.isDebugEnabled()) { logger.debug("Exploring message received with #" + uuid); }
logger.debug("Exploring message received with #" + uuid);
public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) { if (uuid != null) { if (logger.isDebugEnabled()) { logger.debug("Exploring message received with #" + uuid); } ttl--; } boolean broadcast; try { broadcast = broadcaster(ttl, uuid, remoteService); } catch (P2POldMessageException e) { return; } if (broadcast) { // Forwarding the message if (uuid == null) { if (logger.isDebugEnabled()) { logger.debug("Generating uuid for exploring message"); } uuid = generateUuid(); } this.acquaintances.exploring(ttl, uuid, remoteService); if (logger.isDebugEnabled()) { logger.debug("Broadcast exploring message with #" + uuid); } } // Method code --------------------------------------------------------- // This should be register if (this.shouldBeAcquaintance(remoteService)) { this.register(remoteService); remoteService.register((P2PService) ProActive.getStubOnThis()); } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/1279458d52679339839158611daec34b4baf800a/P2PService.java/buggy/src/org/objectweb/proactive/p2p/service/P2PService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 424, 412, 6053, 883, 5079, 598, 31526, 397, 3822, 1769, 5411, 289, 5411, 6337, 413, 31, 3639, 289, 3639, 1250, 8959, 31, 3639, 775, 288, 5411, 8959, 273, 324, 26674, 12, 12546, 16, 3822, 16, 2632, 1179, 1769, 3639, 289, 1044, 261, 52, 22, 2419, 1236, 31270, 425, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 19805, 13, 288, 5411, 368, 17206, 310, 326, 883, 5411, 309, 261, 7080, 422, 446, 13, 288, 7734, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 10792, 1194, 18, 4148, 2932, 21755, 3822, 364, 22991, 6053, 883, 8863, 7734, 289, 7734, 3822, 273, 2103, 5897, 5621, 5411, 289, 5411, 333, 18, 1077, 372, 1598, 6872, 18, 338, 412, 6053, 12, 12546, 16, 3822, 16, 2632, 1179, 1769, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 15926, 22991, 6053, 883, 598, 31526, 397, 3822, 1769, 5411, 289, 3639, 289, 3639, 368, 2985, 981, 13420, 788, 3639, 368, 1220, 1410, 506, 1744, 3639, 309, 261, 2211, 18, 13139, 1919, 9988, 372, 1598, 1359, 12, 7222, 1179, 3719, 288, 5411, 333, 18, 4861, 12, 7222, 1179, 1769, 5411, 2632, 1179, 18, 4861, 12443, 52, 22, 52, 1179, 13, 1186, 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, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 424, 412, 6053, 883, 5079, 598, 31526, 397, 3822, 1769, 5411, 289, 5411, 6337, 413, 31, 3639, 289, 3639, 1250, 8959, 31, 3639, 775, 288, 5411, 8959, 273, 324, 26674, 12, 12546, 16, 3822, 16, 2632, 1179, 1769, 3639, 289, 1044, 261, 52, 22, 2419, 1236, 31270, 425, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 19805, 13, 288, 5411, 368, 17206, 310, 326, 883, 5411, 309, 261, 7080, 422, 446, 13, 2 ]
sm.checkListen(impl.getLocalPort());
sm.checkAccept(impl.getInetAddress().getHostAddress(), impl.getLocalPort());
public Socket accept() throws IOException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkListen(impl.getLocalPort()); Socket socket = new Socket(); try { implAccept(socket); } catch (IOException e) { try { socket.close(); } catch (IOException e2) { // Ignore. } throw e; } return socket; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8758, 2791, 1435, 1216, 1860, 225, 288, 565, 6036, 1318, 3029, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 5933, 12, 11299, 18, 588, 382, 278, 1887, 7675, 588, 2594, 1887, 9334, 9380, 18, 588, 2042, 2617, 10663, 565, 8758, 2987, 273, 394, 8758, 5621, 565, 775, 1377, 288, 202, 11299, 5933, 12, 7814, 1769, 1377, 289, 565, 1044, 261, 14106, 425, 13, 1377, 288, 202, 698, 202, 225, 288, 202, 565, 2987, 18, 4412, 5621, 202, 225, 289, 202, 14683, 261, 14106, 425, 22, 13, 202, 225, 288, 202, 565, 368, 8049, 18, 202, 225, 289, 202, 12849, 425, 31, 1377, 289, 565, 327, 2987, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8758, 2791, 1435, 1216, 1860, 225, 288, 565, 6036, 1318, 3029, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 5933, 12, 11299, 18, 588, 382, 278, 1887, 7675, 588, 2594, 1887, 9334, 9380, 18, 588, 2042, 2617, 10663, 565, 8758, 2987, 273, 394, 8758, 5621, 565, 775, 1377, 288, 202, 11299, 5933, 12, 7814, 1769, 1377, 289, 565, 1044, 261, 14106, 425, 13, 1377, 288, 202, 698, 202, 225, 288, 202, 565, 2987, 18, 4412, 5621, 202, 225, 289, 202, 14683, 261, 14106, 425, 22, 13, 202, 225, 288, 202, 565, 368, 8049, 18, 202, 225, 289, 202, 12849, 425, 31, 1377, 289, 565, 327, 2987, 31, 2 ]
YOutputParameter yparameter = new YOutputParameter(_decomposition, YParameter._OUTPUT_PARAM_TYPE);
YParameter yparameter = new YParameter(_decomposition, YParameter._OUTPUT_PARAM_TYPE);
private void parseDecompositionRoles(YDecomposition decomposition, Element decompElem) { String name = decompElem.getChildText("name", _yawlNS); if (name != null) { decomposition.setName(name); } String documentation = decompElem.getChildText("documentation", _yawlNS); if (documentation != null) { decomposition.setDocumentation(documentation); } List inputParamElems = decompElem.getChildren("inputParam", _yawlNS); for (int i = 0; i < inputParamElems.size(); i++) { Element inputParamElem = (Element) inputParamElems.get(i); YInputParameter yparameter = new YInputParameter(_decomposition, YParameter._INPUT_PARAM_TYPE);// yparameter.setOrdering(i); parseParameter(inputParamElem, yparameter, _yawlNS, isBeta2Version()); decomposition.setInputParam(yparameter); } List outputParamElems = decompElem.getChildren("outputParam", _yawlNS); for (int i = 0; i < outputParamElems.size(); i++) { Element outputParamElem = (Element) outputParamElems.get(i); YOutputParameter yparameter = new YOutputParameter(_decomposition, YParameter._OUTPUT_PARAM_TYPE);// yparameter.setOrdering(i); parseParameter(outputParamElem, yparameter, _yawlNS, isBeta2Version()); decomposition.setOutputParameter(yparameter); } List outputExpressions = decompElem.getChildren("outputExpression", _yawlNS); for (int i = 0; i < outputExpressions.size(); i++) { Element outputExpressionElem = (Element) outputExpressions.get(i); String outputExpressionText = outputExpressionElem.getAttributeValue("query"); decomposition.setOutputExpression(outputExpressionText); } }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/80e6abd8518df5ef7bad7c32108331505125eb63/YDecompositionParser.java/buggy/yawl/src/au/edu/qut/yawl/unmarshal/YDecompositionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 17731, 3276, 6898, 12, 61, 17731, 3276, 26288, 16, 3010, 443, 2919, 7498, 13, 288, 3639, 514, 508, 273, 443, 2919, 7498, 18, 588, 1763, 1528, 2932, 529, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 309, 261, 529, 480, 446, 13, 288, 5411, 26288, 18, 542, 461, 12, 529, 1769, 3639, 289, 3639, 514, 7323, 273, 443, 2919, 7498, 18, 588, 1763, 1528, 2932, 26941, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 309, 261, 26941, 480, 446, 13, 288, 5411, 26288, 18, 542, 18905, 12, 26941, 1769, 3639, 289, 3639, 987, 810, 786, 23207, 273, 443, 2919, 7498, 18, 588, 4212, 2932, 2630, 786, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 810, 786, 23207, 18, 1467, 5621, 277, 27245, 288, 5411, 3010, 810, 786, 7498, 273, 261, 1046, 13, 810, 786, 23207, 18, 588, 12, 77, 1769, 5411, 1624, 1210, 1662, 677, 6775, 273, 394, 1624, 1210, 1662, 24899, 323, 24388, 16, 1624, 1662, 6315, 15934, 67, 8388, 67, 2399, 1769, 759, 5411, 677, 6775, 18, 542, 20493, 12, 77, 1769, 5411, 1109, 1662, 12, 2630, 786, 7498, 16, 677, 6775, 16, 389, 93, 2219, 80, 3156, 16, 27057, 1066, 22, 1444, 10663, 5411, 26288, 18, 542, 1210, 786, 12, 879, 439, 847, 1769, 3639, 289, 3639, 987, 876, 786, 23207, 273, 443, 2919, 7498, 18, 588, 4212, 2932, 2844, 786, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 364, 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, 1109, 17731, 3276, 6898, 12, 61, 17731, 3276, 26288, 16, 3010, 443, 2919, 7498, 13, 288, 3639, 514, 508, 273, 443, 2919, 7498, 18, 588, 1763, 1528, 2932, 529, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 309, 261, 529, 480, 446, 13, 288, 5411, 26288, 18, 542, 461, 12, 529, 1769, 3639, 289, 3639, 514, 7323, 273, 443, 2919, 7498, 18, 588, 1763, 1528, 2932, 26941, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 309, 261, 26941, 480, 446, 13, 288, 5411, 26288, 18, 542, 18905, 12, 26941, 1769, 3639, 289, 3639, 987, 810, 786, 23207, 273, 443, 2919, 7498, 18, 588, 4212, 2932, 2630, 786, 3113, 389, 93, 2219, 80, 3156, 1769, 3639, 364, 2 ]
changeApplicationInfoForm.set("average", infoMasterDegreeCandidate.getAverage().toString());
changeApplicationInfoForm.set("average", (infoMasterDegreeCandidate.getAverage() == null) ? null : infoMasterDegreeCandidate.getAverage().toString());
private void populateForm(DynaActionForm changeApplicationInfoForm, InfoPerson infoPerson, InfoMasterDegreeCandidate infoMasterDegreeCandidate) { changeApplicationInfoForm.set("identificationDocumentNumber", infoPerson .getNumeroDocumentoIdentificacao()); changeApplicationInfoForm.set("identificationDocumentType", infoPerson .getTipoDocumentoIdentificacao().toString()); changeApplicationInfoForm.set("identificationDocumentIssuePlace", infoPerson .getLocalEmissaoDocumentoIdentificacao()); changeApplicationInfoForm.set("name", infoPerson.getNome()); Calendar birthDate = Calendar.getInstance(); if (infoPerson.getNascimento() == null) { changeApplicationInfoForm.set("birthDay", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("birthMonth", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("birthYear", Data.OPTION_DEFAULT); } else { birthDate.setTime(infoPerson.getNascimento()); changeApplicationInfoForm.set("birthDay", new Integer(birthDate.get(Calendar.DAY_OF_MONTH)) .toString()); changeApplicationInfoForm.set("birthMonth", new Integer(birthDate.get(Calendar.MONTH)) .toString()); changeApplicationInfoForm.set("birthYear", new Integer(birthDate.get(Calendar.YEAR)) .toString()); } Calendar identificationDocumentIssueDate = Calendar.getInstance(); if (infoPerson.getDataEmissaoDocumentoIdentificacao() == null) { changeApplicationInfoForm.set("idIssueDateDay", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("idIssueDateMonth", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("idIssueDateYear", Data.OPTION_DEFAULT); } else { identificationDocumentIssueDate.setTime(infoPerson.getDataEmissaoDocumentoIdentificacao()); changeApplicationInfoForm.set("idIssueDateDay", new Integer(identificationDocumentIssueDate .get(Calendar.DAY_OF_MONTH)).toString()); changeApplicationInfoForm.set("idIssueDateMonth", new Integer( identificationDocumentIssueDate.get(Calendar.MONTH)).toString()); changeApplicationInfoForm.set("idIssueDateYear", new Integer(identificationDocumentIssueDate .get(Calendar.YEAR)).toString()); } Calendar identificationDocumentExpirationDate = Calendar.getInstance(); if (infoPerson.getDataValidadeDocumentoIdentificacao() == null) { changeApplicationInfoForm.set("idExpirationDateDay", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("idExpirationDateMonth", Data.OPTION_DEFAULT); changeApplicationInfoForm.set("idExpirationDateYear", Data.OPTION_DEFAULT); } else { identificationDocumentExpirationDate.setTime(infoPerson .getDataValidadeDocumentoIdentificacao()); changeApplicationInfoForm.set("idExpirationDateDay", new Integer( identificationDocumentExpirationDate.get(Calendar.DAY_OF_MONTH)).toString()); changeApplicationInfoForm.set("idExpirationDateMonth", new Integer( identificationDocumentExpirationDate.get(Calendar.MONTH)).toString()); changeApplicationInfoForm.set("idExpirationDateYear", new Integer( identificationDocumentExpirationDate.get(Calendar.YEAR)).toString()); } changeApplicationInfoForm.set("fatherName", infoPerson.getNomePai()); changeApplicationInfoForm.set("motherName", infoPerson.getNomeMae()); if (infoPerson.getInfoPais() != null) { changeApplicationInfoForm.set("nationality", infoPerson.getInfoPais().getNationality()); } else { changeApplicationInfoForm.set("nationality", null); } changeApplicationInfoForm.set("birthPlaceParish", infoPerson.getFreguesiaNaturalidade()); changeApplicationInfoForm.set("birthPlaceMunicipality", infoPerson.getConcelhoNaturalidade()); changeApplicationInfoForm.set("birthPlaceDistrict", infoPerson.getDistritoNaturalidade()); changeApplicationInfoForm.set("address", infoPerson.getMorada()); changeApplicationInfoForm.set("place", infoPerson.getLocalidade()); changeApplicationInfoForm.set("postCode", infoPerson.getCodigoPostal()); changeApplicationInfoForm.set("addressParish", infoPerson.getFreguesiaMorada()); changeApplicationInfoForm.set("addressMunicipality", infoPerson.getConcelhoMorada()); changeApplicationInfoForm.set("addressDistrict", infoPerson.getDistritoMorada()); changeApplicationInfoForm.set("telephone", infoPerson.getTelefone()); changeApplicationInfoForm.set("mobilePhone", infoPerson.getTelemovel()); changeApplicationInfoForm.set("email", infoPerson.getEmail()); changeApplicationInfoForm.set("webSite", infoPerson.getEnderecoWeb()); changeApplicationInfoForm.set("contributorNumber", infoPerson.getNumContribuinte()); changeApplicationInfoForm.set("occupation", infoPerson.getProfissao()); changeApplicationInfoForm.set("username", infoPerson.getUsername()); changeApplicationInfoForm.set("areaOfAreaCode", infoPerson.getLocalidadeCodigoPostal()); changeApplicationInfoForm.set("majorDegree", infoMasterDegreeCandidate.getMajorDegree()); changeApplicationInfoForm.set("majorDegreeSchool", infoMasterDegreeCandidate .getMajorDegreeSchool()); changeApplicationInfoForm.set("majorDegreeYear", infoMasterDegreeCandidate.getMajorDegreeYear()); changeApplicationInfoForm.set("specializationArea", infoMasterDegreeCandidate .getSpecializationArea()); changeApplicationInfoForm.set("average", infoMasterDegreeCandidate.getAverage().toString()); if (infoPerson.getSexo() != null) changeApplicationInfoForm.set("sex", infoPerson.getSexo().toString()); if (infoPerson.getMaritalStatus() != null) changeApplicationInfoForm.set("maritalStatus", infoPerson.getMaritalStatus().toString()); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/066a7e97ca7fde3d4e0f22e746df7a90b1794509/ChangeApplicationInfoDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/masterDegree/candidate/ChangeApplicationInfoDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 1204, 12, 10419, 69, 1803, 1204, 2549, 3208, 966, 1204, 16, 3807, 8346, 1123, 8346, 16, 5411, 3807, 7786, 22885, 11910, 1123, 7786, 22885, 11910, 13, 288, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 1854, 3113, 1123, 8346, 7734, 263, 588, 2578, 2439, 2519, 83, 6106, 1507, 1077, 6033, 10663, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 559, 3113, 1123, 8346, 7734, 263, 588, 14189, 83, 2519, 83, 6106, 1507, 1077, 6033, 7675, 10492, 10663, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 12956, 6029, 3113, 1123, 8346, 7734, 263, 588, 2042, 1514, 1054, 6033, 2519, 83, 6106, 1507, 1077, 6033, 10663, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 529, 3113, 1123, 8346, 18, 588, 50, 1742, 10663, 3639, 5542, 17057, 1626, 273, 5542, 18, 588, 1442, 5621, 3639, 309, 261, 1376, 8346, 18, 588, 50, 3691, 5670, 83, 1435, 422, 446, 13, 288, 5411, 2549, 3208, 966, 1204, 18, 542, 2932, 22531, 4245, 3113, 1910, 18, 7425, 67, 5280, 1769, 5411, 2549, 3208, 966, 1204, 18, 542, 2932, 22531, 5445, 3113, 1910, 18, 7425, 67, 5280, 1769, 5411, 2549, 3208, 966, 1204, 18, 542, 2932, 22531, 5593, 3113, 1910, 18, 7425, 67, 5280, 1769, 3639, 289, 469, 288, 5411, 17057, 1626, 18, 542, 950, 12, 1376, 8346, 18, 588, 50, 3691, 5670, 83, 10663, 5411, 2549, 3208, 966, 1204, 18, 542, 2932, 22531, 4245, 3113, 394, 2144, 12, 22531, 1626, 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, 6490, 1204, 12, 10419, 69, 1803, 1204, 2549, 3208, 966, 1204, 16, 3807, 8346, 1123, 8346, 16, 5411, 3807, 7786, 22885, 11910, 1123, 7786, 22885, 11910, 13, 288, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 1854, 3113, 1123, 8346, 7734, 263, 588, 2578, 2439, 2519, 83, 6106, 1507, 1077, 6033, 10663, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 559, 3113, 1123, 8346, 7734, 263, 588, 14189, 83, 2519, 83, 6106, 1507, 1077, 6033, 7675, 10492, 10663, 3639, 2549, 3208, 966, 1204, 18, 542, 2932, 6392, 1480, 2519, 12956, 6029, 3113, 1123, 8346, 7734, 263, 588, 2042, 1514, 1054, 6033, 2519, 83, 6106, 1507, 1077, 6033, 10663, 3639, 2549, 2 ]
Class component = context.getClass(targs[0].type());
Type arraytype = Type.UnboxedArrayType(targs[0].type()); Class component = context.getClass(arraytype).getComponentType();
private Code tapply(Tree target, Symbol symbol, Tree[] targs, Tree[]vargs){ Code object = object(target); if (symbol == definitions.ANY_IS || symbol == definitions.ANY_AS) { assert targs.length == 1: Debug.show(targs); assert vargs.length == 0 : Debug.show(vargs); boolean cast = symbol == definitions.ANY_AS; Type type = targs[0].type(); return Code.IsAs(object, type, context.getClass(type), cast); } if (symbol == primitives.NEW_OARRAY) { assert object == Code.Null: object; assert targs.length == 1: Debug.show(targs); assert vargs.length == 1 : Debug.show(vargs); Class component = context.getClass(targs[0].type()); return Code.CreateArray(component, compute(vargs[0])); } throw Debug.abort("unknown method", symbol); }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/b5d1f0a2f4b0d2e871f8a0e0a40a88e99d78e6c2/ExpressionCompiler.java/clean/sources/scala/tools/scalai/ExpressionCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3356, 268, 9010, 12, 2471, 1018, 16, 8565, 3273, 16, 4902, 8526, 268, 1968, 16, 4902, 8526, 1401, 564, 15329, 3639, 3356, 733, 273, 733, 12, 3299, 1769, 3639, 309, 261, 7175, 422, 6377, 18, 15409, 67, 5127, 747, 3273, 422, 6377, 18, 15409, 67, 3033, 13, 288, 5411, 1815, 268, 1968, 18, 2469, 422, 404, 30, 4015, 18, 4500, 12, 88, 1968, 1769, 5411, 1815, 569, 564, 18, 2469, 422, 374, 294, 4015, 18, 4500, 12, 1401, 564, 1769, 5411, 1250, 4812, 273, 3273, 422, 6377, 18, 15409, 67, 3033, 31, 5411, 1412, 618, 273, 268, 1968, 63, 20, 8009, 723, 5621, 5411, 327, 3356, 18, 2520, 1463, 12, 1612, 16, 618, 16, 819, 18, 588, 797, 12, 723, 3631, 4812, 1769, 3639, 289, 3639, 309, 261, 7175, 422, 23376, 18, 12917, 67, 51, 8552, 13, 288, 5411, 1815, 733, 422, 3356, 18, 2041, 30, 733, 31, 5411, 1815, 268, 1968, 18, 2469, 422, 404, 30, 4015, 18, 4500, 12, 88, 1968, 1769, 5411, 1815, 569, 564, 18, 2469, 422, 404, 294, 4015, 18, 4500, 12, 1401, 564, 1769, 5411, 1412, 526, 723, 273, 1412, 18, 984, 2147, 329, 27182, 12, 88, 1968, 63, 20, 8009, 723, 10663, 1659, 1794, 273, 819, 18, 588, 797, 12, 1126, 723, 2934, 588, 28116, 5621, 5411, 327, 3356, 18, 1684, 1076, 12, 4652, 16, 3671, 12, 1401, 564, 63, 20, 5717, 1769, 3639, 289, 3639, 604, 4015, 18, 18623, 2932, 8172, 707, 3113, 3273, 1769, 565, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3356, 268, 9010, 12, 2471, 1018, 16, 8565, 3273, 16, 4902, 8526, 268, 1968, 16, 4902, 8526, 1401, 564, 15329, 3639, 3356, 733, 273, 733, 12, 3299, 1769, 3639, 309, 261, 7175, 422, 6377, 18, 15409, 67, 5127, 747, 3273, 422, 6377, 18, 15409, 67, 3033, 13, 288, 5411, 1815, 268, 1968, 18, 2469, 422, 404, 30, 4015, 18, 4500, 12, 88, 1968, 1769, 5411, 1815, 569, 564, 18, 2469, 422, 374, 294, 4015, 18, 4500, 12, 1401, 564, 1769, 5411, 1250, 4812, 273, 3273, 422, 6377, 18, 15409, 67, 3033, 31, 5411, 1412, 618, 273, 268, 1968, 63, 20, 8009, 723, 5621, 5411, 327, 3356, 18, 2520, 1463, 12, 1612, 16, 618, 16, 819, 18, 588, 2 ]
return "ConfusingElseBranch"; }
return "ConfusingElseBranch"; }
public String getID() { return "ConfusingElseBranch"; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0c22d3bce35a1ee7d70c329328f649614cf6f21a/ConfusingElseInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/ConfusingElseInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 14744, 1435, 288, 565, 327, 315, 3976, 9940, 12427, 7108, 14432, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 14744, 1435, 288, 565, 327, 315, 3976, 9940, 12427, 7108, 14432, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
name.append(String.valueOf(out, start, d-start)); c = (s < len)? in[s]: ' ';
name.append(String.valueOf(out, start, d - start)); c = (s < len) ? in[s] : ' ';
private String getTableName() throws SQLException { // FIXME If the resulting table name contains a '(' (i.e. is a function) "rollback" and return null StringBuffer name = new StringBuffer(128); char c = (s < len)? in[s]: ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } if (c == '{') { // Start of {oj ... } we can assume that there is // more than one table in select and therefore // it would not be updateable. return ""; } // // Skip any leading comments before fist table name // while (c == '/' || c == '-') { if ( c == '/') { if (s+1 < len && in[s+1] == '*') { skipMultiComments(); s++; } else { break; } } else { if (s+1 < len && in[s+1] == '-') { skipSingleComments(); } else { break; } } c = (s < len)? in[s]: ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } } if (c == '{') { // See comment above return ""; } // // Now process table name // while (s < len) { if (c == '[' || c == '"') { int start = d; copyString(); name.append(String.valueOf(out, start, d-start)); c = (s < len)? in[s]: ' '; } else { int start = d; while (s < len && !Character.isWhitespace(c) && c != '.' && c != ',') { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } name.append(String.valueOf(out, start, d-start)); } while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } if (c != '.') { break; } name.append(c); out[d++] = c; s++; c = (s < len)? in[s]: ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } } return name.toString(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/43557c8795f7462e9470e56a018eca2af3219d7f/SQLParser.java/buggy/src/main/net/sourceforge/jtds/jdbc/SQLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 11996, 1435, 1216, 6483, 288, 3639, 368, 9852, 971, 326, 8156, 1014, 508, 1914, 279, 7321, 261, 77, 18, 73, 18, 353, 279, 445, 13, 315, 20050, 6, 471, 327, 446, 3639, 6674, 508, 273, 394, 6674, 12, 10392, 1769, 3639, 1149, 276, 273, 261, 87, 411, 562, 9945, 316, 63, 87, 14542, 296, 12386, 3639, 1323, 261, 87, 411, 562, 597, 6577, 18, 291, 9431, 12, 71, 3719, 288, 5411, 596, 63, 72, 9904, 65, 273, 276, 31, 272, 9904, 31, 276, 273, 261, 87, 411, 562, 9945, 316, 63, 87, 14542, 296, 12386, 3639, 289, 3639, 309, 261, 71, 422, 2292, 6134, 288, 5411, 368, 3603, 434, 288, 6311, 1372, 289, 732, 848, 6750, 716, 1915, 353, 5411, 368, 1898, 2353, 1245, 1014, 316, 2027, 471, 13526, 5411, 368, 518, 4102, 486, 506, 1089, 429, 18, 5411, 327, 1408, 31, 3639, 289, 3639, 368, 3639, 368, 6611, 1281, 7676, 5678, 1865, 284, 376, 1014, 508, 3639, 368, 3639, 1323, 261, 71, 422, 2023, 747, 276, 422, 4014, 13, 288, 5411, 309, 261, 276, 422, 2023, 13, 288, 7734, 309, 261, 87, 15, 21, 411, 562, 597, 316, 63, 87, 15, 21, 65, 422, 5306, 13, 288, 10792, 2488, 5002, 9051, 5621, 10792, 272, 9904, 31, 7734, 289, 469, 288, 10792, 898, 31, 7734, 289, 5411, 289, 469, 288, 7734, 309, 261, 87, 15, 21, 411, 562, 597, 316, 63, 87, 15, 21, 65, 422, 4014, 13, 288, 10792, 2488, 5281, 9051, 5621, 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, 11996, 1435, 1216, 6483, 288, 3639, 368, 9852, 971, 326, 8156, 1014, 508, 1914, 279, 7321, 261, 77, 18, 73, 18, 353, 279, 445, 13, 315, 20050, 6, 471, 327, 446, 3639, 6674, 508, 273, 394, 6674, 12, 10392, 1769, 3639, 1149, 276, 273, 261, 87, 411, 562, 9945, 316, 63, 87, 14542, 296, 12386, 3639, 1323, 261, 87, 411, 562, 597, 6577, 18, 291, 9431, 12, 71, 3719, 288, 5411, 596, 63, 72, 9904, 65, 273, 276, 31, 272, 9904, 31, 276, 273, 261, 87, 411, 562, 9945, 316, 63, 87, 14542, 296, 12386, 3639, 289, 3639, 309, 261, 71, 422, 2292, 6134, 288, 5411, 368, 3603, 434, 288, 6311, 1372, 289, 732, 848, 6750, 2 ]
handleClasspath(delta.getKind(), resource, monitor, _buildCache);
handleClasspath(resource, monitor, _buildCache);
public boolean classpathChanged(IResourceDelta delta, IProgressMonitor monitor, Map _buildCache) { IResource resource = delta.getResource(); handleClasspath(delta.getKind(), resource, monitor, _buildCache); return false; }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/9ab4eab0b7578467e879dfd3177e4e214e2053fe/PBDotProjectBuilder.java/clean/wolips/plugins/org.objectstyle.wolips.builder/java/org/objectstyle/wolips/builder/internal/PBDotProjectBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 10006, 5033, 12, 45, 1420, 9242, 3622, 16, 1082, 202, 45, 5491, 7187, 6438, 16, 1635, 389, 3510, 1649, 13, 288, 202, 202, 45, 1420, 1058, 273, 3622, 18, 588, 1420, 5621, 202, 202, 4110, 17461, 12, 9878, 18, 588, 5677, 9334, 1058, 16, 6438, 16, 389, 3510, 1649, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 10006, 5033, 12, 45, 1420, 9242, 3622, 16, 1082, 202, 45, 5491, 7187, 6438, 16, 1635, 389, 3510, 1649, 13, 288, 202, 202, 45, 1420, 1058, 273, 3622, 18, 588, 1420, 5621, 202, 202, 4110, 17461, 12, 9878, 18, 588, 5677, 9334, 1058, 16, 6438, 16, 389, 3510, 1649, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Setting projectName to '" + args[i] + "'");
System.out.println( "Setting projectName to '" + args[i] + "'");
public static void main(String args[]) { // Force the configuration to load Configuration.load(); // Synchronize the startup directory // // TODO: This is a temporary hack. The real change must // be to never refer to Globals.getLastDirectory // or Globals.setLastDirectory within Argo, but // use Argo.getDirectory and Argo.setDirectory. String directory = Argo.getDirectory(); org.tigris.gef.base.Globals.setLastDirectory(directory); // Set default locale Locale.setDefault( new Locale(System.getProperty("user.language","en"), System.getProperty("user.country", System.getProperty("user.region", "CA")))); // then, print out some version info for debuggers... org.argouml.util.Tools.logVersionInfo(); boolean doSplash = Configuration.getBoolean(Argo.KEY_SPLASH, true); boolean useEDEM = Configuration.getBoolean(Argo.KEY_EDEM, true); boolean preload = Configuration.getBoolean(Argo.KEY_PRELOAD, true); boolean profileLoad = Configuration.getBoolean(Argo.KEY_PROFILE, false); boolean reloadRecent = Configuration.getBoolean(Argo.KEY_RELOAD_RECENT_PROJECT, false); File projectFile = null; Project p = null; String projectName = null; URL urlToOpen = null; SimpleTimer st = new SimpleTimer("Main.main"); st.mark("arguments"); /* set properties for application behaviour */ System.setProperty("gef.imageLocation","/org/argouml/Images"); /* FIX: disable apple menu bar to enable proper running of Mac OS X java web start */ System.setProperty("com.apple.macos.useScreenMenuBar","false"); /* FIX: set the application name for Mac OS X */ System.setProperty("com.apple.mrj.application.apple.menu.about.name","ArgoUML"); //-------------------------------------------- // Parse command line args: // The assumption is that all options precede // the name of a project file to load. //-------------------------------------------- int themeMemory = 0; for (int i=0; i < args.length; i++) { if (args[i].startsWith("-")) { if ((themeMemory = LookAndFeelMgr.SINGLETON.getThemeFromArg(args[i])) != 0) { // Remembered! } else if (args[i].equalsIgnoreCase("-help") || args[i].equalsIgnoreCase("-h") || args[i].equalsIgnoreCase("--help") || args[i].equalsIgnoreCase("/?")) { System.err.println("Usage: [options] [project-file]"); System.err.println("Options include: "); LookAndFeelMgr.SINGLETON.printThemeArgs(); System.err.println(" -nosplash don't display Argo/UML logo"); System.err.println(" -noedem don't report usage statistics"); System.err.println(" -nopreload don't preload common classes"); System.err.println(" -profileload report on load times"); System.err.println(" -norecentfile don't reload last saved file"); System.err.println(""); System.err.println("You can also set java settings which influence the behaviour of ArgoUML:"); System.err.println(" -Duser.language [e.g. en]"); System.err.println(" -Duser.region [e.g. US]"); System.err.println(" -Dforce.nativelaf [force ArgoUML to use the native look and feel. UNSUPPORTED]"); System.err.println("\n\n"); ArgoSecurityManager.getInstance().setAllowExit(true); System.exit(0); } else if (args[i].equalsIgnoreCase("-nosplash")) { doSplash = false; } else if (args[i].equalsIgnoreCase("-noedem")) { useEDEM = false; } else if (args[i].equalsIgnoreCase("-nopreload")) { preload = false; } else if (args[i].equalsIgnoreCase("-profileload")) { profileLoad = true; } else if (args[i].equalsIgnoreCase("-norecentfile")) { reloadRecent = false; } else { System.err.println("Ignoring unknown option '" + args[i] + "'"); } } else { if (projectName == null) { System.out.println("Setting projectName to '" + args[i] + "'"); projectName = args[i]; } } } if (reloadRecent && projectName == null) { // If no project was entered on the command line, // try to reload the most recent project if that option is true String s = Configuration.getString(Argo.KEY_MOST_RECENT_PROJECT_FILE, ""); if ( ! ("".equals(s) ) ) { File file = new File(s); if (file.exists()) { Argo.log.info("Re-opening project " + s); projectName = s; } else { Argo.log.warn("Cannot re-open " + s + " because it does not exist"); } } } if (projectName != null) { if (!projectName.endsWith(Project.COMPRESSED_FILE_EXT)) projectName += Project.COMPRESSED_FILE_EXT; projectFile = new File(projectName); if (!projectFile.exists()) { System.err.println("Project file '" + projectFile + "' does not exist."); /* this will cause an empty project to be created */ p = null; } else { try { urlToOpen = Util.fileToURL(projectFile); } catch (Exception e) { Argo.log.error("Exception opening project in main()", e); } } } Translator.init(); st.mark("projectbrowser"); // Register the default notation. Object dgd = org.argouml.uml.generator.GeneratorDisplay.getInstance(); MFactoryImpl.setEventPolicy(MFactoryImpl.EVENT_POLICY_IMMEDIATE); // initialize the correct theme LookAndFeelMgr.SINGLETON.setCurrentTheme(themeMemory); // make the projectbrowser ProjectBrowser pb = new ProjectBrowser("ArgoUML", doSplash); JOptionPane.setRootFrame(pb); // Set the screen layout to what the user left it before, or // to reasonable defaults. Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize(); pb.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); int w = Math.min(Configuration.getInteger(Argo.KEY_SCREEN_WIDTH, (int)(0.95 * scrSize.width)), scrSize.width); int h = Math.min(Configuration.getInteger(Argo.KEY_SCREEN_HEIGHT, (int)(0.95 * scrSize.height)), scrSize.height); int x = Configuration.getInteger(Argo.KEY_SCREEN_LEFT_X, 0); int y = Configuration.getInteger(Argo.KEY_SCREEN_TOP_Y, 0); pb.setLocation(x, y); pb.setSize(w, h); if (doSplash) { SplashScreen splash = pb.getSplashScreen(); if (urlToOpen == null) splash.getStatusBar().showStatus("Making Default Project"); else splash.getStatusBar().showStatus("Reading " + projectName); splash.getStatusBar().showProgress(40); } st.mark("make empty project"); if (urlToOpen == null) { p = ProjectManager.getManager().getCurrentProject(); } else { try { p = Project.loadProject(urlToOpen); } catch (FileNotFoundException fn) { JOptionPane.showMessageDialog(pb, "Could not find the project file " + urlToOpen.toString() + "\n", "Error", JOptionPane.ERROR_MESSAGE); Argo.log.error("Could not load most recent project file: " + urlToOpen.toString()); Argo.log.error(fn); Configuration.setString(Argo.KEY_MOST_RECENT_PROJECT_FILE, ""); urlToOpen = null; p = ProjectManager.getManager().makeEmptyProject(); } catch (IOException io) { JOptionPane.showMessageDialog(pb, "Could not load the project " + urlToOpen.toString() + "\n" + "Project file probably corrupted.\n" + "Please file a bug report at argouml.tigris.org including" + " the corrupted project file.", "Error", JOptionPane.ERROR_MESSAGE); Argo.log.error("Could not load most recent project file: " + urlToOpen.toString()); Argo.log.error(io); Configuration.setString(Argo.KEY_MOST_RECENT_PROJECT_FILE, ""); urlToOpen = null; p = ProjectManager.getManager().makeEmptyProject(); } catch (Exception ex) { Argo.log.error("Could not load most recent project file: " + urlToOpen.toString()); Argo.log.error(ex); Configuration.setString(Argo.KEY_MOST_RECENT_PROJECT_FILE, ""); urlToOpen = null; p = ProjectManager.getManager().makeEmptyProject(); } } st.mark("set project"); // Touch the trash Trash.SINGLETON.getSize(); Designer.disableCritiquing(); Designer.clearCritiquing(); ProjectManager.getManager().setCurrentProject(p); Designer.enableCritiquing(); st.mark("perspectives"); if (urlToOpen == null) pb.setTitle("Untitled"); //pb.validate(); //pb.repaint(); //pb.requestDefaultFocus(); if (doSplash) { SplashScreen splash = pb.getSplashScreen(); splash.getStatusBar().showStatus("Loading modules"); splash.getStatusBar().showProgress(75); } // Initialize the module loader. st.mark("modules"); Argo.initializeModules(); st.mark("open window"); if (doSplash) { SplashScreen splash = pb.getSplashScreen(); splash.getStatusBar().showStatus("Opening Project Browser"); splash.getStatusBar().showProgress(95); } pb.setVisible(true); Object model = p.getUserDefinedModels().elementAt(0); Object diag = p.getDiagrams().elementAt(0); //pb.setTarget(diag); pb.getNavigatorPane().setSelection(model, diag); st.mark("close splash"); if (doSplash) { SplashScreen splash = pb.getSplashScreen(); splash.setVisible(false); splash.dispose(); splash = null; } Class c = null; c = org.tigris.gef.base.ModePlace.class; c = org.tigris.gef.base.ModeModify.class; c = org.tigris.gef.base.SelectionResize.class; c = org.tigris.gef.presentation.FigPoly.class; c = org.tigris.gef.base.PathConvPercentPlusConst.class; c = org.tigris.gef.presentation.ArrowHeadNone.class; c = org.tigris.gef.base.Geometry.class; c = org.tigris.gef.ui.ColorRenderer.class; c = org.tigris.gef.util.EnumerationEmpty.class; c = org.tigris.gef.util.EnumerationSingle.class; c = ru.novosoft.uml.foundation.data_types.MScopeKind.class; c = ru.novosoft.uml.foundation.data_types.MChangeableKind.class; c = org.argouml.uml.diagram.static_structure.ui.FigClass.class; c = org.argouml.uml.diagram.ui.SelectionNodeClarifiers.class; c = org.argouml.uml.diagram.ui.SelectionWButtons.class; c = org.argouml.uml.diagram.static_structure.ui.SelectionClass.class; c = org.argouml.uml.diagram.ui.ModeCreateEdgeAndNode.class; c = org.argouml.uml.diagram.static_structure.ui.FigPackage.class; c = org.argouml.uml.diagram.static_structure.ui.FigInterface.class; c = java.lang.ClassNotFoundException.class; c = org.argouml.kernel.DelayedChangeNotify.class; c = org.tigris.gef.graph.GraphEvent.class; c = org.tigris.gef.graph.presentation.NetEdge.class; c = org.tigris.gef.graph.GraphEdgeHooks.class; c = org.argouml.uml.cognitive.critics.WizMEName.class; c = org.argouml.kernel.Wizard.class; //if (splash != null) { // splash.getStatusBar().showStatus("Setting up critics"); // splash.getStatusBar().showProgress(70); //} st.mark("start critics"); Runnable startCritics = new StartCritics(); Main.addPostLoadAction(startCritics); st.mark("start preloader"); if (preload) { Runnable preloader = new PreloadClasses(); Main.addPostLoadAction(preloader); } PostLoad pl = new PostLoad(postLoadActions); Thread postLoadThead = new Thread(pl); pl.setThread(postLoadThead); postLoadThead.start(); if (profileLoad) { Argo.log.info(""); Argo.log.info("profile of load time ############"); for(Enumeration i = st.result(); i.hasMoreElements();) { Argo.log.info(i.nextElement()); } Argo.log.info("#################################"); Argo.log.info(""); } st = null; pb.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); //ToolTipManager.sharedInstance().setInitialDelay(500); ToolTipManager.sharedInstance().setDismissDelay(50000000); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/a779dcfcbf7a42928d115c4305a48e4907ff5338/Main.java/buggy/src_new/org/argouml/application/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 3639, 368, 11889, 326, 1664, 358, 1262, 3639, 4659, 18, 945, 5621, 3639, 368, 26535, 554, 326, 11850, 1867, 3639, 368, 3639, 368, 2660, 30, 225, 1220, 353, 279, 6269, 11769, 18, 225, 1021, 2863, 2549, 1297, 3639, 368, 10402, 506, 358, 5903, 8884, 358, 18901, 1031, 18, 588, 3024, 2853, 3639, 368, 10402, 578, 18901, 1031, 18, 542, 3024, 2853, 3470, 1201, 3240, 16, 1496, 3639, 368, 10402, 999, 1201, 3240, 18, 588, 2853, 471, 1201, 3240, 18, 542, 2853, 18, 3639, 514, 1867, 273, 1201, 3240, 18, 588, 2853, 5621, 3639, 2358, 18, 88, 2757, 291, 18, 908, 74, 18, 1969, 18, 19834, 18, 542, 3024, 2853, 12, 5149, 1769, 7734, 368, 1000, 805, 2573, 3639, 6458, 18, 542, 1868, 12, 202, 565, 394, 6458, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 4923, 15937, 275, 6, 3631, 1082, 4202, 2332, 18, 588, 1396, 2932, 1355, 18, 9082, 3113, 25083, 225, 2332, 18, 588, 1396, 2932, 1355, 18, 6858, 3113, 6862, 9506, 377, 315, 3587, 6, 3719, 10019, 3639, 368, 1508, 16, 1172, 596, 2690, 1177, 1123, 364, 1198, 6215, 2777, 3639, 2358, 18, 26999, 22192, 18, 1367, 18, 10348, 18, 1330, 28571, 5621, 3639, 1250, 741, 16881, 961, 273, 4659, 18, 588, 5507, 12, 686, 3240, 18, 3297, 67, 3118, 16504, 16, 638, 1769, 3639, 1250, 999, 41, 1639, 49, 273, 4659, 18, 588, 5507, 12, 686, 3240, 18, 3297, 67, 41, 1639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 3639, 368, 11889, 326, 1664, 358, 1262, 3639, 4659, 18, 945, 5621, 3639, 368, 26535, 554, 326, 11850, 1867, 3639, 368, 3639, 368, 2660, 30, 225, 1220, 353, 279, 6269, 11769, 18, 225, 1021, 2863, 2549, 1297, 3639, 368, 10402, 506, 358, 5903, 8884, 358, 18901, 1031, 18, 588, 3024, 2853, 3639, 368, 10402, 578, 18901, 1031, 18, 542, 3024, 2853, 3470, 1201, 3240, 16, 1496, 3639, 368, 10402, 999, 1201, 3240, 18, 588, 2853, 471, 1201, 3240, 18, 542, 2853, 18, 3639, 514, 1867, 273, 1201, 3240, 18, 588, 2853, 5621, 3639, 2358, 18, 88, 2757, 291, 18, 908, 74, 18, 1969, 18, 19834, 18, 542, 3024, 2 ]
SoapMethod method = new SoapMethod(name, (String) methods.get(name));
Object m = methods.get(name); SoapMethod method = null; if(m instanceof List) { method = new SoapMethod(name, (List)m); } else { method = new SoapMethod(name, (String)m); }
protected void init() throws Exception { AxisProperties.setProperty("axis.doAutoTypes", String.valueOf(connector.isDoAutoTypes())); MuleDescriptor descriptor = (MuleDescriptor) component.getDescriptor(); String style = (String) descriptor.getProperties().get("style"); String use = (String) descriptor.getProperties().get("use"); String doc = (String) descriptor.getProperties().get("documentation"); UMOEndpointURI uri = endpoint.getEndpointURI(); String serviceName = component.getDescriptor().getName(); SOAPService existing = this.connector.getAxisServer().getService(serviceName); if( existing != null) { service = existing; logger.debug("Using existing service for " + serviceName); } else { //Check if the style is message. If so, we need to create //a message oriented provider if (style != null && style.equalsIgnoreCase("message")) { logger.debug("Creating Message Provider"); service = new SOAPService(new MuleMsgProvider(connector)); } else { logger.debug("Creating RPC Provider"); service = new SOAPService(new MuleProvider(connector)); } service.setEngine(connector.getAxisServer()); } String servicePath = uri.getPath(); service.setOption(serviceName, this); service.setOption(AxisConnector.SERVICE_PROPERTY_SERVCE_PATH, servicePath); service.setOption(AxisConnector.SERVICE_PROPERTY_COMPONENT_NAME, serviceName); service.setName(serviceName); // Add any custom options from the Descriptor config Map options = (Map) descriptor.getProperties().get("axisOptions"); if (options != null) { Map.Entry entry; for (Iterator iterator = options.entrySet().iterator(); iterator.hasNext();) { entry = (Map.Entry) iterator.next(); service.setOption(entry.getKey().toString(), entry.getValue()); logger.debug("Adding Axis option: " + entry); } } // set method names Class[] interfaces = ServiceProxy.getInterfacesForComponent(component); if (interfaces.length == 0) { throw new InitialisationException(new Message(Messages.X_MUST_IMPLEMENT_AN_INTERFACE, serviceName), component); } // You must supply a class name if you want to restrict methods // or specify the 'allowedMethods' property in the axisOptions property String methodNames = "*"; if (endpoint.getProperties().get("soapMethods") != null) { Map methods = (Map) endpoint.getProperties().get("soapMethods"); Iterator i = methods.keySet().iterator(); StringBuffer buf = new StringBuffer(64); while (i.hasNext()) { String name = (String) i.next(); SoapMethod method = new SoapMethod(name, (String) methods.get(name)); List namedParameters = method.getNamedParameters(); ParameterDesc[] parameters = new ParameterDesc[namedParameters.size()]; for (int j = 0; j < namedParameters.size(); j++) { NamedParameter parameter = (NamedParameter) namedParameters.get(j); byte mode = ParameterDesc.INOUT; if (parameter.getMode().equals(ParameterMode.IN)) { mode = ParameterDesc.IN; } else if (parameter.getMode().equals(ParameterMode.OUT)) { mode = ParameterDesc.OUT; } parameters[j] = new ParameterDesc(parameter.getName(), mode, parameter.getType()); } service.getServiceDescription().addOperationDesc(new OperationDesc(name, parameters, method.getReturnType())); buf.append(name + ","); } methodNames = buf.toString(); methodNames = methodNames.substring(0, methodNames.length() - 1); } else { String[] methods = ServiceProxy.getMethodNames(interfaces); StringBuffer buf = new StringBuffer(64); for (int i = 0; i < methods.length; i++) { buf.append(methods[i]).append(","); } methodNames = buf.toString(); methodNames = methodNames.substring(0, methodNames.length() - 1); } String className = interfaces[0].getName(); // The namespace of the service. //Todo use the service qname in Mule 2.0 String namespace = (String) descriptor.getProperties().get("serviceNamespace"); if(namespace==null) { namespace = Namespaces.makeNamespace(className); } //WSDL override String wsdlFile = (String) descriptor.getProperties().get("wsdlFile"); if(wsdlFile!=null) { service.getServiceDescription().setWSDLFile(wsdlFile); } /* * Now we set up the various options for the SOAPService. We set: * * RPCProvider.OPTION_WSDL_SERVICEPORT In essense, this is our service * name * * RPCProvider.OPTION_CLASSNAME This tells the serverProvider (whether * it be an AvalonProvider or just JavaProvider) what class to load via * "makeNewServiceObject". * * RPCProvider.OPTION_SCOPE How long the object loaded via * "makeNewServiceObject" will persist - either request, session, or * application. We use the default for now. * * RPCProvider.OPTION_WSDL_TARGETNAMESPACE A namespace created from the * package name of the service. * * RPCProvider.OPTION_ALLOWEDMETHODS What methods the service can * execute on our class. * * We don't set: RPCProvider.OPTION_WSDL_PORTTYPE * RPCProvider.OPTION_WSDL_SERVICEELEMENT */ setOptionIfNotset(service, JavaProvider.OPTION_WSDL_SERVICEPORT, serviceName); setOptionIfNotset(service, JavaProvider.OPTION_CLASSNAME, className); setOptionIfNotset(service, JavaProvider.OPTION_SCOPE, "Request"); if(StringUtils.isNotBlank(namespace)) { setOptionIfNotset(service, JavaProvider.OPTION_WSDL_TARGETNAMESPACE, namespace); } // Set the allowed methods, allow all if there are none specified. if (methodNames == null) { setOptionIfNotset(service, JavaProvider.OPTION_ALLOWEDMETHODS, "*"); } else { setOptionIfNotset(service, JavaProvider.OPTION_ALLOWEDMETHODS, methodNames); } // Note that Axis has specific rules to how these two variables are // combined. This is handled for us // Set style: RPC/wrapped/Doc/Message if (style != null) { Style s = Style.getStyle(style); if(s==null) { throw new InitialisationException(new Message(Messages.VALUE_X_IS_INVALID_FOR_X, style, "style"), this); } else { service.setStyle(s); } } // Set use: Endcoded/Literal if (use != null) { Use u = Use.getUse(use); if(u==null) { throw new InitialisationException(new Message(Messages.VALUE_X_IS_INVALID_FOR_X, use, "use"), this); } else { service.setUse(u); } } service.getServiceDescription().setDocumentation(doc); // Tell Axis to try and be intelligent about serialization. TypeMappingRegistryImpl registry = (TypeMappingRegistryImpl) service.getTypeMappingRegistry(); // TypeMappingImpl tm = (TypeMappingImpl) registry.(); // Handle complex bean type automatically // registry.setDoAutoTypes( true ); // Axis 1.2 fix to handle autotypes properly AxisProperties.setProperty("axis.doAutoTypes", String.valueOf(connector.isDoAutoTypes())); // Load any explicitly defined bean types List types = (List) descriptor.getProperties().get("beanTypes"); connector.registerTypes(registry, types); service.setName(serviceName); // Add initialisation callback for the Axis service descriptor.addInitialisationCallback(new AxisInitialisationCallback(service)); if(uri.getScheme().equalsIgnoreCase("servlet")) { connector.addServletService(service); String endpointUrl = uri.getAddress() + "/" + serviceName; endpointUrl.replaceFirst("servlet:", "http:"); service.getServiceDescription().setEndpointURL(endpointUrl); } else { service.getServiceDescription().setEndpointURL(uri.getAddress() + "/" + serviceName); } if(StringUtils.isNotBlank(namespace)) { service.getServiceDescription().setDefaultNamespace(namespace); } service.stop(); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/9b925ef2807bc4f00b2f1c79003700cf0a1a7846/AxisMessageReceiver.java/buggy/providers/axis/src/main/java/org/mule/providers/soap/axis/AxisMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 1435, 1216, 1185, 565, 288, 3639, 15509, 2297, 18, 542, 1396, 2932, 4890, 18, 2896, 4965, 2016, 3113, 514, 18, 1132, 951, 12, 23159, 18, 291, 3244, 4965, 2016, 1435, 10019, 3639, 490, 725, 3187, 4950, 273, 261, 49, 725, 3187, 13, 1794, 18, 588, 3187, 5621, 3639, 514, 2154, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 4060, 8863, 3639, 514, 999, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 1202, 8863, 3639, 514, 997, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 26941, 8863, 3639, 587, 5980, 3293, 3098, 2003, 273, 2494, 18, 588, 3293, 3098, 5621, 3639, 514, 6773, 273, 1794, 18, 588, 3187, 7675, 17994, 5621, 3639, 16434, 1179, 2062, 273, 333, 18, 23159, 18, 588, 6558, 2081, 7675, 588, 1179, 12, 15423, 1769, 3639, 309, 12, 2062, 480, 446, 13, 288, 540, 202, 3278, 273, 2062, 31, 540, 202, 4901, 18, 4148, 2932, 7736, 2062, 1156, 364, 315, 397, 6773, 1769, 3639, 289, 469, 288, 5411, 368, 1564, 309, 326, 2154, 353, 883, 18, 971, 1427, 16, 732, 1608, 358, 752, 5411, 368, 69, 883, 7891, 329, 2893, 5411, 309, 261, 4060, 480, 446, 597, 2154, 18, 14963, 5556, 2932, 2150, 6, 3719, 288, 7734, 1194, 18, 4148, 2932, 11092, 2350, 7561, 8863, 7734, 1156, 273, 394, 16434, 1179, 12, 2704, 490, 725, 3332, 2249, 12, 23159, 10019, 5411, 289, 469, 288, 7734, 1194, 18, 4148, 2932, 11092, 8295, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 1435, 1216, 1185, 565, 288, 3639, 15509, 2297, 18, 542, 1396, 2932, 4890, 18, 2896, 4965, 2016, 3113, 514, 18, 1132, 951, 12, 23159, 18, 291, 3244, 4965, 2016, 1435, 10019, 3639, 490, 725, 3187, 4950, 273, 261, 49, 725, 3187, 13, 1794, 18, 588, 3187, 5621, 3639, 514, 2154, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 4060, 8863, 3639, 514, 999, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 1202, 8863, 3639, 514, 997, 273, 261, 780, 13, 4950, 18, 588, 2297, 7675, 588, 2932, 26941, 8863, 3639, 587, 5980, 3293, 3098, 2003, 273, 2494, 18, 588, 3293, 3098, 5621, 3639, 514, 6773, 273, 1794, 18, 588, 2 ]
hookFocus(control); hookFocus(content);
public void createControl(Composite parent) { if (getControl() != null) return; // Create view form. control = new ViewForm(parent, getStyle()); control.marginWidth = 0; control.marginHeight = 0; // Create a title bar. createTitleBar(); // Create content. Composite content = new Composite(control, SWT.NONE); content.setLayout(new FillLayout()); createChildControl(content); control.setContent(content); // When the pane or any child gains focus, notify the workbench. control.addListener(SWT.Activate, this); hookFocus(control); hookFocus(content); page.firePartOpened(part);}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d5e0f80cca9e65ea0c9fc5b2c6617312314d3f92/PartPane.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PartPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 430, 261, 588, 3367, 1435, 480, 446, 13, 202, 202, 2463, 31, 202, 759, 1788, 1476, 646, 18, 202, 202, 7098, 273, 394, 4441, 1204, 12, 2938, 16, 14210, 10663, 202, 7098, 18, 10107, 2384, 273, 374, 31, 202, 7098, 18, 10107, 2686, 273, 374, 31, 202, 759, 1788, 279, 2077, 4653, 18, 202, 2640, 4247, 5190, 5621, 202, 759, 1788, 913, 18, 202, 9400, 913, 273, 394, 14728, 12, 7098, 16, 348, 8588, 18, 9826, 1769, 202, 1745, 18, 542, 3744, 12, 2704, 14192, 3744, 10663, 202, 2640, 1763, 3367, 12, 1745, 1769, 202, 7098, 18, 542, 1350, 12, 1745, 1769, 202, 202, 759, 5203, 326, 13618, 578, 1281, 1151, 314, 4167, 7155, 16, 5066, 326, 1440, 22144, 18, 202, 7098, 18, 1289, 2223, 12, 55, 8588, 18, 21370, 16, 333, 1769, 202, 4476, 9233, 12, 7098, 1769, 202, 4476, 9233, 12, 1745, 1769, 202, 2433, 18, 12179, 1988, 23115, 12, 2680, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 430, 261, 588, 3367, 1435, 480, 446, 13, 202, 202, 2463, 31, 202, 759, 1788, 1476, 646, 18, 202, 202, 7098, 273, 394, 4441, 1204, 12, 2938, 16, 14210, 10663, 202, 7098, 18, 10107, 2384, 273, 374, 31, 202, 7098, 18, 10107, 2686, 273, 374, 31, 202, 759, 1788, 279, 2077, 4653, 18, 202, 2640, 4247, 5190, 5621, 202, 759, 1788, 913, 18, 202, 9400, 913, 273, 394, 14728, 12, 7098, 16, 348, 8588, 18, 9826, 1769, 202, 1745, 18, 542, 3744, 12, 2704, 14192, 3744, 10663, 202, 2640, 1763, 3367, 12, 1745, 1769, 202, 7098, 18, 542, 1350, 12, 1745, 1769, 202, 202, 759, 5203, 326, 13618, 578, 2 ]
checks: if (sourceInfo == null || !sourceInfo.checkBreakpointFast(lineno)) { if (db.breakFlag) { break checks; } if (!contextData.breakNextLine) {
if (!breakpoints[lineno] && !db.breakFlag) { if (!contextData.breakNextLine || contextData.frameCount() > contextData.stopAtFrameDepth) {
public void onLineChange(Context cx, int lineno) { this.lineNumber = lineno; checks: if (sourceInfo == null || !sourceInfo.checkBreakpointFast(lineno)) { if (db.breakFlag) { break checks; } if (!contextData.breakNextLine) { return; } if (contextData.stopAtFrameDepth > 0) { if (contextData.frameCount() > contextData.stopAtFrameDepth) { return; } contextData.stopAtFrameDepth = -1; } contextData.breakNextLine = false; } db.handleBreakpointHit(this, cx); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/1e8e9be6240bd419cb4ce7800a26a09d70dd4e27/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 603, 1670, 3043, 12, 1042, 9494, 16, 509, 7586, 13, 288, 5411, 333, 18, 1369, 1854, 273, 7586, 31, 1850, 4271, 30, 5411, 309, 261, 3168, 966, 422, 446, 747, 401, 3168, 966, 18, 1893, 20552, 12305, 12, 17782, 3719, 288, 7734, 309, 261, 1966, 18, 8820, 4678, 13, 288, 10792, 898, 4271, 31, 7734, 289, 7734, 309, 16051, 2472, 751, 18, 8820, 2134, 1670, 13, 288, 10792, 327, 31, 7734, 289, 7734, 309, 261, 2472, 751, 18, 5681, 861, 3219, 6148, 405, 374, 13, 288, 10792, 309, 261, 2472, 751, 18, 3789, 1380, 1435, 405, 819, 751, 18, 5681, 861, 3219, 6148, 13, 288, 13491, 327, 31, 10792, 289, 10792, 819, 751, 18, 5681, 861, 3219, 6148, 273, 300, 21, 31, 7734, 289, 7734, 819, 751, 18, 8820, 2134, 1670, 273, 629, 31, 5411, 289, 5411, 1319, 18, 4110, 20552, 13616, 12, 2211, 16, 9494, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 603, 1670, 3043, 12, 1042, 9494, 16, 509, 7586, 13, 288, 5411, 333, 18, 1369, 1854, 273, 7586, 31, 1850, 4271, 30, 5411, 309, 261, 3168, 966, 422, 446, 747, 401, 3168, 966, 18, 1893, 20552, 12305, 12, 17782, 3719, 288, 7734, 309, 261, 1966, 18, 8820, 4678, 13, 288, 10792, 898, 4271, 31, 7734, 289, 7734, 309, 16051, 2472, 751, 18, 8820, 2134, 1670, 13, 288, 10792, 327, 31, 7734, 289, 7734, 309, 261, 2472, 751, 18, 5681, 861, 3219, 6148, 405, 374, 13, 288, 10792, 309, 261, 2472, 751, 18, 3789, 1380, 1435, 405, 819, 751, 18, 5681, 861, 3219, 6148, 13, 288, 13491, 327, 31, 10792, 289, 10792, 819, 751, 18, 5681, 861, 2 ]
else {
} else {
public void startElement( String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // save accumulated character content if (inModification && charBuf.length() > 0) { final String normalized = charBuf.getNormalizedString(FastStringBuffer.SUPPRESS_BOTH); if (normalized.length() > 0) { Text text = doc.createTextNode(normalized); if (stack.isEmpty()) { //LOG.debug("appending text to fragment: " + text.getData()); contents.add(text); } else { Element last = (Element) stack.peek(); last.appendChild(text); } } charBuf.setLength(0); } if (namespaceURI.equals(XUPDATE_NS)) { if (localName.equals("modifications")) { String version = atts.getValue("version"); if (version == null) throw new SAXException( "version attribute is required for " + "element modifications"); if (!version.equals("1.0")) throw new SAXException( "Version " + version + " of XUpdate " + "not supported."); return; } String select = null; // variable declaration if (localName.equals("variable")) { select = atts.getValue("select"); if (select == null) throw new SAXException("variable declaration requires a select attribute"); String name = atts.getValue("name"); if (name == null) throw new SAXException("variable declarations requires a name attribute"); createVariable(name, select); return; } if (localName.equals("append") || localName.equals("insert-before") || localName.equals("insert-after") || localName.equals("remove") || localName.equals("rename") || localName.equals("update")) { if (inModification) throw new SAXException("nested modifications are not allowed"); select = atts.getValue("select"); if (select == null) throw new SAXException( localName + " requires a select attribute"); doc = builder.newDocument(); contents = new NodeListImpl(); inModification = true; } else if ( (localName.equals("element") || localName.equals("attribute") || localName.equals("text") || localName.equals("processing-instruction") || localName.equals("comment")) && (!inModification)) throw new SAXException( "creation elements are only allowed inside " + "a modification"); // start a new modification section if (localName.equals("append")) { String child = atts.getValue("child"); modification = new Append(broker, documentSet, select, child, namespaces); } else if (localName.equals("update")) modification = new Update(broker, documentSet, select, namespaces); else if (localName.equals("insert-before")) modification = new Insert(broker, documentSet, select, Insert.INSERT_BEFORE, namespaces); else if (localName.equals("insert-after")) modification = new Insert(broker, documentSet, select, Insert.INSERT_AFTER, namespaces); else if (localName.equals("remove")) modification = new Remove(broker, documentSet, select, namespaces); else if (localName.equals("rename")) modification = new Rename(broker, documentSet, select, namespaces); // process commands for node creation else if (localName.equals("element")) { String name = atts.getValue("name"); if (name == null) throw new SAXException("element requires a name attribute"); int p = name.indexOf(':'); String namespace = ""; String prefix = ""; if (p > -1) { prefix = name.substring(0, p); if (name.length() == p + 1) throw new SAXException( "illegal prefix in qname: " + name); name = name.substring(p + 1); namespace = (String) namespaces.get(prefix); if (namespace == null) { throw new SAXException( "no namespace defined for prefix " + prefix); } } Element elem = doc.createElementNS(namespace, name); elem.setPrefix(prefix); if (stack.isEmpty()) { contents.add(elem); } else { Element last = (Element) stack.peek(); last.appendChild(elem); } stack.push(elem); } else if (localName.equals("attribute")) { String name = atts.getValue("name"); if (name == null) throw new SAXException("attribute requires a name attribute"); int p = name.indexOf(':'); String namespace = ""; if (p > -1) { String prefix = name.substring(0, p); if (name.length() == p + 1) throw new SAXException( "illegal prefix in qname: " + name); name = name.substring(p + 1); namespace = (String) namespaces.get(prefix); if (namespace == null) throw new SAXException( "no namespace defined for prefix " + prefix); } Attr attrib = doc.createAttributeNS(namespace, name); if (stack.isEmpty()) contents.add(attrib); else { Element last = (Element) stack.peek(); last.setAttributeNode(attrib); } inAttribute = true; currentNode = attrib; // process value-of } else if (localName.equals("value-of")) { select = atts.getValue("select"); if (select == null) throw new SAXException("value-of requires a select attribute"); List nodes; if (select.startsWith("$")) { nodes = (List) variables.get(select); if (nodes == null) throw new SAXException( "variable " + select + " not found"); } else nodes = processQuery(select); LOG.debug("found " + nodes.size() + " nodes for value-of"); Node node; for (Iterator i = nodes.iterator(); i.hasNext();) { node = XMLUtil.copyNode(doc, (Node) i.next()); if (stack.isEmpty()) contents.add(node); else { Element last = (Element) stack.peek(); last.appendChild(node); } } } } else if (inModification) { Element elem = doc.createElementNS(namespaceURI, qName); Attr a; for (int i = 0; i < atts.getLength(); i++) { a = doc.createAttributeNS(atts.getURI(i), atts.getQName(i)); a.setValue(atts.getValue(i)); elem.setAttributeNodeNS(a); } if (stack.isEmpty()) { contents.add(elem); } else { Element last = (Element) stack.peek(); last.appendChild(elem); } stack.push(elem); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/46c4a4a7ab22fa9461468c4f833d1df26d072c4f/XUpdateProcessor.java/clean/src/org/exist/xupdate/XUpdateProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13591, 12, 202, 202, 780, 19421, 16, 202, 202, 780, 11927, 16, 202, 202, 780, 22914, 16, 202, 202, 2498, 15687, 13, 202, 202, 15069, 14366, 288, 202, 202, 759, 1923, 24893, 3351, 913, 202, 202, 430, 261, 267, 13467, 597, 1149, 5503, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 6385, 514, 5640, 273, 9506, 202, 3001, 5503, 18, 588, 15577, 780, 12, 12305, 780, 1892, 18, 13272, 22526, 67, 38, 18307, 1769, 1082, 202, 430, 261, 17762, 18, 2469, 1435, 405, 374, 13, 288, 9506, 202, 1528, 977, 273, 997, 18, 2640, 17299, 12, 17762, 1769, 9506, 202, 430, 261, 3772, 18, 291, 1921, 10756, 288, 6862, 202, 759, 4842, 18, 4148, 2932, 6923, 310, 977, 358, 5481, 30, 315, 397, 977, 18, 588, 751, 10663, 6862, 202, 3980, 18, 1289, 12, 955, 1769, 9506, 202, 97, 469, 288, 6862, 202, 1046, 1142, 273, 261, 1046, 13, 2110, 18, 347, 3839, 5621, 6862, 202, 2722, 18, 6923, 1763, 12, 955, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 3001, 5503, 18, 542, 1782, 12, 20, 1769, 202, 202, 97, 202, 202, 430, 261, 4937, 3098, 18, 14963, 12, 60, 8217, 67, 3156, 3719, 288, 1082, 202, 430, 261, 3729, 461, 18, 14963, 2932, 1711, 6640, 6, 3719, 288, 9506, 202, 780, 1177, 273, 15687, 18, 24805, 2932, 1589, 8863, 9506, 202, 430, 261, 1589, 422, 446, 13, 6862, 202, 12849, 394, 14366, 12, 25083, 202, 6, 1589, 1566, 353, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13591, 12, 202, 202, 780, 19421, 16, 202, 202, 780, 11927, 16, 202, 202, 780, 22914, 16, 202, 202, 2498, 15687, 13, 202, 202, 15069, 14366, 288, 202, 202, 759, 1923, 24893, 3351, 913, 202, 202, 430, 261, 267, 13467, 597, 1149, 5503, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 6385, 514, 5640, 273, 9506, 202, 3001, 5503, 18, 588, 15577, 780, 12, 12305, 780, 1892, 18, 13272, 22526, 67, 38, 18307, 1769, 1082, 202, 430, 261, 17762, 18, 2469, 1435, 405, 374, 13, 288, 9506, 202, 1528, 977, 273, 997, 18, 2640, 17299, 12, 17762, 1769, 9506, 202, 430, 261, 3772, 18, 291, 1921, 10756, 288, 6862, 202, 759, 4842, 18, 4148, 2 ]
if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) {
if (allowMemberExprAsFunctionName) {
private Object function(TokenStream ts, boolean isExpr) throws IOException, JavaScriptException { int baseLineno = ts.getLineno(); // line number where source starts String name; Object memberExprNode = null; if (ts.matchToken(ts.NAME)) { name = ts.getString(); if (!ts.matchToken(ts.LP)) { if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr sourceAddString(ts.NAME, name); Object memberExprHead = nf.createName(name); name = null; memberExprNode = memberExprTail(ts, false, memberExprHead); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } } else if (ts.matchToken(ts.LP)) { // Anonymous function name = null; } else { name = null; if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Note that memberExpr can not start with '(' like // in (1+2).toString, because 'function (' already // processed as anonymous function memberExprNode = memberExpr(ts, false); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { // transform 'function' <memberExpr> to <memberExpr> = function // even in the decompilated source sourceAdd((char)ts.ASSIGN); sourceAdd((char)ts.NOP); } // save a reference to the function in the enclosing source. sourceAdd((char) ts.FUNCTION); sourceAdd((char)functionNumber); ++functionNumber; // Save current source top to restore it on exit not to include // function to parent source int savedSourceTop = sourceTop; int savedFunctionNumber = functionNumber; ObjArray args = new ObjArray(); Object body; String source; try { functionNumber = 0; // FUNCTION as the first token in a Source means it's a function // definition, and not a reference. sourceAdd((char) ts.FUNCTION); if (name != null) { sourceAddString(ts.NAME, name); } sourceAdd((char) ts.LP); if (!ts.matchToken(ts.RP)) { boolean first = true; do { if (!first) sourceAdd((char)ts.COMMA); first = false; mustMatchToken(ts, ts.NAME, "msg.no.parm"); String s = ts.getString(); args.add(s); sourceAddString(ts.NAME, s); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.parms"); } sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.body"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = parseFunctionBody(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); // skip the last EOL so nested functions work... // name might be null; source = sourceToString(savedSourceTop); } finally { sourceTop = savedSourceTop; functionNumber = savedFunctionNumber; } Object pn = nf.createFunction(name, args, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, isExpr || memberExprNode != null); if (memberExprNode != null) { pn = nf.createBinary(ts.ASSIGN, ts.NOP, memberExprNode, pn); } // Add EOL but only if function is not part of expression, in which // case it gets SEMI + EOL from Statement. if (!isExpr) { if (memberExprNode != null) { // Add ';' to make 'function x.f(){}' and 'x.f = function(){}' // to print the same strings when decompiling sourceAdd((char)ts.SEMI); } sourceAdd((char)ts.EOL); wellTerminated(ts, ts.FUNCTION); } return pn; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 445, 12, 1345, 1228, 3742, 16, 1250, 353, 4742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 1026, 48, 267, 5764, 273, 3742, 18, 588, 48, 267, 5764, 5621, 225, 368, 980, 1300, 1625, 1084, 2542, 3639, 514, 508, 31, 3639, 1033, 3140, 4742, 907, 273, 446, 31, 3639, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 1985, 3719, 288, 5411, 508, 273, 3742, 18, 588, 780, 5621, 5411, 309, 16051, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 7734, 309, 261, 1042, 18, 29120, 7675, 5332, 4595, 10792, 261, 1042, 18, 18257, 67, 19630, 67, 2294, 8025, 67, 3033, 67, 7788, 67, 1985, 3719, 7734, 288, 10792, 368, 10021, 358, 7773, 5535, 30, 309, 296, 915, 411, 529, 1870, 1552, 486, 2805, 10792, 368, 635, 7747, 2187, 6750, 411, 529, 34, 2542, 3140, 4742, 10792, 1084, 986, 780, 12, 3428, 18, 1985, 16, 508, 1769, 10792, 1033, 3140, 4742, 1414, 273, 13958, 18, 2640, 461, 12, 529, 1769, 10792, 508, 273, 446, 31, 10792, 3140, 4742, 907, 273, 3140, 4742, 12363, 12, 3428, 16, 629, 16, 3140, 4742, 1414, 1769, 7734, 289, 7734, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 29927, 8863, 5411, 289, 3639, 289, 3639, 469, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 5411, 368, 29775, 445, 5411, 508, 273, 446, 31, 3639, 289, 3639, 469, 288, 5411, 508, 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, 1033, 445, 12, 1345, 1228, 3742, 16, 1250, 353, 4742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 1026, 48, 267, 5764, 273, 3742, 18, 588, 48, 267, 5764, 5621, 225, 368, 980, 1300, 1625, 1084, 2542, 3639, 514, 508, 31, 3639, 1033, 3140, 4742, 907, 273, 446, 31, 3639, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 1985, 3719, 288, 5411, 508, 273, 3742, 18, 588, 780, 5621, 5411, 309, 16051, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 7734, 309, 261, 1042, 18, 29120, 7675, 5332, 4595, 10792, 261, 1042, 18, 18257, 67, 19630, 67, 2294, 8025, 67, 3033, 67, 7788, 67, 1985, 3719, 7734, 288, 10792, 368, 10021, 2 ]
return (IWorkbenchWizard) wizardElement .createExecutableExtension();
return wizardElement.createWizard();
public IWorkbenchWizard createWizard() throws CoreException { return (IWorkbenchWizard) wizardElement .createExecutableExtension(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3d694fa5580f66413fa910c2e54a03aaef1cec34/ExportWizard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ExportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 467, 2421, 22144, 27130, 752, 27130, 1435, 1216, 30015, 288, 10792, 327, 261, 45, 2421, 22144, 27130, 13, 24204, 1046, 18701, 263, 2640, 17709, 3625, 5621, 7734, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 467, 2421, 22144, 27130, 752, 27130, 1435, 1216, 30015, 288, 10792, 327, 261, 45, 2421, 22144, 27130, 13, 24204, 1046, 18701, 263, 2640, 17709, 3625, 5621, 7734, 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 ]
if (icon != null) { getOut().print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>" + "<TR><TD NOWRAP VALIGN=CENTER>"); if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print("<IMG SRC=\"" + icon + "\" BORDER=0 ALIGN=MIDDLE ALT=\"\">"); if (link_url != null) getOut().print("</A>"); getOut().print("</TD><TD VALIGN=CENTER>"); }
if (icon != null) { getOut().print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>" + "<TR><TD NOWRAP VALIGN=CENTER>"); if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print("<IMG SRC=\"" + icon + "\" BORDER=0 ALIGN=MIDDLE ALT=\"\">"); if (link_url != null) getOut().print("</A>"); getOut().print("</TD><TD VALIGN=CENTER>"); }
void formatAttachmentBox(InternetHeaders headers, String type, String link_name, String link_url, String body, boolean all_headers_p) { String icon = "internal-gopher-binary"; // #### getOut().print("<CENTER>" + "<TABLE CELLPADDING=8 CELLSPACING=1 BORDER=1>" + "<TR><TD NOWRAP>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) { getOut().print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>" + "<TR><TD NOWRAP VALIGN=CENTER>"); if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print("<IMG SRC=\"" + icon + "\" BORDER=0 ALIGN=MIDDLE ALT=\"\">"); if (link_url != null) getOut().print("</A>"); getOut().print("</TD><TD VALIGN=CENTER>"); }//#### End of temporarily removed block --Edwin if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print(link_name); if (link_url != null) getOut().print("</A>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) getOut().print("</TD></TR></TABLE>");//#### End of temporarily removed block --Edwin getOut().print("</TD><TD>"); if (all_headers_p) { FullHeaderFormatter formatter = new FullHeaderFormatter(); StringBuffer output = new StringBuffer(200); formatter.formatHeaders(headers, output); getOut().print(output.toString()); } else { String cde[] = headers.getHeader("Content-Description"); String desc = (cde == null || cde.length == 0 ? null : cde[0]); String name = null; ByteBuf buf = new ByteBuf(50); String cdi[] = headers.getHeader("Content-Disposition"); String disp = (cdi == null || cdi.length == 0 ? null : cdi[0]);// #### if (disp != null) name = headers.getHeader("filename", "\n"); if (name == null) if ((type = headers.getHeader("Content-Type", "\n")) != null) name = headers.getHeader("name", "\n"); if (name == null) { String n[] = headers.getHeader("Content-Name"); if (n != null && n.length != 0) name = n[0]; }//#### Temporarily removed because the current renderer doesn't get it --Edwin// getOut().print("<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>");//// if (name != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Name" + // #### l10n// ": </TH><TD>" +// name +// "</TD></TR>");//// if (type != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Type" + // #### l10n// ": </TH><TD>" +// type +// "</TD></TR>");//// if (desc != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Description" + // #### l10n// ": </TH><TD>" +// desc +// "</TD></TR>");//// getOut().print("</TABLE>");//#### End of temporarily removed block --Edwin//#### Temporarily inserted to get rendering working --Edwin if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");//#### End of temporarily inserted block --Edwin } if (body != null) {// getOut().print("<P><PRE>"); // #### quote HTML getOut().print(body);// getOut().print("</PRE>"); }// getOut().print("</TD></TR></TABLE></CENTER>"); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/0cc63cb388a13f01532486f9d178811914e6d71b/MimeExternalObjectOperator.java/buggy/grendel/sources/grendel/mime/html/MimeExternalObjectOperator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, 514, 4126, 273, 315, 7236, 17, 75, 556, 1614, 17, 8578, 14432, 377, 368, 11849, 7, 565, 23141, 7675, 1188, 2932, 32, 19835, 2984, 397, 5397, 3532, 7775, 385, 2247, 14461, 26710, 33, 28, 385, 2247, 3045, 52, 2226, 1360, 33, 21, 605, 7954, 33, 21, 2984, 397, 5397, 3532, 4349, 4438, 23409, 3741, 27664, 2984, 1769, 759, 1970, 3955, 3831, 10243, 3723, 2724, 326, 783, 5690, 3302, 1404, 336, 518, 1493, 2671, 8082, 565, 309, 261, 3950, 480, 446, 13, 288, 1377, 23141, 7675, 1188, 2932, 32, 7775, 605, 7954, 33, 20, 385, 2247, 14461, 26710, 33, 20, 385, 2247, 3045, 52, 2226, 1360, 33, 20, 2984, 397, 15604, 3532, 4349, 4438, 23409, 3741, 27664, 5143, 10452, 33, 19835, 2984, 1769, 1377, 309, 261, 1232, 67, 718, 480, 446, 13, 3639, 23141, 7675, 1188, 2932, 32, 37, 670, 10771, 13186, 397, 1692, 67, 718, 397, 7023, 2984, 1769, 1377, 23141, 7675, 1188, 2932, 32, 3445, 43, 348, 11529, 13186, 397, 4126, 397, 15604, 7023, 605, 7954, 33, 20, 21892, 33, 49, 25578, 30939, 5189, 21121, 1769, 1377, 309, 261, 1232, 67, 718, 480, 446, 13, 23141, 7675, 1188, 2932, 1757, 37, 2984, 1769, 1377, 23141, 7675, 1188, 2932, 1757, 23409, 4438, 23409, 5143, 10452, 33, 19835, 2984, 1769, 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, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, 514, 4126, 273, 315, 7236, 17, 75, 556, 1614, 17, 8578, 14432, 377, 368, 11849, 7, 565, 23141, 7675, 1188, 2932, 32, 19835, 2984, 397, 5397, 3532, 7775, 385, 2247, 14461, 26710, 33, 28, 385, 2247, 3045, 52, 2226, 1360, 33, 21, 605, 7954, 33, 21, 2984, 397, 5397, 3532, 4349, 4438, 23409, 3741, 27664, 2984, 1769, 759, 1970, 3955, 3831, 10243, 3723, 2724, 326, 783, 5690, 3302, 1404, 336, 518, 1493, 2671, 8082, 565, 309, 261, 3950, 480, 446, 13, 288, 2 ]
if (TypeAnalysis.ACCURATE_EXCEPTIONS && edge.isExceptionEdge()) { ExceptionSet exceptionSet = typeDataflow.getAnalysis().getEdgeExceptionSet(edge); if (!exceptionSet.containsExplicitExceptions()) { return; }
if (ClassContext.PRUNE_INFEASIBLE_EXCEPTION_EDGES && !edge.isFlagSet(EdgeTypes.EXPLICIT_EXCEPTIONS_FLAG)) { return;
public void meetInto(UnconditionalDerefSet fact, Edge edge, UnconditionalDerefSet result) throws DataflowAnalysisException { // Ignore implicit exceptions if (TypeAnalysis.ACCURATE_EXCEPTIONS && edge.isExceptionEdge()) { // Ignore "implicit" exceptions. These are any runtime // exceptions not explicitly declared by a called method, // or thrown by an ATHROW instruction. ExceptionSet exceptionSet = typeDataflow.getAnalysis().getEdgeExceptionSet(edge); if (!exceptionSet.containsExplicitExceptions()) { return; } } if (result.isTop() || fact.isBottom()) { copy(fact, result); } else if (result.isBottom() || fact.isTop()) { // Nothing to do } else { // Meet is intersection result.and(fact); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/35c0c9733327eb0724d7b5d6e3b2d6ae7b26799e/UnconditionalDerefAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/UnconditionalDerefAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18721, 5952, 12, 984, 22019, 40, 822, 74, 694, 5410, 16, 11342, 3591, 16, 1351, 22019, 40, 822, 74, 694, 563, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 759, 8049, 10592, 4798, 202, 202, 430, 261, 559, 9418, 18, 2226, 7509, 1777, 67, 12658, 55, 597, 3591, 18, 291, 503, 6098, 10756, 288, 1082, 202, 759, 8049, 315, 24357, 6, 4798, 18, 225, 8646, 854, 1281, 3099, 1082, 202, 759, 4798, 486, 8122, 7886, 635, 279, 2566, 707, 16, 1082, 202, 759, 578, 6718, 635, 392, 432, 2455, 11226, 7592, 18, 1082, 202, 503, 694, 1520, 694, 273, 618, 751, 2426, 18, 588, 9418, 7675, 588, 6098, 503, 694, 12, 7126, 1769, 1875, 202, 430, 16051, 4064, 694, 18, 12298, 17186, 11416, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 430, 261, 2088, 18, 291, 3401, 1435, 747, 5410, 18, 291, 10393, 10756, 288, 1082, 202, 3530, 12, 3493, 16, 563, 1769, 202, 202, 97, 469, 309, 261, 2088, 18, 291, 10393, 1435, 747, 5410, 18, 291, 3401, 10756, 288, 1082, 202, 759, 13389, 358, 741, 202, 202, 97, 469, 288, 1082, 202, 759, 7499, 278, 353, 7619, 1082, 202, 2088, 18, 464, 12, 3493, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18721, 5952, 12, 984, 22019, 40, 822, 74, 694, 5410, 16, 11342, 3591, 16, 1351, 22019, 40, 822, 74, 694, 563, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 759, 8049, 10592, 4798, 202, 202, 430, 261, 559, 9418, 18, 2226, 7509, 1777, 67, 12658, 55, 597, 3591, 18, 291, 503, 6098, 10756, 288, 1082, 202, 759, 8049, 315, 24357, 6, 4798, 18, 225, 8646, 854, 1281, 3099, 1082, 202, 759, 4798, 486, 8122, 7886, 635, 279, 2566, 707, 16, 1082, 202, 759, 578, 6718, 635, 392, 432, 2455, 11226, 7592, 18, 1082, 202, 503, 694, 1520, 694, 273, 618, 751, 2426, 18, 588, 9418, 7675, 588, 6098, 503, 694, 12, 7126, 1769, 1875, 2 ]
public PDOMCPPBinding(PDOM pdom, PDOMNode parent, char[] name) throws CoreException { super(pdom, parent, name);
public PDOMCPPBinding(PDOM pdom, int record) { super(pdom, record);
public PDOMCPPBinding(PDOM pdom, PDOMNode parent, char[] name) throws CoreException { super(pdom, parent, name); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/94f1a13a14bc4052b0e07fffa1a3ea3237d7ad88/PDOMCPPBinding.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 8168, 4258, 52, 5250, 12, 52, 8168, 4863, 362, 16, 453, 8168, 907, 982, 16, 1149, 8526, 508, 13, 1216, 30015, 288, 202, 202, 9565, 12, 84, 9859, 16, 982, 16, 508, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 8168, 4258, 52, 5250, 12, 52, 8168, 4863, 362, 16, 453, 8168, 907, 982, 16, 1149, 8526, 508, 13, 1216, 30015, 288, 202, 202, 9565, 12, 84, 9859, 16, 982, 16, 508, 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 ]
"nonVector<T>::first<T>() : const T&",
"nonVector<T>::first<T>() const : const T&",
public void testGetTemplateSignature() throws CModelException { ITranslationUnit tu = getTU(); ArrayList arrayElements = new ArrayList(); arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_STRUCT ) ); arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_CLASS ) ); arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_UNION ) ); arrayElements.addAll( getTemplateMethods(tu) ); arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_FUNCTION ) ); arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_FUNCTION_DECLARATION ) ); // TEMPLATE_VARIABLE moved to failed tests //arrayElements.addAll( tu.getChildrenOfType(ICElement.C_TEMPLATE_VARIABLE ) ); String[] myExpectedValues = { "Map<Key, Value, SortAlgorithm>", "nonVector<T>", "ArrayOverlay<X, Y, int=16>", "fum<Bar>(int) : void", "scrum<int>(void) : void", // TODO: deduce the rules of () versus (void), compare below. "nonVector<T>::first<T>() : const T&", // TODO: where should <T> be? "Foo::fum<Bar>(int) : void", // TODO: shouldn't signature indicate const function as well? "IsGreaterThan<X>(X, X) : bool", /*"default_alloc_template<threads,inst>::S_start_free<bool, int> : char*",*/ }; assertEquals(myExpectedValues.length, arrayElements.size()); for(int i=0; i<myExpectedValues.length; i++) { ITemplate myTemplate = (ITemplate) arrayElements.get(i); assertNotNull( "Failed on "+i, myTemplate ); assertEquals( "Failed on "+i, myExpectedValues[i], myTemplate.getTemplateSignature() ); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cb6c40b03bf49067d4fa11d3dd657de785bb1afa/ITemplateTests.java/buggy/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/model/tests/ITemplateTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 2283, 5374, 1435, 1216, 385, 1488, 503, 202, 95, 202, 202, 45, 6717, 2802, 28325, 273, 3181, 57, 5621, 202, 202, 19558, 526, 3471, 273, 394, 2407, 5621, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 13915, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 5237, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 2124, 1146, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 10646, 4712, 12, 88, 89, 13, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 7788, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 7788, 67, 23956, 985, 2689, 262, 11272, 202, 202, 759, 20835, 67, 16444, 10456, 358, 2535, 7434, 202, 202, 759, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 16444, 262, 11272, 9506, 202, 780, 8526, 3399, 6861, 1972, 273, 288, 1082, 202, 6, 863, 32, 653, 16, 1445, 16, 5928, 6801, 2984, 16, 1082, 202, 6, 5836, 5018, 32, 56, 2984, 16, 1082, 202, 6, 1076, 11627, 32, 60, 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, 967, 2283, 5374, 1435, 1216, 385, 1488, 503, 202, 95, 202, 202, 45, 6717, 2802, 28325, 273, 3181, 57, 5621, 202, 202, 19558, 526, 3471, 273, 394, 2407, 5621, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 13915, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 5237, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 28325, 18, 588, 4212, 18859, 12, 2871, 1046, 18, 39, 67, 12205, 67, 2124, 1146, 262, 11272, 202, 202, 1126, 3471, 18, 1289, 1595, 12, 10646, 4712, 12, 88, 2 ]
if (internalIsInputOrEmptyPath(elementOrTreePath)) { getTree().setItemCount(count); return; } Widget[] items = internalFindItems(elementOrTreePath); for (int i = 0; i < items.length; i++) { TreeItem treeItem = (TreeItem) items[i]; treeItem.setItemCount(count);
if (internalIsInputOrEmptyPath(parentElementOrTreePath)) { if (index < tree.getItemCount()) { updateItem(tree.getItem(index), element); } } else { Widget[] parentItems = internalFindItems(parentElementOrTreePath); for (int i = 0; i < parentItems.length; i++) { TreeItem parentItem = (TreeItem) parentItems[i]; if (index < parentItem.getItemCount()) { updateItem(parentItem.getItem(index), element); } }
public void run() { if (internalIsInputOrEmptyPath(elementOrTreePath)) { getTree().setItemCount(count); return; } Widget[] items = internalFindItems(elementOrTreePath); for (int i = 0; i < items.length; i++) { TreeItem treeItem = (TreeItem) items[i]; treeItem.setItemCount(count); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/98f48f47b2fd4c2b264a8e2e689bcbe9c594c5d2/TreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 430, 261, 7236, 2520, 1210, 12763, 743, 12, 2956, 1162, 2471, 743, 3719, 288, 6862, 202, 588, 2471, 7675, 542, 30687, 12, 1883, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 4609, 8526, 1516, 273, 2713, 3125, 3126, 12, 2956, 1162, 2471, 743, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 6862, 202, 2471, 1180, 2151, 1180, 273, 261, 2471, 1180, 13, 1516, 63, 77, 15533, 6862, 202, 3413, 1180, 18, 542, 30687, 12, 1883, 1769, 9506, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 430, 261, 7236, 2520, 1210, 12763, 743, 12, 2956, 1162, 2471, 743, 3719, 288, 6862, 202, 588, 2471, 7675, 542, 30687, 12, 1883, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 4609, 8526, 1516, 273, 2713, 3125, 3126, 12, 2956, 1162, 2471, 743, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 6862, 202, 2471, 1180, 2151, 1180, 273, 261, 2471, 1180, 13, 1516, 63, 77, 15533, 6862, 202, 3413, 1180, 18, 542, 30687, 12, 1883, 1769, 9506, 202, 97, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean testPasses = false; try { myExpectation.setActual(150); } catch (AssertionFailedError ex) { testPasses = true; }
boolean testPasses = false; try { myExpectation.setActual(150); } catch (AssertionFailedError ex) { testPasses = true; }
public void testIntFail() { myExpectation.setExpected(100); boolean testPasses = false; try { myExpectation.setActual(150); } catch (AssertionFailedError ex) { testPasses = true; } assertTrue("Should fail fast on int", testPasses); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/ExpectationValueTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1702, 3754, 1435, 288, 3639, 3399, 11988, 367, 18, 542, 6861, 12, 6625, 1769, 3639, 1250, 1842, 6433, 281, 273, 629, 31, 3639, 775, 288, 5411, 3399, 11988, 367, 18, 542, 11266, 12, 23014, 1769, 3639, 289, 1044, 261, 14979, 2925, 668, 431, 13, 288, 5411, 1842, 6433, 281, 273, 638, 31, 3639, 289, 3639, 1815, 5510, 2932, 14309, 2321, 4797, 603, 509, 3113, 1842, 6433, 281, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1702, 3754, 1435, 288, 3639, 3399, 11988, 367, 18, 542, 6861, 12, 6625, 1769, 3639, 1250, 1842, 6433, 281, 273, 629, 31, 3639, 775, 288, 5411, 3399, 11988, 367, 18, 542, 11266, 12, 23014, 1769, 3639, 289, 1044, 261, 14979, 2925, 668, 431, 13, 288, 5411, 1842, 6433, 281, 273, 638, 31, 3639, 289, 3639, 1815, 5510, 2932, 14309, 2321, 4797, 603, 509, 3113, 1842, 6433, 281, 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 ]
graphics.setTransform(curTxf);
graphics.preparePainting(); graphics.transform(curTxf);
protected void transcode(Document document, String uri, TranscoderOutput output) throws TranscoderException { graphics = new PDFDocumentGraphics2D(); try { if (this.cfg != null) { ContainerUtil.configure(graphics, this.cfg); } ContainerUtil.initialize(graphics); } catch (Exception e) { throw new TranscoderException( "Error while setting up PDFDocumentGraphics2D", e); } super.transcode(document, uri, output); getLogger().trace("document size: " + width + " x " + height); // prepare the image to be painted UnitProcessor.Context uctx = UnitProcessor.createContext(ctx, document.getDocumentElement()); float widthInPt = UnitProcessor.userSpaceToSVG(width, SVGLength.SVG_LENGTHTYPE_PT, UnitProcessor.HORIZONTAL_LENGTH, uctx); int w = (int)(widthInPt + 0.5); float heightInPt = UnitProcessor.userSpaceToSVG(height, SVGLength.SVG_LENGTHTYPE_PT, UnitProcessor.HORIZONTAL_LENGTH, uctx); int h = (int)(heightInPt + 0.5); getLogger().trace("document size: " + w + "pt x " + h + "pt"); // prepare the image to be painted //int w = (int)(width + 0.5); //int h = (int)(height + 0.5); try { graphics.setupDocument(output.getOutputStream(), w, h); graphics.setSVGDimension(width, height); if (hints.containsKey(ImageTranscoder.KEY_BACKGROUND_COLOR)) { graphics.setBackgroundColor ((Color)hints.get(ImageTranscoder.KEY_BACKGROUND_COLOR)); } graphics.setGraphicContext (new org.apache.batik.ext.awt.g2d.GraphicContext()); graphics.setTransform(curTxf); graphics.setRenderingHint (RenderingHintsKeyExt.KEY_TRANSCODING, RenderingHintsKeyExt.VALUE_TRANSCODING_VECTOR); this.root.paint(graphics); graphics.finish(); } catch (IOException ex) { throw new TranscoderException(ex); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/0eb5b0b7fb7f29fcd7f23d3db6ae606efbfe0b98/PDFTranscoder.java/buggy/src/java/org/apache/fop/svg/PDFTranscoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 906, 710, 12, 2519, 1668, 16, 514, 2003, 16, 11794, 2604, 3396, 1447, 876, 13, 540, 1216, 2604, 3396, 503, 288, 3639, 17313, 273, 394, 12667, 2519, 17558, 22, 40, 5621, 7734, 775, 288, 5411, 309, 261, 2211, 18, 7066, 480, 446, 13, 288, 7734, 4039, 1304, 18, 14895, 12, 31586, 16, 333, 18, 7066, 1769, 5411, 289, 5411, 4039, 1304, 18, 11160, 12, 31586, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 2604, 3396, 503, 12, 7734, 315, 668, 1323, 3637, 731, 12667, 2519, 17558, 22, 40, 3113, 425, 1769, 3639, 289, 3639, 2240, 18, 2338, 710, 12, 5457, 16, 2003, 16, 876, 1769, 3639, 7156, 7675, 5129, 2932, 5457, 963, 30, 315, 397, 1835, 397, 315, 619, 315, 397, 2072, 1769, 7734, 368, 2911, 326, 1316, 358, 506, 12574, 329, 3639, 8380, 5164, 18, 1042, 582, 5900, 273, 8380, 5164, 18, 2640, 1042, 12, 5900, 16, 5397, 1668, 18, 588, 2519, 1046, 10663, 3639, 1431, 1835, 382, 16484, 273, 8380, 5164, 18, 1355, 3819, 774, 26531, 12, 2819, 16, 11281, 1782, 18, 26531, 67, 7096, 2399, 67, 1856, 16, 5397, 8380, 5164, 18, 44, 20344, 67, 7096, 16, 582, 5900, 1769, 3639, 509, 341, 273, 261, 474, 21433, 2819, 382, 16484, 397, 374, 18, 25, 1769, 3639, 1431, 2072, 382, 16484, 273, 8380, 5164, 18, 1355, 3819, 774, 26531, 12, 4210, 16, 11281, 1782, 18, 26531, 67, 7096, 2399, 67, 1856, 16, 1171, 8380, 5164, 18, 44, 20344, 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, 906, 710, 12, 2519, 1668, 16, 514, 2003, 16, 11794, 2604, 3396, 1447, 876, 13, 540, 1216, 2604, 3396, 503, 288, 3639, 17313, 273, 394, 12667, 2519, 17558, 22, 40, 5621, 7734, 775, 288, 5411, 309, 261, 2211, 18, 7066, 480, 446, 13, 288, 7734, 4039, 1304, 18, 14895, 12, 31586, 16, 333, 18, 7066, 1769, 5411, 289, 5411, 4039, 1304, 18, 11160, 12, 31586, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 2604, 3396, 503, 12, 7734, 315, 668, 1323, 3637, 731, 12667, 2519, 17558, 22, 40, 3113, 425, 1769, 3639, 289, 3639, 2240, 18, 2338, 710, 12, 5457, 16, 2003, 16, 876, 1769, 3639, 7156, 7675, 5129, 2932, 5457, 963, 2 ]
g.setPDBCode(residue_pdb_seq+"");
g.setPDBCode(residue_pdb_seq+insertionCode);
public Structure getStructureById(String pdbId) throws IOException { // open connection to database Connection conn ; Structure structure = new StructureImpl(); try { conn = dataSource.getConnection(); // create Structure object from MSD database query. } catch (SQLException e) { e.printStackTrace(); throw new IOException ("could not open database connection") ; } try { PreparedStatement ps = conn.prepareStatement("select residue_serial, serial, residue_id,code_3_letter, CHEM_ATOM_NAME_PDB_LS, chem_atom_name, element_symbol,alt_code, CHAIN_CODE_1_LETTER, chain_code, chain_pdb_code, OCCUPANCY, PDB_CHARGE,PDB_Group, x,y,z, CHEM_COMP_CODE, CHEM_ATOM_ID,U_ISO_OR_EQUIV, RESIDUE_PDB_SEQ from Atom_Data where accession_code = ? order by serial") ; ps.setString(1,pdbId); System.out.println(ps); ResultSet row = ps.executeQuery(); int prev_serial = -9999 ; String prevChain = "" ; String prevType = "" ; // was it amino acid or hetatom before ? Group g =null; Chain current_chain = new ChainImpl(); while (row.next()) { int residue_serial = row.getInt(1); int serial = row.getInt(2); String residue_id = row.getString(3); String code_3_letter = row.getString(4); String CHEM_ATOM_NAME_LS = row.getString(5); String chem_atom_name = row.getString(6); String element_symbol = row.getString(7); String alt_code = row.getString(8); String chain_Code_1_Letter = row.getString(9); String chain_code = row.getString(10) ; String chain_pdb_code = row.getString(11) ; double OCCUPANCY = row.getDouble(12); String PDB_CHARGE = row.getString(13); String pdb_Group = row.getString(14); double x = row.getDouble(15); double y = row.getDouble(16); double z = row.getDouble(17); String ligand_code = row.getString(18); String chem_atom_id = row.getString(19); double U_ISO_OR_EQUIV = row.getDouble(20); int residue_pdb_seq = row.getInt(21); //System.out.println(U_ISO_OR_EQUIV); String str = "" ; if ( ( prev_serial != residue_pdb_seq ) || ( ! prevType.equals(pdb_Group) ) ) { if ( prev_serial != -9999) { current_chain.addGroup(g); } if ( pdb_Group.equals("A") ) { g = new AminoAcidImpl(); } else { g = new HetatomImpl(); } } if ( chain_pdb_code == null ) { chain_pdb_code = " " ; } if (! prevChain.equals(chain_pdb_code)) { if ( prevChain != "" ) { structure.addChain(current_chain) ; current_chain = new ChainImpl(); } } if ( CHEM_ATOM_NAME_LS == null) { CHEM_ATOM_NAME_LS = ""; } //select residue_serial, chain_code_1_letter,RESIDUE_PDB_CODE, RESIDUE_PDB_INSERT_CODE, SP_PRIMARY_ID, DSC_TYPE, SP_SERIAL from swiss_prot_mapping where accession_code = '5pti' order by ASSEMBLY_SERIAL ; //str += residue_serial+" " + serial + " " +code_3_letter+" " +CHEM_ATOM_NAME_LS + chem_atom_name +" " + chem_atom_id + " " +chain_Code_1_Letter + " " + OCCUPANCY +" " +PDB_CHARGE+" " + x+" "+ y+" "+z + " " +ligand_code ; //System.out.println(str); Atom a = new AtomImpl(); a.setX(x); a.setY(y); a.setZ(z); a.setName(chem_atom_name); a.setPDBserial(serial); //a.setAltLoc(alt_code); //a.setTempFactor(U_ISO_OR_EQUIV); a.setOccupancy(OCCUPANCY); String fname = CHEM_ATOM_NAME_LS + chem_atom_name ; //String fullname = fname + (4-fname.length()) * " "; String fullname = fname ; for ( int i = 0 ; i < 4-fname.length(); i++ ) { fullname +=" " ; } //System.out.println(">"+fullname+"<"); a.setFullName(fullname); g.addAtom(a); g.setPDBFlag(true); g.setPDBName(code_3_letter); g.setPDBCode(residue_pdb_seq+""); //System.out.println(a); //System.out.println("chainname "+chain_pdb_code+ " " +chain_Code_1_Letter+ " " + chain_code); current_chain.setName(chain_pdb_code); prev_serial = residue_pdb_seq; prevChain = chain_pdb_code ; prevType = pdb_Group ; } //System.out.println("adding!" + g + current_chain); current_chain.addGroup(g); structure.addChain(current_chain) ; } catch ( Exception e ){ e.printStackTrace(); try { conn.close(); } catch ( SQLException es) { es.printStackTrace(); } return null; } try { conn.close(); } catch ( SQLException es) { es.printStackTrace(); } return structure; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/bbedb59560e9ee3f0a9bd2f279255c7bb54a4dff/PDBMSDReader.java/clean/src/org/biojava/bio/structure/io/PDBMSDReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13348, 18730, 5132, 12, 780, 10892, 548, 13, 1216, 1860, 288, 202, 759, 1696, 1459, 358, 2063, 202, 1952, 1487, 274, 202, 6999, 3695, 273, 394, 13348, 2828, 5621, 202, 698, 288, 202, 565, 1487, 273, 10233, 18, 588, 1952, 5621, 202, 565, 368, 752, 13348, 733, 628, 9238, 40, 2063, 843, 18, 202, 97, 1044, 261, 23116, 425, 13, 288, 202, 565, 425, 18, 1188, 6332, 5621, 202, 565, 604, 394, 1860, 7566, 15195, 486, 1696, 2063, 1459, 7923, 274, 202, 97, 202, 698, 288, 202, 565, 16913, 4250, 273, 1487, 18, 9366, 3406, 2932, 4025, 14765, 67, 8818, 16, 2734, 16, 14765, 67, 350, 16, 710, 67, 23, 67, 13449, 16, 6469, 3375, 67, 28146, 67, 1985, 67, 52, 2290, 67, 3045, 16, 19028, 67, 7466, 67, 529, 16, 3639, 930, 67, 7175, 16, 2390, 67, 710, 16, 225, 6469, 6964, 67, 5572, 67, 21, 67, 26379, 16, 2687, 67, 710, 16, 2687, 67, 17414, 67, 710, 16, 225, 531, 6743, 3079, 1258, 16068, 16, 21601, 67, 7305, 7113, 16, 52, 2290, 67, 1114, 16, 619, 16, 93, 16, 94, 16, 6469, 3375, 67, 10057, 67, 5572, 16, 6469, 3375, 67, 28146, 67, 734, 16, 57, 67, 12609, 67, 916, 67, 41, 3500, 8188, 16, 225, 12915, 734, 1821, 67, 52, 2290, 67, 28114, 628, 7149, 67, 751, 1625, 2006, 285, 67, 710, 273, 692, 1353, 635, 2734, 7923, 274, 202, 565, 4250, 18, 542, 780, 12, 21, 16, 17414, 548, 1769, 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, 377, 1071, 13348, 18730, 5132, 12, 780, 10892, 548, 13, 1216, 1860, 288, 202, 759, 1696, 1459, 358, 2063, 202, 1952, 1487, 274, 202, 6999, 3695, 273, 394, 13348, 2828, 5621, 202, 698, 288, 202, 565, 1487, 273, 10233, 18, 588, 1952, 5621, 202, 565, 368, 752, 13348, 733, 628, 9238, 40, 2063, 843, 18, 202, 97, 1044, 261, 23116, 425, 13, 288, 202, 565, 425, 18, 1188, 6332, 5621, 202, 565, 604, 394, 1860, 7566, 15195, 486, 1696, 2063, 1459, 7923, 274, 202, 97, 202, 698, 288, 202, 565, 16913, 4250, 273, 1487, 18, 9366, 3406, 2932, 4025, 14765, 67, 8818, 16, 2734, 16, 14765, 67, 350, 16, 710, 67, 23, 67, 13449, 16, 6469, 3375, 67, 28146, 2 ]
assertEquals( 'a', ami_return_val );
this.assertEquals( 'a', ami_return_val );
public void test_return_char() { ReplyHandler handler = new ReplyHandler() { public void return_char( char ami_return_val ) { assertEquals( 'a', ami_return_val ); pass(); } }; ( ( _CallbackServerStub ) server ) .sendc_return_char( ref( handler ), ( short ) 'a', 100 ); handler.wait_for_reply( 200 ); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/3de75c0ddd185ba64a45a33976f541145137b0be/CallbackTest.java/clean/test/regression/src/org/jacorb/test/orb/CallbackTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 2463, 67, 3001, 1435, 565, 288, 3639, 16202, 1503, 1838, 273, 394, 16202, 1503, 1435, 3639, 288, 5411, 1071, 918, 327, 67, 3001, 12, 1149, 2125, 77, 67, 2463, 67, 1125, 262, 5411, 288, 7734, 333, 18, 11231, 8867, 12, 296, 69, 2187, 2125, 77, 67, 2463, 67, 1125, 11272, 7734, 1342, 5621, 5411, 289, 3639, 289, 31, 3639, 261, 261, 389, 2428, 2081, 11974, 262, 1438, 262, 1171, 263, 4661, 71, 67, 2463, 67, 3001, 12, 1278, 12, 1838, 262, 16, 261, 3025, 262, 296, 69, 2187, 2130, 11272, 3639, 1838, 18, 7048, 67, 1884, 67, 10629, 12, 4044, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 2463, 67, 3001, 1435, 565, 288, 3639, 16202, 1503, 1838, 273, 394, 16202, 1503, 1435, 3639, 288, 5411, 1071, 918, 327, 67, 3001, 12, 1149, 2125, 77, 67, 2463, 67, 1125, 262, 5411, 288, 7734, 333, 18, 11231, 8867, 12, 296, 69, 2187, 2125, 77, 67, 2463, 67, 1125, 11272, 7734, 1342, 5621, 5411, 289, 3639, 289, 31, 3639, 261, 261, 389, 2428, 2081, 11974, 262, 1438, 262, 1171, 263, 4661, 71, 67, 2463, 67, 3001, 12, 1278, 12, 1838, 262, 16, 261, 3025, 262, 296, 69, 2187, 2130, 11272, 3639, 1838, 18, 7048, 67, 1884, 67, 10629, 12, 4044, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
;
public PsiClassType[] getReferencedTypes() { PsiClassType[] types; synchronized (PsiLock.LOCK) { types = (PsiClassType[])(myRepositoryTypesRef == null ? null : myRepositoryTypesRef.get()); if (types == null) { String[] refTexts; ASTNode treeElement = getTreeElement(); final PsiElementFactory factory = getManager().getElementFactory(); long repositoryId = getRepositoryId(); if (treeElement == null && repositoryId > 0) { RepositoryManager repositoryManager = getRepositoryManager(); if (myElementType == ElementType.EXTENDS_LIST) { refTexts = repositoryManager.getClassView().getExtendsList(repositoryId); } else if (myElementType == ElementType.IMPLEMENTS_LIST) { refTexts = repositoryManager.getClassView().getImplementsList(repositoryId); } else if (myElementType == ElementType.THROWS_LIST) { refTexts = repositoryManager.getMethodView().getThrowsList(repositoryId); } else { LOG.error("Unknown element type:" + myElementType); return null; } types = new PsiClassType[refTexts.length]; for (int i = 0; i < types.length; i++) { final PsiElement parent = getParent(); PsiElement context = this; if (parent instanceof PsiClass) { context = ((PsiClassImpl)parent).calcBasesResolveContext(PsiNameHelper.getShortClassName(refTexts[i]), this); } final FileElement holderElement = new DummyHolder(myManager, context).getTreeElement(); final PsiJavaCodeReferenceElementImpl ref = (PsiJavaCodeReferenceElementImpl)Parsing.parseJavaCodeReferenceText(myManager, refTexts[i].toCharArray(), holderElement.getCharTable()); TreeUtil.addChildren(holderElement, ref); ref.setKindWhenDummy(PsiJavaCodeReferenceElementImpl.CLASS_NAME_KIND); types[i] = factory.createType(ref); } } else { final PsiJavaCodeReferenceElement[] refs = getReferenceElements(); types = new PsiClassType[refs.length]; for (int i = 0; i < types.length; i++) { types[i] = factory.createType(refs[i]); } } myRepositoryTypesRef = myManager.isBatchFilesProcessingMode() ? new PatchedWeakReference(types) : (Reference)new PatchedSoftReference(types); } ; } return types; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3c5b3ab6e023e12e1398070fa3f0ea8b04e1ce2a/PsiReferenceListImpl.java/clean/source/com/intellij/psi/impl/source/PsiReferenceListImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 453, 7722, 18328, 8526, 13223, 72, 2016, 1435, 288, 565, 453, 7722, 18328, 8526, 1953, 282, 3852, 261, 52, 7722, 2531, 18, 6589, 13, 288, 1377, 1953, 273, 261, 52, 7722, 18328, 63, 5717, 12, 4811, 3305, 2016, 1957, 422, 446, 692, 446, 294, 3399, 3305, 2016, 1957, 18, 588, 10756, 377, 309, 261, 2352, 422, 446, 13, 288, 3639, 514, 8526, 1278, 30114, 4202, 9183, 907, 2151, 1046, 273, 15867, 1046, 1435, 4202, 727, 453, 7722, 1046, 1733, 3272, 273, 14154, 7675, 21336, 1733, 1435, 4202, 1525, 3352, 548, 273, 8261, 548, 1435, 4202, 309, 261, 3413, 1046, 422, 446, 597, 3352, 548, 405, 374, 13, 288, 1850, 6281, 1318, 3352, 1318, 273, 8261, 1318, 1435, 540, 309, 261, 4811, 17481, 422, 3010, 559, 18, 4142, 1157, 3948, 67, 7085, 13, 288, 5411, 1278, 30114, 273, 3352, 1318, 18, 588, 797, 1767, 7675, 588, 19581, 682, 12, 9071, 548, 13, 540, 289, 1850, 469, 309, 261, 4811, 17481, 422, 3010, 559, 18, 9883, 7618, 55, 67, 7085, 13, 288, 5411, 1278, 30114, 273, 3352, 1318, 18, 588, 797, 1767, 7675, 588, 17516, 682, 12, 9071, 548, 13, 540, 289, 1850, 469, 309, 261, 4811, 17481, 422, 3010, 559, 18, 2455, 28402, 67, 7085, 13, 288, 5411, 1278, 30114, 273, 3352, 1318, 18, 588, 1305, 1767, 7675, 588, 21845, 682, 12, 9071, 548, 13, 540, 289, 1850, 469, 288, 5411, 2018, 18, 1636, 2932, 4874, 930, 618, 2773, 397, 3399, 17481, 13, 6647, 327, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 453, 7722, 18328, 8526, 13223, 72, 2016, 1435, 288, 565, 453, 7722, 18328, 8526, 1953, 282, 3852, 261, 52, 7722, 2531, 18, 6589, 13, 288, 1377, 1953, 273, 261, 52, 7722, 18328, 63, 5717, 12, 4811, 3305, 2016, 1957, 422, 446, 692, 446, 294, 3399, 3305, 2016, 1957, 18, 588, 10756, 377, 309, 261, 2352, 422, 446, 13, 288, 3639, 514, 8526, 1278, 30114, 4202, 9183, 907, 2151, 1046, 273, 15867, 1046, 1435, 4202, 727, 453, 7722, 1046, 1733, 3272, 273, 14154, 7675, 21336, 1733, 1435, 4202, 1525, 3352, 548, 273, 8261, 548, 1435, 4202, 309, 261, 3413, 1046, 422, 446, 597, 3352, 548, 405, 374, 13, 288, 1850, 6281, 1318, 3352, 1318, 273, 8261, 1318, 1435, 2 ]
log().debug("YYY: visiting at aliased = " + aliased);
log().debug("visiting at aliased = " + aliased);
public void visit(CollectionSetVisitor visitor) { visitor.visitGroup(this); log().debug("YYY: Entering visit"); for (Iterator iter = getAttributes().iterator(); iter.hasNext();) { Attribute attr = (Attribute) iter.next(); AliasedAttribute aliased = new AliasedAttribute(getResource(), attr); log().debug("YYY: visiting at aliased = " + aliased); aliased.visit(visitor); } visitor.completeGroup(this); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/d8a87b4b90c4c30f213c658d5a164bd3208edf5c/AliasedGroup.java/clean/opennms-services/src/main/java/org/opennms/netmgt/collectd/AliasedGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 2532, 694, 7413, 8000, 13, 288, 202, 202, 3516, 1811, 18, 11658, 1114, 12, 2211, 1769, 9506, 202, 1330, 7675, 4148, 2932, 25167, 30, 15439, 310, 3757, 8863, 202, 202, 1884, 261, 3198, 1400, 273, 10183, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 1082, 565, 3601, 1604, 273, 261, 1499, 13, 1400, 18, 4285, 5621, 1082, 565, 432, 29809, 1499, 19218, 273, 394, 432, 29809, 1499, 12, 588, 1420, 9334, 1604, 1769, 1082, 565, 613, 7675, 4148, 2932, 25167, 30, 3757, 310, 622, 19218, 225, 273, 315, 397, 19218, 1769, 1082, 565, 19218, 18, 11658, 12, 3516, 1811, 1769, 202, 202, 97, 9506, 202, 3516, 1811, 18, 6226, 1114, 12, 2211, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 2532, 694, 7413, 8000, 13, 288, 202, 202, 3516, 1811, 18, 11658, 1114, 12, 2211, 1769, 9506, 202, 1330, 7675, 4148, 2932, 25167, 30, 15439, 310, 3757, 8863, 202, 202, 1884, 261, 3198, 1400, 273, 10183, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 1082, 565, 3601, 1604, 273, 261, 1499, 13, 1400, 18, 4285, 5621, 1082, 565, 432, 29809, 1499, 19218, 273, 394, 432, 29809, 1499, 12, 588, 1420, 9334, 1604, 1769, 1082, 565, 613, 7675, 4148, 2932, 25167, 30, 3757, 310, 622, 19218, 225, 273, 315, 397, 19218, 1769, 1082, 565, 19218, 18, 11658, 12, 3516, 1811, 1769, 202, 202, 97, 9506, 202, 3516, 1811, 18, 6226, 1114, 12, 2 ]
debug = Messages.getString("DimensionLookup.Debug.FirstEnd");
debug = "first: end";
private synchronized void lookupValues(Row row) throws KettleException { Row lu = new Row(); Row add; Value technicalKey; Value val_version; Value val_date = null; Value val_datfrom = null; Value val_datto = null; debug = "Start of lookupValues()"; //$NON-NLS-1$ if (first) { debug = "init of lookupValues()"; //$NON-NLS-1$ first=false; determineTechKeyCreation(); if (getCopy()==0) data.db.checkDimZero(meta.getTableName(), meta.getKeyField(), meta.getVersionField(), meta.isAutoIncrement()); debug = "first: setDimLookup()"; //$NON-NLS-1$ data.db.setDimLookup(meta.getTableName(), meta.getKeyLookup(), meta.getKeyField(), meta.getVersionField(), meta.getFieldLookup(), meta.getFieldStream(), meta.getDateFrom(), meta.getDateTo() ); // Lookup values debug = "first: lookup key nrs"; //$NON-NLS-1$ data.keynrs = new int[meta.getKeyStream().length]; for (int i=0;i<meta.getKeyStream().length;i++) { //logDetailed("Lookup values key["+i+"] --> "+key[i]+", row==null?"+(row==null)); data.keynrs[i]=row.searchValueIndex(meta.getKeyStream()[i]); if (data.keynrs[i]<0) // couldn't find field! { throw new KettleStepException(Messages.getString("DimensionLookup.Exception.KeyFieldNotFound",meta.getKeyStream()[i])); //$NON-NLS-1$ //$NON-NLS-2$ } } debug = Messages.getString("DimensionLookup.Debug.FirstLookupValues"); //$NON-NLS-1$ // Return values if (meta.isUpdate()) { data.fieldnrs = new int[meta.getFieldStream().length]; for (int i=0;meta.getFieldStream()!=null && i<meta.getFieldStream().length;i++) { data.fieldnrs[i]=row.searchValueIndex(meta.getFieldStream()[i]); } } if (meta.getDateField()!=null && meta.getDateField().length()>0) { data.datefieldnr = row.searchValueIndex(meta.getDateField()); } else { data.datefieldnr=-1; } debug = Messages.getString("DimensionLookup.Debug.FirstFieldNotFound"); //$NON-NLS-1$ meta.setNotFound( new Value(meta.getKeyField(), (double)meta.getDatabaseMeta().getNotFoundTK(meta.isAutoIncrement())) ); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) meta.getNotFound().setName(meta.getKeyRename()); if (meta.getDateField()!=null && data.datefieldnr>=0) { data.val_datnow = row.getValue(data.datefieldnr); } else { Calendar cal=Calendar.getInstance(); data.val_datnow = new Value("MIN", new Date(cal.getTimeInMillis())); // System date... //$NON-NLS-1$ } debug = Messages.getString("DimensionLookup.Debug.FirstEnd"); //$NON-NLS-1$ } if (meta.getDateField()!=null && data.datefieldnr>=0) { data.val_datnow = row.getValue(data.datefieldnr); } for (int i=0;i<meta.getKeyStream().length;i++) { try { lu.addValue( row.getValue(data.keynrs[i]) ); } catch(Exception e) { throw new KettleStepException(Messages.getString("DimensionLookup.Exception.ErrorDetectedInGettingKey",i+"",data.keynrs[i]+"/"+row.size(),row.toString())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } } if (data.datefieldnr>=0) val_date = row.getValue(data.datefieldnr); else val_date = data.val_datnow; if (log.isDebug()) logDebug(Messages.getString("DimensionLookup.Log.LookupRow")+lu.toString()+" val_date="+val_date.toString()); //$NON-NLS-1$ //$NON-NLS-2$ debug = "setDimValues()"; //$NON-NLS-1$ data.db.setDimValues(lu, val_date ); debug = "getLookup()"; //$NON-NLS-1$ add=data.db.getLookup(); /* Handle "update = false" first for performance reasons */ if (!meta.isUpdate()) { debug = Messages.getString("DimensionLookup.Debug.Lookup"); //$NON-NLS-1$ if (add==null) { debug = Messages.getString("DimensionLookup.Debug.NothingFound"); //$NON-NLS-1$ add=new Row(); add.addValue(meta.getNotFound()); Value v; for (int i=0;i<meta.getFieldStream().length;i++) { debug = Messages.getString("DimensionLookup.Debug.LookupFieldstream")+i; //$NON-NLS-1$ if (meta.getFieldStream()[i]!=null) { debug = Messages.getString("DimensionLookup.Debug.LookupNewvalue")+i; //$NON-NLS-1$ if (meta.getFieldStream()[i]!=null) // Rename the field? v=new Value(meta.getFieldStream()[i], meta.getFieldUpdate()[i]); else v=new Value(meta.getFieldLookup()[i], meta.getFieldUpdate()[i]); // Nope, take the default name v.setNull(); add.addValue(v); } } } else { // We found the return values in row "add". // Throw away the version nr... add.removeValue(1); // Rename the key field if needed. Do it directly in the row... if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) add.getValue(0).setName(meta.getKeyRename()); } } else // Insert - update algorithm for slowly changing dimensions { if (add==null) // The dimension entry was not found, we need to add it! { debug = Messages.getString("DimensionLookup.Debug.Insert"); //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.NoDimensionEntryFound")+lu+")"); //$NON-NLS-1$ //$NON-NLS-2$ //logDetailed("Entry not found: add value!"); // Date range: ]-oo,+oo[ val_datfrom = new Value("MIN", meta.getMinDate()); //$NON-NLS-1$ val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ val_version = new Value(meta.getVersionField(), 1L); // Versions start at 1. // get a new value from the sequence choosen. boolean autoinc=false; technicalKey = null; switch ( getTechKeyCreation() ) { case CREATION_METHOD_TABLEMAX: // What's the next value for the technical key? technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... data.db.getNextValue(getTransMeta().getCounters(), meta.getTableName(), technicalKey); break; case CREATION_METHOD_AUTOINC: autoinc=true; technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... break; case CREATION_METHOD_SEQUENCE: technicalKey=data.db.getNextSequenceValue(meta.getSequenceName(), meta.getKeyField()); if (technicalKey!=null && log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.FoundNextSequence")+technicalKey.toString()); //$NON-NLS-1$ break; } /* * INSERT INTO table(version, datefrom, dateto, fieldlookup) * VALUES(val_version, val_datfrom, val_datto, row.fieldnrs) * ; */ debug = Messages.getString("DimensionLookup.Debug.InsertRow"); //$NON-NLS-1$ data.db.dimInsert(row, meta.getTableName(), true, autoinc?null:meta.getKeyField(), // In case of auto increment, don't insert the key, let the database do it. autoinc, technicalKey, meta.getVersionField(), val_version, meta.getDateFrom(), val_datfrom, meta.getDateTo(), val_datto, meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesOutput++; add=new Row(); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) technicalKey.setName(meta.getKeyRename()); add.addValue(technicalKey); if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.AddedDimensionEntry")+add.toString()); //$NON-NLS-1$ } else // The entry was found: do we need to insert, update or both? { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.DimensionEntryFound")+add); //$NON-NLS-1$ debug = Messages.getString("DimensionLookup.Debug.Update"); //$NON-NLS-1$ // What's the key? The first value of the return row technicalKey = add.getValue(0); val_version = add.getValue(1); // Date range: ]-oo,+oo[ val_datfrom = new Value("MIN", meta.getMinDate()); //$NON-NLS-1$ val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ // The other values, we compare with int cmp; // If everything is the same: don't do anything // If one of the fields is different: insert or update // If all changed fields have update = Y, update // If one of the changed fields has update = N, insert boolean insert=false; boolean identical=true; boolean punch=false; Value v1, v2; for (int i=0;i<meta.getFieldStream().length;i++) { v1 = row.getValue(data.fieldnrs[i]); v2 = add.getValue(i+2); cmp = v1.compare(v2); // Not the same and update = 'N' --> insert if (cmp!=0) identical=false; // Field flagged for insert: insert if (cmp!=0 && meta.getFieldUpdate()[i]==DimensionLookupMeta.TYPE_UPDATE_DIM_INSERT) { insert=true; } // Field flagged for punchthrough if (cmp!=0 && meta.getFieldUpdate()[i]==DimensionLookupMeta.TYPE_UPDATE_DIM_PUNCHTHROUGH) { punch=true; } logRowlevel(Messages.getString("DimensionLookup.Log.ComparingValues",""+v1,""+v2,String.valueOf(cmp),String.valueOf(identical),String.valueOf(insert),String.valueOf(punch))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ } if (!insert) // Just an update of row at key = val_key { if (!identical) { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.UpdateRowWithValues")+row); //$NON-NLS-1$ /* * UPDATE d_customer * SET fieldlookup[] = row.getValue(fieldnrs) * WHERE returnkey = dimkey */ debug = Messages.getString("DimensionLookup.Debug.UpdateRow"); //$NON-NLS-1$ data.db.dimUpdate(row, meta.getTableName(), meta.getFieldLookup(), data.fieldnrs, meta.getKeyField(), technicalKey); linesUpdated++; } else { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.SkipLine")); //$NON-NLS-1$ // Don't do anything, everything is file in de dimension. linesSkipped++; } } else { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.InsertNewVersion")+technicalKey.toString()); //$NON-NLS-1$ val_datfrom = data.val_datnow; val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ boolean autoinc=false; // First try to use an AUTOINCREMENT field if (meta.getDatabaseMeta().supportsAutoinc() && meta.isAutoIncrement()) { autoinc=true; technicalKey=new Value(meta.getKeyField(), 0.0); // value to accept new key... } else // Try to get the value by looking at a SEQUENCE (oracle mostly) if (meta.getDatabaseMeta().supportsSequences() && meta.getSequenceName()!=null && meta.getSequenceName().length()>0) { technicalKey=data.db.getNextSequenceValue(meta.getSequenceName(), meta.getKeyField()); if (technicalKey!=null && log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.FoundNextSequence2")+technicalKey.toString()); //$NON-NLS-1$ } else // Use our own sequence here... { // What's the next value for the technical key? technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... data.db.getNextValue(getTransMeta().getCounters(), meta.getTableName(), technicalKey); } data.db.dimInsert( row, meta.getTableName(), false, meta.getKeyField(), autoinc, technicalKey, meta.getVersionField(), val_version, meta.getDateFrom(), val_datfrom, meta.getDateTo(), val_datto, meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesOutput++; } if (punch) // On of the fields we have to punch through has changed! { /* * This means we have to update all versions: * * UPDATE dim SET punchf1 = val1, punchf2 = val2, ... * WHERE fieldlookup[] = ? * ; * * --> update ALL versions in the dimension table. */ data.db.dimPunchThrough( row, meta.getTableName(), meta.getFieldUpdate(), meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesUpdated++; } add=new Row(); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) technicalKey.setName(meta.getKeyRename()); add.addValue(technicalKey); if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.TechnicalKey")+technicalKey); //$NON-NLS-1$ } } debug = Messages.getString("DimensionLookup.Debug.AddValuesToRow"); //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.AddValuesToRow")+add); //$NON-NLS-1$ for (int i=0;i<add.size();i++) { row.addValue( add.getValue(i) ); } debug = Messages.getString("DimensionLookup.Debug.GetDateFromDateField")+data.datefieldnr; //$NON-NLS-1$ // // Finaly, check the date range! Value date; if (data.datefieldnr>=0) date = row.getValue(data.datefieldnr); else date = new Value("date", new Date()); // system date //$NON-NLS-1$ debug = "check min date (min_date==null? "+(data.min_date==null)+", date==null? "+(date==null)+"), datefieldnr="+data.datefieldnr; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if (data.min_date.compare(date)>0) data.min_date.setValue( date.getDate() ); debug = Messages.getString("DimensionLookup.Debug.CheckMaxDate"); //$NON-NLS-1$ if (data.max_date.compare(date)<0) data.max_date.setValue( date.getDate() ); debug = "end of lookupValues()"; //$NON-NLS-1$ }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/76197a64ed9ff8c9246b3fe10eb0db66194e2d06/DimensionLookup.java/clean/kettle/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 3689, 1972, 12, 1999, 1027, 13, 202, 202, 15069, 1475, 278, 5929, 503, 202, 95, 202, 202, 1999, 20072, 273, 394, 6556, 5621, 202, 202, 1999, 527, 31, 9506, 202, 620, 17734, 1706, 653, 31, 202, 202, 620, 1244, 67, 1589, 31, 202, 202, 620, 1244, 67, 712, 565, 273, 446, 31, 202, 202, 620, 1244, 67, 3404, 2080, 273, 446, 31, 202, 202, 620, 1244, 67, 3404, 869, 282, 273, 446, 31, 9506, 202, 4148, 273, 315, 1685, 434, 3689, 1972, 10031, 31, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 430, 261, 3645, 13, 202, 202, 95, 1082, 202, 4148, 273, 315, 2738, 434, 3689, 1972, 10031, 31, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 6862, 202, 3645, 33, 5743, 31, 1082, 202, 24661, 56, 8987, 653, 9906, 5621, 1082, 202, 430, 261, 588, 2951, 1435, 631, 20, 13, 501, 18, 1966, 18, 1893, 5225, 7170, 12, 3901, 18, 588, 7147, 9334, 2191, 18, 588, 653, 974, 9334, 2191, 18, 588, 1444, 974, 9334, 2191, 18, 291, 4965, 10798, 10663, 25083, 202, 4148, 273, 315, 3645, 30, 444, 5225, 6609, 10031, 31, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 892, 18, 1966, 18, 542, 5225, 6609, 12, 3901, 18, 588, 7147, 9334, 17322, 2191, 18, 588, 653, 6609, 9334, 4405, 1171, 2191, 18, 588, 653, 974, 9334, 4405, 1171, 2191, 18, 588, 1444, 974, 9334, 4405, 1171, 2191, 18, 588, 974, 6609, 9334, 21394, 2191, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 3689, 1972, 12, 1999, 1027, 13, 202, 202, 15069, 1475, 278, 5929, 503, 202, 95, 202, 202, 1999, 20072, 273, 394, 6556, 5621, 202, 202, 1999, 527, 31, 9506, 202, 620, 17734, 1706, 653, 31, 202, 202, 620, 1244, 67, 1589, 31, 202, 202, 620, 1244, 67, 712, 565, 273, 446, 31, 202, 202, 620, 1244, 67, 3404, 2080, 273, 446, 31, 202, 202, 620, 1244, 67, 3404, 869, 282, 273, 446, 31, 9506, 202, 4148, 273, 315, 1685, 434, 3689, 1972, 10031, 31, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 430, 261, 3645, 13, 202, 202, 95, 1082, 202, 4148, 273, 315, 2738, 434, 3689, 1972, 10031, 31, 4329, 3993, 17, 2 ]
CreateCoordinatesForFileDialog frame = new CreateCoordinatesForFileDialog(chemModel);
CreateCoordinatesForFileDialog frame = new CreateCoordinatesForFileDialog((ChemModel)chemModel);
public void showChemModel(ChemModel chemModel) { // check for bonds if (ChemModelManipulator.getAllInOneContainer(chemModel).getBondCount() == 0) { String error = "Model does not have bonds. Cannot depict contents."; logger.warn(error); JOptionPane.showMessageDialog(this, error); return; } // check for coordinates if (!(GeometryTools.has2DCoordinates(ChemModelManipulator.getAllInOneContainer(chemModel)))) { String error = "Model does not have coordinates. Will ask for coord generation."; logger.warn(error); CreateCoordinatesForFileDialog frame = new CreateCoordinatesForFileDialog(chemModel); frame.pack(); frame.show(); frame.moveToFront(); return; } setJChemPaintModel(new JChemPaintModel(chemModel)); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/c4db5e797f99f4c93f7d431c899e4e7cffe22bb4/JChemPaintPanel.java/clean/src/org/openscience/cdk/applications/jchempaint/JChemPaintPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 20200, 1488, 12, 20200, 1488, 19028, 1488, 13, 288, 202, 202, 759, 866, 364, 15692, 202, 202, 430, 261, 20200, 1488, 27587, 18, 588, 1595, 382, 3335, 2170, 12, 1036, 1488, 2934, 588, 9807, 1380, 1435, 422, 374, 13, 288, 1082, 202, 780, 555, 273, 315, 1488, 1552, 486, 1240, 15692, 18, 14143, 5993, 933, 2939, 1199, 31, 1082, 202, 4901, 18, 8935, 12, 1636, 1769, 1082, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 555, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 866, 364, 5513, 202, 202, 430, 16051, 12, 9823, 10348, 18, 5332, 22, 40, 13431, 12, 20200, 1488, 27587, 18, 588, 1595, 382, 3335, 2170, 12, 1036, 1488, 3719, 3719, 288, 1082, 202, 780, 555, 273, 315, 1488, 1552, 486, 1240, 5513, 18, 9980, 6827, 364, 2745, 9377, 1199, 31, 1082, 202, 4901, 18, 8935, 12, 1636, 1769, 1082, 202, 1684, 13431, 1290, 812, 6353, 2623, 273, 394, 1788, 13431, 1290, 812, 6353, 12, 1036, 1488, 1769, 1082, 202, 3789, 18, 2920, 5621, 1082, 202, 3789, 18, 4500, 5621, 1082, 202, 3789, 18, 8501, 774, 9580, 5621, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 542, 46, 20200, 12699, 1488, 12, 2704, 804, 20200, 12699, 1488, 12, 1036, 1488, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 20200, 1488, 12, 20200, 1488, 19028, 1488, 13, 288, 202, 202, 759, 866, 364, 15692, 202, 202, 430, 261, 20200, 1488, 27587, 18, 588, 1595, 382, 3335, 2170, 12, 1036, 1488, 2934, 588, 9807, 1380, 1435, 422, 374, 13, 288, 1082, 202, 780, 555, 273, 315, 1488, 1552, 486, 1240, 15692, 18, 14143, 5993, 933, 2939, 1199, 31, 1082, 202, 4901, 18, 8935, 12, 1636, 1769, 1082, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 555, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 866, 364, 5513, 202, 202, 430, 16051, 12, 9823, 10348, 18, 5332, 22, 40, 13431, 12, 20200, 1488, 27587, 18, 588, 1595, 382, 3335, 2 ]
public static RubyModule createMathModule(Ruby ruby) { RubyModule mathModule = new MathDefinition(ruby).getModule();
public static RubyModule createMathModule(Ruby runtime) { RubyModule result = runtime.defineModule("Math"); CallbackFactory callbackFactory = runtime.callbackFactory(); result.defineConstant("E", RubyFloat.newFloat(runtime, Math.E)); result.defineConstant("PI", RubyFloat.newFloat(runtime, Math.PI));
public static RubyModule createMathModule(Ruby ruby) { RubyModule mathModule = new MathDefinition(ruby).getModule(); mathModule.defineConstant("E", RubyFloat.newFloat(ruby, Math.E)); mathModule.defineConstant("PI", RubyFloat.newFloat(ruby, Math.PI)); return mathModule; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyMath.java/buggy/src/org/jruby/RubyMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 752, 10477, 3120, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 3120, 4233, 3120, 273, 394, 2361, 1852, 12, 27768, 2934, 588, 3120, 5621, 3639, 4233, 3120, 18, 11255, 6902, 2932, 41, 3113, 19817, 4723, 18, 2704, 4723, 12, 27768, 16, 2361, 18, 41, 10019, 3639, 4233, 3120, 18, 11255, 6902, 2932, 1102, 3113, 19817, 4723, 18, 2704, 4723, 12, 27768, 16, 2361, 18, 1102, 10019, 3639, 327, 4233, 3120, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 752, 10477, 3120, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 3120, 4233, 3120, 273, 394, 2361, 1852, 12, 27768, 2934, 588, 3120, 5621, 3639, 4233, 3120, 18, 11255, 6902, 2932, 41, 3113, 19817, 4723, 18, 2704, 4723, 12, 27768, 16, 2361, 18, 41, 10019, 3639, 4233, 3120, 18, 11255, 6902, 2932, 1102, 3113, 19817, 4723, 18, 2704, 4723, 12, 27768, 16, 2361, 18, 1102, 10019, 3639, 327, 4233, 3120, 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 ]
break; case CodePoint.RDBNAM: String dbname = parseRDBNAM(); Database d = session.getDatabase(dbname); if (d == null) addDatabase(dbname); else { d.reset(); database = d; } break; case CodePoint.SECTKN: publicKeyIn = reader.readBytes(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } if (securityMechanism == 0) missingCodePoint(CodePoint.SECMEC);
if (securityMechanism == 0) missingCodePoint(CodePoint.SECMEC);
private int parseACCSEC() throws DRDAProtocolException { int securityCheckCode = 0; int securityMechanism = 0; byte [] publicKeyIn = null; reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch(codePoint) { //optional case CodePoint.SECMGRNM: // this is defined to be 0 length if (reader.getDdmLength() != 0) badObjectLength(CodePoint.SECMGRNM); break; //required case CodePoint.SECMEC: checkLength(CodePoint.SECMEC, 2); securityMechanism = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("Security mechanism = " + securityMechanism); // if Property.DRDA_PROP_SECURITYMECHANISM has been set, then // network server only accepts connections which use that // security mechanism. No other types of connections // are accepted. // Make check to see if this property has been set. // if set, and if the client requested security mechanism // is not the same, then return a security check code // that the server does not support/allow this security // mechanism if ( (server.getSecurityMechanism() != NetworkServerControlImpl.INVALID_OR_NOTSET_SECURITYMECHANISM) && securityMechanism != server.getSecurityMechanism()) securityCheckCode = CodePoint.SECCHKCD_NOTSUPPORTED; else { // for plain text userid,password USRIDPWD, and USRIDONL // no need of decryptionManager if (securityMechanism != CodePoint.SECMEC_USRIDPWD && securityMechanism != CodePoint.SECMEC_USRIDONL) { //this is the only other one we understand if (securityMechanism != CodePoint.SECMEC_EUSRIDPWD) securityCheckCode = CodePoint.SECCHKCD_NOTSUPPORTED; else { try { if (decryptionManager == null) decryptionManager = new DecryptionManager(); myPublicKey = decryptionManager.obtainPublicKey(); } catch (SQLException e) { println2Log(null, session.drdaID, e.getMessage()); // Local security service non-retryable error. securityCheckCode = CodePoint.SECCHKCD_0A; } } } } break; //optional (currently required for Cloudscape - may need to revisit) case CodePoint.RDBNAM: String dbname = parseRDBNAM(); Database d = session.getDatabase(dbname); if (d == null) addDatabase(dbname); else { // reset database for connection re-use d.reset(); database = d; } break; //optional - depending on security Mechanism case CodePoint.SECTKN: publicKeyIn = reader.readBytes(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } // check for required CodePoint's if (securityMechanism == 0) missingCodePoint(CodePoint.SECMEC); // RESOLVE - when we look further into security we might want to // handle this part of the protocol at the session level without // requiring a database for when authentication is used but there // is no database level security if (database == null) missingCodePoint(CodePoint.RDBNAM); database.securityMechanism = securityMechanism; database.publicKeyIn = publicKeyIn; // need security token if (securityCheckCode == 0 && database.securityMechanism == CodePoint.SECMEC_EUSRIDPWD && database.publicKeyIn == null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; // shouldn't have security token if (securityCheckCode == 0 && (database.securityMechanism == CodePoint.SECMEC_USRIDPWD || database.securityMechanism == CodePoint.SECMEC_USRIDONL) && database.publicKeyIn != null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; if (SanityManager.DEBUG) trace("** ACCSECRD securityCheckCode is: "+securityCheckCode); // If the security check was successful set the session state to // security accesseed. Otherwise go back to attributes exchanged so we // require another ACCSEC if (securityCheckCode == 0) session.setState(session.SECACC); else session.setState(session.ATTEXC); return securityCheckCode; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 31414, 11944, 1435, 1216, 225, 16801, 9793, 5752, 503, 288, 202, 474, 4373, 1564, 1085, 273, 374, 31, 202, 474, 4373, 31546, 273, 374, 31, 202, 7229, 5378, 12085, 382, 273, 446, 31, 202, 10530, 18, 3355, 2532, 5621, 202, 474, 18614, 273, 2949, 18, 588, 31536, 5621, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 288, 202, 565, 1620, 12, 710, 2148, 13, 288, 202, 202, 759, 10444, 202, 565, 648, 3356, 2148, 18, 1090, 9611, 6997, 50, 49, 30, 202, 202, 759, 333, 353, 2553, 358, 506, 374, 769, 202, 202, 430, 261, 10530, 18, 588, 40, 10956, 1782, 1435, 480, 374, 13, 1082, 565, 5570, 921, 1782, 12, 31536, 18, 1090, 9611, 6997, 50, 49, 1769, 202, 202, 8820, 31, 202, 202, 759, 4718, 202, 565, 648, 3356, 2148, 18, 11944, 958, 39, 30, 202, 202, 1893, 1782, 12, 31536, 18, 11944, 958, 39, 16, 576, 1769, 202, 202, 7462, 31546, 273, 2949, 18, 896, 3906, 4897, 5621, 202, 202, 430, 261, 55, 10417, 1318, 18, 9394, 13, 1082, 565, 2606, 2932, 4368, 12860, 273, 315, 397, 4373, 31546, 1769, 5397, 202, 202, 759, 309, 4276, 18, 6331, 9793, 67, 15811, 67, 29209, 958, 1792, 1258, 5127, 49, 711, 2118, 444, 16, 1508, 202, 202, 759, 2483, 1438, 1338, 8104, 5921, 1492, 999, 716, 202, 202, 759, 4373, 12860, 18, 2631, 1308, 1953, 434, 5921, 3196, 202, 759, 854, 8494, 18, 202, 202, 759, 4344, 866, 358, 2621, 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, 377, 3238, 509, 1109, 31414, 11944, 1435, 1216, 225, 16801, 9793, 5752, 503, 288, 202, 474, 4373, 1564, 1085, 273, 374, 31, 202, 474, 4373, 31546, 273, 374, 31, 202, 7229, 5378, 12085, 382, 273, 446, 31, 202, 10530, 18, 3355, 2532, 5621, 202, 474, 18614, 273, 2949, 18, 588, 31536, 5621, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 288, 202, 565, 1620, 12, 710, 2148, 13, 288, 202, 202, 759, 10444, 202, 565, 648, 3356, 2148, 18, 1090, 9611, 6997, 50, 49, 30, 202, 202, 759, 333, 353, 2553, 358, 506, 374, 769, 202, 202, 430, 261, 10530, 18, 588, 40, 10956, 1782, 1435, 480, 374, 13, 1082, 565, 5570, 921, 1782, 12, 31536, 18, 1090, 2 ]
floatingWindow = null;
closeAndClearFloatingWindow();
public boolean shouldRun() { if (AnimationManager.getInstance().isAnimated()) return true; synchronized(windowLock){ //If there is no window than do not run floatingWindow = null; return false; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dade2446e70b63c9d17c75514515f24dd4ffdb49/AnimationItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 1410, 1997, 1435, 288, 9506, 202, 430, 261, 10816, 1318, 18, 588, 1442, 7675, 291, 979, 17275, 10756, 6862, 202, 2463, 638, 31, 9506, 202, 22043, 12, 5668, 2531, 15329, 6862, 202, 759, 2047, 1915, 353, 1158, 2742, 2353, 741, 486, 1086, 6862, 202, 5659, 310, 3829, 273, 446, 31, 6862, 202, 2463, 629, 31, 9506, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 1410, 1997, 1435, 288, 9506, 202, 430, 261, 10816, 1318, 18, 588, 1442, 7675, 291, 979, 17275, 10756, 6862, 202, 2463, 638, 31, 9506, 202, 22043, 12, 5668, 2531, 15329, 6862, 202, 759, 2047, 1915, 353, 1158, 2742, 2353, 741, 486, 1086, 6862, 202, 5659, 310, 3829, 273, 446, 31, 6862, 202, 2463, 629, 31, 9506, 202, 97, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); }
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs();
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return self.setInstanceVariable(variableName, fargs[0]); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 15908, 10340, 921, 1836, 12, 7937, 10340, 921, 365, 16, 15908, 10340, 921, 8526, 833, 13, 288, 6862, 202, 7937, 10340, 921, 8526, 284, 1968, 273, 3099, 18, 588, 3935, 1042, 7675, 588, 3219, 2615, 5621, 6862, 6862, 3639, 309, 261, 74, 1968, 18, 2469, 480, 404, 13, 288, 9506, 5411, 604, 3099, 18, 2704, 1379, 668, 2932, 21530, 468, 434, 1775, 2932, 397, 284, 1968, 18, 2469, 397, 315, 1884, 404, 2225, 1769, 9506, 3639, 289, 9506, 3639, 327, 365, 18, 542, 1442, 3092, 12, 6105, 461, 16, 284, 1968, 63, 20, 19226, 7734, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 15908, 10340, 921, 1836, 12, 7937, 10340, 921, 365, 16, 15908, 10340, 921, 8526, 833, 13, 288, 6862, 202, 7937, 10340, 921, 8526, 284, 1968, 273, 3099, 18, 588, 3935, 1042, 7675, 588, 3219, 2615, 5621, 6862, 6862, 3639, 309, 261, 74, 1968, 18, 2469, 480, 404, 13, 288, 9506, 5411, 604, 3099, 18, 2704, 1379, 668, 2932, 21530, 468, 434, 1775, 2932, 397, 284, 1968, 18, 2469, 397, 315, 1884, 404, 2225, 1769, 9506, 3639, 289, 9506, 3639, 327, 365, 18, 542, 1442, 3092, 12, 6105, 461, 16, 284, 1968, 63, 20, 19226, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
project.open(null);
try { project.open(null); } catch (CoreException e) { fail("Failed on project open: " + e.getLocalizedMessage()); }
public void testProject() throws CoreException, BuildException { // Create new project IProject project = createProject(projectName); // There should not be any targets defined for this project yet assertEquals(0, ManagedBuildManager.getTargets(project).length); // Find the base target definition ITarget targetDef = ManagedBuildManager.getTarget(project, "test.root"); assertNotNull(targetDef); // Create the target for our project that builds a dummy executable ITarget newTarget = ManagedBuildManager.createTarget(project, targetDef); assertEquals(newTarget.getName(), targetDef.getName()); assertFalse(newTarget.equals(targetDef)); String buildArtifactName = projectName + "." + newTarget.getDefaultExtension(); newTarget.setBuildArtifact(buildArtifactName); ITarget[] targets = ManagedBuildManager.getTargets(project); assertEquals(1, targets.length); ITarget target = targets[0]; assertEquals(target, newTarget); assertFalse(target.equals(targetDef)); // Copy over the configs IConfiguration defaultConfig = null; IConfiguration[] configs = targetDef.getConfigurations(); for (int i = 0; i < configs.length; ++i) { // Make the first configuration the default if (i == 0) { defaultConfig = target.createConfiguration(configs[i], target.getId() + "." + i); } else { target.createConfiguration(configs[i], target.getId() + "." + i); } } ManagedBuildManager.setDefaultConfiguration(project, defaultConfig); checkRootTarget(target, "x"); // Override the "String Option in Category" option value configs = target.getConfigurations(); ITool[] tools = configs[0].getTools(); IOptionCategory topCategory = tools[0].getTopOptionCategory(); IOptionCategory[] categories = topCategory.getChildCategories(); IOption[] options = categories[0].getOptions(configs[0]); configs[0].setOption(options[0], "z"); options = categories[0].getOptions(null); assertEquals("x", options[0].getStringValue()); options = categories[0].getOptions(configs[0]); assertEquals("z", options[0].getStringValue()); // Save, close, reopen and test again ManagedBuildManager.saveBuildInfo(project); project.close(null); ManagedBuildManager.removeBuildInfo(project); project.open(null); // Test that the default config was remembered IResourceBuildInfo info = ManagedBuildManager.getBuildInfo(project); assertEquals(defaultConfig.getId(), info.getDefaultConfiguration(target).getId()); // Get the targets targets = ManagedBuildManager.getTargets(project); assertEquals(1, targets.length); // See if the artifact name is remembered assertEquals(targets[0].getArtifactName(), buildArtifactName); // Check the rest of the default information checkRootTarget(targets[0], "z"); // Now test the information the makefile builder needs checkBuildSettings(project); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b8059d7f27fb2f28cb77e7faa38ba6112d9a61cf/AllBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/AllBuildTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4109, 1435, 1216, 30015, 16, 18463, 288, 202, 202, 759, 1788, 394, 1984, 202, 202, 45, 4109, 1984, 273, 752, 4109, 12, 4406, 461, 1769, 202, 202, 759, 6149, 1410, 486, 506, 1281, 5774, 2553, 364, 333, 1984, 4671, 202, 202, 11231, 8867, 12, 20, 16, 10024, 3116, 1318, 18, 588, 9432, 12, 4406, 2934, 2469, 1769, 9506, 202, 759, 4163, 326, 1026, 1018, 2379, 202, 202, 1285, 826, 1018, 3262, 273, 10024, 3116, 1318, 18, 588, 2326, 12, 4406, 16, 315, 3813, 18, 3085, 8863, 202, 202, 11231, 5962, 12, 3299, 3262, 1769, 9506, 202, 759, 1788, 326, 1018, 364, 3134, 1984, 716, 10736, 279, 9609, 9070, 202, 202, 1285, 826, 394, 2326, 273, 10024, 3116, 1318, 18, 2640, 2326, 12, 4406, 16, 1018, 3262, 1769, 202, 202, 11231, 8867, 12, 2704, 2326, 18, 17994, 9334, 1018, 3262, 18, 17994, 10663, 202, 202, 11231, 8381, 12, 2704, 2326, 18, 14963, 12, 3299, 3262, 10019, 202, 202, 780, 1361, 7581, 461, 273, 17234, 397, 4585, 397, 394, 2326, 18, 588, 1868, 3625, 5621, 202, 202, 2704, 2326, 18, 542, 3116, 7581, 12, 3510, 7581, 461, 1769, 9506, 202, 1285, 826, 8526, 5774, 273, 10024, 3116, 1318, 18, 588, 9432, 12, 4406, 1769, 202, 202, 11231, 8867, 12, 21, 16, 5774, 18, 2469, 1769, 202, 202, 1285, 826, 1018, 273, 5774, 63, 20, 15533, 202, 202, 11231, 8867, 12, 3299, 16, 394, 2326, 1769, 202, 202, 11231, 8381, 12, 3299, 18, 14963, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4109, 1435, 1216, 30015, 16, 18463, 288, 202, 202, 759, 1788, 394, 1984, 202, 202, 45, 4109, 1984, 273, 752, 4109, 12, 4406, 461, 1769, 202, 202, 759, 6149, 1410, 486, 506, 1281, 5774, 2553, 364, 333, 1984, 4671, 202, 202, 11231, 8867, 12, 20, 16, 10024, 3116, 1318, 18, 588, 9432, 12, 4406, 2934, 2469, 1769, 9506, 202, 759, 4163, 326, 1026, 1018, 2379, 202, 202, 1285, 826, 1018, 3262, 273, 10024, 3116, 1318, 18, 588, 2326, 12, 4406, 16, 315, 3813, 18, 3085, 8863, 202, 202, 11231, 5962, 12, 3299, 3262, 1769, 9506, 202, 759, 1788, 326, 1018, 364, 3134, 1984, 716, 10736, 279, 9609, 9070, 202, 202, 1285, 826, 394, 2326, 2 ]