rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if (jj_3_45()) {
if (jj_3_46()) {
final private boolean jj_3R_104() { Token xsp; xsp = jj_scanpos; if (jj_3_45()) { jj_scanpos = xsp; if (jj_3R_157()) return true; } return false; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 21869, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 8749, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 27985, 10756, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 21869, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 8749, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 27985, 10756, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
synchronized(disconnect_mutex) { try { disconnect_ok_event_received=false; down(disconnect_event); while(!disconnect_ok_event_received) disconnect_mutex.wait(); } catch(Exception e) { if(log.isErrorEnabled()) log.error("exception: " + e); } }
disconnect_promise.reset(); down(disconnect_event); disconnect_promise.getResult();
public synchronized void disconnect() { if(closed) return; if(connected) { if(channel_name != null) { /* Send down a DISCONNECT event. The DISCONNECT event travels down to the GMS, where a * DISCONNECT_OK response is generated and sent up the stack. JChannel blocks until a * DISCONNECT_OK has been received, or until timeout has elapsed. */ Event disconnect_event=new Event(Event.DISCONNECT, local_addr); synchronized(disconnect_mutex) { try { disconnect_ok_event_received=false; down(disconnect_event); // DISCONNECT is handled by each layer while(!disconnect_ok_event_received) disconnect_mutex.wait(); // wait for DISCONNECT_OK event } catch(Exception e) { if(log.isErrorEnabled()) log.error("exception: " + e); } } } // Just in case we use the QUEUE protocol and it is still blocked... down(new Event(Event.STOP_QUEUEING)); connected=false; try { prot_stack.stopStack(); // calls stop() in all protocols, from top to bottom } catch(Exception e) { if(log.isErrorEnabled()) log.error("exception: " + e); } if(channel_listener != null) channel_listener.channelDisconnected(this); init(); // sets local_addr=null; changed March 18 2003 (bela) -- prevented successful rejoining } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/6fece0fcfa2ef0003bc270107a0ffcc130d9519a/JChannel.java/buggy/src/org/jgroups/JChannel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 9479, 1435, 288, 3639, 309, 12, 12204, 13, 327, 31, 3639, 309, 12, 8537, 13, 288, 5411, 309, 12, 4327, 67, 529, 480, 446, 13, 288, 7734, 1748, 2479, 2588, 279, 17641, 11032, 871, 18, 1021, 17641, 11032, 871, 29090, 87, 2588, 358, 326, 611, 3537, 16, 1625, 279, 7734, 380, 225, 17641, 11032, 67, 3141, 766, 353, 4374, 471, 3271, 731, 326, 2110, 18, 804, 2909, 4398, 3180, 279, 7734, 380, 225, 17641, 11032, 67, 3141, 711, 2118, 5079, 16, 578, 3180, 2021, 711, 9613, 18, 7734, 1195, 7734, 2587, 9479, 67, 2575, 33, 2704, 2587, 12, 1133, 18, 13498, 11032, 16, 1191, 67, 4793, 1769, 7734, 3852, 12, 20177, 67, 29946, 13, 288, 10792, 775, 288, 13491, 9479, 67, 601, 67, 2575, 67, 15213, 33, 5743, 31, 13491, 2588, 12, 20177, 67, 2575, 1769, 282, 368, 17641, 11032, 353, 7681, 635, 1517, 3018, 13491, 1323, 12, 5, 20177, 67, 601, 67, 2575, 67, 15213, 13, 18701, 9479, 67, 29946, 18, 7048, 5621, 225, 368, 2529, 364, 17641, 11032, 67, 3141, 871, 10792, 289, 10792, 1044, 12, 503, 425, 13, 288, 13491, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 4064, 30, 315, 397, 425, 1769, 10792, 289, 7734, 289, 5411, 289, 5411, 368, 12526, 316, 648, 732, 999, 326, 31600, 1771, 471, 518, 353, 4859, 14547, 2777, 5411, 2588, 12, 2704, 2587, 12, 1133, 18, 17513, 67, 19533, 1360, 10019, 5411, 5840, 33, 5743, 31, 5411, 775, 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, 3852, 918, 9479, 1435, 288, 3639, 309, 12, 12204, 13, 327, 31, 3639, 309, 12, 8537, 13, 288, 5411, 309, 12, 4327, 67, 529, 480, 446, 13, 288, 7734, 1748, 2479, 2588, 279, 17641, 11032, 871, 18, 1021, 17641, 11032, 871, 29090, 87, 2588, 358, 326, 611, 3537, 16, 1625, 279, 7734, 380, 225, 17641, 11032, 67, 3141, 766, 353, 4374, 471, 3271, 731, 326, 2110, 18, 804, 2909, 4398, 3180, 279, 7734, 380, 225, 17641, 11032, 67, 3141, 711, 2118, 5079, 16, 578, 3180, 2021, 711, 9613, 18, 7734, 1195, 7734, 2587, 9479, 67, 2575, 33, 2704, 2587, 12, 1133, 18, 13498, 11032, 16, 1191, 67, 4793, 1769, 7734, 3852, 12, 20177, 67, 29946, 13, 288, 2 ]
public static <D extends Distance<D>> D max(D d1, D d2) { if (d1.compareTo(d2) > 0) { return d1; } else if (d2.compareTo(d1) > 0) { return d2; } else { return d1; }
public static <D extends Distance<D>> D max(D d1, D d2) { if (d1.compareTo(d2) > 0) { return d1;
public static <D extends Distance<D>> D max(D d1, D d2) { if (d1.compareTo(d2) > 0) { return d1; } else if (d2.compareTo(d1) > 0) { return d2; } else { return d1; } }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/e81bf8cbc24bda6aa26ba70ba17be833f8d952d4/Util.java/clean/src/de/lmu/ifi/dbs/utilities/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 411, 40, 3231, 20335, 32, 40, 9778, 463, 943, 12, 40, 302, 21, 16, 463, 302, 22, 13, 565, 288, 3639, 309, 261, 72, 21, 18, 9877, 774, 12, 72, 22, 13, 405, 374, 13, 3639, 288, 5411, 327, 302, 21, 31, 3639, 289, 469, 309, 261, 72, 22, 18, 9877, 774, 12, 72, 21, 13, 405, 374, 13, 3639, 288, 5411, 327, 302, 22, 31, 3639, 289, 469, 3639, 288, 5411, 327, 302, 21, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 411, 40, 3231, 20335, 32, 40, 9778, 463, 943, 12, 40, 302, 21, 16, 463, 302, 22, 13, 565, 288, 3639, 309, 261, 72, 21, 18, 9877, 774, 12, 72, 22, 13, 405, 374, 13, 3639, 288, 5411, 327, 302, 21, 31, 3639, 289, 469, 309, 261, 72, 22, 18, 9877, 774, 12, 72, 21, 13, 405, 374, 13, 3639, 288, 5411, 327, 302, 22, 31, 3639, 289, 469, 3639, 288, 5411, 327, 302, 21, 31, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
org.eclipse.cdt.internal.core.model.Util.log(null, "Index I/O Exception: " + e.getMessage() + " on File: " + resource.getName(), ICLogConstants.CDT);
org.eclipse.cdt.internal.core.model.Util.log(null, "Index I/O Exception: " + e.getMessage() + " on File: " + resource.getName(), ICLogConstants.CDT);
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return true; /* ensure no concurrent write access to index */ IIndex index = manager.getIndex(this.indexPath, true, /*reuse index file*/ true /*create if none*/); if (index == null) return true; ReadWriteMonitor monitor = manager.getMonitorFor(index); if (monitor == null) return true; // index got deleted since acquired try { monitor.enterWrite(); // ask permission to write if (!indexDocument(index)) return false; } catch (IOException e) { org.eclipse.cdt.internal.core.model.Util.log(null, "Index I/O Exception: " + e.getMessage() + " on File: " + resource.getName(), ICLogConstants.CDT); if (IndexManager.VERBOSE) { JobManager.verbose("-> failed to index " + this.resource + " because of the following exception:"); //$NON-NLS-1$ //$NON-NLS-2$ e.printStackTrace(); } return false; } finally { monitor.exitWrite(); // free write lock } return true; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/AddFileToIndex.java/clean/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/AddFileToIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1836, 12, 45, 5491, 7187, 4007, 7187, 13, 288, 202, 202, 430, 261, 8298, 7187, 480, 446, 597, 4007, 7187, 18, 291, 23163, 10756, 327, 638, 31, 202, 202, 20308, 3387, 1158, 10020, 1045, 2006, 358, 770, 1195, 202, 202, 45, 1016, 770, 273, 3301, 18, 588, 1016, 12, 2211, 18, 1615, 743, 16, 638, 16, 1748, 266, 1202, 770, 585, 5549, 638, 1748, 2640, 309, 6555, 5549, 1769, 202, 202, 430, 261, 1615, 422, 446, 13, 327, 638, 31, 202, 202, 1994, 3067, 7187, 6438, 273, 3301, 18, 588, 7187, 1290, 12, 1615, 1769, 202, 202, 430, 261, 10259, 422, 446, 13, 327, 638, 31, 368, 770, 2363, 4282, 3241, 20598, 202, 202, 698, 288, 1082, 202, 10259, 18, 2328, 3067, 5621, 368, 6827, 4132, 358, 1045, 1082, 202, 430, 16051, 1615, 2519, 12, 1615, 3719, 327, 629, 31, 202, 202, 97, 1044, 261, 14106, 425, 13, 288, 1082, 202, 3341, 18, 20416, 18, 4315, 88, 18, 7236, 18, 3644, 18, 2284, 18, 1304, 18, 1330, 12, 2011, 16, 315, 1016, 467, 19, 51, 1185, 30, 315, 397, 425, 18, 24906, 1435, 397, 315, 603, 1387, 30, 315, 397, 1058, 18, 17994, 9334, 26899, 1343, 2918, 18, 39, 9081, 1769, 1082, 202, 430, 261, 1016, 1318, 18, 21900, 13, 288, 9506, 202, 2278, 1318, 18, 11369, 2932, 2122, 2535, 358, 770, 315, 397, 333, 18, 3146, 397, 315, 2724, 434, 326, 3751, 1520, 2773, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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, 1836, 12, 45, 5491, 7187, 4007, 7187, 13, 288, 202, 202, 430, 261, 8298, 7187, 480, 446, 597, 4007, 7187, 18, 291, 23163, 10756, 327, 638, 31, 202, 202, 20308, 3387, 1158, 10020, 1045, 2006, 358, 770, 1195, 202, 202, 45, 1016, 770, 273, 3301, 18, 588, 1016, 12, 2211, 18, 1615, 743, 16, 638, 16, 1748, 266, 1202, 770, 585, 5549, 638, 1748, 2640, 309, 6555, 5549, 1769, 202, 202, 430, 261, 1615, 422, 446, 13, 327, 638, 31, 202, 202, 1994, 3067, 7187, 6438, 273, 3301, 18, 588, 7187, 1290, 12, 1615, 1769, 202, 202, 430, 261, 10259, 422, 446, 13, 327, 638, 31, 368, 770, 2363, 4282, 3241, 20598, 202, 202, 698, 2 ]
String val = CmsEncoder.adjustHtmlEncoding(values[0], CmsEncoder.ENCODING_UTF_8);
String val = CmsEncoder.decode(values[0], CmsEncoder.ENCODING_UTF_8);
public void setEditorValue( CmsObject cms, Map formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) { String[] values = (String[])formParameters.get(param.getId()); if ((values != null) && (values.length > 0)) { String val = CmsEncoder.adjustHtmlEncoding(values[0], CmsEncoder.ENCODING_UTF_8); param.setStringValue(cms, val); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/00e1e6ac78b2fb5f0c9e4d25bd39b2e4f4a5177b/CmsHtmlAreaWidget.java/buggy/src/org/opencms/widgets/CmsHtmlAreaWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6946, 620, 12, 3639, 14371, 6166, 16, 3639, 1635, 646, 2402, 16, 3639, 467, 67, 4747, 4609, 6353, 3604, 6353, 16, 3639, 467, 67, 4747, 4609, 1662, 579, 13, 288, 3639, 514, 8526, 924, 273, 261, 780, 63, 5717, 687, 2402, 18, 588, 12, 891, 18, 26321, 10663, 3639, 309, 14015, 2372, 480, 446, 13, 597, 261, 2372, 18, 2469, 405, 374, 3719, 288, 5411, 514, 1244, 273, 2149, 7204, 18, 3922, 12, 2372, 63, 20, 6487, 2149, 7204, 18, 14672, 67, 5159, 67, 28, 1769, 5411, 579, 18, 542, 19733, 12, 6851, 16, 1244, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6946, 620, 12, 3639, 14371, 6166, 16, 3639, 1635, 646, 2402, 16, 3639, 467, 67, 4747, 4609, 6353, 3604, 6353, 16, 3639, 467, 67, 4747, 4609, 1662, 579, 13, 288, 3639, 514, 8526, 924, 273, 261, 780, 63, 5717, 687, 2402, 18, 588, 12, 891, 18, 26321, 10663, 3639, 309, 14015, 2372, 480, 446, 13, 597, 261, 2372, 18, 2469, 405, 374, 3719, 288, 5411, 514, 1244, 273, 2149, 7204, 18, 3922, 12, 2372, 63, 20, 6487, 2149, 7204, 18, 14672, 67, 5159, 67, 28, 1769, 5411, 579, 18, 542, 19733, 12, 6851, 16, 1244, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = filterReadrunner(result,patMat) ;
result = readrunnerFilter.filter(result,patMat,parserParameters.getReadrunnerParameters()) ;
public String tagText (Properties attributes, PatternMatcher patMat) { String mode = attributes.getProperty("mode") ; if ( ( mode != null && !"".equals(mode) ) && ( ( textMode && "read".startsWith(mode) ) // With mode="read", we don't want anything in textMode. || ( !textMode && "write".startsWith(mode) ) // With mode="write", we don't want anything unless we're in textMode. ) ) { return "" ; } // Get the 'no'-attribute of the <?imcms:text no="..."?>-tag String noStr = attributes.getProperty("no") ; IMCText text = null ; if (null != noStr) { text = (IMCText)textMap.get(noStr) ; implicitTextNumber = Integer.parseInt(noStr) + 1 ; } else { text = (IMCText)textMap.get(noStr = String.valueOf(implicitTextNumber++)) ; } String result ; if (text == null) { result = "" ; } else { // Since this is supposed to be a html-view of the db, we'll do some html-escaping. result = htmlize(text) ; } String filter = attributes.getProperty("filter") ; if (null != filter && "readrunner".equalsIgnoreCase(filter)) { result = filterReadrunner(result,patMat) ; } String finalresult = result ; if (textMode) { String label = attributes.getProperty("label","") ; String label_urlparam = "" ; if (!"".equals(label)) { label_urlparam = java.net.URLEncoder.encode(label) ; label = imcode.util.Parser.parseDoc(labelTemplate, new String[] { "#label#", label }) ; } String[] replace_tags = new String[] { "#meta_id#", String.valueOf(document.getMetaId()), "#text_id#", noStr, "#text#", finalresult, "#label_url#", label_urlparam, "#label#", label } ; String langPrefix = documentRequest.getUser().getLangPrefix() ; File admin_template_file = new File(templatePath, langPrefix+"/admin/textdoc/admin_text.frag") ; try { finalresult = imcode.util.Parser.parseDoc(fileCache.getCachedFileString(admin_template_file),replace_tags) ; } catch (IOException ex) { log.error("Failed to load template '"+admin_template_file+"'") ; } } if (!"".equals(result)) { // Else, we're not in textmode, and do we have something other than the empty string? String tempAtt = null ; if ((tempAtt = attributes.getProperty("pre")) != null) { finalresult = tempAtt + finalresult ; } if ((tempAtt = attributes.getProperty("post")) != null) { finalresult = finalresult + tempAtt ; } } return finalresult ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7c0a6fd503d21ac1e4cb80019d2aba7fda6536a1/ImcmsTagSubstitution.java/clean/server/src/imcode/server/parser/ImcmsTagSubstitution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 1528, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 780, 1965, 273, 225, 1677, 18, 588, 1396, 2932, 3188, 7923, 274, 202, 430, 261, 261, 1965, 480, 446, 597, 401, 3660, 18, 14963, 12, 3188, 13, 262, 202, 377, 597, 261, 261, 977, 2309, 597, 315, 896, 9654, 17514, 1190, 12, 3188, 13, 262, 368, 3423, 1965, 1546, 896, 3113, 732, 2727, 1404, 2545, 6967, 316, 977, 2309, 18, 1082, 225, 747, 261, 401, 955, 2309, 597, 315, 2626, 9654, 17514, 1190, 12, 3188, 13, 262, 368, 3423, 1965, 1546, 2626, 3113, 732, 2727, 1404, 2545, 6967, 3308, 732, 4565, 316, 977, 2309, 18, 1082, 225, 262, 262, 288, 202, 565, 327, 1408, 274, 202, 97, 202, 759, 968, 326, 296, 2135, 11, 17, 4589, 434, 326, 20958, 381, 6851, 30, 955, 1158, 1546, 7070, 35, 34, 17, 2692, 202, 780, 1158, 1585, 273, 1677, 18, 588, 1396, 2932, 2135, 7923, 274, 202, 3445, 1268, 408, 977, 273, 446, 274, 202, 430, 261, 2011, 480, 1158, 1585, 13, 288, 202, 565, 977, 273, 261, 3445, 1268, 408, 13, 955, 863, 18, 588, 12, 2135, 1585, 13, 274, 202, 565, 10592, 1528, 1854, 273, 2144, 18, 2670, 1702, 12, 2135, 1585, 13, 397, 404, 274, 202, 97, 469, 288, 202, 565, 977, 273, 261, 3445, 1268, 408, 13, 955, 863, 18, 588, 12, 2135, 1585, 273, 514, 18, 1132, 951, 12, 24357, 1528, 1854, 9904, 3719, 274, 202, 97, 202, 780, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 1528, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 780, 1965, 273, 225, 1677, 18, 588, 1396, 2932, 3188, 7923, 274, 202, 430, 261, 261, 1965, 480, 446, 597, 401, 3660, 18, 14963, 12, 3188, 13, 262, 202, 377, 597, 261, 261, 977, 2309, 597, 315, 896, 9654, 17514, 1190, 12, 3188, 13, 262, 368, 3423, 1965, 1546, 896, 3113, 732, 2727, 1404, 2545, 6967, 316, 977, 2309, 18, 1082, 225, 747, 261, 401, 955, 2309, 597, 315, 2626, 9654, 17514, 1190, 12, 3188, 13, 262, 368, 3423, 1965, 1546, 2626, 3113, 732, 2727, 1404, 2545, 6967, 3308, 732, 4565, 316, 977, 2309, 18, 1082, 225, 262, 262, 288, 202, 565, 327, 2 ]
public DefinitionsPane(MainFrame mf) { _mainFrame = mf; _resetDocument(""); _resetUndo(); _findReplace = new FindReplaceDialog(mf, this); setContentType("text/java"); setBackground(Color.white); setFont(new Font("Courier", 0, 12)); setEditable(true); //????KEEP?????? _openChooser = new JFileChooser(System.getProperty("user.dir")); _openChooser.setFileFilter(new JavaSourceFilter()); _saveChooser = new JFileChooser(System.getProperty("user.dir")); //add actions for indent keay Keymap ourMap = addKeymap("INDENT_KEYMAP", getKeymap()); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), (Action)_indentKeyActionLine); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), (Action)_indentKeyActionTab); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('}'), (Action)_indentKeyActionSquiggly); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('{'), (Action)_indentKeyActionOpenSquiggly); setKeymap(ourMap); this.addCaretListener(_matchListener); _mainFrame.installNewDocumentListener(_doc()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/414911409ffccc198572e4d568622c4bb424b34e/DefinitionsPane.java/clean/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 7130, 8485, 12, 6376, 3219, 16126, 15329, 67, 5254, 3219, 33, 16126, 31, 67, 6208, 2519, 2932, 8863, 67, 6208, 31224, 5621, 67, 4720, 5729, 33, 2704, 3125, 5729, 6353, 12, 16126, 16, 2211, 1769, 542, 8046, 2932, 955, 19, 6290, 8863, 542, 8199, 12, 2957, 18, 14739, 1769, 542, 5711, 12, 2704, 5711, 2932, 39, 24775, 3113, 20, 16, 2138, 10019, 542, 15470, 12, 3767, 1769, 759, 14646, 14646, 6859, 10541, 14646, 14646, 14646, 67, 3190, 17324, 33, 2704, 46, 812, 17324, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 67, 3190, 17324, 18, 542, 29837, 12, 2704, 5852, 1830, 1586, 10663, 67, 5688, 17324, 33, 2704, 46, 812, 17324, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 759, 1289, 4905, 1884, 9355, 4491, 528, 653, 1458, 477, 863, 33, 1289, 653, 1458, 2932, 2356, 2222, 67, 3297, 8352, 3113, 588, 653, 1458, 10663, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 12278, 16, 20, 3631, 12, 1803, 13, 67, 9355, 653, 1803, 1670, 1769, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 28899, 16, 20, 3631, 12, 1803, 13, 67, 9355, 653, 1803, 5661, 1769, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 2668, 1713, 3631, 12, 1803, 13, 67, 9355, 653, 1803, 55, 372, 360, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 7130, 8485, 12, 6376, 3219, 16126, 15329, 67, 5254, 3219, 33, 16126, 31, 67, 6208, 2519, 2932, 8863, 67, 6208, 31224, 5621, 67, 4720, 5729, 33, 2704, 3125, 5729, 6353, 12, 16126, 16, 2211, 1769, 542, 8046, 2932, 955, 19, 6290, 8863, 542, 8199, 12, 2957, 18, 14739, 1769, 542, 5711, 12, 2704, 5711, 2932, 39, 24775, 3113, 20, 16, 2138, 10019, 542, 15470, 12, 3767, 1769, 759, 14646, 14646, 6859, 10541, 14646, 14646, 14646, 67, 3190, 17324, 33, 2704, 46, 812, 17324, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 67, 3190, 17324, 18, 542, 29837, 12, 2704, 5852, 1830, 1586, 10663, 67, 5688, 17324, 33, 2704, 46, 812, 17324, 12, 3163, 18, 588, 2 ]
OPT_IR ir) { if (addr instanceof OPT_IntConstantOperand) { if (!canBeImmediate(((OPT_IntConstantOperand)addr).value)) {
OPT_IR ir, boolean signed) { if (VM.BuildFor64Addr && (addr instanceof OPT_LongConstantOperand)) { if (!canBeImmediate(((OPT_LongConstantOperand)addr).value, signed)) {
static OPT_Operand asImmediateOrRegLong(OPT_Operand addr, OPT_Instruction s, OPT_IR ir) { if (addr instanceof OPT_IntConstantOperand) { if (!canBeImmediate(((OPT_IntConstantOperand)addr).value)) { OPT_RegisterOperand rop = ir.regpool.makeTempLong(); s.insertBefore(Move.create(LONG_MOVE, rop, addr)); return rop.copyD2U(); } } else if (addr instanceof OPT_LongConstantOperand) { if (!canBeImmediate(((OPT_LongConstantOperand)addr).value)) { OPT_RegisterOperand rop = ir.regpool.makeTempLong(); s.insertBefore(Move.create(LONG_MOVE, rop, addr)); return rop.copyD2U(); } else { // can be immediate --> convert to int return new OPT_IntConstantOperand((int)((OPT_LongConstantOperand)addr).value); } } // Operand was OK as is. return addr; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f48fdea56df99c8c627e9d03888f336de8132de3/OPT_NormalizeConstants.java/buggy/rvm/src/vm/arch/powerPC/compilers/optimizing/ir/conversions/lir2mir/OPT_NormalizeConstants.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 16456, 67, 10265, 487, 22651, 1162, 1617, 3708, 12, 15620, 67, 10265, 3091, 16, 4766, 1377, 16456, 67, 11983, 272, 16, 4766, 1377, 16456, 67, 7937, 9482, 13, 288, 565, 309, 261, 4793, 1276, 16456, 67, 1702, 6902, 10265, 13, 288, 1377, 309, 16051, 4169, 1919, 22651, 12443, 12, 15620, 67, 1702, 6902, 10265, 13, 4793, 2934, 1132, 3719, 288, 3639, 16456, 67, 3996, 10265, 721, 84, 273, 9482, 18, 1574, 6011, 18, 6540, 7185, 3708, 5621, 3639, 272, 18, 6387, 4649, 12, 7607, 18, 2640, 12, 14639, 67, 16537, 16, 721, 84, 16, 3091, 10019, 3639, 327, 721, 84, 18, 3530, 40, 22, 57, 5621, 1377, 289, 565, 289, 565, 469, 4202, 309, 261, 4793, 1276, 16456, 67, 3708, 6902, 10265, 13, 288, 3639, 309, 16051, 4169, 1919, 22651, 12443, 12, 15620, 67, 3708, 6902, 10265, 13, 4793, 2934, 1132, 3719, 288, 1850, 16456, 67, 3996, 10265, 721, 84, 273, 9482, 18, 1574, 6011, 18, 6540, 7185, 3708, 5621, 1850, 272, 18, 6387, 4649, 12, 7607, 18, 2640, 12, 14639, 67, 16537, 16, 721, 84, 16, 3091, 10019, 1850, 327, 721, 84, 18, 3530, 40, 22, 57, 5621, 3639, 289, 469, 288, 368, 848, 506, 14483, 15431, 1765, 358, 509, 1850, 327, 394, 16456, 67, 1702, 6902, 10265, 12443, 474, 13, 12443, 15620, 67, 3708, 6902, 10265, 13, 4793, 2934, 1132, 1769, 3639, 289, 1377, 289, 3639, 368, 7692, 464, 1703, 7791, 487, 353, 18, 565, 327, 3091, 31, 225, 289, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 16456, 67, 10265, 487, 22651, 1162, 1617, 3708, 12, 15620, 67, 10265, 3091, 16, 4766, 1377, 16456, 67, 11983, 272, 16, 4766, 1377, 16456, 67, 7937, 9482, 13, 288, 565, 309, 261, 4793, 1276, 16456, 67, 1702, 6902, 10265, 13, 288, 1377, 309, 16051, 4169, 1919, 22651, 12443, 12, 15620, 67, 1702, 6902, 10265, 13, 4793, 2934, 1132, 3719, 288, 3639, 16456, 67, 3996, 10265, 721, 84, 273, 9482, 18, 1574, 6011, 18, 6540, 7185, 3708, 5621, 3639, 272, 18, 6387, 4649, 12, 7607, 18, 2640, 12, 14639, 67, 16537, 16, 721, 84, 16, 3091, 10019, 3639, 327, 721, 84, 18, 3530, 40, 22, 57, 5621, 1377, 289, 565, 289, 565, 469, 4202, 309, 261, 4793, 1276, 2 ]
public long getInstantMillis(Object object) { return 0;}
public long getInstantMillis(Object object, Chronology chrono) {return 0;}
public long getInstantMillis(Object object) { return 0;}
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/52d79b9e4ad03c138bf41e9de38ec4ffb88c931d/TestConverterManager.java/clean/JodaTime/src/test/org/joda/time/convert/TestConverterManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1525, 7854, 1452, 4814, 12, 921, 733, 13, 288, 327, 374, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1525, 7854, 1452, 4814, 12, 921, 733, 13, 288, 327, 374, 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 ]
log.log(Level.SEVERE, "The specified value of {0} must be date, or it cannot be parsed. Please check your date value.You should input the date value like \"9/13/08 8:01 PM\"", paramName);
log.log(Level.SEVERE, "The specified value of {0} must be date, or it cannot be parsed. Please check your date value.You should input the date value like \"9/13/08 8:01 PM\"", paramName);
private boolean validateParameter(IParameterDefn handle, Object result) { assert IParameterDefnBase.SCALAR_PARAMETER == handle.getParameterType(); IScalarParameterDefn paramHandle = (IScalarParameterDefn) handle; String paramName = paramHandle.getName(); int type = paramHandle.getDataType(); // TODO: Note that if a parameter is not required, and it is not // defined, // the following code would add a null to it. We simply should // not add the // entry to the map. if (result == null) { return false; } if (result == null) { if (!paramHandle.allowNull()) { log .log( Level.SEVERE, "{0} doesn't allow a null value or user doesn't input a proper parameter.", paramName); //$NON-NLS-1$ return false; } return true; } else { /*if(type==IParameterDefn.TYPE_STRING && result.toString().length()==0 &&!parmHandle.allowBlank()) { return false; } */ } /* * Get value according to different type If it has a non-null * value, we should validate whether this value has a correct * type */ if (type == IScalarParameterDefn.TYPE_DECIMAL || type == IScalarParameterDefn.TYPE_FLOAT) { if (result instanceof Number) return true; log.log(Level.SEVERE, "{0} should be a number", paramName); //$NON-NLS-1$ return false; } else if (type == IScalarParameterDefn.TYPE_DATE_TIME) { if (result instanceof Date) return true; log.log(Level.SEVERE, "The specified value of {0} must be date, or it cannot be parsed. Please check your date value.You should input the date value like \"9/13/08 8:01 PM\"", paramName); //$NON-NLS-1$ return false; } else if (type == IScalarParameterDefn.TYPE_STRING) { String value = result.toString().trim(); if (value.equals("") && !paramHandle.allowBlank()) //$NON-NLS-1$ { log.log(Level.SEVERE, "{0} can't be blank", paramName); //$NON-NLS-1$ return false; } return true; } else if (type == IScalarParameterDefn.TYPE_BOOLEAN) { if (result instanceof Boolean) return true; log.log(Level.SEVERE, "{0} should be a boolean value", paramName); //$NON-NLS-1$ return false; } assert type == IScalarParameterDefn.TYPE_ANY; return true; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/98cd813c7d0f8cc258d79685971f244fa4c8da36/RunAndRenderTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1954, 1662, 12, 45, 1662, 3262, 82, 1640, 16, 1033, 563, 13, 202, 95, 202, 202, 11231, 467, 1662, 3262, 82, 2171, 18, 2312, 1013, 985, 67, 9819, 422, 1640, 18, 588, 28460, 5621, 202, 202, 5127, 3473, 1662, 3262, 82, 579, 3259, 273, 261, 5127, 3473, 1662, 3262, 82, 13, 1640, 31, 202, 202, 780, 11466, 273, 579, 3259, 18, 17994, 5621, 202, 202, 474, 618, 273, 579, 3259, 18, 588, 6273, 5621, 202, 202, 759, 2660, 30, 3609, 716, 309, 279, 1569, 353, 486, 1931, 16, 471, 518, 353, 486, 202, 202, 759, 2553, 16, 202, 202, 759, 326, 3751, 981, 4102, 527, 279, 446, 358, 518, 18, 1660, 8616, 1410, 202, 202, 759, 486, 527, 326, 202, 202, 759, 1241, 358, 326, 852, 18, 202, 202, 430, 261, 2088, 422, 446, 13, 202, 202, 95, 1082, 202, 2463, 629, 31, 202, 202, 97, 9506, 202, 430, 261, 2088, 422, 446, 13, 202, 202, 95, 1082, 202, 430, 16051, 891, 3259, 18, 5965, 2041, 10756, 1082, 202, 95, 9506, 202, 1330, 25083, 202, 18, 1330, 12, 6862, 9506, 202, 2355, 18, 1090, 2204, 41, 16, 6862, 9506, 202, 18767, 20, 97, 3302, 1404, 1699, 279, 446, 460, 578, 729, 3302, 1404, 810, 279, 5338, 1569, 1199, 16, 11466, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2463, 629, 31, 1082, 202, 97, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 20308, 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, 1250, 1954, 1662, 12, 45, 1662, 3262, 82, 1640, 16, 1033, 563, 13, 202, 95, 202, 202, 11231, 467, 1662, 3262, 82, 2171, 18, 2312, 1013, 985, 67, 9819, 422, 1640, 18, 588, 28460, 5621, 202, 202, 5127, 3473, 1662, 3262, 82, 579, 3259, 273, 261, 5127, 3473, 1662, 3262, 82, 13, 1640, 31, 202, 202, 780, 11466, 273, 579, 3259, 18, 17994, 5621, 202, 202, 474, 618, 273, 579, 3259, 18, 588, 6273, 5621, 202, 202, 759, 2660, 30, 3609, 716, 309, 279, 1569, 353, 486, 1931, 16, 471, 518, 353, 486, 202, 202, 759, 2553, 16, 202, 202, 759, 326, 3751, 981, 4102, 527, 279, 446, 358, 518, 18, 1660, 8616, 1410, 202, 202, 2 ]
Map parameterMap = attrBean.getParameters( ); Map displayTexts = attrBean.getDisplayTexts( ); if ( operation != null ) { String displayTextParam = null; Oprand[] oprands = operation.getOprand( ); for ( int i = 0; i < oprands.length; i++ ) { String paramName = oprands[i].getName( ); Object paramValue = oprands[i].getValue( ); if ( ParameterAccessor.PARAM_ISNULL .equalsIgnoreCase( paramName ) && paramValue != null ) { ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean .findParameter( paramValue.toString( ) ); if ( parameter != null ) { parameterMap.put( paramValue, null ); continue; } } else if ( ( displayTextParam = ParameterAccessor .isDisplayText( paramName ) ) != null ) { displayTexts.put( displayTextParam, paramValue ); continue; } ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean .findParameter( paramName ); if ( parameter != null && paramValue != null ) { paramValue = DataUtil.validate( parameter.getDataType( ), parameter .getPattern( ), paramValue.toString( ), attrBean.getLocale( ) ); } if ( parameter != null ) { parameterMap.put( paramName, paramValue ); } } } IViewerReportDesignHandle reportDesignHandle = attrBean .getReportDesignHandle( context.getRequest( ) );
protected void __execute( ) throws RemoteException { try { // get attribute bean ViewerAttributeBean attrBean = (ViewerAttributeBean) context .getBean( ); assert attrBean != null; String format = ParameterAccessor.getFormat( context.getRequest( ) ); Locale locale = attrBean.getLocale( ); boolean master = attrBean.isMasterPageContent( ); Map parameterMap = attrBean.getParameters( ); Map displayTexts = attrBean.getDisplayTexts( ); // convert parameter if ( operation != null ) { String displayTextParam = null; Oprand[] oprands = operation.getOprand( ); for ( int i = 0; i < oprands.length; i++ ) { String paramName = oprands[i].getName( ); Object paramValue = oprands[i].getValue( ); // Check if parameter set to null if ( ParameterAccessor.PARAM_ISNULL .equalsIgnoreCase( paramName ) && paramValue != null ) { // find the parameter ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean .findParameter( paramValue.toString( ) ); if ( parameter != null ) { // set parametet to null value parameterMap.put( paramValue, null ); continue; } } else if ( ( displayTextParam = ParameterAccessor .isDisplayText( paramName ) ) != null ) { displayTexts.put( displayTextParam, paramValue ); continue; } // find the parameter ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean .findParameter( paramName ); if ( parameter != null && paramValue != null ) { // convert parameter to Object paramValue = DataUtil.validate( parameter.getDataType( ), parameter .getPattern( ), paramValue.toString( ), attrBean.getLocale( ) ); } if ( parameter != null ) { parameterMap.put( paramName, paramValue ); } } } IViewerReportDesignHandle reportDesignHandle = attrBean .getReportDesignHandle( context.getRequest( ) ); boolean svgFlag = getSVGFlag( operation.getOprand( ) ); String docName = attrBean.getReportDocumentName( ); // get bookmark String bookmark = getBookmark( operation.getOprand( ), context .getBean( ) ); // input options InputOptions options = new InputOptions( ); options.setOption( InputOptions.OPT_REQUEST, context.getRequest( ) ); options.setOption( InputOptions.OPT_LOCALE, locale ); options.setOption( InputOptions.OPT_RTL, new Boolean( attrBean .isRtl( ) ) ); options.setOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT, new Boolean( master ) ); options .setOption( InputOptions.OPT_SVG_FLAG, new Boolean( svgFlag ) ); options.setOption( InputOptions.OPT_FORMAT, format ); options.setOption( InputOptions.OPT_IS_DESIGNER, new Boolean( attrBean.isDesigner( ) ) ); // output as byte array ByteArrayOutputStream out = new ByteArrayOutputStream( ); if ( ParameterAccessor.isGetImageOperator( context.getRequest( ) ) ) { BirtRenderImageActionHandler renderImageHandler = new BirtRenderImageActionHandler( context, operation, response ); renderImageHandler.execute( ); } else if ( ParameterAccessor.isGetReportlet( context.getRequest( ) ) ) { String __reportletId = attrBean.getReportletId( ); getReportService( ).renderReportlet( docName, __reportletId, options, new ArrayList( ), out ); } else if ( context.getBean( ).documentInUrl ) { getReportService( ).renderReport( docName, null, options, out ); } else { getReportService( ).runAndRenderReport( reportDesignHandle, docName, options, parameterMap, out, new ArrayList( ), displayTexts ); } // Update response. UpdateContent content = new UpdateContent( ); content.setContent( out.toString( ) ); content.setTarget( "Document" ); //$NON-NLS-1$ if ( bookmark != null ) content.setBookmark( bookmark ); Update updateDocument = new Update( ); updateDocument.setUpdateContent( content ); response.setUpdate( new Update[]{updateDocument} ); } catch ( Exception e ) { AxisFault fault = new AxisFault( ); fault.setFaultCode( new QName( "BirtGetPageAllActionHandler.__execute( )" ) ); //$NON-NLS-1$ fault.setFaultReason( e.getLocalizedMessage( ) ); throw fault; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e67b6a4506a01d4fbb741a982d76ef6cb9dba851/BirtGetPageAllActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetPageAllActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 8837, 12, 262, 1216, 18361, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 336, 1566, 3931, 1082, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 18415, 1499, 3381, 13, 819, 6862, 202, 18, 588, 3381, 12, 11272, 1082, 202, 11231, 1604, 3381, 480, 446, 31, 1082, 202, 780, 740, 273, 5498, 8235, 18, 588, 1630, 12, 819, 18, 588, 691, 12, 262, 11272, 1082, 202, 3916, 2573, 273, 1604, 3381, 18, 588, 3916, 12, 11272, 1082, 202, 6494, 4171, 273, 1604, 3381, 18, 291, 7786, 1964, 1350, 12, 11272, 1082, 202, 863, 1569, 863, 273, 1604, 3381, 18, 588, 2402, 12, 11272, 1082, 202, 863, 2562, 30114, 273, 1604, 3381, 18, 588, 4236, 30114, 12, 11272, 1082, 202, 759, 1765, 1569, 1082, 202, 430, 261, 1674, 480, 446, 262, 1082, 202, 95, 9506, 202, 780, 2562, 1528, 786, 273, 446, 31, 9506, 202, 51, 683, 464, 8526, 320, 683, 5708, 273, 1674, 18, 588, 51, 683, 464, 12, 11272, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 320, 683, 5708, 18, 2469, 31, 277, 9904, 262, 9506, 202, 95, 6862, 202, 780, 11466, 273, 320, 683, 5708, 63, 77, 8009, 17994, 12, 11272, 6862, 202, 921, 20250, 273, 320, 683, 5708, 63, 77, 8009, 24805, 12, 11272, 6862, 202, 759, 2073, 309, 1569, 444, 358, 446, 6862, 202, 430, 261, 5498, 8235, 18, 8388, 67, 5127, 8560, 6862, 1082, 202, 18, 14963, 5556, 12, 11466, 262, 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, 1001, 8837, 12, 262, 1216, 18361, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 336, 1566, 3931, 1082, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 18415, 1499, 3381, 13, 819, 6862, 202, 18, 588, 3381, 12, 11272, 1082, 202, 11231, 1604, 3381, 480, 446, 31, 1082, 202, 780, 740, 273, 5498, 8235, 18, 588, 1630, 12, 819, 18, 588, 691, 12, 262, 11272, 1082, 202, 3916, 2573, 273, 1604, 3381, 18, 588, 3916, 12, 11272, 1082, 202, 6494, 4171, 273, 1604, 3381, 18, 291, 7786, 1964, 1350, 12, 11272, 1082, 202, 863, 1569, 863, 273, 1604, 3381, 18, 588, 2402, 12, 11272, 1082, 202, 863, 2562, 30114, 273, 1604, 3381, 18, 2 ]
deleteFile(cms, file); session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE);
try{ deleteFile(cms, file); session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE); }catch(CmsException e){ session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE); xmlTemplateDocument.setData("details", Utils.getStackTrace(e)); return startProcessing(cms, xmlTemplateDocument, "", parameters, "error"); }
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); // the template to be displayed String template = null; // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE); session.removeValue("lasturl"); } // get the lasturl parameter String lasturl = getLastUrl(cms, parameters); String delete = (String)parameters.get(C_PARA_DELETE); if(delete != null) { session.putValue(C_PARA_DELETE, delete); } delete = (String)session.getValue(C_PARA_DELETE); String filename = (String)parameters.get(C_PARA_FILE); if(filename != null) { session.putValue(C_PARA_FILE, filename); } filename = (String)session.getValue(C_PARA_FILE); String action = (String)parameters.get("action"); CmsResource file = (CmsResource)cms.readFileHeader(filename); if(file.isFile()) { template = "file"; } else { template = "folder"; } //check if the name parameter was included in the request // if not, the delete page is shown for the first time if(delete != null) { if(action == null) { template = "wait"; } else { // check if the resource is a file or a folder if(file.isFile()) { // its a file, so delete it deleteFile(cms, file); session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE); try { if(lasturl == null || "".equals(lasturl)) { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_FILELIST); } else { cms.getRequestContext().getResponse().sendRedirect(lasturl); } } catch(Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_FILELIST, CmsException.C_UNKNOWN_EXCEPTION, e); } return null; } else { // its a folder, so try to delete the folder and its subfolders // get all subfolders and files Vector allFolders = new Vector(); Vector allFiles = new Vector(); getAllResources(cms, filename, allFiles, allFolders); // unlock the folder, otherwise the subflders and files could not be // deleted. //cms.unlockResource(filename); // now delete all files in the subfolders for(int i = 0;i < allFiles.size();i++) { CmsFile newfile = (CmsFile)allFiles.elementAt(i); if(newfile.getState() != C_STATE_DELETED) { //cms.lockResource(newfile.getAbsolutePath()); deleteFile(cms, newfile); } } // now delete all subfolders for(int i = 0;i < allFolders.size();i++) { CmsFolder folder = (CmsFolder)allFolders.elementAt(allFolders.size() - i - 1); if(folder.getState() != C_STATE_DELETED) { //cms.lockResource(folder.getAbsolutePath()); cms.deleteFolder(folder.getAbsolutePath()); try { cms.deleteFolder(C_CONTENTBODYPATH + folder.getAbsolutePath().substring(1)); } catch(CmsException e) { } } } // finally delete the selected folder //cms.lockResource(filename); cms.deleteFolder(filename); try { cms.deleteFolder(C_CONTENTBODYPATH + filename.substring(1)); } catch(CmsException e) { } session.removeValue(C_PARA_DELETE); session.removeValue(C_PARA_FILE); xmlTemplateDocument.setData("lasturl", lasturl); template = "update"; } } // TODO: Error handling } // set the required datablocks if(action == null) { String title = cms.readProperty(file.getAbsolutePath(), C_PROPERTY_TITLE); if(title == null) { title = ""; } CmsXmlLanguageFile lang = xmlTemplateDocument.getLanguageFile(); CmsUser owner = cms.readOwner(file); xmlTemplateDocument.setData("TITLE", title); xmlTemplateDocument.setData("STATE", getState(cms, file, lang)); xmlTemplateDocument.setData("OWNER", Utils.getFullName(owner)); xmlTemplateDocument.setData("GROUP", cms.readGroup(file).getName()); xmlTemplateDocument.setData("FILENAME", file.getName()); } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/73c6704872ae9f143ed5d45162b7213affa689fe/CmsDelete.java/clean/src/com/opencms/workplace/CmsDelete.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 6166, 18, 588, 21426, 7675, 588, 2157, 12, 3767, 1769, 3639, 16084, 59, 84, 2283, 812, 2025, 2283, 2519, 273, 394, 16084, 59, 84, 2283, 812, 12, 6851, 16, 28215, 1769, 7734, 368, 326, 1542, 358, 506, 10453, 3639, 514, 1542, 273, 446, 31, 7734, 368, 2424, 1339, 924, 603, 1122, 1262, 3639, 514, 2172, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 28497, 1769, 3639, 309, 12, 6769, 480, 446, 13, 288, 13491, 368, 1206, 777, 1339, 924, 5411, 1339, 18, 4479, 620, 12, 39, 67, 2778, 37, 67, 6460, 1769, 5411, 1339, 18, 4479, 620, 12, 39, 67, 2778, 37, 67, 3776, 1769, 5411, 1339, 18, 4479, 620, 2932, 2722, 718, 8863, 3639, 289, 7734, 368, 336, 326, 1142, 718, 1569, 3639, 514, 1142, 718, 273, 7595, 1489, 12, 6851, 16, 1472, 1769, 3639, 514, 1430, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 6460, 1769, 3639, 309, 12, 3733, 480, 446, 13, 288, 5411, 1339, 18, 458, 620, 12, 39, 67, 2778, 37, 67, 6460, 16, 1430, 1769, 3639, 289, 3639, 1430, 273, 261, 780, 13, 3184, 18, 24805, 12, 39, 67, 2778, 37, 67, 6460, 1769, 3639, 514, 1544, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 6166, 18, 588, 21426, 7675, 588, 2157, 12, 3767, 1769, 3639, 16084, 59, 84, 2283, 812, 2025, 2283, 2519, 273, 394, 16084, 59, 84, 2283, 812, 12, 6851, 16, 28215, 1769, 7734, 368, 326, 1542, 358, 506, 10453, 3639, 514, 1542, 273, 446, 31, 7734, 368, 2424, 1339, 924, 603, 1122, 1262, 3639, 514, 2172, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 28497, 1769, 3639, 309, 12, 6769, 480, 446, 13, 288, 13491, 368, 1206, 777, 1339, 924, 5411, 2 ]
public String verifyTreaty(String treatyXML)
public String[] verifyTreaty(String treatyXML)
public String verifyTreaty(String treatyXML) throws RemoteException { return verifyTreaty(treatyXML, false); }
14598 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14598/ca3c3246eb5b12205b2d0cdb4349bf667b89663c/SecurityManagerServiceImpl.java/buggy/javasrc/services/SecurityManagerServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 3929, 56, 6150, 93, 12, 780, 10116, 93, 4201, 13, 3639, 1216, 18361, 288, 3639, 327, 3929, 56, 6150, 93, 12, 17283, 93, 4201, 16, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 3929, 56, 6150, 93, 12, 780, 10116, 93, 4201, 13, 3639, 1216, 18361, 288, 3639, 327, 3929, 56, 6150, 93, 12, 17283, 93, 4201, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc();
public quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { quickfix.field.SecurityDesc value = new quickfix.field.SecurityDesc();
public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Advertisement.java/buggy/src/java/src/quickfix/fix40/Advertisement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 19288, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 19288, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("g: "+g.toHexString()+" ("+g.bitLength()+")");
System.out.println("g: "+g.toHexString()+" ("+g.bitLength()+ ')');
private static void finish(RandomSource r, int hashLength, NativeBigInteger p, NativeBigInteger q, byte[] seed, int counter) { System.out.println("SEED: "+HexUtil.bytesToHex(seed)); System.out.println("COUNTER: "+counter); System.out.println("p: "+p.toString(16)+" ("+p.bitLength()+")"); System.out.println("q: "+q.toString(16)+" ("+q.bitLength()+")"); // Now generate g (algorithm from appendix 4 of FIPS 186-2) NativeBigInteger g; do { BigInteger e = p.subtract(BigInteger.ONE).divide(q); NativeBigInteger h; do { h = new NativeBigInteger(hashLength, r); } while(h.compareTo(p.subtract(BigInteger.ONE)) >= 0); g = (NativeBigInteger) h.modPow(e, p); } while (g.equals(BigInteger.ONE)); DSAGroup group = new DSAGroup(p, q, g); System.out.println("g: "+g.toHexString()+" ("+g.bitLength()+")"); System.out.println("Group: "+group.verboseToString()); long totalSigTime = 0; long totalVerifyTime = 0; for(int i=0;i<10000;i++) { byte[] testHash = new byte[hashLength/8]; r.nextBytes(testHash); NativeBigInteger m = new NativeBigInteger(1, testHash); DSAPrivateKey privKey = new DSAPrivateKey(group, r); DSAPublicKey pubKey = new DSAPublicKey(group, privKey); long now = System.currentTimeMillis(); DSASignature sig = DSA.sign(group, privKey, m, r); long middle = System.currentTimeMillis(); boolean success = DSA.verify(pubKey, sig, m); long end = System.currentTimeMillis(); if(success) { totalSigTime += (middle - now); totalVerifyTime += (end - middle); } else { System.out.println("SIGNATURE VERIFICATION FAILED!!!"); System.exit(1); } } System.out.println("Successfully signed and verified 10,000 times, average sig time "+totalSigTime / 10000.0 +", average verify time "+totalVerifyTime/10000.0); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/DSAGroupGenerator.java/buggy/src/freenet/crypt/DSAGroupGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4076, 12, 8529, 1830, 436, 16, 509, 1651, 1782, 16, 16717, 24198, 293, 16, 16717, 24198, 1043, 16, 1160, 8526, 5009, 16, 509, 3895, 13, 288, 377, 202, 3163, 18, 659, 18, 8222, 2932, 1090, 2056, 30, 13773, 7037, 1304, 18, 3890, 774, 7037, 12, 12407, 10019, 377, 202, 3163, 18, 659, 18, 8222, 2932, 7240, 654, 30, 13773, 7476, 1769, 377, 202, 3163, 18, 659, 18, 8222, 2932, 84, 30, 13773, 84, 18, 10492, 12, 2313, 13, 9078, 7566, 15, 84, 18, 3682, 1782, 1435, 9078, 2225, 1769, 377, 202, 3163, 18, 659, 18, 8222, 2932, 85, 30, 13773, 85, 18, 10492, 12, 2313, 13, 9078, 7566, 15, 85, 18, 3682, 1782, 1435, 9078, 2225, 1769, 202, 202, 759, 4494, 2103, 314, 261, 12743, 628, 714, 697, 1059, 434, 478, 2579, 55, 404, 5292, 17, 22, 13, 377, 202, 9220, 24198, 314, 31, 377, 202, 2896, 288, 377, 202, 202, 24198, 425, 273, 293, 18, 1717, 1575, 12, 24198, 18, 5998, 2934, 2892, 831, 12, 85, 1769, 377, 202, 202, 9220, 24198, 366, 31, 377, 202, 202, 2896, 288, 377, 1082, 202, 76, 273, 394, 16717, 24198, 12, 2816, 1782, 16, 436, 1769, 377, 202, 202, 97, 1323, 12, 76, 18, 9877, 774, 12, 84, 18, 1717, 1575, 12, 24198, 18, 5998, 3719, 1545, 374, 1769, 377, 202, 202, 75, 273, 261, 9220, 24198, 13, 366, 18, 1711, 28289, 12, 73, 16, 293, 1769, 377, 202, 97, 1323, 261, 75, 18, 14963, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4076, 12, 8529, 1830, 436, 16, 509, 1651, 1782, 16, 16717, 24198, 293, 16, 16717, 24198, 1043, 16, 1160, 8526, 5009, 16, 509, 3895, 13, 288, 377, 202, 3163, 18, 659, 18, 8222, 2932, 1090, 2056, 30, 13773, 7037, 1304, 18, 3890, 774, 7037, 12, 12407, 10019, 377, 202, 3163, 18, 659, 18, 8222, 2932, 7240, 654, 30, 13773, 7476, 1769, 377, 202, 3163, 18, 659, 18, 8222, 2932, 84, 30, 13773, 84, 18, 10492, 12, 2313, 13, 9078, 7566, 15, 84, 18, 3682, 1782, 1435, 9078, 2225, 1769, 377, 202, 3163, 18, 659, 18, 8222, 2932, 85, 30, 13773, 85, 18, 10492, 12, 2313, 13, 9078, 7566, 15, 85, 18, 3682, 1782, 1435, 9078, 2 ]
public org.quickfix.field.BookingRefID getBookingRefID() throws FieldNotFound { org.quickfix.field.BookingRefID value = new org.quickfix.field.BookingRefID();
public quickfix.field.BookingRefID getBookingRefID() throws FieldNotFound { quickfix.field.BookingRefID value = new quickfix.field.BookingRefID();
public org.quickfix.field.BookingRefID getBookingRefID() throws FieldNotFound { org.quickfix.field.BookingRefID value = new org.quickfix.field.BookingRefID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 2882, 1184, 310, 1957, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 2882, 1184, 310, 1957, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 9084, 310, 1957, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setScaling(controller.getAnimationProgress() < 1.0);
setScaling(controller.isAnimationInProgress());
public void layout(IFigure parent) { if (isScaling()) { scaledLayout(parent); setScaling(controller.getAnimationProgress() < 1.0); } else { if (controller != null && controller.isAnimationInProgress()) { captureSourceSizes(parent); normalLayout(parent); captureDestinationSizes(parent); setScaling(true); scaledLayout(parent); } else { normalLayout(parent); } }}
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/d467df7047a68db6153692c7c1ea88c46e225fe1/PaletteToolbarLayout.java/buggy/org.eclipse.gef/src/org/eclipse/gef/ui/palette/editparts/PaletteToolbarLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3511, 12, 5501, 15906, 982, 13, 288, 202, 430, 261, 291, 8471, 10756, 288, 202, 202, 20665, 3744, 12, 2938, 1769, 202, 202, 542, 8471, 12, 5723, 18, 588, 10816, 5491, 1435, 411, 404, 18, 20, 1769, 202, 97, 469, 288, 202, 202, 430, 261, 5723, 480, 446, 597, 2596, 18, 291, 10816, 13434, 10756, 288, 1082, 202, 19250, 1830, 11923, 12, 2938, 1769, 1082, 202, 6130, 3744, 12, 2938, 1769, 1082, 202, 19250, 5683, 11923, 12, 2938, 1769, 1082, 202, 542, 8471, 12, 3767, 1769, 1082, 202, 20665, 3744, 12, 2938, 1769, 202, 202, 97, 469, 288, 1082, 202, 6130, 3744, 12, 2938, 1769, 202, 202, 97, 202, 9090, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3511, 12, 5501, 15906, 982, 13, 288, 202, 430, 261, 291, 8471, 10756, 288, 202, 202, 20665, 3744, 12, 2938, 1769, 202, 202, 542, 8471, 12, 5723, 18, 588, 10816, 5491, 1435, 411, 404, 18, 20, 1769, 202, 97, 469, 288, 202, 202, 430, 261, 5723, 480, 446, 597, 2596, 18, 291, 10816, 13434, 10756, 288, 1082, 202, 19250, 1830, 11923, 12, 2938, 1769, 1082, 202, 6130, 3744, 12, 2938, 1769, 1082, 202, 19250, 5683, 11923, 12, 2938, 1769, 1082, 202, 542, 8471, 12, 3767, 1769, 1082, 202, 20665, 3744, 12, 2938, 1769, 202, 202, 97, 469, 288, 1082, 202, 6130, 3744, 12, 2938, 1769, 202, 202, 97, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID();
public quickfix.field.SecurityID getSecurityID() throws FieldNotFound { quickfix.field.SecurityID value = new quickfix.field.SecurityID();
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/clean/src/java/src/quickfix/fix43/NewOrderMultileg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 19288, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 19288, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (jj_3R_86()) { jj_scanpos = xsp; if (jj_scan_token(75)) return true; }
if (jj_scan_token(28)) jj_scanpos = xsp; if (jj_3R_63()) return true; if (jj_scan_token(IDENTIFIER)) return true;
final private boolean jj_3_43() { if (jj_scan_token(AT)) return true; if (jj_3R_85()) return true; if (jj_scan_token(LPAREN)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_86()) { jj_scanpos = xsp; if (jj_scan_token(75)) return true; } return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 8942, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 789, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 7140, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5292, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5877, 3719, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 8942, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 789, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 7140, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5292, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5877, 3719, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100 ]
ErrorLogger.fail(e, "Couldn't toggle problem filter (not yet supported on Eclipse 3.2)", false);
MylarStatusHandler.fail(e, "Couldn't toggle problem filter (not yet supported on Eclipse 3.2)", false);
protected void toggleMarkerFilter(boolean enabled) { try { ProblemView view = getProblemView(); if (view != null) { Class viewClass = view.getClass(); try { // 3.1 way of removing existing filter Field problemFilter = viewClass.getDeclaredField("problemFilter"); problemFilter.setAccessible(true); defaultFilter = (MarkerFilter)problemFilter.get(view); Class filterClass = defaultFilter.getClass().getSuperclass(); Method method = filterClass.getDeclaredMethod("setEnabled", new Class[] { boolean.class } ); method.setAccessible(true); method.invoke(defaultFilter, new Object[] { enabled }); Method refresh = view.getClass().getSuperclass().getDeclaredMethod("refresh", new Class[] { } ); refresh.setAccessible(true); refresh.invoke(view, new Object[] { } ); } catch (NoSuchFieldException nfe) { // 3.2 way } } } catch (Exception e) { ErrorLogger.fail(e, "Couldn't toggle problem filter (not yet supported on Eclipse 3.2)", false); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5fee268477d34fc0e1b9e54dd641c0715fae348c/ApplyMylarToProblemsListAction.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/ide/ui/actions/ApplyMylarToProblemsListAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 10486, 7078, 1586, 12, 6494, 3696, 13, 288, 3639, 775, 288, 540, 202, 13719, 1767, 1476, 273, 3570, 70, 3269, 1767, 5621, 540, 202, 430, 261, 1945, 480, 446, 13, 288, 540, 202, 202, 797, 1476, 797, 273, 1476, 18, 588, 797, 5621, 540, 1082, 540, 202, 202, 698, 288, 1850, 1082, 202, 759, 890, 18, 21, 4031, 434, 9427, 2062, 1034, 202, 540, 202, 202, 974, 6199, 1586, 273, 1476, 797, 18, 588, 18888, 974, 2932, 18968, 1586, 8863, 202, 540, 202, 202, 18968, 1586, 18, 542, 10451, 12, 3767, 1769, 202, 540, 202, 202, 1886, 1586, 273, 261, 7078, 1586, 13, 18968, 1586, 18, 588, 12, 1945, 1769, 1082, 540, 9506, 540, 202, 202, 797, 1034, 797, 273, 805, 1586, 18, 588, 797, 7675, 588, 28471, 5621, 202, 540, 202, 202, 1305, 707, 273, 1034, 797, 18, 588, 18888, 1305, 2932, 542, 1526, 3113, 394, 1659, 8526, 288, 1250, 18, 1106, 289, 11272, 202, 7734, 707, 18, 542, 10451, 12, 3767, 1769, 202, 540, 202, 202, 2039, 18, 14407, 12, 1886, 1586, 16, 394, 1033, 8526, 288, 3696, 15549, 202, 7734, 2985, 4460, 273, 1476, 18, 588, 797, 7675, 588, 28471, 7675, 588, 18888, 1305, 2932, 9144, 3113, 394, 1659, 8526, 288, 289, 11272, 202, 7734, 4460, 18, 542, 10451, 12, 3767, 1769, 202, 7734, 4460, 18, 14407, 12, 1945, 16, 394, 1033, 8526, 288, 289, 11272, 540, 202, 202, 97, 1044, 261, 28341, 28846, 25386, 13, 288, 540, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 10486, 7078, 1586, 12, 6494, 3696, 13, 288, 3639, 775, 288, 540, 202, 13719, 1767, 1476, 273, 3570, 70, 3269, 1767, 5621, 540, 202, 430, 261, 1945, 480, 446, 13, 288, 540, 202, 202, 797, 1476, 797, 273, 1476, 18, 588, 797, 5621, 540, 1082, 540, 202, 202, 698, 288, 1850, 1082, 202, 759, 890, 18, 21, 4031, 434, 9427, 2062, 1034, 202, 540, 202, 202, 974, 6199, 1586, 273, 1476, 797, 18, 588, 18888, 974, 2932, 18968, 1586, 8863, 202, 540, 202, 202, 18968, 1586, 18, 542, 10451, 12, 3767, 1769, 202, 540, 202, 202, 1886, 1586, 273, 261, 7078, 1586, 13, 18968, 1586, 18, 588, 12, 1945, 1769, 1082, 540, 9506, 540, 202, 2 ]
if (items != null)
if (items != null) {
protected Control createControl(Composite parent) { combo = new Combo(parent, SWT.NONE); combo.setToolTipText(WorkbenchMessages.WorkbenchWindow_searchCombo_toolTip); String[] items = WorkbenchPlugin.getDefault().getDialogSettings() .getArray(ID); if (items != null) combo.setItems(items); combo.setText(WorkbenchMessages.WorkbenchWindow_searchCombo_text); combo.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent e) { if (e.character == SWT.CR) { doSearch(combo.getText(), true); } } }); combo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { int index = combo.getSelectionIndex(); if (index != -1) doSearch(combo.getItem(index), false); } }); return combo; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/HelpSearchContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/actions/HelpSearchContributionItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 25053, 273, 394, 1286, 1075, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 25053, 18, 542, 29250, 1528, 12, 2421, 22144, 5058, 18, 2421, 22144, 3829, 67, 3072, 16156, 67, 6738, 14189, 1769, 3196, 202, 780, 8526, 1516, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 1435, 9506, 202, 18, 588, 1076, 12, 734, 1769, 202, 202, 430, 261, 3319, 480, 446, 13, 1082, 202, 25053, 18, 542, 3126, 12, 3319, 1769, 202, 202, 25053, 18, 542, 1528, 12, 2421, 22144, 5058, 18, 2421, 22144, 3829, 67, 3072, 16156, 67, 955, 1769, 3196, 202, 25053, 18, 1289, 653, 2223, 12, 2704, 1929, 4216, 1435, 288, 1082, 202, 482, 918, 498, 26363, 12, 653, 1133, 425, 13, 288, 9506, 202, 430, 261, 73, 18, 11560, 422, 348, 8588, 18, 5093, 13, 288, 6862, 202, 2896, 2979, 12, 25053, 18, 588, 1528, 9334, 638, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 22938, 202, 202, 25053, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 1082, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 474, 770, 273, 16778, 18, 588, 6233, 1016, 5621, 9506, 202, 430, 261, 1615, 480, 300, 21, 13, 6862, 202, 2896, 2979, 12, 25053, 18, 588, 1180, 12, 1615, 3631, 629, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 2463, 16778, 31, 202, 97, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 25053, 273, 394, 1286, 1075, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 25053, 18, 542, 29250, 1528, 12, 2421, 22144, 5058, 18, 2421, 22144, 3829, 67, 3072, 16156, 67, 6738, 14189, 1769, 3196, 202, 780, 8526, 1516, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 1435, 9506, 202, 18, 588, 1076, 12, 734, 1769, 202, 202, 430, 261, 3319, 480, 446, 13, 1082, 202, 25053, 18, 542, 3126, 12, 3319, 1769, 202, 202, 25053, 18, 542, 1528, 12, 2421, 22144, 5058, 18, 2421, 22144, 3829, 67, 3072, 16156, 67, 955, 1769, 3196, 202, 25053, 18, 1289, 653, 2223, 12, 2704, 2 ]
ctx.statManager().createRateStat("client.dispatchNoACK", "How often we send a client message without asking for an ACK?", "ClientMessages", new long[] { 60*1000l, 5*60*1000l, 60*60*1000l });
ctx.statManager().createRateStat("client.dispatchNoACK", "Repeated message sends to a peer (no ack required)", "ClientMessages", new long[] { 60*1000l, 5*60*1000l, 60*60*1000l });
public OutboundClientMessageOneShotJob(RouterContext ctx, ClientMessage msg) { super(ctx); _log = ctx.logManager().getLog(OutboundClientMessageOneShotJob.class); ctx.statManager().createFrequencyStat("client.sendMessageFailFrequency", "How often does a client fail to send a message?", "ClientMessages", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.sendMessageSize", "How large are messages sent by the client?", "ClientMessages", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.sendAckTime", "How long does it take to get an ACK back from a message?", "ClientMessages", new long[] { 60*1000l, 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.timeoutCongestionTunnel", "How lagged our tunnels are when a send times out?", "ClientMessages", new long[] { 60*1000l, 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.timeoutCongestionMessage", "How fast we process messages locally when a send times out?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.timeoutCongestionInbound", "How much faster we are receiving data than our average bps when a send times out?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.leaseSetFoundLocally", "How often we tried to look for a leaseSet and found it locally?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.leaseSetFoundRemoteTime", "How long we tried to look fora remote leaseSet (when we succeeded)?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.leaseSetFailedRemoteTime", "How long we tried to look for a remote leaseSet (when we failed)?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.dispatchPrepareTime", "How long until we've queued up the dispatch job (since we started)?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.dispatchTime", "How long until we've dispatched the message (since we started)?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.dispatchSendTime", "How long the actual dispatching takes?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.dispatchNoTunnels", "How long after start do we run out of tunnels to send/receive with?", "ClientMessages", new long[] { 5*60*1000l, 60*60*1000l, 24*60*60*1000l }); ctx.statManager().createRateStat("client.dispatchNoACK", "How often we send a client message without asking for an ACK?", "ClientMessages", new long[] { 60*1000l, 5*60*1000l, 60*60*1000l }); long timeoutMs = OVERALL_TIMEOUT_MS_DEFAULT; _clientMessage = msg; _clientMessageId = msg.getMessageId(); _clientMessageSize = msg.getPayload().getSize(); _from = msg.getFromDestination(); _to = msg.getDestination(); _toString = _to.calculateHash().toBase64().substring(0,4); _leaseSetLookupBegin = -1; String param = msg.getSenderConfig().getOptions().getProperty(OVERALL_TIMEOUT_MS_PARAM); if (param == null) param = ctx.router().getConfigSetting(OVERALL_TIMEOUT_MS_PARAM); if (param != null) { try { timeoutMs = Long.parseLong(param); } catch (NumberFormatException nfe) { if (_log.shouldLog(Log.WARN)) _log.warn("Invalid client message timeout specified [" + param + "], defaulting to " + OVERALL_TIMEOUT_MS_DEFAULT, nfe); timeoutMs = OVERALL_TIMEOUT_MS_DEFAULT; } } _start = getContext().clock().now(); _overallExpiration = timeoutMs + _start; _shouldBundle = getShouldBundle(); _finished = false; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/c5ddfabfe95f67f7349f2f4f3aca700bf98415fb/OutboundClientMessageOneShotJob.java/buggy/router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2976, 3653, 1227, 1079, 3335, 1555, 352, 2278, 12, 8259, 1042, 1103, 16, 2445, 1079, 1234, 13, 288, 3639, 2240, 12, 5900, 1769, 3639, 389, 1330, 273, 1103, 18, 1330, 1318, 7675, 588, 1343, 12, 17873, 1227, 1079, 3335, 1555, 352, 2278, 18, 1106, 1769, 7734, 1103, 18, 5642, 1318, 7675, 2640, 13865, 5000, 2932, 2625, 18, 4661, 1079, 3754, 13865, 3113, 315, 44, 543, 16337, 1552, 279, 1004, 2321, 358, 1366, 279, 883, 35, 3113, 315, 1227, 5058, 3113, 394, 1525, 8526, 288, 4752, 14, 18088, 80, 16, 4752, 14, 4848, 14, 18088, 80, 16, 4248, 14, 4848, 14, 4848, 14, 18088, 80, 15549, 3639, 1103, 18, 5642, 1318, 7675, 2640, 4727, 5000, 2932, 2625, 18, 4661, 1079, 1225, 3113, 315, 44, 543, 7876, 854, 2743, 3271, 635, 326, 1004, 35, 3113, 315, 1227, 5058, 3113, 394, 1525, 8526, 288, 4752, 14, 18088, 80, 16, 4752, 14, 4848, 14, 18088, 80, 16, 4248, 14, 4848, 14, 4848, 14, 18088, 80, 15549, 3639, 1103, 18, 5642, 1318, 7675, 2640, 4727, 5000, 2932, 2625, 18, 4661, 11931, 950, 3113, 315, 44, 543, 1525, 1552, 518, 4862, 358, 336, 392, 26069, 1473, 628, 279, 883, 35, 3113, 315, 1227, 5058, 3113, 394, 1525, 8526, 288, 4752, 14, 18088, 80, 16, 1381, 14, 4848, 14, 18088, 80, 16, 4752, 14, 4848, 14, 18088, 80, 16, 4248, 14, 4848, 14, 4848, 14, 18088, 80, 15549, 3639, 1103, 18, 5642, 1318, 7675, 2640, 4727, 5000, 2932, 2625, 18, 4538, 442, 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, 2976, 3653, 1227, 1079, 3335, 1555, 352, 2278, 12, 8259, 1042, 1103, 16, 2445, 1079, 1234, 13, 288, 3639, 2240, 12, 5900, 1769, 3639, 389, 1330, 273, 1103, 18, 1330, 1318, 7675, 588, 1343, 12, 17873, 1227, 1079, 3335, 1555, 352, 2278, 18, 1106, 1769, 7734, 1103, 18, 5642, 1318, 7675, 2640, 13865, 5000, 2932, 2625, 18, 4661, 1079, 3754, 13865, 3113, 315, 44, 543, 16337, 1552, 279, 1004, 2321, 358, 1366, 279, 883, 35, 3113, 315, 1227, 5058, 3113, 394, 1525, 8526, 288, 4752, 14, 18088, 80, 16, 4752, 14, 4848, 14, 18088, 80, 16, 4248, 14, 4848, 14, 4848, 14, 18088, 80, 15549, 3639, 1103, 18, 5642, 1318, 7675, 2640, 4727, 5000, 2932, 2625, 18, 2 ]
_accumType( elementType )));
accumType));
protected void initializeSyms() { funSymName = "leftTracer"; nestedMap = new HashMap(); super.initializeSyms(); this.accumSym = newParam("accum") // accumulator .setType( _accumType( elementType )); this.funSym .setType( new Type.MethodType( new Symbol[] { accumSym, iterSym, stateSym}, _accumType( elementType ))); // 2 do: rename switchresultsym to something else... this.resultSym = new TermSymbol( //Kinds.VAR, pos, cf.fresh.newName("trace"), owner, 0 ) .setType( _accumType( elementType ) ) ; }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/c743c68faa7ea719df74394bd744808e2f6090f6/LeftTracerInScala.java/clean/sources/scalac/transformer/matching/LeftTracerInScala.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 10876, 959, 1435, 288, 3639, 9831, 11901, 461, 273, 315, 4482, 19661, 14432, 3639, 4764, 863, 273, 394, 4317, 5621, 3639, 2240, 18, 11160, 10876, 959, 5621, 3639, 333, 18, 8981, 379, 11901, 273, 394, 786, 2932, 8981, 379, 7923, 10792, 368, 13514, 5411, 263, 542, 559, 12, 389, 8981, 379, 559, 12, 21427, 262, 1769, 3639, 333, 18, 12125, 11901, 5411, 263, 542, 559, 12, 394, 1412, 18, 21988, 12, 394, 8565, 8526, 288, 7734, 22778, 11901, 16, 1400, 11901, 16, 919, 11901, 5779, 4766, 6647, 22778, 559, 10019, 3639, 368, 576, 741, 30, 6472, 1620, 4717, 2942, 358, 5943, 469, 2777, 3639, 333, 18, 2088, 11901, 273, 394, 6820, 5335, 12, 368, 5677, 87, 18, 7716, 16, 4766, 3639, 949, 16, 4766, 3639, 6080, 18, 74, 1955, 18, 2704, 461, 2932, 5129, 6, 3631, 4766, 3639, 3410, 16, 4766, 3639, 374, 262, 5411, 263, 542, 559, 12, 389, 8981, 379, 559, 12, 21427, 262, 262, 274, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 10876, 959, 1435, 288, 3639, 9831, 11901, 461, 273, 315, 4482, 19661, 14432, 3639, 4764, 863, 273, 394, 4317, 5621, 3639, 2240, 18, 11160, 10876, 959, 5621, 3639, 333, 18, 8981, 379, 11901, 273, 394, 786, 2932, 8981, 379, 7923, 10792, 368, 13514, 5411, 263, 542, 559, 12, 389, 8981, 379, 559, 12, 21427, 262, 1769, 3639, 333, 18, 12125, 11901, 5411, 263, 542, 559, 12, 394, 1412, 18, 21988, 12, 394, 8565, 8526, 288, 7734, 22778, 11901, 16, 1400, 11901, 16, 919, 11901, 5779, 4766, 6647, 22778, 559, 10019, 3639, 368, 576, 741, 30, 6472, 1620, 4717, 2942, 358, 5943, 469, 2777, 3639, 333, 18, 2088, 11901, 273, 394, 6820, 5335, 12, 368, 5677, 2 ]
doubleBond=true;
private boolean isBeginnOfDoubleBond(AtomContainer container, Atom a, Atom parent, boolean isDoubleBondSpecified[]){ int lengthAtom=container.getConnectedAtoms(a).length+a.getHydrogenCount(); if(lengthAtom!=3) return(false); Atom[] atoms=container.getConnectedAtoms(a); Atom one=null; Atom two=null; boolean doubleBond=false; Atom nextAtom=null; for(int i=0;i< atoms.length;i++){ if(atoms[i]!=parent&& container.getBond(atoms[i],a).getOrder()==CDKConstants.BONDORDER_DOUBLE&&isEndOfDoubleBond(container,atoms[i],a,isDoubleBondSpecified)){ nextAtom=atoms[i]; doubleBond=true; } if(atoms[i]!=parent&&one==null) one=atoms[i]; if(atoms[i]!=parent&&one!=null) two=atoms[i]; } if(one!=two && doubleBond && isDoubleBondSpecified[container.getBondNumber(a,nextAtom)]==true) return(true); else return(false); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/4b1e7af494c54e05c6aca5d83a127557efc5d979/SmilesGenerator.java/buggy/src/org/openscience/cdk/smiles/SmilesGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 353, 8149, 82, 951, 5265, 9807, 12, 3641, 2170, 1478, 16, 7149, 279, 16, 7149, 982, 16, 1250, 353, 5265, 9807, 17068, 63, 5717, 95, 565, 509, 769, 3641, 33, 3782, 18, 588, 8932, 14280, 12, 69, 2934, 2469, 15, 69, 18, 588, 17507, 24096, 1380, 5621, 565, 309, 12, 2469, 3641, 5, 33, 23, 13, 1377, 327, 12, 5743, 1769, 565, 7149, 8526, 9006, 33, 3782, 18, 588, 8932, 14280, 12, 69, 1769, 565, 7149, 1245, 33, 2011, 31, 565, 7149, 2795, 33, 2011, 31, 565, 1250, 1645, 9807, 33, 5743, 31, 565, 7149, 1024, 3641, 33, 2011, 31, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 9006, 18, 2469, 31, 77, 27245, 95, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 1478, 18, 588, 9807, 12, 14937, 63, 77, 6487, 69, 2934, 588, 2448, 1435, 631, 39, 3398, 2918, 18, 38, 673, 40, 7954, 67, 17088, 10, 10, 291, 23358, 5265, 9807, 12, 3782, 16, 14937, 63, 77, 6487, 69, 16, 291, 5265, 9807, 17068, 3719, 95, 3639, 1024, 3641, 33, 14937, 63, 77, 15533, 2398, 289, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 476, 631, 2011, 13, 3639, 1245, 33, 14937, 63, 77, 15533, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 476, 5, 33, 2011, 13, 3639, 2795, 33, 14937, 63, 77, 15533, 565, 289, 565, 309, 12, 476, 5, 33, 15415, 597, 1645, 9807, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 353, 8149, 82, 951, 5265, 9807, 12, 3641, 2170, 1478, 16, 7149, 279, 16, 7149, 982, 16, 1250, 353, 5265, 9807, 17068, 63, 5717, 95, 565, 509, 769, 3641, 33, 3782, 18, 588, 8932, 14280, 12, 69, 2934, 2469, 15, 69, 18, 588, 17507, 24096, 1380, 5621, 565, 309, 12, 2469, 3641, 5, 33, 23, 13, 1377, 327, 12, 5743, 1769, 565, 7149, 8526, 9006, 33, 3782, 18, 588, 8932, 14280, 12, 69, 1769, 565, 7149, 1245, 33, 2011, 31, 565, 7149, 2795, 33, 2011, 31, 565, 1250, 1645, 9807, 33, 5743, 31, 565, 7149, 1024, 3641, 33, 2011, 31, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 9006, 18, 2469, 31, 77, 27245, 2 ]
log.debug("Stopped the UDP Receiver on port 514");
log.debug("Stopped the Syslog UDP Receiver");
public synchronized void stop() { // Set the category prefix ThreadCategory.setPrefix(LOG4J_CATEGORY); Category log = log(); setStatus(STOP_PENDING); // shutdown and wait on the background processing thread to exit. log.debug("exit: closing communication paths."); try { log.debug("stop: Closing SYSLOGD message session."); log.debug("stop: Syslog message session closed."); } catch (IllegalStateException e) { log.debug("stop: The Syslog session was already closed"); } log.debug("stop: Stopping queue processor."); m_udpEventReceiver.stop(); log.debug("Stopped the UDP Receiver on port 514"); setStatus(STOPPED); log.debug("stop: Syslogd stopped"); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/2403bedec6eedcf2681b95a033da86e84ab800db/Syslogd.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/syslogd/Syslogd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 2132, 1435, 288, 3639, 368, 1000, 326, 3150, 1633, 3639, 4884, 4457, 18, 542, 2244, 12, 4842, 24, 46, 67, 24847, 1769, 3639, 9856, 613, 273, 613, 5621, 3639, 9433, 12, 17513, 67, 25691, 1769, 3639, 368, 5731, 471, 2529, 603, 326, 5412, 4929, 2650, 358, 2427, 18, 3639, 613, 18, 4148, 2932, 8593, 30, 7647, 18279, 2953, 1199, 1769, 3639, 775, 288, 5411, 613, 18, 4148, 2932, 5681, 30, 385, 10910, 7068, 55, 4842, 40, 883, 1339, 1199, 1769, 5411, 613, 18, 4148, 2932, 5681, 30, 16995, 1330, 883, 1339, 4375, 1199, 1769, 3639, 289, 1044, 261, 12195, 5060, 425, 13, 288, 5411, 613, 18, 4148, 2932, 5681, 30, 1021, 16995, 1330, 1339, 1703, 1818, 4375, 8863, 3639, 289, 3639, 613, 18, 4148, 2932, 5681, 30, 5131, 1382, 2389, 6659, 1199, 1769, 3639, 312, 67, 26029, 1133, 12952, 18, 5681, 5621, 3639, 613, 18, 4148, 2932, 15294, 326, 16995, 1330, 16230, 31020, 8863, 3639, 9433, 12, 17513, 12120, 1769, 3639, 613, 18, 4148, 2932, 5681, 30, 16995, 1330, 72, 9627, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 2132, 1435, 288, 3639, 368, 1000, 326, 3150, 1633, 3639, 4884, 4457, 18, 542, 2244, 12, 4842, 24, 46, 67, 24847, 1769, 3639, 9856, 613, 273, 613, 5621, 3639, 9433, 12, 17513, 67, 25691, 1769, 3639, 368, 5731, 471, 2529, 603, 326, 5412, 4929, 2650, 358, 2427, 18, 3639, 613, 18, 4148, 2932, 8593, 30, 7647, 18279, 2953, 1199, 1769, 3639, 775, 288, 5411, 613, 18, 4148, 2932, 5681, 30, 385, 10910, 7068, 55, 4842, 40, 883, 1339, 1199, 1769, 5411, 613, 18, 4148, 2932, 5681, 30, 16995, 1330, 883, 1339, 4375, 1199, 1769, 3639, 289, 1044, 261, 12195, 5060, 425, 13, 288, 5411, 613, 18, 4148, 2932, 5681, 30, 1021, 16995, 1330, 1339, 1703, 2 ]
result.close();
public int getSQLType() throws SQLException { if(sql_type == -1) { ResultSet result = (postgresql.ResultSet)conn.ExecSQL("select typname from pg_type where oid = " + oid); if (result.getColumnCount() != 1 || result.getTupleCount() != 1) throw new SQLException("Unexpected return from query for type"); result.next(); type_name = result.getString(1); sql_type = getSQLType(type_name); result.close(); } return sql_type; }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/b542fa1a6e838d3e32857cdfbe8aeff940a91c74/Field.java/buggy/src/interfaces/jdbc/postgresql/Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 21708, 559, 1435, 1216, 6483, 225, 288, 565, 309, 12, 4669, 67, 723, 422, 300, 21, 13, 288, 1377, 10842, 563, 273, 261, 2767, 24330, 18, 13198, 13, 4646, 18, 1905, 3997, 2932, 4025, 3815, 529, 628, 7184, 67, 723, 1625, 7764, 273, 315, 397, 7764, 1769, 1377, 309, 261, 2088, 18, 588, 1494, 1380, 1435, 480, 404, 747, 563, 18, 588, 9038, 1380, 1435, 480, 404, 13, 202, 12849, 394, 6483, 2932, 7762, 327, 628, 843, 364, 618, 8863, 1377, 563, 18, 4285, 5621, 1377, 618, 67, 529, 273, 563, 18, 588, 780, 12, 21, 1769, 1377, 1847, 67, 723, 273, 21708, 559, 12, 723, 67, 529, 1769, 540, 289, 565, 327, 1847, 67, 723, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 21708, 559, 1435, 1216, 6483, 225, 288, 565, 309, 12, 4669, 67, 723, 422, 300, 21, 13, 288, 1377, 10842, 563, 273, 261, 2767, 24330, 18, 13198, 13, 4646, 18, 1905, 3997, 2932, 4025, 3815, 529, 628, 7184, 67, 723, 1625, 7764, 273, 315, 397, 7764, 1769, 1377, 309, 261, 2088, 18, 588, 1494, 1380, 1435, 480, 404, 747, 563, 18, 588, 9038, 1380, 1435, 480, 404, 13, 202, 12849, 394, 6483, 2932, 7762, 327, 628, 843, 364, 618, 8863, 1377, 563, 18, 4285, 5621, 1377, 618, 67, 529, 273, 563, 18, 588, 780, 12, 21, 1769, 1377, 1847, 67, 723, 273, 21708, 559, 12, 723, 67, 529, 1769, 540, 289, 565, 327, 1847, 67, 723, 2 ]
if (inFunction && vars.get(name) != null && !inWithStatement()) {
if (inFunction && vars.getVariable(name) != null && !inWithStatement()) {
protected void visitCall(Node node, Node tree) { /* * For * Call(GetProp(a, b), c, d) // or GetElem... * we wish to evaluate as * Call(GetProp(tmp=a, b), tmp, c, d) * * for * Call(Name("a"), b, c) * we wish to evaluate as * Call(GetProp(tmp=GetBase("a"), "a"), tmp, b, c) * * and for * Call(a, b, c); * we wish to evaluate as * Call(tmp=a, Parent(tmp), c, d) */ Node left = node.getFirstChild(); // count the arguments int argCount = 0; Node arg = left.getNextSibling(); while (arg != null) { arg = arg.getNextSibling(); argCount++; } boolean addGetThis = false; if (left.getType() == TokenStream.NAME) { VariableTable vars = getVariableTable(tree); String name = left.getString(); if (inFunction && vars.get(name) != null && !inWithStatement()) { // call to a var. Transform to Call(GetVar("a"), b, c) left.setType(TokenStream.GETVAR); // fall through to code to add GetParent } else { // transform to Call(GetProp(GetBase("a"), "a"), b, c) node.removeChild(left); left.setType(TokenStream.GETBASE); Node str = left.cloneNode(); str.setType(TokenStream.STRING); Node getProp = new Node(TokenStream.GETPROP, left, str); node.addChildToFront(getProp); left = getProp; // Conditionally set a flag to add a GETTHIS node. // The getThis entry in the runtime will take a // Scriptable object intended to be used as a 'this' // and make sure that it is neither a With object or // an activation object. // Executing getThis requires at least two instanceof // tests, so we only include it if we are currently // inside a 'with' statement, or if we are executing // a script (to protect against an eval inside a with). addGetThis = inWithStatement() || !inFunction; // fall through to GETPROP code } } if (left.getType() != TokenStream.GETPROP && left.getType() != TokenStream.GETELEM) { node.removeChild(left); Node tmp = irFactory.createNewTemp(left); Node use = irFactory.createUseTemp(tmp); use.putProp(Node.TEMP_PROP, tmp); Node parent = new Node(TokenStream.PARENT, use); node.addChildToFront(parent); node.addChildToFront(tmp); return; } Node leftLeft = left.getFirstChild(); left.removeChild(leftLeft); Node tmp = irFactory.createNewTemp(leftLeft); left.addChildToFront(tmp); Node use = irFactory.createUseTemp(tmp); use.putProp(Node.TEMP_PROP, tmp); if (addGetThis) use = new Node(TokenStream.GETTHIS, use); node.addChildAfter(use, left); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/0470e048abb345f567d5fda1e9564715a9f4d5d7/NodeTransformer.java/buggy/js/rhino/src/org/mozilla/javascript/NodeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3757, 1477, 12, 907, 756, 16, 2029, 2151, 13, 288, 3639, 1748, 540, 380, 2457, 540, 380, 1377, 3049, 12, 967, 4658, 12, 69, 16, 324, 3631, 276, 16, 302, 13, 282, 368, 578, 968, 7498, 2777, 540, 380, 732, 14302, 358, 5956, 487, 540, 380, 1377, 3049, 12, 967, 4658, 12, 5645, 33, 69, 16, 324, 3631, 1853, 16, 276, 16, 302, 13, 540, 380, 540, 380, 364, 540, 380, 1377, 3049, 12, 461, 2932, 69, 6, 3631, 324, 16, 276, 13, 540, 380, 732, 14302, 358, 5956, 487, 540, 380, 1377, 3049, 12, 967, 4658, 12, 5645, 33, 967, 2171, 2932, 69, 6, 3631, 315, 69, 6, 3631, 1853, 16, 324, 16, 276, 13, 540, 380, 540, 380, 471, 364, 540, 380, 1377, 3049, 12, 69, 16, 324, 16, 276, 1769, 540, 380, 732, 14302, 358, 5956, 487, 540, 380, 1377, 3049, 12, 5645, 33, 69, 16, 9520, 12, 5645, 3631, 276, 16, 302, 13, 540, 1195, 3639, 2029, 2002, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 368, 1056, 326, 1775, 3639, 509, 1501, 1380, 273, 374, 31, 3639, 2029, 1501, 273, 2002, 18, 588, 2134, 10291, 5621, 3639, 1323, 261, 3175, 480, 446, 13, 288, 5411, 1501, 273, 1501, 18, 588, 2134, 10291, 5621, 5411, 1501, 1380, 9904, 31, 3639, 289, 3639, 1250, 527, 967, 2503, 273, 629, 31, 3639, 309, 261, 4482, 18, 588, 559, 1435, 422, 3155, 1228, 18, 1985, 13, 288, 5411, 7110, 1388, 4153, 273, 13522, 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, 3757, 1477, 12, 907, 756, 16, 2029, 2151, 13, 288, 3639, 1748, 540, 380, 2457, 540, 380, 1377, 3049, 12, 967, 4658, 12, 69, 16, 324, 3631, 276, 16, 302, 13, 282, 368, 578, 968, 7498, 2777, 540, 380, 732, 14302, 358, 5956, 487, 540, 380, 1377, 3049, 12, 967, 4658, 12, 5645, 33, 69, 16, 324, 3631, 1853, 16, 276, 16, 302, 13, 540, 380, 540, 380, 364, 540, 380, 1377, 3049, 12, 461, 2932, 69, 6, 3631, 324, 16, 276, 13, 540, 380, 732, 14302, 358, 5956, 487, 540, 380, 1377, 3049, 12, 967, 4658, 12, 5645, 33, 967, 2171, 2932, 69, 6, 3631, 315, 69, 6, 3631, 1853, 16, 324, 16, 276, 13, 2 ]
{ selection = new TreePath[] { path }; }
{ selection = new TreePath[] { path }; }
public void setSelectionPath(TreePath path) { selection = new TreePath[] { path }; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/DefaultTreeSelectionModel.java/buggy/libraries/javalib/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 6233, 743, 12, 2471, 743, 589, 13, 225, 288, 565, 4421, 273, 394, 4902, 743, 8526, 288, 589, 289, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 6233, 743, 12, 2471, 743, 589, 13, 225, 288, 565, 4421, 273, 394, 4902, 743, 8526, 288, 589, 289, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); int periodBuckets = periodMinutes/(MINUTES_PER_BUCKET) + (periodMinutes%(MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======");
int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); int periodBuckets = periodMinutes/(MINUTES_PER_BUCKET) + (periodMinutes%(MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======");
protected JFreeChart doChart(Connection con) throws JRScriptletException, SQLException { TimeSeries datasetA = new TimeSeries(seriesATitle, Minute.class); TimeSeries datasetB = new TimeSeries(seriesBTitle, Minute.class); TimeSeries datasetC = new TimeSeries(seriesCTitle, Minute.class); final int BUCKETS = 1440 / MINUTES_PER_BUCKET; // TRUNCATE TIME TO MINUTES, COMPUTE NUMBER OF QUERIES long startMinuteInMillis = (startDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long endMinuteInMillis = (endDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long periodMillis = endMinuteInMillis - startMinuteInMillis; int periodMinutes = (int)(periodMillis / MINUTE_INTERVAL); int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); int periodBuckets = periodMinutes/(MINUTES_PER_BUCKET) + (periodMinutes%(MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======"); System.out.println("start: " + (new Timestamp(startMinuteInMillis)).toString() ); System.out.println("end: " + (new Timestamp(endMinuteInMillis)).toString() ); System.out.println("mins: " + periodMinutes); System.out.println("days: " + queries); System.out.println("==================="); // ALLOCATE COUNTS int size; if( periodMinutes >= BUCKETS*MINUTES_PER_BUCKET ) size = BUCKETS; else size = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); double countsA[] = new double[ size ]; double countsB[] = new double[ size ]; double countsC[] = new double[ size ]; // SETUP TIMESTAMPS Timestamp startTimestamp, endTimestamp; startTimestamp = new Timestamp(startMinuteInMillis); endTimestamp = new Timestamp(endMinuteInMillis); totalQueryTime = System.currentTimeMillis(); String sql; int sidx; PreparedStatement stmt; ResultSet rs; // SETUP QUERY sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(*)" + " FROM tr_spyware_evt_cookie where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; // RUN QUERY sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countA = 0l; long countB = rs.getLong(2); long countC = rs.getLong(2); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsA[startInterval%BUCKETS] += countA; countsB[startInterval%BUCKETS] += countB; countsC[startInterval%BUCKETS] += countC; } try { stmt.close(); } catch (SQLException x) { } // SETUP QUERY sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(case blocked when true then 1 else null end)," + " count(case blocked when false then 1 else null end)" + " FROM tr_spyware_evt_access where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; // RUN QUERY sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countA = rs.getLong(3); long countB = rs.getLong(2); long countC = rs.getLong(2) + rs.getLong(3); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsA[startInterval%BUCKETS] += countA; countsB[startInterval%BUCKETS] += countB; countsC[startInterval%BUCKETS] += countC; } try { stmt.close(); } catch (SQLException x) { } // SETUP QUERY sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(*)" + " FROM tr_spyware_evt_activex where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; // RUN QUERY sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countA = 0l; long countB = rs.getLong(2); long countC = rs.getLong(2); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsA[startInterval%BUCKETS] += countA; countsB[startInterval%BUCKETS] += countB; countsC[startInterval%BUCKETS] += countC; } try { stmt.close(); } catch (SQLException x) { } // SETUP QUERY sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(*)" + " FROM tr_spyware_evt_blacklist where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; // RUN QUERY sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countA = 0l; long countB = rs.getLong(2); long countC = rs.getLong(2); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsA[startInterval%BUCKETS] += countA; countsB[startInterval%BUCKETS] += countB; countsC[startInterval%BUCKETS] += countC; } try { stmt.close(); } catch (SQLException x) { } // POST PROCESS: PRODUCE UNITS OF KBytes/sec., AVERAGED PER DAY, FROM BYTES PER BUCKET double averageACount, averageBCount, averageCCount; for(int i = 0; i < size; i++) { // MOVING AVERAGE averageACount = averageBCount = averageCCount = 0; int newIndex = 0; int denom = 0; for(int j=0; j<MOVING_AVERAGE_MINUTES; j++){ newIndex = i-j; if( newIndex >= 0 ) denom++; else continue; averageACount += countsA[newIndex] / (double)queries; averageBCount += countsB[newIndex] / (double)queries; averageCCount += countsC[newIndex] / (double)queries; } averageACount /= denom; averageBCount /= denom; averageCCount /= denom; java.util.Date date = new java.util.Date(startMinuteInMillis + i * MINUTE_INTERVAL * MINUTES_PER_BUCKET ); datasetA.addOrUpdate(new Minute(date), averageACount); datasetB.addOrUpdate(new Minute(date), averageBCount); datasetC.addOrUpdate(new Minute(date), averageCCount); } totalProcessTime = System.currentTimeMillis() - totalProcessTime; System.out.println("====== RESULTS ======"); System.out.println("TOTAL query time: " + totalQueryTime/1000 + "s" + " (" + ((float)totalQueryTime/(float)(totalQueryTime+totalProcessTime)) + ")"); System.out.println("TOTAL process time: " + totalProcessTime/1000 + "s" + " (" + ((float)totalProcessTime/(float)(totalQueryTime+totalProcessTime)) + ")"); System.out.println("====================="); TimeSeriesCollection tsc = new TimeSeriesCollection(); tsc.addSeries(datasetB); //tsc.addSeries(datasetA); //tsc.addSeries(datasetC); return ChartFactory.createTimeSeriesChart(chartTitle, timeAxisLabel, valueAxisLabel, tsc, true, true, false); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/07ff54b93f1733d747f51973df3480f02f3c2bbc/SummaryGraph.java/clean/tran/spyware/main/com/metavize/tran/spyware/reports/SummaryGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 9194, 7984, 741, 7984, 12, 1952, 356, 13, 1216, 27974, 3651, 1810, 503, 16, 6483, 565, 288, 3639, 26084, 3709, 37, 273, 394, 26084, 12, 10222, 789, 1280, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 38, 273, 394, 26084, 12, 10222, 38, 4247, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 39, 273, 394, 26084, 12, 10222, 1268, 1280, 16, 20734, 18, 1106, 1769, 202, 6385, 509, 10937, 14984, 55, 273, 5045, 7132, 342, 6989, 24080, 67, 3194, 67, 28888, 31, 3639, 368, 4235, 2124, 13000, 8721, 8493, 6989, 24080, 16, 13846, 9099, 15532, 15932, 10110, 654, 8805, 3639, 1525, 787, 18329, 16620, 273, 261, 1937, 1626, 18, 588, 950, 1435, 342, 21596, 67, 16435, 13, 380, 21596, 67, 16435, 31, 3639, 1525, 679, 18329, 16620, 273, 261, 409, 1626, 18, 588, 950, 1435, 342, 21596, 67, 16435, 13, 380, 21596, 67, 16435, 31, 3639, 1525, 3879, 4814, 273, 679, 18329, 16620, 300, 787, 18329, 16620, 31, 3639, 509, 3879, 13050, 273, 261, 474, 21433, 6908, 4814, 342, 21596, 67, 16435, 1769, 202, 474, 6218, 273, 3879, 13050, 19, 12, 28888, 55, 14, 6236, 24080, 67, 3194, 67, 28888, 13, 397, 261, 6908, 13050, 17105, 28888, 55, 14, 6236, 24080, 67, 3194, 67, 28888, 13, 34, 20, 35, 21, 30, 20, 1769, 202, 474, 3879, 14517, 273, 3879, 13050, 19, 12, 6236, 24080, 67, 3194, 67, 28888, 13, 397, 261, 6908, 13050, 17105, 6236, 24080, 67, 3194, 67, 28888, 13, 34, 20, 35, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 9194, 7984, 741, 7984, 12, 1952, 356, 13, 1216, 27974, 3651, 1810, 503, 16, 6483, 565, 288, 3639, 26084, 3709, 37, 273, 394, 26084, 12, 10222, 789, 1280, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 38, 273, 394, 26084, 12, 10222, 38, 4247, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 39, 273, 394, 26084, 12, 10222, 1268, 1280, 16, 20734, 18, 1106, 1769, 202, 6385, 509, 10937, 14984, 55, 273, 5045, 7132, 342, 6989, 24080, 67, 3194, 67, 28888, 31, 3639, 368, 4235, 2124, 13000, 8721, 8493, 6989, 24080, 16, 13846, 9099, 15532, 15932, 10110, 654, 8805, 3639, 1525, 787, 18329, 16620, 273, 261, 1937, 1626, 18, 588, 950, 1435, 342, 21596, 67, 16435, 2 ]
public Font() { this(UNDEFINED, UNDEFINED, UNDEFINED, null);
public Font(int family, float size, int style, Color color) { this.family = family; this.size = size; this.style = style; this.color = color;
public Font() { this(UNDEFINED, UNDEFINED, UNDEFINED, null); }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/004a8ad78296b904a29195fffa19764919407ac3/Font.java/buggy/itext/src/com/lowagie/text/Font.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1435, 288, 3639, 333, 12, 2124, 15544, 16, 21919, 16, 21919, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10063, 1435, 288, 3639, 333, 12, 2124, 15544, 16, 21919, 16, 21919, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
certFactorySpi.engineGenerateCertPath((InputStream) bais);
certFactorySpi.engineGenerateCertPath(bais);
public void testCertificateFactorySpi01() throws CertificateException, CRLException { CertificateFactorySpi certFactorySpi = (CertificateFactorySpi) new extCertificateFactorySpi(); assertTrue(certFactorySpi instanceof CertificateFactorySpi); ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); try { certFactorySpi.engineGenerateCertPath((InputStream) bais); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { } try { certFactorySpi.engineGenerateCertPath((InputStream) bais, ""); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { } try { List list = null; certFactorySpi.engineGenerateCertPath(list); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { } try { certFactorySpi.engineGetCertPathEncodings(); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { } Certificate cc = certFactorySpi .engineGenerateCertificate((InputStream) bais); assertNull("Not null Cerificate", cc); try { certFactorySpi.engineGenerateCertificate(null); fail("CertificateException must be thrown"); } catch (CertificateException e) { } Collection col = certFactorySpi .engineGenerateCertificates((InputStream) bais); assertNull("Not null Collection", col); try { certFactorySpi.engineGenerateCertificates(null); fail("CertificateException must be thrown"); } catch (CertificateException e) { } CRL ccCRL = certFactorySpi.engineGenerateCRL((InputStream) bais); assertNull("Not null CRL", ccCRL); try { certFactorySpi.engineGenerateCRL(null); fail("CRLException must be thrown"); } catch (CRLException e) { } Collection colCRL = certFactorySpi .engineGenerateCRLs((InputStream) bais); assertNull("Not null CRL", colCRL); try { certFactorySpi.engineGenerateCRLs(null); fail("CRLException must be thrown"); } catch (CRLException e) { } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/725ae047c421126dd0fcfebb60f514948e7cc007/CertificateFactorySpiTest.java/clean/modules/security/src/test/java/common/java/security/cert/CertificateFactorySpiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4719, 1733, 21887, 1611, 1435, 1216, 29551, 16, 5411, 26526, 503, 288, 3639, 6660, 1733, 21887, 3320, 1733, 21887, 273, 261, 4719, 1733, 21887, 13, 394, 1110, 4719, 1733, 21887, 5621, 3639, 1815, 5510, 12, 7593, 1733, 21887, 1276, 6660, 1733, 21887, 1769, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 2704, 1160, 63, 20, 19226, 3639, 775, 288, 5411, 3320, 1733, 21887, 18, 8944, 4625, 5461, 743, 12, 12124, 291, 1769, 5411, 2321, 2932, 8544, 10602, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 8544, 10602, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 3320, 1733, 21887, 18, 8944, 4625, 5461, 743, 12443, 4348, 13, 9846, 291, 16, 1408, 1769, 5411, 2321, 2932, 8544, 10602, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 8544, 10602, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 987, 666, 273, 446, 31, 5411, 3320, 1733, 21887, 18, 8944, 4625, 5461, 743, 12, 1098, 1769, 5411, 2321, 2932, 8544, 10602, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 8544, 10602, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 3320, 1733, 21887, 18, 8944, 967, 5461, 743, 25100, 899, 5621, 5411, 2321, 2932, 8544, 10602, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 8544, 10602, 425, 13, 288, 3639, 289, 3639, 6660, 4946, 273, 3320, 1733, 21887, 7734, 263, 8944, 4625, 4719, 12443, 4348, 13, 9846, 291, 1769, 3639, 1815, 2041, 2932, 1248, 446, 385, 264, 1507, 340, 3113, 4946, 1769, 3639, 775, 288, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4719, 1733, 21887, 1611, 1435, 1216, 29551, 16, 5411, 26526, 503, 288, 3639, 6660, 1733, 21887, 3320, 1733, 21887, 273, 261, 4719, 1733, 21887, 13, 394, 1110, 4719, 1733, 21887, 5621, 3639, 1815, 5510, 12, 7593, 1733, 21887, 1276, 6660, 1733, 21887, 1769, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 2704, 1160, 63, 20, 19226, 3639, 775, 288, 5411, 3320, 1733, 21887, 18, 8944, 4625, 5461, 743, 12, 12124, 291, 1769, 5411, 2321, 2932, 8544, 10602, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 8544, 10602, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 3320, 1733, 21887, 18, 8944, 4625, 5461, 743, 12443, 4348, 13, 9846, 291, 16, 1408, 1769, 5411, 2321, 2932, 2 ]
super (limit >> 1, limit >> 1, position >> 1, mark >> 1);
super (capacity, capacity, 0, -1);
public ShortViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/e88045708e1899ddaec5c5597476cbd3efd39266/ShortViewBufferImpl.java/clean/libjava/java/nio/ShortViewBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7925, 1767, 1892, 2828, 261, 12242, 7129, 16, 509, 1384, 16, 509, 7519, 16, 9506, 1377, 509, 1800, 16, 509, 1754, 16, 509, 2267, 16, 9506, 1377, 1250, 15075, 16, 30845, 14759, 13, 225, 288, 565, 2240, 261, 16017, 16, 7519, 16, 374, 16, 300, 21, 1769, 565, 333, 18, 9897, 273, 7129, 31, 565, 333, 18, 3348, 273, 1384, 31, 565, 333, 18, 896, 3386, 273, 15075, 31, 565, 333, 18, 22910, 273, 14759, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7925, 1767, 1892, 2828, 261, 12242, 7129, 16, 509, 1384, 16, 509, 7519, 16, 9506, 1377, 509, 1800, 16, 509, 1754, 16, 509, 2267, 16, 9506, 1377, 1250, 15075, 16, 30845, 14759, 13, 225, 288, 565, 2240, 261, 16017, 16, 7519, 16, 374, 16, 300, 21, 1769, 565, 333, 18, 9897, 273, 7129, 31, 565, 333, 18, 3348, 273, 1384, 31, 565, 333, 18, 896, 3386, 273, 15075, 31, 565, 333, 18, 22910, 273, 14759, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PropertyPageManager pageManager = new PropertyPageManager(); String title = ""; IAdaptable element = (IAdaptable) getStructuredSelection() .getFirstElement();
IAdaptable element = (IAdaptable) getStructuredSelection().getFirstElement();
public PreferenceDialog createDialog() { PropertyPageManager pageManager = new PropertyPageManager(); String title = "";//$NON-NLS-1$ // get selection IAdaptable element = (IAdaptable) getStructuredSelection() .getFirstElement(); if (element == null) return null; // load pages for the selection // fill the manager with contributions from the matching contributors PropertyPageContributorManager.getManager().contribute(pageManager, element); // testing if there are pages in the manager Iterator pages = pageManager.getElements(PreferenceManager.PRE_ORDER) .iterator(); String name = getName(element); if (!pages.hasNext()) { MessageDialog .openInformation( shell, WorkbenchMessages .getString("PropertyDialog.messageTitle"), //$NON-NLS-1$ WorkbenchMessages .format( "PropertyDialog.noPropertyMessage", new Object[] { name })); //$NON-NLS-1$ return null; } title = WorkbenchMessages.format( "PropertyDialog.propertyMessage", new Object[] { name }); //$NON-NLS-1$ PropertyDialog propertyDialog = new PropertyDialog(shell, pageManager, getStructuredSelection()); if (initialPageId != null) propertyDialog.setSelectedNode(initialPageId); propertyDialog.create(); if (pageData != null) { IPreferencePage page = propertyDialog.getCurrentPage(); if (page instanceof PreferencePage) ((PreferencePage) page).applyData(pageData); } propertyDialog.getShell().setText(title); WorkbenchHelp.setHelp(propertyDialog.getShell(), IWorkbenchHelpContextIds.PROPERTY_DIALOG); return propertyDialog; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/05487638d23edcd33f28502039810d951e6b5724/PropertyDialogAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PropertyDialogAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 29125, 6353, 752, 6353, 1435, 288, 202, 202, 1396, 1964, 1318, 1363, 1318, 273, 394, 4276, 1964, 1318, 5621, 202, 202, 780, 2077, 273, 1408, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 336, 4421, 202, 202, 45, 13716, 429, 930, 273, 261, 45, 13716, 429, 13, 1322, 8813, 2862, 6233, 1435, 9506, 202, 18, 588, 3759, 1046, 5621, 202, 202, 430, 261, 2956, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 759, 1262, 4689, 364, 326, 4421, 202, 202, 759, 3636, 326, 3301, 598, 13608, 6170, 628, 326, 3607, 13608, 13595, 202, 202, 1396, 1964, 442, 19293, 1318, 18, 588, 1318, 7675, 591, 887, 12, 2433, 1318, 16, 9506, 202, 2956, 1769, 202, 202, 759, 7769, 309, 1915, 854, 4689, 316, 326, 3301, 202, 202, 3198, 4689, 273, 1363, 1318, 18, 588, 3471, 12, 9624, 1318, 18, 3670, 67, 7954, 13, 9506, 202, 18, 9838, 5621, 202, 202, 780, 508, 273, 1723, 12, 2956, 1769, 202, 202, 430, 16051, 7267, 18, 5332, 2134, 10756, 288, 1082, 202, 1079, 6353, 6862, 202, 18, 3190, 5369, 12, 6862, 1082, 202, 10304, 16, 6862, 1082, 202, 2421, 22144, 5058, 6862, 6862, 202, 18, 588, 780, 2932, 1396, 6353, 18, 2150, 4247, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 1082, 202, 2421, 22144, 5058, 6862, 6862, 202, 18, 2139, 12, 6862, 6862, 1082, 202, 6, 1396, 6353, 18, 2135, 1396, 1079, 3113, 394, 1033, 8526, 288, 508, 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, 225, 202, 482, 29125, 6353, 752, 6353, 1435, 288, 202, 202, 1396, 1964, 1318, 1363, 1318, 273, 394, 4276, 1964, 1318, 5621, 202, 202, 780, 2077, 273, 1408, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 336, 4421, 202, 202, 45, 13716, 429, 930, 273, 261, 45, 13716, 429, 13, 1322, 8813, 2862, 6233, 1435, 9506, 202, 18, 588, 3759, 1046, 5621, 202, 202, 430, 261, 2956, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 759, 1262, 4689, 364, 326, 4421, 202, 202, 759, 3636, 326, 3301, 598, 13608, 6170, 628, 326, 3607, 13608, 13595, 202, 202, 1396, 1964, 442, 19293, 1318, 18, 588, 1318, 7675, 591, 887, 12, 2433, 1318, 16, 9506, 2 ]
int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry);
int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry);
private void processMovement(Entity entity, MovementData md) { // check for fleeing if (md.contains(MovementData.STEP_FLEE)) { // Unit has fled the battlefield. phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " flees the battlefield.\n"); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. phaseReport.append( " It carries " ) .append( passenger.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( passenger.getId(), Game.UNIT_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), Game.UNIT_IN_RETREAT) ); } } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( " It takes " ) .append( swarmer.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( swarmerId, Game.UNIT_IN_RETREAT ); send( createRemoveEntityPacket(swarmerId, Game.UNIT_IN_RETREAT) ); } game.removeEntity( entity.getId(), Game.UNIT_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), Game.UNIT_IN_RETREAT) ); return; } if (md.contains(MovementData.STEP_EJECT)) { phaseReport.append("\n" ).append( entity.getDisplayName()).append( " ejects.\n"); phaseReport.append(destroyEntity(entity, "ejection")); game.removeEntity( entity.getId(), Game.UNIT_SALVAGEABLE ); send(createRemoveEntityPacket(entity.getId(), Game.UNIT_SALVAGEABLE)); return; } // check for MASC failure if (entity instanceof Mech) { if (((Mech)entity).checkForMASCFailure(phaseReport)) { // no movement after that return; } } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int distance = 0; int mpUsed = 0; int moveType = Entity.MOVE_NONE; int overallMoveType = Entity.MOVE_NONE; boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; // Compile the move Compute.compile(game, entity.getId(), md); // get last step's movement type for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MovementData.Step step = (MovementData.Step)i.nextElement(); if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } else { overallMoveType = step.getMovementType(); } } // iterate through steps firstStep = true; fellDuringMovement = false; MovementData.Step prevStep = null; for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MovementData.Step step = (MovementData.Step)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isOnPavement(); // stop for illegal movement if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } // check piloting skill for getting up if (step.getType() == MovementData.STEP_GET_UP) { entity.heatBuildup += 1; entity.setProne(false); wasProne = false; doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), 0, "getting up"), true); } else if (firstStep) { // running with destroyed hip or gyro needs a check if (overallMoveType == Entity.MOVE_RUN && !entity.isProne() && (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO,Mech.LOC_CT) > 0 || entity.hasHipCrit())) { doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), 0, "running with damaged hip actuator or gyro"), false); } firstStep = false; } // did the entity just fall? if (!wasProne && entity.isProne()) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovementData.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovementData.STEP_CHARGE) { 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; break; } // check for dfa if (step.getType() == MovementData.STEP_DFA) { 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; break; } // set last step parameters curPos = step.getPosition(); curFacing = step.getFacing(); final Hex curHex = game.board.getHex(curPos); // Check for skid. if ( moveType != Entity.MOVE_JUMP && prevHex != null && prevStep.isOnPavement() && overallMoveType == Entity.MOVE_RUN && prevFacing != curFacing && !lastPos.equals(curPos) && !isInfantry ) { // Have an entity-meaningful PSR message. boolean psrPassed = true; PilotingRollData psr = null; if ( entity instanceof Mech ) { psr = new PilotingRollData (entity.getId(), getMovementPSRModifier(distance), "running & turning on pavement"); psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, psr ); } else { psr = new PilotingRollData (entity.getId(), getMovementPSRModifier(distance), "reckless driving on pavement"); psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, psr, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; Hex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // All attacks against a skidding target are at +2, // and are *NOT* based upon distance moved at all. moveType = Entity.MOVE_SKID; // What is the first hex in the skid? nextPos = curPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); // Move the entity a number hexes from curPos in the // prevFacing direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.board.contains(nextPos) ) { // Can the entity skid off the map? if ( game.getOptions().booleanOption("push_off_board") ) { // Yup. One dead entity. game.removeEntity(entity.getId(), Game.UNIT_IN_RETREAT); send(createRemoveEntityPacket(entity.getId(), Game.UNIT_IN_RETREAT)); phaseReport.append("*** " ) .append( entity.getDisplayName() ) .append( " has skidded off the field. ***\n"); // The entity's movement is completed. return; } else { // Nope. Update the report. phaseReport.append( " Can't skid off the field.\n" ); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. phaseReport.append( " Can't skid into hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER ) { Terrain land = game.board.getHex(curPos). getTerrain(Terrain.WATER); if ( land != null ) { curElevation += land.getLevel(); } land = nextHex.getTerrain(Terrain.WATER); if ( land != null ) { nextElevation += land.getLevel(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { phaseReport.append ( " Can not skid uphill into hex " + nextPos.getBoardNum() ).append( ".\n" ); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.board.getBuildingAt(nextPos); boolean bldgSuffered = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. boolean stopTheSkid = false; targets = game.getEntities( nextPos ); while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged. if ( !(target instanceof Infantry) ) { // Update report. phaseReport.append( " Skids into " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. ToHitData toHit = new ToHitData(); toHit.setHitTable( ToHitData.HIT_NORMAL ); toHit.setSideTable (Compute.targetSideTable(entity, target)); resolveChargeDamage (entity, target, toHit, prevFacing); bldgSuffered = true; // The skid ends here if the target lives. // TODO : we should keep skiding if the target // is pushed off the board as it has // been "destroyed" according to the // MegaMek interpretation of the rules. if ( !target.isDoomed() && !target.isDestroyed() ) { stopTheSkid = true; } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( bldg != null ) { // Update report. phaseReport.append( " Skids through " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. phaseReport.append( damageEntity(target, hit, (int)Math.round(entity.getWeight()/5)) ); phaseReport.append( "\n" ); } // End handle-infantry // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isInGraveyard(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. phaseReport.append( " Skids into " ) .append( bldg.getName() ) .append( " in hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = Compute.getChargeDamageFor ( entity ); if ( !bldgSuffered ) { phaseReport.append( " " ) .append( damageBuilding( bldg, chargeDamage ) ); // Apply damage to the attacker. int toAttacker = Compute.getChargeDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(curPos, nextPos, entity.getFacing(), false) ); phaseReport.append( this.damageEntity( entity, hit, toAttacker ) ) .append( "\n" ); curPos = nextPos; entity.setPosition( curPos ); } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // Update the position and keep skidding. curPos = nextPos; entity.setPosition( curPos ); phaseReport.append( " Skids into hex " ).append( curPos.getBoardNum() ).append( ".\n" ); // Get the next hex in the skid? nextPos = nextPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), prevFacing); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } phaseReport.append( " " ); // indent displacement doEntityDisplacement(target, curPos, nextPos, null); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage phaseReport.append(" " ).append( entity.getDisplayName() ).append( " suffers " ).append( damage ).append( " damage from the skid."); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(entity, hit, cluster)); damage -= cluster; } phaseReport.append( "\n" ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. phaseReport.append( " Skid ends.\n" ); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); mpUsed = entity.getRunMP(); // skid consumes all movement entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr // check if we've moved into rubble if (!lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP && curHex.levelOf(Terrain.RUBBLE) > 0) { doSkillCheckWhileMoving(entity, lastPos, curPos, new PilotingRollData(entity.getId(), 0, "entering Rubble")); } // check to see if we've moved OUT of fire and we are a mech if (!lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP && game.board.getHex(lastPos).contains(Terrain.FIRE)) { if (entity instanceof Mech) { entity.heatBuildup+=2; phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " passes through a fire. It will generate 2 more heat this round.\n"); } } // check to see if we've moved INTO fire and we are not a mech if (!lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP && game.board.getHex(curPos).contains(Terrain.FIRE)) { if (!(entity instanceof Mech)) { doFlamingDeath(entity); } } // check if we've moved into water if (!lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP && curHex.levelOf(Terrain.WATER) > 0 && entity.getMovementType() != Entity.MovementType.HOVER && !isPavementStep) { if (curHex.levelOf(Terrain.WATER) == 1) { doSkillCheckWhileMoving(entity, lastPos, curPos, new PilotingRollData(entity.getId(), -1, "entering Depth 1 Water")); } else if (curHex.levelOf(Terrain.WATER) == 2) { doSkillCheckWhileMoving(entity, lastPos, curPos, new PilotingRollData(entity.getId(), 0, "entering Depth 2 Water")); // Any swarming infantry will be destroyed. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( curPos ); phaseReport.append( " The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId ); } } else { doSkillCheckWhileMoving(entity, lastPos, curPos, new PilotingRollData(entity.getId(), 1, "entering Depth 3+ Water")); // Any swarming infantry will be destroyed. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( curPos ); phaseReport.append( " The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId ); } } // Mech on fire with infernos can wash them off. // Check if enterning depth 2 water or prone in depth 1. if ( entity instanceof Mech && entity.infernos.isStillBurning() ) { if ( ( 1 == curHex.levelOf(Terrain.WATER) && entity.isProne() ) || ( 2 <= curHex.levelOf(Terrain.WATER) ) ) { washInferno(entity, curPos); } } } // Handle loading units. if ( step.getType() == MovementData.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.isSelectable() ) { // 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() == MovementData.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. if ( !lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP && ( curHex.contains(Terrain.BUILDING) || (prevHex != null && prevHex.contains(Terrain.BUILDING)) ) && !(entity instanceof Infantry) ) { // Get the building being exited. // TODO: allow units to climb on top of buildings. Building bldgExited = game.board.getBuildingAt( lastPos ); // Get the building being entered. // TODO: allow units to climb on top of buildings. Building bldgEntered = game.board.getBuildingAt( curPos ); // If we're not leaving a building, just handle the "entered". boolean collapsed = false; if ( bldgExited == null ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovementData.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); entity.setProne(true); // check to see if we washed off infernos if ( entity instanceof Mech && entity.infernos.isStillBurning() && curHex.levelOf(Terrain.WATER) >= 1 ) { washInferno(entity, curPos); } break; } // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == Entity.MOVE_JUMP && !entity.isMakingDfa()) { // check for damaged criticals if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO,Mech.LOC_CT) > 0 || entity.hasLegActuatorCrit()) { doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), 0, "landing with damaged leg actuator or gyro"), false); } // jumped into water? int waterLevel = game.board.getHex(curPos).levelOf(Terrain.WATER); if (waterLevel == 1) { doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), -1, "entering Depth 1 Water"), false); } else if (waterLevel == 2) { doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), 0, "entering Depth 2 Water"), false); // Any swarming infantry will be destroyed. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( curPos ); phaseReport.append( " The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId ); } } else if (waterLevel >= 3) { doSkillCheckInPlace(entity, new PilotingRollData(entity.getId(), 1, "entering Depth 3+ Water"), false); // Any swarming infantry will be destroyed. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( curPos ); phaseReport.append( " The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId ); } } // 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 = Compute.getBasePilotingRoll(game, entity.getId()); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info phaseReport.append("\n") .append( entity.getDisplayName() ) .append( " tries to dislodge swarming infantry.\n" ); // roll final int diceRoll = Compute.d6(2); phaseReport.append("Needs " ).append( roll.getValueAsString() ).append( " [" ).append( roll.getDesc() ).append( "]" ).append( ", rolls " ).append( diceRoll ).append( " : "); if (diceRoll < roll.getValue()) { phaseReport.append("fails.\n"); } else { phaseReport.append("succeeds.\n"); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? final Hex curHex = game.board.getHex(curPos); if ( curHex.levelOf(Terrain.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and drowns!") .append(destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and suffers 11 damage.") .append( damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11) ) .append( "\n" ); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers } // End entity-is-jumping // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectable() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.board.getHex(curPos).contains(Terrain.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( "\n " ) .append( swarmer.getShortName() ) .append( " can't stand the fire's heat and drops off.\n" ); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if ( !game.isInGraveyard(entity) ) { entityUpdate( entity.getId() ); } // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, true)); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/31e08ad3b4b6a14552493d88f3bc2e7f0977d33c/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, 490, 26140, 751, 3481, 13, 288, 202, 759, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 49, 26140, 751, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 6855, 4820, 18, 6923, 31458, 82, 6, 262, 18, 6923, 12, 1522, 18, 588, 20524, 1435, 5411, 262, 18, 6923, 12, 315, 284, 298, 281, 326, 324, 4558, 298, 1518, 8403, 82, 8863, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 291, 1921, 1435, 262, 288, 7734, 727, 13864, 1400, 273, 1342, 275, 6215, 18, 6274, 5621, 7734, 1323, 261, 1400, 18, 5332, 7417, 3471, 1435, 262, 288, 10792, 727, 3887, 1342, 14348, 273, 261, 1943, 13, 1400, 18, 4285, 1046, 5621, 10792, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 10792, 6855, 4820, 18, 6923, 12, 315, 282, 2597, 5926, 566, 281, 315, 262, 13491, 263, 6923, 12, 1342, 14348, 18, 588, 20524, 1435, 262, 13491, 263, 6923, 12, 315, 598, 518, 8403, 82, 6, 11272, 10792, 7920, 18, 4479, 1943, 12, 1342, 14348, 18, 26321, 9334, 4766, 4202, 14121, 18, 15736, 67, 706, 67, 10238, 862, 789, 11272, 10792, 1366, 12, 752, 3288, 1943, 6667, 12, 5466, 14348, 18, 26321, 9334, 4766, 10402, 14121, 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, 490, 26140, 751, 3481, 13, 288, 202, 759, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 49, 26140, 751, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 6855, 4820, 18, 6923, 31458, 82, 6, 262, 18, 6923, 12, 1522, 18, 588, 20524, 1435, 5411, 262, 18, 6923, 12, 315, 284, 298, 281, 326, 324, 4558, 298, 1518, 8403, 82, 8863, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 2 ]
IResultIterator rsIterator )
IResultSet resultSet )
protected void accessDetail( ListingDesign list, IContentEmitter emitter, IResultIterator rsIterator ) { accessListBand( ( ( ListItemDesign ) list ).getDetail( ), emitter, rsIterator ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7246d39aba16a9656ec9841ec35032d0d3084995/ListItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ListItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2006, 6109, 12, 987, 310, 15478, 666, 16, 467, 1350, 13476, 11520, 16, 1082, 202, 45, 1253, 3198, 3597, 3198, 262, 202, 95, 202, 202, 3860, 682, 14231, 12, 261, 261, 987, 1180, 15478, 262, 666, 262, 18, 588, 6109, 12, 262, 16, 11520, 16, 9506, 202, 5453, 3198, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2006, 6109, 12, 987, 310, 15478, 666, 16, 467, 1350, 13476, 11520, 16, 1082, 202, 45, 1253, 3198, 3597, 3198, 262, 202, 95, 202, 202, 3860, 682, 14231, 12, 261, 261, 987, 1180, 15478, 262, 666, 262, 18, 588, 6109, 12, 262, 16, 11520, 16, 9506, 202, 5453, 3198, 11272, 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 ]
"*.rptdocument" );
new String[]{ "*.rptdocument"} );
private void createDrillthroughSelectTargetReport( Composite container ) { targetGroup = new Group( container, SWT.NONE ); targetGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); targetGroup.setText( Messages.getString( "HyperlinkBuilder.DrillThroughStep1" ) ); //$NON-NLS-1$ GridLayout layout = new GridLayout( ); layout.numColumns = 3; targetGroup.setLayout( layout ); reportDesignButton = new Button( targetGroup, SWT.RADIO ); reportDesignButton.setText( Messages.getString( "HyperlinkBuilder.ReportDesignButton" ) ); //$NON-NLS-1$ reportDesignButton.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { selectRadio( targetGroup, reportDesignButton ); initTargetReport( locationEditor.getText( ) ); deSelectAnchor( ); updateButtons( ); } public void widgetDefaultSelected( SelectionEvent e ) { } } ); locationEditor = new Text( targetGroup, SWT.BORDER | SWT.SINGLE ); locationEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { closeTargetReport( ); initTargetReport( locationEditor.getText( ) ); initParamterBindings( ); updateButtons( ); deSelectAnchor( ); } } ); locationEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createBrowerButton( targetGroup, locationEditor, false, true ); createBindingTable( targetGroup ); reportDocumentButton = new Button( targetGroup, SWT.RADIO ); reportDocumentButton.setText( Messages.getString( "HyperlinkBuilder.ReportDocumentButton" ) ); //$NON-NLS-1$ reportDocumentButton.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { selectRadio( targetGroup, reportDocumentButton ); initTargetReport( documentEditor.getText( ) ); deSelectAnchor( ); updateButtons( ); } public void widgetDefaultSelected( SelectionEvent e ) { } } ); documentEditor = new Text( targetGroup, SWT.BORDER | SWT.SINGLE ); documentEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { closeTargetReport( ); initTargetReport( documentEditor.getText( ) ); updateButtons( ); deSelectAnchor( ); } } ); documentEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createBrowerButton( targetGroup, documentEditor, false, true, "*.rptdocument" ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/27ce8f04fa85bce1d8681985d8f23a7239c74750/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8956, 737, 10064, 3391, 2326, 4820, 12, 14728, 1478, 262, 202, 95, 202, 202, 3299, 1114, 273, 394, 3756, 12, 1478, 16, 348, 8588, 18, 9826, 11272, 202, 202, 3299, 1114, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 3299, 1114, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 4160, 21, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 3299, 1114, 18, 542, 3744, 12, 3511, 11272, 202, 202, 6006, 15478, 3616, 273, 394, 12569, 12, 1018, 1114, 16, 348, 8588, 18, 28829, 4294, 11272, 202, 202, 6006, 15478, 3616, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 4820, 15478, 3616, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6006, 15478, 3616, 18, 1289, 6233, 2223, 12, 394, 12977, 2223, 12, 262, 288, 1082, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 4025, 19984, 12, 1018, 1114, 16, 2605, 15478, 3616, 11272, 9506, 202, 2738, 2326, 4820, 12, 2117, 6946, 18, 588, 1528, 12, 262, 11272, 9506, 202, 323, 3391, 11605, 12, 11272, 9506, 202, 2725, 14388, 12, 11272, 1082, 202, 97, 1082, 202, 482, 918, 3604, 1868, 7416, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8956, 737, 10064, 3391, 2326, 4820, 12, 14728, 1478, 262, 202, 95, 202, 202, 3299, 1114, 273, 394, 3756, 12, 1478, 16, 348, 8588, 18, 9826, 11272, 202, 202, 3299, 1114, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 3299, 1114, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 4160, 21, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 3299, 1114, 18, 542, 3744, 12, 3511, 11272, 202, 202, 2 ]
return getPreferences().getString(PREF_OUTPUT_PATH, "/tmp/antlrworks/");
return getPreferences().getString(PREF_OUTPUT_PATH, DEFAULT_OUTPUT_PATH);
public static String getOutputPath() { return getPreferences().getString(PREF_OUTPUT_PATH, "/tmp/antlrworks/"); }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/de5144bf9aaaff3aa03fca961f9a80c06b09616a/EditorPreferences.java/buggy/src/org/antlr/works/editor/EditorPreferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 11062, 743, 1435, 288, 3639, 327, 336, 12377, 7675, 588, 780, 12, 3670, 42, 67, 15527, 67, 4211, 16, 3331, 67, 15527, 67, 4211, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 11062, 743, 1435, 288, 3639, 327, 336, 12377, 7675, 588, 780, 12, 3670, 42, 67, 15527, 67, 4211, 16, 3331, 67, 15527, 67, 4211, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if( req.getParameter("CHANGE_USER") != null ) { if( super.getAdminRights(imcServer, params.getProperty("META_ID"), user) == false ) { String header = "ConfAdmin servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,6) ; return ; } String userId = this.getCurrentUserId(req,res) ; if (userId == null) return ; RmiConf rmi = new RmiConf(user) ; String userInfo[] = rmi.execJanusSqlProcedure(imcServer, "GetUserInfo " + userId) ; String level = rmi.execSqlProcedureStr(confPoolServer, "A_ConfUsersGetUserLevel " + params.getProperty("META_ID") +", " + userId) ; String levelStatus = "" ; if(level.equalsIgnoreCase("1") ) levelStatus = "checked" ; level = "EXPERT" ; Vector userV = this.convert2Vector(userInfo) ; VariableManager vm = new VariableManager() ; Html htm = new Html() ; vm = this.addUserInfo(vm,userV) ; vm.addProperty("USER_LEVEL", level) ; vm.addProperty("USER_LEVEL_STATUS", levelStatus) ; vm.addProperty("CURR_USER_ID", userId) ; this.sendHtml(req, res, vm, ADMIN2_HTML) ; return ;
} Properties currUserParams = super.getUserParameters(user) ; String userId = currUserParams.getProperty("USER_ID") ; String usersRoles[] = imcref.sqlProcedure( "GetUserRolesIDs " + userId ) ; if(usersRoles != null ) { for(int i = 0; i<usersRoles.length; i+=2) { if(!usersRoles[i].toString().equals("1")) { String addRoleSql = "AddUserRole " + newUserId + ", " + usersRoles[i].toString() ; imcref.sqlUpdateProcedure(addRoleSql) ; }
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; // Lets get the standard parameters and validate them Properties params = super.getSessionParameters(req) ; if (super.checkParameters(req, res, params) == false) return ; // Lets get the user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; int testMetaId = Integer.parseInt( params.getProperty("META_ID") ); if ( !isUserAuthorized( req, res, testMetaId, user ) ) { return; } // Lets get the loginType String loginType = (req.getParameter("login_type")==null) ? "" : (req.getParameter("login_type")) ; String tmp = req.getParameter("SAVE_USER") ; //log("post logintype: " + loginType ) ; //log("tmp: " + tmp) ; // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String confPoolServer = Utility.getDomainPref("conference_server",host) ; // ************* VERIFY LOGIN TO CONFERENCE ************** // Ok, the user wants to login if(loginType.equalsIgnoreCase("login") /* && req.getParameter("submit") != null */) { // log("Ok, nu frsker vi verifiera logga in!") ; Properties lparams = this.getLoginParams(req ,res) ; // Ok, Lets check what the user has sent us. Lets verify the fields the user // have had to write freetext in to verify that the sql questions wont go mad. if (this.verifyLoginParams(req, res, lparams) == false) return ; lparams = super.verifyForSql(lparams) ; String userName = lparams.getProperty("LOGIN_NAME") ; String password = lparams.getProperty("PASSWORD") ; // Validate loginparams against Janus DB RmiConf rmi = new RmiConf(user) ; String sqlQ = "GetUserIdFromName '" + userName + "', '" + password + "'" ; String userId = rmi.execJanusSqlProcedureStr(imcServer, sqlQ ) ; //log("Anvndarens id var: " + userId) ; // Lets check that we the found the user. Otherwise send unvailid username password if( userId == null ) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,50, LOGIN_ERROR_HTML ) ; log(header + err.getErrorMsg()) ; return ; } // Ok, we found the user, lets verify that the user is a member of this conference // MemberInConf @meta_id int, @user_id int String checkUserSql = "A_MemberInConf " + params.getProperty("META_ID") + ", "+ userId ; log("CheckUserSql: " + checkUserSql) ; String foundUserInConf = rmi.execSqlProcedureStr(confPoolServer, checkUserSql) ; // Ok, The user is not a user in this conference, lets check if he has // the right to be a member. boolean okToLogIn = false ; if(foundUserInConf == null) { log("Ok, the user is not a member here, lets find out if he could be") ; okToLogIn = super.checkDocRights(imcServer, params.getProperty("META_ID"), user) ; log("Ok, let the user in and let him be a member: " + okToLogIn) ; } if( foundUserInConf == null && okToLogIn == false) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,50, LOGIN_ERROR_HTML ) ; log(header + err.getErrorMsg() + "\n the user exists, but is not a member in this conference") ; return ; } else { // Ok, The user is here for the first time, and he has the rights to go in // Lets update his user object //log("Lets update the users userObject") ; String firstName = rmi.execJanusSqlProcedureStr(imcServer, "GetUserNames " + userId + ", 1" ); String lastName = rmi.execJanusSqlProcedureStr(imcServer, "GetUserNames " + userId + ", 2" ) ; if( firstName == null || lastName == null ) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,62, LOGIN_ERROR_HTML ) ; log(header + err.getErrorMsg() + "\n the user exists, but is not a member in this conference") ; return ; } user.setField("user_id", userId) ; user.setField("first_name", firstName) ; user.setField("last_name", lastName) ; //log("Uppdaterad objectID: " + user.getString("user_id") ) ; //log("Uppdaterad first_name: " + user.getString("first_name") ) ; //log("Uppdaterad last_name: " + user.getString("last_name") ) ; } // Lets update the users sessionobject with a a ok login to the conference // Send him to the manager with the ability to get in log("Ok, nu frbereder vi anvndaren p att logga in") ; if(!super.prepareUserForConf(req, res, params, userId) ) { log("Error in prepareUserFor Conf" ) ; } return ; } // ************* ADD USER TO CONFERENCE ************** if(loginType.equalsIgnoreCase("ADD_USER") ) { // log("Now runs add_user") ; // Lets get the parameters from html page and validate them Properties userParams = this.getNewUserParameters(req) ; // Properties userParams = this.getNewUserParameters2(req) ; if( this.checkUserParameters(userParams) == false) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,51, LOGIN_ERROR_HTML ) ; log(header + err.getErrorMsg()) ; return ; } // Lets validate the passwords. Error message will be generated in method if( UserHandler.verifyPassword(userParams,req,res) == false) return ; // Lets validate the phonenbr. Error message will be generated in method if( UserHandler.verifyPhoneNumber(userParams,req,res) == false) return ; // Lets validate the userparameters before the sql userParams = super.verifyForSql(userParams) ; String userName = userParams.getProperty("login_name") ; RmiConf rmi = new RmiConf(user) ; // Lets check that the new username doesnt exists already in db String userNameExists[] = rmi.execJanusSqlProcedure(imcServer, "FindUserName '" + userName + "'") ; //log("SQL frga:" + "FindUserName '" + userName + "'") ; if(userNameExists != null ) { if(userNameExists.length > 0 ) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,56, LOGIN_ERROR_HTML ) ; return ; } } // Lets get the new UserId for the new user String newUserId = rmi.execJanusSqlProcedureStr(imcServer, "GetHighestUserId" ) ; if(newUserId == null) { String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,61, LOGIN_ERROR_HTML ) ; return ; } // Lets build the users information into a string and add it to db //String userStr = createUserInfoString(userParams, newUserId) ; // Lets get the language id the user will have, or set the lang_id to 1 // as default if( userParams.getProperty("lang_id") == null ) userParams.setProperty("lang_id", "1") ; userParams.setProperty("user_id", newUserId) ; //log("Userparams: " + userParams.toString()); String userStr = UserHandler.createUserInfoString(userParams) ; //log("UserDBStr: " + userStr) ; // log("AddNewUser " + userStr) ; //rmi.execJanusSqlUpdateProcedure(imcServer, userStr) ; UserHandler.addUserInfoDB(imcServer, userStr) ; // Lets add a new phone number StringBuffer phoneStr = new StringBuffer() ; phoneStr.append("phoneNbrAdd " + newUserId) ; phoneStr.append(", '" + userParams.getProperty("country_code") ) ; phoneStr.append("', '" + userParams.getProperty("area_code") ) ; phoneStr.append("', '" + userParams.getProperty("local_code") + "'" ) ; log("PhoneNbrAddSQL: " + phoneStr.toString()) ; rmi.execJanusSqlUpdateProcedure(imcServer, phoneStr.toString()) ; // Ok, lets get the roles the user will get when he is selfregistering and // add those roles to the user String sqlSproc = "A_SelfRegRoles_GetAll2 " + params.getProperty("META_ID") ; String sqlAnswer[] = rmi.execSqlProcedure(confPoolServer, sqlSproc ) ; // First, get the langprefix String lang_id = user.getString("lang_id") ; String langsql = "GetLangPrefixFromId " + lang_id ; //log("LangPrefixSql: " + langsql) ; String langPrefix = rmi.execJanusSqlProcedureStr(imcServer, langsql ) ; //log( "LangPrefix: " + langPrefix) ; if(sqlAnswer != null ) { for(int i = 0; i<sqlAnswer.length; i+=2) { String aRoleId = sqlAnswer[i].toString() ; // Lets check that the role id is still valid to use against // the host system String sqlCheckSproc = "RoleCheckConferenceAllowed '" + langPrefix +"', "+ aRoleId ; // log("RoleCheckSQL: " + sqlCheckSproc) ; String found = rmi.execJanusSqlProcedureStr(imcServer, sqlCheckSproc) ; //log("FoundRoleCheckSQL: " + found) ; if (found != null ) { String addRoleSql = "AddUserRole " + newUserId + ", " + aRoleId ; //log("AddRoleSQL: " + addRoleSql) ; rmi.execJanusSqlUpdateProcedure(imcServer, addRoleSql) ; } } } // Ok, Lets add the users roles into db, first get the role his in the system with Properties currUserParams = super.getUserParameters(user) ; String userId = currUserParams.getProperty("USER_ID") ; String usersRoles[] = rmi.execJanusSqlProcedure(imcServer, "GetUserRolesIDs " + userId ) ; // log("SQL frga:" + "GetUserRolesIDs " + userId) ; if(usersRoles != null ) { for(int i = 0; i<usersRoles.length; i+=2) { // Late change, fix so the superadminrole wont be copied to the new user if(!usersRoles[i].toString().equals("1")) { String addRoleSql = "AddUserRole " + newUserId + ", " + usersRoles[i].toString() ; rmi.execJanusSqlUpdateProcedure(imcServer, addRoleSql) ; } else { // log("Superadmin rollen kom inte med!") ; } } } else { // nothing came back from getUserRoles String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,58 ) ; log(header + err.getErrorMsg()) ; return ; } // Lets add the new user in the conference db as well // ConfUsersAdd @user_id int, @conf_id int, @aFirstName char(25), @aLastName char(30) String metaId = params.getProperty("META_ID") ; String fName = userParams.getProperty("first_name") ; String lName = userParams.getProperty("last_name") ; String confUsersAddSql = "A_ConfUsersAdd "+ newUserId +", "+ metaId +", '"+ fName + "', '"; confUsersAddSql += lName + "'"; // log("ConfUsersAddSql: " + confUsersAddSql) ; rmi.execSqlUpdateProcedure(confPoolServer, confUsersAddSql) ; // log("OK, nu slog vi in en ny anvndare") ; String header = "ConfLogin servlet." ; ConfError err = new ConfError(req,res,header,55, ADD_USER_OK_HTML ) ; log(header + err.getErrorMsg()) ; return ; } // ******* CHANGE_USER ********** // if(loginType.equalsIgnoreCase("CHANGE_USER") ) { if( req.getParameter("CHANGE_USER") != null ) { // log("Ok, Lets change a conference user") ; // Lets check that the user is an administrator if( super.getAdminRights(imcServer, params.getProperty("META_ID"), user) == false ) { String header = "ConfAdmin servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,6) ; return ; } // Lets get the user which should be changed String userId = this.getCurrentUserId(req,res) ; if (userId == null) return ; RmiConf rmi = new RmiConf(user) ; // Lets get all Userinformation from Janus db String userInfo[] = rmi.execJanusSqlProcedure(imcServer, "GetUserInfo " + userId) ; // Lets get the selected users userlevel String level = rmi.execSqlProcedureStr(confPoolServer, "A_ConfUsersGetUserLevel " + params.getProperty("META_ID") +", " + userId) ; String levelStatus = "" ; if(level.equalsIgnoreCase("1") ) levelStatus = "checked" ; level = "EXPERT" ; Vector userV = this.convert2Vector(userInfo) ; VariableManager vm = new VariableManager() ; Html htm = new Html() ; vm = this.addUserInfo(vm,userV) ; // Lets create the HTML page vm.addProperty("USER_LEVEL", level) ; vm.addProperty("USER_LEVEL_STATUS", levelStatus) ; vm.addProperty("CURR_USER_ID", userId) ; this.sendHtml(req, res, vm, ADMIN2_HTML) ; return ; } //******* SAVE AN EXISTING USERS SETTINGS *********** if( req.getParameter("SAVE_USER") != null) { // log("Ok , lets save an existing user") ; // Lets check that the user is an administrator if( super.getAdminRights(imcServer, params.getProperty("META_ID"), user) == false ) { String header = "ConfAdmin servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,6) ; return ; } // Lets get the parameters from html page and validate them String userLevel = req.getParameter("user_level") ; if(userLevel == null) userLevel = "NORMAL" ; if(userLevel.equalsIgnoreCase("NORMAL")) userLevel = "0" ; else userLevel = "1" ; // log("UserLevel: " + userLevel) ; // Lets get the userId were changing properties on from the request Object. String userId = this.getCurrentUserId(req,res) ; if (userId == null) return ; // Lets add the new information into the conf user db RmiConf rmi = new RmiConf(user) ; String sqlQ = "A_ConfUsersSetUserLevel " + params.getProperty("META_ID") + ", " ; sqlQ += userId + ", " + userLevel ; // log("SqlQ: " + sqlQ) ; rmi.execSqlUpdateProcedure(confPoolServer, sqlQ) ; String url = "ConfLogin?login_type=admin_user" ; res.sendRedirect(url) ; return ; } // ***** RETURN TO ADMIN MANAGER ***** if( loginType.equalsIgnoreCase("GoBack")) { String url = "ConfLogin?login_type=admin_user" ; res.sendRedirect(url) ; return ; } } // end HTTP POST
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ConfLogin.java/buggy/servlets/conf/ConfLogin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 288, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 2463, 274, 202, 202, 759, 511, 2413, 336, 326, 4529, 1472, 471, 1954, 2182, 202, 202, 2297, 859, 273, 2240, 18, 588, 2157, 2402, 12, 3658, 13, 274, 202, 202, 430, 261, 9565, 18, 1893, 2402, 12, 3658, 16, 400, 16, 859, 13, 422, 629, 13, 327, 274, 202, 202, 759, 511, 2413, 336, 326, 729, 733, 202, 202, 381, 710, 18, 3567, 18, 1299, 729, 273, 2240, 18, 588, 1299, 2675, 12, 3658, 16, 455, 13, 274, 202, 202, 430, 12, 1355, 422, 446, 13, 327, 274, 202, 202, 474, 1842, 2781, 548, 273, 2144, 18, 2670, 1702, 12, 859, 18, 588, 1396, 2932, 19294, 67, 734, 7923, 11272, 202, 202, 430, 261, 401, 291, 1299, 15341, 12, 1111, 16, 400, 16, 1842, 2781, 548, 16, 729, 262, 262, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 511, 2413, 336, 326, 3925, 559, 202, 202, 780, 3925, 559, 273, 261, 3658, 18, 588, 1662, 2932, 5819, 67, 723, 7923, 631, 2011, 13, 692, 1408, 294, 261, 3658, 18, 588, 1662, 2932, 5819, 67, 723, 6, 3719, 274, 202, 202, 780, 1853, 273, 1111, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 288, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 2463, 274, 202, 202, 759, 511, 2413, 336, 326, 4529, 1472, 471, 1954, 2182, 202, 202, 2297, 859, 273, 2240, 18, 588, 2157, 2402, 12, 3658, 13, 274, 202, 202, 430, 261, 9565, 18, 1893, 2402, 12, 3658, 16, 400, 16, 859, 13, 422, 629, 13, 327, 274, 202, 202, 759, 511, 2413, 336, 326, 729, 733, 202, 202, 381, 710, 2 ]
moveElementToUncategorizedCategory(currentResult, element);
moveElementToUncategorizedCategory(wizardElements, element);
private void finishWizard(WorkbenchWizardElement element, IConfigurationElement config, AdaptableList result) { WizardCollectionElement currentResult = (WizardCollectionElement)result; StringTokenizer familyTokenizer = new StringTokenizer(getCategoryStringFor(config),CATEGORY_SEPARATOR); // use the period-separated sections of the current Wizard's category // to traverse through the NamedSolution "tree" that was previously created WizardCollectionElement currentCollectionElement = currentResult; // ie.- root boolean moveToOther = false; while (familyTokenizer.hasMoreElements()) { WizardCollectionElement tempCollectionElement = getChildWithID(currentCollectionElement,familyTokenizer.nextToken()); if (tempCollectionElement == null) { // can't find the path; bump it to uncategorized moveToOther = true; break; } else currentCollectionElement = tempCollectionElement; } if (moveToOther) moveElementToUncategorizedCategory(currentResult, element); else currentCollectionElement.add(element);}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5879d03f82c86871e58839006ceaa7f5654229d5/NewWizardsRegistryReader.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/registry/NewWizardsRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 4076, 27130, 12, 2421, 22144, 27130, 1046, 930, 16, 467, 1750, 1046, 642, 16, 22792, 429, 682, 563, 13, 288, 202, 27130, 2532, 1046, 783, 1253, 273, 261, 27130, 2532, 1046, 13, 2088, 31, 202, 780, 10524, 6755, 10524, 273, 394, 16370, 12, 588, 4457, 780, 1290, 12, 1425, 3631, 24847, 67, 4550, 1769, 202, 759, 999, 326, 3879, 17, 24622, 7178, 434, 326, 783, 678, 13412, 1807, 3150, 202, 759, 358, 10080, 3059, 326, 9796, 16135, 315, 3413, 6, 716, 1703, 7243, 2522, 202, 27130, 2532, 1046, 783, 2532, 1046, 273, 783, 1253, 31, 368, 9228, 18, 17, 1365, 202, 6494, 13863, 8290, 273, 629, 31, 202, 202, 17523, 261, 9309, 10524, 18, 5332, 7417, 3471, 10756, 288, 202, 202, 27130, 2532, 1046, 1906, 2532, 1046, 273, 1082, 202, 588, 1763, 1190, 734, 12, 2972, 2532, 1046, 16, 9309, 10524, 18, 4285, 1345, 10663, 6862, 202, 430, 261, 5814, 2532, 1046, 422, 446, 13, 288, 202, 759, 848, 1404, 1104, 326, 589, 31, 23559, 518, 358, 6301, 20252, 1235, 1082, 202, 8501, 774, 8290, 273, 638, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 12107, 1082, 202, 2972, 2532, 1046, 273, 1906, 2532, 1046, 31, 202, 97, 202, 202, 430, 261, 8501, 774, 8290, 13, 202, 202, 8501, 1046, 774, 984, 71, 20252, 1235, 4457, 12, 2972, 1253, 16, 930, 1769, 202, 12107, 202, 202, 2972, 2532, 1046, 18, 1289, 12, 2956, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 4076, 27130, 12, 2421, 22144, 27130, 1046, 930, 16, 467, 1750, 1046, 642, 16, 22792, 429, 682, 563, 13, 288, 202, 27130, 2532, 1046, 783, 1253, 273, 261, 27130, 2532, 1046, 13, 2088, 31, 202, 780, 10524, 6755, 10524, 273, 394, 16370, 12, 588, 4457, 780, 1290, 12, 1425, 3631, 24847, 67, 4550, 1769, 202, 759, 999, 326, 3879, 17, 24622, 7178, 434, 326, 783, 678, 13412, 1807, 3150, 202, 759, 358, 10080, 3059, 326, 9796, 16135, 315, 3413, 6, 716, 1703, 7243, 2522, 202, 27130, 2532, 1046, 783, 2532, 1046, 273, 783, 1253, 31, 368, 9228, 18, 17, 1365, 202, 6494, 13863, 8290, 273, 629, 31, 202, 202, 17523, 261, 9309, 10524, 18, 5332, 7417, 3471, 2 ]
status = 1;
setStatus ( 1 );
private void noTptTransfer() { try { String fullLocalFile = "/tmp/TempGridFTP_" + transferid; sourceHost.setOptions( new RetrieveOptions( parallelism ) ); sourceHost.setTCPBufferSize( this.tcpBufferSize ); DataSink sink = null; sink = new FileRandomIO( new java.io.RandomAccessFile( fullLocalFile, "rw" ) ); sourceHost.extendedGet( sourcePath, size, sink, this.markerListener ); sourceHost.close(); destinationHost.setOptions( new RetrieveOptions( parallelism ) ); destinationHost.setTCPBufferSize( this.tcpBufferSize ); DataSource source = null; source = new FileRandomIO( new java.io.RandomAccessFile( fullLocalFile, "r" ) ); destinationHost.extendedPut( destinationPath, source, this.markerListener ); destinationHost.close(); status = 0; } catch ( FTPException e ) { logger.debug( "Exception in noTpt", e ); if ( status != 2 ) { status = 1; } } catch ( IOException ioe ) { logger.debug( "IOException in noTpt", ioe ); } }
8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/4cdf5148b49565a58b6ba84d7fa81d1ccb766eb4/TransferClient.java/buggy/data_management/multirft/src/org/globus/ogsa/impl/base/multirft/TransferClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1158, 56, 337, 5912, 1435, 288, 3639, 775, 288, 5411, 514, 1983, 2042, 812, 273, 2206, 5645, 19, 7185, 6313, 17104, 9548, 397, 7412, 350, 31, 5411, 1084, 2594, 18, 542, 1320, 12, 394, 10708, 1320, 12, 21698, 262, 11272, 5411, 1084, 2594, 18, 542, 13891, 15384, 12, 333, 18, 14832, 15384, 11272, 5411, 1910, 11326, 9049, 273, 446, 31, 5411, 9049, 273, 394, 1387, 8529, 4294, 12, 394, 2252, 18, 1594, 18, 8529, 26933, 12, 1983, 2042, 812, 16, 10792, 315, 21878, 6, 262, 11272, 5411, 1084, 2594, 18, 14948, 967, 12, 17744, 16, 963, 16, 9049, 16, 333, 18, 11145, 2223, 11272, 5411, 1084, 2594, 18, 4412, 5621, 5411, 2929, 2594, 18, 542, 1320, 12, 394, 10708, 1320, 12, 21698, 262, 11272, 5411, 2929, 2594, 18, 542, 13891, 15384, 12, 333, 18, 14832, 15384, 11272, 5411, 12806, 1084, 273, 446, 31, 5411, 1084, 273, 394, 1387, 8529, 4294, 12, 394, 2252, 18, 1594, 18, 8529, 26933, 12, 10792, 1983, 2042, 812, 16, 315, 86, 6, 262, 11272, 5411, 2929, 2594, 18, 14948, 6426, 12, 30617, 16, 1084, 16, 10792, 333, 18, 11145, 2223, 11272, 5411, 2929, 2594, 18, 4412, 5621, 5411, 1267, 273, 374, 31, 3639, 289, 1044, 261, 19324, 503, 425, 262, 288, 5411, 1194, 18, 4148, 12, 315, 503, 316, 1158, 56, 337, 3113, 425, 11272, 5411, 309, 261, 1267, 480, 576, 262, 288, 7734, 9433, 261, 404, 11272, 5411, 289, 3639, 289, 1044, 261, 1860, 10847, 262, 288, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1158, 56, 337, 5912, 1435, 288, 3639, 775, 288, 5411, 514, 1983, 2042, 812, 273, 2206, 5645, 19, 7185, 6313, 17104, 9548, 397, 7412, 350, 31, 5411, 1084, 2594, 18, 542, 1320, 12, 394, 10708, 1320, 12, 21698, 262, 11272, 5411, 1084, 2594, 18, 542, 13891, 15384, 12, 333, 18, 14832, 15384, 11272, 5411, 1910, 11326, 9049, 273, 446, 31, 5411, 9049, 273, 394, 1387, 8529, 4294, 12, 394, 2252, 18, 1594, 18, 8529, 26933, 12, 1983, 2042, 812, 16, 10792, 315, 21878, 6, 262, 11272, 5411, 1084, 2594, 18, 14948, 967, 12, 17744, 16, 963, 16, 9049, 16, 333, 18, 11145, 2223, 11272, 5411, 1084, 2594, 18, 4412, 5621, 5411, 2929, 2594, 18, 542, 1320, 2 ]
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); red = display.getSystemColor(SWT.COLOR_RED); green = display.getSystemColor(SWT.COLOR_GREEN); yellow = display.getSystemColor(SWT.COLOR_YELLOW); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX); props.setLook(shell); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText("Results of transformation checks"); int middle = props.getMiddlePct(); int margin = Const.MARGIN; wlFields=new Label(shell, SWT.RIGHT); wlFields.setText("Remarks: "); props.setLook(wlFields); fdlFields=new FormData(); fdlFields.left = new FormAttachment(0, 0); fdlFields.right= new FormAttachment(middle, -margin); fdlFields.top = new FormAttachment(0, margin); wlFields.setLayoutData(fdlFields); int FieldsCols=3; int FieldsRows=remarks.size(); ColumnInfo[] colinf=new ColumnInfo[FieldsCols]; colinf[0]=new ColumnInfo("Stepname", ColumnInfo.COLUMN_TYPE_TEXT, false, true); colinf[1]=new ColumnInfo("Result", ColumnInfo.COLUMN_TYPE_TEXT, false, true); colinf[2]=new ColumnInfo("Remark", ColumnInfo.COLUMN_TYPE_TEXT, false, true); wFields=new TableView(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, FieldsRows, true, // read-only null, props ); fdFields=new FormData(); fdFields.left = new FormAttachment(0, 0); fdFields.top = new FormAttachment(wlFields, margin); fdFields.right = new FormAttachment(100, 0); fdFields.bottom = new FormAttachment(100, -50); wFields.setLayoutData(fdFields); wClose=new Button(shell, SWT.PUSH); wClose.setText(" &Close "); wView=new Button(shell, SWT.PUSH); wView.setText(" &View message"); wEdit=new Button(shell, SWT.PUSH); wEdit.setText(" &Edit origin step"); BaseStepDialog.positionBottomButtons(shell, new Button[] { wClose, wView, wEdit }, margin, null); // Add listeners lsClose = new Listener() { public void handleEvent(Event e) { close(); } }; lsView = new Listener() { public void handleEvent(Event e) { view(); } }; lsEdit = new Listener() { public void handleEvent(Event e) { edit(); } }; wClose.addListener(SWT.Selection, lsClose ); wView .addListener(SWT.Selection, lsView ); wEdit .addListener(SWT.Selection, lsEdit ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { close(); } } ); getData(); WindowProperty winprop = props.getScreen(shell.getText()); if (winprop!=null) winprop.setShell(shell); else shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/bf6a12d197ec62367d9b3a1f70487ceca8470246/CheckResultDialog.java/buggy/src/be/ibridge/kettle/core/dialog/CheckResultDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 780, 3190, 1435, 202, 95, 202, 202, 13220, 2938, 33, 588, 3054, 5621, 202, 202, 4236, 5417, 33, 2938, 18, 588, 4236, 5621, 9506, 202, 1118, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 5879, 1769, 202, 202, 11571, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 29500, 1769, 202, 202, 19227, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 61, 2247, 4130, 1769, 202, 202, 10304, 33, 2704, 13220, 12, 2938, 16, 55, 8588, 18, 2565, 18683, 67, 6566, 49, 96, 55, 8588, 18, 862, 4574, 96, 55, 8588, 18, 6694, 1769, 202, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 1204, 3744, 687, 3744, 33, 2704, 1204, 3744, 5621, 202, 202, 687, 3744, 18, 10107, 2384, 33, 9661, 18, 4983, 67, 19772, 7702, 31, 202, 202, 687, 3744, 18, 10107, 2686, 33, 9661, 18, 4983, 67, 19772, 7702, 31, 202, 202, 10304, 18, 542, 3744, 12, 687, 3744, 1769, 202, 202, 10304, 18, 542, 1528, 2932, 3447, 792, 2338, 1471, 12366, 8863, 9506, 202, 474, 18661, 33, 9693, 18, 588, 21924, 52, 299, 5621, 202, 202, 474, 10107, 33, 9661, 18, 19772, 7702, 31, 202, 202, 21504, 2314, 33, 2704, 2224, 12, 10304, 16, 55, 8588, 18, 11847, 1769, 202, 202, 21504, 2314, 18, 542, 1528, 2932, 1933, 27943, 2773, 1769, 202, 202, 9693, 18, 542, 9794, 12, 21504, 2314, 1769, 202, 202, 74, 5761, 2314, 33, 2704, 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, 780, 3190, 1435, 202, 95, 202, 202, 13220, 2938, 33, 588, 3054, 5621, 202, 202, 4236, 5417, 33, 2938, 18, 588, 4236, 5621, 9506, 202, 1118, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 5879, 1769, 202, 202, 11571, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 29500, 1769, 202, 202, 19227, 33, 5417, 18, 588, 3163, 2957, 12, 55, 8588, 18, 10989, 67, 61, 2247, 4130, 1769, 202, 202, 10304, 33, 2704, 13220, 12, 2938, 16, 55, 8588, 18, 2565, 18683, 67, 6566, 49, 96, 55, 8588, 18, 862, 4574, 96, 55, 8588, 18, 6694, 1769, 202, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 2 ]
AST __t1702 = _t;
AST __t1706 = _t;
public final void oscopystate(AST _t) throws RecognitionException { AST oscopystate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1702 = _t; AST tmp1085_AST_in = (AST)_t; match(_t,OSCOPY); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; anyorvalue(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1702; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 31476, 556, 1094, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31476, 556, 1094, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 4033, 3103, 273, 389, 88, 31, 202, 202, 9053, 1853, 2163, 7140, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 51, 2312, 16505, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 2273, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2273, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2019, 67, 409, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 67, 88, 273, 1001, 88, 4033, 3103, 31, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 67, 1349, 2471, 273, 389, 88, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 31476, 556, 1094, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31476, 556, 1094, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 4033, 3103, 273, 389, 88, 31, 202, 202, 9053, 1853, 2163, 7140, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 51, 2312, 16505, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 2273, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2273, 280, 1132, 24899, 88, 2 ]
parse(buffer.toString(), ParserLanguage.CPP, true, false);
parse(buffer.toString(), ParserLanguage.CPP, false, 0);
public void test9_1s1() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct X { int a; };\n"); //$NON-NLS-1$ buffer.append("struct Y { int a; };\n"); //$NON-NLS-1$ buffer.append("X a1;\n"); //$NON-NLS-1$ buffer.append("Y a2;\n"); //$NON-NLS-1$ buffer.append("int a3;\n"); //$NON-NLS-1$ buffer.append("a1 = a2; // error: Y assigned to X\n"); //$NON-NLS-1$ buffer.append("a1 = a3; // error: int assigned to X\n"); //$NON-NLS-1$ buffer.append("int f(X);\n"); //$NON-NLS-1$ buffer.append("int f(Y);\n"); //$NON-NLS-1$ buffer.append("struct S { int a; };\n"); //$NON-NLS-1$ buffer.append("struct S { int a; }; // error, double definition\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, true, false); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29, 67, 21, 87, 21, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1697, 1139, 288, 509, 279, 31, 289, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 1697, 1624, 288, 509, 279, 31, 289, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 60, 279, 21, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 61, 279, 22, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 474, 279, 23, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 69, 21, 273, 279, 22, 31, 368, 555, 30, 1624, 6958, 358, 1139, 64, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 69, 21, 273, 279, 23, 31, 368, 555, 30, 509, 6958, 358, 1139, 64, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 474, 284, 12, 60, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 474, 284, 12, 61, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 1697, 348, 288, 509, 279, 31, 289, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 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, 29, 67, 21, 87, 21, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1697, 1139, 288, 509, 279, 31, 289, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 1697, 1624, 288, 509, 279, 31, 289, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 60, 279, 21, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 61, 279, 22, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4106, 18, 6923, 2932, 474, 279, 23, 9747, 82, 8863, 2 ]
if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
public void handleEvent(Event event) { Point localPos = new Point(event.x, event.y); CTabItem tabUnderPointer = tabFolder.getItem(localPos); if (tabUnderPointer == null) { // drag the entire stack if (getSite().isStackMoveable()) getSite().dragStart(tabFolder.toDisplay(localPos), false); return; } IPresentablePart part = getPartForTab(tabUnderPointer); if (getSite().isPartMoveable(part)) { // drag the part getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21EditorStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21EditorStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 5411, 4686, 1191, 1616, 273, 394, 4686, 12, 2575, 18, 92, 16, 871, 18, 93, 1769, 5411, 385, 5661, 1180, 3246, 14655, 4926, 273, 3246, 3899, 18, 588, 1180, 12, 3729, 1616, 1769, 5411, 309, 261, 7032, 14655, 4926, 422, 446, 13, 288, 7734, 368, 8823, 326, 7278, 2110, 7734, 309, 261, 588, 4956, 7675, 291, 2624, 7607, 429, 10756, 10792, 11021, 7675, 15997, 1685, 12, 7032, 3899, 18, 869, 4236, 12, 3729, 1616, 3631, 629, 1769, 7734, 327, 31, 5411, 289, 5411, 2971, 1581, 429, 1988, 1087, 273, 13657, 1290, 5661, 12, 7032, 14655, 4926, 1769, 5411, 309, 261, 588, 4956, 7675, 291, 1988, 7607, 429, 12, 2680, 3719, 288, 7734, 368, 8823, 326, 1087, 7734, 11021, 7675, 15997, 1685, 12, 2680, 16, 3246, 3899, 18, 869, 4236, 12, 3729, 1616, 3631, 629, 1769, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 5411, 4686, 1191, 1616, 273, 394, 4686, 12, 2575, 18, 92, 16, 871, 18, 93, 1769, 5411, 385, 5661, 1180, 3246, 14655, 4926, 273, 3246, 3899, 18, 588, 1180, 12, 3729, 1616, 1769, 5411, 309, 261, 7032, 14655, 4926, 422, 446, 13, 288, 7734, 368, 8823, 326, 7278, 2110, 7734, 309, 261, 588, 4956, 7675, 291, 2624, 7607, 429, 10756, 10792, 11021, 7675, 15997, 1685, 12, 7032, 3899, 18, 869, 4236, 12, 3729, 1616, 3631, 629, 1769, 7734, 327, 31, 5411, 289, 5411, 2971, 1581, 429, 1988, 1087, 273, 13657, 1290, 5661, 12, 7032, 14655, 4926, 1769, 5411, 309, 261, 588, 4956, 7675, 291, 1988, 7607, 429, 12, 2680, 2 ]
case Token.WITH :
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; int savedStackDepth = itsStackDepth; int stackDelta = 0; // expected stack change for subtree code boolean stackShouldBeZero = false; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.getFunctionType() != FunctionNode.FUNCTION_STATEMENT) { stackDelta = 1; // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addIcode(Icode_CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else { stackShouldBeZero = true; } break; } case Token.SCRIPT : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : // Skip case condition child = child.getNext(); // fallthrough case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.EMPTY : case Token.WITH : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LOCAL_BLOCK : stackShouldBeZero = true; if ((itsLocalTop & ~0xFF) != 0) { throw Context.reportRuntimeError( "Program too complex (out of locals)"); } node.putIntProp(Node.LOCAL_PROP, itsLocalTop); ++itsLocalTop; if (itsLocalTop > itsData.itsMaxLocals) { itsData.itsMaxLocals = itsLocalTop; } iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsLocalTop; break; case Token.LOCAL_LOAD : { stackDelta = 1; iCodeTop = addToken(Token.LOCAL_LOAD, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.COMMA : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.INIT_LIST : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addIcode(Icode_DUP, iCodeTop); // No stack adjusting: USE_STACK in subtree will do it iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackDelta = 1; itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.SWITCH : { stackShouldBeZero = true; Node.Jump switchNode = (Node.Jump)node; iCodeTop = updateLineNumber(switchNode, iCodeTop); iCodeTop = generateICode(child, iCodeTop); ObjArray cases = (ObjArray) switchNode.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.SHEQ, iCodeTop); itsStackDepth--; Node.Target target = new Node.Target(); thisCase.addChildAfter(target, first); // If true, Icode_IFEQ_POP will jump and remove case value // from stack iCodeTop = addGoto(target, Icode_IFEQ_POP, iCodeTop); itsStackDepth--; } iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; Node defaultNode = (Node) switchNode.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node.Target defaultTarget = new Node.Target(); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node.Target breakTarget = switchNode.target; iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : stackShouldBeZero = true; markTargetLabel((Node.Target)node, iCodeTop); break; case Token.NEW : case Token.CALL : { stackDelta = 1; if (type == Token.NEW) { iCodeTop = generateICode(child, iCodeTop); } else { iCodeTop = generateCallFunAndThis(child, iCodeTop); if (itsStackDepth - savedStackDepth != 2) Kit.codeBug(); } String functionName = null; int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP || childType == Token.GETVAR) { functionName = lastAddString; } int argCount = 0; while ((child = child.getNext()) != null) { iCodeTop = generateICode(child, iCodeTop); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addIcode(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addString(type, functionName, iCodeTop); } // adjust stack if (type == Token.NEW) { // f, args -> results itsStackDepth -= argCount; } else { // f, thisObj, args -> results itsStackDepth -= (argCount + 1); } iCodeTop = addIndex(argCount, iCodeTop); if (argCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = argCount; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.FINALLY : { stackShouldBeZero = true; // Account for incomming exception or GOTOSUB address ++itsStackDepth; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int finallyRegister = getLocalBlockRef(node); iCodeTop = addToken(Token.LOCAL_SAVE, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); itsStackDepth--; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (itsStackDepth != 0) Kit.codeBug(); child = child.getNext(); } iCodeTop = addIcode(Icode_RETSUB, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); break; } case Token.AND : case Token.OR : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIcode(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int afterSecondJumpStart = iCodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; iCodeTop = addForwardGoto(jump, iCodeTop); itsStackDepth--; iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(afterSecondJumpStart, iCodeTop); break; } case Token.HOOK : { stackDelta = 1; Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); iCodeTop = generateICode(child, iCodeTop); int elseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); itsStackDepth--; iCodeTop = generateICode(ifThen, iCodeTop); int afterElseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(elseJumpStart, iCodeTop); itsStackDepth = savedStackDepth; iCodeTop = generateICode(ifElse, iCodeTop); resolveForwardGoto(afterElseJumpStart, iCodeTop); break; } case Token.GETPROP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: case Token.IN : case Token.INSTANCEOF : case Token.LE : case Token.LT : case Token.GE : case Token.GT : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.POS : case Token.NEG : case Token.NOT : case Token.BITNOT : case Token.TYPEOF : case Token.VOID : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); if (type == Token.VOID) { iCodeTop = addToken(Token.POP, iCodeTop); iCodeTop = addToken(Token.UNDEFINED, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } break; case Token.SETPROP : case Token.SETPROP_OP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUP, iCodeTop); if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_SETPARENT, iCodeTop); } else { badTree(node); } itsStackDepth--; } else { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : case Token.SETELEM_OP : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETELEM_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETELEM, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETELEM, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addString(Token.SETNAME, firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOFNAME : { stackDelta = 1; String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addString(Icode_TYPEOFNAME, name, iCodeTop); } else { iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addToken(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.BINDNAME : case Token.NAME : case Token.STRING : stackDelta = 1; iCodeTop = addString(type, node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { stackDelta = 1; int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addString(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addIcode(type == Token.INC ? Icode_VARINC : Icode_VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); int icode; if (childType == Token.GETPROP) { icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; } else { icode = (type == Token.INC) ? Icode_ELEMINC : Icode_ELEMDEC; } iCodeTop = addIcode(icode, iCodeTop); itsStackDepth--; break; } default : { iCodeTop = addString(type == Token.INC ? Icode_NAMEINC : Icode_NAMEDEC, child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { stackDelta = 1; double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addToken(Token.ZERO, iCodeTop); // Check for negative zero if (1.0 / num < 0.0) { iCodeTop = addToken(Token.NEG, iCodeTop); } } else if (inum == 1) { iCodeTop = addToken(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addIcode(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addIcode(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addToken(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POPV : stackShouldBeZero = true; // fallthrough case Token.POP : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.ENTERWITH : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENTERWITH, iCodeTop); itsStackDepth--; break; case Token.CATCH_SCOPE : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addString(Token.CATCH_SCOPE, node.getString(), iCodeTop); break; case Token.LEAVEWITH : stackShouldBeZero = true; iCodeTop = addToken(Token.LEAVEWITH, iCodeTop); break; case Token.TRY : { stackShouldBeZero = true; Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); Node catchTarget = tryNode.target; Node finallyTarget = tryNode.getFinally(); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (tryEnd >= 0) Kit.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } else if (child == finallyTarget) { if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth, exceptionObjectLocal); break; } case Token.THROW : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.THROW, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); itsStackDepth--; break; case Token.RETURN : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addIcode(Icode_RETUNDEF, iCodeTop); } break; case Token.RETURN_POPV : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = addToken(Token.RETURN_POPV, iCodeTop); break; case Token.GETVAR : { stackDelta = 1; String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addString(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { stackDelta = 1; if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: case Token.UNDEFINED: stackDelta = 1; iCodeTop = addToken(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUM_INIT : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENUM_INIT, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUM_NEXT : case Token.ENUM_ID : { stackDelta = 1; iCodeTop = addToken(type, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.REGEXP : { stackDelta = 1; int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addToken(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } if (stackDelta != itsStackDepth - savedStackDepth) { //System.out.println("Bad stack delta: type="+Token.name(type)+" expected="+stackDelta+" real="+ (itsStackDepth - savedStackDepth)); Kit.codeBug(); } if (stackShouldBeZero && !(stackDelta == 0 && itsStackDepth == 0)) { Kit.codeBug(); } return iCodeTop; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/49f9800c8bf5216932921c53fcb04246f042c81e/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 4293, 1016, 1769, 7734, 309, 261, 4293, 18, 588, 2083, 559, 1435, 480, 4284, 907, 18, 7788, 67, 28411, 13, 288, 10792, 2110, 9242, 273, 404, 31, 10792, 368, 5098, 445, 8041, 578, 445, 2652, 10792, 368, 6317, 4260, 7213, 981, 4979, 394, 445, 10792, 368, 733, 603, 2110, 487, 445, 6317, 854, 6454, 10792, 368, 622, 2728, 19, 915, 787, 10792, 277, 1085, 3401, 273, 527, 45, 710, 12, 45, 710, 67, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 26794, 12, 4293, 1016, 16, 277, 1085, 3401, 1769, 10792, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 2 ]
return;
return fill_called;
public void parseNext() throws IOException { if (_buffer==null) { _header = _buffers.getBuffer(_headerBufferSize); _buffer = _header; _tok0 = new View(_header); _tok1 = new View(_header); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); } if (_state == STATE_END) throw new IllegalStateException("STATE_END"); if (_state == STATE_CONTENT && _contentPosition == _contentLength) { _state = STATE_END; _handler.messageComplete(_contentPosition); return; } int length=_buffer.length(); // Fill buffer if we can if (length == 0) { if (_buffer.markIndex() == 0 && _buffer.putIndex() == _buffer.capacity()) throw new IOException("FULL"); int filled = -1; if (_endp != null) { // Compress buffer if handling _content buffer // TODO check this is not moving data too much if (_buffer == _content) _buffer.compact(); if (_buffer.space() == 0) throw new IOException("FULL"); try { filled = _endp.fill(_buffer); } catch(IOException ioe) { Log.debug(ioe); throw new IOException("EOF"); } } if (filled < 0 && _state == STATE_EOF_CONTENT) { _state = STATE_END; _handler.messageComplete(_contentPosition); return; } if (filled < 0) throw new IOException("EOF"); length=_buffer.length(); } // EventHandler header byte ch; while (_state < STATE_END && length-->0) { ch = _buffer.get(); if (_eol == CARRIAGE_RETURN && ch == LINE_FEED) { _eol = LINE_FEED; continue; } _eol = 0; switch (_state) { case STATE_START: _contentLength = UNKNOWN_CONTENT; if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD0; } break; case STATE_FIELD0: if (ch == SPACE) { _tok0.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE1; continue; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_SPACE1: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD1; _response = ch >= '1' && ch <= '5'; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_FIELD1: if (ch == SPACE) { _tok1.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE2; continue; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer .sliceFromMark(), null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return; } break; case STATE_SPACE2: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD2; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return; } break; case STATE_FIELD2: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_response) _handler.startResponse(HttpVersions.CACHE.lookup(_tok0), BufferUtil .toInt(_tok1), _buffer.sliceFromMark()); else _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, HttpVersions.CACHE.lookup(_buffer.sliceFromMark())); _eol = ch; _state = STATE_HEADER; _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; return; } break; case STATE_HEADER: if (ch == COLON || ch == SPACE || ch == TAB) { // header value without name - continuation? _length = -1; _state = STATE_HEADER_VALUE; } else { // handler last header if any if (_tok0.length() > 0 || _tok1.length() > 0 || _multiLineValue != null) { Buffer header = HttpHeaders.CACHE.lookup(_tok0); Buffer value = _multiLineValue == null ? (Buffer) _tok1 : (Buffer) new ByteArrayBuffer(_multiLineValue); int ho = HttpHeaders.CACHE.getOrdinal(header); if (ho >= 0) { int vo = -1; switch (ho) { case HttpHeaders.CONTENT_LENGTH_ORDINAL: if (_contentLength != CHUNKED_CONTENT) { _contentLength = BufferUtil.toInt(value); if (_contentLength <= 0) _contentLength = HttpParser.NO_CONTENT; } break; case HttpHeaders.CONNECTION_ORDINAL: // TODO comma list of connections !!! value = HttpHeaderValues.CACHE.lookup(value); break; case HttpHeaders.TRANSFER_ENCODING_ORDINAL: value = HttpHeaderValues.CACHE.lookup(value); vo=HttpHeaderValues.CACHE.getOrdinal(value); if (HttpHeaderValues.CHUNKED_ORDINAL == vo) _contentLength = CHUNKED_CONTENT; else { // TODO avoid string conversion here String c = value.toString(); if (c.endsWith(HttpHeaderValues.CHUNKED)) _contentLength = CHUNKED_CONTENT; else if (c.indexOf(HttpHeaderValues.CHUNKED) >= 0) throw new IOException("BAD"); } break; case HttpHeaders.CONTENT_TYPE_ORDINAL: _hasContent = true; break; } } _handler.parsedHeader(header, value); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; } // now handle ch if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { // End of header // work out the _content demarcation if (_contentLength == UNKNOWN_CONTENT) { if (_hasContent || _response) _contentLength = EOF_CONTENT; else _contentLength = NO_CONTENT; } _contentPosition = 0; _eol = ch; switch (_contentLength) { case HttpParser.EOF_CONTENT: _state = STATE_EOF_CONTENT; if(_buffers!=null && _buffer==_header) { _buffer=_buffers.getBuffer(_contentBufferSize); _buffer.put(_header); _header.clear(); } _handler.headerComplete(); // May recurse here ! break; case HttpParser.CHUNKED_CONTENT: _state = STATE_CHUNKED_CONTENT; if(_buffers!=null && _buffer==_header) { _buffer=_buffers.getBuffer(_contentBufferSize); _buffer.put(_header); _header.clear(); } _handler.headerComplete(); // May recurse here ! break; case HttpParser.NO_CONTENT: _state = STATE_END; _handler.headerComplete(); // May recurse here ! _handler.messageComplete(_contentPosition); break; default: _state = STATE_CONTENT; if(_buffers!=null && _buffer==_header && _contentLength>_buffer.capacity()-_buffer.getIndex()) { _buffer=_buffers.getBuffer(_contentBufferSize); _buffer.put(_header); _header.clear(); } _handler.headerComplete(); // May recurse here ! break; } return; } else { // New header _length = 1; _buffer.mark(); _state = STATE_HEADER_NAME; } } break; case STATE_HEADER_NAME: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _eol = ch; _state = STATE_HEADER; } else if (ch == COLON) { if (_length > 0) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _length = -1; _state = STATE_HEADER_VALUE; } else if (ch != SPACE && ch != TAB) { if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; case STATE_HEADER_VALUE: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) { if (_tok1.length() == 0) _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); else { // Continuation line! // TODO - deal with CR LF and COLON? if (_multiLineValue == null) _multiLineValue = _tok1.toString(); _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); _multiLineValue += " " + _tok1.toString(); } } _eol = ch; _state = STATE_HEADER; } else if (ch != SPACE && ch != TAB) { if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; } } // end of HEADER states loop // Handle _content Buffer chunk; length = _buffer.length(); while (_state > STATE_END && length > 0) { if (_eol == CARRIAGE_RETURN && _buffer.peek() == LINE_FEED) { _eol = _buffer.get(); length = _buffer.length(); continue; } _eol = 0; switch (_state) { case STATE_EOF_CONTENT: chunk = _buffer.get(_buffer.length()); _handler.content(_contentPosition, chunk); _contentPosition += chunk.length(); return; case STATE_CONTENT: { int remaining = _contentLength - _contentPosition; if (remaining == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _handler.content(_contentPosition, chunk); _contentPosition += chunk.length(); return; } case STATE_CHUNKED_CONTENT: { ch = _buffer.peek(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) _eol = _buffer.get(); else if (ch <= SPACE) _buffer.get(); else { _chunkLength = 0; _chunkPosition = 0; _state = STATE_CHUNK_SIZE; } break; } case STATE_CHUNK_SIZE: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return; } else _state = STATE_CHUNK; } else if (ch <= SPACE || ch == SEMI_COLON) _state = STATE_CHUNK_PARAMS; else if (ch >= '0' && ch <= '9') _chunkLength = _chunkLength * 16 + (ch - '0'); else if (ch >= 'a' && ch <= 'f') _chunkLength = _chunkLength * 16 + (10 + ch - 'a'); else if (ch >= 'A' && ch <= 'F') _chunkLength = _chunkLength * 16 + (10 + ch - 'A'); else throw new IOException("bad chunk char: " + ch); break; } case STATE_CHUNK_PARAMS: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return; } else _state = STATE_CHUNK; } break; } case STATE_CHUNK: { int remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_CHUNKED_CONTENT; break; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _handler.content(_contentPosition, chunk); _contentPosition += chunk.length(); _chunkPosition += chunk.length(); return; } } length = _buffer.length(); } }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/b5534fc956197d82434dbef4ad530bbea7c515b2/HttpParser.java/buggy/trunk/modules/jetty/src/main/java/org/mortbay/jetty/HttpParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 2134, 1435, 1216, 1860, 565, 288, 3639, 309, 261, 67, 4106, 631, 2011, 13, 3639, 288, 5411, 389, 3374, 273, 389, 28101, 18, 588, 1892, 24899, 3374, 15384, 1769, 5411, 389, 4106, 273, 389, 3374, 31, 5411, 389, 17692, 20, 273, 394, 4441, 24899, 3374, 1769, 5411, 389, 17692, 21, 273, 394, 4441, 24899, 3374, 1769, 5411, 389, 17692, 20, 18, 542, 6426, 1016, 24899, 17692, 20, 18, 588, 1016, 10663, 5411, 389, 17692, 21, 18, 542, 6426, 1016, 24899, 17692, 21, 18, 588, 1016, 10663, 3639, 289, 7734, 309, 261, 67, 2019, 422, 7442, 67, 4415, 13, 604, 394, 5477, 2932, 7998, 67, 4415, 8863, 3639, 309, 261, 67, 2019, 422, 7442, 67, 9689, 597, 389, 1745, 2555, 422, 389, 1745, 1782, 13, 3639, 288, 5411, 389, 2019, 273, 7442, 67, 4415, 31, 5411, 389, 4176, 18, 2150, 6322, 24899, 1745, 2555, 1769, 5411, 327, 3636, 67, 11777, 31, 3639, 289, 7734, 509, 769, 33, 67, 4106, 18, 2469, 5621, 3639, 368, 14192, 1613, 309, 732, 848, 3639, 309, 261, 2469, 422, 374, 13, 3639, 288, 5411, 309, 261, 67, 4106, 18, 3355, 1016, 1435, 422, 374, 597, 389, 4106, 18, 458, 1016, 1435, 422, 389, 4106, 18, 16017, 10756, 10792, 604, 394, 1860, 2932, 18111, 8863, 5411, 509, 6300, 273, 300, 21, 31, 5411, 309, 261, 67, 409, 84, 480, 446, 13, 5411, 288, 7734, 368, 25698, 1613, 309, 5057, 389, 1745, 1613, 7734, 368, 2660, 866, 333, 353, 486, 12499, 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, 1109, 2134, 1435, 1216, 1860, 565, 288, 3639, 309, 261, 67, 4106, 631, 2011, 13, 3639, 288, 5411, 389, 3374, 273, 389, 28101, 18, 588, 1892, 24899, 3374, 15384, 1769, 5411, 389, 4106, 273, 389, 3374, 31, 5411, 389, 17692, 20, 273, 394, 4441, 24899, 3374, 1769, 5411, 389, 17692, 21, 273, 394, 4441, 24899, 3374, 1769, 5411, 389, 17692, 20, 18, 542, 6426, 1016, 24899, 17692, 20, 18, 588, 1016, 10663, 5411, 389, 17692, 21, 18, 542, 6426, 1016, 24899, 17692, 21, 18, 588, 1016, 10663, 3639, 289, 7734, 309, 261, 67, 2019, 422, 7442, 67, 4415, 13, 604, 394, 5477, 2932, 7998, 67, 4415, 8863, 3639, 309, 261, 67, 2019, 422, 7442, 67, 9689, 2 ]
retEnv = SunRound2Client.sendMsg(util, url, soapAction);
retEnv = client.sendMsg(util, url, soapAction);
public void testR2GBEcho2DStringArray() throws AxisFault { url = "http://www.cincomsmalltalk.com/r2groupb/interop"; soapAction = "http://soapinterop.org/"; util = new GroupbEcho2DStringArrayUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunGroupb2DStringArrayRes.xml"; compare(retEnv, tempPath); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/VWRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/VWRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 5887, 19704, 22, 40, 28547, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 71, 267, 832, 12019, 88, 2960, 18, 832, 19, 86, 22, 1655, 70, 19, 30376, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 3756, 70, 19704, 22, 40, 28547, 1304, 5621, 3639, 325, 3491, 273, 1004, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 16924, 1114, 70, 22, 40, 28547, 607, 18, 2902, 14432, 3639, 3400, 12, 1349, 3491, 16, 1906, 743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 5887, 19704, 22, 40, 28547, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 71, 267, 832, 12019, 88, 2960, 18, 832, 19, 86, 22, 1655, 70, 19, 30376, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 3756, 70, 19704, 22, 40, 28547, 1304, 5621, 3639, 325, 3491, 273, 1004, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 16924, 1114, 70, 22, 40, 28547, 607, 18, 2902, 14432, 3639, 3400, 12, 1349, 3491, 16, 1906, 743, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( this.bottom.equals( DEFAULT_BOTTOM ) ) { this.bottom = "Copyright &copy; " + year + " "; if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) ) { this.bottom += model.getOrganization().getName();
if ( bottom.equals( DEFAULT_BOTTOM ) ) { bottom = "Copyright &copy; " + year + " "; if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) ) { bottom += model.getOrganization().getName();
protected void executeReport( Locale locale ) throws MavenReportException { try { int actualYear = Calendar.getInstance().get( Calendar.YEAR ); String year = String.valueOf( actualYear ); Model model = getProject().getModel(); if ( model.getInceptionYear() != null ) { if ( StringUtils.isNumeric( model.getInceptionYear() ) ) { if ( Integer.valueOf( model.getInceptionYear() ).intValue() != actualYear ) { year = model.getInceptionYear() + "-" + String.valueOf( actualYear ); } } else { getLog().warn( "The inception year is not a valid year." ); } } StringBuffer classpath = new StringBuffer(); for ( Iterator i = getProject().getCompileClasspathElements().iterator(); i.hasNext(); ) { classpath.append( (String) i.next() ); if ( i.hasNext() ) { classpath.append( PATH_SEPARATOR ); } } StringBuffer sourcePath = new StringBuffer(); String[] fileList = new String[1]; for ( Iterator i = getProject().getCompileSourceRoots().iterator(); i.hasNext(); ) { String sourceDirectory = (String) i.next(); fileList = FileUtils.getFilesFromExtension( sourceDirectory, new String[] { "java" } ); sourcePath.append( sourceDirectory ); } File javadocDirectory = new File( getProject().getBuild().getDirectory() + "/javadoc" ); if ( fileList != null && fileList.length != 0 ) { StringBuffer files = new StringBuffer(); for ( int i = 0; i < fileList.length; i++ ) { files.append( fileList[i] ); files.append( "\n" ); } javadocDirectory.mkdirs(); FileUtils.fileWrite( new File( javadocDirectory, "files" ).getAbsolutePath(), files.toString() ); } else { return; } // Copy default style sheet copyDefaultStylesheet( javadocDirectory ); this.cmd.setWorkingDirectory( javadocDirectory.getAbsolutePath() ); this.cmd.setExecutable( getJavadocPath() ); // General javadoc arguments addArgIf( this.breakiterator, "-breakiterator", 1.4f ); if ( !StringUtils.isEmpty( this.doclet ) ) { addArgIfNotEmpty( "-doclet", this.doclet ); addArgIfNotEmpty( "-docletPath", this.docletPath ); } addArgIfNotEmpty( "-encoding", this.encoding ); addArgIfNotEmpty( "-extdirs", this.extdirs ); addArgIfNotEmpty( "-exclude", this.excludePackageNames, 1.4f ); addArgIfNotEmpty( "-locale", this.locale ); if ( !StringUtils.isEmpty( this.maxmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.maxmemory ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.maxmemory.substring( 0, this.maxmemory.length() - 1 ) ) ) && ( this.maxmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory ); } else { getLog().error( "The maxmemory '" + this.maxmemory + "' is not a valid number. Ignore this option." ); } } } if ( !StringUtils.isEmpty( this.minmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.minmemory ) ) { addArgIf( true, "-J-Xms" + this.minmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.minmemory.substring( 0, this.minmemory.length() - 1 ) ) ) && ( this.minmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xms" + this.minmemory ); } else { getLog().error( "The minmemory '" + this.minmemory + "' is not a valid number. Ignore this option." ); } } } if ( this.old && SystemUtils.isJavaVersionAtLeast( 1.4f ) ) { getLog().warn( "Javadoc 1.4 doesn't support the -1.1 switch anymore. Ignore this option." ); } else { addArgIf( this.old, "-1.1" ); } addArgIfNotEmpty( "-overview", this.overview ); addArgIf( this.package_, "-package" ); addArgIf( this.private_, "-private" ); addArgIf( this.protected_, "-protected" ); addArgIf( this.public_, "-public" ); addArgIf( this.quiet, "-quiet", 1.4f ); addArgIfNotEmpty( "-source", this.source, 1.4f ); addArgIf( this.verbose, "-verbose" ); addArgIfNotEmpty( "-additionalparam", this.additionalparam ); addArgIfNotEmpty( "-sourcePath", sourcePath.toString() ); addArgIfNotEmpty( "-classpath", classpath.toString() ); // javadoc arguments for default doclet if ( StringUtils.isEmpty( this.doclet ) ) { // Specify default values if ( this.bottom.equals( DEFAULT_BOTTOM ) ) { this.bottom = "Copyright &copy; " + year + " "; if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) ) { this.bottom += model.getOrganization().getName(); } else { this.bottom += DEFAULT_ORGANIZATION_NAME; } this.bottom += ". All Rights Reserved."; } if ( this.destDir.equals( DEFAULT_DESTDIR ) ) { File outputDir = new File( getReportOutputDirectory().getAbsolutePath() + "/apidocs" ); outputDir.mkdirs(); this.destDir = outputDir.getAbsolutePath(); } if ( StringUtils.isEmpty( this.stylesheetfile ) ) { this.stylesheetfile = javadocDirectory + File.separator + DEFAULT_CSS_NAME; } if ( this.windowtitle.equals( DEFAULT_WINDOW_TITLE ) ) { this.windowtitle = ( model.getName() == null ? model.getArtifactId() : model.getName() ) + " " + model.getVersion() + " API"; } if ( this.doctitle.equals( DEFAULT_DOCTITLE ) ) { this.doctitle = this.windowtitle; } // End Specify default values addArgIf( this.author, "-author" ); addArgIfNotEmpty( "-bottom", this.bottom ); addArgIf( this.breakiterator, "-breakiterator", 1.4f ); addArgIfNotEmpty( "-charset", this.charset ); addArgIfNotEmpty( "-d", this.destDir ); addArgIf( this.docfilessubdirs, "-docfilessubdirs", 1.4f ); addArgIfNotEmpty( "-docencoding", this.docencoding ); addArgIfNotEmpty( "-doctitle", this.doctitle ); addArgIfNotEmpty( "-excludePackageNames", this.excludePackageNames ); addArgIfNotEmpty( "-excludedocfilessubdir", this.excludedocfilessubdir, 1.4f ); addArgIfNotEmpty( "-footer", this.footer ); addArgIfNotEmpty( "-group", this.group, true ); addArgIfNotEmpty( "-header", this.header ); addArgIfNotEmpty( "-helpfile", this.helpfile ); addArgIfNotEmpty( "-link", this.link, true ); addArgIfNotEmpty( "-linkoffline", this.linkoffline, true ); addArgIf( this.linksource, "-linksource", 1.4f ); addArgIf( this.nodeprecated, "-nodeprecated" ); addArgIf( this.nodeprecatedlist, "-nodeprecatedlist" ); addArgIf( this.nocomment, "-nocomment", 1.4f ); addArgIf( this.nohelp, "-nohelp" ); addArgIf( this.noindex, "-noindex" ); addArgIf( this.nonavbar, "-nonavbar" ); addArgIfNotEmpty( "-noqualifier", this.noqualifier, 1.4f ); addArgIf( this.nosince, "-nosince" ); addArgIf( this.notree, "-notree" ); addArgIf( this.serialwarn, "-serialwarn" ); addArgIf( this.splitindex, "-splitindex" ); addArgIfNotEmpty( "-stylesheetfile", this.stylesheetfile ); addArgIfNotEmpty( "-tag", this.tag, 1.4f, true ); addArgIfNotEmpty( "-taglet", this.taglet, 1.4f ); addArgIfNotEmpty( "-tagletpath", this.tagletpath, 1.4f ); addArgIf( this.use, "-use" ); addArgIf( this.version, "-version" ); addArgIfNotEmpty( "-windowtitle", this.windowtitle ); } cmd.createArgument().setValue( "@files" ); getLog().info( Commandline.toString( cmd.getCommandline() ) ); final int exitCode = CommandLineUtils .executeCommandLine( cmd, new DefaultConsumer(), new DefaultConsumer() ); if ( exitCode != 0 ) { throw new MavenReportException( "Exit code: " + exitCode ); } } catch ( Exception e ) { getLog().debug( e ); throw new MavenReportException( "An error has occurred in javadoc report generation.", e ); } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/7f9ca7632659d1b09416026c87ce3e635b6c7495/JavadocReport.java/clean/maven-plugins/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 4820, 12, 6458, 2573, 262, 3639, 1216, 17176, 4820, 503, 565, 288, 3639, 775, 3639, 288, 5411, 509, 3214, 5593, 273, 5542, 18, 588, 1442, 7675, 588, 12, 5542, 18, 15137, 11272, 5411, 514, 3286, 273, 514, 18, 1132, 951, 12, 3214, 5593, 11272, 5411, 3164, 938, 273, 11080, 7675, 588, 1488, 5621, 5411, 309, 261, 938, 18, 588, 382, 472, 5593, 1435, 480, 446, 262, 5411, 288, 7734, 309, 261, 5778, 18, 291, 9902, 12, 938, 18, 588, 382, 472, 5593, 1435, 262, 262, 7734, 288, 10792, 309, 261, 2144, 18, 1132, 951, 12, 938, 18, 588, 382, 472, 5593, 1435, 262, 18, 474, 620, 1435, 480, 3214, 5593, 262, 10792, 288, 13491, 3286, 273, 938, 18, 588, 382, 472, 5593, 1435, 397, 7514, 397, 514, 18, 1132, 951, 12, 3214, 5593, 11272, 10792, 289, 7734, 289, 7734, 469, 7734, 288, 10792, 9189, 7675, 8935, 12, 315, 1986, 316, 472, 3286, 353, 486, 279, 923, 3286, 1199, 11272, 7734, 289, 5411, 289, 5411, 6674, 10006, 273, 394, 6674, 5621, 5411, 364, 261, 4498, 277, 273, 11080, 7675, 588, 9937, 17461, 3471, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 10006, 18, 6923, 12, 261, 780, 13, 277, 18, 4285, 1435, 11272, 7734, 309, 261, 277, 18, 5332, 2134, 1435, 262, 7734, 288, 10792, 10006, 18, 6923, 12, 7767, 67, 4550, 11272, 7734, 289, 5411, 289, 5411, 6674, 17744, 273, 394, 6674, 5621, 5411, 514, 8526, 18645, 273, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 4820, 12, 6458, 2573, 262, 3639, 1216, 17176, 4820, 503, 565, 288, 3639, 775, 3639, 288, 5411, 509, 3214, 5593, 273, 5542, 18, 588, 1442, 7675, 588, 12, 5542, 18, 15137, 11272, 5411, 514, 3286, 273, 514, 18, 1132, 951, 12, 3214, 5593, 11272, 5411, 3164, 938, 273, 11080, 7675, 588, 1488, 5621, 5411, 309, 261, 938, 18, 588, 382, 472, 5593, 1435, 480, 446, 262, 5411, 288, 7734, 309, 261, 5778, 18, 291, 9902, 12, 938, 18, 588, 382, 472, 5593, 1435, 262, 262, 7734, 288, 10792, 309, 261, 2144, 18, 1132, 951, 12, 938, 18, 588, 382, 472, 5593, 1435, 262, 18, 474, 620, 1435, 480, 3214, 5593, 262, 10792, 288, 13491, 3286, 2 ]
Object selector = ctx.getNextArg(); Object[] args = { selector }; for (int i = 2; i < ctx.count; i++)
Object[] args = ctx.getArgs(); Object selector = args[0]; int n = args.length-1; for (int i = 1; i < n; i++)
public void apply (CallContext ctx) throws Throwable { Object selector = ctx.getNextArg(); Object[] args = { selector }; for (int i = 2; i < ctx.count; i++) { MethodProc caseProc = (MethodProc) ctx.getNextArg(); // FIXME this does not work. if (caseProc.matchN(args, ctx) >= 0) return; } Procedure defaultProc = (Procedure) ctx.getNextArg(); defaultProc.check0(ctx); }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/1ba214b011a5472ed10cbb54acf4de60285ac833/TypeSwitch.java/clean/gnu/kawa/reflect/TypeSwitch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 261, 22582, 1103, 13, 1216, 4206, 225, 288, 565, 1033, 3451, 273, 1103, 18, 588, 2134, 4117, 5621, 565, 1033, 8526, 833, 273, 288, 3451, 289, 31, 565, 364, 261, 474, 277, 273, 576, 31, 225, 277, 411, 1103, 18, 1883, 31, 225, 277, 27245, 1377, 288, 202, 1305, 15417, 648, 15417, 273, 261, 1305, 15417, 13, 1103, 18, 588, 2134, 4117, 5621, 202, 759, 9852, 333, 1552, 486, 1440, 18, 202, 430, 261, 3593, 15417, 18, 1916, 50, 12, 1968, 16, 1103, 13, 1545, 374, 13, 202, 225, 327, 31, 1377, 289, 565, 26639, 805, 15417, 273, 261, 17213, 13, 1103, 18, 588, 2134, 4117, 5621, 565, 805, 15417, 18, 1893, 20, 12, 5900, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 261, 22582, 1103, 13, 1216, 4206, 225, 288, 565, 1033, 3451, 273, 1103, 18, 588, 2134, 4117, 5621, 565, 1033, 8526, 833, 273, 288, 3451, 289, 31, 565, 364, 261, 474, 277, 273, 576, 31, 225, 277, 411, 1103, 18, 1883, 31, 225, 277, 27245, 1377, 288, 202, 1305, 15417, 648, 15417, 273, 261, 1305, 15417, 13, 1103, 18, 588, 2134, 4117, 5621, 202, 759, 9852, 333, 1552, 486, 1440, 18, 202, 430, 261, 3593, 15417, 18, 1916, 50, 12, 1968, 16, 1103, 13, 1545, 374, 13, 202, 225, 327, 31, 1377, 289, 565, 26639, 805, 15417, 273, 261, 17213, 13, 1103, 18, 588, 2134, 4117, 5621, 565, 805, 15417, 18, 1893, 20, 12, 5900, 2 ]
&& m_charInfo.isASCIIClean(ch2))
&& m_charInfo.isTextASCIIClean(ch2))
public void characters(final char chars[], final int start, final int length) throws org.xml.sax.SAXException { if (m_elemContext.m_startTagOpen) { closeStartTag(); m_elemContext.m_startTagOpen = false; } else if (m_needToCallStartDocument) { startDocumentInternal(); } if (m_cdataStartCalled || m_elemContext.m_isCdataSection) { /* either due to startCDATA() being called or due to * cdata-section-elements atribute, we need this as cdata */ cdata(chars, start, length); return; } if (m_cdataTagOpen) closeCDATA(); // the check with _escaping is a bit of a hack for XLSTC if (m_disableOutputEscapingStates.peekOrFalse() || (!m_escaping)) { charactersRaw(chars, start, length); // time to fire off characters generation event if (m_tracer != null) super.fireCharEvent(chars, start, length); return; } if (m_elemContext.m_startTagOpen) { closeStartTag(); m_elemContext.m_startTagOpen = false; } try { int i; char ch1; int startClean; // skip any leading whitspace // don't go off the end and use a hand inlined version // of isWhitespace(ch) final int end = start + length; int lastDirty = start - 1; // last character that needed processing for (i = start; ((i < end) && ((ch1 = chars[i]) == 0x20 || (ch1 == 0xA && m_lineSepUse) || ch1 == 0xD || ch1 == 0x09)); i++) { /* * We are processing leading whitespace, but are doing the same * processing for dirty characters here as for non-whitespace. * */ if (!m_charInfo.isASCIIClean(ch1)) { lastDirty = processDirty(chars,end, i,ch1, lastDirty); i = lastDirty; } } /* If there is some non-whitespace, mark that we may need * to preserve this. This is only important if we have indentation on. */ if (i < end) m_ispreserve = true; // int lengthClean; // number of clean characters in a row// final boolean[] isAsciiClean = m_charInfo.getASCIIClean(); // we've skipped the leading whitespace, now deal with the rest for (; i < end; i++) { { // A tight loop to skip over common clean chars // This tight loop makes it easier for the JIT // to optimize. char ch2; while (i<end && ((ch2 = chars[i])<127) && m_charInfo.isASCIIClean(ch2)) i++; if (i == end) break; } final char ch = chars[i]; if ( (escapingNotNeeded(ch) && (!m_charInfo.isSpecial(ch))) || ('"' == ch)) { ; // a character needing no special processing } else { lastDirty = processDirty(chars,end, i, ch, lastDirty); i = lastDirty; } } // we've reached the end. Any clean characters at the // end of the array than need to be written out? startClean = lastDirty + 1; if (i > startClean) { int lengthClean = i - startClean; m_writer.write(chars, startClean, lengthClean); } // For indentation purposes, mark that we've just writen text out m_isprevtext = true; } catch (IOException e) { throw new SAXException(e); } // time to fire off characters generation event if (m_tracer != null) super.fireCharEvent(chars, start, length); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/4482d8d80ead98291774223463630650929702d5/ToStream.java/buggy/src/org/apache/xml/serializer/ToStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3949, 12, 6385, 1149, 5230, 63, 6487, 727, 509, 787, 16, 727, 509, 769, 13, 3639, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 565, 288, 3639, 309, 261, 81, 67, 10037, 1042, 18, 81, 67, 1937, 1805, 3678, 13, 3639, 288, 5411, 1746, 30512, 5621, 5411, 312, 67, 10037, 1042, 18, 81, 67, 1937, 1805, 3678, 273, 629, 31, 3639, 289, 3639, 469, 309, 261, 81, 67, 14891, 774, 1477, 1685, 2519, 13, 3639, 288, 5411, 787, 2519, 3061, 5621, 3639, 289, 3639, 309, 261, 81, 67, 71, 892, 1685, 8185, 747, 312, 67, 10037, 1042, 18, 81, 67, 291, 39, 892, 5285, 13, 3639, 288, 5411, 1748, 3344, 6541, 358, 787, 18375, 1435, 3832, 2566, 578, 6541, 358, 2868, 380, 20712, 17, 3464, 17, 6274, 622, 1533, 624, 16, 732, 1608, 333, 487, 20712, 2398, 1195, 5411, 20712, 12, 7549, 16, 787, 16, 769, 1769, 5411, 327, 31, 3639, 289, 3639, 309, 261, 81, 67, 71, 892, 1805, 3678, 13, 5411, 1746, 18375, 5621, 3639, 368, 326, 866, 598, 389, 742, 24447, 353, 279, 2831, 434, 279, 11769, 364, 1139, 48, 882, 39, 3639, 309, 261, 81, 67, 8394, 1447, 6412, 24447, 7629, 18, 347, 3839, 1162, 8381, 1435, 747, 16051, 81, 67, 742, 24447, 3719, 3639, 288, 5411, 3949, 4809, 12, 7549, 16, 787, 16, 769, 1769, 5411, 368, 813, 358, 4452, 3397, 3949, 9377, 871, 5411, 309, 261, 81, 67, 313, 10598, 480, 446, 13, 7734, 2240, 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, 3949, 12, 6385, 1149, 5230, 63, 6487, 727, 509, 787, 16, 727, 509, 769, 13, 3639, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 565, 288, 3639, 309, 261, 81, 67, 10037, 1042, 18, 81, 67, 1937, 1805, 3678, 13, 3639, 288, 5411, 1746, 30512, 5621, 5411, 312, 67, 10037, 1042, 18, 81, 67, 1937, 1805, 3678, 273, 629, 31, 3639, 289, 3639, 469, 309, 261, 81, 67, 14891, 774, 1477, 1685, 2519, 13, 3639, 288, 5411, 787, 2519, 3061, 5621, 3639, 289, 3639, 309, 261, 81, 67, 71, 892, 1685, 8185, 747, 312, 67, 10037, 1042, 18, 81, 67, 291, 39, 892, 5285, 13, 3639, 288, 5411, 1748, 3344, 6541, 358, 787, 2 ]
void loadMaildirProperties(Properties p) { String mailHome = Pooka.getProperty(getStoreProperty() + ".mailDir", ""); if (mailHome.equals("")) { mailHome = Pooka.getProperty("Pooka.defaultMailSubDir", ""); if (mailHome.equals("")) mailHome = System.getProperty("user.home") + java.io.File.separator + ".pooka"; mailHome = mailHome + java.io.File.separator + storeID; } String userHomeName = mailHome + java.io.File.separator + Pooka.getProperty("Pooka.subFolderName", "folders"); //p.setProperty("mail.store.maildir.imapEmulation", "true"); p.setProperty("mail.store.maildir.baseDir", userHomeName); p.setProperty("mail.store.maildir.autocreatedir", "true"); }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/c677f3c5163064181371400546e1174f24b809f4/StoreInfo.java/clean/src/net/suberic/pooka/StoreInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1262, 49, 69, 545, 481, 2297, 12, 2297, 293, 13, 288, 3639, 514, 4791, 8684, 273, 453, 1184, 69, 18, 588, 1396, 12, 588, 2257, 1396, 1435, 397, 3552, 4408, 1621, 3113, 1408, 1769, 565, 309, 261, 4408, 8684, 18, 14963, 2932, 6, 3719, 288, 1377, 4791, 8684, 273, 453, 1184, 69, 18, 588, 1396, 2932, 52, 1184, 69, 18, 1886, 6759, 1676, 1621, 3113, 1408, 1769, 1377, 309, 261, 4408, 8684, 18, 14963, 2932, 6, 3719, 3639, 4791, 8684, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 8712, 7923, 397, 2252, 18, 1594, 18, 812, 18, 11287, 397, 3552, 84, 1184, 69, 14432, 5411, 4791, 8684, 273, 4791, 8684, 397, 2252, 18, 1594, 18, 812, 18, 11287, 397, 1707, 734, 31, 565, 289, 565, 514, 729, 8684, 461, 273, 4791, 8684, 397, 2252, 18, 1594, 18, 812, 18, 11287, 397, 453, 1184, 69, 18, 588, 1396, 2932, 52, 1184, 69, 18, 1717, 26169, 3113, 315, 16064, 8863, 565, 368, 84, 18, 542, 1396, 2932, 4408, 18, 2233, 18, 2540, 545, 481, 18, 12161, 1514, 6234, 3113, 315, 3767, 8863, 565, 293, 18, 542, 1396, 2932, 4408, 18, 2233, 18, 2540, 545, 481, 18, 1969, 1621, 3113, 729, 8684, 461, 1769, 565, 293, 18, 542, 1396, 2932, 4408, 18, 2233, 18, 2540, 545, 481, 18, 5854, 504, 266, 690, 481, 3113, 315, 3767, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1262, 49, 69, 545, 481, 2297, 12, 2297, 293, 13, 288, 3639, 514, 4791, 8684, 273, 453, 1184, 69, 18, 588, 1396, 12, 588, 2257, 1396, 1435, 397, 3552, 4408, 1621, 3113, 1408, 1769, 565, 309, 261, 4408, 8684, 18, 14963, 2932, 6, 3719, 288, 1377, 4791, 8684, 273, 453, 1184, 69, 18, 588, 1396, 2932, 52, 1184, 69, 18, 1886, 6759, 1676, 1621, 3113, 1408, 1769, 1377, 309, 261, 4408, 8684, 18, 14963, 2932, 6, 3719, 3639, 4791, 8684, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 8712, 7923, 397, 2252, 18, 1594, 18, 812, 18, 11287, 397, 3552, 84, 1184, 69, 14432, 5411, 4791, 8684, 273, 4791, 8684, 397, 2252, 18, 1594, 18, 812, 18, 2 ]
protected DocumentBuilderSetting[] mergeSettings(DocumentBuilderSetting[] newSettings) { if(newSettings == null) { return (DocumentBuilderSetting[]) settings.clone(); } List mergedSettings = new ArrayList(settings.length + newSettings.length); for(int i = 0; i < newSettings.length; i++) { mergedSettings.add(newSettings[i]); } for(int i = 0; i < settings.length; i++) { DocumentBuilderSetting setting = settings[i]; boolean hasConflict = false; for(int j = 0; j < newSettings.length; j++) { DocumentBuilderSetting newSetting = newSettings[j]; if(newSetting.hasConflict(setting) || setting.hasConflict(newSetting)) { hasConflict = true; break; } } if(!hasConflict) { mergedSettings.add(setting);
protected DocumentBuilderSetting[] mergeSettings(DocumentBuilderSetting[] newSettings) { if (newSettings == null) { return (DocumentBuilderSetting[]) settings.clone(); } List mergedSettings = new ArrayList(settings.length + newSettings.length); for (int i = 0; i < newSettings.length; i++) { mergedSettings.add(newSettings[i]); } for (int i = 0; i < settings.length; i++) { DocumentBuilderSetting setting = settings[i]; boolean hasConflict = false; for (int j = 0; j < newSettings.length; j++) { DocumentBuilderSetting newSetting = newSettings[j]; if (newSetting.hasConflict(setting) || setting.hasConflict(newSetting)) { hasConflict = true; break;
protected DocumentBuilderSetting[] mergeSettings(DocumentBuilderSetting[] newSettings) { if(newSettings == null) { return (DocumentBuilderSetting[]) settings.clone(); } List mergedSettings = new ArrayList(settings.length + newSettings.length); // // all new settings are respected // for(int i = 0; i < newSettings.length; i++) { mergedSettings.add(newSettings[i]); } // // for all previous settings, take only those that // do not conflict with existing settings for(int i = 0; i < settings.length; i++) { DocumentBuilderSetting setting = settings[i]; boolean hasConflict = false; for(int j = 0; j < newSettings.length; j++) { DocumentBuilderSetting newSetting = newSettings[j]; if(newSetting.hasConflict(setting) || setting.hasConflict(newSetting)) { hasConflict = true; break; } } if(!hasConflict) { mergedSettings.add(setting); } } DocumentBuilderSetting[] mergedArray = new DocumentBuilderSetting[mergedSettings.size()]; for(int i = 0; i < mergedSettings.size(); i++) { mergedArray[i] = (DocumentBuilderSetting) mergedSettings.get(i); } return mergedArray; }
54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/DOMTestDocumentBuilderFactory.java/buggy/java/org/w3c/domts/DOMTestDocumentBuilderFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4319, 1263, 5568, 8526, 2691, 2628, 12, 2519, 1263, 5568, 8526, 394, 2628, 13, 225, 288, 1377, 309, 12, 2704, 2628, 422, 446, 13, 288, 3639, 327, 261, 2519, 1263, 5568, 63, 5717, 1947, 18, 14056, 5621, 1377, 289, 1377, 987, 5384, 2628, 273, 394, 2407, 12, 4272, 18, 2469, 397, 394, 2628, 18, 2469, 1769, 1377, 368, 1377, 368, 565, 777, 394, 1947, 854, 400, 1789, 1377, 368, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 394, 2628, 18, 2469, 31, 277, 27245, 288, 3639, 5384, 2628, 18, 1289, 12, 2704, 2628, 63, 77, 19226, 1377, 289, 1377, 368, 1377, 368, 565, 364, 777, 2416, 1947, 16, 4862, 1338, 5348, 716, 1377, 368, 4202, 741, 486, 7546, 598, 2062, 1947, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 1947, 18, 2469, 31, 277, 27245, 288, 3639, 4319, 1263, 5568, 3637, 273, 1947, 63, 77, 15533, 3639, 1250, 711, 10732, 273, 629, 31, 3639, 364, 12, 474, 525, 273, 374, 31, 525, 411, 394, 2628, 18, 2469, 31, 525, 27245, 288, 1850, 4319, 1263, 5568, 394, 5568, 273, 394, 2628, 63, 78, 15533, 1850, 309, 12, 2704, 5568, 18, 5332, 10732, 12, 8920, 13, 747, 3637, 18, 5332, 10732, 12, 2704, 5568, 3719, 288, 5411, 711, 10732, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 289, 3639, 309, 12, 5, 5332, 10732, 13, 288, 1850, 5384, 2628, 18, 1289, 12, 8920, 1769, 3639, 289, 1377, 289, 1377, 4319, 1263, 5568, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4319, 1263, 5568, 8526, 2691, 2628, 12, 2519, 1263, 5568, 8526, 394, 2628, 13, 225, 288, 1377, 309, 12, 2704, 2628, 422, 446, 13, 288, 3639, 327, 261, 2519, 1263, 5568, 63, 5717, 1947, 18, 14056, 5621, 1377, 289, 1377, 987, 5384, 2628, 273, 394, 2407, 12, 4272, 18, 2469, 397, 394, 2628, 18, 2469, 1769, 1377, 368, 1377, 368, 565, 777, 394, 1947, 854, 400, 1789, 1377, 368, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 394, 2628, 18, 2469, 31, 277, 27245, 288, 3639, 5384, 2628, 18, 1289, 12, 2704, 2628, 63, 77, 19226, 1377, 289, 1377, 368, 1377, 368, 565, 364, 777, 2416, 1947, 16, 4862, 1338, 5348, 716, 1377, 368, 4202, 2 ]
int idxLast = path.size()-1; XMLInputFieldPosition last = (XMLInputFieldPosition) path.get(idxLast); path.remove(idxLast);
private void getValues(Node node, Row row, ArrayList path) throws KettleException { String baseName = ""; for (int p=0;p<path.size();p++) { XMLInputFieldPosition pos = (XMLInputFieldPosition)path.get(p); String elementName = pos.getName()+pos.getElementNr(); if (!elementName.startsWith("#")) { baseName+= new Value("p", elementName).initcap().getString(); } } // First check out the attributes... String attributes[] = XMLHandler.getNodeAttributes(node); if (attributes!=null) { for (int i=0;i<attributes.length;i++) { XMLInputFieldPosition attrPos = new XMLInputFieldPosition(attributes[i], XMLInputFieldPosition.XML_ATTRIBUTE); path.add(attrPos); String attribute = new Value("a", attributes[i]).initcap().getString(); String fieldName = baseName+attribute; // See if this fieldname already exists in Row... if (row.searchValueIndex(fieldName)<0) { // Add the fieldname... Value field = new Value(fieldName, Value.VALUE_TYPE_STRING); // Add the path to this attribute to the origin of the field... String encoded = XMLInputFieldPosition.encodePath(path); field.setOrigin(encoded); row.addValue(field); } path.remove(path.size()-1); } } // Then get the elements String elements[] = XMLHandler.getNodeElements(node); if (elements!=null) { for (int e=0;e<elements.length;e++) { // Count the number of occurences of this element... int occurences = XMLHandler.countNodes(node, elements[e]); for (int o=0;o<occurences;o++) { Node itemNode = XMLHandler.getSubNodeByNr(node, elements[e], o); XMLInputFieldPosition xmlPos = new XMLInputFieldPosition(elements[e], XMLInputFieldPosition.XML_ELEMENT, o+1); path.add(xmlPos); getValues(itemNode, row, path); path.remove(path.size()-1); // remove the last one again } } } else // No child nodes left: this is a value we want to grab { int idxLast = path.size()-1; XMLInputFieldPosition last = (XMLInputFieldPosition) path.get(idxLast); path.remove(idxLast); if (path.size()>0) { String encoded = XMLInputFieldPosition.encodePath(path); if (row.searchValueIndex(baseName)<0) { Value value = new Value(baseName, Value.VALUE_TYPE_STRING); value.setOrigin(encoded); row.addValue(value); } } path.add(last); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/6d54c61011a0bd7a6547fe542085a7f8c605547e/XMLInputDialog.java/buggy/kettle/src/be/ibridge/kettle/trans/step/xmlinput/XMLInputDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13500, 12, 907, 756, 16, 6556, 1027, 16, 2407, 589, 13, 1216, 1475, 278, 5929, 503, 565, 288, 3639, 514, 16162, 273, 1408, 31, 3639, 364, 261, 474, 293, 33, 20, 31, 84, 32, 803, 18, 1467, 5621, 84, 27245, 540, 288, 5411, 3167, 1210, 974, 2555, 949, 273, 261, 4201, 1210, 974, 2555, 13, 803, 18, 588, 12, 84, 1769, 2398, 514, 14453, 273, 949, 18, 17994, 1435, 15, 917, 18, 21336, 18726, 5621, 5411, 309, 16051, 2956, 461, 18, 17514, 1190, 2932, 17133, 3719, 5411, 288, 7734, 16162, 15, 33, 394, 1445, 2932, 84, 3113, 14453, 2934, 2738, 5909, 7675, 588, 780, 5621, 5411, 289, 3639, 289, 7734, 368, 5783, 866, 596, 326, 1677, 2777, 3639, 514, 1677, 8526, 273, 3167, 1503, 18, 588, 907, 2498, 12, 2159, 1769, 3639, 309, 261, 4350, 5, 33, 2011, 13, 3639, 288, 5411, 364, 261, 474, 277, 33, 20, 31, 77, 32, 4350, 18, 2469, 31, 77, 27245, 5411, 288, 7734, 3167, 1210, 974, 2555, 1604, 1616, 273, 394, 3167, 1210, 974, 2555, 12, 4350, 63, 77, 6487, 3167, 1210, 974, 2555, 18, 4201, 67, 11616, 1769, 7734, 589, 18, 1289, 12, 1747, 1616, 1769, 4766, 282, 514, 1566, 273, 394, 1445, 2932, 69, 3113, 1677, 63, 77, 65, 2934, 2738, 5909, 7675, 588, 780, 5621, 7734, 514, 4289, 273, 16162, 15, 4589, 31, 27573, 368, 2164, 309, 333, 14680, 1818, 1704, 316, 6556, 2777, 7734, 309, 261, 492, 18, 3072, 620, 1016, 12, 16163, 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, 13500, 12, 907, 756, 16, 6556, 1027, 16, 2407, 589, 13, 1216, 1475, 278, 5929, 503, 565, 288, 3639, 514, 16162, 273, 1408, 31, 3639, 364, 261, 474, 293, 33, 20, 31, 84, 32, 803, 18, 1467, 5621, 84, 27245, 540, 288, 5411, 3167, 1210, 974, 2555, 949, 273, 261, 4201, 1210, 974, 2555, 13, 803, 18, 588, 12, 84, 1769, 2398, 514, 14453, 273, 949, 18, 17994, 1435, 15, 917, 18, 21336, 18726, 5621, 5411, 309, 16051, 2956, 461, 18, 17514, 1190, 2932, 17133, 3719, 5411, 288, 7734, 16162, 15, 33, 394, 1445, 2932, 84, 3113, 14453, 2934, 2738, 5909, 7675, 588, 780, 5621, 5411, 289, 3639, 289, 7734, 368, 5783, 866, 596, 326, 1677, 2 ]
} } if (fontItalic != null) { if (isValueReference(fontItalic)) { ValueBinding vb = application.createValueBinding(fontItalic); component.setFontItalic(vb); } else { component.setFontItalic(getBoolean(fontItalic)); } } if (fontName != null) { if (isValueReference(fontName)) { ValueBinding vb = application.createValueBinding(fontName); component.setFontName(vb); } else { component.setFontName(fontName);
protected void setProperties(UIComponent uiComponent) { if (LOG.isDebugEnabled()) { LOG.debug(" visible='"+visible+"'"); LOG.debug(" hiddenMode='"+hiddenMode+"'"); LOG.debug(" height='"+height+"'"); LOG.debug(" width='"+width+"'"); LOG.debug(" helpMessage='"+helpMessage+"'"); LOG.debug(" helpURL='"+helpURL+"'"); LOG.debug(" toolTipText='"+toolTipText+"'"); LOG.debug(" disabled='"+disabled+"'"); LOG.debug(" valueLocked='"+valueLocked+"'"); LOG.debug(" tabIndex='"+tabIndex+"'"); LOG.debug(" lookId='"+lookId+"'"); LOG.debug(" y='"+y+"'"); LOG.debug(" x='"+x+"'"); LOG.debug(" marginRight='"+marginRight+"'"); LOG.debug(" marginLeft='"+marginLeft+"'"); LOG.debug(" marginTop='"+marginTop+"'"); LOG.debug(" marginBottom='"+marginBottom+"'"); LOG.debug(" foregroundColor='"+foregroundColor+"'"); LOG.debug(" backgroundColor='"+backgroundColor+"'"); LOG.debug(" textAlignment='"+textAlignment+"'"); LOG.debug(" styleClass='"+styleClass+"'"); LOG.debug(" fontSize='"+fontSize+"'"); LOG.debug(" fontBold='"+fontBold+"'"); LOG.debug(" fontUnderline='"+fontUnderline+"'"); LOG.debug(" fontItalic='"+fontItalic+"'"); LOG.debug(" fontName='"+fontName+"'"); LOG.debug(" accessKey='"+accessKey+"'"); LOG.debug(" margins='"+margins+"'"); } super.setProperties(uiComponent); if ((uiComponent instanceof AbstractCommandComponent)==false) { throw new IllegalStateException("Component specified by tag is not instanceof of 'AbstractCommandComponent'."); } AbstractCommandComponent component = (AbstractCommandComponent) uiComponent; FacesContext facesContext = getFacesContext(); Application application = facesContext.getApplication(); if (visible != null) { if (isValueReference(visible)) { ValueBinding vb = application.createValueBinding(visible); component.setVisible(vb); } else { component.setVisible(getBoolean(visible)); } } if (hiddenMode != null) { if (isValueReference(hiddenMode)) { ValueBinding vb = application.createValueBinding(hiddenMode); component.setHiddenMode(vb); } else { component.setHiddenMode(hiddenMode); } } if (height != null) { if (isValueReference(height)) { ValueBinding vb = application.createValueBinding(height); component.setHeight(vb); } else { component.setHeight(height); } } if (width != null) { if (isValueReference(width)) { ValueBinding vb = application.createValueBinding(width); component.setWidth(vb); } else { component.setWidth(width); } } if (helpMessage != null) { if (isValueReference(helpMessage)) { ValueBinding vb = application.createValueBinding(helpMessage); component.setHelpMessage(vb); } else { component.setHelpMessage(helpMessage); } } if (helpURL != null) { if (isValueReference(helpURL)) { ValueBinding vb = application.createValueBinding(helpURL); component.setHelpURL(vb); } else { component.setHelpURL(helpURL); } } if (toolTipText != null) { if (isValueReference(toolTipText)) { ValueBinding vb = application.createValueBinding(toolTipText); component.setToolTipText(vb); } else { component.setToolTipText(toolTipText); } } if (mouseOutListeners != null) { parseActionListener(application, component, MOUSE_OUT_LISTENER_TYPE, mouseOutListeners); } if (mouseOverListeners != null) { parseActionListener(application, component, MOUSE_OVER_LISTENER_TYPE, mouseOverListeners); } if (disabled != null) { if (isValueReference(disabled)) { ValueBinding vb = application.createValueBinding(disabled); component.setDisabled(vb); } else { component.setDisabled(getBool(disabled)); } } if (valueLocked != null) { if (isValueReference(valueLocked)) { ValueBinding vb = application.createValueBinding(valueLocked); component.setValueLocked(vb); } else { component.setValueLocked(getBool(valueLocked)); } } if (tabIndex != null) { if (isValueReference(tabIndex)) { ValueBinding vb = application.createValueBinding(tabIndex); component.setTabIndex(vb); } else { component.setTabIndex(getInteger(tabIndex)); } } if (lookId != null) { if (isValueReference(lookId)) { ValueBinding vb = application.createValueBinding(lookId); component.setLookId(vb); } else { component.setLookId(lookId); } } if (y != null) { if (isValueReference(y)) { ValueBinding vb = application.createValueBinding(y); component.setY(vb); } else { component.setY(y); } } if (x != null) { if (isValueReference(x)) { ValueBinding vb = application.createValueBinding(x); component.setX(vb); } else { component.setX(x); } } if (blurListeners != null) { parseActionListener(application, component, BLUR_LISTENER_TYPE, blurListeners); } if (focusListeners != null) { parseActionListener(application, component, FOCUS_LISTENER_TYPE, focusListeners); } if (marginRight != null) { if (isValueReference(marginRight)) { ValueBinding vb = application.createValueBinding(marginRight); component.setMarginRight(vb); } else { component.setMarginRight(marginRight); } } if (marginLeft != null) { if (isValueReference(marginLeft)) { ValueBinding vb = application.createValueBinding(marginLeft); component.setMarginLeft(vb); } else { component.setMarginLeft(marginLeft); } } if (marginTop != null) { if (isValueReference(marginTop)) { ValueBinding vb = application.createValueBinding(marginTop); component.setMarginTop(vb); } else { component.setMarginTop(marginTop); } } if (marginBottom != null) { if (isValueReference(marginBottom)) { ValueBinding vb = application.createValueBinding(marginBottom); component.setMarginBottom(vb); } else { component.setMarginBottom(marginBottom); } } if (foregroundColor != null) { if (isValueReference(foregroundColor)) { ValueBinding vb = application.createValueBinding(foregroundColor); component.setForegroundColor(vb); } else { component.setForegroundColor(foregroundColor); } } if (backgroundColor != null) { if (isValueReference(backgroundColor)) { ValueBinding vb = application.createValueBinding(backgroundColor); component.setBackgroundColor(vb); } else { component.setBackgroundColor(backgroundColor); } } if (textAlignment != null) { if (isValueReference(textAlignment)) { ValueBinding vb = application.createValueBinding(textAlignment); component.setTextAlignment(vb); } else { component.setTextAlignment(textAlignment); } } if (styleClass != null) { if (isValueReference(styleClass)) { ValueBinding vb = application.createValueBinding(styleClass); component.setStyleClass(vb); } else { component.setStyleClass(styleClass); } } if (userEventListeners != null) { parseActionListener(application, component, USER_EVENT_LISTENER_TYPE, userEventListeners); } if (propertyChangeListeners != null) { parseActionListener(application, component, PROPERTY_CHANGE_LISTENER_TYPE, propertyChangeListeners); } if (fontSize != null) { if (isValueReference(fontSize)) { ValueBinding vb = application.createValueBinding(fontSize); component.setFontSize(vb); } else { component.setFontSize(fontSize); } } if (fontBold != null) { if (isValueReference(fontBold)) { ValueBinding vb = application.createValueBinding(fontBold); component.setFontBold(vb); } else { component.setFontBold(getBoolean(fontBold)); } } if (fontUnderline != null) { if (isValueReference(fontUnderline)) { ValueBinding vb = application.createValueBinding(fontUnderline); component.setFontUnderline(vb); } else { component.setFontUnderline(getBoolean(fontUnderline)); } } if (fontItalic != null) { if (isValueReference(fontItalic)) { ValueBinding vb = application.createValueBinding(fontItalic); component.setFontItalic(vb); } else { component.setFontItalic(getBoolean(fontItalic)); } } if (fontName != null) { if (isValueReference(fontName)) { ValueBinding vb = application.createValueBinding(fontName); component.setFontName(vb); } else { component.setFontName(fontName); } } if (accessKey != null) { if (isValueReference(accessKey)) { ValueBinding vb = application.createValueBinding(accessKey); component.setAccessKey(vb); } else { component.setAccessKey(accessKey); } } if (initListeners != null) { parseActionListener(application, component, INIT_LISTENER_TYPE, initListeners); } if (margins != null) { if (isValueReference(margins)) { throw new javax.faces.FacesException("Attribute 'margins' does not accept binding !"); } component.setMargins(margins); } if (immediate != null) { if (isValueReference(immediate)) { ValueBinding vb = application.createValueBinding(immediate); component.setImmediate(vb); } else { component.setImmediate(getBool(immediate)); } } if (value != null) { if (isValueReference(value)) { ValueBinding vb = application.createValueBinding(value); component.setValue(vb); } else { component.setValue(value); } } }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/AbstractCommandTag.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/taglib/AbstractCommandTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 23126, 12, 5370, 1841, 5915, 1841, 13, 288, 202, 202, 430, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1082, 202, 4842, 18, 4148, 2932, 225, 6021, 13396, 15, 8613, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 5949, 2309, 13396, 15, 6345, 2309, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2072, 13396, 15, 4210, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 1835, 13396, 15, 2819, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2809, 1079, 13396, 15, 5201, 1079, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2809, 1785, 13396, 15, 5201, 1785, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 5226, 14189, 1528, 13396, 15, 6738, 14189, 1528, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 5673, 13396, 15, 9278, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 460, 8966, 13396, 15, 1132, 8966, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 3246, 1016, 13396, 15, 7032, 1016, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2324, 548, 13396, 15, 7330, 548, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 677, 13396, 15, 93, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 619, 13396, 15, 92, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 7333, 4726, 13396, 15, 10107, 4726, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 7333, 3910, 13396, 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, 23126, 12, 5370, 1841, 5915, 1841, 13, 288, 202, 202, 430, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1082, 202, 4842, 18, 4148, 2932, 225, 6021, 13396, 15, 8613, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 5949, 2309, 13396, 15, 6345, 2309, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2072, 13396, 15, 4210, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 1835, 13396, 15, 2819, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2809, 1079, 13396, 15, 5201, 1079, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 225, 2809, 1785, 13396, 15, 5201, 1785, 9078, 4970, 1769, 1082, 202, 4842, 18, 4148, 2932, 2 ]
PatternsetWorkspaceRunnable patternsetWorkspaceRunnable = new PatternsetWorkspaceRunnable(wsresourcesExcludePatternset, new String[] { "**/*.woa/**", "**/*.framework/**", "**/*.eomodeld~/**" });
PatternsetWorkspaceRunnable patternsetWorkspaceRunnable = new PatternsetWorkspaceRunnable(wsresourcesExcludePatternset, getWSResourcesExcludeStringsDefault());
private IStringMatcher getWoappResourcesExcludeMatcher() { if (this.woappResourcesExcludeMatcher != null) { return this.woappResourcesExcludeMatcher; } this.createAntFolder(); IFile wsresourcesExcludePatternset = this.getAntFolder().getFile("wsresources.exclude.patternset"); PatternsetWorkspaceRunnable patternsetWorkspaceRunnable = new PatternsetWorkspaceRunnable(wsresourcesExcludePatternset, new String[] { "**/*.woa/**", "**/*.framework/**", "**/*.eomodeld~/**" }); this.run(this.getIProject(), patternsetWorkspaceRunnable); this.woappResourcesExcludeMatcher = patternsetWorkspaceRunnable.getMatcher(); return this.woappResourcesExcludeMatcher; }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/3cb361e9c16bf1f44df84a152e2a2f129567afe5/ProjectPatternsets.java/clean/wolips/core/plugins/org.objectstyle.wolips.datasets/java/org/objectstyle/wolips/datasets/adaptable/ProjectPatternsets.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 780, 6286, 13876, 83, 2910, 3805, 12689, 6286, 1435, 288, 202, 202, 430, 261, 2211, 18, 6933, 2910, 3805, 12689, 6286, 480, 446, 13, 288, 1082, 202, 2463, 333, 18, 6933, 2910, 3805, 12689, 6286, 31, 202, 202, 97, 202, 202, 2211, 18, 2640, 14925, 3899, 5621, 202, 202, 45, 812, 4945, 4683, 12689, 3234, 542, 273, 333, 18, 588, 14925, 3899, 7675, 29925, 2932, 4749, 4683, 18, 10157, 18, 4951, 542, 8863, 202, 202, 3234, 542, 8241, 20013, 1936, 542, 8241, 20013, 273, 394, 6830, 542, 8241, 20013, 12, 4749, 4683, 12689, 3234, 542, 16, 394, 514, 8526, 288, 28078, 30987, 6933, 69, 26873, 3113, 28078, 30987, 12303, 26873, 3113, 28078, 30987, 2880, 369, 488, 98, 26873, 6, 15549, 202, 202, 2211, 18, 2681, 12, 2211, 18, 588, 45, 4109, 9334, 1936, 542, 8241, 20013, 1769, 202, 202, 2211, 18, 6933, 2910, 3805, 12689, 6286, 273, 1936, 542, 8241, 20013, 18, 588, 6286, 5621, 202, 202, 2463, 333, 18, 6933, 2910, 3805, 12689, 6286, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 780, 6286, 13876, 83, 2910, 3805, 12689, 6286, 1435, 288, 202, 202, 430, 261, 2211, 18, 6933, 2910, 3805, 12689, 6286, 480, 446, 13, 288, 1082, 202, 2463, 333, 18, 6933, 2910, 3805, 12689, 6286, 31, 202, 202, 97, 202, 202, 2211, 18, 2640, 14925, 3899, 5621, 202, 202, 45, 812, 4945, 4683, 12689, 3234, 542, 273, 333, 18, 588, 14925, 3899, 7675, 29925, 2932, 4749, 4683, 18, 10157, 18, 4951, 542, 8863, 202, 202, 3234, 542, 8241, 20013, 1936, 542, 8241, 20013, 273, 394, 6830, 542, 8241, 20013, 12, 4749, 4683, 12689, 3234, 542, 16, 394, 514, 8526, 288, 28078, 30987, 6933, 69, 26873, 3113, 28078, 30987, 12303, 26873, 3113, 28078, 30987, 2880, 369, 2 ]
Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600);
Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600);
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT", tz); timezones0.put("Pacific/Apia", tz); timezones0.put("Pacific/Midway", tz); timezones0.put("Pacific/Niue", tz); timezones0.put("Pacific/Pago_Pago", tz); tz = new SimpleTimeZone (-10000 * 3600, "America/Adak", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Adak", tz); tz = new SimpleTimeZone(-10000 * 3600, "HST"); timezones0.put("HST", tz); timezones0.put("Pacific/Fakaofo", tz); timezones0.put("Pacific/Honolulu", tz); timezones0.put("Pacific/Johnston", tz); timezones0.put("Pacific/Rarotonga", tz); timezones0.put("Pacific/Tahiti", tz); tz = new SimpleTimeZone(-9500 * 3600, "Pacific/Marquesas"); timezones0.put("Pacific/Marquesas", tz); tz = new SimpleTimeZone (-9000 * 3600, "AST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AST", tz); timezones0.put("America/Anchorage", tz); timezones0.put("America/Juneau", tz); timezones0.put("America/Nome", tz); timezones0.put("America/Yakutat", tz); tz = new SimpleTimeZone(-9000 * 3600, "Pacific/Gambier"); timezones0.put("Pacific/Gambier", tz); tz = new SimpleTimeZone (-8000 * 3600, "PST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("PST", tz); timezones0.put("PST8PDT", tz); timezones0.put("America/Dawson", tz); timezones0.put("America/Los_Angeles", tz); timezones0.put("America/Tijuana", tz); timezones0.put("America/Vancouver", tz); timezones0.put("America/Whitehorse", tz); timezones0.put("US/Pacific-New", tz); tz = new SimpleTimeZone(-8000 * 3600, "Pacific/Pitcairn"); timezones0.put("Pacific/Pitcairn", tz); tz = new SimpleTimeZone (-7000 * 3600, "MST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("MST", tz); timezones0.put("MST7MDT", tz); timezones0.put("America/Boise", tz); timezones0.put("America/Chihuahua", tz); timezones0.put("America/Denver", tz); timezones0.put("America/Edmonton", tz); timezones0.put("America/Inuvik", tz); timezones0.put("America/Mazatlan", tz); timezones0.put("America/Shiprock", tz); timezones0.put("America/Yellowknife", tz); tz = new SimpleTimeZone(-7000 * 3600, "MST7"); timezones0.put("MST7", tz); timezones0.put("PNT", tz); timezones0.put("America/Dawson_Creek", tz); timezones0.put("America/Hermosillo", tz); timezones0.put("America/Phoenix", tz); tz = new SimpleTimeZone (-6000 * 3600, "CST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CST", tz); timezones0.put("CST6CDT", tz); timezones0.put("America/Cambridge_Bay", tz); timezones0.put("America/Cancun", tz); timezones0.put("America/Chicago", tz); timezones0.put("America/Menominee", tz); timezones0.put("America/Merida", tz); timezones0.put("America/Mexico_City", tz); timezones0.put("America/Monterrey", tz); timezones0.put("America/Rainy_River", tz); timezones0.put("America/Winnipeg", tz); tz = new SimpleTimeZone(-6000 * 3600, "America/Belize"); timezones0.put("America/Belize", tz); timezones0.put("America/Costa_Rica", tz); timezones0.put("America/El_Salvador", tz); timezones0.put("America/Guatemala", tz); timezones0.put("America/Managua", tz); timezones0.put("America/Regina", tz); timezones0.put("America/Swift_Current", tz); timezones0.put("America/Tegucigalpa", tz); timezones0.put("Pacific/Galapagos", tz); tz = new SimpleTimeZone (-6000 * 3600, "Pacific/Easter", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Pacific/Easter", tz); tz = new SimpleTimeZone (-5000 * 3600, "America/Grand_Turk", Calendar.APRIL, 1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Grand_Turk", tz); timezones0.put("America/Havana", tz); tz = new SimpleTimeZone(-5000 * 3600, "EST5"); timezones0.put("EST5", tz); timezones0.put("IET", tz); timezones0.put("America/Bogota", tz); timezones0.put("America/Cayman", tz); timezones0.put("America/Eirunepe", tz); timezones0.put("America/Guayaquil", tz); timezones0.put("America/Indiana/Indianapolis", tz); timezones0.put("America/Indiana/Knox", tz); timezones0.put("America/Indiana/Marengo", tz); timezones0.put("America/Indiana/Vevay", tz); timezones0.put("America/Indianapolis", tz); timezones0.put("America/Iqaluit", tz); timezones0.put("America/Jamaica", tz); timezones0.put("America/Lima", tz); timezones0.put("America/Panama", tz); timezones0.put("America/Pangnirtung", tz); timezones0.put("America/Port-au-Prince", tz); timezones0.put("America/Porto_Acre", tz); timezones0.put("America/Rankin_Inlet", tz); tz = new SimpleTimeZone (-5000 * 3600, "EST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("EST", tz); timezones0.put("EST5EDT", tz); timezones0.put("America/Detroit", tz); timezones0.put("America/Kentucky/Louisville", tz); timezones0.put("America/Kentucky/Monticello", tz); timezones0.put("America/Louisville", tz); timezones0.put("America/Montreal", tz); timezones0.put("America/Nassau", tz); timezones0.put("America/New_York", tz); timezones0.put("America/Nipigon", tz); timezones0.put("America/Thunder_Bay", tz); tz = new SimpleTimeZone(-4000 * 3600, "PRT"); timezones0.put("PRT", tz); timezones0.put("America/Anguilla", tz); timezones0.put("America/Antigua", tz); timezones0.put("America/Aruba", tz); timezones0.put("America/Barbados", tz); timezones0.put("America/Boa_Vista", tz); timezones0.put("America/Caracas", tz); timezones0.put("America/Curacao", tz); timezones0.put("America/Dominica", tz); timezones0.put("America/Grenada", tz); timezones0.put("America/Guadeloupe", tz); timezones0.put("America/Guyana", tz); timezones0.put("America/La_Paz", tz); timezones0.put("America/Manaus", tz); timezones0.put("America/Martinique", tz); timezones0.put("America/Montserrat", tz); timezones0.put("America/Port_of_Spain", tz); timezones0.put("America/Porto_Velho", tz); timezones0.put("America/Puerto_Rico", tz); timezones0.put("America/Santo_Domingo", tz); timezones0.put("America/St_Kitts", tz); timezones0.put("America/St_Lucia", tz); timezones0.put("America/St_Thomas", tz); timezones0.put("America/St_Vincent", tz); timezones0.put("America/Tortola", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Asuncion", Calendar.OCTOBER, 1, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Asuncion", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Cuiaba", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Cuiaba", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Goose_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("America/Goose_Bay", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Glace_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Glace_Bay", tz); timezones0.put("America/Halifax", tz); timezones0.put("America/Thule", tz); timezones0.put("Atlantic/Bermuda", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Santiago", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Santiago", tz); timezones0.put("Antarctica/Palmer", tz); tz = new SimpleTimeZone (-4000 * 3600, "Atlantic/Stanley", Calendar.SEPTEMBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.APRIL, 16, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Atlantic/Stanley", tz); tz = new SimpleTimeZone (-3500 * 3600, "CNT", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("CNT", tz); timezones0.put("America/St_Johns", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Araguaina", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Araguaina", tz); timezones0.put("America/Sao_Paulo", tz); tz = new SimpleTimeZone(-3000 * 3600, "AGT"); timezones0.put("AGT", tz); timezones0.put("America/Belem", tz); timezones0.put("America/Buenos_Aires", tz); timezones0.put("America/Catamarca", tz); timezones0.put("America/Cayenne", tz); timezones0.put("America/Cordoba", tz); timezones0.put("America/Fortaleza", tz); timezones0.put("America/Jujuy", tz); timezones0.put("America/Maceio", tz); timezones0.put("America/Mendoza", tz); timezones0.put("America/Montevideo", tz); timezones0.put("America/Paramaribo", tz); timezones0.put("America/Recife", tz); timezones0.put("America/Rosario", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Godthab", Calendar.MARCH, 30, -Calendar.SATURDAY, 22000 * 3600, Calendar.OCTOBER, 30, -Calendar.SATURDAY, 22000 * 3600); timezones0.put("America/Godthab", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Miquelon", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Miquelon", tz); tz = new SimpleTimeZone(-2000 * 3600, "America/Noronha"); timezones0.put("America/Noronha", tz); timezones0.put("Atlantic/South_Georgia", tz); tz = new SimpleTimeZone (-1000 * 3600, "America/Scoresbysund", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Scoresbysund", tz); timezones0.put("Atlantic/Azores", tz); tz = new SimpleTimeZone(-1000 * 3600, "Atlantic/Cape_Verde"); timezones0.put("Atlantic/Cape_Verde", tz); timezones0.put("Atlantic/Jan_Mayen", tz); tz = new SimpleTimeZone(0 * 3600, "GMT"); timezones0.put("GMT", tz); timezones0.put("UTC", tz); timezones0.put("Africa/Abidjan", tz); timezones0.put("Africa/Accra", tz); timezones0.put("Africa/Bamako", tz); timezones0.put("Africa/Banjul", tz); timezones0.put("Africa/Bissau", tz); timezones0.put("Africa/Casablanca", tz); timezones0.put("Africa/Conakry", tz); timezones0.put("Africa/Dakar", tz); timezones0.put("Africa/El_Aaiun", tz); timezones0.put("Africa/Freetown", tz); timezones0.put("Africa/Lome", tz); timezones0.put("Africa/Monrovia", tz); timezones0.put("Africa/Nouakchott", tz); timezones0.put("Africa/Ouagadougou", tz); timezones0.put("Africa/Sao_Tome", tz); timezones0.put("Africa/Timbuktu", tz); timezones0.put("Atlantic/Reykjavik", tz); timezones0.put("Atlantic/St_Helena", tz); timezones0.put("Europe/Belfast", tz); timezones0.put("Europe/Dublin", tz); timezones0.put("Europe/London", tz); tz = new SimpleTimeZone (0 * 3600, "WET", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("WET", tz); timezones0.put("Atlantic/Canary", tz); timezones0.put("Atlantic/Faeroe", tz); timezones0.put("Atlantic/Madeira", tz); timezones0.put("Europe/Lisbon", tz); tz = new SimpleTimeZone(1000 * 3600, "Africa/Algiers"); timezones0.put("Africa/Algiers", tz); timezones0.put("Africa/Bangui", tz); timezones0.put("Africa/Brazzaville", tz); timezones0.put("Africa/Douala", tz); timezones0.put("Africa/Kinshasa", tz); timezones0.put("Africa/Lagos", tz); timezones0.put("Africa/Libreville", tz); timezones0.put("Africa/Luanda", tz); timezones0.put("Africa/Malabo", tz); timezones0.put("Africa/Ndjamena", tz); timezones0.put("Africa/Niamey", tz); timezones0.put("Africa/Porto-Novo", tz); timezones0.put("Africa/Tunis", tz); tz = new SimpleTimeZone (1000 * 3600, "Africa/Windhoek", Calendar.SEPTEMBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Africa/Windhoek", tz); tz = new SimpleTimeZone (1000 * 3600, "CET", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CET", tz); timezones0.put("CEST", tz); timezones0.put("ECT", tz); timezones0.put("MET", tz); timezones0.put("Africa/Ceuta", tz); timezones0.put("Arctic/Longyearbyen", tz); timezones0.put("Europe/Amsterdam", tz); timezones0.put("Europe/Andorra", tz); timezones0.put("Europe/Belgrade", tz); timezones0.put("Europe/Berlin", tz); timezones0.put("Europe/Bratislava", tz); timezones0.put("Europe/Brussels", tz); timezones0.put("Europe/Budapest", tz); timezones0.put("Europe/Copenhagen", tz); timezones0.put("Europe/Gibraltar", tz); timezones0.put("Europe/Ljubljana", tz); timezones0.put("Europe/Luxembourg", tz); timezones0.put("Europe/Madrid", tz); timezones0.put("Europe/Malta", tz); timezones0.put("Europe/Monaco", tz); timezones0.put("Europe/Oslo", tz); timezones0.put("Europe/Paris", tz); timezones0.put("Europe/Prague", tz); timezones0.put("Europe/Rome", tz); timezones0.put("Europe/San_Marino", tz); timezones0.put("Europe/Sarajevo", tz); timezones0.put("Europe/Skopje", tz); timezones0.put("Europe/Stockholm", tz); timezones0.put("Europe/Tirane", tz); timezones0.put("Europe/Vaduz", tz); timezones0.put("Europe/Vatican", tz); timezones0.put("Europe/Vienna", tz); timezones0.put("Europe/Warsaw", tz); timezones0.put("Europe/Zagreb", tz); timezones0.put("Europe/Zurich", tz); tz = new SimpleTimeZone (2000 * 3600, "ART", Calendar.APRIL, -1, Calendar.FRIDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 23000 * 3600); timezones0.put("ART", tz); timezones0.put("Africa/Cairo", tz); tz = new SimpleTimeZone(2000 * 3600, "CAT"); timezones0.put("CAT", tz); timezones0.put("Africa/Blantyre", tz); timezones0.put("Africa/Bujumbura", tz); timezones0.put("Africa/Gaborone", tz); timezones0.put("Africa/Harare", tz); timezones0.put("Africa/Johannesburg", tz); timezones0.put("Africa/Kigali", tz); timezones0.put("Africa/Lubumbashi", tz); timezones0.put("Africa/Lusaka", tz); timezones0.put("Africa/Maputo", tz); timezones0.put("Africa/Maseru", tz); timezones0.put("Africa/Mbabane", tz); timezones0.put("Africa/Tripoli", tz); timezones0.put("Europe/Riga", tz); timezones0.put("Europe/Tallinn", tz); timezones0.put("Europe/Vilnius", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Amman", Calendar.MARCH, -1, Calendar.THURSDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 0 * 3600); timezones0.put("Asia/Amman", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Beirut", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Beirut", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Damascus", Calendar.APRIL, 1, 0, 0 * 3600, Calendar.OCTOBER, 1, 0, 0 * 3600); timezones0.put("Asia/Damascus", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Gaza", Calendar.APRIL, 3, Calendar.FRIDAY, 0 * 3600, Calendar.OCTOBER, 3, Calendar.FRIDAY, 0 * 3600); timezones0.put("Asia/Gaza", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Jerusalem", Calendar.APRIL, 1, 0, 1000 * 3600, Calendar.OCTOBER, 1, 0, 1000 * 3600); timezones0.put("Asia/Jerusalem", tz); tz = new SimpleTimeZone (2000 * 3600, "EET", Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600); timezones0.put("EET", tz); timezones0.put("Asia/Istanbul", tz); timezones0.put("Asia/Nicosia", tz); timezones0.put("Europe/Athens", tz); timezones0.put("Europe/Bucharest", tz); timezones0.put("Europe/Chisinau", tz); timezones0.put("Europe/Helsinki", tz); timezones0.put("Europe/Istanbul", tz); timezones0.put("Europe/Kiev", tz); timezones0.put("Europe/Nicosia", tz); timezones0.put("Europe/Simferopol", tz); timezones0.put("Europe/Sofia", tz); timezones0.put("Europe/Uzhgorod", tz); timezones0.put("Europe/Zaporozhye", tz); tz = new SimpleTimeZone (2000 * 3600, "Europe/Kaliningrad", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Kaliningrad", tz); timezones0.put("Europe/Minsk", tz); tz = new SimpleTimeZone (3000 * 3600, "Asia/Baghdad", Calendar.APRIL, 1, 0, 3000 * 3600, Calendar.OCTOBER, 1, 0, 3000 * 3600); timezones0.put("Asia/Baghdad", tz); tz = new SimpleTimeZone (3000 * 3600, "Europe/Moscow", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Moscow", tz); timezones0.put("Europe/Tiraspol", tz); tz = new SimpleTimeZone(3000 * 3600, "EAT"); timezones0.put("EAT", tz); timezones0.put("Africa/Addis_Ababa", tz); timezones0.put("Africa/Asmera", tz); timezones0.put("Africa/Dar_es_Salaam", tz); timezones0.put("Africa/Djibouti", tz); timezones0.put("Africa/Kampala", tz); timezones0.put("Africa/Khartoum", tz); timezones0.put("Africa/Mogadishu", tz); timezones0.put("Africa/Nairobi", tz); timezones0.put("Antarctica/Syowa", tz); timezones0.put("Asia/Aden", tz); timezones0.put("Asia/Bahrain", tz); timezones0.put("Asia/Kuwait", tz); timezones0.put("Asia/Qatar", tz); timezones0.put("Asia/Riyadh", tz); timezones0.put("Indian/Antananarivo", tz); timezones0.put("Indian/Comoro", tz); timezones0.put("Indian/Mayotte", tz); tz = new SimpleTimeZone(3500 * 3600, "Asia/Tehran"); timezones0.put("Asia/Tehran", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Baku", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("Asia/Baku", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Aqtau", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtau", tz); timezones0.put("Asia/Tbilisi", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Yerevan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yerevan", tz); timezones0.put("Europe/Samara", tz); tz = new SimpleTimeZone(4000 * 3600, "NET"); timezones0.put("NET", tz); timezones0.put("Asia/Dubai", tz); timezones0.put("Asia/Muscat", tz); timezones0.put("Indian/Mahe", tz); timezones0.put("Indian/Mauritius", tz); timezones0.put("Indian/Reunion", tz); tz = new SimpleTimeZone(4500 * 3600, "Asia/Kabul"); timezones0.put("Asia/Kabul", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Aqtobe", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtobe", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Bishkek", Calendar.MARCH, -1, Calendar.SUNDAY, 2500 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2500 * 3600); timezones0.put("Asia/Bishkek", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Yekaterinburg", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yekaterinburg", tz); tz = new SimpleTimeZone(5000 * 3600, "PLT"); timezones0.put("PLT", tz); timezones0.put("Asia/Ashgabat", tz); timezones0.put("Asia/Dushanbe", tz); timezones0.put("Asia/Karachi", tz); timezones0.put("Asia/Samarkand", tz); timezones0.put("Asia/Tashkent", tz); timezones0.put("Indian/Chagos", tz); timezones0.put("Indian/Kerguelen", tz); timezones0.put("Indian/Maldives", tz); tz = new SimpleTimeZone(5500 * 3600, "IST"); timezones0.put("IST", tz); timezones0.put("Asia/Calcutta", tz); tz = new SimpleTimeZone(5750 * 3600, "Asia/Katmandu"); timezones0.put("Asia/Katmandu", tz); tz = new SimpleTimeZone(6000 * 3600, "BST"); timezones0.put("BST", tz); timezones0.put("Antarctica/Mawson", tz); timezones0.put("Asia/Colombo", tz); timezones0.put("Asia/Dhaka", tz); timezones0.put("Asia/Thimphu", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Almaty", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Almaty", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Novosibirsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Novosibirsk", tz); timezones0.put("Asia/Omsk", tz); tz = new SimpleTimeZone(6500 * 3600, "Asia/Rangoon"); timezones0.put("Asia/Rangoon", tz); timezones0.put("Indian/Cocos", tz); tz = new SimpleTimeZone(7000 * 3600, "VST"); timezones0.put("VST", tz); timezones0.put("Antarctica/Davis", tz); timezones0.put("Asia/Bangkok", tz); timezones0.put("Asia/Hovd", tz); timezones0.put("Asia/Jakarta", tz); timezones0.put("Asia/Phnom_Penh", tz); timezones0.put("Asia/Saigon", tz); timezones0.put("Asia/Vientiane", tz); timezones0.put("Indian/Christmas", tz); tz = new SimpleTimeZone (7000 * 3600, "Asia/Krasnoyarsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Krasnoyarsk", tz); tz = new SimpleTimeZone(8000 * 3600, "CTT"); timezones0.put("CTT", tz); timezones0.put("Antarctica/Casey", tz); timezones0.put("Asia/Brunei", tz); timezones0.put("Asia/Chungking", tz); timezones0.put("Asia/Harbin", tz); timezones0.put("Asia/Hong_Kong", tz); timezones0.put("Asia/Kashgar", tz); timezones0.put("Asia/Kuala_Lumpur", tz); timezones0.put("Asia/Kuching", tz); timezones0.put("Asia/Macao", tz); timezones0.put("Asia/Manila", tz); timezones0.put("Asia/Shanghai", tz); timezones0.put("Asia/Singapore", tz); timezones0.put("Asia/Taipei", tz); timezones0.put("Asia/Ujung_Pandang", tz); timezones0.put("Asia/Ulaanbaatar", tz); timezones0.put("Asia/Urumqi", tz); timezones0.put("Australia/Perth", tz); tz = new SimpleTimeZone (8000 * 3600, "Asia/Irkutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Irkutsk", tz); tz = new SimpleTimeZone(9000 * 3600, "JST"); timezones0.put("JST", tz); timezones0.put("Asia/Dili", tz); timezones0.put("Asia/Jayapura", tz); timezones0.put("Asia/Pyongyang", tz); timezones0.put("Asia/Seoul", tz); timezones0.put("Asia/Tokyo", tz); timezones0.put("Pacific/Palau", tz); tz = new SimpleTimeZone (9000 * 3600, "Asia/Yakutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yakutsk", tz); tz = new SimpleTimeZone (9500 * 3600, "Australia/Adelaide", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Adelaide", tz); timezones0.put("Australia/Broken_Hill", tz); tz = new SimpleTimeZone(9500 * 3600, "ACT"); timezones0.put("ACT", tz); timezones0.put("Australia/Darwin", tz); tz = new SimpleTimeZone(10000 * 3600, "Antarctica/DumontDUrville"); timezones0.put("Antarctica/DumontDUrville", tz); timezones0.put("Australia/Brisbane", tz); timezones0.put("Australia/Lindeman", tz); timezones0.put("Pacific/Guam", tz); timezones0.put("Pacific/Port_Moresby", tz); timezones0.put("Pacific/Saipan", tz); timezones0.put("Pacific/Truk", tz); timezones0.put("Pacific/Yap", tz); tz = new SimpleTimeZone (10000 * 3600, "Asia/Vladivostok", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Vladivostok", tz); tz = new SimpleTimeZone (10000 * 3600, "Australia/Hobart", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Hobart", tz); tz = new SimpleTimeZone (10000 * 3600, "AET", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AET", tz); timezones0.put("Australia/Melbourne", tz); timezones0.put("Australia/Sydney", tz); tz = new SimpleTimeZone (10500 * 3600, "Australia/Lord_Howe", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, 500 * 3600); timezones0.put("Australia/Lord_Howe", tz); tz = new SimpleTimeZone (11000 * 3600, "Asia/Magadan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Magadan", tz); tz = new SimpleTimeZone(11000 * 3600, "SST"); timezones0.put("SST", tz); timezones0.put("Pacific/Efate", tz); timezones0.put("Pacific/Guadalcanal", tz); timezones0.put("Pacific/Kosrae", tz); timezones0.put("Pacific/Noumea", tz); timezones0.put("Pacific/Ponape", tz); tz = new SimpleTimeZone(11500 * 3600, "Pacific/Norfolk"); timezones0.put("Pacific/Norfolk", tz); tz = new SimpleTimeZone (12000 * 3600, "NST", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2000 * 3600); timezones0.put("NST", tz); timezones0.put("Antarctica/McMurdo", tz); timezones0.put("Antarctica/South_Pole", tz); timezones0.put("Pacific/Auckland", tz); tz = new SimpleTimeZone (12000 * 3600, "Asia/Anadyr", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Anadyr", tz); timezones0.put("Asia/Kamchatka", tz); tz = new SimpleTimeZone(12000 * 3600, "Pacific/Fiji"); timezones0.put("Pacific/Fiji", tz); timezones0.put("Pacific/Funafuti", tz); timezones0.put("Pacific/Kwajalein", tz); timezones0.put("Pacific/Majuro", tz); timezones0.put("Pacific/Nauru", tz); timezones0.put("Pacific/Tarawa", tz); timezones0.put("Pacific/Wake", tz); timezones0.put("Pacific/Wallis", tz); tz = new SimpleTimeZone (12750 * 3600, "Pacific/Chatham", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2750 * 3600); timezones0.put("Pacific/Chatham", tz); tz = new SimpleTimeZone(13000 * 3600, "Pacific/Enderbury"); timezones0.put("Pacific/Enderbury", tz); timezones0.put("Pacific/Tongatapu", tz); tz = new SimpleTimeZone(14000 * 3600, "Pacific/Kiritimati"); timezones0.put("Pacific/Kiritimati", tz); } return timezones0; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 3852, 4317, 25954, 1435, 225, 288, 565, 309, 261, 957, 14203, 20, 422, 446, 13, 4202, 288, 202, 8658, 25954, 273, 394, 4317, 5621, 202, 957, 14203, 20, 273, 25954, 31, 202, 202, 16760, 6016, 31, 202, 202, 759, 11809, 20271, 4374, 635, 8873, 19, 957, 14203, 18, 412, 202, 202, 759, 11329, 300, 9363, 732, 855, 333, 501, 628, 279, 585, 35, 202, 202, 12994, 273, 394, 4477, 16760, 19236, 2499, 3784, 380, 12396, 16, 315, 6068, 8863, 202, 957, 14203, 20, 18, 458, 2932, 6068, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 1294, 1155, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 20711, 1888, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 50, 77, 344, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 10156, 83, 67, 10156, 83, 3113, 6016, 1769, 202, 12994, 273, 394, 4477, 16760, 202, 225, 24927, 23899, 380, 12396, 16, 315, 26393, 19, 1871, 581, 3113, 202, 282, 5542, 18, 2203, 2259, 48, 16, 404, 16, 5542, 18, 55, 5240, 5255, 16, 16291, 380, 12396, 16, 202, 282, 5542, 18, 51, 1268, 5704, 654, 16, 300, 21, 16, 5542, 18, 55, 5240, 5255, 16, 16291, 380, 12396, 1769, 202, 957, 14203, 20, 18, 458, 2932, 26393, 19, 1871, 581, 3113, 6016, 1769, 202, 202, 12994, 273, 394, 4477, 16760, 19236, 23899, 380, 12396, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 3852, 4317, 25954, 1435, 225, 288, 565, 309, 261, 957, 14203, 20, 422, 446, 13, 4202, 288, 202, 8658, 25954, 273, 394, 4317, 5621, 202, 957, 14203, 20, 273, 25954, 31, 202, 202, 16760, 6016, 31, 202, 202, 759, 11809, 20271, 4374, 635, 8873, 19, 957, 14203, 18, 412, 202, 202, 759, 11329, 300, 9363, 732, 855, 333, 501, 628, 279, 585, 35, 202, 202, 12994, 273, 394, 4477, 16760, 19236, 2499, 3784, 380, 12396, 16, 315, 6068, 8863, 202, 957, 14203, 20, 18, 458, 2932, 6068, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 1294, 1155, 3113, 6016, 1769, 202, 957, 14203, 20, 18, 458, 2932, 52, 1077, 1507, 19, 2 ]
IEditorInput input) throws PartInitException { final CoreException ex[] = new CoreException[1];
IEditorInput input) throws PartInitException { final CoreException ex[] = new CoreException[1];
private IEditorReference openExternalEditor(final EditorDescriptor desc, IEditorInput input) throws PartInitException { final CoreException ex[] = new CoreException[1]; final IPathEditorInput pathInput = getPathEditorInput(input); if (pathInput != null) { BusyIndicator.showWhile(getDisplay(), new Runnable() { public void run() { try { if (desc.getLauncher() != null) { // open using launcher Object launcher = WorkbenchPlugin.createExtension( desc.getConfigurationElement(), "launcher"); //$NON-NLS-1$ ((IEditorLauncher) launcher).open(pathInput .getPath()); } else { // open using command ExternalEditor oEditor = new ExternalEditor( pathInput.getPath(), desc); oEditor.open(); } } catch (CoreException e) { ex[0] = e; } } }); } else { throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_errorOpeningExternalEditor, desc.getFileName(), desc.getId() )); } if (ex[0] != null) { throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_errorOpeningExternalEditor, desc.getFileName(), desc.getId() ), ex[0]); } // we do not have an editor part for external editors return null; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f1c8b0aa355c00a6c82a289c808984de6778bfca/EditorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 2404, 1696, 6841, 6946, 12, 6385, 18451, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 30015, 431, 8526, 273, 394, 30015, 63, 21, 15533, 3639, 727, 467, 743, 6946, 1210, 589, 1210, 273, 4339, 6946, 1210, 12, 2630, 1769, 3639, 309, 261, 803, 1210, 480, 446, 13, 288, 5411, 13190, 93, 13140, 18, 4500, 15151, 12, 588, 4236, 9334, 394, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 775, 288, 13491, 309, 261, 5569, 18, 588, 28820, 1435, 480, 446, 13, 288, 18701, 368, 1696, 1450, 26618, 18701, 1033, 26618, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 4766, 565, 3044, 18, 588, 1750, 1046, 9334, 315, 20738, 264, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 14015, 45, 6946, 28820, 13, 26618, 2934, 3190, 12, 803, 1210, 4766, 565, 263, 588, 743, 10663, 13491, 289, 469, 288, 18701, 368, 1696, 1450, 1296, 18701, 11352, 6946, 320, 6946, 273, 394, 11352, 6946, 12, 4766, 565, 589, 1210, 18, 588, 743, 9334, 3044, 1769, 18701, 320, 6946, 18, 3190, 5621, 13491, 289, 10792, 289, 1044, 261, 25341, 425, 13, 288, 13491, 431, 63, 20, 65, 273, 425, 31, 10792, 289, 7734, 289, 5411, 15549, 3639, 289, 469, 288, 5411, 604, 394, 6393, 2570, 503, 12, 10792, 29117, 18, 4376, 12, 2421, 22144, 5058, 18, 6946, 1318, 67, 1636, 21378, 6841, 6946, 16, 3044, 18, 588, 4771, 9334, 3044, 18, 26321, 1435, 262, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 2404, 1696, 6841, 6946, 12, 6385, 18451, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 30015, 431, 8526, 273, 394, 30015, 63, 21, 15533, 3639, 727, 467, 743, 6946, 1210, 589, 1210, 273, 4339, 6946, 1210, 12, 2630, 1769, 3639, 309, 261, 803, 1210, 480, 446, 13, 288, 5411, 13190, 93, 13140, 18, 4500, 15151, 12, 588, 4236, 9334, 394, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 775, 288, 13491, 309, 261, 5569, 18, 588, 28820, 1435, 480, 446, 13, 288, 18701, 368, 1696, 1450, 26618, 18701, 1033, 26618, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 4766, 565, 3044, 18, 588, 1750, 1046, 2 ]
Properties p = new Properties(); String[] keys = repo.getDescriptorKeys(); for (int i = 0; i < keys.length; i++) { p.setProperty(keys[i], repo.getDescriptor(keys[i])); } ByteArrayOutputStream bos = new ByteArrayOutputStream(); p.store(bos,""); h.write("repository_properties", bos); NodeImpl nod = (NodeImpl) this.getSession().getRootNode(); NodeId n = nod.getNodeId(); String s = n.toString(); ByteArrayOutputStream fos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(s); h.write("repository_rootNode", fos);
public void backup(BackupIOHandler h) throws IOException, RepositoryException { File file = this.conf.getRepoConfFile(); //Backup repository.xml h.write("repository_xml", file); //Properties Properties p = new Properties(); String[] keys = repo.getDescriptorKeys(); for (int i = 0; i < keys.length; i++) { p.setProperty(keys[i], repo.getDescriptor(keys[i])); } ByteArrayOutputStream bos = new ByteArrayOutputStream(); p.store(bos,""); h.write("repository_properties", bos); // Root node ID NodeImpl nod = (NodeImpl) this.getSession().getRootNode(); NodeId n = nod.getNodeId(); //We persist the string as a serialized object to avoid compatibility issue String s = n.toString(); ByteArrayOutputStream fos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(s); h.write("repository_rootNode", fos); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/a9dbc7000807a0307409af65664df04ae0ae298b/RepositoryBackup.java/buggy/contrib/backup/src/main/java/org/apache/jackrabbit/backup/RepositoryBackup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5114, 12, 6248, 4294, 1503, 366, 13, 1216, 1860, 16, 13367, 288, 7734, 1387, 585, 273, 333, 18, 3923, 18, 588, 8791, 3976, 812, 5621, 3639, 368, 6248, 3352, 18, 2902, 3639, 366, 18, 2626, 2932, 9071, 67, 2902, 3113, 585, 1769, 7734, 368, 2297, 3639, 6183, 293, 273, 394, 6183, 5621, 3639, 514, 8526, 1311, 273, 3538, 18, 588, 3187, 2396, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1311, 18, 2469, 31, 277, 27245, 288, 5411, 293, 18, 542, 1396, 12, 2452, 63, 77, 6487, 3538, 18, 588, 3187, 12, 2452, 63, 77, 5717, 1769, 3639, 289, 3639, 11559, 23904, 273, 394, 11559, 5621, 3639, 293, 18, 2233, 12, 70, 538, 16, 3660, 1769, 3639, 366, 18, 2626, 2932, 9071, 67, 4738, 3113, 23904, 1769, 7734, 368, 7450, 756, 1599, 3639, 2029, 2828, 14003, 273, 261, 907, 2828, 13, 333, 18, 588, 2157, 7675, 588, 29658, 5621, 3639, 2029, 548, 290, 273, 14003, 18, 588, 15883, 5621, 7734, 368, 3218, 3898, 326, 533, 487, 279, 5343, 733, 358, 4543, 8926, 5672, 3639, 514, 272, 273, 290, 18, 10492, 5621, 3639, 11559, 17615, 273, 394, 11559, 5621, 3639, 23438, 24956, 273, 394, 23438, 12, 5075, 1769, 3639, 24956, 18, 2626, 921, 12, 87, 1769, 9079, 366, 18, 2626, 2932, 9071, 67, 3085, 907, 3113, 17615, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5114, 12, 6248, 4294, 1503, 366, 13, 1216, 1860, 16, 13367, 288, 7734, 1387, 585, 273, 333, 18, 3923, 18, 588, 8791, 3976, 812, 5621, 3639, 368, 6248, 3352, 18, 2902, 3639, 366, 18, 2626, 2932, 9071, 67, 2902, 3113, 585, 1769, 7734, 368, 2297, 3639, 6183, 293, 273, 394, 6183, 5621, 3639, 514, 8526, 1311, 273, 3538, 18, 588, 3187, 2396, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1311, 18, 2469, 31, 277, 27245, 288, 5411, 293, 18, 542, 1396, 12, 2452, 63, 77, 6487, 3538, 18, 588, 3187, 12, 2452, 63, 77, 5717, 1769, 3639, 289, 3639, 11559, 23904, 273, 394, 11559, 5621, 3639, 293, 18, 2233, 12, 70, 538, 2 ]
if (concurrent <= 0) {
if (concurrent == 0) {
private int trimForOverload(int allowed, int concurrent) { // dont include the inbound rates when throttling tunnel building, since // that'd expose a pretty trivial attack. int used1s = _context.router().get1sRate(true); // Avoid reliance on the 1s rate, too volatile int used15s = _context.router().get15sRate(true); int used1m = _context.router().get1mRate(true); // Avoid reliance on the 1m rate, too slow int maxKBps = _context.bandwidthLimiter().getOutboundKBytesPerSecond(); int maxBps = maxKBps * 1024; int overBuildLimit = maxBps - BUILD_BANDWIDTH_ESTIMATE_BYTES; // Beyond this, refrain from building int nearBuildLimit = maxBps - (2*BUILD_BANDWIDTH_ESTIMATE_BYTES); // Beyond this, consider it close // Detect any fresh overload which could set back tunnel building if (Math.max(used1s,used15s) > overBuildLimit) { if (_log.shouldLog(Log.WARN)) _log.warn("Overloaded, trouble building tunnels (maxKBps=" + maxKBps + ", 1s=" + used1s + ", 15s=" + used15s + ", 1m=" + used1m + ")"); // Detect serious overload if (((used1s > maxBps) && (used1s > used15s) && (used15s > nearBuildLimit)) || ((used1s > maxBps) && (used15s > overBuildLimit)) || ((used1s > overBuildLimit) && (used15s > overBuildLimit))) { if (_log.shouldLog(Log.WARN)) _log.warn("Serious overload, allow building 0."); // If so configured, drop biggest participating tunnel if (Boolean.valueOf(_context.getProperty("router.dropTunnelsOnOverload","false")).booleanValue() == true) { if (_log.shouldLog(Log.WARN)) _log.warn("Requesting drop of biggest participating tunnel."); _context.tunnelDispatcher().dropBiggestParticipating(); } return(0); } else { // Mild overload, check if we already build tunnels if (concurrent <= 0) { // We aren't building, allow 1 if (_log.shouldLog(Log.WARN)) _log.warn("Mild overload, allow building 1."); return(1); } else { // Already building, allow 0 if (_log.shouldLog(Log.WARN)) _log.warn("Mild overload but already building " + concurrent + ", so allow 0."); return(0); } } } // No overload, allow as requested return(allowed); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/de1ca4aea46de4986d3b4060903fc04d7568241b/BuildExecutor.java/clean/router/java/src/net/i2p/router/tunnel/pool/BuildExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2209, 1290, 4851, 945, 12, 474, 2935, 16, 509, 10020, 13, 288, 3639, 368, 14046, 2341, 326, 13357, 17544, 1347, 30700, 14825, 10504, 16, 3241, 3639, 368, 716, 14271, 15722, 279, 7517, 433, 20109, 13843, 18, 3639, 509, 1399, 21, 87, 273, 389, 2472, 18, 10717, 7675, 588, 21, 87, 4727, 12, 3767, 1769, 368, 17843, 14719, 1359, 603, 326, 404, 87, 4993, 16, 4885, 31548, 3639, 509, 1399, 3600, 87, 273, 389, 2472, 18, 10717, 7675, 588, 3600, 87, 4727, 12, 3767, 1769, 3639, 509, 1399, 21, 81, 273, 389, 2472, 18, 10717, 7675, 588, 21, 81, 4727, 12, 3767, 1769, 368, 17843, 14719, 1359, 603, 326, 404, 81, 4993, 16, 4885, 11816, 3639, 509, 943, 16024, 1121, 273, 389, 2472, 18, 29750, 22329, 7675, 588, 17873, 47, 2160, 2173, 8211, 5621, 3639, 509, 943, 38, 1121, 273, 943, 16024, 1121, 380, 6250, 31, 3639, 509, 1879, 3116, 3039, 273, 943, 38, 1121, 300, 30054, 67, 38, 4307, 10023, 67, 11027, 3445, 1777, 67, 13718, 31, 368, 605, 17029, 333, 16, 1278, 7596, 628, 10504, 3639, 509, 13378, 3116, 3039, 273, 943, 38, 1121, 300, 261, 22, 14, 20215, 67, 38, 4307, 10023, 67, 11027, 3445, 1777, 67, 13718, 1769, 368, 605, 17029, 333, 16, 5260, 518, 1746, 3639, 368, 13796, 1281, 12186, 30402, 1492, 3377, 444, 1473, 14825, 10504, 3639, 309, 261, 10477, 18, 1896, 12, 3668, 21, 87, 16, 3668, 3600, 87, 13, 405, 1879, 3116, 3039, 13, 288, 5411, 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, 2209, 1290, 4851, 945, 12, 474, 2935, 16, 509, 10020, 13, 288, 3639, 368, 14046, 2341, 326, 13357, 17544, 1347, 30700, 14825, 10504, 16, 3241, 3639, 368, 716, 14271, 15722, 279, 7517, 433, 20109, 13843, 18, 3639, 509, 1399, 21, 87, 273, 389, 2472, 18, 10717, 7675, 588, 21, 87, 4727, 12, 3767, 1769, 368, 17843, 14719, 1359, 603, 326, 404, 87, 4993, 16, 4885, 31548, 3639, 509, 1399, 3600, 87, 273, 389, 2472, 18, 10717, 7675, 588, 3600, 87, 4727, 12, 3767, 1769, 3639, 509, 1399, 21, 81, 273, 389, 2472, 18, 10717, 7675, 588, 21, 81, 4727, 12, 3767, 1769, 368, 17843, 14719, 1359, 603, 326, 404, 81, 4993, 16, 4885, 11816, 3639, 509, 2 ]
int contentType = getContentSpecType(fCurrentElementIndex); if ( contentType == XMLElementDecl.TYPE_CHILDREN) { XMLContentModel cm = getElementContentModel(fCurrentElementIndex); ContentLeafNameTypeVector cv = cm.getContentLeafNameTypeVector(); if (cm != null) { fContentLeafStack[fElementDepth] = cv; } } }
int contentType = getContentSpecType(fCurrentElementIndex); if ( contentType == XMLElementDecl.TYPE_CHILDREN) { XMLContentModel cm = getElementContentModel(fCurrentElementIndex); ContentLeafNameTypeVector cv = cm.getContentLeafNameTypeVector(); if (cm != null) { fContentLeafStack[fElementDepth] = cv; } } }
private void pushContentLeafStack() throws Exception { int contentType = getContentSpecType(fCurrentElementIndex); if ( contentType == XMLElementDecl.TYPE_CHILDREN) { XMLContentModel cm = getElementContentModel(fCurrentElementIndex); ContentLeafNameTypeVector cv = cm.getContentLeafNameTypeVector(); if (cm != null) { fContentLeafStack[fElementDepth] = cv; } } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1817, 1350, 9858, 2624, 1435, 1216, 1185, 288, 3639, 509, 5064, 273, 5154, 1990, 559, 12, 74, 3935, 1046, 1016, 1769, 3639, 309, 261, 5064, 422, 1139, 11155, 3456, 18, 2399, 67, 27043, 24296, 13, 288, 5411, 3167, 1350, 1488, 5003, 273, 7426, 1350, 1488, 12, 74, 3935, 1046, 1016, 1769, 5411, 3697, 9858, 461, 559, 5018, 8951, 273, 5003, 18, 588, 1350, 9858, 461, 559, 5018, 5621, 5411, 309, 261, 7670, 480, 446, 13, 288, 7734, 284, 1350, 9858, 2624, 63, 74, 1046, 6148, 65, 273, 8951, 31, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 3238, 918, 1817, 1350, 9858, 2624, 1435, 1216, 1185, 288, 3639, 509, 5064, 273, 5154, 1990, 559, 12, 74, 3935, 1046, 1016, 1769, 3639, 309, 261, 5064, 422, 1139, 11155, 3456, 18, 2399, 67, 27043, 24296, 13, 288, 5411, 3167, 1350, 1488, 5003, 273, 7426, 1350, 1488, 12, 74, 3935, 1046, 1016, 1769, 5411, 3697, 9858, 461, 559, 5018, 8951, 273, 5003, 18, 588, 1350, 9858, 461, 559, 5018, 5621, 5411, 309, 261, 7670, 480, 446, 13, 288, 7734, 284, 1350, 9858, 2624, 63, 74, 1046, 6148, 65, 273, 8951, 31, 5411, 289, 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 ]
public void endCDATA() throws XNIException {
public void endCDATA(Augmentations augs) throws XNIException {
public void endCDATA() throws XNIException { if (fDocumentHandler != null && !fOnlyPassPrefixMappingEvents) { fDocumentHandler.endCDATA(); } } // endCDATA()
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ee3cf4ff9e64a0ae2d3c850b7c9b40e51771781d/XMLNamespaceBinder.java/buggy/src/org/apache/xerces/impl/XMLNamespaceBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 18375, 12, 37, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 2519, 1503, 480, 446, 597, 401, 74, 3386, 6433, 2244, 3233, 3783, 13, 288, 5411, 284, 2519, 1503, 18, 409, 18375, 5621, 3639, 289, 565, 289, 368, 679, 18375, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 18375, 12, 37, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 2519, 1503, 480, 446, 597, 401, 74, 3386, 6433, 2244, 3233, 3783, 13, 288, 5411, 284, 2519, 1503, 18, 409, 18375, 5621, 3639, 289, 565, 289, 368, 679, 18375, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bugPatternList.add(bugPattern);
plugin.addBugPattern(bugPattern);
private void init() throws PluginException { // Plugin descriptor (a.k.a, "findbugs.xml"). Defines // the bug detectors and bug patterns that the plugin provides. Document pluginDescriptor; // List of message translation files in decreasing order of precedence ArrayList<Document> messageCollectionList = new ArrayList<Document>(); try { URL descriptorURL = findResource("findbugs.xml"); if (descriptorURL == null) throw new PluginException("Couldn't find \"findbugs.xml\" in plugin"); SAXReader reader = new SAXReader(); pluginDescriptor = reader.read(descriptorURL); } catch (DocumentException e) { throw new PluginException("Couldn't parse \"findbugs.xml\"", e); } try { Locale locale = Locale.getDefault(); String language = locale.getLanguage(); String country = locale.getCountry(); if (country != null) addCollection(messageCollectionList, "messages_" + language + "_" + country + ".xml"); addCollection(messageCollectionList, "messages_" + language + ".xml"); addCollection(messageCollectionList, "messages.xml"); } catch (DocumentException e) { e.printStackTrace(); throw new PluginException("Couldn't parse \"messages.xml\"", e); } // Create a DetectorFactory for all Detector nodes HashMap<String, DetectorFactory> detectorFactoryMap = new HashMap<String, DetectorFactory>(); try { detectorFactoryList = new ArrayList<DetectorFactory>(); List detectorNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/Detector"); for (Iterator i = detectorNodeList.iterator(); i.hasNext();) { Node detectorNode = (Node) i.next(); String className = detectorNode.valueOf("@class"); String speed = detectorNode.valueOf("@speed"); String disabled = detectorNode.valueOf("@disabled"); String reports = detectorNode.valueOf("@reports"); String requireJRE = detectorNode.valueOf("@requirejre"); //System.out.println("Found detector: class="+className+", disabled="+disabled); Class detectorClass = loadClass(className); DetectorFactory factory = new DetectorFactory(detectorClass, !disabled.equals("true"), speed, reports, requireJRE); detectorFactoryList.add(factory); detectorFactoryMap.put(className, factory); // Find Detector node in one of the messages files, // to get the detail HTML. Node node = findMessageNode(messageCollectionList, "/MessageCollection/Detector[@class='" + className + "']/Details", "Missing Detector description for detector " + className); Element details = (Element) node; String detailHTML = details.getText(); StringBuffer buf = new StringBuffer(); buf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"); buf.append("<HTML><HEAD><TITLE>Detector Description</TITLE></HEAD><BODY>\n"); buf.append(detailHTML); buf.append("</BODY></HTML>\n"); factory.setDetailHTML(buf.toString()); } } catch (ClassNotFoundException e) { throw new PluginException("Could not instantiate detector class: " + e, e); } // Create BugPatterns bugPatternList = new ArrayList<BugPattern>(); List bugPatternNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/BugPattern"); for (Iterator i = bugPatternNodeList.iterator(); i.hasNext();) { Node bugPatternNode = (Node) i.next(); String type = bugPatternNode.valueOf("@type"); String abbrev = bugPatternNode.valueOf("@abbrev"); String category = bugPatternNode.valueOf("@category"); String experimental = bugPatternNode.valueOf("@experimental"); // Find the matching element in messages.xml (or translations) String query = "/MessageCollection/BugPattern[@type='" + type + "']"; Node messageNode = findMessageNode(messageCollectionList, query, "messages.xml missing BugPattern element for type " + type); String shortDesc = getChildText(messageNode, "ShortDescription"); String longDesc = getChildText(messageNode, "LongDescription"); String detailText = getChildText(messageNode, "Details"); BugPattern bugPattern = new BugPattern(type, abbrev, category, Boolean.valueOf(experimental).booleanValue(), shortDesc, longDesc, detailText); bugPatternList.add(bugPattern); } // Create BugCodes HashSet<String> definedBugCodes = new HashSet<String>(); bugCodeList = new ArrayList<BugCode>(); for (Iterator<Document> i = messageCollectionList.iterator(); i.hasNext();) { Document messageCollection = i.next(); List bugCodeNodeList = messageCollection.selectNodes("/MessageCollection/BugCode"); for (Iterator j = bugCodeNodeList.iterator(); j.hasNext();) { Node bugCodeNode = (Node) j.next(); String abbrev = bugCodeNode.valueOf("@abbrev"); if (abbrev.equals("")) throw new PluginException("BugCode element with missing abbrev attribute"); if (definedBugCodes.contains(abbrev)) continue; String description = bugCodeNode.getText(); BugCode bugCode = new BugCode(abbrev, description); bugCodeList.add(bugCode); definedBugCodes.add(abbrev); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fd6737c8f927623310d808dae369bcbde15feb1b/PluginLoader.java/clean/findbugs/src/java/edu/umd/cs/findbugs/PluginLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 1216, 6258, 503, 288, 202, 202, 759, 6258, 4950, 261, 69, 18, 79, 18, 69, 16, 315, 4720, 19381, 18, 2902, 20387, 225, 18003, 281, 202, 202, 759, 326, 7934, 13826, 87, 471, 7934, 6884, 716, 326, 1909, 8121, 18, 202, 202, 2519, 1909, 3187, 31, 202, 202, 759, 987, 434, 883, 4794, 1390, 316, 23850, 11730, 1353, 434, 14172, 202, 202, 19558, 32, 2519, 34, 883, 2532, 682, 273, 394, 2407, 32, 2519, 34, 5621, 202, 202, 698, 288, 1082, 202, 1785, 4950, 1785, 273, 1104, 1420, 2932, 4720, 19381, 18, 2902, 8863, 1082, 202, 430, 261, 12628, 1785, 422, 446, 13, 9506, 202, 12849, 394, 6258, 503, 2932, 16342, 1404, 1104, 1239, 4720, 19381, 18, 2902, 2412, 316, 1909, 8863, 1082, 202, 55, 2501, 2514, 2949, 273, 394, 10168, 2514, 5621, 1082, 202, 4094, 3187, 273, 2949, 18, 896, 12, 12628, 1785, 1769, 202, 202, 97, 1044, 261, 2519, 503, 425, 13, 288, 1082, 202, 12849, 394, 6258, 503, 2932, 16342, 1404, 1109, 1239, 4720, 19381, 18, 2902, 2412, 3113, 425, 1769, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 3916, 2573, 273, 6458, 18, 588, 1868, 5621, 1082, 202, 780, 2653, 273, 2573, 18, 588, 3779, 5621, 1082, 202, 780, 5251, 273, 2573, 18, 588, 8142, 5621, 1082, 202, 430, 261, 9082, 480, 446, 13, 9506, 202, 1289, 2532, 12, 2150, 2532, 682, 16, 315, 6833, 9548, 397, 2653, 397, 8802, 397, 5251, 397, 3552, 2902, 8863, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 1216, 6258, 503, 288, 202, 202, 759, 6258, 4950, 261, 69, 18, 79, 18, 69, 16, 315, 4720, 19381, 18, 2902, 20387, 225, 18003, 281, 202, 202, 759, 326, 7934, 13826, 87, 471, 7934, 6884, 716, 326, 1909, 8121, 18, 202, 202, 2519, 1909, 3187, 31, 202, 202, 759, 987, 434, 883, 4794, 1390, 316, 23850, 11730, 1353, 434, 14172, 202, 202, 19558, 32, 2519, 34, 883, 2532, 682, 273, 394, 2407, 32, 2519, 34, 5621, 202, 202, 698, 288, 1082, 202, 1785, 4950, 1785, 273, 1104, 1420, 2932, 4720, 19381, 18, 2902, 8863, 1082, 202, 430, 261, 12628, 1785, 422, 446, 13, 9506, 202, 12849, 394, 6258, 503, 2932, 16342, 1404, 1104, 2 ]
Node baseDocNode = ses.getNode(getBaseDocPath(doc));
Node baseDocNode = ses.getNode(getBaseDocPath(retdoc)); if (retdoc.hasElement(XWikiDocument.HAS_ATTACHMENTS)) { List attlist = new ArrayList(); NodeIterator ni = baseDocNode.getNode("attach").getNodes(); while (ni.hasNext()) { Node natt = ni.nextNode(); XWikiAttachment att = (XWikiAttachment) ses.loadObject(natt.getPath()); att.setFilename(natt.getName()); att.setDoc(retdoc); attlist.add(att); } retdoc.setAttachmentList(attlist); } else retdoc.setAttachmentList(new ArrayList(0));
public XWikiDocument loadXWikiDoc(final XWikiDocument doc, final XWikiContext context) throws XWikiException { MonitorPlugin monitor = Util.getMonitorPlugin(context); try { // Start monitoring timer if (monitor!=null) monitor.startTimer("jcr"); XWikiDocument retdoc = (XWikiDocument) executeRead(context, new JcrCallBack() { public Object doInJcr(XWikiJcrSession ses) throws RepositoryException, XWikiException { XWikiDocument retdoc = (XWikiDocument) ses.loadObject(getDocPath(doc)); if (retdoc!=null) { retdoc.setStore(context.getWiki().getStore()); retdoc.setDatabase(context.getDatabase()); retdoc.setNew(false); if (retdoc.getAttachmentList()==null) retdoc.setAttachmentList(new ArrayList()); Iterator it = retdoc.getAttachmentList().iterator(); while (it.hasNext()) { XWikiAttachment att = (XWikiAttachment) it.next(); att.setDoc(retdoc); } } else { doc.setNew(true); return doc; } Node baseDocNode = ses.getNode(getBaseDocPath(doc)); //TODO: handle the case where there are no xWikiClass and xWikiObject in the Database BaseClass bclass = new BaseClass(); String cxml = retdoc.getxWikiClassXML(); if (cxml!=null) { bclass.fromXML(cxml); bclass.setName(retdoc.getFullName()); retdoc.setxWikiClass(bclass); } else { try { Node nclass = baseDocNode.getNode("class"); bclass = loadXWikiClass(ses, nclass); } catch (PathNotFoundException e) { bclass = new BaseClass(); } bclass.setName(retdoc.getFullName()); retdoc.setxWikiClass(bclass); } // Store this XWikiClass in the context so that we can use it in case of recursive usage of classes context.addBaseClass(bclass); if (doc.hasElement(XWikiDocument.HAS_OBJECTS)) { Node nobjs = JcrUtil.getOrCreateSubNode(baseDocNode, "obj", ntXWikiObjects); NodeIterator nsi = nobjs.getNodes(); // spaces while (nsi.hasNext()) { Node nspace = nsi.nextNode(); // We use the internal class to store the statistics if (ntXWikiObject.equals( nspace.getPrimaryNodeType().getName() )) // internal class continue; NodeIterator noi = nspace.getNodes(); // objects while (noi.hasNext()) { Node nobj = noi.nextNode(); BaseObject object = loadXWikiCollection(ses, nobj, context); object.setName(doc.getFullName()); retdoc.setObject(object.getClassName(), object.getNumber(), object); } } } return retdoc; } }); return retdoc; } catch (Exception e) { Object[] args = { doc.getFullName() }; throw new XWikiException( XWikiException.MODULE_XWIKI_STORE, XWikiException.ERROR_XWIKI_STORE_JCR_OTHER, "Exception while loading document {0}", e, args); } finally { if (monitor!=null) monitor.endTimer("jcr"); } }
52380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52380/e7c4eb72db7b3ef7664bc92027dc60c212c67b76/XWikiJcrStore.java/clean/src/main/java/com/xpn/xwiki/store/jcr/XWikiJcrStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1139, 25438, 2519, 1262, 60, 25438, 1759, 12, 6385, 1139, 25438, 2519, 997, 16, 727, 1139, 25438, 1042, 819, 13, 1216, 1139, 25438, 503, 288, 202, 202, 7187, 3773, 6438, 273, 3564, 18, 588, 7187, 3773, 12, 2472, 1769, 202, 202, 698, 288, 1082, 202, 759, 3603, 16309, 5441, 5411, 309, 261, 10259, 5, 33, 2011, 13, 7734, 6438, 18, 1937, 6777, 2932, 78, 3353, 8863, 1082, 202, 60, 25438, 2519, 325, 2434, 273, 261, 60, 25438, 2519, 13, 1836, 1994, 12, 2472, 16, 394, 22481, 30008, 1435, 288, 9506, 202, 482, 1033, 741, 382, 46, 3353, 12, 60, 25438, 46, 3353, 2157, 24138, 13, 1216, 13367, 16, 1139, 25438, 503, 288, 6862, 202, 60, 25438, 2519, 325, 2434, 273, 261, 60, 25438, 2519, 13, 24138, 18, 945, 921, 12, 588, 1759, 743, 12, 2434, 10019, 6862, 202, 430, 261, 1349, 2434, 5, 33, 2011, 13, 288, 25083, 202, 1349, 2434, 18, 542, 2257, 12, 2472, 18, 588, 25438, 7675, 588, 2257, 10663, 25083, 202, 1349, 2434, 18, 542, 4254, 12, 2472, 18, 588, 4254, 10663, 25083, 202, 1349, 2434, 18, 542, 1908, 12, 5743, 1769, 25083, 202, 430, 261, 1349, 2434, 18, 588, 6803, 682, 1435, 631, 2011, 13, 15106, 202, 1349, 2434, 18, 542, 6803, 682, 12, 2704, 2407, 10663, 25083, 202, 3198, 518, 273, 325, 2434, 18, 588, 6803, 682, 7675, 9838, 5621, 25083, 202, 17523, 261, 305, 18, 5332, 2134, 10756, 288, 6862, 1082, 202, 60, 25438, 6803, 2403, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1139, 25438, 2519, 1262, 60, 25438, 1759, 12, 6385, 1139, 25438, 2519, 997, 16, 727, 1139, 25438, 1042, 819, 13, 1216, 1139, 25438, 503, 288, 202, 202, 7187, 3773, 6438, 273, 3564, 18, 588, 7187, 3773, 12, 2472, 1769, 202, 202, 698, 288, 1082, 202, 759, 3603, 16309, 5441, 5411, 309, 261, 10259, 5, 33, 2011, 13, 7734, 6438, 18, 1937, 6777, 2932, 78, 3353, 8863, 1082, 202, 60, 25438, 2519, 325, 2434, 273, 261, 60, 25438, 2519, 13, 1836, 1994, 12, 2472, 16, 394, 22481, 30008, 1435, 288, 9506, 202, 482, 1033, 741, 382, 46, 3353, 12, 60, 25438, 46, 3353, 2157, 24138, 13, 1216, 13367, 16, 1139, 25438, 503, 288, 6862, 202, 60, 25438, 2 ]
if (super.checkSession(req,res) == false) return ;
if (super.checkSession(req,res) == false) return ;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; // Lets get the standard parameters and validate them Properties params = super.getParameters(req) ; if (super.checkParameters(req, res, params) == false) return ; // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; int testMetaId = Integer.parseInt( params.getProperty("META_ID") ); if ( !isUserAuthorized( req, res, testMetaId, user ) ) { return; } String action = req.getParameter("action") ; //log("ConfManager is in action...") ; if(action == null) { action = "" ; String header = "BillBoardManager servlet. " ; BillBoardError err = new BillBoardError(req,res,header,3) ; log(header + err.getErrorMsg()) ; return ; } // ********* NEW ******** if(action.equalsIgnoreCase("NEW")) { //log("Lets add a billBoard"); HttpSession session = req.getSession(false) ; if (session != null) { // log("Ok nu stter vi metavrdena"); session.setAttribute("BillBoard.meta_id", params.getProperty("META_ID")) ; session.setAttribute("BillBoard.parent_meta_id", params.getProperty("PARENT_META_ID")) ; session.setAttribute("BillBoard.cookie_id", params.getProperty("COOKIE_ID")) ; } String url = MetaInfo.getServletPath(req) + "BillBoardCreator?action=NEW" ; //log("Redirect till:" + url) ; res.sendRedirect(url) ; return ; } // ********* VIEW ******** if(action.equalsIgnoreCase("VIEW")) { // Lets get userparameters Properties userParams = super.getUserParameters(user) ; String metaId = params.getProperty("META_ID") ; String userId = userParams.getProperty("USER_ID") ; RmiConf rmi = new RmiConf(user) ; // Lets detect which type of user we got //String userType = userParams.getProperty("USER_TYPE") ; String loginType = userParams.getProperty("LOGIN_TYPE") ; // log("Usertype:" + userType) ; // log("loginType:" + userType) ; // We got 3 usertypes: 0= specialusers, 1=normal, 2=confernce // We got 3 logintypes: "Extern"=web users, "ip_access"= people from a certain ip nbr // and "verify" = people who has logged into the system if(! loginType.equalsIgnoreCase("VERIFY")) { // Lets store the standard metavalues in his session object HttpSession session = req.getSession(false) ; if (session != null) { // log("Ok nu stter vi metavrdena"); session.setAttribute("BillBoard.meta_id", params.getProperty("META_ID")) ; session.setAttribute("BillBoard.parent_meta_id", params.getProperty("PARENT_META_ID")) ; session.setAttribute("BillBoard.cookie_id", params.getProperty("COOKIE_ID")) ; session.setAttribute("BillBoard.viewedDiscList", new Properties()) ; //log("OK, nu stter vi viewedDiscList") ; } String loginPage = MetaInfo.getServletPath(req) + "BillBoardLogin?login_type=login" ; //log("Redirect till:" + loginPage) ; res.sendRedirect(loginPage) ; return ; } //log("Ok, anvndaren har loggat in, frbered honom fr konferensen" ) ; // Lets update the users sessionobject with a with a ok login to the conference // Send him to the manager with the ability to get in if(!super.prepareUserForBillBoard(req, res, params, userId) ) { log("Error in prepareUserFor Conf" ) ; } return ; } // End of View // ********* CHANGE ******** if(action.equalsIgnoreCase("CHANGE")) { MetaInfo mInfo = new MetaInfo() ; String url = MetaInfo.getServletPath(req) + "ChangeExternalDoc2?" + mInfo.passMeta(params) + "&metadata=meta" ; //this.log("Redirects to:" + url) ; res.sendRedirect(url) ; return ; } // End if // ********* STATISTICS OBS. NOT USED IN PROGRAM, ONLY FOR TEST ******** if(action.equalsIgnoreCase("STATISTICS")) { // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String ConfPoolServer = Utility.getDomainPref("billboard_server",host) ; //log("confpoolserver " + ConfPoolServer ) ; String metaId = req.getParameter("meta_id") ; String frDate = req.getParameter("from_date") ; String toDate = req.getParameter("to_date") ; String mode = req.getParameter("list_mode") ; // Lets fix the date stuff if( frDate.equals("0")) frDate = "1991-01-01 00:00" ; if( toDate.equals("0")) toDate = "2070-01-01 00:00" ; if( mode == null) mode = "1" ; StringBuffer sql = new StringBuffer() ; sql.append("B_AdminStatistics1" + " " + metaId + ", '" + frDate + "', '" ); sql.append(toDate + "', " + mode) ; //log("AdminStatistics sql: " + sql.toString()) ; String[][] arr = BillBoardManager.getStatistics(ConfPoolServer, sql.toString()) ; //log("AdminStatistics sql: " + arr.length) ; } // End if } // End doGet
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/BillBoardManager.java/clean/servlets/billBoard/BillBoardManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 2463, 274, 202, 202, 759, 511, 2413, 336, 326, 4529, 1472, 471, 1954, 2182, 202, 202, 2297, 859, 273, 2240, 18, 588, 2402, 12, 3658, 13, 274, 202, 202, 430, 261, 9565, 18, 1893, 2402, 12, 3658, 16, 400, 16, 859, 13, 422, 629, 13, 327, 274, 202, 202, 759, 511, 2413, 336, 392, 729, 733, 202, 202, 381, 710, 18, 3567, 18, 1299, 729, 273, 2240, 18, 588, 1299, 2675, 12, 3658, 16, 455, 13, 274, 202, 202, 430, 12, 1355, 422, 446, 13, 327, 274, 202, 202, 474, 1842, 2781, 548, 273, 2144, 18, 2670, 1702, 12, 859, 18, 588, 1396, 2932, 19294, 67, 734, 7923, 11272, 202, 202, 430, 261, 401, 291, 1299, 15341, 12, 1111, 16, 400, 16, 1842, 2781, 548, 16, 729, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 1301, 273, 1111, 18, 588, 1662, 2932, 1128, 7923, 274, 202, 202, 759, 1330, 2932, 3976, 1318, 353, 316, 1301, 7070, 13, 274, 202, 202, 430, 12, 1128, 422, 446, 13, 202, 202, 95, 1082, 202, 1128, 273, 1408, 274, 1082, 202, 780, 1446, 273, 315, 38, 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, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 2463, 274, 202, 202, 759, 511, 2413, 336, 326, 4529, 1472, 471, 1954, 2182, 202, 202, 2297, 859, 273, 2240, 18, 588, 2402, 12, 3658, 13, 274, 202, 202, 430, 261, 9565, 18, 1893, 2402, 12, 3658, 16, 400, 16, 859, 13, 422, 629, 13, 327, 274, 202, 202, 759, 511, 2413, 336, 392, 729, 733, 202, 202, 381, 710, 18, 2 ]
markLabel(finallyHandler, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(index >> 8, iCodeTop); iCodeTop = addByte(index & 0xff, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { int label = node.getIntProp(Node.LABEL_PROP, -1); if (label == -1) { label = acquireLabel(); node.putIntProp(Node.LABEL_PROP, label); } markLabel(label, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; addLabelFixup(theLabel, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); int finallyLabel = finallyTarget.getExistingIntProp(Node.LABEL_PROP); iCodeTop = addGoto(finallyLabel, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.OBJECT, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/1faf10a4308cd300aa91d79cdc2a9df2bf5367a8/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 1228, 18, 7788, 294, 288, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1345, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 509, 770, 273, 2295, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 1671, 1725, 16, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 473, 374, 5297, 16, 277, 1085, 3401, 1769, 10792, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3155, 1228, 18, 10885, 294, 7734, 277, 1085, 3401, 273, 1089, 31063, 12, 2159, 16, 277, 1085, 3401, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 309, 261, 3624, 18, 588, 559, 1435, 480, 3155, 1228, 18, 7788, 13, 13491, 277, 1085, 3401, 273, 2103, 45, 1085, 12, 3624, 16, 277, 1085, 3401, 1769, 10792, 1151, 273, 1151, 18, 588, 2134, 10291, 5621, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 1228, 18, 7788, 294, 288, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1345, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 509, 770, 273, 2295, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 1671, 2 ]
log.error("Failed to connect to " + addr + ':' + srv_port);
System.err.println("Failed to connect to " + addr + ':' + srv_port);
void init() throws Exception { int i=0; for(Iterator it=nodes.iterator(); it.hasNext();) { InetAddress addr=(InetAddress)it.next(); if(connections[i] == null) { try { connections[i]=new Connection(addr); } catch(ConnectException connect_ex) { log.error("Failed to connect to " + addr + ':' + srv_port); throw connect_ex; } catch(Exception all_others) { throw all_others; } System.out.println("-- connected to " +addr); System.out.flush(); } i++; } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TcpTransport.java/buggy/tests/perf/org/jgroups/tests/perf/transports/TcpTransport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 918, 1208, 1435, 1216, 1185, 288, 2398, 509, 277, 33, 20, 31, 2398, 364, 12, 3198, 518, 33, 4690, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1171, 14218, 3091, 28657, 382, 278, 1887, 13, 305, 18, 4285, 5621, 1171, 309, 12, 13313, 63, 77, 65, 422, 446, 13, 288, 5397, 775, 288, 7682, 5921, 63, 77, 65, 33, 2704, 4050, 12, 4793, 1769, 5397, 289, 5397, 1044, 12, 5215, 503, 3077, 67, 338, 13, 288, 7682, 2332, 18, 370, 18, 8222, 2932, 2925, 358, 3077, 358, 315, 397, 3091, 397, 3921, 397, 7302, 67, 655, 1769, 7682, 604, 3077, 67, 338, 31, 5397, 289, 5397, 1044, 12, 503, 777, 67, 28197, 13, 288, 7682, 604, 777, 67, 28197, 31, 5397, 289, 5397, 2332, 18, 659, 18, 8222, 2932, 413, 5840, 358, 315, 397, 4793, 1769, 5397, 2332, 18, 659, 18, 11330, 5621, 1171, 289, 1171, 277, 9904, 31, 2398, 289, 540, 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, 1850, 918, 1208, 1435, 1216, 1185, 288, 2398, 509, 277, 33, 20, 31, 2398, 364, 12, 3198, 518, 33, 4690, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1171, 14218, 3091, 28657, 382, 278, 1887, 13, 305, 18, 4285, 5621, 1171, 309, 12, 13313, 63, 77, 65, 422, 446, 13, 288, 5397, 775, 288, 7682, 5921, 63, 77, 65, 33, 2704, 4050, 12, 4793, 1769, 5397, 289, 5397, 1044, 12, 5215, 503, 3077, 67, 338, 13, 288, 7682, 2332, 18, 370, 18, 8222, 2932, 2925, 358, 3077, 358, 315, 397, 3091, 397, 3921, 397, 7302, 67, 655, 1769, 7682, 604, 3077, 67, 338, 31, 5397, 289, 5397, 1044, 12, 503, 777, 67, 28197, 13, 288, 7682, 604, 2 ]
public Compiler(Class remoteInterface) { this(remoteInterface, null);
public Compiler(GenOptions go, ClassLoader cl) { classLoader = cl; if (classLoader == null) { classLoader = ClassLoader.getSystemClassLoader(); } genOptions = go;
public Compiler(Class remoteInterface) { this(remoteInterface, null); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/Compiler.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12972, 12, 797, 2632, 1358, 13, 288, 3639, 333, 12, 7222, 1358, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12972, 12, 797, 2632, 1358, 13, 288, 3639, 333, 12, 7222, 1358, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DocumentMapper documentMapper = ApplicationServer.getIMCServiceInterface().getDocumentMapper(); DocumentFinder documentFinder = DocumentFinder.getInstance(request);
setDocumentFinderFromRequest( request );
private void setFromRequest( HttpServletRequest request ) { DocumentMapper documentMapper = ApplicationServer.getIMCServiceInterface().getDocumentMapper(); DocumentFinder documentFinder = DocumentFinder.getInstance(request); if ( documentFinder.isCancelable() ) { cancelButtonPressed = null != request.getParameter( REQUEST_PARAMETER__CANCEL_BUTTON ); } if (documentFinder.isDocumentsSelectable()) { try { selectedDocument = documentMapper.getDocument( Integer.parseInt(request.getParameter( REQUEST_PARAMETER__SELECTED_DOCUMENT_ID ))); } catch( NumberFormatException nfe ) { } } try { section = documentMapper.getSectionById( Integer.parseInt( request.getParameter( REQUEST_PARAMETER__SECTION_ID ) ) ); } catch ( NumberFormatException nfe ) { } setDocumentsPerPage(NumberUtils.stringToInt( request.getParameter( REQUEST_PARAMETER__DOCUMENTS_PER_PAGE ), DEFAULT_DOCUMENTS_PER_PAGE )); firstDocumentIndex = Math.max( 0, NumberUtils.stringToInt( request.getParameter( REQUEST_PARAMETER__FIRST_DOCUMENT_INDEX ) ) ); queryString = StringUtils.defaultString( request.getParameter( REQUEST_PARAMETER__QUERY_STRING ) ); searchButtonPressed = null != request.getParameter( REQUEST_PARAMETER__SEARCH_BUTTON ); query = createQuery(documentFinder); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7d56c48bdea379078b834d46fc6f876335916e9b/SearchDocumentsPage.java/buggy/server/src/com/imcode/imcms/servlet/SearchDocumentsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 22012, 691, 12, 9984, 590, 262, 288, 3639, 4319, 4597, 1668, 4597, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 7675, 588, 2519, 4597, 5621, 3639, 4319, 8441, 1668, 8441, 273, 4319, 8441, 18, 588, 1442, 12, 2293, 1769, 3639, 309, 261, 1668, 8441, 18, 291, 6691, 429, 1435, 262, 288, 5411, 3755, 3616, 24624, 273, 446, 480, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 25268, 67, 20068, 11272, 3639, 289, 3639, 309, 261, 5457, 8441, 18, 291, 12922, 31544, 10756, 288, 5411, 775, 288, 7734, 3170, 2519, 273, 1668, 4597, 18, 588, 2519, 12, 2144, 18, 2670, 1702, 12, 2293, 18, 588, 1662, 12, 12492, 67, 9819, 972, 4803, 2056, 67, 18450, 67, 734, 8623, 1769, 5411, 289, 1044, 12, 12100, 25386, 262, 288, 5411, 289, 3639, 289, 3639, 775, 288, 5411, 2442, 273, 1668, 4597, 18, 588, 5285, 5132, 12, 2144, 18, 2670, 1702, 12, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 19082, 67, 734, 262, 262, 11272, 3639, 289, 1044, 261, 12100, 25386, 262, 288, 3639, 289, 3639, 444, 12922, 13005, 12, 1854, 1989, 18, 1080, 17864, 12, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 18450, 55, 67, 3194, 67, 11219, 262, 16, 3331, 67, 18450, 55, 67, 3194, 67, 11219, 262, 1769, 3639, 1122, 2519, 1016, 273, 2361, 18, 1896, 12, 374, 16, 3588, 1989, 18, 1080, 17864, 12, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 15354, 67, 18450, 67, 9199, 262, 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, 22012, 691, 12, 9984, 590, 262, 288, 3639, 4319, 4597, 1668, 4597, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 7675, 588, 2519, 4597, 5621, 3639, 4319, 8441, 1668, 8441, 273, 4319, 8441, 18, 588, 1442, 12, 2293, 1769, 3639, 309, 261, 1668, 8441, 18, 291, 6691, 429, 1435, 262, 288, 5411, 3755, 3616, 24624, 273, 446, 480, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 25268, 67, 20068, 11272, 3639, 289, 3639, 309, 261, 5457, 8441, 18, 291, 12922, 31544, 10756, 288, 5411, 775, 288, 7734, 3170, 2519, 273, 1668, 4597, 18, 588, 2519, 12, 2144, 18, 2670, 1702, 12, 2293, 18, 588, 1662, 12, 12492, 67, 9819, 972, 4803, 2056, 67, 18450, 67, 2 ]
serverStopping = true;
if(reaper != null) reaper.stop();
public void stop() { serverStopping = true; // Stop the main selector m_acceptSelector.wakeup(); // Stop selector threads for (int i = 0; i < m_readHandlers.length; i++) { try { m_readHandlers[i].add(new Shutdown()); } catch (InterruptedException e) { LOG.error("Thread ("+Thread.currentThread().getName() +") was interrupted, failed to shutdown selector", e); } } for (int i = 0; i < m_writeHandlers.length; i++) { try { m_writeHandlers[i].QUEUE.put(new Shutdown()); m_writeHandlers[i].SELECTOR.wakeup(); } catch (InterruptedException e) { LOG.error("Thread ("+Thread.currentThread().getName() +") was interrupted, failed to shutdown selector", e); } } // Stop the callback thread pool if(m_requestProcessors instanceof PooledExecutor) ((PooledExecutor)m_requestProcessors).shutdownNow(); // then close the connections synchronized(conns) { Iterator it=conns.values().iterator(); while(it.hasNext()) { Connection conn=(Connection)it.next(); conn.destroy(); } conns.clear(); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/820cff78bb2b2f435c6dccaa33a34c8147be04f6/ConnectionTableNIO.java/clean/src/org/jgroups/blocks/ConnectionTableNIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 2132, 1435, 282, 288, 1377, 309, 12, 266, 7294, 480, 446, 13, 283, 7294, 18, 5681, 5621, 4202, 368, 5131, 326, 2774, 3451, 1377, 312, 67, 9436, 4320, 18, 91, 911, 416, 5621, 1377, 368, 5131, 3451, 7403, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 896, 6919, 18, 2469, 31, 277, 27245, 1377, 288, 540, 775, 540, 288, 5411, 312, 67, 896, 6919, 63, 77, 8009, 1289, 12, 2704, 17640, 10663, 540, 289, 1044, 261, 24485, 503, 425, 13, 540, 288, 5411, 2018, 18, 1636, 2932, 3830, 7566, 15, 3830, 18, 2972, 3830, 7675, 17994, 1435, 397, 7923, 1703, 15711, 16, 2535, 358, 5731, 3451, 3113, 425, 1769, 540, 289, 1377, 289, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 2626, 6919, 18, 2469, 31, 277, 27245, 1377, 288, 540, 775, 540, 288, 5411, 312, 67, 2626, 6919, 63, 77, 8009, 19533, 18, 458, 12, 2704, 17640, 10663, 5411, 312, 67, 2626, 6919, 63, 77, 8009, 4803, 916, 18, 91, 911, 416, 5621, 540, 289, 1044, 261, 24485, 503, 425, 13, 540, 288, 5411, 2018, 18, 1636, 2932, 3830, 7566, 15, 3830, 18, 2972, 3830, 7675, 17994, 1435, 397, 7923, 1703, 15711, 16, 2535, 358, 5731, 3451, 3113, 425, 1769, 540, 289, 1377, 289, 1377, 368, 5131, 326, 1348, 2650, 2845, 1377, 309, 12, 81, 67, 2293, 18155, 1276, 453, 22167, 6325, 13, 540, 14015, 52, 22167, 6325, 13, 81, 67, 2293, 18155, 2934, 15132, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 2132, 1435, 282, 288, 1377, 309, 12, 266, 7294, 480, 446, 13, 283, 7294, 18, 5681, 5621, 4202, 368, 5131, 326, 2774, 3451, 1377, 312, 67, 9436, 4320, 18, 91, 911, 416, 5621, 1377, 368, 5131, 3451, 7403, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 896, 6919, 18, 2469, 31, 277, 27245, 1377, 288, 540, 775, 540, 288, 5411, 312, 67, 896, 6919, 63, 77, 8009, 1289, 12, 2704, 17640, 10663, 540, 289, 1044, 261, 24485, 503, 425, 13, 540, 288, 5411, 2018, 18, 1636, 2932, 3830, 7566, 15, 3830, 18, 2972, 3830, 7675, 17994, 1435, 397, 7923, 1703, 15711, 16, 2535, 358, 5731, 3451, 3113, 425, 1769, 540, 289, 1377, 2 ]
transaction.addFile( digestTargetFile );
if ( artifactTarget != null ) { digestTargetFile = new File( artifactTarget + digestExt ); transaction.addFile( digestTargetFile ); }
private void verifyDigestFile( File artifactSource, File artifactTarget, RewriteTransaction transaction, Reporter reporter, boolean reportOnly, String digestExt, String digestAlgorithm ) throws DigestException, ReportWriteException, IOException { // create the digest source file from which to copy/verify. File digestSourceFile = new File( artifactSource + digestExt ); // create the digest target file from which to copy/create. File digestTargetFile = new File( artifactTarget + digestExt ); transaction.addFile( digestTargetFile ); boolean verified = false; // if the digest source file exists, then verify it. if ( digestSourceFile.exists() ) { verified = artifactDigestor.verifyArtifactDigest( artifactTarget, digestTargetFile, digestAlgorithm ); if ( verified ) { if ( !reportOnly ) { try { FileUtils.copyFile( digestSourceFile, digestTargetFile ); } catch ( IOException e ) { reporter.error( "Cannot copy digest file for path [" + artifactSource + "] from source to target for digest algorithm: \'" + digestAlgorithm + "\'.", e ); throw e; } } } else { reporter.warn( digestExt + " for path [" + artifactSource + "] in target repository is wrong." ); } } else { reporter.warn( digestExt + " for path [" + artifactSource + "] is missing in source repository." ); } // if the .md5 was missing or did not verify correctly, create a new one // in the target repo. if ( !verified ) { if ( !reportOnly ) { artifactDigestor.createArtifactDigest( artifactTarget, digestTargetFile, digestAlgorithm ); } } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/d1e7f4d5ad3155cc9f1a4a5fdc0ece21f78df284/DigestVerifier.java/clean/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/digest/DigestVerifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3929, 9568, 812, 12, 1387, 6462, 1830, 16, 1387, 6462, 2326, 16, 17851, 3342, 2492, 16, 21394, 25585, 11528, 16, 1250, 2605, 3386, 16, 514, 5403, 2482, 16, 514, 5403, 6801, 262, 3639, 1216, 15864, 503, 16, 8706, 3067, 503, 16, 1860, 565, 288, 3639, 368, 752, 326, 5403, 1084, 585, 628, 1492, 358, 1610, 19, 8705, 18, 3639, 1387, 5403, 31150, 273, 394, 1387, 12, 6462, 1830, 397, 5403, 2482, 11272, 3639, 368, 752, 326, 5403, 1018, 585, 628, 1492, 358, 1610, 19, 2640, 18, 3639, 1387, 5403, 2326, 812, 273, 394, 1387, 12, 6462, 2326, 397, 5403, 2482, 11272, 3639, 309, 261, 6462, 2326, 480, 446, 262, 288, 5403, 2326, 812, 273, 394, 1387, 12, 6462, 2326, 397, 5403, 2482, 11272, 225, 2492, 18, 1289, 812, 12, 5403, 2326, 812, 11272, 289, 3639, 1250, 13808, 273, 629, 31, 3639, 368, 309, 326, 5403, 1084, 585, 1704, 16, 1508, 3929, 518, 18, 3639, 309, 261, 5403, 31150, 18, 1808, 1435, 262, 3639, 288, 5411, 13808, 273, 6462, 9568, 280, 18, 8705, 7581, 9568, 12, 6462, 2326, 16, 5403, 2326, 812, 16, 5403, 6801, 11272, 5411, 309, 261, 13808, 262, 5411, 288, 7734, 309, 261, 401, 6006, 3386, 262, 7734, 288, 10792, 775, 10792, 288, 13491, 13779, 18, 3530, 812, 12, 5403, 31150, 16, 5403, 2326, 812, 11272, 10792, 289, 10792, 1044, 261, 1860, 425, 262, 10792, 288, 13491, 11528, 18, 1636, 12, 315, 4515, 1610, 5403, 585, 364, 589, 8247, 397, 6462, 1830, 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, 3929, 9568, 812, 12, 1387, 6462, 1830, 16, 1387, 6462, 2326, 16, 17851, 3342, 2492, 16, 21394, 25585, 11528, 16, 1250, 2605, 3386, 16, 514, 5403, 2482, 16, 514, 5403, 6801, 262, 3639, 1216, 15864, 503, 16, 8706, 3067, 503, 16, 1860, 565, 288, 3639, 368, 752, 326, 5403, 1084, 585, 628, 1492, 358, 1610, 19, 8705, 18, 3639, 1387, 5403, 31150, 273, 394, 1387, 12, 6462, 1830, 397, 5403, 2482, 11272, 3639, 368, 752, 326, 5403, 1018, 585, 628, 1492, 358, 1610, 19, 2640, 18, 3639, 1387, 5403, 2326, 812, 273, 394, 1387, 12, 6462, 2326, 397, 5403, 2482, 11272, 3639, 309, 261, 6462, 2326, 480, 446, 262, 288, 5403, 2326, 812, 273, 394, 1387, 2 ]
if (type == DAY_OF_WEEK) lastdayOfWeek = true; else throw new ParseException("'L' option is not valid here. (pos=" + i + ")", i);
if (type == DAY_OF_WEEK) { lastdayOfWeek = true; } else { throw new ParseException("'L' option is not valid here. (pos=" + i + ")", i); }
protected int checkNext(int pos, String s, int val, int type) throws ParseException { int end = -1; int i = pos; if (i >= s.length()) { addToSet(val, end, -1, type); return i; } char c = s.charAt(pos); if (c == 'L') { if (type == DAY_OF_WEEK) lastdayOfWeek = true; else throw new ParseException("'L' option is not valid here. (pos=" + i + ")", i); TreeSet set = getSet(type); set.add(new Integer(val)); i++; return i; } if (c == 'W') { if(type == DAY_OF_MONTH) nearestWeekday = true; else throw new ParseException("'W' option is not valid here. (pos=" + i + ")", i); TreeSet set = getSet(type); set.add(new Integer(val)); i++; return i; } if (c == '#') { if (type != DAY_OF_WEEK) throw new ParseException( "'#' option is not valid here. (pos=" + i + ")", i); i++; try { nthdayOfWeek = Integer.parseInt(s.substring(i)); if (nthdayOfWeek < 1 || nthdayOfWeek > 5) throw new Exception(); } catch (Exception e) { throw new ParseException( "A numeric value between 1 and 5 must follow the '#' option", i); } TreeSet set = getSet(type); set.add(new Integer(val)); i++; return i; } if (c == 'C') { if (type == DAY_OF_WEEK) calendardayOfWeek = true; else if (type == DAY_OF_MONTH) calendardayOfMonth = true; else throw new ParseException("'C' option is not valid here. (pos=" + i + ")", i); TreeSet set = getSet(type); set.add(new Integer(val)); i++; return i; } if (c == '-') { i++; c = s.charAt(i); int v = Integer.parseInt(String.valueOf(c)); end = v; i++; if (i >= s.length()) { addToSet(val, end, 1, type); return i; } c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(v, s, i); int v1 = vs.value; end = v1; i = vs.pos; } if (i < s.length() && ((c = s.charAt(i)) == '/')) { i++; c = s.charAt(i); int v2 = Integer.parseInt(String.valueOf(c)); i++; if (i >= s.length()) { addToSet(val, end, v2, type); return i; } c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(v2, s, i); int v3 = vs.value; addToSet(val, end, v3, type); i = vs.pos; return i; } else { addToSet(val, end, v2, type); return i; } } else { addToSet(val, end, 1, type); return i; } } if (c == '/') { i++; c = s.charAt(i); int v2 = Integer.parseInt(String.valueOf(c)); i++; if (i >= s.length()) { addToSet(val, end, v2, type); return i; } c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(v2, s, i); int v3 = vs.value; addToSet(val, end, v3, type); i = vs.pos; return i; } else throw new ParseException("Unexpected character '" + c + "' after '/'", i); } addToSet(val, end, 0, type); i++; return i; }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/CronExpression.java/clean/src/java/org/quartz/CronExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 866, 2134, 12, 474, 949, 16, 514, 272, 16, 509, 1244, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 509, 679, 273, 300, 21, 31, 3639, 509, 277, 273, 949, 31, 3639, 309, 261, 77, 1545, 272, 18, 2469, 10756, 288, 5411, 9604, 694, 12, 1125, 16, 679, 16, 300, 21, 16, 618, 1769, 5411, 327, 277, 31, 3639, 289, 3639, 1149, 276, 273, 272, 18, 3001, 861, 12, 917, 1769, 3639, 309, 261, 71, 422, 296, 48, 6134, 288, 5411, 309, 261, 723, 422, 11579, 67, 3932, 67, 20274, 13, 1142, 2881, 12250, 273, 638, 31, 5411, 469, 7734, 604, 394, 10616, 29823, 48, 11, 1456, 353, 486, 923, 2674, 18, 261, 917, 1546, 13491, 397, 277, 397, 7310, 16, 277, 1769, 5411, 19461, 444, 273, 336, 694, 12, 723, 1769, 5411, 444, 18, 1289, 12, 2704, 2144, 12, 1125, 10019, 5411, 277, 9904, 31, 5411, 327, 277, 31, 3639, 289, 7734, 309, 261, 71, 422, 296, 59, 6134, 288, 5411, 309, 12, 723, 422, 11579, 67, 3932, 67, 13942, 13, 11431, 17019, 273, 638, 31, 5411, 469, 7734, 604, 394, 10616, 29823, 59, 11, 1456, 353, 486, 923, 2674, 18, 261, 917, 1546, 13491, 397, 277, 397, 7310, 16, 277, 1769, 5411, 19461, 444, 273, 336, 694, 12, 723, 1769, 5411, 444, 18, 1289, 12, 2704, 2144, 12, 1125, 10019, 5411, 277, 9904, 31, 5411, 327, 277, 31, 3639, 289, 3639, 309, 261, 71, 422, 2946, 6134, 288, 5411, 309, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 866, 2134, 12, 474, 949, 16, 514, 272, 16, 509, 1244, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 509, 679, 273, 300, 21, 31, 3639, 509, 277, 273, 949, 31, 3639, 309, 261, 77, 1545, 272, 18, 2469, 10756, 288, 5411, 9604, 694, 12, 1125, 16, 679, 16, 300, 21, 16, 618, 1769, 5411, 327, 277, 31, 3639, 289, 3639, 1149, 276, 273, 272, 18, 3001, 861, 12, 917, 1769, 3639, 309, 261, 71, 422, 296, 48, 6134, 288, 5411, 309, 261, 723, 422, 11579, 67, 3932, 67, 20274, 13, 1142, 2881, 12250, 273, 638, 31, 5411, 469, 7734, 604, 394, 10616, 29823, 48, 11, 1456, 353, 486, 923, 2674, 18, 261, 917, 1546, 2 ]
throw je;
state.setCurrentException(je);
public void execute(EvaluationState state, InstructionContext ctx) { // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(ctx); throw je; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 918, 1836, 12, 13468, 1119, 919, 16, 24605, 1042, 1103, 13, 288, 5411, 368, 2037, 1399, 487, 392, 16048, 871, 5411, 804, 2801, 503, 30356, 273, 394, 804, 2801, 503, 12, 26743, 503, 18, 26743, 559, 18, 3715, 83, 26743, 1769, 13491, 30356, 18, 542, 14893, 751, 12, 5900, 1769, 7682, 919, 18, 542, 3935, 503, 12, 78, 73, 1769, 377, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 918, 1836, 12, 13468, 1119, 919, 16, 24605, 1042, 1103, 13, 288, 5411, 368, 2037, 1399, 487, 392, 16048, 871, 5411, 804, 2801, 503, 30356, 273, 394, 804, 2801, 503, 12, 26743, 503, 18, 26743, 559, 18, 3715, 83, 26743, 1769, 13491, 30356, 18, 542, 14893, 751, 12, 5900, 1769, 7682, 919, 18, 542, 3935, 503, 12, 78, 73, 1769, 377, 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 ]
writeOut(outputstream, valueListUnderflow);
doValuePrint (outputstream, specialValue, valueListUnderflow);
public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used this functionality. writeOut(outputstream, "<valueList delimiter=\""+valueListDelimiter+"\" repeatable=\"no\""); if (valueListNoData != null) writeOut(outputstream, " noDataValue=\""+valueListNoData+"\""); if (valueListInfinite != null) writeOut(outputstream, " infiniteValue=\""+valueListInfinite+"\""); if (valueListInfiniteNegative != null) writeOut(outputstream, " infiniteNegaiveValue=\""+valueListInfiniteNegative+"\""); if (valueListNotANumber != null) writeOut(outputstream, " notANumberValue=\""+valueListNotANumber+"\""); if (valueListUnderflow != null) writeOut(outputstream, " underflowValue=\""+valueListUnderflow+"\""); if (valueListOverflow != null) writeOut(outputstream, " overflowValue=\""+valueListOverflow+"\""); writeOut(outputstream, ">"); Iterator iter = values.iterator(); while (iter.hasNext()) { Value thisValue = (Value) iter.next(); String specialValue = thisValue.getSpecial(); if(specialValue != null) { if(specialValue.equals(Constants.VALUE_SPECIAL_INFINITE)) { writeOut(outputstream, valueListInfinite); } else if(specialValue.equals(Constants.VALUE_SPECIAL_INFINITE_NEGATIVE)) { writeOut(outputstream, valueListInfiniteNegative); } else if(specialValue.equals(Constants.VALUE_SPECIAL_NODATA)) { writeOut(outputstream, valueListNoData); } else if(specialValue.equals(Constants.VALUE_SPECIAL_NOTANUMBER)) { writeOut(outputstream, valueListNotANumber); } else if(specialValue.equals(Constants.VALUE_SPECIAL_UNDERFLOW)) { writeOut(outputstream, valueListUnderflow); } else if(specialValue.equals(Constants.VALUE_SPECIAL_OVERFLOW)) { writeOut(outputstream, valueListOverflow); } else { Log.errorln("Error: valueList doesnt have "+specialValue+" defined but value does. Ignoring value."); } } else { writeOut(outputstream, thisValue.getValue()); } if (iter.hasNext()) writeOut(outputstream, valueListDelimiter); } writeOut(outputstream, "</valueList>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 30028, 4632, 261, 4632, 876, 3256, 16, 514, 3504, 13, 282, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 309, 261, 8615, 18, 588, 1442, 7675, 291, 20491, 60, 4577, 1447, 10756, 540, 1045, 1182, 12, 2844, 3256, 16, 3504, 1769, 368, 3504, 756, 309, 6049, 1377, 368, 1158, 1608, 358, 1240, 7666, 429, 444, 358, 296, 9707, 11, 4102, 2537, 341, 14725, 3476, 5456, 309, 732, 1399, 333, 14176, 18, 1377, 1045, 1182, 12, 2844, 3256, 16, 3532, 1132, 682, 5654, 13186, 15, 1132, 682, 12007, 9078, 2412, 7666, 429, 5189, 2135, 8530, 1769, 1377, 309, 261, 1132, 682, 2279, 751, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 1158, 28013, 13186, 15, 1132, 682, 2279, 751, 9078, 8530, 1769, 1377, 309, 261, 1132, 682, 382, 9551, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 14853, 620, 13186, 15, 1132, 682, 382, 9551, 9078, 8530, 1769, 1377, 309, 261, 1132, 682, 382, 9551, 14959, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 14853, 50, 11061, 688, 620, 13186, 15, 1132, 682, 382, 9551, 14959, 9078, 8530, 1769, 1377, 309, 261, 1132, 682, 1248, 1258, 1226, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 486, 1258, 1226, 620, 13186, 15, 1132, 682, 1248, 1258, 1226, 9078, 8530, 1769, 1377, 309, 261, 1132, 682, 14655, 2426, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 3613, 2426, 620, 13186, 15, 1132, 682, 14655, 2426, 9078, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 30028, 4632, 261, 4632, 876, 3256, 16, 514, 3504, 13, 282, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 309, 261, 8615, 18, 588, 1442, 7675, 291, 20491, 60, 4577, 1447, 10756, 540, 1045, 1182, 12, 2844, 3256, 16, 3504, 1769, 368, 3504, 756, 309, 6049, 1377, 368, 1158, 1608, 358, 1240, 7666, 429, 444, 358, 296, 9707, 11, 4102, 2537, 341, 14725, 3476, 5456, 309, 732, 1399, 333, 14176, 18, 1377, 1045, 1182, 12, 2844, 3256, 16, 3532, 1132, 682, 5654, 13186, 15, 1132, 682, 12007, 9078, 2412, 7666, 429, 5189, 2135, 8530, 1769, 1377, 309, 261, 1132, 682, 2279, 751, 480, 446, 13, 1045, 1182, 12, 2844, 3256, 16, 315, 1158, 28013, 13186, 2 ]
for (int i = 0; i < units.length; i++) new AddAccessors(global).apply(units[i]);
treeTransformer.apply(units);
public void apply(Unit[] units) { for (int i = 0; i < units.length; i++) new AddAccessors(global).apply(units[i]); }
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/a61eb893701f4d6d34ee7156e8fa8b52375ace07/AddAccessorsPhase.java/buggy/sources/scalac/transformer/AddAccessorsPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2230, 12, 2802, 8526, 4971, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4971, 18, 2469, 31, 277, 27245, 5411, 394, 1436, 1862, 1383, 12, 6347, 2934, 9010, 12, 7705, 63, 77, 19226, 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, 1071, 918, 2230, 12, 2802, 8526, 4971, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4971, 18, 2469, 31, 277, 27245, 5411, 394, 1436, 1862, 1383, 12, 6347, 2934, 9010, 12, 7705, 63, 77, 19226, 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 ]
currency_level.clear();
public void setFile(CLDRFile file, Map options) { synchronized (sync) { if (!initialized) { init(file); initialized = true; } } latinScript = false; UnicodeSet exemplars = file.getExemplarSet(""); if (exemplars != null) { UnicodeSet auxexemplars = file.getExemplarSet("auxiliary"); if (auxexemplars != null) exemplars.addAll(auxexemplars); latinScript = exemplars.contains('A','Z'); } parser.set(file.getLocaleID()); String language = parser.getLanguage(); requiredLevel = (Level) locale_requiredLevel.get(parser.getLanguageScript()); if (requiredLevel == null) requiredLevel = (Level) locale_requiredLevel.get(language); if (requiredLevel == null) requiredLevel = Level.BASIC; // do the work of putting together the coverage info language_level.clear(); script_level.clear(); language_level.putAll(base_language_level); language_level.put(language, Level.BASIC); script_level.putAll(base_script_level); putAll(script_level, (Set) language_scripts.get(language), Level.BASIC); territory_level.putAll(base_territory_level); putAll(territory_level, (Set) language_territories.get(language), Level.BASIC); // set currencies, timezones according to territory level currency_level.clear(); putAll(currency_level, modernCurrencies, Level.MODERN); for (Iterator it = territory_level.keySet().iterator(); it.hasNext();) { String territory = (String) it.next(); Level level = (Level) territory_level.get(territory); Set currencies = (Set) territory_currency.get(territory); setIfBetter(currencies, level, currency_level); Set timezones = (Set) territory_timezone.get(territory); if (timezones != null) { // only worry about the ones that are "moderate" timezones.retainAll(minimalTimezones); setIfBetter(timezones, level, zone_level); } } if (DEBUG) { System.out.println("Required Level: " + requiredLevel); System.out.println(language_level); System.out.println(script_level); System.out.println(territory_level); System.out.println(currency_level); System.out.println("file-specific info set"); System.out.flush(); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/c098aae4ef9ccee779fa4a301071699f1d10202d/CheckCoverage.java/buggy/tools/java/org/unicode/cldr/test/CheckCoverage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 19658, 12, 5017, 6331, 812, 585, 16, 1635, 702, 13, 288, 5411, 3852, 261, 8389, 13, 288, 7734, 309, 16051, 13227, 13, 288, 10792, 1208, 12, 768, 1769, 10792, 6454, 273, 638, 31, 7734, 289, 5411, 289, 5411, 30486, 3651, 273, 629, 31, 5411, 9633, 694, 431, 351, 412, 5913, 273, 585, 18, 588, 424, 351, 412, 297, 694, 2932, 8863, 5411, 309, 261, 338, 351, 412, 5913, 480, 446, 13, 288, 7734, 9633, 694, 9397, 338, 351, 412, 5913, 273, 585, 18, 588, 424, 351, 412, 297, 694, 2932, 18196, 20606, 8863, 7734, 309, 261, 18196, 338, 351, 412, 5913, 480, 446, 13, 431, 351, 412, 5913, 18, 1289, 1595, 12, 18196, 338, 351, 412, 5913, 1769, 7734, 30486, 3651, 273, 431, 351, 412, 5913, 18, 12298, 2668, 37, 17023, 62, 8284, 5411, 289, 13491, 2082, 18, 542, 12, 768, 18, 588, 3916, 734, 10663, 5411, 514, 2653, 273, 2082, 18, 588, 3779, 5621, 5411, 1931, 2355, 273, 261, 2355, 13, 2573, 67, 4718, 2355, 18, 588, 12, 4288, 18, 588, 3779, 3651, 10663, 5411, 309, 261, 4718, 2355, 422, 446, 13, 1931, 2355, 273, 261, 2355, 13, 2573, 67, 4718, 2355, 18, 588, 12, 4923, 1769, 5411, 309, 261, 4718, 2355, 422, 446, 13, 1931, 2355, 273, 4557, 18, 25642, 31, 13491, 368, 741, 326, 1440, 434, 29379, 9475, 326, 11196, 1123, 5411, 2653, 67, 2815, 18, 8507, 5621, 5411, 2728, 67, 2815, 18, 8507, 5621, 5411, 2653, 67, 2815, 18, 458, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 19658, 12, 5017, 6331, 812, 585, 16, 1635, 702, 13, 288, 5411, 3852, 261, 8389, 13, 288, 7734, 309, 16051, 13227, 13, 288, 10792, 1208, 12, 768, 1769, 10792, 6454, 273, 638, 31, 7734, 289, 5411, 289, 5411, 30486, 3651, 273, 629, 31, 5411, 9633, 694, 431, 351, 412, 5913, 273, 585, 18, 588, 424, 351, 412, 297, 694, 2932, 8863, 5411, 309, 261, 338, 351, 412, 5913, 480, 446, 13, 288, 7734, 9633, 694, 9397, 338, 351, 412, 5913, 273, 585, 18, 588, 424, 351, 412, 297, 694, 2932, 18196, 20606, 8863, 7734, 309, 261, 18196, 338, 351, 412, 5913, 480, 446, 13, 431, 351, 412, 5913, 18, 1289, 1595, 12, 18196, 338, 351, 412, 2 ]
((DescriptorProviderInspection)getSelectedTool()).ignoreProblem(element, descriptor);
final DescriptorProviderInspection tool = ((DescriptorProviderInspection)getSelectedTool()); if (tool != null) { tool.ignoreProblem(element, descriptor); }
public void run() { Runnable command = new Runnable() { public void run() { CommandProcessor.getInstance().markCurrentCommandAsComplex(myProject); fix.applyFix(myProject, descriptor); } }; CommandProcessor.getInstance().executeCommand(myProject, command, fix.getName(), null); ((DescriptorProviderInspection)getSelectedTool()).ignoreProblem(element, descriptor); update(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/44b1444ef611a7223c4ad1fa4fc69f6017017008/InspectionResultsView.java/buggy/source/com/intellij/codeInspection/ui/InspectionResultsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 10254, 1296, 273, 394, 10254, 1435, 288, 1850, 1071, 918, 1086, 1435, 288, 5411, 3498, 5164, 18, 588, 1442, 7675, 3355, 3935, 2189, 1463, 12795, 12, 4811, 4109, 1769, 5411, 2917, 18, 9010, 8585, 12, 4811, 4109, 16, 4950, 1769, 1850, 289, 3639, 289, 31, 5411, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 4811, 4109, 16, 1296, 16, 2917, 18, 17994, 9334, 446, 1769, 5411, 727, 12823, 2249, 14985, 5226, 273, 14015, 3187, 2249, 14985, 13, 588, 7416, 6364, 10663, 309, 261, 6738, 480, 446, 13, 288, 5226, 18, 6185, 13719, 12, 2956, 16, 4950, 1769, 289, 5411, 1089, 5621, 1850, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 10254, 1296, 273, 394, 10254, 1435, 288, 1850, 1071, 918, 1086, 1435, 288, 5411, 3498, 5164, 18, 588, 1442, 7675, 3355, 3935, 2189, 1463, 12795, 12, 4811, 4109, 1769, 5411, 2917, 18, 9010, 8585, 12, 4811, 4109, 16, 4950, 1769, 1850, 289, 3639, 289, 31, 5411, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 4811, 4109, 16, 1296, 16, 2917, 18, 17994, 9334, 446, 1769, 5411, 727, 12823, 2249, 14985, 5226, 273, 14015, 3187, 2249, 14985, 13, 588, 7416, 6364, 10663, 309, 261, 6738, 480, 446, 13, 288, 5226, 18, 6185, 13719, 12, 2956, 16, 4950, 1769, 289, 5411, 1089, 5621, 1850, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
sb.append(" ")
sb.append(' ')
private final void writeAttributes(final Attributes atts) throws IOException { StringBuffer sb = new StringBuffer(); int len = atts.getLength(); for (int i = 0; i < len; i++) { sb.append(" ") .append(atts.getLocalName(i)) .append("=\"") .append(esc(atts.getValue(i))) .append("\""); } w.write(sb.toString()); }
2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/91e958eb8b1fdac6e8e528d0e50160274b0b2018/Processor.java/clean/asm/src/org/objectweb/asm/xml/Processor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 727, 918, 1045, 2498, 12, 6385, 9055, 15687, 13, 7734, 1216, 1860, 3639, 288, 5411, 6674, 2393, 273, 394, 6674, 5621, 5411, 509, 562, 273, 15687, 18, 588, 1782, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 562, 31, 277, 27245, 288, 7734, 2393, 18, 6923, 2668, 8624, 13491, 263, 6923, 12, 270, 3428, 18, 588, 29583, 12, 77, 3719, 13491, 263, 6923, 2932, 5189, 7923, 13491, 263, 6923, 12, 742, 12, 270, 3428, 18, 24805, 12, 77, 20349, 13491, 263, 6923, 2932, 8530, 1769, 5411, 289, 5411, 341, 18, 2626, 12, 18366, 18, 10492, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 727, 918, 1045, 2498, 12, 6385, 9055, 15687, 13, 7734, 1216, 1860, 3639, 288, 5411, 6674, 2393, 273, 394, 6674, 5621, 5411, 509, 562, 273, 15687, 18, 588, 1782, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 562, 31, 277, 27245, 288, 7734, 2393, 18, 6923, 2668, 8624, 13491, 263, 6923, 12, 270, 3428, 18, 588, 29583, 12, 77, 3719, 13491, 263, 6923, 2932, 5189, 7923, 13491, 263, 6923, 12, 742, 12, 270, 3428, 18, 24805, 12, 77, 20349, 13491, 263, 6923, 2932, 8530, 1769, 5411, 289, 5411, 341, 18, 2626, 12, 18366, 18, 10492, 10663, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
enable = on;
setEnabled0(on);
public void setEnabled(boolean on) throws CDIException { Session session = (Session)getTarget().getSession(); BreakpointManager mgr = session.getBreakpointManager(); if (miBreakpoint != null) { if (on == false && isEnabled() == true) { mgr.disableBreakpoint(this); } else if (on == true && isEnabled() == false) { mgr.enableBreakpoint(this); } } enable = on; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/262d89c54a001623219ae0039940228b21fd05cc/Breakpoint.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Breakpoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12888, 12, 6494, 603, 13, 1216, 385, 2565, 503, 288, 202, 202, 2157, 1339, 273, 261, 2157, 13, 588, 2326, 7675, 588, 2157, 5621, 202, 202, 20552, 1318, 13333, 273, 1339, 18, 588, 20552, 1318, 5621, 202, 202, 430, 261, 9197, 20552, 480, 446, 13, 288, 1082, 202, 430, 261, 265, 422, 629, 597, 12047, 1435, 422, 638, 13, 288, 4697, 202, 13552, 18, 8394, 20552, 12, 2211, 1769, 1082, 202, 97, 469, 309, 261, 265, 422, 638, 597, 12047, 1435, 422, 629, 13, 288, 9506, 202, 13552, 18, 7589, 20552, 12, 2211, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 7589, 273, 603, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12888, 12, 6494, 603, 13, 1216, 385, 2565, 503, 288, 202, 202, 2157, 1339, 273, 261, 2157, 13, 588, 2326, 7675, 588, 2157, 5621, 202, 202, 20552, 1318, 13333, 273, 1339, 18, 588, 20552, 1318, 5621, 202, 202, 430, 261, 9197, 20552, 480, 446, 13, 288, 1082, 202, 430, 261, 265, 422, 629, 597, 12047, 1435, 422, 638, 13, 288, 4697, 202, 13552, 18, 8394, 20552, 12, 2211, 1769, 1082, 202, 97, 469, 309, 261, 265, 422, 638, 597, 12047, 1435, 422, 629, 13, 288, 9506, 202, 13552, 18, 7589, 20552, 12, 2211, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 7589, 273, 603, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100 ]
return this._comment; }
return this._comment; }
public JDocComment getComment() { return this._comment; } //-- getComment
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JAnnotationTypeElement.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JAnnotationTypeElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 1759, 4469, 25524, 1435, 288, 202, 202, 2463, 333, 6315, 3469, 31, 202, 97, 368, 413, 25524, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 1759, 4469, 25524, 1435, 288, 202, 202, 2463, 333, 6315, 3469, 31, 202, 97, 368, 413, 25524, 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 ]
throws IOException {
throws IOException, ServletException {
public static String getDoc( int meta_id, int parent_meta_id, HttpServletRequest req, HttpServletResponse res ) throws IOException { IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); Vector vec = new Vector(); SystemData sysData = imcref.getSystemData(); String eMailServerMaster = sysData.getServerMasterAddress(); vec.add( "#EMAIL_SERVER_MASTER#" ); vec.add( eMailServerMaster ); HttpSession session = req.getSession( true ); UserDomainObject user = Utility.getLoggedOnUser( req ); Stack history = (Stack)user.get( "history" ); if ( history == null ) { history = new Stack(); user.put( "history", history ); } Integer meta_int = new Integer( meta_id ); if ( history.empty() || !history.peek().equals( meta_int ) ) { history.push( meta_int ); } DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument( meta_id ); if ( null == document ) { return imcref.getAdminTemplate( NO_PAGE_URL, user, vec ); } DocumentRequest documentRequest; Revisits revisits; String referrer = req.getHeader( HTTP_HEADER_REFERRER ); DocumentDomainObject referringDocument = null; Perl5Util perlrx = new Perl5Util(); if ( null != referrer && perlrx.match( "/meta_id=(\\d+)/", referrer ) ) { int referring_meta_id = Integer.parseInt( perlrx.group( 1 ) ); referringDocument = documentMapper.getDocument( referring_meta_id ); } documentRequest = new DocumentRequest( imcref, user, document, referringDocument, req ); documentRequest.setEmphasize( req.getParameterValues( "emp" ) ); Cookie[] cookies = req.getCookies(); Hashtable cookieHash = new Hashtable(); for ( int i = 0; cookies != null && i < cookies.length; ++i ) { Cookie currentCookie = cookies[i]; cookieHash.put( currentCookie.getName(), currentCookie.getValue() ); } revisits = new Revisits(); if ( cookieHash.get( "imVisits" ) == null ) { Date now = new Date(); long lNow = now.getTime(); String sNow = "" + lNow; Cookie resCookie = new Cookie( "imVisits", session.getId() + sNow ); resCookie.setMaxAge( 31500000 ); resCookie.setPath( "/" ); res.addCookie( resCookie ); revisits.setRevisitsId( session.getId() ); revisits.setRevisitsDate( sNow ); } else { revisits.setRevisitsId( cookieHash.get( "imVisits" ).toString() ); } documentRequest.setRevisits( revisits ); // FIXME: One of the places that need fixing. Number one, we should put the no-permission-page // among the templates for the default-language. Number two, we should use just one function for // checking permissions. Number three, since the user obviously has logged in, give him the page in his own language! String no_permission_url = "/imcms/" + user.getLanguageIso639_2() + "/login/" + NO_PERMISSION_URL; if ( !documentMapper.userHasAtLeastDocumentReadPermission( user, document ) ) { session.setAttribute( "login.target", req.getRequestURL().append( "?" ).append( req.getQueryString() ).toString() ); String redirect = no_permission_url; res.sendRedirect( redirect ); return null; } if ( !document.isPublished() && !documentMapper.userHasMoreThanReadPermissionOnDocument( user, document ) ) { return imcref.getAdminTemplate( NO_ACTIVE_DOCUMENT_URL, user, null ); } if ( document instanceof FormerExternalDocument ) { redirectToExternalDocumentTypeWithAction( document, res, "view" ); // Log to accesslog trackLog.info( documentRequest ); return null; } else if ( document instanceof UrlDocumentDomainObject ) { String url_ref = imcref.isUrlDoc( meta_id ); Perl5Util regexp = new Perl5Util(); if ( !regexp.match( "m!^\\w+:|^[/.]!", url_ref ) ) { url_ref = "http://" + url_ref; } res.sendRedirect( url_ref ); // Log to accesslog trackLog.info( documentRequest ); return null; } else if ( document instanceof BrowserDocumentDomainObject ) { String br_id = req.getHeader( "User-Agent" ); if ( br_id == null ) { br_id = ""; } String tmp = imcref.sqlQueryStr( "select top 1 to_meta_id\n" + "from browser_docs\n" + "join browsers on browsers.browser_id = browser_docs.browser_id\n" + "where meta_id = ? and ? like user_agent order by value desc", new String[]{"" + meta_id, br_id} ); if ( tmp != null && ( !"".equals( tmp ) ) ) { meta_id = Integer.parseInt( tmp ); } else { Map browserDocumentIdMap = ( (BrowserDocumentDomainObject)document ).getBrowserDocumentIdMap(); meta_id = ( (Integer)browserDocumentIdMap.get( BrowserDocumentDomainObject.Browser.DEFAULT ) ).intValue(); } res.sendRedirect( "GetDoc?meta_id=" + meta_id + "&parent_meta_id=" + parent_meta_id ); // Log to accesslog trackLog.info( documentRequest ); return null; } else if ( document instanceof HtmlDocumentDomainObject ) { String html_str_temp = imcref.isFramesetDoc( meta_id ); if ( html_str_temp == null ) { throw new RuntimeException( "Null-frameset encountered." ); } String htmlStr = html_str_temp; // Log to accesslog trackLog.info( documentRequest ); return htmlStr; } else if ( document instanceof FileDocumentDomainObject ) { FileDocumentDomainObject fileDocument = (FileDocumentDomainObject)document; String filename = fileDocument.getFilename(); String mimetype = fileDocument.getMimeType(); InputStream fr; try { fr = new BufferedInputStream( ( (FileDocumentDomainObject)document ).getInputStreamSource().getInputStream() ); } catch ( IOException ex ) { return imcref.getAdminTemplate( NO_PAGE_URL, user, vec ); } int len = fr.available(); ServletOutputStream out = res.getOutputStream(); res.setContentLength( len ); res.setContentType( mimetype ); String content_disposition = ( null != req.getParameter( "download" ) ? "attachment" : "inline" ) + "; filename=\"" + filename + "\""; res.setHeader( "Content-Disposition", content_disposition ); try { int bytes_read; byte[] buffer = new byte[32768]; while ( -1 != ( bytes_read = fr.read( buffer ) ) ) { out.write( buffer, 0, bytes_read ); } } catch ( java.net.SocketException ex ) { log.debug( "Exception occured", ex ); } fr.close(); out.flush(); out.close(); // Log to accesslog trackLog.info( documentRequest ); return null; } else { String externalparam = null; if ( req.getParameter( "externalClass" ) != null || req.getAttribute( "externalClass" ) != null ) { String className; if ( req.getParameter( "externalClass" ) != null ) { className = req.getParameter( "externalClass" ); } else { className = (String)req.getAttribute( "externalClass" ); } try { Class cl = Class.forName( className ); imcode.external.GetDocControllerInterface obj = (imcode.external.GetDocControllerInterface)cl.newInstance(); externalparam = obj.createString( req ); } catch ( Exception e ) { StringWriter sw = new StringWriter(); e.printStackTrace( new PrintWriter( sw ) ); externalparam = "<!-- Exception: " + sw.toString() + " -->"; } } user.setTemplateGroup( null ); ParserParameters paramsToParser = new ParserParameters(); paramsToParser.setTemplate( req.getParameter( "template" ) ); paramsToParser.setParameter( req.getParameter( "param" ) ); paramsToParser.setExternalParameter( externalparam ); paramsToParser.setDocumentRequest( documentRequest ); String result = imcref.parsePage( paramsToParser ); // Log to accesslog trackLog.info( documentRequest ); return result; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/195002225417762f8f97dc50f43b99f7f6a231d9/GetDoc.java/buggy/server/src/com/imcode/imcms/servlet/GetDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 17999, 12, 509, 2191, 67, 350, 16, 509, 982, 67, 3901, 67, 350, 16, 9984, 1111, 16, 12446, 400, 262, 5411, 1216, 1860, 16, 16517, 288, 3639, 6246, 39, 18348, 709, 71, 1734, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 5621, 3639, 5589, 7062, 273, 394, 5589, 5621, 3639, 2332, 751, 2589, 751, 273, 709, 71, 1734, 18, 588, 3163, 751, 5621, 3639, 514, 425, 6759, 2081, 7786, 273, 2589, 751, 18, 588, 2081, 7786, 1887, 5621, 3639, 7062, 18, 1289, 12, 6619, 14686, 67, 4370, 67, 28045, 17133, 11272, 3639, 7062, 18, 1289, 12, 425, 6759, 2081, 7786, 11272, 3639, 26166, 1339, 273, 1111, 18, 588, 2157, 12, 638, 11272, 3639, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 1111, 11272, 3639, 7283, 4927, 273, 261, 2624, 13, 1355, 18, 588, 12, 315, 8189, 6, 11272, 3639, 309, 261, 4927, 422, 446, 262, 288, 5411, 4927, 273, 394, 7283, 5621, 5411, 729, 18, 458, 12, 315, 8189, 3113, 4927, 11272, 3639, 289, 3639, 2144, 2191, 67, 474, 273, 394, 2144, 12, 2191, 67, 350, 11272, 3639, 309, 261, 4927, 18, 5531, 1435, 747, 401, 8189, 18, 347, 3839, 7675, 14963, 12, 2191, 67, 474, 262, 262, 288, 5411, 4927, 18, 6206, 12, 2191, 67, 474, 11272, 3639, 289, 3639, 4319, 4597, 1668, 4597, 273, 709, 71, 1734, 18, 588, 2519, 4597, 5621, 3639, 4319, 3748, 921, 1668, 273, 1668, 4597, 18, 588, 2519, 12, 2191, 67, 350, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 17999, 12, 509, 2191, 67, 350, 16, 509, 982, 67, 3901, 67, 350, 16, 9984, 1111, 16, 12446, 400, 262, 5411, 1216, 1860, 16, 16517, 288, 3639, 6246, 39, 18348, 709, 71, 1734, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 5621, 3639, 5589, 7062, 273, 394, 5589, 5621, 3639, 2332, 751, 2589, 751, 273, 709, 71, 1734, 18, 588, 3163, 751, 5621, 3639, 514, 425, 6759, 2081, 7786, 273, 2589, 751, 18, 588, 2081, 7786, 1887, 5621, 3639, 7062, 18, 1289, 12, 6619, 14686, 67, 4370, 67, 28045, 17133, 11272, 3639, 7062, 18, 1289, 12, 425, 6759, 2081, 7786, 11272, 3639, 26166, 1339, 273, 1111, 18, 588, 2157, 12, 638, 11272, 3639, 2177, 3748, 2 ]
FullIns testIns=new FullIns(tile); testIns.addRoute(src,dest); code.appendIns(testIns,false);
/*FullIns testIns=new FullIns(tile); testIns.addRoute(src,dest); code.appendIns(testIns,false);*/
private static void createLinearSwitchCode(FilterTraceNode node/*,boolean init,boolean primePump*/,int mult,RawTile tile,RawChip rawChip) { System.err.println("Creating switchcode linear: "+node+" "+mult); ComputeNode sourceNode = null; //Get sourceNode and input port if (node.getPrevious().isFilterTrace()) sourceNode = rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()); else { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace() && tile.hasIODevice()) sourceNode = tile.getIODevice(); else sourceNode = IntraTraceBuffer.getBuffer((InputTraceNode)node.getPrevious(), node).getNonRedundant().getDRAM(); } SwitchIPort src = rawChip.getIPort(sourceNode, tile); SwitchIPort src2 = rawChip.getIPort2(sourceNode, tile); sourceNode = null; //Get destNode and output port ComputeNode destNode = null; if (node.getNext().isFilterTrace()) destNode = rawChip.getTile(((FilterTraceNode)node.getNext()).getX(), ((FilterTraceNode)node.getNext()).getY()); else { if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace() && tile.hasIODevice()) destNode = tile.getIODevice(); else { destNode = IntraTraceBuffer.getBuffer(node, (OutputTraceNode)node.getNext()). getNonRedundant().getDRAM(); } } SwitchOPort dest = rawChip.getOPort(tile, destNode); //SwitchOPort dest2 = rawChip.getOPort2(tile, destNode); destNode = null; //Get filter properties FilterContent content = node.getFilter(); final int numCoeff = content.getArray().length; final int pop = content.getPopCount(); final int numPop = numCoeff/pop; final boolean begin=content.getBegin(); final boolean end=content.getEnd(); final int pos=content.getPos(); final int turns=pos*numCoeff; //System.out.println("SRC: "+src); //System.out.println("DEST: "+dest); //Begin codegen SwitchCodeStore code = tile.getSwitchCode(); //System.err.println("Getting HERE!"); code.appendIns(new Comment("HERE!"),false); //Get loop counter FullIns loopCount=new FullIns(tile,new MoveIns(SwitchReg.R3,SwitchIPort.CSTO)); code.appendIns(loopCount,false); //Preloop if(begin) { //Test: pass start down FullIns testIns=new FullIns(tile); testIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(testIns,false); if(turns>0) { if(turns>1) { boolean first=true; //Order between values (from peek buffer) and partial sums is reversed for(int turn=1;turn<turns;turn++) for(int j = 0; j<pop; j++) { if(j==0) { //FullIns newIns=new FullIns(tile); //newIns.addRoute(SwitchIPort.CSTO,dest); //Used to be dest2 FullIns newIns=new FullIns(tile,new MoveIns(SwitchReg.R1,SwitchIPort.CSTO)); if(first) first=false; else newIns.addRoute(SwitchReg.R1,dest); code.appendIns(newIns, false); } FullIns ins=new FullIns(tile); ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,false); } //Route remainder FullIns ins=new FullIns(tile); ins.addRoute(SwitchReg.R1,dest); code.appendIns(ins,false); } //Order back to normal for(int j = 0; j<pop; j++) { //Pass first value FullIns ins=new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); //if(!end) ins.addRoute(src,dest); code.appendIns(ins, false); //Repeat first value for(int k = numPop-2; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, false); } //Pass in partial sum if(j==0) { FullIns newIns=new FullIns(tile); newIns.addRoute(src, SwitchOPort.CSTI); //Used to be src2,csti2 //Pass out partial sum to next filter newIns.addRoute(SwitchIPort.CSTO,dest); //Used to be dest2 code.appendIns(newIns, false); } } } } else { //Test: passing start down FullIns testIns=new FullIns(tile); testIns.addRoute(src,dest); code.appendIns(testIns,false); for(int i = 0; i<numPop; i++) { for(int j = 0; j<pop; j++) { //Pass first value FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); code.appendIns(ins, false); //Repeat first value for(int k = i-1; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, false); } //Pass in partial sum if(j==0) { FullIns newIns=new FullIns(tile); newIns.addRoute(src, SwitchOPort.CSTI); //Used to be src2,csti2 code.appendIns(newIns, false); } } } for(int turn=0;turn<turns;turn++) for(int j = 0; j<pop; j++) { //Pass first value FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); if(!end) ins.addRoute(src,dest); code.appendIns(ins, false); //Repeat first value for(int k = numPop-2; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, false); } //Pass in partial sum if(j==0) { FullIns newIns=new FullIns(tile); newIns.addRoute(src, SwitchOPort.CSTI); //Used to be src2,csti2 //Pass out partial sum to next filter newIns.addRoute(SwitchIPort.CSTO,dest); //Used to be dest2 code.appendIns(newIns, false); } } } //Innerloop Label label = code.getFreshLabel(); code.appendIns(label,false); final int numTimes=Linear.getMult(numCoeff); int pendingSends=0; int times=0; FullIns ins=null; for(int i = 0;i<numTimes;i++) { for(int j=0;j<pop;j++) { for(int k=0;k<numPop;k++) { if(j==0&&k==numPop-1) pendingSends++; times++; if(k==0) { ins=new FullIns(tile,new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); if(!end) { ins.addRoute(src,dest); } } else { ins=new FullIns(tile); ins.addRoute(SwitchReg.R1, SwitchOPort.CSTI); //Temp reg } code.appendIns(ins, false); if(times==4) { times=0; if(pendingSends>0) { for(int l=0;l<pendingSends;l++) { ins=new FullIns(tile); if(!begin) { ins.addRoute(src,SwitchOPort.CSTI); //was src2,csti2 } ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,false); } pendingSends=0; } } } } } ins.setProcessorIns(new BnezdIns(SwitchReg.R3,SwitchReg.R3,label.getLabel())); //Postloop }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/ed4a7b309879320e61a40e870891a1a90a7eb2b3/Rawify.java/clean/streams/src/at/dms/kjc/spacetime/Rawify.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 752, 15982, 10200, 1085, 12, 1586, 3448, 907, 756, 20308, 16, 6494, 1208, 16, 6494, 17014, 52, 2801, 5549, 16, 474, 1778, 16, 4809, 9337, 4769, 16, 4809, 782, 625, 1831, 782, 625, 13, 288, 202, 3163, 18, 370, 18, 8222, 2932, 11092, 1620, 710, 9103, 30, 13773, 2159, 9078, 13773, 5421, 1769, 202, 7018, 907, 26799, 273, 446, 31, 202, 759, 967, 26799, 471, 810, 1756, 202, 430, 261, 2159, 18, 588, 8351, 7675, 291, 1586, 3448, 10756, 202, 565, 26799, 273, 1831, 782, 625, 18, 588, 9337, 12443, 12, 1586, 3448, 907, 13, 2159, 18, 588, 8351, 1435, 2934, 588, 60, 9334, 9944, 14015, 1586, 3448, 907, 13, 2159, 18, 588, 8351, 1435, 2934, 588, 61, 10663, 202, 12107, 288, 202, 565, 309, 261, 47, 78, 71, 1320, 18, 11179, 72, 1940, 597, 756, 18, 588, 8351, 1435, 480, 446, 597, 202, 202, 2159, 18, 588, 8351, 7675, 291, 1210, 3448, 1435, 597, 202, 202, 15368, 18, 5332, 4294, 3654, 10756, 3196, 202, 3168, 907, 273, 4769, 18, 588, 4294, 3654, 5621, 202, 565, 469, 3196, 202, 3168, 907, 273, 1875, 565, 657, 2033, 3448, 1892, 18, 588, 1892, 12443, 1210, 3448, 907, 13, 2159, 18, 588, 8351, 9334, 9944, 4202, 756, 2934, 588, 3989, 3715, 15362, 7675, 588, 6331, 2192, 5621, 202, 97, 202, 10200, 2579, 499, 1705, 273, 1831, 782, 625, 18, 588, 2579, 499, 12, 3168, 907, 16, 4769, 1769, 202, 10200, 2579, 499, 1705, 22, 273, 1831, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 752, 15982, 10200, 1085, 12, 1586, 3448, 907, 756, 20308, 16, 6494, 1208, 16, 6494, 17014, 52, 2801, 5549, 16, 474, 1778, 16, 4809, 9337, 4769, 16, 4809, 782, 625, 1831, 782, 625, 13, 288, 202, 3163, 18, 370, 18, 8222, 2932, 11092, 1620, 710, 9103, 30, 13773, 2159, 9078, 13773, 5421, 1769, 202, 7018, 907, 26799, 273, 446, 31, 202, 759, 967, 26799, 471, 810, 1756, 202, 430, 261, 2159, 18, 588, 8351, 7675, 291, 1586, 3448, 10756, 202, 565, 26799, 273, 1831, 782, 625, 18, 588, 9337, 12443, 12, 1586, 3448, 907, 13, 2159, 18, 588, 8351, 1435, 2934, 588, 60, 9334, 9944, 14015, 1586, 3448, 907, 13, 2159, 18, 588, 8351, 1435, 2 ]
public Component getComponentBefore(Container root, Component current)
public Component getComponentBefore (Container root, Component current)
public Component getComponentBefore(Container root, Component current) { return null; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 10322, 4649, 261, 2170, 1365, 16, 5435, 783, 13, 225, 288, 565, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 10322, 4649, 261, 2170, 1365, 16, 5435, 783, 13, 225, 288, 565, 327, 446, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (! getCmsObject().existsResource(contentFolder + fileName)) {
if (!getCmsObject().existsResource(contentFolder + fileName)) {
public String getPageContent(String element) { // Determine the folder to read the contents from String contentFolder = property(CmsPropertyDefinition.PROPERTY_TEMPLATE_ELEMENTS, "search", ""); if (CmsStringUtil.isEmpty(contentFolder)) { contentFolder = VFS_FOLDER_HANDLER + "contents/"; } // determine the file to read the contents from String fileName = "content" + getStatusCodeMessage() + ".html"; if (! getCmsObject().existsResource(contentFolder + fileName)) { // special file does not exist, use generic one fileName = "content" + UNKKNOWN_STATUS_CODE + ".html"; } // get the content return getContent(contentFolder + fileName, element, getLocale()); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/98f698d905eee245c2e39e11531b99a5f27e0d0f/CmsJspStatusBean.java/buggy/src/org/opencms/jsp/util/CmsJspStatusBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8957, 1350, 12, 780, 930, 13, 288, 7734, 368, 10229, 326, 3009, 358, 855, 326, 2939, 628, 3639, 514, 913, 3899, 273, 1272, 12, 4747, 1396, 1852, 18, 9900, 67, 12205, 67, 10976, 55, 16, 315, 3072, 3113, 1408, 1769, 3639, 309, 261, 4747, 13565, 18, 291, 1921, 12, 1745, 3899, 3719, 288, 5411, 913, 3899, 273, 23567, 67, 17357, 67, 19937, 397, 315, 3980, 4898, 31, 3639, 289, 7734, 368, 4199, 326, 585, 358, 855, 326, 2939, 628, 3639, 514, 3968, 273, 315, 1745, 6, 397, 9825, 1079, 1435, 397, 3552, 2620, 14432, 3639, 309, 16051, 588, 4747, 921, 7675, 1808, 1420, 12, 1745, 3899, 397, 3968, 3719, 288, 5411, 368, 4582, 585, 1552, 486, 1005, 16, 999, 5210, 1245, 5411, 3968, 273, 315, 1745, 6, 397, 5019, 47, 9308, 67, 8608, 67, 5572, 397, 3552, 2620, 14432, 3639, 289, 7734, 368, 336, 326, 913, 3639, 327, 5154, 12, 1745, 3899, 397, 3968, 16, 930, 16, 9595, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8957, 1350, 12, 780, 930, 13, 288, 7734, 368, 10229, 326, 3009, 358, 855, 326, 2939, 628, 3639, 514, 913, 3899, 273, 1272, 12, 4747, 1396, 1852, 18, 9900, 67, 12205, 67, 10976, 55, 16, 315, 3072, 3113, 1408, 1769, 3639, 309, 261, 4747, 13565, 18, 291, 1921, 12, 1745, 3899, 3719, 288, 5411, 913, 3899, 273, 23567, 67, 17357, 67, 19937, 397, 315, 3980, 4898, 31, 3639, 289, 7734, 368, 4199, 326, 585, 358, 855, 326, 2939, 628, 3639, 514, 3968, 273, 315, 1745, 6, 397, 9825, 1079, 1435, 397, 3552, 2620, 14432, 3639, 309, 16051, 588, 4747, 921, 7675, 1808, 1420, 12, 1745, 3899, 397, 3968, 3719, 288, 5411, 368, 4582, 585, 1552, 486, 2 ]
butUp.setEnabled(md.getFinalProne(ce().isProne())); butDown.setEnabled(!(butUp.isEnabled()));
if (ce() != null) { butUp.setEnabled(md.getFinalProne(ce().isProne())); butDown.setEnabled(!(butUp.isEnabled())); } else { butUp.setEnabled(false); butDown.setEnabled(false); }
private void updateProneButtons() { butUp.setEnabled(md.getFinalProne(ce().isProne())); butDown.setEnabled(!(butUp.isEnabled())); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/e24d168bdab12659c52bbdf7b0f7f8f8af02b188/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 2050, 476, 14388, 1435, 288, 3639, 1496, 1211, 18, 542, 1526, 12, 1264, 18, 588, 7951, 2050, 476, 12, 311, 7675, 291, 2050, 476, 1435, 10019, 3639, 1496, 4164, 18, 542, 1526, 12, 5, 12, 12885, 1211, 18, 291, 1526, 1435, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 2050, 476, 14388, 1435, 288, 3639, 1496, 1211, 18, 542, 1526, 12, 1264, 18, 588, 7951, 2050, 476, 12, 311, 7675, 291, 2050, 476, 1435, 10019, 3639, 1496, 4164, 18, 542, 1526, 12, 5, 12, 12885, 1211, 18, 291, 1526, 1435, 10019, 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 ]
assertOpen("getFlagFromInteger(String)"); assertOpenResult("getFlagFromInteger(String)"); logger.logVariable("columnName", columnName);
assertConnectionIsOpen(); assertResultSetIsSet();
public ArtifactFlag getFlagFromInteger(final String columnName) { assertOpen("getFlagFromInteger(String)"); assertOpenResult("getFlagFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return resultSet.wasNull() ? null : ArtifactFlag.fromId(value); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/30bb50f571b7d24c22102dbe6834bf508c57d427/Session.java/buggy/client-model/src/main/java/com/thinkparity/ophelia/model/io/db/hsqldb/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14022, 4678, 336, 4678, 1265, 4522, 12, 6385, 514, 7578, 13, 288, 202, 202, 11231, 3678, 2932, 588, 4678, 1265, 4522, 12, 780, 2225, 1769, 202, 202, 11231, 3678, 1253, 2932, 588, 4678, 1265, 4522, 12, 780, 2225, 1769, 202, 202, 4901, 18, 1330, 3092, 2932, 2827, 461, 3113, 7578, 1769, 202, 202, 698, 288, 5411, 727, 2144, 460, 273, 12168, 18, 588, 1702, 12, 2827, 461, 1769, 5411, 327, 12168, 18, 17416, 2041, 1435, 692, 446, 294, 14022, 4678, 18, 2080, 548, 12, 1132, 1769, 202, 202, 97, 1044, 261, 6385, 6483, 1847, 92, 13, 288, 5411, 604, 394, 670, 879, 3565, 335, 503, 12, 4669, 92, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14022, 4678, 336, 4678, 1265, 4522, 12, 6385, 514, 7578, 13, 288, 202, 202, 11231, 3678, 2932, 588, 4678, 1265, 4522, 12, 780, 2225, 1769, 202, 202, 11231, 3678, 1253, 2932, 588, 4678, 1265, 4522, 12, 780, 2225, 1769, 202, 202, 4901, 18, 1330, 3092, 2932, 2827, 461, 3113, 7578, 1769, 202, 202, 698, 288, 5411, 727, 2144, 460, 273, 12168, 18, 588, 1702, 12, 2827, 461, 1769, 5411, 327, 12168, 18, 17416, 2041, 1435, 692, 446, 294, 14022, 4678, 18, 2080, 548, 12, 1132, 1769, 202, 202, 97, 1044, 261, 6385, 6483, 1847, 92, 13, 288, 5411, 604, 394, 670, 879, 3565, 335, 503, 12, 4669, 92, 1769, 202, 202, 97, 202, 97, 2, -100, -100 ]
public org.quickfix.field.AggregatedBook getAggregatedBook() throws FieldNotFound { org.quickfix.field.AggregatedBook value = new org.quickfix.field.AggregatedBook();
public quickfix.field.AggregatedBook getAggregatedBook() throws FieldNotFound { quickfix.field.AggregatedBook value = new quickfix.field.AggregatedBook();
public org.quickfix.field.AggregatedBook getAggregatedBook() throws FieldNotFound { org.quickfix.field.AggregatedBook value = new org.quickfix.field.AggregatedBook(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/buggy/src/java/src/quickfix/fix42/MarketDataRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 336, 6078, 690, 9084, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 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, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 336, 6078, 690, 9084, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 6078, 690, 9084, 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, -100, -100, -100, -100 ]
log.entering(this.getClass().getName(), "containsCertPath", alias);
if (Configuration.DEBUG) log.entering(this.getClass().getName(), "containsCertPath", alias);
public boolean containsCertPath(String alias) { log.entering(this.getClass().getName(), "containsCertPath", alias); boolean result = false; if (containsAlias(alias)) for (Iterator it = get(alias).iterator(); it.hasNext();) if (it.next() instanceof CertPathEntry) { result = true; break; } log.exiting(this.getClass().getName(), "containsCertPath", Boolean.valueOf(result)); return result; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/GnuPrivateKeyring.java/clean/gnu/javax/crypto/keyring/GnuPrivateKeyring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1914, 5461, 743, 12, 780, 2308, 13, 225, 288, 565, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 12298, 5461, 743, 3113, 2308, 1769, 565, 1250, 563, 273, 629, 31, 565, 309, 261, 12298, 2936, 12, 4930, 3719, 1377, 364, 261, 3198, 518, 273, 336, 12, 4930, 2934, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 3639, 309, 261, 305, 18, 4285, 1435, 1276, 11921, 743, 1622, 13, 1850, 288, 5411, 563, 273, 638, 31, 5411, 898, 31, 1850, 289, 565, 613, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 12298, 5461, 743, 3113, 7734, 3411, 18, 1132, 951, 12, 2088, 10019, 565, 327, 563, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1914, 5461, 743, 12, 780, 2308, 13, 225, 288, 565, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 12298, 5461, 743, 3113, 2308, 1769, 565, 1250, 563, 273, 629, 31, 565, 309, 261, 12298, 2936, 12, 4930, 3719, 1377, 364, 261, 3198, 518, 273, 336, 12, 4930, 2934, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 3639, 309, 261, 305, 18, 4285, 1435, 1276, 11921, 743, 1622, 13, 1850, 288, 5411, 563, 273, 638, 31, 5411, 898, 31, 1850, 289, 565, 613, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 12298, 5461, 743, 3113, 7734, 3411, 18, 1132, 951, 12, 2088, 2 ]
reportSchemaError("src-redefine.5", null, child);
reportSchemaError("src-redefine.5.a.c", new Object[]{grandKidName, (currSchema.fTargetNamespace==null?"":currSchema.fTargetNamespace) + "," + oldName}, child);
private void renameRedefiningComponents(XSDocumentInfo currSchema, Element child, String componentType, String oldName, String newName) { if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { String grandKidName = grandKid.getLocalName(); if (grandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); grandKidName = grandKid.getLocalName(); } if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else if (!grandKidName.equals(SchemaSymbols.ELT_RESTRICTION)) { reportSchemaError("src-redefine.5", null, child); } else { Object[] attrs = fAttributeChecker.checkAttributes(grandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5", null, child); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) grandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else grandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } fAttributeChecker.returnAttrArray(attrs, currSchema); } } } else if (componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { if (grandKid.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); } if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { // have to go one more level down; let another pass worry whether complexType is valid. Element greatGrandKid = DOMUtil.getFirstChildElement(grandKid); if (greatGrandKid == null) { reportSchemaError("src-redefine.5", null, grandKid); } else { String greatGrandKidName = greatGrandKid.getLocalName(); if (greatGrandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { greatGrandKid = DOMUtil.getNextSiblingElement(greatGrandKid); greatGrandKidName = greatGrandKid.getLocalName(); } if (greatGrandKid == null) { reportSchemaError("src-redefine.5", null, grandKid); } else if (!greatGrandKidName.equals(SchemaSymbols.ELT_RESTRICTION) && !greatGrandKidName.equals(SchemaSymbols.ELT_EXTENSION)) { reportSchemaError("src-redefine.5", null, greatGrandKid); } else { Object[] attrs = fAttributeChecker.checkAttributes(greatGrandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5", null, greatGrandKid); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } } } } } } else if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int attGroupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (attGroupRefsCount > 1) { reportSchemaError("src-redefine.7.1", new Object []{new Integer(attGroupRefsCount)}, child); } else if (attGroupRefsCount == 1) {// return true; } else if (currSchema.fTargetNamespace == null) fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int groupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (groupRefsCount > 1) { reportSchemaError("src-redefine.6.1.1", new Object []{new Integer(groupRefsCount)}, child); } else if (groupRefsCount == 1) {// return true; } else { if (currSchema.fTargetNamespace == null) fRedefinedRestrictedGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } } else { reportSchemaError("Internal-Error", new Object [] {"could not handle this particular <redefine>; please submit your schemas and instance document in a bug report!"}, child); } // if we get here then we must have reported an error and failed somewhere...// return false; } // renameRedefiningComponents(XSDocumentInfo, Element, String, String, String):void
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b8632d1162b8572ec5348c474617947ba89f7bff/XSDHandler.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6472, 426, 5649, 310, 7171, 12, 60, 55, 2519, 966, 4306, 3078, 16, 4766, 5411, 3010, 1151, 16, 514, 20065, 16, 4766, 5411, 514, 22916, 16, 514, 13253, 13, 288, 3639, 309, 261, 4652, 559, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 31669, 900, 2399, 3719, 288, 5411, 3010, 16225, 47, 350, 273, 4703, 1304, 18, 588, 3759, 1763, 1046, 12, 3624, 1769, 5411, 309, 261, 3197, 464, 47, 350, 422, 446, 13, 288, 7734, 2605, 3078, 668, 2932, 4816, 17, 266, 11255, 18, 25, 18, 69, 18, 71, 3113, 394, 1033, 63, 7073, 3197, 464, 47, 350, 461, 16, 261, 17016, 3078, 18, 74, 2326, 3402, 631, 2011, 35, 3660, 30, 17016, 3078, 18, 74, 2326, 3402, 13, 397, 5753, 397, 22916, 5779, 1151, 1769, 5411, 289, 5411, 469, 288, 7734, 514, 16225, 47, 350, 461, 273, 16225, 47, 350, 18, 588, 29583, 5621, 7734, 309, 261, 3197, 464, 47, 350, 461, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 24922, 3719, 288, 10792, 16225, 47, 350, 273, 4703, 1304, 18, 588, 2134, 10291, 1046, 12, 3197, 464, 47, 350, 1769, 10792, 16225, 47, 350, 461, 273, 16225, 47, 350, 18, 588, 29583, 5621, 7734, 289, 7734, 309, 261, 3197, 464, 47, 350, 422, 446, 13, 288, 10792, 2605, 3078, 668, 2932, 4816, 17, 266, 11255, 18, 25, 18, 69, 18, 71, 3113, 394, 1033, 63, 7073, 3197, 464, 47, 350, 461, 16, 261, 17016, 3078, 18, 74, 2326, 3402, 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, 6472, 426, 5649, 310, 7171, 12, 60, 55, 2519, 966, 4306, 3078, 16, 4766, 5411, 3010, 1151, 16, 514, 20065, 16, 4766, 5411, 514, 22916, 16, 514, 13253, 13, 288, 3639, 309, 261, 4652, 559, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 31669, 900, 2399, 3719, 288, 5411, 3010, 16225, 47, 350, 273, 4703, 1304, 18, 588, 3759, 1763, 1046, 12, 3624, 1769, 5411, 309, 261, 3197, 464, 47, 350, 422, 446, 13, 288, 7734, 2605, 3078, 668, 2932, 4816, 17, 266, 11255, 18, 25, 18, 69, 18, 71, 3113, 394, 1033, 63, 7073, 3197, 464, 47, 350, 461, 16, 261, 17016, 3078, 18, 74, 2326, 3402, 631, 2011, 35, 3660, 30, 17016, 3078, 2 ]
return m_paramElementIndex; }
return m_paramElementIndex; }
public String getParamElementIndex() { return m_paramElementIndex; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/74fc3da21059be07a47379a54b262ea47b2dce6d/CmsWidgetDialog.java/clean/src/org/opencms/workplace/CmsWidgetDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 9027, 1046, 1016, 1435, 288, 3639, 327, 312, 67, 891, 1046, 1016, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 9027, 1046, 1016, 1435, 288, 3639, 327, 312, 67, 891, 1046, 1016, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (name != null && http_equiv == null) {
if ((name != null) && (http_equiv == null)) {
Hashtable sanitizeHash( Hashtable h, ParsedTag p, HTMLParseContext pc) throws DataFilterException { Hashtable hn = super.sanitizeHash(h, p, pc); /* * Several possibilities: a) meta http-equiv=X content=Y b) meta * name=X content=Y */ String http_equiv = getHashString(h, "http-equiv"); String name = getHashString(h, "name"); String content = getHashString(h, "content"); String scheme = getHashString(h, "scheme"); Logger.minor(this, "meta: name="+name+", content="+content+", http-equiv="+http_equiv+", scheme="+scheme); if (content != null) { if (name != null && http_equiv == null) { if (name.equalsIgnoreCase("Author")) { hn.put("name", name); hn.put("content", content); } else if (name.equalsIgnoreCase("Keywords")) { hn.put("name", name); hn.put("content", content); } else if (name.equalsIgnoreCase("Description")) { hn.put("name", name); hn.put("content", content); } } else if (http_equiv != null && name == null) { if (http_equiv.equalsIgnoreCase("Expires")) { hn.put("http-equiv", http_equiv); hn.put("content", content); } else if ( http_equiv.equalsIgnoreCase("Content-Script-Type")) { // We don't support script at this time. } else if ( http_equiv.equalsIgnoreCase("Content-Style-Type")) { // FIXME: charsets if (content.equalsIgnoreCase("text/css")) { // FIXME: selectable style languages - only matters // when we have implemented more than one // FIXME: if we ever do allow it... the spec // http://www.w3.org/TR/html4/present/styles.html#h-14.2.1 // says only the last definition counts... // but it only counts if it's in the HEAD section, // so we DONT need to parse the whole doc hn.put("http-equiv", http_equiv); hn.put("content", content); } // FIXME: add some more headers - Dublin Core? } else if (http_equiv.equalsIgnoreCase("Content-Type")) { Logger.minor(this, "Found http-equiv content-type="+content); String[] typesplit = splitType(content); for(int i=0;i<typesplit.length;i++) Logger.minor(this, "["+i+"] = "+typesplit[i]); if (typesplit[0].equalsIgnoreCase("text/html") && (typesplit[1] == null || typesplit[1].equalsIgnoreCase(pc.charset))) { hn.put("http-equiv", http_equiv); hn.put( "content", typesplit[0] + (typesplit[1] != null ? "; charset=" + typesplit[1] : "")); } if(typesplit[1] != null) pc.detectedCharset = typesplit[1].trim(); } else if ( http_equiv.equalsIgnoreCase("Content-Language")) { hn.put("http-equiv", "Content-Language"); hn.put("content", content); } } } if (hn.isEmpty()) return null; return hn; }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTMLFilter.java/clean/src/freenet/clients/http/filter/HTMLFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 5582, 14544, 8881, 2310, 12, 1082, 202, 5582, 14544, 366, 16, 1082, 202, 11257, 1805, 293, 16, 1082, 202, 4870, 3201, 1042, 6125, 13, 1216, 1910, 1586, 503, 288, 1082, 202, 5582, 14544, 366, 82, 273, 2240, 18, 20266, 2310, 12, 76, 16, 293, 16, 6125, 1769, 1082, 202, 20308, 9506, 380, 3265, 502, 287, 28550, 30, 279, 13, 2191, 1062, 17, 14298, 427, 33, 60, 913, 33, 61, 324, 13, 2191, 9506, 380, 508, 33, 60, 913, 33, 61, 9506, 1195, 1082, 202, 780, 1062, 67, 14298, 427, 273, 16075, 780, 12, 76, 16, 315, 2505, 17, 14298, 427, 8863, 1082, 202, 780, 508, 273, 16075, 780, 12, 76, 16, 315, 529, 8863, 1082, 202, 780, 913, 273, 16075, 780, 12, 76, 16, 315, 1745, 8863, 1082, 202, 780, 4355, 273, 16075, 780, 12, 76, 16, 315, 9068, 8863, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3901, 30, 508, 1546, 15, 529, 15, 3113, 913, 1546, 15, 1745, 15, 3113, 1062, 17, 14298, 427, 1546, 15, 2505, 67, 14298, 427, 15, 3113, 4355, 1546, 15, 9068, 1769, 1082, 202, 430, 261, 1745, 480, 446, 13, 288, 9506, 202, 430, 261, 529, 480, 446, 597, 1062, 67, 14298, 427, 422, 446, 13, 288, 6862, 202, 430, 261, 529, 18, 14963, 5556, 2932, 3594, 6, 3719, 288, 25083, 202, 76, 82, 18, 458, 2932, 529, 3113, 508, 1769, 25083, 202, 76, 82, 18, 458, 2932, 1745, 3113, 913, 1769, 6862, 202, 97, 469, 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, 3196, 202, 5582, 14544, 8881, 2310, 12, 1082, 202, 5582, 14544, 366, 16, 1082, 202, 11257, 1805, 293, 16, 1082, 202, 4870, 3201, 1042, 6125, 13, 1216, 1910, 1586, 503, 288, 1082, 202, 5582, 14544, 366, 82, 273, 2240, 18, 20266, 2310, 12, 76, 16, 293, 16, 6125, 1769, 1082, 202, 20308, 9506, 380, 3265, 502, 287, 28550, 30, 279, 13, 2191, 1062, 17, 14298, 427, 33, 60, 913, 33, 61, 324, 13, 2191, 9506, 380, 508, 33, 60, 913, 33, 61, 9506, 1195, 1082, 202, 780, 1062, 67, 14298, 427, 273, 16075, 780, 12, 76, 16, 315, 2505, 17, 14298, 427, 8863, 1082, 202, 780, 508, 273, 16075, 780, 12, 76, 16, 315, 529, 8863, 1082, 202, 780, 2 ]
sqlStr = "insert into frameset_docs(meta_id,frame_set)\n"; sqlStr += "values(" + meta_id + ",'" + doc.getString( "frame_set" ) + "')";
sqlStr = "insert into frameset_docs(meta_id,frame_set)\n"; sqlStr += "values(" + meta_id + ",'" + doc.getString( "frame_set" ) + "')";
public void saveNewFrameset( int meta_id, User user, imcode.server.Table doc ) { String sqlStr = ""; // create a db connection an get meta data DBConnect dbc = new DBConnect( m_conPool ); dbc.getConnection(); // create new url doc sqlStr = "insert into frameset_docs(meta_id,frame_set)\n"; sqlStr += "values(" + meta_id + ",'" + doc.getString( "frame_set" ) + "')"; dbc.setSQLString( sqlStr ); dbc.createStatement(); dbc.executeUpdateQuery(); // close connection dbc.closeConnection(); dbc = null; this.activateChild( meta_id, user ); this.updateLogs( "FramesetDoc [" + meta_id + "] created by user: [" + user.getFullName() + "]" ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b8ca505bb7abac1b4914c5928bf113f742f3bbb/IMCService.java/buggy/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1923, 1908, 15162, 278, 12, 509, 2191, 67, 350, 16, 2177, 729, 16, 709, 710, 18, 3567, 18, 1388, 997, 262, 288, 1377, 514, 1847, 1585, 273, 1408, 31, 1377, 368, 752, 279, 1319, 1459, 392, 336, 2191, 501, 1377, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 312, 67, 591, 2864, 11272, 1377, 9881, 18, 588, 1952, 5621, 1377, 368, 752, 394, 880, 997, 1377, 1847, 1585, 273, 315, 6387, 1368, 7793, 278, 67, 8532, 12, 3901, 67, 350, 16, 3789, 67, 542, 5153, 82, 14432, 1377, 1847, 1585, 1011, 315, 2372, 2932, 397, 2191, 67, 350, 397, 3104, 4970, 397, 997, 18, 588, 780, 12, 315, 3789, 67, 542, 6, 262, 397, 2491, 2225, 31, 1377, 9881, 18, 542, 3997, 780, 12, 1847, 1585, 11272, 1377, 9881, 18, 2640, 3406, 5621, 1377, 9881, 18, 8837, 1891, 1138, 5621, 1377, 368, 1746, 1459, 1377, 9881, 18, 4412, 1952, 5621, 1377, 9881, 273, 446, 31, 1377, 333, 18, 10014, 1763, 12, 2191, 67, 350, 16, 729, 11272, 1377, 333, 18, 2725, 7777, 12, 315, 15162, 278, 1759, 8247, 397, 2191, 67, 350, 397, 9850, 2522, 635, 729, 30, 8247, 397, 729, 18, 588, 19223, 1435, 397, 9870, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1923, 1908, 15162, 278, 12, 509, 2191, 67, 350, 16, 2177, 729, 16, 709, 710, 18, 3567, 18, 1388, 997, 262, 288, 1377, 514, 1847, 1585, 273, 1408, 31, 1377, 368, 752, 279, 1319, 1459, 392, 336, 2191, 501, 1377, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 312, 67, 591, 2864, 11272, 1377, 9881, 18, 588, 1952, 5621, 1377, 368, 752, 394, 880, 997, 1377, 1847, 1585, 273, 315, 6387, 1368, 7793, 278, 67, 8532, 12, 3901, 67, 350, 16, 3789, 67, 542, 5153, 82, 14432, 1377, 1847, 1585, 1011, 315, 2372, 2932, 397, 2191, 67, 350, 397, 3104, 4970, 397, 997, 18, 588, 780, 12, 315, 3789, 67, 542, 6, 262, 397, 2491, 2225, 2 ]
Log.logln(SHOW_ALL, commentStack + " comment " + new String(ch, start,length));
Log.logln(LOG_PROGRESS, commentStack + " comment " + new String(ch, start,length));
public void comment(char[] ch, int start, int length) throws SAXException { Log.logln(SHOW_ALL, commentStack + " comment " + new String(ch, start,length)); try { if (commentStack != 0) return; String comment0 = new String(ch, start,length); if (lastActiveLeafNode != null) { target.addComment(lastActiveLeafNode, comment0, XPathParts.Comments.LINE); } else { comment = (comment == null ? comment0 : comment + XPathParts.NEWLINE + comment0); } } catch (RuntimeException e) { e.printStackTrace(); throw e; } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/2de7a3aa226ade8a236bedbedb9d88137ed9cba0/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2879, 12, 3001, 8526, 462, 16, 509, 787, 16, 509, 769, 13, 1216, 14366, 288, 5411, 1827, 18, 1330, 2370, 12, 4842, 67, 24022, 16, 2879, 2624, 397, 315, 2879, 315, 397, 394, 514, 12, 343, 16, 787, 16, 2469, 10019, 5411, 775, 288, 9506, 202, 430, 261, 3469, 2624, 480, 374, 13, 327, 31, 9506, 202, 780, 2879, 20, 273, 394, 514, 12, 343, 16, 787, 16, 2469, 1769, 9506, 202, 430, 261, 2722, 3896, 16545, 480, 446, 13, 288, 6862, 202, 3299, 18, 1289, 4469, 12, 2722, 3896, 16545, 16, 2879, 20, 16, 10172, 4305, 18, 9051, 18, 5997, 1769, 9506, 202, 97, 469, 288, 6862, 202, 3469, 273, 261, 3469, 422, 446, 692, 2879, 20, 294, 2879, 397, 10172, 4305, 18, 12917, 5997, 397, 2879, 20, 1769, 9506, 202, 97, 1082, 202, 97, 1044, 261, 11949, 425, 13, 288, 7734, 425, 18, 1188, 6332, 5621, 7734, 604, 425, 31, 1082, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 2879, 12, 3001, 8526, 462, 16, 509, 787, 16, 509, 769, 13, 1216, 14366, 288, 5411, 1827, 18, 1330, 2370, 12, 4842, 67, 24022, 16, 2879, 2624, 397, 315, 2879, 315, 397, 394, 514, 12, 343, 16, 787, 16, 2469, 10019, 5411, 775, 288, 9506, 202, 430, 261, 3469, 2624, 480, 374, 13, 327, 31, 9506, 202, 780, 2879, 20, 273, 394, 514, 12, 343, 16, 787, 16, 2469, 1769, 9506, 202, 430, 261, 2722, 3896, 16545, 480, 446, 13, 288, 6862, 202, 3299, 18, 1289, 4469, 12, 2722, 3896, 16545, 16, 2879, 20, 16, 10172, 4305, 18, 9051, 18, 5997, 1769, 9506, 202, 97, 469, 288, 6862, 202, 3469, 273, 261, 3469, 422, 446, 692, 2 ]
rete );
rete, 3);
public void testQueryTerminalNode() { final ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase(); final Rete rete = ruleBase.getRete(); final ClassObjectType queryObjectType = new ClassObjectType( DroolsQuery.class ); final ObjectTypeNode queryObjectTypeNode = new ObjectTypeNode( 1, queryObjectType, rete ); queryObjectTypeNode.attach(); ClassFieldExtractor extractor = new ClassFieldExtractor( DroolsQuery.class, "name" ); FieldValue field = new MockField( "query-1" ); final Evaluator evaluator = ValueType.STRING_TYPE.getEvaluator( Operator.EQUAL ); LiteralConstraint constraint = new LiteralConstraint( extractor, evaluator, field ); AlphaNode alphaNode = new AlphaNode( 2, constraint, queryObjectTypeNode ); alphaNode.attach(); final LeftInputAdapterNode liaNode = new LeftInputAdapterNode( 3, alphaNode ); liaNode.attach(); final ClassObjectType cheeseObjectType = new ClassObjectType( Cheese.class ); final ObjectTypeNode cheeseObjectTypeNode = new ObjectTypeNode( 4, cheeseObjectType, rete ); cheeseObjectTypeNode.attach(); extractor = new ClassFieldExtractor( Cheese.class, "type" ); field = new MockField( "stilton" ); constraint = new LiteralConstraint( extractor, evaluator, field ); alphaNode = new AlphaNode( 5, constraint, cheeseObjectTypeNode ); alphaNode.attach(); final JoinNode joinNode = new JoinNode( 6, liaNode, alphaNode ); joinNode.attach(); final Query query = new Query( "query-1" ); final QueryTerminalNode queryNode = new QueryTerminalNode( 7, joinNode, query ); queryNode.attach(); final WorkingMemory workingMemory = ruleBase.newWorkingMemory(); QueryResults results = workingMemory.getQueryResults( "query-1" ); assertNull( results ); final Cheese stilton1 = new Cheese( "stilton", 100 ); final FactHandle handle1 = workingMemory.assertObject( stilton1 ); results = workingMemory.getQueryResults( "query-1" ); assertEquals( 1, results.size() ); final Cheese cheddar = new Cheese( "cheddar", 55 ); workingMemory.assertObject( cheddar ); results = workingMemory.getQueryResults( "query-1" ); assertEquals( 1, results.size() ); final Cheese stilton2 = new Cheese( "stilton", 5 ); final FactHandle handle2 = workingMemory.assertObject( stilton2 ); results = workingMemory.getQueryResults( "query-1" ); assertEquals( 2, results.size() ); QueryResult result = results.get( 0 ); assertEquals( 1, result.size() ); assertSame( stilton1, result.get( 0 ) ); result = results.get( 1 ); assertEquals( 1, result.size() ); assertSame( stilton2, result.get( 0 ) ); int i = 0; for ( final Iterator it = results.iterator(); it.hasNext(); ) { result = (QueryResult) it.next(); assertEquals( 1, result.size() ); if ( i == 0 ) { assertSame( stilton1, result.get( 0 ) ); } else { assertSame( stilton2, result.get( 0 ) ); } i++; } workingMemory.retractObject( handle1 ); results = workingMemory.getQueryResults( "query-1" ); assertEquals( 1, results.size() ); workingMemory.retractObject( handle2 ); results = workingMemory.getQueryResults( "query-1" ); assertNull( results ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/47fb4db33a78ddc4cbf4c3f1ffb0a0e7f1ca2109/QueryTerminalNodeTest.java/clean/drools-core/src/test/java/org/drools/reteoo/QueryTerminalNodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1138, 11336, 907, 1435, 288, 3639, 727, 17100, 4361, 83, 2175, 2171, 1720, 2171, 273, 261, 7055, 4361, 83, 2175, 2171, 13, 6781, 2171, 1733, 18, 2704, 2175, 2171, 5621, 3639, 727, 534, 12865, 325, 73, 273, 1720, 2171, 18, 588, 7055, 73, 5621, 3639, 727, 1659, 17610, 843, 17610, 273, 394, 1659, 17610, 12, 22067, 1138, 18, 1106, 11272, 3639, 727, 21338, 907, 843, 17610, 907, 273, 394, 21338, 907, 12, 404, 16, 28524, 4202, 843, 17610, 16, 28524, 4202, 325, 73, 16, 890, 1769, 3639, 843, 17610, 907, 18, 7331, 5621, 3639, 1659, 974, 10958, 14031, 273, 394, 1659, 974, 10958, 12, 22067, 1138, 18, 1106, 16, 28524, 315, 529, 6, 11272, 3639, 2286, 620, 652, 273, 394, 7867, 974, 12, 315, 2271, 17, 21, 6, 11272, 3639, 727, 31956, 18256, 273, 31718, 18, 5804, 67, 2399, 18, 588, 15876, 12, 11097, 18, 12853, 11272, 3639, 14392, 5806, 4954, 273, 394, 14392, 5806, 12, 14031, 16, 4766, 17311, 18256, 16, 4766, 17311, 652, 11272, 3639, 24277, 907, 4190, 907, 273, 394, 24277, 907, 12, 576, 16, 4766, 2398, 4954, 16, 4766, 2398, 843, 17610, 907, 11272, 3639, 4190, 907, 18, 7331, 5621, 3639, 727, 13338, 1210, 4216, 907, 328, 1155, 907, 273, 394, 13338, 1210, 4216, 907, 12, 890, 16, 28524, 4202, 4190, 907, 11272, 3639, 328, 1155, 907, 18, 7331, 5621, 3639, 727, 1659, 17610, 19315, 3392, 17610, 273, 394, 1659, 17610, 12, 22682, 3392, 18, 1106, 11272, 3639, 727, 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, 1138, 11336, 907, 1435, 288, 3639, 727, 17100, 4361, 83, 2175, 2171, 1720, 2171, 273, 261, 7055, 4361, 83, 2175, 2171, 13, 6781, 2171, 1733, 18, 2704, 2175, 2171, 5621, 3639, 727, 534, 12865, 325, 73, 273, 1720, 2171, 18, 588, 7055, 73, 5621, 3639, 727, 1659, 17610, 843, 17610, 273, 394, 1659, 17610, 12, 22067, 1138, 18, 1106, 11272, 3639, 727, 21338, 907, 843, 17610, 907, 273, 394, 21338, 907, 12, 404, 16, 28524, 4202, 843, 17610, 16, 28524, 4202, 325, 73, 16, 890, 1769, 3639, 843, 17610, 907, 18, 7331, 5621, 3639, 1659, 974, 10958, 14031, 273, 394, 1659, 974, 10958, 12, 22067, 1138, 18, 1106, 16, 28524, 315, 529, 6, 11272, 3639, 2 ]
int index = hpm.getCurrentIndex();
Offset index = hpm.getCurrentIndex();
public void notifyExit(int value) { if (VM_HardwarePerformanceMonitors.trace) { if(VM_HardwarePerformanceMonitors.verbose>=2) { VM.sysWriteln("VM_TraceWriter.notifyExit(",value,") PID ",pid); } if (trace_file == null) { VM.sysWriteln("\n***VM_TraceWriter.notifyExit() PID ",pid," trace_file == null! notifyStartup never called!***\n"); VM.sysExit(-1); } // Only called once from producer when notify exit occurs. // Flush current buffer hpm.passivate(); byte[] buffer = hpm.getCurrentBuffer(); int index = hpm.getCurrentIndex(); writeFileOutputStream(buffer, index); // write Exit record index = 0; byte[] buffer2 = new byte[10]; VM_Magic.setIntAtOffset( buffer2, index, VM_HardwarePerformanceMonitor.EXIT_FORMAT);// format index += VM_HardwarePerformanceMonitors.SIZE_OF_INT; VM_Magic.setIntAtOffset( buffer2, index, value); // value index += VM_HardwarePerformanceMonitors.SIZE_OF_INT; writeFileOutputStream(buffer2, index); if (VM_HardwarePerformanceMonitors.verbose>=3) { VM.sysWrite ("VM_TraceWriter.notifyExit("); VM.sysWrite (") n_records ",hpm.numberOfRecords()+1); VM.sysWriteln(", missed ",hpm.missedRecords()); } closeFileOutputStream(); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_TraceWriter.java/buggy/rvm/src/vm/HPM/VM_TraceWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5066, 6767, 12, 474, 460, 13, 225, 288, 565, 309, 261, 7397, 67, 44, 14519, 25024, 11415, 13704, 18, 5129, 13, 288, 1377, 309, 12, 7397, 67, 44, 14519, 25024, 11415, 13704, 18, 11369, 34, 33, 22, 13, 288, 540, 8251, 18, 9499, 4913, 292, 82, 2932, 7397, 67, 3448, 2289, 18, 12336, 6767, 2932, 16, 1132, 16, 7923, 14788, 3104, 6610, 1769, 4202, 289, 1377, 309, 261, 5129, 67, 768, 422, 446, 13, 288, 3639, 8251, 18, 9499, 4913, 292, 82, 31458, 82, 14465, 7397, 67, 3448, 2289, 18, 12336, 6767, 1435, 14788, 3104, 6610, 10837, 2606, 67, 768, 422, 446, 5, 5066, 22178, 5903, 2566, 5, 636, 12174, 82, 8863, 3639, 8251, 18, 9499, 6767, 19236, 21, 1769, 1377, 289, 1377, 368, 5098, 2566, 3647, 628, 12608, 1347, 5066, 2427, 9938, 18, 1377, 368, 11624, 783, 1613, 1377, 366, 7755, 18, 5466, 954, 5621, 1377, 1160, 8526, 1613, 273, 366, 7755, 18, 588, 3935, 1892, 5621, 1377, 9874, 770, 225, 273, 366, 7755, 18, 588, 3935, 1016, 5621, 1377, 13286, 4632, 12, 4106, 16, 770, 1769, 1377, 368, 1045, 9500, 1409, 1377, 770, 273, 374, 31, 1377, 1160, 8526, 1613, 22, 273, 394, 1160, 63, 2163, 15533, 1377, 8251, 67, 19289, 18, 542, 1702, 861, 2335, 12, 1613, 22, 16, 770, 16, 8251, 67, 44, 14519, 25024, 7187, 18, 28682, 67, 7254, 1769, 759, 740, 1377, 770, 1011, 8251, 67, 44, 14519, 25024, 11415, 13704, 18, 4574, 67, 3932, 67, 3217, 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, 282, 1071, 918, 5066, 6767, 12, 474, 460, 13, 225, 288, 565, 309, 261, 7397, 67, 44, 14519, 25024, 11415, 13704, 18, 5129, 13, 288, 1377, 309, 12, 7397, 67, 44, 14519, 25024, 11415, 13704, 18, 11369, 34, 33, 22, 13, 288, 540, 8251, 18, 9499, 4913, 292, 82, 2932, 7397, 67, 3448, 2289, 18, 12336, 6767, 2932, 16, 1132, 16, 7923, 14788, 3104, 6610, 1769, 4202, 289, 1377, 309, 261, 5129, 67, 768, 422, 446, 13, 288, 3639, 8251, 18, 9499, 4913, 292, 82, 31458, 82, 14465, 7397, 67, 3448, 2289, 18, 12336, 6767, 1435, 14788, 3104, 6610, 10837, 2606, 67, 768, 422, 446, 5, 5066, 22178, 5903, 2566, 5, 636, 12174, 82, 8863, 3639, 8251, 18, 9499, 2 ]
if (isFilteredNode(node)) { log.debug("Cannot to access resource based on a filtered repository item: " + locator.getResourcePath()); throw new DavException(DavServletResponse.SC_FORBIDDEN); }
private void init(Item repositoryItem) throws RepositoryException { if (repositoryItem == null || !repositoryItem.isNode()) { return; } node = (Node)repositoryItem; // define what is a resource in webdav if (node.isNodeType(NT_RESOURCE) || node.isNodeType(NT_FILE)) { isCollection = false; } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/3c55cd18eaa2fbbf6a8a0c5c530fb3173a943176/DavResourceImpl.java/clean/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 3238, 430, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 918, 430, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 397, 8871, 18, 588, 29906, 10663, 604, 394, 463, 842, 503, 12, 40, 842, 29910, 18, 2312, 67, 7473, 30198, 1769, 289, 309, 261, 291, 14478, 907, 12, 2159, 3719, 288, 613, 18, 4148, 2932, 4515, 358, 2006, 1058, 2511, 603, 279, 5105, 3352, 761, 30, 315, 2 ]
return;
public void update( byte b) throws SignatureException { if (signatureType == PGPSignature.CANONICAL_TEXT_DOCUMENT) { if (b == '\n') { sig.update((byte)'\r'); sig.update((byte)'\n'); dig.update((byte)'\r'); dig.update((byte)'\n'); return; } else if (b == '\r') { return; } } sig.update(b); dig.update(b); }
14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/6348297b84b456e44c72ad80e3c7024fbda300ae/PGPSignatureGenerator.java/buggy/crypto/src/org/bouncycastle/openpgp/PGPSignatureGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 3639, 1160, 565, 324, 13, 540, 1216, 9249, 503, 565, 288, 3639, 309, 261, 8195, 559, 422, 21222, 5374, 18, 39, 1258, 673, 10109, 67, 5151, 67, 18450, 13, 3639, 288, 5411, 309, 261, 70, 422, 2337, 82, 6134, 5411, 288, 7734, 3553, 18, 2725, 12443, 7229, 2506, 64, 86, 8284, 7734, 3553, 18, 2725, 12443, 7229, 2506, 64, 82, 8284, 7734, 3097, 18, 2725, 12443, 7229, 2506, 64, 86, 8284, 7734, 3097, 18, 2725, 12443, 7229, 2506, 64, 82, 8284, 21821, 289, 5411, 469, 309, 261, 70, 422, 2337, 86, 6134, 5411, 288, 21821, 289, 3639, 289, 5411, 3553, 18, 2725, 12, 70, 1769, 3639, 3097, 18, 2725, 12, 70, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 3639, 1160, 565, 324, 13, 540, 1216, 9249, 503, 565, 288, 3639, 309, 261, 8195, 559, 422, 21222, 5374, 18, 39, 1258, 673, 10109, 67, 5151, 67, 18450, 13, 3639, 288, 5411, 309, 261, 70, 422, 2337, 82, 6134, 5411, 288, 7734, 3553, 18, 2725, 12443, 7229, 2506, 64, 86, 8284, 7734, 3553, 18, 2725, 12443, 7229, 2506, 64, 82, 8284, 7734, 3097, 18, 2725, 12443, 7229, 2506, 64, 86, 8284, 7734, 3097, 18, 2725, 12443, 7229, 2506, 64, 82, 8284, 21821, 289, 5411, 469, 309, 261, 70, 422, 2337, 86, 6134, 5411, 288, 21821, 289, 3639, 289, 5411, 3553, 18, 2725, 12, 70, 1769, 3639, 3097, 18, 2725, 12, 70, 1769, 565, 289, 2 ]
url += "TemplateAdmin" ; } else if( whichButton.equalsIgnoreCase("DeleteDocs")) { url += "AdminDeleteDoc" ; } else if( whichButton.equalsIgnoreCase("IP-access")) { url += "AdminIpAccess" ; } else if( whichButton.equalsIgnoreCase("SystemMessage")) { url += "AdminSystemInfo" ; } else if( whichButton.equalsIgnoreCase("AdminRoles")) { url += "AdminRoles" ; } else if( whichButton.equalsIgnoreCase("UrlDocTest")) { url += "UrlDocTest" ; } else if( whichButton.equalsIgnoreCase("MetaAdmin")) { url += "MetaAdmin" ; } else if( whichButton.equalsIgnoreCase("FileAdmin")) { url += "FileAdmin" ; } else if( whichButton.equalsIgnoreCase("ListDocs")) { url += "AdminListDocs" ; } else if( whichButton.equalsIgnoreCase("AdminConference")) { url += "AdminConference" ; } else { this.doGet(req,res) ; return ;
url += "TemplateAdmin" ; } else if( whichButton.equalsIgnoreCase("DeleteDocs")) { url += "AdminDeleteDoc" ; } else if( whichButton.equalsIgnoreCase("IP-access")) { url += "AdminIpAccess" ; } else if( whichButton.equalsIgnoreCase("SystemMessage")) { url += "AdminSystemInfo" ; } else if( whichButton.equalsIgnoreCase("AdminRoles")) { url += "AdminRoles" ; } else if( whichButton.equalsIgnoreCase("UrlDocTest")) { url += "UrlDocTest" ; } else if( whichButton.equalsIgnoreCase("MetaAdmin")) { url += "MetaAdmin" ; } else if( whichButton.equalsIgnoreCase("FileAdmin")) { url += "FileAdmin" ; } else if( whichButton.equalsIgnoreCase("ListDocs")) { url += "AdminListDocs" ; } else if( whichButton.equalsIgnoreCase("AdminConference")) { url += "AdminConference" ; } else { this.doGet(req,res) ; return ;
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets get the parameters and validate them, we dont have any own // parameters so were just validate the metadata String whichButton = req.getParameter("AdminTask") ; this.log("Argument till server:" + whichButton) ; if(whichButton == null) whichButton = "" ; String url = MetaInfo.getServletPath(req) ; if( whichButton.equalsIgnoreCase("UserStart")) { url += "AdminUser" ; } else if( whichButton.equalsIgnoreCase("CounterStart")) { url += "AdminCounter" ; } else if( whichButton.equalsIgnoreCase("AddTemplates")) { url += "TemplateAdmin" ; } else if( whichButton.equalsIgnoreCase("DeleteDocs")) { url += "AdminDeleteDoc" ; } else if( whichButton.equalsIgnoreCase("IP-access")) { url += "AdminIpAccess" ; } else if( whichButton.equalsIgnoreCase("SystemMessage")) { url += "AdminSystemInfo" ; } else if( whichButton.equalsIgnoreCase("AdminRoles")) { url += "AdminRoles" ; } else if( whichButton.equalsIgnoreCase("UrlDocTest")) { url += "UrlDocTest" ; } else if( whichButton.equalsIgnoreCase("MetaAdmin")) { url += "MetaAdmin" ; } else if( whichButton.equalsIgnoreCase("FileAdmin")) { url += "FileAdmin" ; } else if( whichButton.equalsIgnoreCase("ListDocs")) { url += "AdminListDocs" ; } else if( whichButton.equalsIgnoreCase("AdminConference")) { url += "AdminConference" ; } else { // Ok, were came here cause no valid argument was sent to us // Lets send the user back to the Get function. this.doGet(req,res) ; return ; } // Ok, Lets redirect the user to the right adminservlet this.log("redirects + to:" + url) ; res.sendRedirect(url) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/927118092271105a42f7679fadfac8aac6f1c0c6/AdminManager.java/clean/servlets/AdminManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1171, 9079, 1216, 16517, 16, 1860, 288, 3639, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 16, 732, 14046, 1240, 1281, 4953, 565, 368, 1472, 1427, 4591, 2537, 1954, 326, 1982, 26924, 565, 202, 202, 780, 1492, 3616, 273, 1111, 18, 588, 1662, 2932, 4446, 2174, 7923, 274, 202, 202, 2211, 18, 1330, 2932, 1379, 21364, 1438, 2773, 397, 1492, 3616, 13, 274, 1082, 202, 430, 12, 12784, 3616, 422, 446, 13, 202, 12784, 3616, 273, 1408, 274, 9506, 1875, 202, 780, 880, 273, 6565, 966, 18, 588, 4745, 743, 12, 3658, 13, 274, 565, 202, 430, 12, 1492, 3616, 18, 14963, 5556, 2932, 1299, 1685, 6, 3719, 288, 565, 202, 202, 718, 1011, 315, 4446, 1299, 6, 274, 202, 202, 97, 469, 309, 12, 1492, 3616, 18, 14963, 5556, 2932, 4789, 1685, 6, 3719, 288, 377, 1082, 880, 1011, 315, 4446, 4789, 6, 274, 565, 202, 97, 469, 309, 12, 1492, 3616, 18, 14963, 5556, 2932, 986, 8218, 6, 3719, 288, 377, 1082, 202, 718, 1011, 315, 2283, 4446, 6, 274, 202, 202, 97, 469, 309, 12, 1492, 3616, 18, 14963, 5556, 2932, 2613, 12656, 6, 3719, 288, 377, 1082, 202, 718, 1011, 315, 4446, 2613, 1759, 6, 274, 565, 289, 469, 309, 12, 1492, 3616, 18, 14963, 5556, 2932, 2579, 17, 3860, 6, 3719, 288, 377, 202, 225, 880, 1011, 315, 4446, 5273, 1862, 6, 274, 565, 289, 469, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1171, 9079, 1216, 16517, 16, 1860, 288, 3639, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 16, 732, 14046, 1240, 1281, 4953, 565, 368, 1472, 1427, 4591, 2537, 1954, 326, 1982, 26924, 565, 202, 202, 780, 1492, 3616, 273, 1111, 18, 588, 1662, 2932, 4446, 2174, 7923, 274, 202, 202, 2211, 18, 1330, 2932, 1379, 21364, 1438, 2773, 397, 1492, 3616, 13, 274, 1082, 202, 430, 12, 12784, 3616, 422, 446, 13, 202, 12784, 3616, 273, 1408, 274, 9506, 1875, 202, 780, 880, 273, 6565, 966, 18, 588, 4745, 743, 12, 3658, 13, 274, 565, 202, 430, 12, 1492, 3616, 18, 14963, 5556, 2932, 2 ]
"inputHeader.java:1: Missing a header - not enough lines in file.", "inputHeader.java:1: type is missing a Javadoc comment.", "inputHeader.java:1: type name 'inputHeader' must match pattern '^[A-Z][a-zA-Z0-9]*$'."
filepath + ":1: Missing a header - not enough lines in file.", filepath + ":1: type is missing a Javadoc comment.", filepath + ":1: type name 'inputHeader' must match pattern '^[A-Z][a-zA-Z0-9]*$'."
public void testHeader() throws Exception { final Checker c = new Checker(mConfig, mStream); assertNotNull(c); final String[] expected = { "inputHeader.java:1: Missing a header - not enough lines in file.", "inputHeader.java:1: type is missing a Javadoc comment.", "inputHeader.java:1: type name 'inputHeader' must match pattern '^[A-Z][a-zA-Z0-9]*$'." }; verify(c, "inputHeader.java", expected); }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/a6df885ae1a2b681c4d6f739aa190f622c6b4106/CheckerTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1864, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 31577, 276, 273, 394, 31577, 12, 81, 809, 16, 312, 1228, 1769, 3639, 25395, 12, 71, 1769, 3639, 727, 514, 8526, 2665, 273, 288, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 10230, 279, 1446, 300, 486, 7304, 2362, 316, 585, 1199, 16, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 618, 353, 3315, 279, 5195, 2879, 1199, 16, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 618, 508, 296, 2630, 1864, 11, 1297, 845, 1936, 10731, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 9227, 1199, 3639, 289, 31, 3639, 3929, 12, 71, 16, 315, 2630, 1864, 18, 6290, 3113, 2665, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 1864, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 31577, 276, 273, 394, 31577, 12, 81, 809, 16, 312, 1228, 1769, 3639, 25395, 12, 71, 1769, 3639, 727, 514, 8526, 2665, 273, 288, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 10230, 279, 1446, 300, 486, 7304, 2362, 316, 585, 1199, 16, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 618, 353, 3315, 279, 5195, 2879, 1199, 16, 5411, 315, 2630, 1864, 18, 6290, 30, 21, 30, 618, 508, 296, 2630, 1864, 11, 1297, 845, 1936, 10731, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 9227, 1199, 3639, 289, 31, 3639, 3929, 12, 71, 16, 315, 2630, 2 ]
this.user = user;
this.user = (User)getAddonDao().load(user);
public AddUserForm(final String componentName, final FeedbackPanel feedback, final User user) { super(componentName, feedback); this.user = user; add(new TextField("loginname", new PropertyModel(user, "nickname"))); add(new TextField("firstname", new PropertyModel(user, "firstname"))); add(new TextField("lastname", new PropertyModel(user, "lastname"))); add(new TextField("email", new PropertyModel(user, "email"))); add(new PasswordTextField("password", new PropertyModel(user, "password"))); add(new PasswordTextField("confirmPassword", new Model(confirmPassword))); WebMarkupContainer button = new WebMarkupContainer("delete"); add(button); if (user.getId() == 0) { button.setVisible(false); } }
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/87841379e6355c16b64c51009e38367cb6174d08/AddOrModifyUser.java/clean/wicket-library/src/java/wicket/addons/admin/AddOrModifyUser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1436, 1299, 1204, 12, 6385, 514, 20577, 16, 727, 14013, 823, 5537, 10762, 16, 727, 2177, 729, 13, 3639, 288, 5411, 2240, 12, 4652, 461, 16, 10762, 1769, 13491, 333, 18, 1355, 273, 261, 1299, 13, 588, 27901, 11412, 7675, 945, 12, 1355, 1769, 13491, 527, 12, 2704, 26866, 2932, 5819, 529, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 17091, 529, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 26576, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 26576, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 27410, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 27410, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 3652, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 3652, 6, 3719, 1769, 5411, 527, 12, 2704, 9234, 16157, 2932, 3664, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 3664, 6, 3719, 1769, 5411, 527, 12, 2704, 9234, 16157, 2932, 10927, 3913, 3113, 394, 3164, 12, 10927, 3913, 3719, 1769, 13491, 2999, 13111, 2170, 3568, 273, 394, 2999, 13111, 2170, 2932, 3733, 8863, 5411, 527, 12, 5391, 1769, 13491, 309, 261, 1355, 18, 26321, 1435, 422, 374, 13, 5411, 288, 7734, 3568, 18, 542, 6207, 12, 5743, 1769, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1436, 1299, 1204, 12, 6385, 514, 20577, 16, 727, 14013, 823, 5537, 10762, 16, 727, 2177, 729, 13, 3639, 288, 5411, 2240, 12, 4652, 461, 16, 10762, 1769, 13491, 333, 18, 1355, 273, 261, 1299, 13, 588, 27901, 11412, 7675, 945, 12, 1355, 1769, 13491, 527, 12, 2704, 26866, 2932, 5819, 529, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 17091, 529, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 26576, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 26576, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 27410, 3113, 394, 4276, 1488, 12, 1355, 16, 315, 27410, 6, 3719, 1769, 5411, 527, 12, 2704, 26866, 2932, 3652, 3113, 394, 4276, 1488, 12, 1355, 16, 2 ]
* "{Lu}]a>x" masks "A]a>y". To detect these sorts of masking, * we need a subset operator on UnicodeSet objects, which we * currently do not have. This can be added later.
* "{Lu}]a>x" masks "A]a>y". This can be added later. TODO
public boolean masks(TransliterationRule r2) { /* Rule r1 masks rule r2 if the string formed of the * antecontext, key, and postcontext overlaps in the following * way: * * r1: aakkkpppp * r2: aaakkkkkpppp * ^ * * The strings must be aligned at the first character of the * key. The length of r1 to the left of the alignment point * must be <= the length of r2 to the left; ditto for the * right. The characters of r1 must equal (or be a superset * of) the corresponding characters of r2. The superset * operation should be performed to check for UnicodeSet * masking. */ /* LIMITATION of the current mask algorithm: Some rule * maskings are currently not detected. For example, * "{Lu}]a>x" masks "A]a>y". To detect these sorts of masking, * we need a subset operator on UnicodeSet objects, which we * currently do not have. This can be added later. */ int left = anteContextLength; int left2 = r2.anteContextLength; int right = pattern.length() - left; int right2 = r2.pattern.length() - left2; return left <= left2 && right <= right2 && r2.pattern.substring(left2 - left).startsWith(pattern); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/fb7313675a74ddc598ab1297cb71b1fce7e34cff/TransliterationRule.java/clean/icu4j/src/com/ibm/text/TransliterationRule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 20931, 12, 3873, 16108, 2175, 436, 22, 13, 288, 3639, 1748, 6781, 436, 21, 20931, 1720, 436, 22, 309, 326, 533, 20010, 434, 326, 540, 380, 392, 14537, 265, 955, 16, 498, 16, 471, 1603, 2472, 19582, 316, 326, 3751, 540, 380, 4031, 30, 540, 380, 540, 380, 436, 21, 30, 1377, 279, 581, 79, 79, 11858, 11858, 540, 380, 436, 22, 30, 377, 12391, 581, 79, 79, 79, 79, 11858, 11858, 540, 380, 5411, 3602, 540, 380, 1850, 380, 1021, 2064, 1297, 506, 13939, 622, 326, 1122, 3351, 434, 326, 540, 380, 498, 18, 225, 1021, 769, 434, 436, 21, 358, 326, 2002, 434, 326, 8710, 1634, 540, 380, 1297, 506, 1648, 326, 769, 434, 436, 22, 358, 326, 2002, 31, 302, 305, 869, 364, 326, 540, 380, 2145, 18, 225, 1021, 3949, 434, 436, 21, 1297, 3959, 261, 280, 506, 279, 1169, 21686, 540, 380, 434, 13, 326, 4656, 3949, 434, 436, 22, 18, 225, 1021, 1169, 21686, 540, 380, 1674, 1410, 506, 9591, 358, 866, 364, 9633, 694, 540, 380, 3066, 310, 18, 540, 1195, 3639, 1748, 13319, 2689, 434, 326, 783, 3066, 4886, 30, 10548, 1720, 540, 380, 3066, 899, 854, 4551, 486, 8316, 18, 225, 2457, 3454, 16, 540, 380, 4144, 48, 89, 11839, 69, 34, 92, 6, 20931, 315, 37, 65, 69, 34, 93, 9654, 225, 2974, 5966, 4259, 18524, 434, 3066, 310, 16, 540, 380, 732, 1608, 279, 7931, 3726, 603, 9633, 694, 2184, 16, 1492, 732, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 20931, 12, 3873, 16108, 2175, 436, 22, 13, 288, 3639, 1748, 6781, 436, 21, 20931, 1720, 436, 22, 309, 326, 533, 20010, 434, 326, 540, 380, 392, 14537, 265, 955, 16, 498, 16, 471, 1603, 2472, 19582, 316, 326, 3751, 540, 380, 4031, 30, 540, 380, 540, 380, 436, 21, 30, 1377, 279, 581, 79, 79, 11858, 11858, 540, 380, 436, 22, 30, 377, 12391, 581, 79, 79, 79, 79, 11858, 11858, 540, 380, 5411, 3602, 540, 380, 1850, 380, 1021, 2064, 1297, 506, 13939, 622, 326, 1122, 3351, 434, 326, 540, 380, 498, 18, 225, 1021, 769, 434, 436, 21, 358, 326, 2002, 434, 326, 8710, 1634, 540, 380, 1297, 506, 1648, 326, 769, 434, 2 ]