rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
if (layoutMgr != null) layoutMgr.removeLayoutComponent(r);
if (layoutMgr != null) layoutMgr.removeLayoutComponent(r);
public void remove(int index) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); // Post event to notify of adding the container. ContainerEvent ce = new ContainerEvent(this, ContainerEvent.COMPONENT_REMOVED, r); getToolkit().getSystemEventQueue().postEvent(ce); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/47b8a95e33f15f8f7f754a990349584fe4134b05/Container.java/clean/libjava/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 12, 474, 770, 13, 225, 288, 565, 5435, 436, 273, 1794, 63, 1615, 15533, 565, 436, 18, 4479, 9168, 5621, 565, 2332, 18, 1126, 3530, 12, 4652, 16, 770, 397, 404, 16, 1794, 16, 770, 16, 8227, 290, 8119, 300, 770, 300, 404, 1769, 565, 1794, 63, 413, 82, 8119, 65, 273, 446, 31, 565, 11587, 5621, 565, 309, 261, 6741, 9455, 480, 446, 13, 1377, 3511, 9455, 18, 4479, 3744, 1841, 12, 86, 1769, 565, 368, 5616, 871, 358, 5066, 434, 6534, 326, 1478, 18, 565, 4039, 1133, 5898, 273, 394, 4039, 1133, 12, 2211, 16, 4766, 5411, 4039, 1133, 18, 22922, 67, 11122, 12135, 16, 4766, 5411, 436, 1769, 565, 336, 6364, 8691, 7675, 588, 3163, 1133, 3183, 7675, 2767, 1133, 12, 311, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 12, 474, 770, 13, 225, 288, 565, 5435, 436, 273, 1794, 63, 1615, 15533, 565, 436, 18, 4479, 9168, 5621, 565, 2332, 18, 1126, 3530, 12, 4652, 16, 770, 397, 404, 16, 1794, 16, 770, 16, 8227, 290, 8119, 300, 770, 300, 404, 1769, 565, 1794, 63, 413, 82, 8119, 65, 273, 446, 31, 565, 11587, 5621, 565, 309, 261, 6741, 9455, 480, 446, 13, 1377, 3511, 9455, 18, 4479, 3744, 1841, 12, 86, 1769, 565, 368, 5616, 871, 358, 5066, 434, 6534, 326, 1478, 18, 565, 4039, 1133, 5898, 273, 394, 4039, 1133, 12, 2211, 16, 4766, 5411, 4039, 1133, 18, 22922, 67, 11122, 12135, 16, 4766, 5411, 436, 1769, 565, 336, 6364, 8691, 2 ]
protected void infectBy(IRubyObject obj) {
protected IRubyObject infectBy(IRubyObject obj) {
protected void infectBy(IRubyObject obj) { setTaint(isTaint() || obj.isTaint()); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyObject.java/buggy/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 8286, 386, 858, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 444, 29048, 12, 291, 29048, 1435, 747, 1081, 18, 291, 29048, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 8286, 386, 858, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 444, 29048, 12, 291, 29048, 1435, 747, 1081, 18, 291, 29048, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
static String getMessage(List projects) { if (projects.size() == 1) { IProject project = (IProject) projects.get(0);
static String getMessage(IResource[] projects) { if (projects.length == 1) { IProject project = (IProject) projects[0];
static String getMessage(List projects) { if (projects.size() == 1) { IProject project = (IProject) projects.get(0); return IDEWorkbenchMessages.format("DeleteResourceAction.confirmProject1", new Object[] { project.getName() }); //$NON-NLS-1$ } else { return IDEWorkbenchMessages.format("DeleteResourceAction.confirmProjectN", new Object[] { new Integer(projects.size()) }); //$NON-NLS-1$ } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9613eca2eb909a155f4ea74a194620b3b527443/DeleteResourceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 3845, 514, 2381, 12, 682, 10137, 13, 288, 1082, 202, 430, 261, 13582, 18, 1467, 1435, 422, 404, 13, 288, 9506, 202, 45, 4109, 1984, 273, 261, 45, 4109, 13, 10137, 18, 588, 12, 20, 1769, 9506, 202, 2463, 1599, 41, 2421, 22144, 5058, 18, 2139, 2932, 2613, 1420, 1803, 18, 10927, 4109, 21, 3113, 394, 1033, 8526, 288, 1984, 18, 17994, 1435, 15549, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 2463, 1599, 41, 2421, 22144, 5058, 18, 2139, 2932, 2613, 1420, 1803, 18, 10927, 4109, 50, 3113, 394, 1033, 8526, 288, 394, 2144, 12, 13582, 18, 1467, 10756, 15549, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 97, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 202, 3845, 514, 2381, 12, 682, 10137, 13, 288, 1082, 202, 430, 261, 13582, 18, 1467, 1435, 422, 404, 13, 288, 9506, 202, 45, 4109, 1984, 273, 261, 45, 4109, 13, 10137, 18, 588, 12, 20, 1769, 9506, 202, 2463, 1599, 41, 2421, 22144, 5058, 18, 2139, 2932, 2613, 1420, 1803, 18, 10927, 4109, 21, 3113, 394, 1033, 8526, 288, 1984, 18, 17994, 1435, 15549, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 2463, 1599, 41, 2421, 22144, 5058, 18, 2139, 2932, 2613, 1420, 1803, 18, 10927, 4109, 50, 3113, 394, 1033, 8526, 288, 394, 2144, 12, 13582, 18, 1467, 10756, 15549, 225, 4329, 3993, 17, 5106, 17, 21, 2 ]
messages.addDiagnostic(number, state, severity, message, server, procName, line);
private void tdsErrorToken() throws IOException { int pktLen = in.readShort(); // Packet length int sizeSoFar = 6; int number = in.readInt(); int state = in.read(); int severity = in.read(); int msgLen = in.readShort(); String message = in.readString(msgLen); sizeSoFar += 2 + ((tdsVersion >= Driver.TDS70)? msgLen * 2: msgLen); final int srvNameLen = in.read(); String server = in.readString(srvNameLen); sizeSoFar += 1 + ((tdsVersion >= Driver.TDS70)? srvNameLen * 2: srvNameLen); final int procNameLen = in.read(); String procName = in.readString(procNameLen); sizeSoFar += 1 + ((tdsVersion >= Driver.TDS70)? procNameLen * 2: procNameLen); int line = in.readShort(); sizeSoFar += 2; // FIXME This won't work with multi-byte charsets // Skip any EED information to read rest of packet if (pktLen - sizeSoFar > 0) in.skip(pktLen - sizeSoFar); if (currentToken.token == TDS_ERROR_TOKEN) { if (severity < 10) { severity = 11; // Ensure treated as error } messages.addDiagnostic(number, state, severity, message, server, procName, line); } else { if (severity > 9) { severity = 9; // Ensure treated as warning } messages.addDiagnostic(number, state, severity, message, server, procName, line); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d0ec4abe17e09ae4768b31e1b621cd0558fcb544/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 268, 2377, 668, 1345, 1435, 565, 1216, 1860, 565, 288, 3639, 509, 11536, 2891, 273, 316, 18, 896, 4897, 5621, 368, 11114, 769, 3639, 509, 963, 26619, 273, 1666, 31, 3639, 509, 1300, 273, 316, 18, 896, 1702, 5621, 3639, 509, 919, 273, 316, 18, 896, 5621, 3639, 509, 11426, 273, 316, 18, 896, 5621, 3639, 509, 1234, 2891, 273, 316, 18, 896, 4897, 5621, 3639, 514, 883, 273, 316, 18, 896, 780, 12, 3576, 2891, 1769, 3639, 963, 26619, 1011, 576, 397, 14015, 88, 2377, 1444, 1545, 9396, 18, 56, 3948, 7301, 9945, 1234, 2891, 380, 576, 30, 1234, 2891, 1769, 3639, 727, 509, 7302, 461, 2891, 273, 316, 18, 896, 5621, 3639, 514, 1438, 273, 316, 18, 896, 780, 12, 20818, 461, 2891, 1769, 3639, 963, 26619, 1011, 404, 397, 14015, 88, 2377, 1444, 1545, 9396, 18, 56, 3948, 7301, 9945, 7302, 461, 2891, 380, 576, 30, 7302, 461, 2891, 1769, 3639, 727, 509, 5418, 461, 2891, 273, 316, 18, 896, 5621, 3639, 514, 5418, 461, 273, 316, 18, 896, 780, 12, 9381, 461, 2891, 1769, 3639, 963, 26619, 1011, 404, 397, 14015, 88, 2377, 1444, 1545, 9396, 18, 56, 3948, 7301, 9945, 5418, 461, 2891, 380, 576, 30, 5418, 461, 2891, 1769, 3639, 509, 980, 273, 316, 18, 896, 4897, 5621, 3639, 963, 26619, 1011, 576, 31, 3639, 368, 9852, 1220, 8462, 1404, 1440, 598, 3309, 17, 7229, 1149, 4424, 3639, 368, 6611, 1281, 512, 2056, 1779, 358, 855, 3127, 434, 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, 268, 2377, 668, 1345, 1435, 565, 1216, 1860, 565, 288, 3639, 509, 11536, 2891, 273, 316, 18, 896, 4897, 5621, 368, 11114, 769, 3639, 509, 963, 26619, 273, 1666, 31, 3639, 509, 1300, 273, 316, 18, 896, 1702, 5621, 3639, 509, 919, 273, 316, 18, 896, 5621, 3639, 509, 11426, 273, 316, 18, 896, 5621, 3639, 509, 1234, 2891, 273, 316, 18, 896, 4897, 5621, 3639, 514, 883, 273, 316, 18, 896, 780, 12, 3576, 2891, 1769, 3639, 963, 26619, 1011, 576, 397, 14015, 88, 2377, 1444, 1545, 9396, 18, 56, 3948, 7301, 9945, 1234, 2891, 380, 576, 30, 1234, 2891, 1769, 3639, 727, 509, 7302, 461, 2891, 273, 316, 18, 896, 5621, 3639, 514, 1438, 2 ]
theLayoutPackage.createPackageContents();
public static ComponentPackage init() { if (isInited) return (ComponentPackage) EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); // Obtain or create and register package ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ComponentPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); AttributePackageImpl theAttributePackage = (AttributePackageImpl) (EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE); // Create package meta-data objects theComponentPackage.createPackageContents(); theModelPackage.createPackageContents(); theTypePackage.createPackageContents(); theAttributePackage.createPackageContents(); theDataPackage.createPackageContents(); theLayoutPackage.createPackageContents(); // Initialize created meta-data theComponentPackage.initializePackageContents(); theModelPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theDataPackage.initializePackageContents(); theLayoutPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theComponentPackage.freeze(); return theComponentPackage; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5435, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 5411, 327, 261, 1841, 2261, 13, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 1841, 2261, 18, 73, 3156, 67, 3098, 1769, 3639, 368, 24850, 578, 752, 471, 1744, 2181, 3639, 5435, 2261, 2828, 326, 1841, 2261, 273, 261, 1841, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 1276, 5435, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 5411, 294, 394, 5435, 2261, 2828, 10663, 3639, 353, 2570, 329, 273, 638, 31, 3639, 368, 9190, 4143, 5030, 3639, 3167, 559, 2261, 2828, 18, 2738, 5621, 3639, 368, 24850, 578, 752, 471, 1744, 1554, 11037, 3639, 3164, 2261, 2828, 326, 1488, 2261, 273, 261, 1488, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 1488, 2261, 18, 73, 3156, 67, 3098, 13, 1276, 3164, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 1488, 2261, 18, 73, 3156, 67, 3098, 13, 294, 3164, 2261, 2828, 18, 73, 13341, 1769, 3639, 1412, 2261, 2828, 326, 559, 2261, 273, 261, 559, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 559, 2261, 18, 73, 3156, 67, 3098, 13, 1276, 1412, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5435, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 5411, 327, 261, 1841, 2261, 13, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 1841, 2261, 18, 73, 3156, 67, 3098, 1769, 3639, 368, 24850, 578, 752, 471, 1744, 2181, 3639, 5435, 2261, 2828, 326, 1841, 2261, 273, 261, 1841, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 1276, 5435, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 5411, 294, 394, 5435, 2261, 2828, 10663, 3639, 353, 2570, 329, 273, 638, 31, 3639, 368, 9190, 4143, 5030, 3639, 2 ]
if (action == null)
if (action == null) {
public ActionHandler(final IAction action) { if (action == null) throw new NullPointerException(); this.action = action; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ActionHandler.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/commands/ActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 1503, 12, 6385, 467, 1803, 1301, 13, 288, 202, 202, 430, 261, 1128, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 2211, 18, 1128, 273, 1301, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 1503, 12, 6385, 467, 1803, 1301, 13, 288, 202, 202, 430, 261, 1128, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 2211, 18, 1128, 273, 1301, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void mousePressed(MouseEvent e) {}
public void mousePressed(MouseEvent e) { }
public PatchEditorFrame(String name,Patch patch) { super (name,true,true,true,true); p=patch; System.arraycopy(p.sysex,0,originalPatch,0,p.sysex.length); //make backup copy layout=new GridBagLayout(); gbc = new GridBagConstraints(); scrollPane=new JPanel(); scrollPane.setLayout(layout); scrollPane.setSize(600,400); scroller = new JScrollPane (scrollPane); getContentPane().add(scroller); setSize(600,400); scroller.getVerticalScrollBar().addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) {} public void mouseReleased(MouseEvent e) { repaint(); } }); scroller.getHorizontalScrollBar().addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) {} public void mouseReleased(MouseEvent e) { repaint(); } }); addInternalFrameListener(new InternalFrameListener() { public void internalFrameClosing(InternalFrameEvent e) { String choices[] = new String [] {"Keep Changes", "Revert to Original", "Place Changed Version on Clipboard"}; int choice=JOptionPane.CLOSED_OPTION; while (choice==JOptionPane.CLOSED_OPTION) choice = JOptionPane.showOptionDialog((Component)null, "What do you wish to do with the changed copy of the Patch?", "Save Changes?",JOptionPane.OK_OPTION,JOptionPane.QUESTION_MESSAGE,null,choices,choices[0]); if (choice==0) { if (bankFrame==null) return; bankFrame.myModel.setPatchAt(p,patchRow,patchCol); return; } if (choice==2) CopySelectedPatch(); //put on clipboard but don't 'return' just yet System.arraycopy(originalPatch,0,p.sysex,0,p.sysex.length); //restore backup } public void internalFrameOpened(InternalFrameEvent e) {}; public void internalFrameActivated(InternalFrameEvent e) {((Driver)(PatchEdit.getDriver(p.deviceNum,p.driverNum))).calculateChecksum(p); ((Driver)(PatchEdit.getDriver(p.deviceNum,p.driverNum))).sendPatch(p); gotFocus(); PatchEdit.receiveAction.setEnabled (false); PatchEdit.pasteAction.setEnabled (false); PatchEdit.sendAction.setEnabled (true); PatchEdit.sendToAction.setEnabled (true); PatchEdit.playAction.setEnabled (true); PatchEdit.storeAction.setEnabled (true); PatchEdit.copyAction.setEnabled (true); PatchEdit.reassignAction.setEnabled (true); PatchEdit.exportAction.setEnabled (true); }; public void internalFrameClosed(InternalFrameEvent e) {}; public void internalFrameDeactivated(InternalFrameEvent e) { PatchEdit.sendAction.setEnabled (false); PatchEdit.playAction.setEnabled (false); PatchEdit.storeAction.setEnabled (false); PatchEdit.sendToAction.setEnabled (false); PatchEdit.copyAction.setEnabled (false); PatchEdit.reassignAction.setEnabled (false); PatchEdit.exportAction.setEnabled (false); lostFocus(); }; public void internalFrameDeiconified(InternalFrameEvent e) {}; public void internalFrameIconified(InternalFrameEvent e) {}; }); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/PatchEditorFrame.java/buggy/JSynthLib/core/PatchEditorFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12042, 6946, 3219, 12, 780, 508, 16, 7332, 4729, 13, 225, 288, 2240, 261, 529, 16, 3767, 16, 3767, 16, 3767, 16, 3767, 1769, 282, 293, 33, 2272, 31, 565, 2332, 18, 1126, 3530, 12, 84, 18, 9009, 20909, 16, 20, 16, 8830, 7332, 16, 20, 16, 84, 18, 9009, 20909, 18, 2469, 1769, 282, 368, 6540, 5114, 1610, 565, 3511, 33, 2704, 7145, 5013, 3744, 5621, 565, 26432, 273, 394, 13075, 5621, 565, 5532, 8485, 33, 2704, 24048, 5621, 565, 5532, 8485, 18, 542, 3744, 12, 6741, 1769, 565, 5532, 8485, 18, 542, 1225, 12, 28133, 16, 16010, 1769, 377, 888, 1539, 273, 394, 804, 26360, 261, 12033, 8485, 1769, 565, 5154, 8485, 7675, 1289, 12, 1017, 1539, 1769, 565, 19106, 12, 28133, 16, 16010, 1769, 565, 888, 1539, 18, 588, 15704, 6806, 5190, 7675, 1289, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 5411, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 288, 289, 5411, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 10792, 24962, 5621, 7734, 289, 10792, 15549, 565, 888, 1539, 18, 588, 14457, 6806, 5190, 7675, 1289, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 5411, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 288, 289, 5411, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 10792, 24962, 5621, 7734, 289, 10792, 15549, 565, 527, 3061, 3219, 2223, 12, 2704, 3186, 3219, 2223, 1435, 288, 5411, 1071, 918, 2713, 3219, 15745, 12, 3061, 3219, 1133, 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, 12042, 6946, 3219, 12, 780, 508, 16, 7332, 4729, 13, 225, 288, 2240, 261, 529, 16, 3767, 16, 3767, 16, 3767, 16, 3767, 1769, 282, 293, 33, 2272, 31, 565, 2332, 18, 1126, 3530, 12, 84, 18, 9009, 20909, 16, 20, 16, 8830, 7332, 16, 20, 16, 84, 18, 9009, 20909, 18, 2469, 1769, 282, 368, 6540, 5114, 1610, 565, 3511, 33, 2704, 7145, 5013, 3744, 5621, 565, 26432, 273, 394, 13075, 5621, 565, 5532, 8485, 33, 2704, 24048, 5621, 565, 5532, 8485, 18, 542, 3744, 12, 6741, 1769, 565, 5532, 8485, 18, 542, 1225, 12, 28133, 16, 16010, 1769, 377, 888, 1539, 273, 394, 804, 26360, 261, 12033, 8485, 1769, 565, 5154, 8485, 7675, 1289, 12, 2 ]
final DoubleCalc calc0 = compiler.compileDouble(call.getArg(0)); final DoubleCalc calc1 = compiler.compileDouble(call.getArg(1)); return new AbstractDoubleCalc(call, new Calc[] {calc0, calc1}) { public double evaluateDouble(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == DoubleNull) { if (v1 == DoubleNull) { return DoubleNull; } else { return v1;
final Exp[] args = call.getArgs(); final List calcList = new ArrayList(); final Calc valueCalc = compiler.compileScalar(args[0], true); calcList.add(valueCalc); final int matchCount = (args.length - 1) / 2; final Calc[] matchCalcs = new Calc[matchCount]; final Calc[] exprCalcs = new Calc[matchCount]; for (int i = 0, j = 1; i < exprCalcs.length; i++) { matchCalcs[i] = compiler.compileScalar(args[j++], true); calcList.add(matchCalcs[i]); exprCalcs[i] = compiler.compileScalar(args[j++], true); calcList.add(exprCalcs[i]); } final Calc defaultCalc = args.length % 2 == 0 ? compiler.compileScalar(args[args.length - 1], true) : ConstantCalc.constantNull(call.getType()); calcList.add(defaultCalc); final Calc[] calcs = (Calc[]) calcList.toArray(new Calc[calcList.size()]); return new AbstractCalc(call) { public Object evaluate(Evaluator evaluator) { Object value = valueCalc.evaluate(evaluator); for (int i = 0; i < matchCalcs.length; i++) { Object match = matchCalcs[i].evaluate(evaluator); if (match.equals(value)) { return exprCalcs[i].evaluate(evaluator); } } return defaultCalc.evaluate(evaluator);
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) { final DoubleCalc calc0 = compiler.compileDouble(call.getArg(0)); final DoubleCalc calc1 = compiler.compileDouble(call.getArg(1)); return new AbstractDoubleCalc(call, new Calc[] {calc0, calc1}) { public double evaluateDouble(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == DoubleNull) { if (v1 == DoubleNull) { return DoubleNull; } else { return v1; } } else { if (v1 == DoubleNull) { return v0; } else { return v0 + v1; } } } }; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 3698, 25779, 7029, 20, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 20, 10019, 7734, 727, 3698, 25779, 7029, 21, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 21, 10019, 7734, 327, 394, 4115, 5265, 25779, 12, 1991, 16, 394, 29128, 8526, 288, 12448, 20, 16, 7029, 21, 6792, 288, 10792, 1071, 1645, 5956, 5265, 12, 15876, 18256, 13, 288, 13491, 727, 1645, 331, 20, 273, 7029, 20, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 727, 1645, 331, 21, 273, 7029, 21, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 309, 261, 90, 20, 422, 3698, 2041, 13, 288, 18701, 309, 261, 90, 21, 422, 3698, 2041, 13, 288, 27573, 327, 3698, 2041, 31, 18701, 289, 469, 288, 27573, 327, 331, 21, 31, 18701, 289, 13491, 289, 469, 288, 18701, 309, 261, 90, 21, 422, 3698, 2041, 13, 288, 27573, 327, 331, 20, 31, 18701, 289, 469, 288, 27573, 327, 331, 20, 397, 331, 21, 31, 18701, 289, 13491, 289, 10792, 289, 7734, 289, 31, 5411, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 3698, 25779, 7029, 20, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 20, 10019, 7734, 727, 3698, 25779, 7029, 21, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 21, 10019, 7734, 327, 394, 4115, 5265, 25779, 12, 1991, 16, 394, 29128, 8526, 288, 12448, 20, 16, 7029, 21, 6792, 288, 10792, 1071, 1645, 5956, 5265, 12, 15876, 18256, 13, 288, 13491, 727, 1645, 331, 20, 273, 7029, 20, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 727, 1645, 331, 21, 273, 7029, 21, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 309, 261, 90, 20, 2 ]
pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE);
pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE);
private void updateOrSave(Connection connection, SearchBuilderItem sbi) throws SQLException { PreparedStatement pst = null; try { try { save(connection, sbi); } catch (SQLException sqlex) { pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE); populateStatement(pst, sbi); pst.executeUpdate(); } } catch ( SQLException ex ) { log.warn("Failed ",ex); throw ex; } finally { try { pst.close(); } catch (Exception ex) { } } }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/20ccf8886abe7d3c214de2a86a0f559bd200b82f/SearchIndexBuilderWorkerDaoJdbcImpl.java/clean/search/search-impl/impl/src/java/org/sakaiproject/search/component/dao/impl/SearchIndexBuilderWorkerDaoJdbcImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1162, 4755, 12, 1952, 1459, 16, 5167, 1263, 1180, 2393, 77, 13, 1216, 6483, 202, 95, 202, 202, 29325, 22750, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 5688, 12, 4071, 16, 2393, 77, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 23116, 4744, 4149, 13, 1082, 202, 95, 6862, 9506, 202, 84, 334, 273, 1459, 18, 9366, 3406, 2932, 2725, 315, 397, 24053, 67, 3000, 2627, 4179, 67, 12674, 67, 56, 397, 315, 444, 315, 397, 24053, 67, 3000, 2627, 4179, 67, 12674, 67, 12683, 67, 8217, 1769, 9506, 202, 19936, 3406, 12, 84, 334, 16, 2393, 77, 1769, 9506, 202, 84, 334, 18, 8837, 1891, 5621, 1082, 202, 97, 202, 202, 97, 1044, 261, 6483, 431, 262, 288, 1082, 202, 1330, 18, 8935, 2932, 2925, 3104, 338, 1769, 1082, 202, 12849, 431, 31, 202, 202, 97, 202, 202, 23417, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 84, 334, 18, 4412, 5621, 1082, 202, 97, 1082, 202, 14683, 261, 503, 431, 13, 1082, 202, 95, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1162, 4755, 12, 1952, 1459, 16, 5167, 1263, 1180, 2393, 77, 13, 1216, 6483, 202, 95, 202, 202, 29325, 22750, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 5688, 12, 4071, 16, 2393, 77, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 23116, 4744, 4149, 13, 1082, 202, 95, 6862, 9506, 202, 84, 334, 273, 1459, 18, 9366, 3406, 2932, 2725, 315, 397, 24053, 67, 3000, 2627, 4179, 67, 12674, 67, 56, 397, 315, 444, 315, 397, 24053, 67, 3000, 2627, 4179, 67, 12674, 67, 12683, 67, 8217, 1769, 9506, 202, 19936, 3406, 12, 84, 334, 16, 2393, 77, 1769, 9506, 202, 84, 334, 18, 2 ]
switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; }
switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; }
protected PdfArray rotateAnnotations() { PdfArray array = new PdfArray(); int rotation = pageSize.getRotation() % 360; int currentPage = writer.getCurrentPageNumber(); for (int k = 0; k < annotations.size(); ++k) { PdfAnnotation dic = (PdfAnnotation)annotations.get(k); int page = dic.getPlaceInPage(); if (page > currentPage) { delayedAnnotations.add(dic); continue; } if (dic.isForm()) { if (!dic.isUsed()) { HashMap templates = dic.getTemplates(); if (templates != null) acroForm.addFieldTemplates(templates); } PdfFormField field = (PdfFormField)dic; if (field.getParent() == null) acroForm.addDocumentField(field.getIndirectReference()); } if (dic.isAnnotation()) { array.add(dic.getIndirectReference()); if (!dic.isUsed()) { PdfRectangle rect = (PdfRectangle)dic.get(PdfName.RECT); if (rect != null) { switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; } } } } if (!dic.isUsed()) { dic.setUsed(); try { writer.addToBody(dic, dic.getIndirectReference()); } catch (IOException e) { throw new ExceptionConverter(e); } } } return array; }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/93c69bb3795bad1431a884fb2ddcd091d8af70d1/PdfDocument.java/clean/src/com/lowagie/text/pdf/PdfDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9989, 1076, 8534, 5655, 1435, 288, 3639, 9989, 1076, 526, 273, 394, 9989, 1076, 5621, 3639, 509, 6752, 273, 13387, 18, 588, 14032, 1435, 738, 12360, 31, 3639, 509, 15117, 273, 2633, 18, 588, 3935, 1964, 1854, 5621, 3639, 364, 261, 474, 417, 273, 374, 31, 417, 411, 5617, 18, 1467, 5621, 965, 79, 13, 288, 5411, 9989, 3257, 11681, 273, 261, 18562, 3257, 13, 14670, 18, 588, 12, 79, 1769, 5411, 509, 1363, 273, 11681, 18, 588, 6029, 382, 1964, 5621, 5411, 309, 261, 2433, 405, 15117, 13, 288, 7734, 15278, 5655, 18, 1289, 12, 15859, 1769, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 15859, 18, 291, 1204, 10756, 288, 7734, 309, 16051, 15859, 18, 291, 6668, 10756, 288, 10792, 4317, 5539, 273, 11681, 18, 588, 8218, 5621, 10792, 309, 261, 8502, 480, 446, 13, 13491, 1721, 303, 1204, 18, 1289, 974, 8218, 12, 8502, 1769, 7734, 289, 7734, 9989, 27317, 652, 273, 261, 18562, 27317, 13, 15859, 31, 7734, 309, 261, 1518, 18, 588, 3054, 1435, 422, 446, 13, 10792, 1721, 303, 1204, 18, 1289, 2519, 974, 12, 1518, 18, 588, 24943, 2404, 10663, 5411, 289, 5411, 309, 261, 15859, 18, 291, 3257, 10756, 288, 7734, 526, 18, 1289, 12, 15859, 18, 588, 24943, 2404, 10663, 7734, 309, 16051, 15859, 18, 291, 6668, 10756, 288, 10792, 9989, 19463, 4917, 273, 261, 18562, 19463, 13, 15859, 18, 588, 12, 18562, 461, 18, 4512, 1769, 10792, 309, 261, 2607, 480, 446, 13, 288, 13491, 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, 9989, 1076, 8534, 5655, 1435, 288, 3639, 9989, 1076, 526, 273, 394, 9989, 1076, 5621, 3639, 509, 6752, 273, 13387, 18, 588, 14032, 1435, 738, 12360, 31, 3639, 509, 15117, 273, 2633, 18, 588, 3935, 1964, 1854, 5621, 3639, 364, 261, 474, 417, 273, 374, 31, 417, 411, 5617, 18, 1467, 5621, 965, 79, 13, 288, 5411, 9989, 3257, 11681, 273, 261, 18562, 3257, 13, 14670, 18, 588, 12, 79, 1769, 5411, 509, 1363, 273, 11681, 18, 588, 6029, 382, 1964, 5621, 5411, 309, 261, 2433, 405, 15117, 13, 288, 7734, 15278, 5655, 18, 1289, 12, 15859, 1769, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 15859, 18, 291, 1204, 10756, 288, 7734, 309, 16051, 15859, 18, 2 ]
public TreePrinter print(Tree tree) { switch (tree) { case Bad(): print(TXT_ERROR); break; case Empty: print(TXT_EMPTY); break; case ClassDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree.Template impl): printModifiers(mods); print((mods & Modifiers.INTERFACE) != 0 ? KW_INTERFACE : KW_CLASS); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printTemplate(tree.symbol(), KW_EXTENDS, impl, true); break; case PackageDef(Tree packaged, Tree.Template impl): print(KW_PACKAGE); print(Text.Space); print(packaged); printTemplate(null, KW_WITH, impl, true); break; case ModuleDef(int mods, Name name, Tree tpe, Tree.Template impl): printModifiers(mods); print(KW_OBJECT); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); printTemplate(null, KW_EXTENDS, impl, true); break; case ValDef(int mods, Name name, Tree tpe, Tree rhs): printModifiers(mods); if ((mods & Modifiers.MUTABLE) != 0) print(KW_VAR); else { if ((mods & Modifiers.MODUL) != 0) print(TXT_OBJECT_COMMENT); print(KW_VAL); } print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); if ((mods & Modifiers.DEFERRED) == 0) { print(Text.Space); print(TXT_EQUAL); print(Text.Space); if (rhs == Tree.Empty) print("_"); else print(rhs); } break; case PatDef(int mods, Tree pat, Tree rhs): printModifiers(mods); print(KW_VAL); print(Text.Space); print(pat); printOpt(TXT_EQUAL, rhs, true); break; case DefDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree rhs): printModifiers(mods); print(KW_DEF); print(Text.Space); if (name.isTypeName()) print(KW_THIS); else printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printOpt(TXT_EQUAL, rhs, true); break; case AbsTypeDef(int mods, Name name, Tree rhs, Tree lobound): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printBounds(lobound, rhs); break; case AliasTypeDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree rhs): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printOpt(TXT_EQUAL, rhs, true); break; case Import(Tree expr, Name[] selectors): print(KW_IMPORT); print(Text.Space); print(expr); print(TXT_DOT); print(TXT_LEFT_BRACE); for (int i = 0; i < selectors.length; i = i + 2) { if (i > 0) print(TXT_COMMA_SP); print(selectors[i].toString()); if (i + 1 < selectors.length && selectors[i] != selectors[i+1]) { print(TXT_RIGHT_ARROW); print(selectors[i+1].toString()); } } print(TXT_RIGHT_BRACE); break; case CaseDef(Tree pat, Tree guard, Tree body): print(KW_CASE); print(Text.Space); print(pat); printOpt(KW_IF, guard, true); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); break; case LabelDef(Name name, Tree.Ident[] params, Tree rhs): printSymbolDefinition(tree.symbol(), name); printArray(params, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(rhs); break; case Block(Tree[] stats): printArray(stats, TXT_BLOCK_BEGIN, TXT_BLOCK_END, TXT_BLOCK_SEP); printType(tree); break; case Sequence(Tree[] trees): printArray(trees, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); break; /* case Subsequence(Tree[] trees): if( trees.length > 0 ) printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); else { print( TXT_LEFT_PAREN ); print( TXT_COMMA ); print( TXT_RIGHT_PAREN ); } break; */ case Alternative(Tree[] trees): printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_BAR_SP); break; case Bind(Name name, Tree t): printSymbolDefinition(tree.symbol(), name); print(Text.Space); print(TXT_AT); print(Text.Space); print(TXT_LEFT_PAREN); print( t ); print(TXT_RIGHT_PAREN); printType(tree); break; case Visitor(Tree.CaseDef[] cases): printArray(cases, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case Function(Tree.ValDef[] vparams, Tree body): print(TXT_LEFT_PAREN); printParams(vparams); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); print(TXT_RIGHT_PAREN); break; case Assign(Tree lhs, Tree rhs): print(lhs); print(Text.Space); print(TXT_EQUAL); print(Text.Space); print(rhs); break; case If(Tree cond, Tree thenp, Tree elsep): print(KW_IF); print(Text.Space); print(TXT_LEFT_PAREN); print(cond); print(TXT_RIGHT_PAREN); indent(); print(Text.Newline); print(thenp); undent(); print(Text.Newline); indent(); printOpt(TXT_ELSE_NL, elsep, false); undent(); printType(tree); break; case Switch(Tree expr, int[] tags, Tree[] bodies, Tree defaultBody): print("<switch>"); print(Text.Space); print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); indent(); print(TXT_BLOCK_BEGIN); for (int i = 0; i < tags.length; i++) { print(KW_CASE); print(Text.Space); print("" + tags[i]); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(bodies[i]); print(Text.Newline); } print("<default> => "); print(defaultBody); undent(); print(TXT_BLOCK_END); break; case Return(Tree expr): print(KW_RETURN); print(Text.Space); print(expr); break; case New(Tree.Template templ): printTemplate(null, KW_NEW, templ, false); printType(tree); break; case Typed(Tree expr, Tree tpe): print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); print(TXT_COLON); print(Text.Space); print(tpe); printType(tree); break; case TypeApply(Tree fun, Tree[] targs): print(fun); printArray(targs, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); printType(tree); break; case Apply(Tree fun, Tree[] vargs): if (fun instanceof Tree.TypeTerm) print(fun.type.resultType().symbol().fullName().toString()); else print(fun); printArray(vargs, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); printType(tree); break; case Super(Name qualifier, Name mixin): if (qualifier != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), qualifier); print(TXT_DOT); } print(KW_SUPER); if (mixin != TypeNames.EMPTY) { print(TXT_LEFT_PAREN); print(mixin.toString()); print(TXT_RIGHT_PAREN); } printType(tree); break; case This(Name name): if (name != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), name); print(TXT_DOT); } print(KW_THIS); printType(tree); break; case Select(Tree qualifier, Name name): print(qualifier); print(TXT_DOT); printSymbolUse(tree.symbol(), name); printType(tree); break; case Ident(Name name): printSymbolUse(tree.symbol(), name); printType(tree); break; case Literal(AConstant value): print(Text.Literal(value.toString())); printType(tree); break; case TypeTerm(): print(tree.type.toString()); break; case SingletonType(Tree ref): print(ref); print(TXT_DOT); print(KW_TYPE); break; case SelectFromType(Tree qualifier, Name selector): print(qualifier); print(Text.Space); print(TXT_HASH); print(Text.Space); printSymbolUse(tree.symbol(), selector); break; case FunType(Tree[] argtpes, Tree restpe): printArray(argtpes, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(TXT_RIGHT_ARROW); print(restpe); break; case CompoundType(Tree[] baseTypes, Tree[] refinements): printArray(baseTypes, Text.None, Text.None, TXT_WITH_SP); printArray(refinements, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case AppliedType(Tree tpe, Tree[] args): print(tpe); indent(); print(TXT_LEFT_BRACKET); for (int i = 0; i < args.length; ++i) { if (i > 0) print(TXT_COMMA_SP); print(args[i]); } undent(); print(TXT_RIGHT_BRACKET); break; case Template(Tree[] parents, Tree[] body): Debug.abort("unexpected case: template"); break; default: print(TXT_UNKNOWN); break; }
public TreePrinter print(String str) { out.print(str);
public TreePrinter print(Tree tree) { switch (tree) { case Bad(): print(TXT_ERROR); break; case Empty: print(TXT_EMPTY); break; case ClassDef(int mods, // : Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree.Template impl): printModifiers(mods); print((mods & Modifiers.INTERFACE) != 0 ? KW_INTERFACE : KW_CLASS); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printTemplate(tree.symbol(), KW_EXTENDS, impl, true); break; case PackageDef(Tree packaged, Tree.Template impl): print(KW_PACKAGE); print(Text.Space); print(packaged); printTemplate(null, KW_WITH, impl, true); break; case ModuleDef(int mods, // : Name name, Tree tpe, Tree.Template impl): printModifiers(mods); print(KW_OBJECT); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); printTemplate(null, KW_EXTENDS, impl, true); break; case ValDef(int mods, Name name, Tree tpe, Tree rhs): printModifiers(mods); if ((mods & Modifiers.MUTABLE) != 0) print(KW_VAR); else { if ((mods & Modifiers.MODUL) != 0) print(TXT_OBJECT_COMMENT); print(KW_VAL); } print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); if ((mods & Modifiers.DEFERRED) == 0) { print(Text.Space); print(TXT_EQUAL); print(Text.Space); if (rhs == Tree.Empty) print("_"); else print(rhs); } break; case PatDef(int mods, Tree pat, Tree rhs): printModifiers(mods); print(KW_VAL); print(Text.Space); print(pat); printOpt(TXT_EQUAL, rhs, true); break; case DefDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree rhs): printModifiers(mods); print(KW_DEF); print(Text.Space); if (name.isTypeName()) print(KW_THIS); else printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printOpt(TXT_EQUAL, rhs, true); break; case AbsTypeDef(int mods, Name name, Tree rhs, Tree lobound): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printBounds(lobound, rhs); break; case AliasTypeDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree rhs): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printOpt(TXT_EQUAL, rhs, true); break; case Import(Tree expr, Name[] selectors): print(KW_IMPORT); print(Text.Space); print(expr); print(TXT_DOT); print(TXT_LEFT_BRACE); for (int i = 0; i < selectors.length; i = i + 2) { if (i > 0) print(TXT_COMMA_SP); print(selectors[i].toString()); if (i + 1 < selectors.length && selectors[i] != selectors[i+1]) { print(TXT_RIGHT_ARROW); print(selectors[i+1].toString()); } } print(TXT_RIGHT_BRACE); break; case CaseDef(Tree pat, Tree guard, Tree body): print(KW_CASE); print(Text.Space); print(pat); printOpt(KW_IF, guard, true); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); break; case LabelDef(Name name, Tree.Ident[] params, Tree rhs): printSymbolDefinition(tree.symbol(), name); printArray(params, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(rhs); break; case Block(Tree[] stats): printArray(stats, TXT_BLOCK_BEGIN, TXT_BLOCK_END, TXT_BLOCK_SEP); printType(tree); break; case Sequence(Tree[] trees): // sure ? was Tuple before... printArray(trees, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); break; /* case Subsequence(Tree[] trees): if( trees.length > 0 ) printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); else { print( TXT_LEFT_PAREN ); print( TXT_COMMA ); print( TXT_RIGHT_PAREN ); } break; */ case Alternative(Tree[] trees): printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_BAR_SP); break; case Bind(Name name, Tree t): printSymbolDefinition(tree.symbol(), name); print(Text.Space); print(TXT_AT); print(Text.Space); print(TXT_LEFT_PAREN); print( t ); print(TXT_RIGHT_PAREN); printType(tree); break; case Visitor(Tree.CaseDef[] cases): printArray(cases, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case Function(Tree.ValDef[] vparams, Tree body): print(TXT_LEFT_PAREN); printParams(vparams); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); print(TXT_RIGHT_PAREN); break; case Assign(Tree lhs, Tree rhs): print(lhs); print(Text.Space); print(TXT_EQUAL); print(Text.Space); print(rhs); break; case If(Tree cond, Tree thenp, Tree elsep): print(KW_IF); print(Text.Space); print(TXT_LEFT_PAREN); print(cond); print(TXT_RIGHT_PAREN); indent(); print(Text.Newline); print(thenp); undent(); print(Text.Newline); indent(); printOpt(TXT_ELSE_NL, elsep, false); undent(); printType(tree); break; case Switch(Tree expr, int[] tags, Tree[] bodies, Tree defaultBody): print("<switch>"); print(Text.Space); print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); indent(); print(TXT_BLOCK_BEGIN); for (int i = 0; i < tags.length; i++) { print(KW_CASE); print(Text.Space); print("" + tags[i]); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(bodies[i]); print(Text.Newline); } print("<default> => "); print(defaultBody); undent(); print(TXT_BLOCK_END); break; case Return(Tree expr): print(KW_RETURN); print(Text.Space); print(expr); break; case New(Tree.Template templ): printTemplate(null, KW_NEW, templ, false); printType(tree); break; case Typed(Tree expr, Tree tpe): print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); print(TXT_COLON); print(Text.Space); print(tpe); printType(tree); break; case TypeApply(Tree fun, Tree[] targs): print(fun); printArray(targs, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); printType(tree); break; case Apply(Tree fun, Tree[] vargs): if (fun instanceof Tree.TypeTerm) print(fun.type.resultType().symbol().fullName().toString()); else print(fun); printArray(vargs, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); printType(tree); break; case Super(Name qualifier, Name mixin): if (qualifier != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), qualifier); print(TXT_DOT); } print(KW_SUPER); if (mixin != TypeNames.EMPTY) { print(TXT_LEFT_PAREN); print(mixin.toString()); print(TXT_RIGHT_PAREN); } printType(tree); break; case This(Name name): if (name != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), name); print(TXT_DOT); } print(KW_THIS); printType(tree); break; case Select(Tree qualifier, Name name): print(qualifier); print(TXT_DOT); printSymbolUse(tree.symbol(), name); printType(tree); break; case Ident(Name name): printSymbolUse(tree.symbol(), name); printType(tree); break; case Literal(AConstant value): print(Text.Literal(value.toString())); printType(tree); break; case TypeTerm(): print(tree.type.toString()); break; case SingletonType(Tree ref): print(ref); print(TXT_DOT); print(KW_TYPE); break; case SelectFromType(Tree qualifier, Name selector): print(qualifier); print(Text.Space); print(TXT_HASH); print(Text.Space); printSymbolUse(tree.symbol(), selector); break; case FunType(Tree[] argtpes, Tree restpe): printArray(argtpes, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(TXT_RIGHT_ARROW); print(restpe); break; case CompoundType(Tree[] baseTypes, Tree[] refinements): printArray(baseTypes, Text.None, Text.None, TXT_WITH_SP); printArray(refinements, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case AppliedType(Tree tpe, Tree[] args): print(tpe); indent(); print(TXT_LEFT_BRACKET); for (int i = 0; i < args.length; ++i) { if (i > 0) print(TXT_COMMA_SP); print(args[i]); } undent(); print(TXT_RIGHT_BRACKET); break; case Template(Tree[] parents, Tree[] body): Debug.abort("unexpected case: template"); break; default: print(TXT_UNKNOWN); break; } //print("{" + tree.type + "}");//DEBUG return this; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/53f396c70e0f402a0a3eba3f2041b47aa6050b50/TextTreePrinter.java/buggy/sources/scalac/ast/printer/TextTreePrinter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4902, 12149, 1172, 12, 2471, 2151, 13, 288, 3639, 1620, 261, 3413, 13, 288, 3639, 648, 6107, 13332, 5411, 1172, 12, 29399, 67, 3589, 1769, 5411, 898, 31, 3639, 648, 8953, 30, 5411, 1172, 12, 29399, 67, 13625, 1769, 5411, 898, 31, 3639, 648, 1659, 3262, 12, 474, 15546, 16, 368, 294, 8227, 1770, 508, 16, 8227, 4902, 18, 9382, 559, 3262, 8526, 268, 2010, 16, 8227, 4902, 18, 3053, 3262, 63, 6362, 65, 331, 2010, 16, 8227, 4902, 268, 347, 16, 8227, 4902, 18, 2283, 9380, 4672, 5411, 1172, 11948, 12, 22760, 1769, 5411, 1172, 12443, 22760, 473, 3431, 3383, 18, 18865, 13, 480, 374, 5375, 692, 1475, 59, 67, 18865, 5375, 294, 1475, 59, 67, 5237, 1769, 5411, 1172, 12, 1528, 18, 3819, 1769, 5411, 1172, 5335, 1852, 12, 3413, 18, 7175, 9334, 508, 1769, 5411, 1172, 1370, 12, 88, 2010, 1769, 5411, 1172, 1370, 12, 90, 2010, 1769, 5411, 1172, 6179, 12, 29399, 67, 4935, 673, 16, 268, 347, 16, 629, 1769, 5411, 1172, 2283, 12, 3413, 18, 7175, 9334, 1475, 59, 67, 4142, 1157, 3948, 16, 9380, 16, 638, 1769, 5411, 898, 31, 3639, 648, 7508, 3262, 12, 2471, 2298, 11349, 16, 4902, 18, 2283, 9380, 4672, 5411, 1172, 12, 30134, 67, 19077, 1769, 5411, 1172, 12, 1528, 18, 3819, 1769, 5411, 1172, 12, 2920, 11349, 1769, 5411, 1172, 2283, 12, 2011, 16, 1475, 59, 67, 9147, 16, 9380, 16, 638, 1769, 5411, 898, 31, 3639, 648, 5924, 3262, 12, 474, 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, 4902, 12149, 1172, 12, 2471, 2151, 13, 288, 3639, 1620, 261, 3413, 13, 288, 3639, 648, 6107, 13332, 5411, 1172, 12, 29399, 67, 3589, 1769, 5411, 898, 31, 3639, 648, 8953, 30, 5411, 1172, 12, 29399, 67, 13625, 1769, 5411, 898, 31, 3639, 648, 1659, 3262, 12, 474, 15546, 16, 368, 294, 8227, 1770, 508, 16, 8227, 4902, 18, 9382, 559, 3262, 8526, 268, 2010, 16, 8227, 4902, 18, 3053, 3262, 63, 6362, 65, 331, 2010, 16, 8227, 4902, 268, 347, 16, 8227, 4902, 18, 2283, 9380, 4672, 5411, 1172, 11948, 12, 22760, 1769, 5411, 1172, 12443, 22760, 473, 3431, 3383, 18, 18865, 13, 480, 374, 5375, 692, 1475, 59, 67, 18865, 5375, 294, 1475, 59, 67, 2 ]
if (!this.allowFreeTextEntry && this.numberOfMatches > 0) {
if (!this.isAllowFreeTextEntry && this.numberOfMatches > 0) {
protected void defocus(Style origStyle) { //#if polish.usePolishGui //# super.defocus(origStyle); //#endif if (!this.allowFreeTextEntry && this.numberOfMatches > 0) { Item item = this.choicesContainer.get( 0 ); if (item instanceof StringItem) { setString( ((StringItem)item).getText() ); } else { setString( item.toString() ); } } this.numberOfMatches = 0; this.choicesContainer.clear(); openChoices(false); }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/81985946103c70577b8512e8ee7690a116bcdbef/ChoiceTextField.java/clean/j2me/source/src/de/enough/polish/ui/ChoiceTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1652, 4560, 12, 2885, 1647, 2885, 13, 288, 202, 202, 759, 7, 430, 2952, 1468, 18, 1202, 5850, 1468, 18070, 1082, 202, 759, 7, 2240, 18, 536, 4560, 12, 4949, 2885, 1769, 202, 202, 759, 7, 409, 430, 202, 202, 430, 16051, 2211, 18, 5965, 9194, 1528, 1622, 597, 333, 18, 2696, 951, 6869, 405, 374, 13, 288, 1082, 202, 1180, 761, 273, 333, 18, 11937, 2170, 18, 588, 12, 374, 11272, 1082, 202, 430, 261, 1726, 1276, 514, 1180, 13, 288, 9506, 202, 542, 780, 12, 14015, 780, 1180, 13, 1726, 2934, 588, 1528, 1435, 11272, 1082, 202, 97, 469, 288, 9506, 202, 542, 780, 12, 761, 18, 10492, 1435, 11272, 1082, 202, 97, 6862, 202, 97, 202, 202, 2211, 18, 2696, 951, 6869, 273, 374, 31, 202, 202, 2211, 18, 11937, 2170, 18, 8507, 5621, 202, 202, 3190, 17442, 12, 5743, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1652, 4560, 12, 2885, 1647, 2885, 13, 288, 202, 202, 759, 7, 430, 2952, 1468, 18, 1202, 5850, 1468, 18070, 1082, 202, 759, 7, 2240, 18, 536, 4560, 12, 4949, 2885, 1769, 202, 202, 759, 7, 409, 430, 202, 202, 430, 16051, 2211, 18, 5965, 9194, 1528, 1622, 597, 333, 18, 2696, 951, 6869, 405, 374, 13, 288, 1082, 202, 1180, 761, 273, 333, 18, 11937, 2170, 18, 588, 12, 374, 11272, 1082, 202, 430, 261, 1726, 1276, 514, 1180, 13, 288, 9506, 202, 542, 780, 12, 14015, 780, 1180, 13, 1726, 2934, 588, 1528, 1435, 11272, 1082, 202, 97, 469, 288, 9506, 202, 542, 780, 12, 761, 18, 10492, 1435, 11272, 1082, 202, 97, 2 ]
Object[] paramValues = new Object[]{ lang_prefix };
Object[] paramValues = new Object[]{lang_prefix};
Table_doc_types[] sproc_GetDocTypes( String lang_prefix ) { String sql = "SELECT doc_type,type FROM doc_types WHERE lang_prefix = ? ORDER BY doc_type"; Object[] paramValues = new Object[]{ lang_prefix }; ArrayList queryResult = sqlProcessor.executeQuery( sql, paramValues, new SQLProcessor.ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { int doc_type = rs.getInt("doc_type"); String type = rs.getString( "type" ); return new Table_doc_types( doc_type, type ); } } ); return (Table_doc_types[])queryResult.toArray( new Table_doc_types[queryResult.size()] ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a90e8dc58b604eb2343b8f739ed25f49188b96da/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3555, 67, 2434, 67, 2352, 8526, 272, 9381, 67, 967, 1759, 2016, 12, 514, 3303, 67, 3239, 262, 288, 3639, 514, 1847, 273, 315, 4803, 997, 67, 723, 16, 723, 4571, 997, 67, 2352, 4852, 3303, 67, 3239, 273, 692, 10205, 6953, 997, 67, 723, 14432, 3639, 1033, 8526, 579, 1972, 273, 394, 1033, 63, 7073, 4936, 67, 3239, 20451, 3639, 2407, 26992, 273, 1847, 5164, 18, 8837, 1138, 12, 1847, 16, 579, 1972, 16, 394, 3063, 5164, 18, 1253, 5164, 1435, 288, 5411, 1033, 852, 3335, 1999, 1265, 1253, 542, 19121, 12, 10842, 3597, 262, 1216, 6483, 288, 7734, 509, 997, 67, 723, 273, 3597, 18, 588, 1702, 2932, 2434, 67, 723, 8863, 7734, 514, 618, 273, 3597, 18, 588, 780, 12, 315, 723, 6, 11272, 7734, 327, 394, 3555, 67, 2434, 67, 2352, 12, 997, 67, 723, 16, 618, 11272, 5411, 289, 3639, 289, 11272, 3639, 327, 261, 1388, 67, 2434, 67, 2352, 63, 5717, 2271, 1253, 18, 31447, 12, 394, 3555, 67, 2434, 67, 2352, 63, 2271, 1253, 18, 1467, 1435, 65, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3555, 67, 2434, 67, 2352, 8526, 272, 9381, 67, 967, 1759, 2016, 12, 514, 3303, 67, 3239, 262, 288, 3639, 514, 1847, 273, 315, 4803, 997, 67, 723, 16, 723, 4571, 997, 67, 2352, 4852, 3303, 67, 3239, 273, 692, 10205, 6953, 997, 67, 723, 14432, 3639, 1033, 8526, 579, 1972, 273, 394, 1033, 63, 7073, 4936, 67, 3239, 20451, 3639, 2407, 26992, 273, 1847, 5164, 18, 8837, 1138, 12, 1847, 16, 579, 1972, 16, 394, 3063, 5164, 18, 1253, 5164, 1435, 288, 5411, 1033, 852, 3335, 1999, 1265, 1253, 542, 19121, 12, 10842, 3597, 262, 1216, 6483, 288, 7734, 509, 997, 67, 723, 273, 3597, 18, 588, 1702, 2932, 2434, 67, 723, 8863, 7734, 514, 618, 273, 2 ]
long id = (Long)query.get(_context, "ID"); add(_context, id);
long commandId = (Long)query.get(_context, "ToCommand"); long sortId = (Long)query.get(_context, "ID"); add(_context, sortId, commandId);
private void readFromDB4Childs(Context _context) throws Exception { Instance menuInst = new Instance(_context, Type.get(EFapsClassName.MENU.name), getId()); SearchQuery query = new SearchQuery(); query.setExpand(_context, menuInst, "Admin_UI_Menu2Command\\FromMenu.ToCommand"); query.addSelect(_context, "ID"); query.execute(_context); while (query.next()) { long id = (Long)query.get(_context, "ID"); add(_context, id); } }
55506 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55506/52fab603779c7bfb6898b8e521707b793ce9e673/MenuAbstract.java/buggy/trunk/kernel/src/main/java/org/efaps/admin/ui/MenuAbstract.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20876, 2290, 24, 1763, 87, 12, 1042, 389, 2472, 13, 1216, 1185, 225, 288, 565, 5180, 3824, 10773, 273, 394, 5180, 24899, 2472, 16, 1412, 18, 588, 12, 26897, 6679, 3834, 18, 29227, 18, 529, 3631, 2634, 10663, 565, 5167, 1138, 843, 273, 394, 5167, 1138, 5621, 565, 843, 18, 542, 12271, 24899, 2472, 16, 3824, 10773, 16, 315, 4446, 67, 5370, 67, 4599, 22, 2189, 1695, 1265, 4599, 18, 774, 2189, 8863, 565, 843, 18, 1289, 3391, 24899, 2472, 16, 315, 734, 8863, 565, 843, 18, 8837, 24899, 2472, 1769, 565, 1323, 261, 2271, 18, 4285, 10756, 225, 288, 1377, 1525, 612, 273, 261, 3708, 13, 2271, 18, 588, 24899, 2472, 16, 315, 734, 8863, 1377, 527, 24899, 2472, 16, 612, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20876, 2290, 24, 1763, 87, 12, 1042, 389, 2472, 13, 1216, 1185, 225, 288, 565, 5180, 3824, 10773, 273, 394, 5180, 24899, 2472, 16, 1412, 18, 588, 12, 26897, 6679, 3834, 18, 29227, 18, 529, 3631, 2634, 10663, 565, 5167, 1138, 843, 273, 394, 5167, 1138, 5621, 565, 843, 18, 542, 12271, 24899, 2472, 16, 3824, 10773, 16, 315, 4446, 67, 5370, 67, 4599, 22, 2189, 1695, 1265, 4599, 18, 774, 2189, 8863, 565, 843, 18, 1289, 3391, 24899, 2472, 16, 315, 734, 8863, 565, 843, 18, 8837, 24899, 2472, 1769, 565, 1323, 261, 2271, 18, 4285, 10756, 225, 288, 1377, 1525, 612, 273, 261, 3708, 13, 2271, 18, 588, 24899, 2472, 16, 315, 734, 8863, 2 ]
if (pkgRoot != null) { leadSegmentsToRemove= pkgRoot.getPath().segmentCount(); boolean isOnBuildPath; isOnBuildPath= jProject.isOnClasspath(resource); if (!isOnBuildPath || (mustUseSourceFolderHierarchy() && !pkgRoot.getElementName().equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))) leadSegmentsToRemove--;
} if (pkgRoot != null && jProject != null) { leadSegmentsToRemove= pkgRoot.getPath().segmentCount(); boolean isOnBuildPath; isOnBuildPath= jProject.isOnClasspath(resource); if (!isOnBuildPath || (mustUseSourceFolderHierarchy() && !pkgRoot.getElementName().equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))) leadSegmentsToRemove--; } IPath destinationPath= resource.getFullPath().removeFirstSegments(leadSegmentsToRemove); boolean isInOutputFolder= false; if (isInJavaProject && jProject != null) { try { isInOutputFolder= jProject.getOutputLocation().isPrefixOf(resource.getFullPath()); } catch (JavaModelException ex) { isInOutputFolder= false;
protected void exportElement(Object element, IProgressMonitor progressMonitor) throws InterruptedException { // AspectJ Change Begin // Don't export AJCompilationUnits because they are duplicates of files that we also export. if (! (element instanceof AJCompilationUnit)) { // AspectJ Change End int leadSegmentsToRemove= 1; IPackageFragmentRoot pkgRoot= null; boolean isInJavaProject= false; IResource resource= null; IJavaProject jProject= null; if (element instanceof IJavaElement) { isInJavaProject= true; IJavaElement je= (IJavaElement)element; int type= je.getElementType(); if (type != IJavaElement.CLASS_FILE && type != IJavaElement.COMPILATION_UNIT) { exportJavaElement(progressMonitor, je); return; } try { resource= je.getUnderlyingResource(); } catch (JavaModelException ex) { addWarning(Messages.format(JarPackagerMessages.JarFileExportOperation_underlyingResourceNotFound, je.getElementName()), ex); return; } jProject= je.getJavaProject(); pkgRoot= JavaModelUtil.getPackageFragmentRoot(je); } else resource= (IResource)element; if (!resource.isAccessible()) { addWarning(Messages.format(JarPackagerMessages.JarFileExportOperation_resourceNotFound, resource.getFullPath()), null); return; } if (resource.getType() == IResource.FILE) { if (!resource.isLocal(IResource.DEPTH_ZERO)) try { resource.setLocal(true , IResource.DEPTH_ZERO, progressMonitor); } catch (CoreException ex) { addWarning(Messages.format(JarPackagerMessages.JarFileExportOperation_resourceNotLocal, resource.getFullPath()), ex); return; } if (!isInJavaProject) { // check if it's a Java resource try { isInJavaProject= resource.getProject().hasNature(JavaCore.NATURE_ID); } catch (CoreException ex) { addWarning(Messages.format(JarPackagerMessages.JarFileExportOperation_projectNatureNotDeterminable, resource.getFullPath()), ex); return; } if (isInJavaProject) { jProject= JavaCore.create(resource.getProject()); try { IPackageFragment pkgFragment= jProject.findPackageFragment(resource.getFullPath().removeLastSegments(1)); if (pkgFragment != null) pkgRoot= JavaModelUtil.getPackageFragmentRoot(pkgFragment); else pkgRoot= findPackageFragmentRoot(jProject, resource.getFullPath().removeLastSegments(1)); } catch (JavaModelException ex) { addWarning(Messages.format(JarPackagerMessages.JarFileExportOperation_javaPackageNotDeterminable, resource.getFullPath()), ex); return; } } } if (pkgRoot != null) { leadSegmentsToRemove= pkgRoot.getPath().segmentCount(); boolean isOnBuildPath; isOnBuildPath= jProject.isOnClasspath(resource); if (!isOnBuildPath || (mustUseSourceFolderHierarchy() && !pkgRoot.getElementName().equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))) leadSegmentsToRemove--; } IPath destinationPath= resource.getFullPath().removeFirstSegments(leadSegmentsToRemove); boolean isInOutputFolder= false; if (isInJavaProject) { try { isInOutputFolder= jProject.getOutputLocation().isPrefixOf(resource.getFullPath()); } catch (JavaModelException ex) { isInOutputFolder= false; } } exportClassFiles(progressMonitor, pkgRoot, resource, jProject, destinationPath); exportResource(progressMonitor, pkgRoot, isInJavaProject, resource, destinationPath, isInOutputFolder); progressMonitor.worked(1); ModalContext.checkCanceled(progressMonitor); } else exportContainer(progressMonitor, (IContainer)resource); } }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/ebd5543f306ebf04916fd6ed8a3c40d3ab53cf2b/AJJarFileExportOperation.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/wizards/exports/AJJarFileExportOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3359, 1046, 12, 921, 930, 16, 467, 5491, 7187, 4007, 7187, 13, 1216, 7558, 288, 202, 202, 759, 2970, 1181, 46, 7576, 14323, 202, 202, 759, 7615, 1404, 3359, 432, 46, 19184, 7537, 2724, 2898, 854, 11211, 434, 1390, 716, 732, 2546, 3359, 18, 202, 202, 430, 16051, 261, 2956, 1276, 432, 46, 19184, 2802, 3719, 288, 3196, 202, 759, 2970, 1181, 46, 7576, 4403, 1082, 202, 474, 5871, 7946, 12765, 33, 404, 31, 1082, 202, 45, 2261, 7456, 2375, 3475, 2375, 33, 446, 31, 1082, 202, 6494, 8048, 5852, 4109, 33, 629, 31, 1082, 202, 45, 1420, 1058, 33, 446, 31, 1082, 202, 45, 5852, 4109, 525, 4109, 33, 446, 31, 1082, 202, 430, 261, 2956, 1276, 467, 5852, 1046, 13, 288, 9506, 202, 291, 382, 5852, 4109, 33, 638, 31, 9506, 202, 45, 5852, 1046, 30356, 33, 261, 45, 5852, 1046, 13, 2956, 31, 9506, 202, 474, 618, 33, 30356, 18, 588, 17481, 5621, 9506, 202, 430, 261, 723, 480, 467, 5852, 1046, 18, 5237, 67, 3776, 597, 618, 480, 467, 5852, 1046, 18, 31075, 48, 2689, 67, 15736, 13, 288, 6862, 202, 6530, 5852, 1046, 12, 8298, 7187, 16, 30356, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 698, 288, 6862, 202, 3146, 33, 30356, 18, 588, 14655, 6291, 1420, 5621, 9506, 202, 97, 1044, 261, 5852, 1488, 503, 431, 13, 288, 6862, 202, 1289, 6210, 12, 5058, 18, 2139, 12, 10813, 4420, 6817, 5058, 18, 10813, 812, 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, 3359, 1046, 12, 921, 930, 16, 467, 5491, 7187, 4007, 7187, 13, 1216, 7558, 288, 202, 202, 759, 2970, 1181, 46, 7576, 14323, 202, 202, 759, 7615, 1404, 3359, 432, 46, 19184, 7537, 2724, 2898, 854, 11211, 434, 1390, 716, 732, 2546, 3359, 18, 202, 202, 430, 16051, 261, 2956, 1276, 432, 46, 19184, 2802, 3719, 288, 3196, 202, 759, 2970, 1181, 46, 7576, 4403, 1082, 202, 474, 5871, 7946, 12765, 33, 404, 31, 1082, 202, 45, 2261, 7456, 2375, 3475, 2375, 33, 446, 31, 1082, 202, 6494, 8048, 5852, 4109, 33, 629, 31, 1082, 202, 45, 1420, 1058, 33, 446, 31, 1082, 202, 45, 5852, 4109, 525, 4109, 33, 446, 31, 1082, 202, 430, 2 ]
Debug.output(Debug.IMR | Debug.INFORMATION, "ImR Listener at " + port + ", " + address );
Debug.output(4,"ImR Listener at " + port + ", " + address );
public int getPort() { Debug.output(Debug.IMR | Debug.INFORMATION, "ImR Listener at " + port + ", " + address ); return port; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/18367b9c8638a766302195ae097901c5637ea11f/ImplementationRepositoryImpl.java/clean/src/org/jacorb/imr/ImplementationRepositoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 11036, 1435, 3639, 288, 5411, 4015, 18, 2844, 12, 2829, 18, 3445, 54, 571, 4015, 18, 706, 23805, 16, 7682, 315, 1170, 54, 10652, 622, 315, 397, 1756, 397, 3104, 315, 397, 1758, 11272, 5411, 327, 1756, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 11036, 1435, 3639, 288, 5411, 4015, 18, 2844, 12, 2829, 18, 3445, 54, 571, 4015, 18, 706, 23805, 16, 7682, 315, 1170, 54, 10652, 622, 315, 397, 1756, 397, 3104, 315, 397, 1758, 11272, 5411, 327, 1756, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else if (message instanceof ObjectMessage) { ObjectMessage oMsg = (ObjectMessage) message;
} else if (message instanceof ObjectMessage) { ObjectMessage oMsg = (ObjectMessage)message;
public static byte[] getBytesFromMessage(Message message) throws JMSException, IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024 * 2]; int len; if (message instanceof BytesMessage) { BytesMessage bMsg = (BytesMessage) message; // put message in read-only mode bMsg.reset(); while ((len = bMsg.readBytes(buffer)) != -1) { baos.write(buffer, 0, len); } } else if (message instanceof StreamMessage) { StreamMessage sMsg = (StreamMessage) message; sMsg.reset(); while ((len = sMsg.readBytes(buffer)) != -1) { baos.write(buffer, 0, len); } } else if (message instanceof ObjectMessage) { ObjectMessage oMsg = (ObjectMessage) message; ByteArrayOutputStream bs = new ByteArrayOutputStream(); ObjectOutputStream os = new ObjectOutputStream(bs); os.writeObject(oMsg.getObject()); os.flush(); baos.write(bs.toByteArray()); os.close(); bs.close(); } else if (message instanceof TextMessage) { TextMessage tMsg = (TextMessage) message; baos.write(tMsg.getText().getBytes()); } else { throw new JMSException("Cannot get bytes from Map Message"); } baos.flush(); byte[] bytes = baos.toByteArray(); baos.close(); return bytes; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/427fca19341d145b416afaf6147c87dcbebe937a/JmsMessageUtils.java/buggy/providers/jms/src/java/org/mule/providers/jms/JmsMessageUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1160, 8526, 8425, 1265, 1079, 12, 1079, 883, 13, 1216, 20343, 16, 1860, 565, 288, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 1160, 8526, 1613, 273, 394, 1160, 63, 2163, 3247, 380, 576, 15533, 3639, 509, 562, 31, 3639, 309, 261, 2150, 1276, 5985, 1079, 13, 288, 5411, 5985, 1079, 324, 3332, 273, 261, 2160, 1079, 13, 883, 31, 5411, 368, 1378, 883, 316, 855, 17, 3700, 1965, 5411, 324, 3332, 18, 6208, 5621, 5411, 1323, 14015, 1897, 273, 324, 3332, 18, 896, 2160, 12, 4106, 3719, 480, 300, 21, 13, 288, 7734, 17548, 18, 2626, 12, 4106, 16, 374, 16, 562, 1769, 5411, 289, 3639, 289, 469, 309, 261, 2150, 1276, 3961, 1079, 13, 288, 5411, 3961, 1079, 272, 3332, 273, 261, 1228, 1079, 13, 883, 31, 5411, 272, 3332, 18, 6208, 5621, 5411, 1323, 14015, 1897, 273, 272, 3332, 18, 896, 2160, 12, 4106, 3719, 480, 300, 21, 13, 288, 7734, 17548, 18, 2626, 12, 4106, 16, 374, 16, 562, 1769, 5411, 289, 3639, 289, 469, 309, 261, 2150, 1276, 1033, 1079, 13, 288, 5411, 1033, 1079, 320, 3332, 273, 261, 921, 1079, 13, 883, 31, 5411, 11559, 7081, 273, 394, 11559, 5621, 5411, 23438, 1140, 273, 394, 23438, 12, 2038, 1769, 5411, 1140, 18, 2626, 921, 12, 83, 3332, 18, 588, 921, 10663, 5411, 1140, 18, 11330, 5621, 5411, 17548, 18, 2626, 12, 2038, 18, 869, 8826, 10663, 5411, 1140, 18, 4412, 5621, 5411, 7081, 18, 4412, 5621, 3639, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1160, 8526, 8425, 1265, 1079, 12, 1079, 883, 13, 1216, 20343, 16, 1860, 565, 288, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 1160, 8526, 1613, 273, 394, 1160, 63, 2163, 3247, 380, 576, 15533, 3639, 509, 562, 31, 3639, 309, 261, 2150, 1276, 5985, 1079, 13, 288, 5411, 5985, 1079, 324, 3332, 273, 261, 2160, 1079, 13, 883, 31, 5411, 368, 1378, 883, 316, 855, 17, 3700, 1965, 5411, 324, 3332, 18, 6208, 5621, 5411, 1323, 14015, 1897, 273, 324, 3332, 18, 896, 2160, 12, 4106, 3719, 480, 300, 21, 13, 288, 7734, 17548, 18, 2626, 12, 4106, 16, 374, 16, 562, 1769, 5411, 289, 3639, 289, 469, 309, 261, 2150, 1276, 3961, 1079, 13, 2 ]
block = new XmlSchemaDerivationMethod("None");
block = new XmlSchemaDerivationMethod(BlockConstants.NONE);
public XmlSchemaComplexType(XmlSchema schema) { super(schema); attributes = new XmlSchemaObjectCollection(); block = new XmlSchemaDerivationMethod("None"); isAbstract = false; isMixed = false; }
58536 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58536/36ebd6d1701fc509d1cc299e8d8094e30cad9d11/XmlSchemaComplexType.java/buggy/src/org/apache/ws/commons/schema/XmlSchemaComplexType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 3078, 12795, 559, 12, 4432, 3078, 1963, 13, 288, 3639, 2240, 12, 4821, 1769, 3639, 1677, 273, 394, 5714, 3078, 921, 2532, 5621, 3639, 1203, 273, 394, 5714, 3078, 12041, 8482, 1305, 12, 1768, 2918, 18, 9826, 1769, 3639, 24996, 273, 629, 31, 3639, 15707, 3960, 273, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 3078, 12795, 559, 12, 4432, 3078, 1963, 13, 288, 3639, 2240, 12, 4821, 1769, 3639, 1677, 273, 394, 5714, 3078, 921, 2532, 5621, 3639, 1203, 273, 394, 5714, 3078, 12041, 8482, 1305, 12, 1768, 2918, 18, 9826, 1769, 3639, 24996, 273, 629, 31, 3639, 15707, 3960, 273, 629, 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 ]
Vector<Coords> vEnemyCoords = new Vector(16); Vector<Integer> vECMRanges = new Vector(16);
Vector<Coords> vEnemyCoords = new Vector<Coords>(16); Vector<Integer> vECMRanges = new Vector<Integer>(16);
public static boolean isAffectedByAngelECM(Entity ae, Coords a, Coords b) { if (a == null || b == null) return false; // Only grab enemies with active Angel ECM Vector<Coords> vEnemyCoords = new Vector(16); Vector<Integer> vECMRanges = new Vector(16); for (Object eEl : ae.game.getEntitiesVector()) { Entity ent = (Entity) eEl; Coords entPos = ent.getPosition(); if (ent.isEnemyOf(ae) && ent.hasActiveAngelECM() && entPos != null) { // TODO : only use the best ECM range in a given Coords. vEnemyCoords.addElement(entPos); vECMRanges.addElement(ent.getAngelECMRange()); } // Check the ECM effects of the entity's passengers. Vector<Entity> passengers = ent.getLoadedUnits(); for (Entity other : passengers) { if (other.isEnemyOf(ae) && other.hasActiveAngelECM() && entPos != null) { // TODO : only use the best ECM range in a given Coords. vEnemyCoords.addElement(entPos); vECMRanges.addElement(other.getAngelECMRange()); } } } // none? get out of here if (vEnemyCoords.size() == 0) return false; // get intervening Coords. See the comments for intervening() and // losDivided() Coords[] coords = Coords.intervening(a, b); boolean bDivided = (a.degree(b) % 60 == 30); Enumeration<Integer> ranges = vECMRanges.elements(); for (Coords c : vEnemyCoords) { int range = ranges.nextElement(); int nLastDist = -1; // loop through intervening hexes and see if any of them are within // range for (int x = 0; x < coords.length; x++) { int nDist = c.distance(coords[x]); if (nDist <= range) return true; // optimization. if we're getting farther away, forget it // but ignore the doubled-up hexes intervening() adds along // hexlines if (!bDivided || (x % 3 == 0)) { if (nLastDist == -1) { nLastDist = nDist; } else if (nDist > nLastDist) { break; } } } } return false; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/06a898056b517cc754d7a0828c81d5bfd5e070f5/Compute.java/clean/megamek/src/megamek/common/Compute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 23775, 858, 22757, 292, 7228, 49, 12, 1943, 14221, 16, 10320, 87, 279, 16, 10320, 87, 324, 13, 288, 3639, 309, 261, 69, 422, 446, 747, 324, 422, 446, 13, 5411, 327, 629, 31, 3639, 368, 5098, 11086, 570, 351, 606, 598, 2695, 26956, 292, 7773, 49, 3639, 5589, 32, 13089, 34, 331, 664, 351, 93, 13089, 273, 394, 5589, 12, 2313, 1769, 3639, 5589, 32, 4522, 34, 331, 7228, 49, 9932, 273, 394, 5589, 12, 2313, 1769, 3639, 364, 261, 921, 425, 4958, 294, 14221, 18, 13957, 18, 588, 8108, 5018, 10756, 288, 5411, 3887, 3281, 273, 261, 1943, 13, 425, 4958, 31, 5411, 10320, 87, 3281, 1616, 273, 3281, 18, 588, 2555, 5621, 5411, 309, 261, 319, 18, 291, 664, 351, 93, 951, 12, 8906, 13, 597, 3281, 18, 5332, 3896, 22757, 292, 7228, 49, 1435, 597, 3281, 1616, 480, 446, 13, 288, 7734, 368, 2660, 294, 1338, 999, 326, 3796, 7773, 49, 1048, 316, 279, 864, 10320, 87, 18, 7734, 331, 664, 351, 93, 13089, 18, 1289, 1046, 12, 319, 1616, 1769, 7734, 331, 7228, 49, 9932, 18, 1289, 1046, 12, 319, 18, 588, 22757, 292, 7228, 49, 2655, 10663, 5411, 289, 5411, 368, 2073, 326, 7773, 49, 16605, 434, 326, 1522, 1807, 1342, 275, 6215, 18, 5411, 5589, 32, 1943, 34, 1342, 275, 6215, 273, 3281, 18, 588, 8835, 7537, 5621, 5411, 364, 261, 1943, 1308, 294, 1342, 275, 6215, 13, 288, 7734, 309, 261, 3011, 18, 291, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 23775, 858, 22757, 292, 7228, 49, 12, 1943, 14221, 16, 10320, 87, 279, 16, 10320, 87, 324, 13, 288, 3639, 309, 261, 69, 422, 446, 747, 324, 422, 446, 13, 5411, 327, 629, 31, 3639, 368, 5098, 11086, 570, 351, 606, 598, 2695, 26956, 292, 7773, 49, 3639, 5589, 32, 13089, 34, 331, 664, 351, 93, 13089, 273, 394, 5589, 12, 2313, 1769, 3639, 5589, 32, 4522, 34, 331, 7228, 49, 9932, 273, 394, 5589, 12, 2313, 1769, 3639, 364, 261, 921, 425, 4958, 294, 14221, 18, 13957, 18, 588, 8108, 5018, 10756, 288, 5411, 3887, 3281, 273, 261, 1943, 13, 425, 4958, 31, 5411, 10320, 87, 3281, 1616, 273, 3281, 18, 588, 2555, 2 ]
if (jj_3R_322()) return true;
if (jj_3R_314()) { jj_scanpos = xsp; if (jj_3R_315()) { jj_scanpos = xsp; if (jj_3R_316()) { jj_scanpos = xsp; if (jj_3R_317()) { jj_scanpos = xsp; if (jj_3R_318()) return true;
final private boolean jj_3R_282() { Token xsp; xsp = jj_scanpos; if (jj_3R_320()) { jj_scanpos = xsp; if (jj_3R_321()) { jj_scanpos = xsp; if (jj_3R_322()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/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, 54, 67, 6030, 22, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 31273, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 1578, 21, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3461, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3600, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 2313, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 4033, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 2643, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 289, 469, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 289, 469, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 327, 629, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6030, 22, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 31273, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 1578, 21, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3461, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3600, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 2 ]
BinaryStackTrace stackTrace = StackTraceUtil.translateStackTrace(logMessage, Emulator.this.classPath, Emulator.this.preprocessedSourcePath, Emulator.this.sourceDirs);
BinaryStackTrace stackTrace = StackTraceUtil.translateStackTrace(logMessage, Emulator.this.classPath, Emulator.this.preprocessedSourcePath, Emulator.this.sourceDirs, Emulator.this.environmentProperties);
public void run() { StringBuffer log = new StringBuffer( 300 ); log.append(this.header); int startPos = this.header.length(); int c; try { boolean decompilerInstalled = true; while ((c = this.input.read() ) != -1) { if (c == '\n') { String logMessage = log.toString(); this.output.println( logMessage ); log.delete( startPos, log.length() ); if (decompilerInstalled && (logMessage.indexOf('+') != -1) && (logMessage.indexOf("at ") != -1)) { try { // this seems to be an error message like // " at de.enough.polish.ClassName(+263)" // so try to use JAD for finding out the source code address: BinaryStackTrace stackTrace = StackTraceUtil.translateStackTrace(logMessage, Emulator.this.classPath, Emulator.this.preprocessedSourcePath, Emulator.this.sourceDirs); if (stackTrace != null) { if (stackTrace.couldBeResolved()) { this.output.println( this.header + stackTrace.getSourceCodeMessage() ); } else { this.output.println( this.header + "Decompiled stack-trace: " + stackTrace.getDecompiledCodeSnippet() ); } } } catch (DecompilerNotInstalledException e) { this.output.println("Unable to translate stacktrace: " + e.getMessage() ); decompilerInstalled = false; } } } else if (c != '\r') { log.append((char) c); } } this.input.close(); } catch (IOException e) { e.printStackTrace(); System.out.println("Unable to log: " + e.toString() ); } }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/35b1e09420f5573e4e79dcb88d34c4f718f5c304/Emulator.java/clean/enough-polish-build/source/src/de/enough/polish/ant/emulator/Emulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 780, 1892, 613, 273, 394, 6674, 12, 11631, 11272, 1082, 202, 1330, 18, 6923, 12, 2211, 18, 3374, 1769, 1082, 202, 474, 16013, 273, 333, 18, 3374, 18, 2469, 5621, 1082, 202, 474, 276, 31, 25083, 202, 698, 288, 9506, 202, 6494, 443, 9576, 16747, 273, 638, 31, 9506, 202, 17523, 14015, 71, 273, 333, 18, 2630, 18, 896, 1435, 262, 480, 300, 21, 13, 288, 6862, 202, 430, 261, 71, 422, 2337, 82, 6134, 288, 25083, 202, 780, 19139, 273, 613, 18, 10492, 5621, 25083, 202, 2211, 18, 2844, 18, 8222, 12, 19139, 11272, 25083, 202, 1330, 18, 3733, 12, 16013, 16, 225, 613, 18, 2469, 1435, 11272, 25083, 202, 430, 261, 323, 9576, 16747, 6862, 9506, 202, 10, 10, 261, 1330, 1079, 18, 31806, 2668, 15, 6134, 480, 300, 21, 13, 20982, 202, 10, 10, 261, 1330, 1079, 18, 31806, 2932, 270, 9369, 480, 300, 21, 3719, 288, 6862, 1082, 202, 698, 288, 6862, 9506, 202, 759, 333, 12001, 358, 506, 392, 555, 883, 3007, 6862, 9506, 202, 759, 315, 282, 622, 443, 18, 275, 4966, 18, 3915, 1468, 18, 3834, 12, 15, 22, 4449, 2225, 6862, 9506, 202, 759, 1427, 775, 358, 999, 804, 1880, 364, 13727, 596, 326, 1084, 981, 1758, 30, 6862, 9506, 202, 5905, 6332, 22327, 273, 22164, 1304, 18, 13929, 6332, 12, 1330, 1079, 16, 7377, 11775, 18, 2211, 18, 1106, 743, 16, 7377, 11775, 18, 2211, 18, 1484, 11005, 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 780, 1892, 613, 273, 394, 6674, 12, 11631, 11272, 1082, 202, 1330, 18, 6923, 12, 2211, 18, 3374, 1769, 1082, 202, 474, 16013, 273, 333, 18, 3374, 18, 2469, 5621, 1082, 202, 474, 276, 31, 25083, 202, 698, 288, 9506, 202, 6494, 443, 9576, 16747, 273, 638, 31, 9506, 202, 17523, 14015, 71, 273, 333, 18, 2630, 18, 896, 1435, 262, 480, 300, 21, 13, 288, 6862, 202, 430, 261, 71, 422, 2337, 82, 6134, 288, 25083, 202, 780, 19139, 273, 613, 18, 10492, 5621, 25083, 202, 2211, 18, 2844, 18, 8222, 12, 19139, 11272, 25083, 202, 1330, 18, 3733, 12, 16013, 16, 225, 613, 18, 2469, 1435, 11272, 25083, 2 ]
if (classVersion.equals(VersionUtil.JAXRPC_VERSION_20))
if (classVersion.equals(VersionUtil.JAXWS_VERSION_20))
public WSDLModelerBase createWSDLModeler( WSDLModelInfo modelInfo, Properties options) { WSDLModelerBase wsdlModeler = null; if (classVersion.equals(VersionUtil.JAXRPC_VERSION_20)) wsdlModeler = (WSDLModelerBase) new WSDLModeler20(modelInfo, options); else { // TODO: throw exception } return wsdlModeler; }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/02aaff79d260c2e9930a1f43aa33cabf69b72c88/JAXRPCClassFactory.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/util/JAXRPCClassFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 30567, 1488, 264, 2171, 752, 2651, 8914, 1488, 264, 12, 3639, 30567, 1488, 966, 938, 966, 16, 3639, 6183, 702, 13, 288, 3639, 30567, 1488, 264, 2171, 17642, 1488, 264, 273, 446, 31, 3639, 309, 261, 1106, 1444, 18, 14963, 12, 1444, 1304, 18, 17368, 2651, 67, 5757, 67, 3462, 3719, 5411, 17642, 1488, 264, 273, 7734, 261, 2651, 8914, 1488, 264, 2171, 13, 394, 30567, 1488, 264, 3462, 12, 2284, 966, 16, 702, 1769, 3639, 469, 288, 5411, 368, 2660, 30, 604, 1520, 3639, 289, 3639, 327, 17642, 1488, 264, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 30567, 1488, 264, 2171, 752, 2651, 8914, 1488, 264, 12, 3639, 30567, 1488, 966, 938, 966, 16, 3639, 6183, 702, 13, 288, 3639, 30567, 1488, 264, 2171, 17642, 1488, 264, 273, 446, 31, 3639, 309, 261, 1106, 1444, 18, 14963, 12, 1444, 1304, 18, 17368, 2651, 67, 5757, 67, 3462, 3719, 5411, 17642, 1488, 264, 273, 7734, 261, 2651, 8914, 1488, 264, 2171, 13, 394, 30567, 1488, 264, 3462, 12, 2284, 966, 16, 702, 1769, 3639, 469, 288, 5411, 368, 2660, 30, 604, 1520, 3639, 289, 3639, 327, 17642, 1488, 264, 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 ]
try { initKey = null; super.finalize(); } catch (Throwable e) { new RuntimeException(e); }
initKey = null;
protected void finalize() { try { initKey = null; super.finalize(); } catch (Throwable e) { new RuntimeException(e); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ed52b063d6f6a7dddc760fdb781f613b5409a8f4/ExemptionMechanism.java/buggy/modules/crypto/src/main/java/javax/crypto/ExemptionMechanism.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12409, 1435, 288, 3639, 775, 288, 5411, 1208, 653, 273, 446, 31, 5411, 2240, 18, 30343, 5621, 3639, 289, 1044, 261, 15155, 425, 13, 288, 5411, 394, 3235, 12, 73, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12409, 1435, 288, 3639, 775, 288, 5411, 1208, 653, 273, 446, 31, 5411, 2240, 18, 30343, 5621, 3639, 289, 1044, 261, 15155, 425, 13, 288, 5411, 394, 3235, 12, 73, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
following.push(FOLLOW_constraint_in_constraints1410);
following.push(FOLLOW_constraint_in_constraints1375);
public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:439:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:439:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1387); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:440:17: ( constraint[constraints] | predicate[constraints] ) int alt40=2; int LA40_0 = input.LA(1); if ( LA40_0==EOL ) { alt40=1; } else if ( LA40_0==ID ) { int LA40_2 = input.LA(2); if ( LA40_2==29 ) { int LA40_3 = input.LA(3); if ( LA40_3==ID ) { int LA40_8 = input.LA(4); if ( LA40_8==46 ) { alt40=2; } else if ( LA40_8==EOL||(LA40_8>=21 && LA40_8<=22)||LA40_8==37||(LA40_8>=39 && LA40_8<=45) ) { alt40=1; } else { NoViableAltException nvae = new NoViableAltException("440:17: ( constraint[constraints] | predicate[constraints] )", 40, 8, input); throw nvae; } } else if ( LA40_3==EOL ) { alt40=1; } else { NoViableAltException nvae = new NoViableAltException("440:17: ( constraint[constraints] | predicate[constraints] )", 40, 3, input); throw nvae; } } else if ( LA40_2==EOL||(LA40_2>=21 && LA40_2<=22)||LA40_2==37||(LA40_2>=39 && LA40_2<=45) ) { alt40=1; } else { NoViableAltException nvae = new NoViableAltException("440:17: ( constraint[constraints] | predicate[constraints] )", 40, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("440:17: ( constraint[constraints] | predicate[constraints] )", 40, 0, input); throw nvae; } switch (alt40) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:440:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1392); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:440:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1395); predicate(constraints); following.pop(); } break; } // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:441:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop42: do { int alt42=2; alt42 = dfa42.predict(input); switch (alt42) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:441:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1403); opt_eol(); following.pop(); match(input,21,FOLLOW_21_in_constraints1405); following.push(FOLLOW_opt_eol_in_constraints1407); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:441:39: ( constraint[constraints] | predicate[constraints] ) int alt41=2; int LA41_0 = input.LA(1); if ( LA41_0==EOL ) { alt41=1; } else if ( LA41_0==ID ) { int LA41_2 = input.LA(2); if ( LA41_2==29 ) { int LA41_3 = input.LA(3); if ( LA41_3==ID ) { int LA41_8 = input.LA(4); if ( LA41_8==46 ) { alt41=2; } else if ( LA41_8==EOL||(LA41_8>=21 && LA41_8<=22)||LA41_8==37||(LA41_8>=39 && LA41_8<=45) ) { alt41=1; } else { NoViableAltException nvae = new NoViableAltException("441:39: ( constraint[constraints] | predicate[constraints] )", 41, 8, input); throw nvae; } } else if ( LA41_3==EOL ) { alt41=1; } else { NoViableAltException nvae = new NoViableAltException("441:39: ( constraint[constraints] | predicate[constraints] )", 41, 3, input); throw nvae; } } else if ( LA41_2==EOL||(LA41_2>=21 && LA41_2<=22)||LA41_2==37||(LA41_2>=39 && LA41_2<=45) ) { alt41=1; } else { NoViableAltException nvae = new NoViableAltException("441:39: ( constraint[constraints] | predicate[constraints] )", 41, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("441:39: ( constraint[constraints] | predicate[constraints] )", 41, 0, input); throw nvae; } switch (alt41) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:441:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1410); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:441:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1413); predicate(constraints); following.pop(); } break; } } break; default : break loop42; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1421); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/afa2dad261bf082d1acd2655e8290f80c6bffb15/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 1171, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 24, 5520, 30, 4033, 30, 261, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 24, 5520, 30, 4033, 30, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 67, 11967, 3437, 11035, 1769, 5411, 2153, 67, 30951, 5621, 5411, 3751, 18, 5120, 5621, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 6334, 20, 30, 4033, 30, 261, 4954, 63, 11967, 65, 571, 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, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 1171, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 24, 5520, 30, 4033, 30, 261, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 2 ]
if (!jj_semLA || jj_3R_109()) return true;
if (!jj_semLA || jj_3R_110()) return true;
final private boolean jj_3R_75() { Token xsp; xsp = jj_scanpos; lookingAhead = true; jj_semLA = getToken(1).kind == GT && ((Token.GTToken)getToken(1)).realKind == RUNSIGNEDSHIFT; lookingAhead = false; if (!jj_semLA || jj_3R_109()) return true; if (jj_scan_token(GT)) return true; if (jj_scan_token(GT)) return true; if (jj_scan_token(GT)) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/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, 54, 67, 5877, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 7849, 24250, 273, 638, 31, 565, 10684, 67, 12000, 2534, 273, 9162, 12, 21, 2934, 9224, 422, 19688, 597, 7734, 14015, 1345, 18, 16506, 1345, 13, 588, 1345, 12, 21, 13, 2934, 7688, 5677, 422, 15484, 21049, 23191, 31, 565, 7849, 24250, 273, 629, 31, 565, 309, 16051, 78, 78, 67, 12000, 2534, 747, 10684, 67, 23, 54, 67, 17506, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16506, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16506, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16506, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5877, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 7849, 24250, 273, 638, 31, 565, 10684, 67, 12000, 2534, 273, 9162, 12, 21, 2934, 9224, 422, 19688, 597, 7734, 14015, 1345, 18, 16506, 1345, 13, 588, 1345, 12, 21, 13, 2934, 7688, 5677, 422, 15484, 21049, 23191, 31, 565, 7849, 24250, 273, 629, 31, 565, 309, 16051, 78, 78, 67, 12000, 2534, 747, 10684, 67, 23, 54, 67, 17506, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16506, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16506, 3719, 327, 2 ]
IViewPart newPart = showRegularView(ZoomPerspectiveFactory.STACK1_PLACEHOLDER1,
showRegularView(ZoomPerspectiveFactory.STACK1_PLACEHOLDER1,
public void testCreateViewInZoomedStack() { zoom(stackedView1); IViewPart newPart = showRegularView(ZoomPerspectiveFactory.STACK1_PLACEHOLDER1, IWorkbenchPage.VIEW_CREATE); assertZoomed(stackedView1); assertActive(stackedView1); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7946b6460d44217ceadf6c1b4e0462e195d53d80/ShowViewTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/zoom/ShowViewTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 1767, 382, 11497, 329, 2624, 1435, 288, 3639, 7182, 12, 3772, 329, 1767, 21, 1769, 3639, 2405, 17974, 1767, 12, 11497, 14781, 16772, 1733, 18, 21971, 21, 67, 12134, 21424, 21, 16, 1171, 467, 2421, 22144, 1964, 18, 12145, 67, 9344, 1769, 7734, 1815, 11497, 329, 12, 3772, 329, 1767, 21, 1769, 3639, 1815, 3896, 12, 3772, 329, 1767, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 1684, 1767, 382, 11497, 329, 2624, 1435, 288, 3639, 7182, 12, 3772, 329, 1767, 21, 1769, 3639, 2405, 17974, 1767, 12, 11497, 14781, 16772, 1733, 18, 21971, 21, 67, 12134, 21424, 21, 16, 1171, 467, 2421, 22144, 1964, 18, 12145, 67, 9344, 1769, 7734, 1815, 11497, 329, 12, 3772, 329, 1767, 21, 1769, 3639, 1815, 3896, 12, 3772, 329, 1767, 21, 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 ]
private static char lastCharacter() { char ch = firstCharacter(); while (Character.isLetterOrDigit(++ch)) ; return --ch;
private static char lastCharacter(boolean digit, boolean upperCaseLetter) { char ch='z'; if (digit) { ch='9'; } else if (upperCaseLetter) { ch='Z'; } return ch;
private static char lastCharacter() { char ch = firstCharacter(); while (Character.isLetterOrDigit(++ch)) ; return --ch; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/09c8ff5b8694c28a4503fc74c78d5441309b0939/DefaultGroovyMethods.java/clean/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1149, 1142, 7069, 1435, 288, 3639, 1149, 462, 273, 1122, 7069, 5621, 3639, 1323, 261, 7069, 18, 291, 13938, 1162, 10907, 12, 9904, 343, 3719, 274, 3639, 327, 1493, 343, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1149, 1142, 7069, 1435, 288, 3639, 1149, 462, 273, 1122, 7069, 5621, 3639, 1323, 261, 7069, 18, 291, 13938, 1162, 10907, 12, 9904, 343, 3719, 274, 3639, 327, 1493, 343, 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 ]
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() && C_DEBUG) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_NEWNAME); session.removeValue(C_NEWGROUP); session.removeValue(C_NEWDESCRIPTION); session.removeValue(C_NEWMANAGERGROUP); session.removeValue(C_NEWFOLDER); session.removeValue(C_NEWRESOURCES); session.removeValue(C_NEWTYPE); session.removeValue("lasturl"); session.removeValue("newProjectCallingFrom"); reqCont.setCurrentProject(cms.onlineProject().getId()); } String newName, newGroup, newDescription, newManagerGroup, newFolder, projectType; String newType = new String(); String action = new String(); action = (String)parameters.get("action"); CmsXmlTemplateFile xmlTemplateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); //look if we come from the explorer view String fileToGo = (String)parameters.get("file"); if (fileToGo == null){ fileToGo = (String)session.getValue("newProjectCallingFrom"); } String lasturl = (String)parameters.get("lasturl"); if (lasturl == null){ lasturl = (String)session.getValue("lasturl"); } newName = (String)parameters.get(C_PROJECTNEW_NAME); if(newName == null) { newName = (String)session.getValue(C_NEWNAME); } String errorTemplateAddOn = ""; if (fileToGo != null){ // this is from the explorer view if((!cms.getRequestContext().isProjectManager()) && (!cms.isAdmin())){ // user has no rights to create a project return startProcessing(cms, xmlTemplateDocument, elementName,parameters, "norigths"); } errorTemplateAddOn = "explorer"; session.putValue("newProjectCallingFrom", fileToGo); xmlTemplateDocument.setData("pathCorrection",""); xmlTemplateDocument.setData("backButton",lasturl); xmlTemplateDocument.setData("myUrl","resource_to_project.html"); xmlTemplateDocument.setData("dontDoIt", " //"); // we have to put the file in the box and set the projectname xmlTemplateDocument.setData("doThis","addFolder(document.PROJECTNEW.new_ressources,'"+fileToGo+"');"); if (newName == null){ newName = getProjectName(cms,fileToGo); } }else{ // this is from the administration view xmlTemplateDocument.setData("pathCorrection","../../"); xmlTemplateDocument.setData("backButton","../../../action/administration_content_top.html?sender=/system/workplace/administration/project/"); xmlTemplateDocument.setData("myUrl","index.html"); xmlTemplateDocument.setData("dontDoIt", ""); xmlTemplateDocument.setData("doThis",""); } xmlTemplateDocument.setData("onlineId", "" + cms.onlineProject().getId()); newGroup = (String)parameters.get(C_PROJECTNEW_GROUP); newDescription = (String)parameters.get(C_PROJECTNEW_DESCRIPTION); newManagerGroup = (String)parameters.get(C_PROJECTNEW_MANAGERGROUP); String allResources = (String)parameters.get(C_NEWRESOURCES); newType = (String)parameters.get(C_NEWTYPE); // if there are still values in the session (like after an error), use them if(newGroup == null) { newGroup = (String)session.getValue(C_NEWGROUP); } if(newDescription == null) { newDescription = (String)session.getValue(C_NEWDESCRIPTION); } if(newManagerGroup == null) { newManagerGroup = (String)session.getValue(C_NEWMANAGERGROUP); } if(allResources == null) { allResources = (String)session.getValue(C_NEWRESOURCES); } if(newName == null) { newName = ""; } if(newGroup == null) { newGroup = ""; } if(newDescription == null) { newDescription = ""; } if(newManagerGroup == null) { newManagerGroup = ""; } if(allResources == null) { allResources = ""; } if(newType == null || "".equals(newType)) { projectType = ""+I_CmsConstants.C_PROJECT_TYPE_NORMAL; newType = ""; } else { projectType = ""+I_CmsConstants.C_PROJECT_TYPE_TEMPORARY; } // first we look if the thread is allready running if((action != null) && ("working".equals(action))) { // project ready; clear the session session.removeValue(C_NEWNAME); session.removeValue(C_NEWGROUP); session.removeValue(C_NEWDESCRIPTION); session.removeValue(C_NEWMANAGERGROUP); session.removeValue(C_NEWFOLDER); session.removeValue(C_NEWTYPE); session.removeValue("lasturl"); session.removeValue("newProjectCallingFrom"); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "done"); } if(parameters.get("submitform") != null) { // the form has just been submitted, store the data in the session session.putValue(C_NEWNAME, newName); session.putValue(C_NEWGROUP, newGroup); session.putValue(C_NEWDESCRIPTION, newDescription); session.putValue(C_NEWMANAGERGROUP, newManagerGroup); session.putValue(C_NEWTYPE, newType); if(newName.equals("") || newGroup.equals("") || newManagerGroup.equals("") || allResources.equals("")) { templateSelector = "datamissing"+errorTemplateAddOn; } else { session.putValue(C_NEWRESOURCES, allResources); // all the required data has been entered, display 'Please wait' templateSelector = "wait"; action = "start"; } } // is the wait-page showing? if("start".equals(action)) { // YES: get the stored data newName = (String)session.getValue(C_NEWNAME); newGroup = (String)session.getValue(C_NEWGROUP); newDescription = (String)session.getValue(C_NEWDESCRIPTION); newManagerGroup = (String)session.getValue(C_NEWMANAGERGROUP); allResources = (String)session.getValue(C_NEWRESOURCES); newType = (String)session.getValue(C_NEWTYPE); // create new Project try { // append the /pics/ and /download/ path to the list of all resources String picspath = getConfigFile(cms).getPicGalleryPath(); String downloadpath = getConfigFile(cms).getDownGalleryPath(); allResources = allResources + ";" + picspath + ";" + downloadpath; // 'allResurces' has the "form res1;res2;...resk;" // this is because the simpler 'getParameterValues' method doesn't work with Silverstream Vector folders = parseResources(allResources); int numRes = folders.size(); for(int i = 0;i < numRes;i++) { // modify the foldername if nescessary (the root folder is always given // as a nice name) if(lang.getLanguageValue("title.rootfolder").equals(folders.elementAt(i))) { folders.setElementAt("/", i); } } checkRedundancies(folders); numRes = folders.size(); // could have been changed // finally create the project CmsProject project = cms.createProject(newName, newDescription, newGroup, newManagerGroup, Integer.parseInt(projectType)); // change the current project reqCont.setCurrentProject(project.getId()); templateSelector = "wait"; // copy the resources to the actual project try { // copy the resources to the actual project for(int i = 0;i < folders.size();i++) { cms.copyResourceToProject((String)folders.elementAt(i)); } } catch(CmsException e) { // if there are no projectresources in the project then delete the project Vector projectResources = cms.readAllProjectResources(project.getId()); if((projectResources == null) || (projectResources.size() == 0)){ cms.deleteProject(project.getId()); reqCont.setCurrentProject(C_PROJECT_ONLINE_ID); } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(A_OpenCms.C_OPENCMS_CRITICAL, e.getMessage()); } xmlTemplateDocument.setData("details", Utils.getStackTrace(e)); templateSelector = "errornewproject"+errorTemplateAddOn; //throw e; } } catch(CmsException exc) { xmlTemplateDocument.setData("details", Utils.getStackTrace(exc)); templateSelector = "errornewproject"+errorTemplateAddOn; } } // after an error the form data is retrieved and filled into the template xmlTemplateDocument.setData(C_NEWNAME, newName); xmlTemplateDocument.setData(C_NEWDESCRIPTION, newDescription); xmlTemplateDocument.setData(C_NEWTYPE, newType); // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/551a4d6c7cef3c86d56c009ef7bae8a9ad85e9a3/CmsAdminProjectNew.java/buggy/src/com/opencms/workplace/CmsAdminProjectNew.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 7229, 8526, 588, 1350, 12, 4747, 921, 6851, 16, 780, 3202, 812, 16, 780, 2956, 461, 16, 5582, 14544, 3977, 16, 780, 3202, 4320, 13, 15069, 4747, 503, 95, 430, 12, 45, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 10, 10, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 10, 10, 39, 67, 9394, 15329, 37, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 2211, 18, 588, 3834, 1435, 9078, 588, 1787, 1745, 792, 2956, 6, 15, 12443, 2956, 461, 631, 2011, 13, 7225, 32, 3085, 2984, 30, 2956, 461, 10019, 37, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 2211, 18, 588, 3834, 1435, 9078, 3202, 768, 291, 2773, 15, 3202, 812, 1769, 37, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 2211, 18, 588, 3834, 1435, 9078, 8109, 8502, 794, 291, 2773, 15, 12443, 3202, 4320, 631, 2011, 13, 7225, 32, 1886, 2984, 30, 3202, 4320, 10019, 97, 45, 67, 4747, 2157, 3184, 33, 6851, 18, 588, 21426, 7675, 588, 2157, 12, 3767, 1769, 4747, 21426, 3658, 660, 33, 6851, 18, 588, 21426, 5621, 4747, 4432, 3779, 25579, 292, 539, 33, 2704, 4747, 4432, 3779, 812, 12, 6851, 1769, 759, 8507, 3184, 2372, 265, 3645, 945, 780, 6769, 28657, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 28497, 1769, 430, 12, 6769, 5, 33, 2011, 15329, 759, 4479, 454, 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, 7229, 8526, 588, 1350, 12, 4747, 921, 6851, 16, 780, 3202, 812, 16, 780, 2956, 461, 16, 5582, 14544, 3977, 16, 780, 3202, 4320, 13, 15069, 4747, 503, 95, 430, 12, 45, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 10, 10, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 10, 10, 39, 67, 9394, 15329, 37, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 2211, 18, 588, 3834, 1435, 9078, 588, 1787, 1745, 792, 2956, 6, 15, 12443, 2956, 461, 631, 2011, 13, 7225, 32, 3085, 2984, 30, 2956, 461, 10019, 37, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 2211, 2 ]
XUpdateProcessor proc = new XUpdateProcessor();
XUpdateProcessor proc = new XUpdateProcessor(broker, docs);
public void testStore() throws Exception { BrokerPool.FORCE_CORRUPTION = true; BrokerPool pool = startDB(); DBBroker broker = null; try { broker = pool.get(SecurityManager.SYSTEM_USER); TransactionManager transact = pool.getTransactionManager(); Txn transaction = transact.beginTransaction(); System.out.println("Transaction started ..."); Collection root = broker.getOrCreateCollection(transaction, "/db/test"); broker.saveCollection(transaction, root); Collection test = broker.getOrCreateCollection(transaction, "/db/test/test2"); broker.saveCollection(transaction, test); IndexInfo info; info = test.validate(transaction, broker, "test.xml", TEST_XML); test.store(transaction, broker, info, TEST_XML, false); transact.commit(transaction); transaction = transact.beginTransaction(); DocumentSet docs = new DocumentSet(); docs.add(info.getDocument()); XUpdateProcessor proc = new XUpdateProcessor(); String xupdate; Modification modifications[]; System.out.println("Inserting new items ..."); // insert some nodes for (int i = 1; i <= 200; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:insert-before select=\"/products/product[1]\">" + " <product>" + " <description>Product " + i + "</description>" + " <price>" + (i * 2.5) + "</price>" + " <stock>" + (i * 10) + "</stock>" + " </product>" + " </xu:insert-before>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); } System.out.println("Adding attributes ..."); // add attribute for (int i = 1; i <= 200; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:append select=\"/products/product[" + i + "]\">" + " <xu:attribute name=\"id\">" + i + "</xu:attribute>" + " </xu:append>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); } System.out.println("Replacing elements ..."); // replace some for (int i = 1; i <= 100; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:replace select=\"/products/product[" + i + "]\">" + " <product id=\"" + i + "\">" + " <description>Replaced product</description>" + " <price>" + (i * 0.75) + "</price>" + " </product>" + " </xu:replace>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); long mods = modifications[0].process(transaction); System.out.println("Modifications: " + mods); proc.reset(); } System.out.println("Removing some elements ..."); // remove some for (int i = 1; i <= 100; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:remove select=\"/products/product[last()]\"/>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); } System.out.println("Appending some elements ..."); for (int i = 1; i <= 100; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:append select=\"/products\">" + " <product>" + " <xu:attribute name=\"id\"><xu:value-of select=\"count(/products/product) + 1\"/></xu:attribute>" + " <description>Product " + i + "</description>" + " <price>" + (i * 2.5) + "</price>" + " <stock>" + (i * 10) + "</stock>" + " </product>" + " </xu:append>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); } System.out.println("Renaming elements ..."); // rename element "description" to "descript" xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:rename select=\"/products/product/description\">descript</xu:rename>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); System.out.println("Updating attribute values ..."); // update attribute values for (int i = 1; i <= 200; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:update select=\"/products/product[" + i + "]/@id\">" + i + "u</xu:update>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); long mods = modifications[0].process(transaction); System.out.println(mods + " records modified."); proc.reset(); } System.out.println("Append new element to each item ..."); // append new element to records for (int i = 1; i <= 200; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:append select=\"/products/product[" + i + "]\">" + " <date><xu:value-of select=\"current-dateTime()\"/></date>" + " </xu:append>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); modifications[0].process(transaction); proc.reset(); } System.out.println("Updating element content ..."); // update element content for (int i = 1; i <= 200; i++) { xupdate = "<xu:modifications version=\"1.0\" xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:update select=\"/products/product[" + i + "]/price\">19.99</xu:update>" + "</xu:modifications>"; proc.setBroker(broker); proc.setDocumentSet(docs); modifications = proc.parse(new InputSource(new StringReader(xupdate))); long mods = modifications[0].process(transaction); System.out.println(mods + " records modified."); proc.reset(); } System.out.println("FINISHED!!!!");// pool.getTransactionManager().getLogManager().flushToLog(true); transact.commit(transaction); System.out.println("Transaction " + transaction.getId() + " completed"); } catch (Exception e) { System.out.println("EXCEPTION CAUGHT!!!!!!!!"); e.printStackTrace(); throw e; } finally { pool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/87548bdbaeb4364fd0c808d9603438bc746d93ac/UpdateRecoverTest.java/buggy/src/org/exist/storage/test/UpdateRecoverTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2257, 1435, 1216, 1185, 288, 3639, 20438, 2864, 18, 27817, 67, 9428, 19866, 3725, 273, 638, 31, 3639, 20438, 2864, 2845, 273, 787, 2290, 5621, 7734, 2383, 11194, 8625, 273, 446, 31, 3639, 775, 288, 5411, 8625, 273, 2845, 18, 588, 12, 4368, 1318, 18, 14318, 67, 4714, 1769, 13491, 5947, 1318, 906, 621, 273, 2845, 18, 588, 3342, 1318, 5621, 5411, 20496, 2492, 273, 906, 621, 18, 10086, 3342, 5621, 13491, 2332, 18, 659, 18, 8222, 2932, 3342, 5746, 1372, 8863, 13491, 2200, 1365, 273, 8625, 18, 588, 17717, 2532, 12, 7958, 16, 2206, 1966, 19, 3813, 8863, 5411, 8625, 18, 5688, 2532, 12, 7958, 16, 1365, 1769, 13491, 2200, 1842, 273, 8625, 18, 588, 17717, 2532, 12, 7958, 16, 2206, 1966, 19, 3813, 19, 3813, 22, 8863, 5411, 8625, 18, 5688, 2532, 12, 7958, 16, 1842, 1769, 13491, 3340, 966, 1123, 31, 5411, 1123, 273, 1842, 18, 5662, 12, 7958, 16, 8625, 16, 315, 3813, 18, 2902, 3113, 22130, 67, 4201, 1769, 5411, 1842, 18, 2233, 12, 7958, 16, 8625, 16, 1123, 16, 22130, 67, 4201, 16, 629, 1769, 13491, 906, 621, 18, 7371, 12, 7958, 1769, 13491, 2492, 273, 906, 621, 18, 10086, 3342, 5621, 13491, 4319, 694, 3270, 273, 394, 4319, 694, 5621, 5411, 3270, 18, 1289, 12, 1376, 18, 588, 2519, 10663, 5411, 1139, 1891, 5164, 5418, 273, 394, 1139, 1891, 5164, 12, 21722, 16, 3270, 1769, 13491, 514, 619, 2725, 31, 5411, 3431, 1480, 17953, 8526, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2257, 1435, 1216, 1185, 288, 3639, 20438, 2864, 18, 27817, 67, 9428, 19866, 3725, 273, 638, 31, 3639, 20438, 2864, 2845, 273, 787, 2290, 5621, 7734, 2383, 11194, 8625, 273, 446, 31, 3639, 775, 288, 5411, 8625, 273, 2845, 18, 588, 12, 4368, 1318, 18, 14318, 67, 4714, 1769, 13491, 5947, 1318, 906, 621, 273, 2845, 18, 588, 3342, 1318, 5621, 5411, 20496, 2492, 273, 906, 621, 18, 10086, 3342, 5621, 13491, 2332, 18, 659, 18, 8222, 2932, 3342, 5746, 1372, 8863, 13491, 2200, 1365, 273, 8625, 18, 588, 17717, 2532, 12, 7958, 16, 2206, 1966, 19, 3813, 8863, 5411, 8625, 18, 5688, 2532, 12, 7958, 16, 1365, 1769, 13491, 2200, 1842, 273, 8625, 18, 2 ]
validActions = getAvailableChildrenAtIndex((Element) parent, childPosition); cmnodes = getValidCMNodes(childPosition, ModelQueryAction.INSERT, validActions); Iterator nodeIterator = cmnodes.iterator();
cmnodes = getAvailableChildElementDeclarations((Element)parent, childPosition, ModelQueryAction.INSERT); List strictCMNodeSuggestions = null; if (XMLUIPreferenceNames.SUGGESTION_STRATEGY_VALUE_STRICT.equals(XMLUIPlugin.getInstance().getPreferenceStore().getString(XMLUIPreferenceNames.SUGGESTION_STRATEGY))) { strictCMNodeSuggestions = getValidChildElementDeclarations((Element)parent, childPosition, ModelQueryAction.INSERT); } Iterator nodeIterator = cmnodes.iterator();
protected void addTagInsertionProposals(ContentAssistRequest contentAssistRequest, int childPosition) { List cmnodes = null; Node parent = contentAssistRequest.getParent(); List validActions = null; String error = null; // CMVC #242943 shouldn't have proposals before XMLPI // (nsd) This is only valid at the document element level // only valid if it's XML (check added 2/17/2004) if (parent != null && parent.getNodeType() == Node.DOCUMENT_NODE && ((IDOMDocument) parent).isXMLType() && !isCursorAfterXMLPI(contentAssistRequest)) { return; } // only want proposals if cursor is after doctype... if (!isCursorAfterDoctype(contentAssistRequest)) return; // CMVC 248081 // fix for meta-info comment nodes.. they currently "hide" other // proposals because the don't // have a content model (so can't propose any children..) if (parent != null && parent instanceof IDOMNode && isCommentNode((IDOMNode) parent)) { // loop and find non comment node? while (parent != null && isCommentNode((IDOMNode) parent)) { parent = (IDOMNode) parent.getParentNode(); } } if (parent.getNodeType() == Node.ELEMENT_NODE) { CMElementDeclaration parentDecl = getCMElementDeclaration(parent); if (parentDecl != null) { // XSD-specific ability - no filtering CMDataType childType = parentDecl.getDataType(); if (childType != null) { String[] childStrings = childType.getEnumeratedValues(); if (childStrings != null) { // the content string is the sole valid child...so // replace the rest int begin = contentAssistRequest.getReplacementBeginPosition(); int length = contentAssistRequest.getReplacementLength(); if (parent instanceof IDOMNode) { if (((IDOMNode) parent).getLastStructuredDocumentRegion() != ((IDOMNode) parent).getFirstStructuredDocumentRegion()) { begin = ((IDOMNode) parent).getFirstStructuredDocumentRegion().getEndOffset(); length = ((IDOMNode) parent).getLastStructuredDocumentRegion().getStartOffset() - begin; } } String proposedInfo = getAdditionalInfo(parentDecl, childType); for (int i = 0; i < childStrings.length; i++) { CustomCompletionProposal textProposal = new CustomCompletionProposal(childStrings[i], begin, length, childStrings[i].length(), XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_ENUM), childStrings[i], null, proposedInfo, XMLRelevanceConstants.R_TAG_INSERTION); contentAssistRequest.addProposal(textProposal); } } } } if (parentDecl != null && parentDecl.getContentType() == CMElementDeclaration.PCDATA) { addPCDATAProposal(parentDecl.getNodeName(), contentAssistRequest); } else { // retrieve the list of children validActions = getAvailableChildrenAtIndex((Element) parent, childPosition); cmnodes = getValidCMNodes(childPosition, ModelQueryAction.INSERT, validActions); Iterator nodeIterator = cmnodes.iterator(); if (!nodeIterator.hasNext()) { if (getCMElementDeclaration(parent) != null) error = NLS.bind(XMLUIMessages._Has_no_available_child, (new Object[]{parent.getNodeName()})); else error = NLS.bind(XMLUIMessages.Element__is_unknown, (new Object[]{parent.getNodeName()})); } String matchString = contentAssistRequest.getMatchString(); // chop off any leading <'s and whitespace from the // matchstring while ((matchString.length() > 0) && (Character.isWhitespace(matchString.charAt(0)) || beginsWith(matchString, "<"))) //$NON-NLS-1$ //$NON-NLS-1$ matchString = matchString.substring(1); while (nodeIterator.hasNext()) { Object o = nodeIterator.next(); if (o instanceof CMElementDeclaration) { CMElementDeclaration elementDecl = (CMElementDeclaration) o; // only add proposals for the child element's that // begin with the matchstring String tagname = getRequiredName(parent, elementDecl); Image image = CMImageUtil.getImage(elementDecl); if (image == null) { image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC); } // Account for the &lt; and &gt;. If attributes were // added, the cursor will be placed // at the offset before of the first character of the // first attribute name. int markupAdjustment = getContentGenerator().getMinimalStartTagLength(parent, elementDecl); if (beginsWith(tagname, matchString)) { String proposedText = getRequiredText(parent, elementDecl); String proposedInfo = getAdditionalInfo(parentDecl, elementDecl); CustomCompletionProposal proposal = new CustomCompletionProposal(proposedText, contentAssistRequest.getReplacementBeginPosition(), contentAssistRequest.getReplacementLength(), markupAdjustment, image, tagname, null, proposedInfo, XMLRelevanceConstants.R_TAG_INSERTION); contentAssistRequest.addProposal(proposal); } } } if (contentAssistRequest.getProposals().size() == 0) { if (error != null) setErrorMessage(error); else if (contentAssistRequest.getMatchString() != null && contentAssistRequest.getMatchString().length() > 0) setErrorMessage(NLS.bind(XMLUIMessages.No_known_child_tag, (new Object[]{parent.getNodeName(), contentAssistRequest.getMatchString()}))); //$NON-NLS-1$ = "No known child tag names of <{0}> begin with \"{1}\"." else setErrorMessage(NLS.bind(XMLUIMessages.__Has_no_known_child, (new Object[]{parent.getNodeName()}))); } } } else if (parent.getNodeType() == Node.DOCUMENT_NODE) { // Can only prompt with elements if the cursor position is past // the XML processing // instruction and DOCTYPE declaration boolean xmlpiFound = false; boolean doctypeFound = false; int minimumOffset = -1; for (Node child = parent.getFirstChild(); child != null; child = child.getNextSibling()) { boolean xmlpi = (child.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE && child.getNodeName().equals("xml")); //$NON-NLS-1$ boolean doctype = child.getNodeType() == Node.DOCUMENT_TYPE_NODE; if (xmlpi || doctype && minimumOffset < 0) minimumOffset = ((IDOMNode) child).getFirstStructuredDocumentRegion().getStartOffset() + ((IDOMNode) child).getFirstStructuredDocumentRegion().getTextLength(); xmlpiFound = xmlpiFound || xmlpi; doctypeFound = doctypeFound || doctype; } if (!xmlpiFound && contentAssistRequest.getReplacementBeginPosition() < minimumOffset) { addXMLProposal(contentAssistRequest); } if (contentAssistRequest.getReplacementBeginPosition() >= minimumOffset) { List childDecls = getAvailableRootChildren((Document) parent, childPosition); for (int i = 0; i < childDecls.size(); i++) { CMElementDeclaration ed = (CMElementDeclaration) childDecls.get(i); if (ed != null) { Image image = CMImageUtil.getImage(ed); if (image == null) { image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC); } String proposedText = getRequiredText(parent, ed); String tagname = getRequiredName(parent, ed); // account for the &lt; and &gt; int markupAdjustment = getContentGenerator().getMinimalStartTagLength(parent, ed); String proposedInfo = getAdditionalInfo(null, ed); CustomCompletionProposal proposal = new CustomCompletionProposal(proposedText, contentAssistRequest.getReplacementBeginPosition(), contentAssistRequest.getReplacementLength(), markupAdjustment, image, tagname, null, proposedInfo, XMLRelevanceConstants.R_TAG_INSERTION); contentAssistRequest.addProposal(proposal); } } } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/f89840b1b086a12da535f62a4b75b76ed087791e/AbstractContentAssistProcessor.java/buggy/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/contentassist/AbstractContentAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 21495, 29739, 626, 22536, 12, 1350, 2610, 376, 691, 913, 2610, 376, 691, 16, 509, 1151, 2555, 13, 288, 202, 202, 682, 5003, 4690, 273, 446, 31, 202, 202, 907, 982, 273, 913, 2610, 376, 691, 18, 588, 3054, 5621, 202, 202, 682, 923, 6100, 273, 446, 31, 202, 202, 780, 555, 273, 446, 31, 202, 202, 759, 15871, 13464, 468, 3247, 5540, 8942, 12044, 1404, 1240, 450, 22536, 1865, 3167, 1102, 202, 202, 759, 261, 2387, 72, 13, 1220, 353, 1338, 923, 622, 326, 1668, 930, 1801, 202, 202, 759, 1338, 923, 309, 518, 1807, 3167, 261, 1893, 3096, 576, 19, 4033, 19, 6976, 24, 13, 202, 202, 430, 261, 2938, 480, 446, 597, 982, 18, 588, 15101, 1435, 422, 2029, 18, 18450, 67, 8744, 597, 14015, 734, 1872, 2519, 13, 982, 2934, 291, 4201, 559, 1435, 597, 401, 291, 6688, 4436, 4201, 1102, 12, 1745, 2610, 376, 691, 3719, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 1338, 2545, 450, 22536, 309, 3347, 353, 1839, 24909, 2777, 202, 202, 430, 16051, 291, 6688, 4436, 3244, 12387, 12, 1745, 2610, 376, 691, 3719, 1082, 202, 2463, 31, 202, 202, 759, 15871, 13464, 4248, 3672, 11861, 202, 202, 759, 2917, 364, 2191, 17, 1376, 2879, 2199, 838, 2898, 4551, 315, 11248, 6, 1308, 202, 202, 759, 450, 22536, 2724, 326, 2727, 1404, 202, 202, 759, 1240, 279, 913, 938, 261, 2048, 848, 1404, 450, 4150, 1281, 2325, 838, 13, 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, 21495, 29739, 626, 22536, 12, 1350, 2610, 376, 691, 913, 2610, 376, 691, 16, 509, 1151, 2555, 13, 288, 202, 202, 682, 5003, 4690, 273, 446, 31, 202, 202, 907, 982, 273, 913, 2610, 376, 691, 18, 588, 3054, 5621, 202, 202, 682, 923, 6100, 273, 446, 31, 202, 202, 780, 555, 273, 446, 31, 202, 202, 759, 15871, 13464, 468, 3247, 5540, 8942, 12044, 1404, 1240, 450, 22536, 1865, 3167, 1102, 202, 202, 759, 261, 2387, 72, 13, 1220, 353, 1338, 923, 622, 326, 1668, 930, 1801, 202, 202, 759, 1338, 923, 309, 518, 1807, 3167, 261, 1893, 3096, 576, 19, 4033, 19, 6976, 24, 13, 202, 202, 430, 261, 2938, 480, 446, 597, 2 ]
public final void setCanCall() { setFlag(true, CAN_CALL); if (base != null) base.setCanRead(); }
public final void setCanCall(boolean called) { setFlag(called, CAN_CALL); }
public final void setCanCall() { setFlag(true, CAN_CALL); if (base != null) base.setCanRead(); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/2e24b968d0493c37396aed27f114133eaea8c619/Declaration.java/clean/gnu/expr/Declaration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 444, 2568, 1477, 1435, 225, 288, 565, 444, 4678, 12, 3767, 16, 22709, 67, 13730, 1769, 565, 309, 261, 1969, 480, 446, 13, 1377, 1026, 18, 542, 2568, 1994, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 444, 2568, 1477, 1435, 225, 288, 565, 444, 4678, 12, 3767, 16, 22709, 67, 13730, 1769, 565, 309, 261, 1969, 480, 446, 13, 1377, 1026, 18, 542, 2568, 1994, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Log.logException(Log.ERROR, MODULE, ioe);
Log.logException(Log.LEVEL_ERROR, MODULE, ioe);
private static boolean tryComm(StatusUpdate su, HTTPConnection mConnection, String urlPath) { try { HTTPResponse rsp = null; rsp = mConnection.Head(urlPath); // handle 30x redirects // (and authorization failure) int rspCode = rsp.getStatusCode(); // try actual communcation lastRespCode = rspCode; if (rspCode >= 300 && rspCode < 400) { // retry, the library will have fixed the URL rsp = mConnection.Post(urlPath); } return rspCode == 200; } catch (UnknownHostException uhe) { su.error("Unknown host: " + mConnection.getHost()); } catch (IOException ioe) { // we can't directly catch the SSLPeerUnverifiedException, because Java 1.3 barfs and prevents // loading this class at all. Instead, cast it inside another try-catch... try { if (ioe instanceof javax.net.ssl.SSLPeerUnverifiedException) { Log.logException(Log.ERROR, MODULE, ioe); JOptionPane.showMessageDialog((Component) su, grRes.getString(MODULE, "noAuth"), grRes.getString(MODULE, "error"), JOptionPane.ERROR_MESSAGE); } else { Log.logException(Log.ERROR, MODULE, ioe); } } catch (NoClassDefFoundError ncdfe) { Log.logException(Log.ERROR, MODULE, ioe); } } catch (ModuleException me) { Log.logException(Log.ERROR, MODULE, me); } return false; }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/1faa1edcd69ba6f773ebcc5a8a21f029bd9e2263/GalleryComm.java/buggy/gallery_remote/com/gallery/GalleryRemote/GalleryComm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 775, 12136, 12, 1482, 1891, 1597, 16, 2239, 1952, 312, 1952, 16, 514, 26186, 13, 288, 202, 202, 698, 288, 1082, 202, 3693, 1064, 12049, 273, 446, 31, 1082, 202, 86, 1752, 273, 312, 1952, 18, 1414, 12, 718, 743, 1769, 1082, 202, 759, 1640, 5196, 92, 18064, 1082, 202, 759, 261, 464, 6093, 5166, 13, 1082, 202, 474, 12049, 1085, 273, 12049, 18, 588, 14041, 5621, 282, 368, 775, 3214, 1543, 551, 367, 1082, 202, 2722, 9732, 1085, 273, 12049, 1085, 31, 1082, 202, 430, 261, 86, 1752, 1085, 1545, 11631, 597, 12049, 1085, 411, 7409, 13, 288, 9506, 202, 759, 3300, 16, 326, 5313, 903, 1240, 5499, 326, 1976, 9506, 202, 86, 1752, 273, 312, 1952, 18, 3349, 12, 718, 743, 1769, 1082, 202, 97, 1082, 202, 2463, 12049, 1085, 422, 4044, 31, 202, 202, 97, 1044, 261, 4874, 29776, 582, 580, 13, 288, 1082, 202, 26560, 18, 1636, 2932, 4874, 1479, 30, 315, 397, 312, 1952, 18, 588, 2594, 10663, 202, 202, 97, 1044, 261, 14106, 10847, 13, 288, 1082, 202, 759, 732, 848, 1404, 5122, 1044, 326, 7419, 6813, 984, 19685, 503, 16, 2724, 5110, 404, 18, 23, 4653, 2556, 471, 17793, 1082, 202, 759, 7153, 333, 667, 622, 777, 18, 17561, 16, 4812, 518, 4832, 4042, 775, 17, 14683, 2777, 1082, 202, 698, 288, 9506, 202, 430, 261, 1594, 73, 1276, 6863, 18, 2758, 18, 8157, 18, 6745, 6813, 984, 19685, 503, 13, 288, 6862, 202, 1343, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 775, 12136, 12, 1482, 1891, 1597, 16, 2239, 1952, 312, 1952, 16, 514, 26186, 13, 288, 202, 202, 698, 288, 1082, 202, 3693, 1064, 12049, 273, 446, 31, 1082, 202, 86, 1752, 273, 312, 1952, 18, 1414, 12, 718, 743, 1769, 1082, 202, 759, 1640, 5196, 92, 18064, 1082, 202, 759, 261, 464, 6093, 5166, 13, 1082, 202, 474, 12049, 1085, 273, 12049, 18, 588, 14041, 5621, 282, 368, 775, 3214, 1543, 551, 367, 1082, 202, 2722, 9732, 1085, 273, 12049, 1085, 31, 1082, 202, 430, 261, 86, 1752, 1085, 1545, 11631, 597, 12049, 1085, 411, 7409, 13, 288, 9506, 202, 759, 3300, 16, 326, 5313, 903, 1240, 5499, 326, 1976, 9506, 202, 86, 2 ]
UIJob updateJob = new UIJob(ProgressMessages.getString("ProgressManager.openJobName")) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { busy[0] = false; dialog.open(); if (monitor.isCanceled()) return Status.CANCEL_STATUS; else return Status.OK_STATUS; } }; updateJob.schedule(100);
scheduleProgressMonitorJob(dialog,busy);
public void busyCursorWhile(final IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { final ProgressMonitorJobsDialog dialog = new ProgressMonitorJobsDialog(null); dialog.setOpenOnRun(false); final boolean[] busy = { true }; UIJob updateJob = new UIJob(ProgressMessages.getString("ProgressManager.openJobName")) {//$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { busy[0] = false; dialog.open(); if (monitor.isCanceled()) return Status.CANCEL_STATUS; else return Status.OK_STATUS; } }; updateJob.schedule(100); final InvocationTargetException[] invokes = new InvocationTargetException[1]; final InterruptedException[] interrupt = new InterruptedException[1]; invokes[0] = null; interrupt[0] = null; BusyIndicator.showWhile(Display.getCurrent(), new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { try { dialog.setOpenOnRun(false); dialog.run(true /* fork */ , true /* cancelable */ , runnable); //Run the event loop until the progress job wakes up Display display = Display.getCurrent(); while (busy[0]) { if (!display.readAndDispatch()) display.sleep(); } } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0] = e; } } }); if (invokes[0] != null) throw invokes[0]; if (interrupt[0] != null) throw interrupt[0]; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7bad9bc3c2103152c4e49212579c3b374497d59d/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21697, 6688, 15151, 12, 6385, 467, 20013, 1190, 5491, 14685, 13, 1216, 15342, 16, 7558, 288, 202, 202, 6385, 10980, 7187, 7276, 6353, 6176, 273, 394, 10980, 7187, 7276, 6353, 12, 2011, 1769, 202, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 202, 202, 6385, 1250, 8526, 21697, 273, 288, 638, 289, 31, 1082, 202, 5370, 2278, 1089, 2278, 273, 394, 6484, 2278, 12, 5491, 5058, 18, 588, 780, 2932, 5491, 1318, 18, 3190, 29425, 6, 3719, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 20308, 202, 380, 261, 5836, 17, 24060, 13, 202, 380, 3196, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 382, 57, 1285, 76, 896, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 202, 1195, 1082, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 9274, 93, 63, 20, 65, 273, 629, 31, 9506, 202, 12730, 18, 3190, 5621, 9506, 202, 430, 261, 10259, 18, 291, 23163, 10756, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 9506, 202, 12107, 6862, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 1082, 202, 97, 202, 202, 20451, 202, 202, 2725, 2278, 18, 10676, 12, 6625, 1769, 202, 202, 6385, 15342, 8526, 18058, 273, 394, 15342, 63, 21, 15533, 202, 202, 6385, 7558, 8526, 13123, 273, 394, 7558, 63, 21, 15533, 202, 202, 5768, 601, 281, 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, 21697, 6688, 15151, 12, 6385, 467, 20013, 1190, 5491, 14685, 13, 1216, 15342, 16, 7558, 288, 202, 202, 6385, 10980, 7187, 7276, 6353, 6176, 273, 394, 10980, 7187, 7276, 6353, 12, 2011, 1769, 202, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 202, 202, 6385, 1250, 8526, 21697, 273, 288, 638, 289, 31, 1082, 202, 5370, 2278, 1089, 2278, 273, 394, 6484, 2278, 12, 5491, 5058, 18, 588, 780, 2932, 5491, 1318, 18, 3190, 29425, 6, 3719, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 20308, 202, 380, 261, 5836, 17, 24060, 13, 202, 380, 3196, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 2 ]
final ObjectOutputStream oos = new ObjectOutputStream(aos);
ObjectOutputStream oos = new ObjectOutputStream(aos);
public void pushObject(Object obj) { if(obj instanceof InetSocketAddress){ pushInetSocketAddress((InetSocketAddress) obj); pushByte(INET_SOCKET_ADDR); return; } if (aos == null) aos = new AuxOutputStream(); aos.setInternal(); try { final ObjectOutputStream oos = new ObjectOutputStream(aos); oos.writeObject(obj); oos.close(); } catch (IOException ex) { throw new MessageException("Error writing object to message.",ex); } mbuf.len = aos.length(); push(mbuf); aos.copyInternalTo(mbuf.data, mbuf.off, mbuf.len); pushInt(mbuf.len); pushByte(GENERIC_OBJECT); }
47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/cbbbe50f14c3ebcc2a939948e5ca87c12b95eda3/Message.java/clean/trunk/appia/src/org/continuent/appia/core/message/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1817, 921, 12, 921, 1081, 13, 288, 202, 202, 430, 12, 2603, 1276, 17943, 15329, 1082, 202, 6206, 382, 278, 15520, 12443, 382, 278, 15520, 13, 1081, 1769, 1082, 202, 6206, 3216, 12, 18819, 67, 25699, 67, 14142, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 430, 261, 69, 538, 422, 446, 13, 1082, 202, 69, 538, 273, 394, 432, 2616, 4632, 5621, 9506, 202, 69, 538, 18, 542, 3061, 5621, 202, 202, 698, 288, 1082, 202, 6385, 23438, 24956, 273, 394, 23438, 12, 69, 538, 1769, 1082, 202, 83, 538, 18, 2626, 921, 12, 2603, 1769, 1082, 202, 83, 538, 18, 4412, 5621, 202, 202, 97, 1044, 261, 14106, 431, 13, 288, 1082, 202, 12849, 394, 2350, 503, 2932, 668, 7410, 733, 358, 883, 1199, 16, 338, 1769, 202, 202, 97, 9506, 202, 1627, 696, 18, 1897, 273, 279, 538, 18, 2469, 5621, 202, 202, 6206, 12, 1627, 696, 1769, 202, 202, 69, 538, 18, 3530, 3061, 774, 12, 1627, 696, 18, 892, 16, 312, 4385, 18, 3674, 16, 312, 4385, 18, 1897, 1769, 202, 202, 6206, 1702, 12, 1627, 696, 18, 1897, 1769, 202, 202, 6206, 3216, 12, 13990, 2871, 67, 9422, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 1817, 921, 12, 921, 1081, 13, 288, 202, 202, 430, 12, 2603, 1276, 17943, 15329, 1082, 202, 6206, 382, 278, 15520, 12443, 382, 278, 15520, 13, 1081, 1769, 1082, 202, 6206, 3216, 12, 18819, 67, 25699, 67, 14142, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 430, 261, 69, 538, 422, 446, 13, 1082, 202, 69, 538, 273, 394, 432, 2616, 4632, 5621, 9506, 202, 69, 538, 18, 542, 3061, 5621, 202, 202, 698, 288, 1082, 202, 6385, 23438, 24956, 273, 394, 23438, 12, 69, 538, 1769, 1082, 202, 83, 538, 18, 2626, 921, 12, 2603, 1769, 1082, 202, 83, 538, 18, 4412, 5621, 202, 202, 97, 1044, 261, 14106, 431, 13, 288, 2 ]
if(C_DEBUG && A_OpenCms.isLogging()) {
if(C_DEBUG && (A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } CmsXmlTemplateFile xmlTemplateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); I_CmsSession session = cms.getRequestContext().getSession(true); I_CmsRegistry reg = cms.getRegistry(); String view = (String)parameters.get(C_VIEW); String module = (String)parameters.get(C_MODULENAME); if((view != null) && (C_DESCRIPTION.equals(view))) { // set the values in the template "description" xmlTemplateDocument.setData("name", module); xmlTemplateDocument.setData("version", "" + reg.getModuleVersion(module)); xmlTemplateDocument.setData("descriptiontext", reg.getModuleDescription(module)); xmlTemplateDocument.setData("author", reg.getModuleAuthor(module)); xmlTemplateDocument.setData("email", reg.getModuleAuthorEmail(module)); xmlTemplateDocument.setData("createdate", Utils.getNiceDate(reg.getModuleCreateDate(module))); xmlTemplateDocument.setData("uploadfrom", reg.getModuleUploadedBy(module)); xmlTemplateDocument.setData("uploaddate", Utils.getNiceDate(reg.getModuleUploadDate(module))); xmlTemplateDocument.setData("view", reg.getModuleViewName(module)); String docu = reg.getModuleDocumentPath(module); if((docu != null) && (docu.length() > 1)) { xmlTemplateDocument.setData("documentation", docu.substring(1)); } else { xmlTemplateDocument.setData("documentation", ""); } Vector depNames = new Vector(); Vector minVersion = new Vector(); Vector maxVersion = new Vector(); int deps = reg.getModuleDependencies(module, depNames, minVersion, maxVersion); String dependences = ""; for(int i = 0;i < deps;i++) { String max = (String)maxVersion.elementAt(i); if("-1".equals(max)) { dependences += (String)depNames.elementAt(i) + " " + (String)minVersion.elementAt(i) + " - " + "*" + "\n"; } else { dependences += (String)depNames.elementAt(i) + " " + (String)minVersion.elementAt(i) + " - " + max + "\n"; } } xmlTemplateDocument.setData("dependences", dependences); String[] repositorys = reg.getModuleRepositories(module); String outputRep = ""; for(int i = 0;i < repositorys.length;i++) { outputRep += repositorys[i] + "\n"; } xmlTemplateDocument.setData("repository", outputRep); // set the correct templateselector templateSelector = C_DESCRIPTION; } else { if((view != null) && (C_PARAMETER.equals(view))) { // set the values in the template "parameter" xmlTemplateDocument.setData("name", module); xmlTemplateDocument.setData("version", "" + reg.getModuleVersion(module)); String[] parameterNames = reg.getModuleParameterNames(module); String allParameter = ""; for(int i = 0;i < parameterNames.length;i++) { xmlTemplateDocument.setData("paraname", parameterNames[i]); xmlTemplateDocument.setData("paravalue", reg.getModuleParameter(module, parameterNames[i])); allParameter += xmlTemplateDocument.getProcessedDataValue("parameterentry"); } xmlTemplateDocument.setData("allparameter", allParameter); // set the correct templateselector templateSelector = C_PARAMETER; } else { if((view != null) && (C_CHANGE_PARAMETER.equals(view))) { // set the values in the template "changeparameter" String parameter = (String)parameters.get("selectpara"); String fromError = (String)parameters.get(C_FROMERRORPAGE); if(fromError != null) { module = (String)session.getValue(C_SESSION_MODULENAME); parameter = (String)session.getValue(C_SESSION_PARAMETER); session.removeValue(C_SESSION_MODULENAME); session.removeValue(C_SESSION_PARAMETER); } xmlTemplateDocument.setData("name", module); xmlTemplateDocument.setData("version", "" + reg.getModuleVersion(module)); xmlTemplateDocument.setData("paraname", parameter); xmlTemplateDocument.setData("paratext", reg.getModuleParameterDescription(module, parameter)); xmlTemplateDocument.setData("paratype", reg.getModuleParameterType(module, parameter)); xmlTemplateDocument.setData("paravalue", reg.getModuleParameter(module, parameter)); // set the correct templateselector templateSelector = C_CHANGE_PARAMETER; } else { if((view != null) && (C_NEW_VALUE.equals(view))) { // Now we can finaly change the value. String parameter = (String)parameters.get("parameter"); String value = (String)parameters.get("parawert"); xmlTemplateDocument.setData("name", module); templateSelector = "done"; String newValue = checkType(reg.getModuleParameterType(module, parameter), value); if(newValue != null) { reg.setModuleParameter(module, parameter, newValue); } else { // wrong value session.putValue(C_SESSION_MODULENAME, module); session.putValue(C_SESSION_PARAMETER, parameter); templateSelector = "error"; xmlTemplateDocument.setData("paraname", parameter); xmlTemplateDocument.setData("DETAILS", ""); } } } } } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsAdminModuleProperties.java/clean/src/com/opencms/workplace/CmsAdminModuleProperties.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, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 261, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 3719, 288, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 588, 1787, 913, 434, 930, 315, 397, 14015, 2956, 461, 422, 446, 13, 692, 3532, 3085, 2984, 294, 14453, 10019, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 3202, 585, 353, 30, 315, 397, 28215, 1769, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 8109, 1542, 2442, 353, 30, 315, 397, 14015, 3202, 4320, 422, 446, 13, 692, 3532, 1886, 2984, 294, 1542, 4320, 10019, 3639, 289, 3639, 16084, 2283, 812, 2025, 2283, 2519, 273, 336, 5460, 2283, 812, 12, 6851, 16, 28215, 16, 14453, 16, 1472, 16, 1542, 4320, 1769, 3639, 467, 67, 4747, 2157, 1339, 273, 6166, 18, 588, 21426, 7675, 588, 2157, 12, 3767, 1769, 3639, 467, 67, 4747, 4243, 960, 273, 6166, 18, 588, 4243, 5621, 3639, 514, 1476, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 12145, 1769, 3639, 514, 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, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 261, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 3719, 288, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 588, 1787, 913, 434, 930, 315, 397, 14015, 2956, 461, 422, 446, 13, 692, 3532, 3085, 2984, 294, 14453, 10019, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 2 ]
LOG.debug("---------------------------\nFreeing page: " + page.getPageNum());
public void removePage(DOMPage page) { dataCache.remove(page); DOMFilePageHeader ph = page.getPageHeader(); if (ph.getNextDataPage() > -1) { DOMPage next = getCurrentPage(ph.getNextDataPage()); next.getPageHeader().setPrevDataPage(ph.getPrevDataPage()); next.setDirty(true); dataCache.add(next); } if(ph.getPrevDataPage() > -1) { DOMPage prev = getCurrentPage(ph.getPrevDataPage()); prev.getPageHeader().setNextDataPage(ph.getNextDataPage()); prev.setDirty(true); dataCache.add(prev); } try { ph.setNextDataPage(-1); ph.setDataLength(0); ph.setDataLength(0); ph.setNextTID((short) -1); ph.setRecordCount((short) 0); unlinkPages(page.page); } catch (IOException ioe) { LOG.warn(ioe); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/2dc4710789f4dba622b95b3398a7f16b0d20a8b6/DOMFile.java/buggy/src/org/exist/storage/store/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 1071, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 918, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 1206, 1964, 12, 8168, 1964, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 1363, 13, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 288, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 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, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 2018, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 1071, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 1964, 2578, 10663, 918, 4842, 18, 4148, 2932, 1271, 13849, 64, 82, 9194, 310, 1363, 30, 315, 397, 1363, 18, 588, 2 ]
int diff;
emitREBytecode(CompilerState state, RECompiled re, int pc, RENode t) { RENode nextAlt; int nextAltFixup, nextTermFixup; int diff; RECharSet charSet; byte[] program = re.program; while (t != null) { program[pc++] = t.op; switch (t.op) { case REOP_EMPTY: --pc; break; case REOP_ALT: nextAlt = t.kid2; nextAltFixup = pc; /* address of next alternate */ pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_JUMP; nextTermFixup = pc; /* address of following term */ pc += OFFSET_LEN; diff = pc - nextAltFixup; SET_OFFSET(program, nextAltFixup, diff); pc = emitREBytecode(state, re, pc, nextAlt); program[pc++] = REOP_JUMP; nextAltFixup = pc; pc += OFFSET_LEN; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); diff = pc - nextAltFixup; SET_OFFSET(program, nextAltFixup, diff); break; case REOP_FLAT: /* * Consecutize FLAT's if possible. */ if (t.flatIndex != -1) { while ((t.next != null) && (t.next.op == REOP_FLAT) && ((t.flatIndex + t.length) == t.next.flatIndex)) { t.length += t.next.length; t.next = t.next.next; } } if ((t.flatIndex != -1) && (t.length > 1)) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLATi; else program[pc - 1] = REOP_FLAT; SET_ARG(program, pc, t.flatIndex); pc += ARG_LEN; SET_ARG(program, pc, t.length); pc += ARG_LEN; } else { if (t.chr < 256) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLAT1i; else program[pc - 1] = REOP_FLAT1; program[pc++] = (byte)(t.chr); } else { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_UCFLAT1i; else program[pc - 1] = REOP_UCFLAT1; SET_ARG(program, pc, t.chr); pc += ARG_LEN; } } break; case REOP_LPAREN: SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_RPAREN; SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; break; case REOP_BACKREF: SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; break; case REOP_ASSERT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTTEST; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_ASSERT_NOT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTNOTTEST; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_QUANT: if ((t.min == 0) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_STAR : REOP_MINIMALSTAR; else if ((t.min == 0) && (t.max == 1)) program[pc - 1] = (t.greedy) ? REOP_OPT : REOP_MINIMALOPT; else if ((t.min == 1) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_PLUS : REOP_MINIMALPLUS; else { if (!t.greedy) program[pc - 1] = REOP_MINIMALQUANT; SET_ARG(program, pc, t.min); pc += ARG_LEN; SET_ARG(program, pc, t.max); pc += ARG_LEN; } SET_ARG(program, pc, t.parenCount); pc += ARG_LEN; SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ENDCHILD; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_CLASS: SET_ARG(program, pc, t.index); pc += ARG_LEN; charSet = re.classList[t.index]; charSet.converted = false; charSet.length = t.bmsize; charSet.startIndex = t.startIndex; charSet.strlength = t.kidlen; break; default: break; } t = t.next; } return pc; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3626, 862, 858, 16651, 12, 9213, 1119, 919, 16, 2438, 20733, 283, 16, 509, 6125, 16, 2438, 907, 268, 13, 565, 288, 3639, 2438, 907, 1024, 10655, 31, 3639, 509, 1024, 10655, 8585, 416, 16, 1024, 4065, 8585, 416, 31, 9079, 2438, 2156, 694, 1149, 694, 31, 3639, 1160, 8526, 5402, 273, 283, 18, 12890, 31, 3639, 1323, 261, 88, 480, 446, 13, 288, 5411, 5402, 63, 2436, 9904, 65, 273, 268, 18, 556, 31, 5411, 1620, 261, 88, 18, 556, 13, 288, 5411, 648, 2438, 3665, 67, 13625, 30, 7734, 1493, 2436, 31, 7734, 898, 31, 5411, 648, 2438, 3665, 67, 18255, 30, 7734, 1024, 10655, 273, 268, 18, 79, 350, 22, 31, 7734, 1024, 10655, 8585, 416, 273, 6125, 31, 565, 1748, 1758, 434, 1024, 12184, 1195, 7734, 6125, 1011, 26019, 67, 13017, 31, 7734, 6125, 273, 3626, 862, 858, 16651, 12, 2019, 16, 283, 16, 6125, 16, 268, 18, 79, 350, 1769, 7734, 5402, 63, 2436, 9904, 65, 273, 2438, 3665, 67, 46, 23942, 31, 7734, 1024, 4065, 8585, 416, 273, 6125, 31, 565, 1748, 1758, 434, 3751, 2481, 1195, 7734, 6125, 1011, 26019, 67, 13017, 31, 7734, 3122, 273, 6125, 300, 1024, 10655, 8585, 416, 31, 7734, 7855, 67, 11271, 12, 12890, 16, 1024, 10655, 8585, 416, 16, 3122, 1769, 7734, 6125, 273, 3626, 862, 858, 16651, 12, 2019, 16, 283, 16, 6125, 16, 1024, 10655, 1769, 7734, 5402, 63, 2436, 9904, 65, 273, 2438, 3665, 67, 46, 23942, 31, 7734, 1024, 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, 3626, 862, 858, 16651, 12, 9213, 1119, 919, 16, 2438, 20733, 283, 16, 509, 6125, 16, 2438, 907, 268, 13, 565, 288, 3639, 2438, 907, 1024, 10655, 31, 3639, 509, 1024, 10655, 8585, 416, 16, 1024, 4065, 8585, 416, 31, 9079, 2438, 2156, 694, 1149, 694, 31, 3639, 1160, 8526, 5402, 273, 283, 18, 12890, 31, 3639, 1323, 261, 88, 480, 446, 13, 288, 5411, 5402, 63, 2436, 9904, 65, 273, 268, 18, 556, 31, 5411, 1620, 261, 88, 18, 556, 13, 288, 5411, 648, 2438, 3665, 67, 13625, 30, 7734, 1493, 2436, 31, 7734, 898, 31, 5411, 648, 2438, 3665, 67, 18255, 30, 7734, 1024, 10655, 273, 268, 18, 79, 350, 22, 31, 7734, 1024, 10655, 8585, 2 ]
} catch (ClassDefinitionException ex) { removeOnError = true;
public Object getProperty(ScriptableObject obj) { synchronized (obj) { if (!isReplaced) { boolean removeOnError = false; Class cl = Kit.classOrNull(className); if (cl == null) { removeOnError = true; } else { try { ScriptableObject.defineClass(obj, cl, sealed); isReplaced = true; } catch (ClassDefinitionException ex) { removeOnError = true; } catch (InvocationTargetException ex) { Throwable target = ex.getTargetException(); if (target instanceof RuntimeException) { throw (RuntimeException)target; } removeOnError = true; } catch (RhinoException ex) { removeOnError = true; } catch (InstantiationException ex) { removeOnError = true; } catch (IllegalAccessException ex) { removeOnError = true; } catch (SecurityException ex) { // Treat security exceptions as absence of object. // They can be due to the following reasons: // java.lang.RuntimePermission createClassLoader removeOnError = true; } catch (LinkageError ex) { // No dependant classes removeOnError = true; } } if (removeOnError) { obj.delete(ctorName); return Scriptable.NOT_FOUND; } } } // Get just added object return obj.get(ctorName, obj); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/a70c59fa3a76e509aa103f2f089fe449bfd05fc6/LazilyLoadedCtor.java/buggy/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3911, 12, 3651, 429, 921, 1081, 13, 288, 3639, 3852, 261, 2603, 13, 288, 5411, 309, 16051, 291, 5729, 72, 13, 288, 7734, 1250, 1206, 11427, 273, 629, 31, 7734, 1659, 927, 273, 1475, 305, 18, 1106, 18936, 12, 12434, 1769, 7734, 309, 261, 830, 422, 446, 13, 288, 10792, 1206, 11427, 273, 638, 31, 7734, 289, 469, 288, 10792, 775, 288, 13491, 22780, 921, 18, 11255, 797, 12, 2603, 16, 927, 16, 695, 18931, 1769, 13491, 353, 5729, 72, 273, 638, 31, 10792, 289, 1044, 261, 797, 1852, 503, 431, 13, 288, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 9267, 14950, 431, 13, 288, 13491, 4206, 1018, 273, 431, 18, 588, 14950, 5621, 13491, 309, 261, 3299, 1276, 3235, 13, 288, 18701, 604, 261, 11949, 13, 3299, 31, 13491, 289, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 54, 76, 15020, 503, 431, 13, 288, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 10675, 7072, 503, 431, 13, 288, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 12195, 9773, 431, 13, 288, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 24918, 431, 13, 288, 13491, 368, 26564, 4373, 4798, 487, 2417, 802, 434, 733, 18, 13491, 368, 16448, 848, 506, 6541, 358, 326, 3751, 14000, 30, 13491, 368, 225, 2252, 18, 4936, 18, 5576, 5041, 752, 7805, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 2098, 410, 668, 431, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3911, 12, 3651, 429, 921, 1081, 13, 288, 3639, 3852, 261, 2603, 13, 288, 5411, 309, 16051, 291, 5729, 72, 13, 288, 7734, 1250, 1206, 11427, 273, 629, 31, 7734, 1659, 927, 273, 1475, 305, 18, 1106, 18936, 12, 12434, 1769, 7734, 309, 261, 830, 422, 446, 13, 288, 10792, 1206, 11427, 273, 638, 31, 7734, 289, 469, 288, 10792, 775, 288, 13491, 22780, 921, 18, 11255, 797, 12, 2603, 16, 927, 16, 695, 18931, 1769, 13491, 353, 5729, 72, 273, 638, 31, 10792, 289, 1044, 261, 797, 1852, 503, 431, 13, 288, 13491, 1206, 11427, 273, 638, 31, 10792, 289, 1044, 261, 9267, 14950, 431, 13, 288, 13491, 4206, 1018, 273, 431, 18, 588, 14950, 2 ]
public static FileFilter[] sortFilters(Vector filters) { Collections.sort(filters); int len = filters.size(); Vector v = new Vector(len); for (int i=0; i<len; i++) { FileFilter ffi = (FileFilter) filters.elementAt(i); int ndx = i + 1; while (ndx < len) { FileFilter ff = (FileFilter) filters.elementAt(ndx); if (!ffi.getDescription().equals(ff.getDescription())) break; ndx++; } if (ndx > i + 1) { FileFilter[] temp = new FileFilter[ndx - i]; for (int j=0; j<temp.length; j++) { temp[j] = (FileFilter) filters.elementAt(i + j); } v.add(new ComboFileFilter(temp, temp[0].getDescription())); i += temp.length - 1; } else v.add(ffi); } FileFilter[] result = new FileFilter[v.size()]; v.copyInto(result); return result;
public static FileFilter[] sortFilters(FileFilter[] filters) { return sortFilters(new Vector(Arrays.asList(filters)));
public static FileFilter[] sortFilters(Vector filters) { // sort filters alphanumerically Collections.sort(filters); // combine matching filters int len = filters.size(); Vector v = new Vector(len); for (int i=0; i<len; i++) { FileFilter ffi = (FileFilter) filters.elementAt(i); int ndx = i + 1; while (ndx < len) { FileFilter ff = (FileFilter) filters.elementAt(ndx); if (!ffi.getDescription().equals(ff.getDescription())) break; ndx++; } if (ndx > i + 1) { // create combination filter for matching filters FileFilter[] temp = new FileFilter[ndx - i]; for (int j=0; j<temp.length; j++) { temp[j] = (FileFilter) filters.elementAt(i + j); } v.add(new ComboFileFilter(temp, temp[0].getDescription())); i += temp.length - 1; // skip next temp-1 filters } else v.add(ffi); } FileFilter[] result = new FileFilter[v.size()]; v.copyInto(result); return result; }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/70f56ee3fa101ec0d5c6f5c67bc3511fe51aa484/ComboFileFilter.java/buggy/loci/formats/ComboFileFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1387, 1586, 8526, 1524, 5422, 12, 5018, 3415, 13, 288, 565, 368, 1524, 3415, 27374, 1230, 565, 5737, 18, 3804, 12, 6348, 1769, 565, 368, 8661, 3607, 3415, 565, 509, 562, 273, 3415, 18, 1467, 5621, 565, 5589, 331, 273, 394, 5589, 12, 1897, 1769, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1897, 31, 277, 27245, 288, 1377, 1387, 1586, 19655, 273, 261, 29837, 13, 3415, 18, 2956, 861, 12, 77, 1769, 1377, 509, 5346, 92, 273, 277, 397, 404, 31, 1377, 1323, 261, 4880, 92, 411, 562, 13, 288, 3639, 1387, 1586, 6875, 273, 261, 29837, 13, 3415, 18, 2956, 861, 12, 4880, 92, 1769, 3639, 309, 16051, 1403, 77, 18, 588, 3291, 7675, 14963, 12, 1403, 18, 588, 3291, 1435, 3719, 898, 31, 3639, 5346, 92, 9904, 31, 1377, 289, 1377, 309, 261, 4880, 92, 405, 277, 397, 404, 13, 288, 3639, 368, 752, 10702, 1034, 364, 3607, 3415, 3639, 1387, 1586, 8526, 1906, 273, 394, 1387, 1586, 63, 4880, 92, 300, 277, 15533, 3639, 364, 261, 474, 525, 33, 20, 31, 525, 32, 5814, 18, 2469, 31, 525, 27245, 288, 1850, 1906, 63, 78, 65, 273, 261, 29837, 13, 3415, 18, 2956, 861, 12, 77, 397, 525, 1769, 3639, 289, 3639, 331, 18, 1289, 12, 2704, 1286, 1075, 29837, 12, 5814, 16, 1906, 63, 20, 8009, 588, 3291, 1435, 10019, 3639, 277, 1011, 1906, 18, 2469, 300, 404, 31, 368, 2488, 1024, 1906, 17, 21, 3415, 1377, 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, 282, 1071, 760, 1387, 1586, 8526, 1524, 5422, 12, 5018, 3415, 13, 288, 565, 368, 1524, 3415, 27374, 1230, 565, 5737, 18, 3804, 12, 6348, 1769, 565, 368, 8661, 3607, 3415, 565, 509, 562, 273, 3415, 18, 1467, 5621, 565, 5589, 331, 273, 394, 5589, 12, 1897, 1769, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1897, 31, 277, 27245, 288, 1377, 1387, 1586, 19655, 273, 261, 29837, 13, 3415, 18, 2956, 861, 12, 77, 1769, 1377, 509, 5346, 92, 273, 277, 397, 404, 31, 1377, 1323, 261, 4880, 92, 411, 562, 13, 288, 3639, 1387, 1586, 6875, 273, 261, 29837, 13, 3415, 18, 2956, 861, 12, 4880, 92, 1769, 3639, 309, 16051, 1403, 77, 18, 588, 2 ]
public static void deleteText(OutlinerCellRendererImpl textArea, JoeTree tree, OutlineLayoutManager layout) { Node currentNode = textArea.node; // Abort if node is not editable if (!currentNode.isEditable()) { return; } int caretPosition = textArea.getCaretPosition(); int markPosition = textArea.getCaret().getMark(); if ((caretPosition == 0) && (caretPosition == markPosition) && textArea.node.isLeaf()) { mergeWithPrevVisibleNode(textArea, tree, layout); } else { String oldText = currentNode.getValue(); String newText = null; int oldCaretPosition = textArea.getCaretPosition(); int oldMarkPosition = textArea.getCaret().getMark(); int newCaretPosition = -1; int newMarkPosition = -1; int startSelection = Math.min(oldCaretPosition, oldMarkPosition); int endSelection = Math.max(oldCaretPosition, oldMarkPosition); if (startSelection != endSelection) { newCaretPosition = startSelection; newMarkPosition = startSelection; // TBD [srk] bug here: args to substring can have values < 0 // causing a StringIndexOutOfBoundsException // that's gotta be startSelection // which gets here as the minimum of oldCaretPosition and oldMarkPosition // one of which must have the value -1 // -- this needs to be investigated // set a bug trap if (startSelection < 0 || endSelection < 0) { String msg = "Error at TextKeyListener:keyTyped:Backspace:01\n" ; msg = msg + "startSelection: -1\n" ; msg = msg + "oldCaretPosition: " + oldCaretPosition + "\n" ; msg = msg + "oldMarkPosition: " + oldMarkPosition ; System.out.println("Stan_Debug:\t" + msg); return ; } // end bug trap newText = oldText.substring(0, startSelection) + oldText.substring(endSelection, oldText.length()); } else if (startSelection == 0) { newCaretPosition = 0; newMarkPosition = 0; newText = oldText; } else { newCaretPosition = startSelection - 1; newMarkPosition = startSelection - 1; // TBD [srk] bug here: 2nd arg to substring can have the value -1 // causing a StringIndexOutOfBoundsException // that's newCaretPosition // which means that startSelection has the value 0 // -- this needs to be investigated // set a bug trap if ((newCaretPosition < 0) || (oldText.length() < 0)) { String msg = "Error at TextKeyListener:keyTyped:Backspace:02\n" ; msg = msg + "startSelection: 0\n" ; msg = msg + "newCaretPosition: -1" ; msg = msg + "oldCaretPosition: -1" + oldCaretPosition + "\n" ; msg = msg + "oldMarkPosition: " + oldMarkPosition ; System.out.println("Stan_Debug:\t" + msg); return ; } // end bug trap newText = oldText.substring(0, newCaretPosition) + oldText.substring(newCaretPosition + 1, oldText.length()); } // end else UndoableEdit undoable = tree.getDocument().getUndoQueue().getIfEdit(); if ((undoable != null) && (undoable.getNode() == currentNode) && (!undoable.isFrozen())) { undoable.setNewText(newText); undoable.setNewPosition(newCaretPosition); undoable.setNewMarkPosition(newMarkPosition); } else { UndoableEdit newUndoable = new UndoableEdit( currentNode, oldText, newText, oldCaretPosition, newCaretPosition, oldMarkPosition, newMarkPosition ); newUndoable.setName("Delete Text"); tree.getDocument().getUndoQueue().add(newUndoable); } // Record the EditingNode, Mark and CursorPosition tree.setCursorMarkPosition(newMarkPosition); tree.setCursorPosition(newCaretPosition, false); tree.getDocument().setPreferredCaretPosition(newCaretPosition); currentNode.setValue(newText); textArea.setText(newText); textArea.setCaretPosition(newMarkPosition); textArea.moveCaretPosition(newCaretPosition); // Do the Redraw if we have wrapped or if we are currently off screen. if (textArea.getPreferredSize().height != textArea.height || !currentNode.isVisible()) { layout.draw(currentNode, OutlineLayoutManager.TEXT); } } }
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/c152637b9596e62ff6f209a9e893d5c42b9e8038/BackspaceAction.java/clean/outliner/src/com/organic/maynard/outliner/actions/BackspaceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1430, 1528, 12, 1182, 7511, 264, 4020, 6747, 2828, 977, 5484, 16, 804, 15548, 2471, 2151, 16, 2976, 1369, 3744, 1318, 3511, 13, 288, 202, 202, 907, 13425, 273, 977, 5484, 18, 2159, 31, 202, 202, 759, 14263, 309, 756, 353, 486, 13754, 202, 202, 430, 16051, 2972, 907, 18, 291, 15470, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 474, 21683, 2555, 273, 977, 5484, 18, 588, 39, 20731, 2555, 5621, 202, 202, 474, 2267, 2555, 273, 977, 5484, 18, 588, 39, 20731, 7675, 588, 3882, 5621, 202, 202, 430, 14015, 71, 20731, 2555, 422, 374, 13, 597, 261, 71, 20731, 2555, 422, 2267, 2555, 13, 597, 977, 5484, 18, 2159, 18, 291, 9858, 10756, 288, 1082, 202, 2702, 1190, 9958, 6207, 907, 12, 955, 5484, 16, 2151, 16, 3511, 1769, 202, 202, 97, 469, 288, 1082, 202, 780, 1592, 1528, 273, 13425, 18, 24805, 5621, 1082, 202, 780, 394, 1528, 273, 446, 31, 1082, 202, 474, 1592, 39, 20731, 2555, 273, 977, 5484, 18, 588, 39, 20731, 2555, 5621, 1082, 202, 474, 1592, 3882, 2555, 273, 977, 5484, 18, 588, 39, 20731, 7675, 588, 3882, 5621, 1082, 202, 474, 394, 39, 20731, 2555, 273, 300, 21, 31, 1082, 202, 474, 394, 3882, 2555, 273, 300, 21, 31, 25083, 202, 474, 787, 6233, 273, 2361, 18, 1154, 12, 1673, 39, 20731, 2555, 16, 1592, 3882, 2555, 1769, 1082, 202, 474, 679, 6233, 273, 2361, 18, 1896, 12, 1673, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1430, 1528, 12, 1182, 7511, 264, 4020, 6747, 2828, 977, 5484, 16, 804, 15548, 2471, 2151, 16, 2976, 1369, 3744, 1318, 3511, 13, 288, 202, 202, 907, 13425, 273, 977, 5484, 18, 2159, 31, 202, 202, 759, 14263, 309, 756, 353, 486, 13754, 202, 202, 430, 16051, 2972, 907, 18, 291, 15470, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 474, 21683, 2555, 273, 977, 5484, 18, 588, 39, 20731, 2555, 5621, 202, 202, 474, 2267, 2555, 273, 977, 5484, 18, 588, 39, 20731, 7675, 588, 3882, 5621, 202, 202, 430, 14015, 71, 20731, 2555, 422, 374, 13, 597, 261, 71, 20731, 2555, 422, 2267, 2555, 13, 597, 977, 5484, 18, 2 ]
node.getNodeInformation().getURL(), e);
node.getNodeInformation().getURL(), e, false);
public VMObject addVMObject(Node node) { java.rmi.dgc.VMID vmid = node.getNodeInformation().getVMID(); String protocolId = node.getNodeInformation().getCreationProtocolID(); VMObject vmObject = getVMObject(vmid); if (vmObject != null) { controller.log("The node " + node.getNodeInformation().getURL() + " belongs to an already existing vm id=" + vmid); // add the node to the existing vm in case it doesn't exist vmObject.addNodeObject(node); // refresh ActiveObject for this vm vmObject.sendEventsForAllActiveObjects(); return vmObject; } try { vmObject = new VMObject(this, vmid, node, protocolId); putChild(vmid, vmObject); controller.log("The node " + node.getNodeInformation().getURL() + " has been found on vm id=" + vmid); if (listener != null) { listener.vmObjectAdded(vmObject); } if (os == null) { os = vmObject.getSystemProperty("os.name"); if (listener != null) { listener.operatingSystemFound(os); } } return vmObject; } catch (ActiveObjectCreationException e) { controller.log("Cannot create the spy on host " + hostname + " on node " + node.getNodeInformation().getURL(), e); return null; } catch (NodeException e) { controller.log("Problem with the node " + node.getNodeInformation().getURL(), e); return null; } }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/dec330df901239b9d13779bfed381d9ffe2b9805/HostObject.java/buggy/src/org/objectweb/proactive/ic2d/data/HostObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8251, 921, 527, 7397, 921, 12, 907, 756, 13, 288, 3639, 2252, 18, 8864, 77, 18, 72, 13241, 18, 7397, 734, 4268, 350, 273, 756, 18, 588, 907, 5369, 7675, 588, 7397, 734, 5621, 3639, 514, 1771, 548, 273, 756, 18, 588, 907, 5369, 7675, 588, 9906, 5752, 734, 5621, 3639, 8251, 921, 4268, 921, 273, 336, 7397, 921, 12, 3489, 350, 1769, 3639, 309, 261, 3489, 921, 480, 446, 13, 288, 5411, 2596, 18, 1330, 2932, 1986, 756, 315, 397, 756, 18, 588, 907, 5369, 7675, 588, 1785, 1435, 397, 7734, 315, 11081, 358, 392, 1818, 2062, 4268, 612, 1546, 397, 4268, 350, 1769, 5411, 368, 527, 326, 756, 358, 326, 2062, 4268, 316, 648, 518, 3302, 1404, 1005, 5411, 4268, 921, 18, 1289, 907, 921, 12, 2159, 1769, 5411, 368, 4460, 8857, 921, 364, 333, 4268, 5411, 4268, 921, 18, 4661, 3783, 1290, 1595, 3896, 4710, 5621, 5411, 327, 4268, 921, 31, 3639, 289, 3639, 775, 288, 5411, 4268, 921, 273, 394, 8251, 921, 12, 2211, 16, 4268, 350, 16, 756, 16, 1771, 548, 1769, 5411, 1378, 1763, 12, 3489, 350, 16, 4268, 921, 1769, 5411, 2596, 18, 1330, 2932, 1986, 756, 315, 397, 756, 18, 588, 907, 5369, 7675, 588, 1785, 1435, 397, 7734, 315, 711, 2118, 1392, 603, 4268, 612, 1546, 397, 4268, 350, 1769, 5411, 309, 261, 12757, 480, 446, 13, 288, 7734, 2991, 18, 3489, 921, 8602, 12, 3489, 921, 1769, 5411, 289, 5411, 309, 261, 538, 422, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8251, 921, 527, 7397, 921, 12, 907, 756, 13, 288, 3639, 2252, 18, 8864, 77, 18, 72, 13241, 18, 7397, 734, 4268, 350, 273, 756, 18, 588, 907, 5369, 7675, 588, 7397, 734, 5621, 3639, 514, 1771, 548, 273, 756, 18, 588, 907, 5369, 7675, 588, 9906, 5752, 734, 5621, 3639, 8251, 921, 4268, 921, 273, 336, 7397, 921, 12, 3489, 350, 1769, 3639, 309, 261, 3489, 921, 480, 446, 13, 288, 5411, 2596, 18, 1330, 2932, 1986, 756, 315, 397, 756, 18, 588, 907, 5369, 7675, 588, 1785, 1435, 397, 7734, 315, 11081, 358, 392, 1818, 2062, 4268, 612, 1546, 397, 4268, 350, 1769, 5411, 368, 527, 326, 756, 358, 326, 2062, 4268, 316, 648, 518, 2 ]
public Object clone() {
public final Object clone() {
public Object clone() { return new DoublyLinkedListImpl(this); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/d69dceaa72feee5ece14b8de951841aa9b614188/DoublyLinkedListImpl.java/clean/src/freenet/support/DoublyLinkedListImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 3236, 1435, 288, 3639, 327, 394, 2256, 440, 93, 13174, 682, 2828, 12, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 3236, 1435, 288, 3639, 327, 394, 2256, 440, 93, 13174, 682, 2828, 12, 2211, 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 ]
String[] args = { id }; String message = getMessage("msg.assn.create", args);
String message = getMessage1("msg.assn.create", id);
public static Object setName(Scriptable bound, Object value, Scriptable scope, String id) { if (bound == null) { // "newname = 7;", where 'newname' has not yet // been defined, creates a new property in the // global object. Find the global object by // walking up the scope chain. Scriptable next = scope; do { bound = next; next = bound.getParentScope(); } while (next != null); bound.put(id, bound, value); /* This code is causing immense performance problems in scripts that assign to the variables as a way of creating them. XXX need strict mode String[] args = { id }; String message = getMessage("msg.assn.create", args); Context.reportWarning(message); */ return value; } return setProp(bound, id, value, scope); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/ScriptRuntime.java/clean/js/rhino/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 6788, 12, 3651, 429, 2489, 16, 1033, 460, 16, 4766, 22780, 2146, 16, 514, 612, 13, 565, 288, 3639, 309, 261, 3653, 422, 446, 13, 288, 5411, 368, 315, 2704, 529, 273, 2371, 31, 3113, 1625, 296, 2704, 529, 11, 711, 486, 4671, 5411, 368, 2118, 2553, 16, 3414, 279, 394, 1272, 316, 326, 5411, 368, 2552, 733, 18, 4163, 326, 2552, 733, 635, 5411, 368, 5442, 310, 731, 326, 2146, 2687, 18, 5411, 22780, 1024, 273, 2146, 31, 5411, 741, 288, 7734, 2489, 273, 1024, 31, 7734, 1024, 273, 2489, 18, 588, 3054, 3876, 5621, 5411, 289, 1323, 261, 4285, 480, 446, 1769, 5411, 2489, 18, 458, 12, 350, 16, 2489, 16, 460, 1769, 5411, 1748, 5411, 1220, 981, 353, 25416, 709, 81, 3558, 9239, 9688, 316, 5411, 8873, 716, 2683, 358, 326, 3152, 487, 279, 4031, 434, 4979, 2182, 18, 5411, 11329, 1608, 5490, 1965, 5411, 514, 8526, 833, 273, 288, 612, 289, 31, 5411, 514, 883, 273, 2381, 2932, 3576, 18, 428, 82, 18, 2640, 3113, 833, 1769, 5411, 1772, 18, 6006, 6210, 12, 2150, 1769, 5411, 1195, 5411, 327, 460, 31, 3639, 289, 3639, 327, 444, 4658, 12, 3653, 16, 612, 16, 460, 16, 2146, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 6788, 12, 3651, 429, 2489, 16, 1033, 460, 16, 4766, 22780, 2146, 16, 514, 612, 13, 565, 288, 3639, 309, 261, 3653, 422, 446, 13, 288, 5411, 368, 315, 2704, 529, 273, 2371, 31, 3113, 1625, 296, 2704, 529, 11, 711, 486, 4671, 5411, 368, 2118, 2553, 16, 3414, 279, 394, 1272, 316, 326, 5411, 368, 2552, 733, 18, 4163, 326, 2552, 733, 635, 5411, 368, 5442, 310, 731, 326, 2146, 2687, 18, 5411, 22780, 1024, 273, 2146, 31, 5411, 741, 288, 7734, 2489, 273, 1024, 31, 7734, 1024, 273, 2489, 18, 588, 3054, 3876, 5621, 5411, 289, 1323, 261, 4285, 480, 446, 1769, 5411, 2489, 18, 458, 12, 350, 16, 2489, 16, 460, 1769, 2 ]
return new BArray(xs);
return new BArray(xs);
public static Array box_barray(byte [] xs) { return new BArray(xs); }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/clean/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1510, 282, 3919, 67, 70, 1126, 12, 7229, 282, 5378, 9280, 13, 288, 202, 2463, 394, 605, 1076, 12, 13713, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 1510, 282, 3919, 67, 70, 1126, 12, 7229, 282, 5378, 9280, 13, 288, 202, 2463, 394, 605, 1076, 12, 13713, 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 ]
public static Document MartRegistryToDocument(MartRegistry martreg) throws ConfigurationException { Element root = new Element(MARTREGISTRY); MartLocation[] martlocs = martreg.getMartLocations(); for (int i = 0, n = martlocs.length; i < n; i++) { MartLocation location = martlocs[i]; if (location.getType().equals(MartLocationBase.URL)) root.addContent( getURLLocationElement( (URLLocation) location ) ); else if (location.getType().equals(MartLocationBase.DATABASE)) root.addContent( getDatabaseLocationElement( (DatabaseLocation) location ) ); else if (location.getType().equals(MartLocationBase.REGISTRY)) root.addContent( getRegistryLocationElement( (RegistryLocation) location ) ); //else not needed, but may need to add other else ifs in future } return new Document(root); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/cb0698222fa8268a3097744321bcacf703a60234/MartRegistryXMLUtils.java/clean/src/java/org/ensembl/mart/lib/config/MartRegistryXMLUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4319, 490, 485, 4243, 774, 2519, 12, 49, 485, 4243, 312, 485, 1574, 13, 1216, 22196, 288, 202, 202, 1046, 1365, 273, 394, 3010, 12, 49, 4928, 5937, 25042, 1769, 9506, 202, 49, 485, 2735, 8526, 312, 485, 24323, 273, 312, 485, 1574, 18, 588, 49, 485, 10985, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 16, 290, 273, 312, 485, 24323, 18, 2469, 31, 277, 411, 290, 31, 277, 27245, 288, 1082, 202, 49, 485, 2735, 2117, 273, 312, 485, 24323, 63, 77, 15533, 25083, 202, 430, 261, 3562, 18, 588, 559, 7675, 14963, 12, 49, 485, 2735, 2171, 18, 1785, 3719, 9506, 225, 1365, 18, 1289, 1350, 12, 19341, 2735, 1046, 12, 261, 1785, 2735, 13, 2117, 262, 11272, 1082, 202, 12107, 309, 261, 3562, 18, 588, 559, 7675, 14963, 12, 49, 485, 2735, 2171, 18, 22366, 3719, 9506, 225, 1365, 18, 1289, 1350, 12, 11263, 2735, 1046, 12, 261, 4254, 2735, 13, 2117, 262, 11272, 1082, 202, 12107, 309, 261, 3562, 18, 588, 559, 7675, 14963, 12, 49, 485, 2735, 2171, 18, 5937, 25042, 3719, 9506, 225, 1365, 18, 1289, 1350, 12, 29675, 2735, 1046, 12, 261, 4243, 2735, 13, 2117, 262, 11272, 1082, 202, 759, 12107, 486, 3577, 16, 1496, 2026, 1608, 358, 527, 1308, 469, 309, 87, 316, 3563, 202, 202, 97, 9506, 202, 2463, 394, 4319, 12, 3085, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4319, 490, 485, 4243, 774, 2519, 12, 49, 485, 4243, 312, 485, 1574, 13, 1216, 22196, 288, 202, 202, 1046, 1365, 273, 394, 3010, 12, 49, 4928, 5937, 25042, 1769, 9506, 202, 49, 485, 2735, 8526, 312, 485, 24323, 273, 312, 485, 1574, 18, 588, 49, 485, 10985, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 16, 290, 273, 312, 485, 24323, 18, 2469, 31, 277, 411, 290, 31, 277, 27245, 288, 1082, 202, 49, 485, 2735, 2117, 273, 312, 485, 24323, 63, 77, 15533, 25083, 202, 430, 261, 3562, 18, 588, 559, 7675, 14963, 12, 49, 485, 2735, 2171, 18, 1785, 3719, 9506, 225, 1365, 18, 1289, 1350, 12, 19341, 2735, 1046, 12, 2 ]
} catch (SWTException e) {
} catch (SWTException e) {
private FormText createClient(Section section, String content, FormToolkit toolkit) { FormText text = toolkit.createFormText(section, true); try { text.setText(content, true, false); } catch (SWTException e) { text.setText(e.getMessage(), false, false); } section.setClient(text); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); text.addHyperlinkListener(this); return text; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/558ee96bd3ae2f8b6e369cc4e0e95f03cdfc1318/OverviewPage.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/OverviewPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2748, 1528, 30872, 12, 5285, 2442, 16, 514, 913, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 202, 202, 1204, 1528, 977, 273, 5226, 8691, 18, 2640, 1204, 1528, 12, 3464, 16, 638, 1769, 202, 202, 698, 288, 1082, 202, 955, 18, 542, 1528, 12, 1745, 16, 638, 16, 629, 1769, 202, 202, 97, 202, 202, 14683, 261, 55, 8588, 503, 425, 13, 288, 1082, 202, 955, 18, 542, 1528, 12, 73, 18, 24906, 9334, 629, 16, 629, 1769, 202, 202, 97, 202, 202, 3464, 18, 542, 1227, 12, 955, 1769, 202, 202, 3464, 18, 542, 3744, 751, 12, 2704, 3555, 2964, 751, 12, 1388, 2964, 751, 18, 29818, 67, 6997, 2090, 10019, 202, 202, 955, 18, 1289, 15996, 1232, 2223, 12, 2211, 1769, 202, 202, 2463, 977, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2748, 1528, 30872, 12, 5285, 2442, 16, 514, 913, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 202, 202, 1204, 1528, 977, 273, 5226, 8691, 18, 2640, 1204, 1528, 12, 3464, 16, 638, 1769, 202, 202, 698, 288, 1082, 202, 955, 18, 542, 1528, 12, 1745, 16, 638, 16, 629, 1769, 202, 202, 97, 202, 202, 14683, 261, 55, 8588, 503, 425, 13, 288, 1082, 202, 955, 18, 542, 1528, 12, 73, 18, 24906, 9334, 629, 16, 629, 1769, 202, 202, 97, 202, 202, 3464, 18, 542, 1227, 12, 955, 1769, 202, 202, 3464, 18, 542, 3744, 751, 12, 2704, 3555, 2964, 751, 12, 1388, 2964, 751, 18, 29818, 67, 6997, 2090, 10019, 202, 202, 955, 2 ]
public java.sql.ResultSet getProcedures( String catalog, String schemaPattern, String procedureNamePattern ) throws SQLException { /* debugPrintln( "Inside of getProcedures" ); debugPrintln( " catalog is |" + catalog + "|" ); debugPrintln( " schemaPattern is " + schemaPattern ); debugPrintln( " procedurePattern is " + procedureNamePattern ); */ int paramIndex; int i; String sql = null; java.sql.Statement tmpTableStmt = connection.createStatement(); // XXX We need to come up with something better than a global temporary // table. It could cause problems if two people try to getProcedures(). // (note- it is unlikely to cause any problems, but it is possible) String tmpTableName = "##t#" + UniqueId.getUniqueId(); String schemaCriteria; String tableCriteria; String typesCriteria; // create a temporary table sql = "create table " + tmpTableName + " ( " + " cat sysname null, " + " schem sysname null, " + " name sysname null, " + " type smallint null, " + " rem char(255) null) "; tmpTableStmt.execute(sql); // For each database in the system add its tables // Note- We have to do them one at a time in case // there are databases we don't have access to. java.sql.ResultSet rs = getCatalogs(catalog); while(rs.next()) { String cat = rs.getString(1); sql = "insert into " + tmpTableName + " " + " select '" + cat + "', USER_NAME(uid), name, 0, null " + " from " + cat + ".dbo.sysobjects " + " where type = 'P' "; try { tmpTableStmt.executeUpdate(sql); } catch (SQLException e) { // We might not have access to certain tables. Just ignore the // error if this is the case. } } rs.close(); sql = "select " + " PROCEDURE_CAT=cat, " + " PROCEDURE_SCHEM=schem, " + " PROCEDURE_NAME=name, " + " -1 NUM_INPUT_PARAMS, " + " -1 NUM_OUTPUT_PARAMS, " + " -1 NUM_RESULT_SETS, " + " REMARKS=rem, " + " PROCEDURE_TYPE=type " + " from " + tmpTableName + " where schem like ? and " + " name like ? "; java.sql.PreparedStatement ps = connection.prepareStatement(sql); ps.setString(1, schemaPattern); ps.setString(2, procedureNamePattern); rs = ps.executeQuery(); // We need to do something about deleting the global temporary table tmpTableStmt.close(); return rs; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/b37dd297238df8f121a81692dcec67885161e550/DatabaseMetaData.java/buggy/trunk/jtds/src.old/main/com/internetcds/jdbc/tds/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3570, 23382, 12, 514, 6222, 16, 5411, 514, 1963, 3234, 16, 5411, 514, 12131, 461, 3234, 262, 2398, 1216, 6483, 565, 288, 1377, 1748, 3639, 1198, 5108, 2370, 12, 315, 18619, 434, 3570, 23382, 6, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 6222, 353, 571, 6, 397, 6222, 397, 15710, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 1963, 3234, 353, 315, 397, 1963, 3234, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 12131, 3234, 353, 315, 397, 12131, 461, 3234, 11272, 4202, 1195, 1377, 509, 1171, 579, 1016, 31, 3639, 509, 1171, 277, 31, 1377, 514, 2868, 1847, 273, 446, 31, 1377, 2252, 18, 4669, 18, 3406, 225, 1853, 1388, 8952, 273, 1459, 18, 2640, 3406, 5621, 1377, 368, 11329, 1660, 1608, 358, 12404, 731, 598, 5943, 7844, 2353, 279, 2552, 6269, 1377, 368, 1014, 18, 225, 2597, 3377, 4620, 9688, 309, 2795, 16951, 775, 358, 3570, 23382, 7675, 1377, 368, 261, 7652, 17, 518, 353, 29372, 358, 4620, 1281, 9688, 16, 1496, 518, 353, 3323, 13, 1377, 514, 2868, 1853, 7147, 273, 315, 1189, 88, 17133, 397, 14584, 548, 18, 588, 24174, 5621, 1377, 514, 2868, 1963, 7231, 31, 1377, 514, 2868, 1014, 7231, 31, 1377, 514, 2868, 1953, 7231, 31, 1377, 368, 752, 279, 6269, 1014, 1377, 1847, 273, 540, 315, 2640, 1014, 315, 397, 1853, 7147, 397, 315, 261, 315, 397, 540, 315, 565, 6573, 565, 2589, 529, 446, 16, 5411, 315, 397, 540, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3570, 23382, 12, 514, 6222, 16, 5411, 514, 1963, 3234, 16, 5411, 514, 12131, 461, 3234, 262, 2398, 1216, 6483, 565, 288, 1377, 1748, 3639, 1198, 5108, 2370, 12, 315, 18619, 434, 3570, 23382, 6, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 6222, 353, 571, 6, 397, 6222, 397, 15710, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 1963, 3234, 353, 315, 397, 1963, 3234, 11272, 3639, 1198, 5108, 2370, 12, 315, 225, 12131, 3234, 353, 315, 397, 12131, 461, 3234, 11272, 4202, 1195, 1377, 509, 1171, 579, 1016, 31, 3639, 509, 1171, 277, 31, 1377, 514, 2868, 1847, 273, 446, 31, 1377, 2252, 18, 4669, 18, 3406, 225, 1853, 1388, 2 ]
try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) setAlt(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setCols((String) evalAttr("cols", getColsExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setRows((String) evalAttr("rows", getRowsExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELTextareaTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8011, 12443, 780, 13, 5302, 3843, 2932, 6842, 3113, 336, 8011, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 15034, 12443, 12, 5507, 13, 5302, 3843, 2932, 19626, 3113, 8088, 329, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 15604, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 2 ]
if (rhsType_.getType() == T_NULL) { boolean isTestCase = false; Method method = methodGen.getMethod(); if (method.getName().startsWith("test") && method.isPublic() && method.getSignature().equals("()V") || methodGen.getClassName().endsWith("Test")) isTestCase = true;
if (rhsType_.getType() == T_NULL) {
private void checkEqualsComparison( Location location, JavaClass jclass, MethodGen methodGen, TypeDataflow typeDataflow) throws DataflowAnalysisException { InstructionHandle handle = location.getHandle(); String sourceFile = jclass.getSourceFileName(); TypeFrame frame = typeDataflow.getFactAtLocation(location); if (frame.getStackDepth() < 2) throw new DataflowAnalysisException("Stack underflow", methodGen, handle); int numSlots = frame.getNumSlots(); Type lhsType_ = frame.getValue(numSlots - 2); Type rhsType_ = frame.getValue(numSlots - 1); // Ignore top and bottom values if (lhsType_.getType() == T_TOP || lhsType_.getType() == T_BOTTOM || rhsType_.getType() == T_TOP || rhsType_.getType() == T_BOTTOM) return; if (!(lhsType_ instanceof ReferenceType) || !(rhsType_ instanceof ReferenceType)) { if (rhsType_.getType() == T_NULL) { boolean isTestCase = false; Method method = methodGen.getMethod(); if (method.getName().startsWith("test") && method.isPublic() && method.getSignature().equals("()V") || methodGen.getClassName().endsWith("Test")) isTestCase = true; // A literal null value was passed directly to equals(). if (!isTestCase) bugReporter.reportBug(new BugInstance(this, "EC_NULL_ARG", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle())); } else if (lhsType_.getType() == T_NULL) { // Hmm...in this case, equals() is being invoked on // a literal null value. This is really the // purview of FindNullDeref. So, we'll just do nothing. } else { bugReporter.logError("equals() used to compare non-object type(s) " + lhsType_ + " and " + rhsType_ + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + location.getHandle()); } return; } if (lhsType_ instanceof ArrayType && rhsType_ instanceof ArrayType) bugReporter.reportBug(new BugInstance(this, "EC_BAD_ARRAY_COMPARE", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addType(lhsType_.getSignature()) .addType(rhsType_.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); IncompatibleTypes result = IncompatibleTypes.getPriorityForAssumingCompatible(lhsType_, rhsType_); int priorityModifier = 0; if (methodGen.getName().startsWith("test") && methodGen.getSignature().equals("()V")) { try { if (Hierarchy.isSubtype(methodGen.getClassName(), "junit.framework.TestCase")) priorityModifier=2; } catch (ClassNotFoundException e) { AnalysisContext.reportMissingClass(e); } } if (result == IncompatibleTypes.ARRAY_AND_NON_ARRAY || result == IncompatibleTypes.ARRAY_AND_OBJECT) bugReporter.reportBug(new BugInstance(this, "EC_ARRAY_AND_NONARRAY", result.getPriority()) .addClassAndMethod(methodGen, sourceFile) .addType(lhsType_.getSignature()) .addType(rhsType_.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); else if (result == IncompatibleTypes.INCOMPATIBLE_CLASSES) bugReporter.reportBug(new BugInstance(this, "EC_UNRELATED_TYPES", result.getPriority() + priorityModifier) .addClassAndMethod(methodGen, sourceFile) .addType(lhsType_.getSignature()) .addType(rhsType_.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); else if (result == IncompatibleTypes.UNRELATED_CLASS_AND_INTERFACE) bugReporter.reportBug(new BugInstance(this, "EC_UNRELATED_CLASS_AND_INTERFACE", result.getPriority()) .addClassAndMethod(methodGen, sourceFile) .addType(lhsType_.getSignature()) .addType(rhsType_.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); else if (result == IncompatibleTypes.UNRELATED_INTERFACES) bugReporter.reportBug(new BugInstance(this, "EC_UNRELATED_INTERFACES", result.getPriority()) .addClassAndMethod(methodGen, sourceFile) .addType(lhsType_.getSignature()) .addType(rhsType_.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0a3b064a1ad9e03c482fbb7b6a152b105c47ad2c/FindRefComparison.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8867, 16059, 12, 1082, 202, 2735, 2117, 16, 1082, 202, 5852, 797, 525, 1106, 16, 1082, 202, 1305, 7642, 707, 7642, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 3259, 1640, 273, 2117, 18, 588, 3259, 5621, 202, 202, 780, 16338, 273, 525, 1106, 18, 588, 1830, 4771, 5621, 202, 202, 559, 3219, 2623, 273, 618, 751, 2426, 18, 588, 9766, 861, 2735, 12, 3562, 1769, 202, 202, 430, 261, 3789, 18, 588, 2624, 6148, 1435, 411, 576, 13, 1082, 202, 12849, 394, 1910, 2426, 9418, 503, 2932, 2624, 3613, 2426, 3113, 707, 7642, 16, 1640, 1769, 202, 202, 474, 818, 16266, 273, 2623, 18, 588, 2578, 16266, 5621, 202, 202, 559, 8499, 559, 67, 273, 2623, 18, 24805, 12, 2107, 16266, 300, 576, 1769, 202, 202, 559, 7711, 559, 67, 273, 2623, 18, 24805, 12, 2107, 16266, 300, 404, 1769, 202, 202, 759, 8049, 1760, 471, 5469, 924, 202, 202, 430, 261, 80, 4487, 559, 27799, 588, 559, 1435, 422, 399, 67, 10462, 747, 8499, 559, 27799, 588, 559, 1435, 422, 399, 67, 28891, 9506, 202, 20081, 7711, 559, 27799, 588, 559, 1435, 422, 399, 67, 10462, 747, 7711, 559, 27799, 588, 559, 1435, 422, 399, 67, 28891, 13, 1082, 202, 2463, 31, 202, 202, 430, 16051, 12, 80, 4487, 559, 67, 1276, 6268, 559, 13, 747, 401, 12, 86, 4487, 559, 67, 1276, 6268, 559, 3719, 288, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8867, 16059, 12, 1082, 202, 2735, 2117, 16, 1082, 202, 5852, 797, 525, 1106, 16, 1082, 202, 1305, 7642, 707, 7642, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 3259, 1640, 273, 2117, 18, 588, 3259, 5621, 202, 202, 780, 16338, 273, 525, 1106, 18, 588, 1830, 4771, 5621, 202, 202, 559, 3219, 2623, 273, 618, 751, 2426, 18, 588, 9766, 861, 2735, 12, 3562, 1769, 202, 202, 430, 261, 3789, 18, 588, 2624, 6148, 1435, 411, 576, 13, 1082, 202, 12849, 394, 1910, 2426, 9418, 503, 2932, 2624, 3613, 2426, 3113, 707, 7642, 16, 1640, 1769, 202, 202, 474, 818, 16266, 273, 2 ]
if ((isPowerOfTwo(imgWidth) && isPowerOfTwo(imgHeight)) || gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")) {
if (data.getMipmap()) { imgWidth = nextPowerOfTwo(imgWidth); imgHeight = nextPowerOfTwo(imgHeight); texWidth = imgWidth; texHeight = imgHeight; target = GL.GL_TEXTURE_2D; } else if ((isPowerOfTwo(imgWidth) && isPowerOfTwo(imgHeight)) || gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")) {
Texture(TextureData data) throws GLException { GL gl = getCurrentGL(); imgWidth = data.getWidth(); imgHeight = data.getHeight(); mustFlipVertically = data.getMustFlipVertically(); if ((isPowerOfTwo(imgWidth) && isPowerOfTwo(imgHeight)) || gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")) { if (DEBUG) { if (isPowerOfTwo(imgWidth) && isPowerOfTwo(imgHeight)) { System.err.println("Power-of-two texture"); } else { System.err.println("Using GL_ARB_texture_non_power_of_two"); } } texWidth = imgWidth; texHeight = imgHeight; target = GL.GL_TEXTURE_2D; } else if (gl.isExtensionAvailable("GL_ARB_texture_rectangle")) { if (DEBUG) { System.err.println("Using GL_ARB_texture_rectangle"); } texWidth = imgWidth; texHeight = imgHeight; target = GL.GL_TEXTURE_RECTANGLE_ARB; } else { if (DEBUG) { System.err.println("Expanding texture to power-of-two dimensions"); } if (data.getBorder() != 0) { throw new RuntimeException("Scaling up a non-power-of-two texture which has a border won't work"); } texWidth = nextPowerOfTwo(imgWidth); texHeight = nextPowerOfTwo(imgHeight); target = GL.GL_TEXTURE_2D; } // REMIND: let the user specify these, optionally int minFilter = GL.GL_LINEAR; int magFilter = GL.GL_LINEAR; int wrapMode = GL.GL_CLAMP_TO_EDGE; texID = createTextureID(gl); setImageSize(imgWidth, imgHeight); gl.glBindTexture(target, texID); gl.glTexImage2D(target, 0, data.getInternalFormat(), texWidth, texHeight, data.getBorder(), data.getPixelFormat(), data.getPixelType(), null); // REMIND: figure out what to do for GL_TEXTURE_RECTANGLE_ARB if (target == GL.GL_TEXTURE_2D) { gl.glTexParameteri(target, GL.GL_TEXTURE_MIN_FILTER, minFilter); gl.glTexParameteri(target, GL.GL_TEXTURE_MAG_FILTER, magFilter); gl.glTexParameteri(target, GL.GL_TEXTURE_WRAP_S, wrapMode); gl.glTexParameteri(target, GL.GL_TEXTURE_WRAP_T, wrapMode); } updateSubImage(data, 0, 0); }
45742 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45742/a295d66a868c897b71104f3dd4c94601c7463840/Texture.java/buggy/src/classes/com/sun/opengl/utils/Texture.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 28582, 12, 10967, 751, 501, 13, 1216, 10252, 503, 288, 565, 10252, 5118, 273, 5175, 11261, 5621, 565, 3774, 2384, 273, 501, 18, 588, 2384, 5621, 565, 3774, 2686, 273, 501, 18, 588, 2686, 5621, 565, 1297, 28535, 4828, 6478, 273, 501, 18, 588, 10136, 28535, 4828, 6478, 5621, 565, 309, 14015, 291, 13788, 951, 11710, 12, 6081, 2384, 13, 597, 353, 13788, 951, 11710, 12, 6081, 2686, 3719, 747, 3639, 5118, 18, 291, 3625, 5268, 2932, 11261, 67, 20926, 67, 955, 594, 67, 5836, 67, 12238, 67, 792, 67, 15415, 6, 3719, 288, 1377, 309, 261, 9394, 13, 288, 3639, 309, 261, 291, 13788, 951, 11710, 12, 6081, 2384, 13, 597, 353, 13788, 951, 11710, 12, 6081, 2686, 3719, 288, 1850, 2332, 18, 370, 18, 8222, 2932, 13788, 17, 792, 17, 15415, 11428, 8863, 3639, 289, 469, 288, 1850, 2332, 18, 370, 18, 8222, 2932, 7736, 10252, 67, 20926, 67, 955, 594, 67, 5836, 67, 12238, 67, 792, 67, 15415, 8863, 3639, 289, 1377, 289, 1377, 16573, 2384, 273, 3774, 2384, 31, 1377, 16573, 2686, 273, 3774, 2686, 31, 1377, 1018, 273, 10252, 18, 11261, 67, 24652, 67, 22, 40, 31, 565, 289, 469, 309, 261, 7043, 18, 291, 3625, 5268, 2932, 11261, 67, 20926, 67, 955, 594, 67, 2607, 4341, 6, 3719, 288, 1377, 309, 261, 9394, 13, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 7736, 10252, 67, 20926, 67, 955, 594, 67, 2607, 4341, 8863, 1377, 289, 1377, 16573, 2384, 273, 3774, 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, 28582, 12, 10967, 751, 501, 13, 1216, 10252, 503, 288, 565, 10252, 5118, 273, 5175, 11261, 5621, 565, 3774, 2384, 273, 501, 18, 588, 2384, 5621, 565, 3774, 2686, 273, 501, 18, 588, 2686, 5621, 565, 1297, 28535, 4828, 6478, 273, 501, 18, 588, 10136, 28535, 4828, 6478, 5621, 565, 309, 14015, 291, 13788, 951, 11710, 12, 6081, 2384, 13, 597, 353, 13788, 951, 11710, 12, 6081, 2686, 3719, 747, 3639, 5118, 18, 291, 3625, 5268, 2932, 11261, 67, 20926, 67, 955, 594, 67, 5836, 67, 12238, 67, 792, 67, 15415, 6, 3719, 288, 1377, 309, 261, 9394, 13, 288, 3639, 309, 261, 291, 13788, 951, 11710, 12, 6081, 2384, 13, 597, 353, 13788, 951, 11710, 12, 6081, 2 ]
goodLine = null;
line = null;
public final int read() throws IOException { if (!getInitialized()) { initialize(); setInitialized(true); } int ch = -1; if (line != null) { ch = line.charAt(0); if (line.length() == 1) { line = null; } else { line = line.substring(1); } } else { String goodLine = null; line = readLine(); while((line != null) && (goodLine == null)) { goodLine = line; int containsSize = contains.size(); for (int i = 0; i < containsSize; i++) { String containsStr = (String) contains.elementAt(i); if (line.indexOf(containsStr) == -1) { goodLine = null; break; } } return read(); }; } return ch; }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6a012bdb4cf3d536421a4fcc996e9427842df8d6/LineContains.java/clean/src/main/org/apache/tools/ant/filters/LineContains.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 509, 855, 1435, 1216, 1860, 288, 3639, 309, 16051, 588, 11459, 10756, 288, 5411, 4046, 5621, 5411, 444, 11459, 12, 3767, 1769, 3639, 289, 3639, 509, 462, 273, 300, 21, 31, 3639, 309, 261, 1369, 480, 446, 13, 288, 5411, 462, 273, 980, 18, 3001, 861, 12, 20, 1769, 5411, 309, 261, 1369, 18, 2469, 1435, 422, 404, 13, 288, 7734, 980, 273, 446, 31, 5411, 289, 469, 288, 7734, 980, 273, 980, 18, 28023, 12, 21, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 514, 980, 273, 446, 31, 5411, 980, 273, 12273, 5621, 5411, 1323, 12443, 1369, 480, 446, 13, 597, 261, 19747, 1670, 422, 446, 3719, 288, 7734, 7494, 1670, 273, 980, 31, 7734, 509, 1914, 1225, 273, 1914, 18, 1467, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1914, 1225, 31, 277, 27245, 288, 10792, 514, 1914, 1585, 273, 261, 780, 13, 1914, 18, 2956, 861, 12, 77, 1769, 10792, 309, 261, 1369, 18, 31806, 12, 12298, 1585, 13, 422, 300, 21, 13, 288, 13491, 980, 273, 446, 31, 13491, 898, 31, 10792, 289, 7734, 289, 7734, 327, 855, 5621, 5411, 289, 31, 3639, 289, 3639, 327, 462, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 509, 855, 1435, 1216, 1860, 288, 3639, 309, 16051, 588, 11459, 10756, 288, 5411, 4046, 5621, 5411, 444, 11459, 12, 3767, 1769, 3639, 289, 3639, 509, 462, 273, 300, 21, 31, 3639, 309, 261, 1369, 480, 446, 13, 288, 5411, 462, 273, 980, 18, 3001, 861, 12, 20, 1769, 5411, 309, 261, 1369, 18, 2469, 1435, 422, 404, 13, 288, 7734, 980, 273, 446, 31, 5411, 289, 469, 288, 7734, 980, 273, 980, 18, 28023, 12, 21, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 514, 980, 273, 446, 31, 5411, 980, 273, 12273, 5621, 5411, 1323, 12443, 1369, 480, 446, 13, 597, 261, 19747, 1670, 422, 446, 3719, 288, 7734, 7494, 1670, 273, 980, 31, 2 ]
firePropertyChange("labelFor", oldLabelFor, labelFor);
public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since this is relativly seldomly used, it // would be unnecessary waste of memory to do so. Component oldLabelFor = labelFor; if (oldLabelFor instanceof JComponent) { ((JComponent) oldLabelFor).putClientProperty(LABEL_PROPERTY, null); } labelFor = c; if (labelFor instanceof JComponent) { ((JComponent) labelFor).putClientProperty(LABEL_PROPERTY, this); } firePropertyChange("labelFor", oldLabelFor, labelFor); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16558, 1290, 12, 1841, 276, 13, 225, 288, 565, 309, 261, 71, 480, 1433, 1290, 13, 1377, 288, 3639, 368, 1660, 1378, 326, 1433, 1368, 326, 1004, 1790, 364, 326, 23585, 3639, 368, 1794, 1427, 716, 518, 848, 506, 855, 635, 326, 5016, 1523, 46, 1841, 18, 3639, 368, 1021, 1308, 1456, 4102, 506, 358, 20501, 279, 805, 6021, 652, 3639, 368, 316, 29058, 16, 1496, 3241, 333, 353, 26513, 427, 715, 357, 9859, 715, 1399, 16, 518, 3639, 368, 4102, 506, 19908, 341, 14725, 434, 3778, 358, 741, 1427, 18, 202, 1841, 1592, 2224, 1290, 273, 1433, 1290, 31, 3639, 309, 261, 1673, 2224, 1290, 1276, 29058, 13, 1850, 288, 5411, 14015, 46, 1841, 13, 1592, 2224, 1290, 2934, 458, 1227, 1396, 12, 13545, 67, 9900, 16, 446, 1769, 1850, 289, 202, 1925, 1290, 273, 276, 31, 202, 430, 261, 1925, 1290, 1276, 29058, 13, 1850, 288, 5411, 14015, 46, 1841, 13, 1433, 1290, 2934, 458, 1227, 1396, 12, 13545, 67, 9900, 16, 333, 1769, 1850, 289, 202, 377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16558, 1290, 12, 1841, 276, 13, 225, 288, 565, 309, 261, 71, 480, 1433, 1290, 13, 1377, 288, 3639, 368, 1660, 1378, 326, 1433, 1368, 326, 1004, 1790, 364, 326, 23585, 3639, 368, 1794, 1427, 716, 518, 848, 506, 855, 635, 326, 5016, 1523, 46, 1841, 18, 3639, 368, 1021, 1308, 1456, 4102, 506, 358, 20501, 279, 805, 6021, 652, 3639, 368, 316, 29058, 16, 1496, 3241, 333, 353, 26513, 427, 715, 357, 9859, 715, 1399, 16, 518, 3639, 368, 4102, 506, 19908, 341, 14725, 434, 3778, 358, 741, 1427, 18, 202, 1841, 1592, 2224, 1290, 273, 1433, 1290, 31, 3639, 309, 261, 1673, 2224, 1290, 1276, 29058, 13, 1850, 288, 5411, 14015, 46, 1841, 13, 2 ]
return new JaasLoginModuleConfiguration(realmName, JaasLoginCoordinator.class.getName(), LoginModuleControlFlag.REQUIRED, options, true);
return new JaasLoginModuleConfiguration(JaasLoginCoordinator.class.getName(), LoginModuleControlFlag.REQUIRED, options, true, realmName);
public JaasLoginModuleConfiguration generateConfiguration() { Map options = new HashMap(); options.put("realm", realmName); options.put("kernel", kernel.getKernelName()); return new JaasLoginModuleConfiguration(realmName, JaasLoginCoordinator.class.getName(), LoginModuleControlFlag.REQUIRED, options, true); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/ae3439347ba7724c375233ad0faa6774f6ff2cb0/GenericSecurityRealm.java/clean/modules/security/src/java/org/apache/geronimo/security/realm/GenericSecurityRealm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 18020, 5358, 3120, 1750, 2103, 1750, 1435, 288, 3639, 1635, 702, 273, 394, 4317, 5621, 3639, 702, 18, 458, 2932, 24056, 3113, 11319, 461, 1769, 3639, 702, 18, 458, 2932, 8111, 3113, 5536, 18, 588, 11286, 461, 10663, 3639, 327, 394, 804, 18020, 5358, 3120, 1750, 12, 46, 18020, 5358, 25307, 18, 1106, 18, 17994, 9334, 11744, 3120, 3367, 4678, 18, 14977, 16, 702, 16, 638, 16, 11319, 461, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 18020, 5358, 3120, 1750, 2103, 1750, 1435, 288, 3639, 1635, 702, 273, 394, 4317, 5621, 3639, 702, 18, 458, 2932, 24056, 3113, 11319, 461, 1769, 3639, 702, 18, 458, 2932, 8111, 3113, 5536, 18, 588, 11286, 461, 10663, 3639, 327, 394, 804, 18020, 5358, 3120, 1750, 12, 46, 18020, 5358, 25307, 18, 1106, 18, 17994, 9334, 11744, 3120, 3367, 4678, 18, 14977, 16, 702, 16, 638, 16, 11319, 461, 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 ]
void paintSimple(Graphics g)
void paintSimple(Rectangle r)
void paintSimple(Graphics g) { Graphics g2 = getComponentGraphics(g); paint(g2); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 12574, 5784, 12, 19463, 436, 13, 225, 288, 565, 16830, 314, 22, 273, 10322, 17558, 12, 75, 1769, 565, 12574, 12, 75, 22, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 12574, 5784, 12, 19463, 436, 13, 225, 288, 565, 16830, 314, 22, 273, 10322, 17558, 12, 75, 1769, 565, 12574, 12, 75, 22, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setTo(OMGraphic graphic) { super.setTo(graphic); graphic.setLineType(lineType); graphic.setRenderType(renderType);
public void setTo(GraphicAttributes clone) { super.setTo(clone); clone.renderType = renderType; clone.lineType = lineType; clone.enableLineTypeChoice = enableLineTypeChoice;
public void setTo(OMGraphic graphic) { super.setTo(graphic); graphic.setLineType(lineType); graphic.setRenderType(renderType); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/1b2e3ec7c77498aa4aba00851d82b1c25ce3fb88/GraphicAttributes.java/buggy/src/openmap/com/bbn/openmap/omGraphics/GraphicAttributes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19892, 12, 1872, 29459, 19548, 13, 288, 202, 9565, 18, 542, 774, 12, 4660, 335, 1769, 202, 4660, 335, 18, 542, 1670, 559, 12, 1369, 559, 1769, 202, 4660, 335, 18, 542, 3420, 559, 12, 5902, 559, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19892, 12, 1872, 29459, 19548, 13, 288, 202, 9565, 18, 542, 774, 12, 4660, 335, 1769, 202, 4660, 335, 18, 542, 1670, 559, 12, 1369, 559, 1769, 202, 4660, 335, 18, 542, 3420, 559, 12, 5902, 559, 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 ]
if(request.isPartSet("innitialindex")) {
if(request.isPartSet("initialindex")) {
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } HTTPRequest request = new HTTPRequest(uri,data,ctx); String passwd = request.getPartAsString("formPassword", 32); boolean noPassword = (passwd == null) || !passwd.equals(core.formPassword); if(noPassword) { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "No password ("+passwd+" should be "+core.formPassword+")"); } if(request.getPartAsString("updateconfirm", 32).length() > 0){ if(noPassword) { redirectToRoot(ctx); return; } // false for no navigation bars, because that would be very silly HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node updating"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Node updating")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "The Freenet node is being updated and will self-restart. The restart process may take up to 10 minutes, because the node will try to fetch a revocation key before updating."); content.addChild("p").addChild("#", "Thank you for using Freenet."); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); Logger.normal(this, "Node is updating/restarting"); node.ps.queueTimedJob(new Runnable() { public void run() { node.getNodeUpdater().Update(); }}, 0); return; }else if (request.getPartAsString(GenericReadFilterCallback.magicHTTPEscapeString, MAX_URL_LENGTH).length()>0){ if(noPassword) { redirectToRoot(ctx); return; } MultiValueTable headers = new MultiValueTable(); String url = null; if((request.getPartAsString("Go", 32).length() > 0)) url = request.getPartAsString(GenericReadFilterCallback.magicHTTPEscapeString, MAX_URL_LENGTH); headers.put("Location", url==null ? "/" : url); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; }else if (request.getPartAsString("update", 32).length() > 0) { if(noPassword) { redirectToRoot(ctx); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Update"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Update")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to update your Freenet node?"); HTMLNode updateForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "updateconfirm", "Update" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if(request.isPartSet("getThreadDump")) { if(noPassword) { redirectToRoot(ctx); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Get a Thread Dump"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isUsingWrapper()){ HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Thread Dump generation")); ctx.getPageMaker().getContentNode(infobox).addChild("#", "A thread dump has been generated, it's aviable in "+ WrapperManager.getProperties().getProperty("wrapper.logfile")); System.out.println("Thread Dump:"); WrapperManager.requestThreadDump(); }else{ HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error","Thread Dump generation")); ctx.getPageMaker().getContentNode(infobox).addChild("#", "It's not possible to make the node generate a thread dump if you aren't using the wrapper!"); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isPartSet("addbookmark")) { if(noPassword) { redirectToRoot(ctx); return; } String key = request.getPartAsString("key", MAX_KEY_LENGTH); String name = request.getPartAsString("name", MAX_NAME_LENGTH); try { bookmarks.addBookmark(new Bookmark(key, name), true); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_ADD, null, key, name, "Given key does not appear to be a valid Freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } } else if (request.isPartSet("managebookmarks")) { if(noPassword) { redirectToRoot(ctx); return; } Enumeration e = bookmarks.getBookmarks(); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); if (request.isPartSet("delete_"+b.hashCode())) { bookmarks.removeBookmark(b, true); } else if (request.isPartSet("edit_"+b.hashCode())) { this.sendBookmarkEditPage(ctx, b); return; } else if (request.isPartSet("update_"+b.hashCode())) { // removing it and adding means that any USK subscriptions are updated properly String key = request.getPartAsString("key", MAX_KEY_LENGTH); String name = request.getPartAsString("name", MAX_NAME_LENGTH); try { Bookmark newbkmk = new Bookmark(key, name); bookmarks.removeBookmark(b, false); bookmarks.addBookmark(newbkmk, true); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_EDIT, b, key, name, "Given key does not appear to be a valid freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } } } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } }else if(request.isPartSet("disable")){ if(noPassword) { redirectToRoot(ctx); return; } UserAlert[] alerts=core.alerts.getAlerts(); for(int i=0;i<alerts.length;i++){ if(request.getIntPart("disable",-1)==alerts[i].hashCode()){ UserAlert alert = alerts[i]; // Won't be dismissed if it's not allowed anyway if(alert.userCanDismiss() && alert.shouldUnregisterOnDismiss()) { alert.onDismiss(); Logger.normal(this,"Unregistering the userAlert "+alert.hashCode()); core.alerts.unregister(alert); } else { Logger.normal(this,"Disabling the userAlert "+alert.hashCode()); alert.isValid(false); } writePermanentRedirect(ctx, "Configuration applied", "/"); } } } else if(request.isPartSet("boardname")&&request.isPartSet("filename")) { if(noPassword) { redirectToRoot(ctx); return; } // Inserting into a frost board FIN // boardname // filename // boardprivatekey (not needed) // boardpublickey (not needed) (and maybe dump it all the way) // innitialindex // sender // subject String boardName = request.getPartAsString("boardname",FrostBoard.MAX_NAME_LENGTH); String boardPrivateKey = request.getPartAsString("boardprivatekey",78); String boardPublicKey = request.getPartAsString("boardpublickey",78); String sender = request.getPartAsString("sender",64); String subject = request.getPartAsString("subject",128); String filename = request.getPartAsString("filename",1024); int innitialIndex = 0; if(request.isPartSet("innitialindex")) { try { innitialIndex = Integer.parseInt(request.getPartAsString("innitialindex",3)); } catch(NumberFormatException e) { innitialIndex = 0; } } FrostBoard board = null; if(boardPrivateKey.length()>0 && boardPublicKey.length()>0) { // keyed board board = new FrostBoard(boardName, boardPrivateKey, boardPublicKey); } else { // unkeyed or public board board = new FrostBoard(boardName); } FrostMessage fin = new FrostMessage("news", board, sender, subject, filename); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Insertion"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode content; try { FreenetURI finalKey = fin.insertMessage(this.getClientImpl(), innitialIndex); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-success", "Insert Succeeded")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The message "); content.addChild("#", " has been inserted successfully into "+finalKey.toString()); } catch (InserterException e) { HTMLNode infobox = ctx.getPageMaker().getInfobox("infobox-error", "Insert Failed"); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The insert failed with the message: " + e.getMessage()); content.addChild("br"); if (e.uri != null) { content.addChild("#", "The URI would have been: " + e.uri); } int mode = e.getMode(); if((mode == InserterException.FATAL_ERRORS_IN_BLOCKS) || (mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS)) { content.addChild("br"); /* TODO */ content.addChild("#", "Splitfile-specific error: " + e.errorCodes.toVerboseString()); } } content.addChild("br"); content.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node Homepage" }, "Homepage"); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); request.freeParts(); }else if(request.isPartSet("key")&&request.isPartSet("filename")){ if(noPassword) { redirectToRoot(ctx); return; } FreenetURI key = new FreenetURI(request.getPartAsString("key",128)); String type = request.getPartAsString("content-type",128); if(type==null) type = "text/plain"; ClientMetadata contentType = new ClientMetadata(type); Bucket bucket = request.getPart("filename"); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Insertion"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode content; String filenameHint = null; if(key.getKeyType().equals("CHK")) { String[] metas = key.getAllMetaStrings(); if(metas != null && metas.length > 1) { filenameHint = metas[0]; } } InsertBlock block = new InsertBlock(bucket, contentType, key); try { key = this.insert(block, filenameHint, false); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-success", "Insert Succeeded")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The key "); content.addChild("a", "href", "/" + key.getKeyType() + "@" + key.getGuessableKey(), key.getKeyType() + "@" + key.getGuessableKey()); content.addChild("#", " has been inserted successfully."); } catch (InserterException e) { HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error", "Insert Failed")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The insert failed with the message: " + e.getMessage()); content.addChild("br"); if (e.uri != null) { content.addChild("#", "The URI would have been: " + e.uri); } int mode = e.getMode(); if((mode == InserterException.FATAL_ERRORS_IN_BLOCKS) || (mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS)) { content.addChild("br"); /* TODO */ content.addChild("#", "Splitfile-specific error: " + e.errorCodes.toVerboseString()); } } content.addChild("br"); content.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node Homepage" }, "Homepage"); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); request.freeParts(); bucket.free(); }else if (request.isPartSet("shutdownconfirm")) { if(noPassword) { redirectToRoot(ctx); return; } // Tell the user that the node is shutting down HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown", false); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "The Freenet node has been successfully shut down.")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); infoboxContent.addChild("#", "Thank you for using Freenet."); writeReply(ctx, 200, "text/html; charset=utf-8", "OK", pageNode.generate()); this.node.exit("Shutdown from fproxy"); return; }else if(request.isPartSet("restartconfirm")){ if(noPassword) { redirectToRoot(ctx); return; } // Tell the user that the node is restarting HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart", false); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "The Freenet is being restarted.")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); infoboxContent.addChild("#", "Please wait while the node is being restarted. This might take up to 3 minutes. Thank you for using Freenet."); writeReply(ctx, 200, "text/html; charset=utf-8", "OK", pageNode.generate()); Logger.normal(this, "Node is restarting"); node.getNodeStarter().restart(); return; }else { redirectToRoot(ctx); } }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/e34f01be68ed7e80fd4097bafbb4cefa2ac237fd/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 9506, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 892, 16, 5900, 1769, 202, 202, 780, 19093, 273, 590, 18, 588, 1988, 8092, 2932, 687, 3913, 3113, 3847, 1769, 202, 202, 6494, 1158, 3913, 273, 261, 24002, 422, 446, 13, 747, 401, 24002, 18, 14963, 12, 3644, 18, 687, 3913, 1769, 202, 202, 430, 12, 2135, 3913, 13, 288, 1082, 202, 430, 12, 3328, 18, 13139, 1343, 12, 3328, 18, 6236, 916, 16, 333, 3719, 4242, 18, 17364, 12, 2211, 16, 315, 2279, 2201, 7566, 15, 24002, 9078, 1410, 506, 13773, 3644, 18, 687, 3913, 9078, 2225, 1769, 202, 202, 97, 9506, 202, 430, 12, 2293, 18, 588, 1988, 8092, 2932, 2725, 10927, 3113, 3847, 2934, 2469, 1435, 405, 374, 15329, 1082, 202, 430, 12, 2135, 3913, 13, 288, 9506, 202, 7590, 774, 2375, 12, 5900, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 759, 629, 364, 1158, 10394, 22252, 16, 2724, 716, 4102, 506, 8572, 17714, 715, 1082, 202, 4870, 907, 1363, 907, 273, 1103, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 9506, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 892, 16, 5900, 1769, 202, 202, 780, 19093, 273, 590, 18, 588, 1988, 8092, 2932, 687, 3913, 3113, 3847, 1769, 202, 202, 6494, 1158, 3913, 273, 261, 24002, 422, 446, 13, 2 ]
try { return ctx.compileReader(globalObject, new StringReader(scriptstr), SOURCE_NAME_SVG, 1, rhinoClassLoader); } catch (IOException io) { throw new Error(); } }
try { return ctx.compileReader (globalObject, new StringReader(scriptstr), SOURCE_NAME_SVG, 1, rhinoClassLoader); } catch (IOException io) { throw new Error(); } }
public Object run() { try { return ctx.compileReader(globalObject, new StringReader(scriptstr), SOURCE_NAME_SVG, 1, rhinoClassLoader); } catch (IOException io) { // Should never happen: we are using a string throw new Error(); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/888c0ac94ad0404e4905d74cb9a39f92f93cecef/RhinoInterpreter.java/buggy/sources/org/apache/batik/script/rhino/RhinoInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1033, 1086, 1435, 288, 13491, 775, 288, 18701, 327, 1103, 18, 11100, 2514, 12, 6347, 921, 16, 4766, 5397, 394, 26227, 12, 4263, 701, 3631, 4766, 5397, 16088, 67, 1985, 67, 26531, 16, 4766, 5397, 404, 16, 6259, 15020, 7805, 1769, 13491, 289, 1044, 261, 14106, 2527, 13, 288, 18701, 368, 9363, 5903, 5865, 30, 732, 854, 1450, 279, 533, 18701, 604, 394, 1068, 5621, 13491, 289, 10792, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1033, 1086, 1435, 288, 13491, 775, 288, 18701, 327, 1103, 18, 11100, 2514, 12, 6347, 921, 16, 4766, 5397, 394, 26227, 12, 4263, 701, 3631, 4766, 5397, 16088, 67, 1985, 67, 26531, 16, 4766, 5397, 404, 16, 6259, 15020, 7805, 1769, 13491, 289, 1044, 261, 14106, 2527, 13, 288, 18701, 368, 9363, 5903, 5865, 30, 732, 854, 1450, 279, 533, 18701, 604, 394, 1068, 5621, 13491, 289, 10792, 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 ]
return XmlNames.isQualifiedName(content);
return XmlNames.isQualifiedName( WhiteSpaceProcessor.theCollapse.process(content) );
public boolean verify( String content ) { if(!super.verify(content)) return false; return XmlNames.isQualifiedName(content); }
45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/99b4e83810fd0e19cd0872e47b2efeef0219f64a/QnameType.java/buggy/xsdlib/src/com/sun/msv/datatype/xsd/QnameType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3929, 12, 514, 913, 262, 202, 95, 202, 202, 430, 12, 5, 9565, 18, 8705, 12, 1745, 3719, 202, 2463, 629, 31, 9506, 202, 2463, 5714, 1557, 18, 291, 12345, 12, 1745, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3929, 12, 514, 913, 262, 202, 95, 202, 202, 430, 12, 5, 9565, 18, 8705, 12, 1745, 3719, 202, 2463, 629, 31, 9506, 202, 2463, 5714, 1557, 18, 291, 12345, 12, 1745, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else if (command.equals("Rotate 90")) {
} else if (src == mRot90) {
private void handleEvent(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("Open...")) { if (checkSave()) { openMap(); } } else if (command.equals("Exit")) { if (checkSave()) { try { TiledConfiguration.write("tiled.conf"); } catch (Exception e) { e.printStackTrace(); } System.exit(0); } } else if (command.equals("Close")) { if (checkSave()) { setCurrentMap(null); } } else if (command.equals("New")) { if (checkSave()) { newMap(); } } else if (command.equals("Print...")) { try { MapPrinter mp = new MapPrinter(); mp.print(mapView); } catch (PrinterException e) { e.printStackTrace(); } } else if (command.equals("Add Layer") || command.equals("Duplicate Layer") || command.equals("Delete Layer") || command.equals("Move Layer Up") || command.equals("Move Layer Down") || command.equals("Merge Down") || command.equals("Merge All")) { doLayerStateChange(event); } else if (command.equals("New tileset...")) { if (currentMap != null) { NewTilesetDialog dialog = new NewTilesetDialog(appFrame, currentMap); TileSet newSet = dialog.create(); if (newSet != null) { currentMap.addTileset(newSet); } } } else if (command.equals("Import tileset...")) { if (currentMap != null) { JFileChooser ch = new JFileChooser(currentMap.getFilename()); ch.setFileFilter(new TiledFileFilter()); int ret = ch.showOpenDialog(appFrame); if (ret == JFileChooser.APPROVE_OPTION) { String filename = ch.getSelectedFile().getAbsolutePath(); MapReader mr = new XMLMapTransformer(); try { TileSet set = mr.readTileset(filename); set.setSource(null); currentMap.addTileset(set); } catch (Exception e) { e.printStackTrace(); } } } } else if (command.equals("Tileset Manager")) { if (currentMap != null) { TilesetManager manager = new TilesetManager(this, currentMap); manager.show(); } } else if (command.equals("Save")) { if (currentMap != null) { saveMap(currentMap.getFilename(),false); } } else if (command.equals("Save as...")) { if (currentMap != null) { saveMap(currentMap.getFilename(), true); } } else if (command.equals("Properties")) { MapPropertiesDialog pd = new MapPropertiesDialog(appFrame, this); pd.getProps(); } else if (command.equals("Zoom In")) { zoomIn(); } else if (command.equals("Zoom Out")) { zoomOut(); } else if (command.equals("Zoom Normalsize")) { if (currentMap != null) { zoomIn.setEnabled(true); zoomOut.setEnabled(true); zoomNormal.setEnabled(false); mapView.setZoomLevel(MapView.ZOOM_NORMALSIZE); } } else if (command.equals("Show Grid") || command.equals("Hide Grid")) { // Toggle grid mapView.toggleMode(MapView.PF_GRIDMODE); } else if (command.equals("Undo")) { undoStack.undo(); updateHistory(); mapView.repaint(); } else if (command.equals("Redo")) { undoStack.redo(); updateHistory(); mapView.repaint(); } else if(command.equals("Resize")) { ResizeDialog rd = new ResizeDialog(this); rd.showDialog(); } else if (command.equals("About")) { if (aboutDialog == null) { aboutDialog = new AboutDialog(appFrame); } aboutDialog.show(); } else if (command.substring(0, command.length() < 5 ? command.length() : 5).equals("_open")) { try { loadMap(TiledConfiguration.getValue( "tmx.recent." + command.substring(5))); } catch (Exception e) { e.printStackTrace(); } } else if (command.equals("Preferences...")) { ConfigurationDialog d = new ConfigurationDialog(appFrame); d.configure(); } else if (command.equals("Flip Horizontal")) { MapLayer layer = currentMap.getLayer(currentLayer); paintEdit = new MapLayerEdit(currentMap, new MapLayer(layer)); currentMap.getLayer(currentLayer).mirror(MapLayer.MIRROR_HORIZONTAL); layer = new MapLayer(currentMap.getLayer(currentLayer)); paintEdit.end(layer); paintEdit.setPresentationName("Flip Horizontal"); undoStack.addEdit(paintEdit); updateHistory(); mapView.repaint(); } else if (command.equals("Flip Vertical")) { MapLayer layer = currentMap.getLayer(currentLayer); paintEdit = new MapLayerEdit(currentMap, new MapLayer(layer)); paintEdit.setPresentationName("Flip Vertical"); layer.mirror(MapLayer.MIRROR_VERTICAL); paintEdit.end(new MapLayer(layer)); undoStack.addEdit(paintEdit); updateHistory(); mapView.repaint(); } else if (command.equals("Rotate 90")) { MapLayer layer = currentMap.getLayer(currentLayer); paintEdit = new MapLayerEdit(currentMap, new MapLayer(layer)); paintEdit.setPresentationName("Rotate 90"); layer.rotate(MapLayer.ROTATE_90); paintEdit.end(new MapLayer(layer)); undoStack.addEdit(paintEdit); updateHistory(); mapView.repaint(); } else if (command.equals("Rotate 180")) { MapLayer layer = currentMap.getLayer(currentLayer); paintEdit = new MapLayerEdit(currentMap, new MapLayer(layer)); paintEdit.setPresentationName("Rotate 180"); layer.rotate(MapLayer.ROTATE_180); paintEdit.end(new MapLayer(layer)); undoStack.addEdit(paintEdit); updateHistory(); mapView.repaint(); } else if (command.equals("Rotate 270")) { MapLayer layer = currentMap.getLayer(currentLayer); paintEdit = new MapLayerEdit(currentMap, new MapLayer(layer)); paintEdit.setPresentationName("Rotate 270"); layer.rotate(MapLayer.ROTATE_270); paintEdit.end(new MapLayer(layer)); undoStack.addEdit(paintEdit); updateHistory(); mapView.repaint(); } else { System.out.println(event); } }
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/c4e46198e12b1efd622f83e426ef21c399582ecb/MapEditor.java/buggy/tiled/mapeditor/MapEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 1133, 12, 1803, 1133, 871, 13, 288, 3639, 514, 1296, 273, 871, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 3076, 18, 14963, 2932, 3678, 7070, 3719, 288, 5411, 309, 261, 1893, 4755, 10756, 288, 2398, 202, 3190, 863, 5621, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 6767, 6, 3719, 288, 5411, 309, 261, 1893, 4755, 10756, 288, 2398, 202, 698, 288, 10792, 399, 1411, 1750, 18, 2626, 2932, 88, 1411, 18, 3923, 8863, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 425, 18, 1188, 6332, 5621, 7734, 289, 7734, 2332, 18, 8593, 12, 20, 1769, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 4605, 6, 3719, 288, 5411, 309, 261, 1893, 4755, 10756, 288, 2398, 202, 542, 3935, 863, 12, 2011, 1769, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 1908, 6, 3719, 288, 540, 202, 430, 261, 1893, 4755, 10756, 288, 2398, 202, 2704, 863, 5621, 540, 202, 97, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 5108, 7070, 3719, 288, 5411, 775, 288, 7734, 1635, 12149, 6749, 273, 394, 1635, 12149, 5621, 7734, 6749, 18, 1188, 12, 1458, 1767, 1769, 5411, 289, 1044, 261, 12149, 503, 425, 13, 288, 7734, 425, 18, 1188, 6332, 5621, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 986, 12112, 7923, 747, 7734, 1296, 18, 14963, 2932, 11826, 12112, 7923, 747, 7734, 1296, 18, 14963, 2932, 2613, 12112, 7923, 747, 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, 1640, 1133, 12, 1803, 1133, 871, 13, 288, 3639, 514, 1296, 273, 871, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 3076, 18, 14963, 2932, 3678, 7070, 3719, 288, 5411, 309, 261, 1893, 4755, 10756, 288, 2398, 202, 3190, 863, 5621, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 6767, 6, 3719, 288, 5411, 309, 261, 1893, 4755, 10756, 288, 2398, 202, 698, 288, 10792, 399, 1411, 1750, 18, 2626, 2932, 88, 1411, 18, 3923, 8863, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 425, 18, 1188, 6332, 5621, 7734, 289, 7734, 2332, 18, 8593, 12, 20, 1769, 5411, 289, 3639, 289, 469, 309, 261, 3076, 18, 14963, 2932, 4605, 6, 3719, 2 ]
public String getRange() { return "string"; }
public String getRange() { return collectionToRange(possibleValueSet); }
public String getRange() { return "string"; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/71806525207986bed91b40e8309049e2580a3f4d/ConvertToARFF.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ml/ConvertToARFF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 22373, 1435, 288, 327, 315, 1080, 14432, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 22373, 1435, 288, 327, 315, 1080, 14432, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
e.printStackTrace(); System.exit(1);
if (Constants.debug_level > 3) e.printStackTrace();
static SSLServerSocketFactory getServerSocketFactory(String type) { // set up key manager to do server authentication SSLContext ctx = null; KeyManagerFactory kmf = null; KeyStore ks = null; char[] passphrase = "netscape".toCharArray(); SSLServerSocketFactory ssf = null; // trust manager that trusts all cetificates TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { public boolean checkClientTrusted( java.security.cert.X509Certificate[] chain){ return true; } public boolean isServerTrusted( java.security.cert.X509Certificate[] chain){ return true; } public boolean isClientTrusted( java.security.cert.X509Certificate[] chain){ return true; } public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted( java.security.cert.X509Certificate[] chain, String authType) {} public void checkServerTrusted( java.security.cert.X509Certificate[] chain, String authType) {} } }; if (type.equals("TLS")) { try { ctx = SSLContext.getInstance("TLS"); kmf = KeyManagerFactory.getInstance("SunX509"); ks = KeyStore.getInstance("PKCS12"); ks.load(new FileInputStream(getKeystoreLoc()), passphrase); kmf.init(ks, passphrase); ctx.init(kmf.getKeyManagers(), trustAllCerts, null); ssf = ctx.getServerSocketFactory(); return ssf; } catch (Exception e) { e.printStackTrace(); System.exit(1); } } else if (type.equals("SSLv3")) { try { ctx = SSLContext.getInstance("SSLv3"); kmf = KeyManagerFactory.getInstance("SunX509"); ks = KeyStore.getInstance("PKCS12"); ks.load(new FileInputStream("./" + getKeystoreLoc()), passphrase); kmf.init(ks, passphrase); ctx.init(kmf.getKeyManagers(), trustAllCerts, null); ssf = ctx.getServerSocketFactory(); return ssf; } catch (Exception e) { e.printStackTrace(); System.exit(1); } } return null; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/2c88207a24bea2d0af88356473969a2e94d3f349/JSSE_SSLServer.java/clean/security/jss/org/mozilla/jss/tests/JSSE_SSLServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 7419, 2081, 4534, 1733, 11543, 4534, 1733, 12, 780, 618, 13, 288, 7734, 368, 444, 731, 498, 3301, 358, 741, 1438, 5107, 3639, 26886, 2398, 1103, 273, 446, 31, 3639, 1929, 20012, 1377, 417, 16126, 273, 446, 31, 3639, 17017, 7734, 11654, 273, 446, 31, 3639, 1149, 8526, 1850, 15244, 273, 315, 2758, 12476, 9654, 869, 15936, 5621, 3639, 7419, 2081, 4534, 1733, 5202, 74, 273, 446, 31, 7734, 368, 10267, 3301, 716, 10267, 87, 777, 276, 278, 1507, 815, 3639, 20246, 1318, 8526, 10267, 1595, 16273, 273, 394, 20246, 1318, 63, 7073, 5411, 394, 1139, 5995, 14146, 1318, 1435, 288, 7734, 1071, 1250, 866, 1227, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 4719, 8526, 2687, 15329, 10792, 327, 638, 31, 7734, 289, 7734, 1071, 1250, 353, 2081, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 4719, 8526, 2687, 15329, 10792, 327, 638, 31, 7734, 289, 7734, 1071, 1250, 353, 1227, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 4719, 8526, 2687, 15329, 10792, 327, 638, 31, 7734, 289, 7734, 1071, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 4719, 8526, 13491, 4506, 4474, 329, 7568, 27307, 1435, 288, 10792, 327, 446, 31, 7734, 289, 7734, 1071, 918, 866, 1227, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 4719, 8526, 2687, 16, 13491, 514, 28514, 13, 2618, 7734, 1071, 918, 866, 2081, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 7419, 2081, 4534, 1733, 11543, 4534, 1733, 12, 780, 618, 13, 288, 7734, 368, 444, 731, 498, 3301, 358, 741, 1438, 5107, 3639, 26886, 2398, 1103, 273, 446, 31, 3639, 1929, 20012, 1377, 417, 16126, 273, 446, 31, 3639, 17017, 7734, 11654, 273, 446, 31, 3639, 1149, 8526, 1850, 15244, 273, 315, 2758, 12476, 9654, 869, 15936, 5621, 3639, 7419, 2081, 4534, 1733, 5202, 74, 273, 446, 31, 7734, 368, 10267, 3301, 716, 10267, 87, 777, 276, 278, 1507, 815, 3639, 20246, 1318, 8526, 10267, 1595, 16273, 273, 394, 20246, 1318, 63, 7073, 5411, 394, 1139, 5995, 14146, 1318, 1435, 288, 7734, 1071, 1250, 866, 1227, 16950, 12, 13491, 2252, 18, 7462, 18, 7593, 18, 60, 5995, 2 ]
counter[c].phaseChange(phase);
counter[c].phaseChange(phase);
public static void startGC() { gcCount++; if (!gatheringStats) return; if (phase < MAX_PHASES - 1) { for (int c = 0; c < counters; c++) { counter[c].phaseChange(phase); } phase++; } else { Log.writeln("Warning: number of GC phases exceeds MAX_PHASES"); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/758ed5c231ce2489135a1eef3a6d5c0ec6ce00d7/Stats.java/buggy/MMTk/src/org/mmtk/utility/statistics/Stats.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 787, 15396, 1435, 288, 565, 8859, 1380, 9904, 31, 565, 309, 16051, 75, 4806, 310, 4195, 13, 327, 31, 565, 309, 261, 13961, 411, 4552, 67, 8939, 4429, 55, 300, 404, 13, 288, 1377, 364, 261, 474, 276, 273, 374, 31, 276, 411, 13199, 31, 276, 27245, 288, 202, 7476, 63, 71, 8009, 13961, 3043, 12, 13961, 1769, 1377, 289, 1377, 6855, 9904, 31, 565, 289, 469, 288, 1377, 1827, 18, 5363, 292, 82, 2932, 6210, 30, 1300, 434, 15085, 24642, 14399, 4552, 67, 8939, 4429, 55, 8863, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 787, 15396, 1435, 288, 565, 8859, 1380, 9904, 31, 565, 309, 16051, 75, 4806, 310, 4195, 13, 327, 31, 565, 309, 261, 13961, 411, 4552, 67, 8939, 4429, 55, 300, 404, 13, 288, 1377, 364, 261, 474, 276, 273, 374, 31, 276, 411, 13199, 31, 276, 27245, 288, 202, 7476, 63, 71, 8009, 13961, 3043, 12, 13961, 1769, 1377, 289, 1377, 6855, 9904, 31, 565, 289, 469, 288, 1377, 1827, 18, 5363, 292, 82, 2932, 6210, 30, 1300, 434, 15085, 24642, 14399, 4552, 67, 8939, 4429, 55, 8863, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String value = getValue();
public IRubyObject lstrip() { String value = getValue(); int length = value.length(); int i = 0; for (; i < length; i++) { if (!Character.isWhitespace(value.charAt(i))) { break; } } return newString(value.substring(i)); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 14730, 1435, 288, 202, 202, 780, 460, 273, 2366, 5621, 202, 202, 474, 769, 273, 460, 18, 2469, 5621, 202, 202, 474, 277, 273, 374, 31, 9506, 202, 1884, 261, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 430, 16051, 7069, 18, 291, 9431, 12, 1132, 18, 3001, 861, 12, 77, 20349, 288, 9506, 202, 8820, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 394, 780, 12, 1132, 18, 28023, 12, 77, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 14730, 1435, 288, 202, 202, 780, 460, 273, 2366, 5621, 202, 202, 474, 769, 273, 460, 18, 2469, 5621, 202, 202, 474, 277, 273, 374, 31, 9506, 202, 1884, 261, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 430, 16051, 7069, 18, 291, 9431, 12, 1132, 18, 3001, 861, 12, 77, 20349, 288, 9506, 202, 8820, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 394, 780, 12, 1132, 18, 28023, 12, 77, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static String[] getStringTable(byte[] bytes) { List aList = new ArrayList(); int offset = 0; for (int i = 0; i < bytes.length; i++) { if (bytes[i] == 0) { aList.add(new String(bytes, offset, i - offset)); offset = i + 1;
public byte[] getStringTable() throws IOException { if (string_table == null) { long symbolsize = Symbol.SYMSZ * getFileHeader().f_nsyms; long offset = getFileHeader().f_symptr + symbolsize; rfile.seek(offset); byte[] bytes = new byte[4]; rfile.readFully(bytes); int str_len = ReadMemoryAccess.getIntLE(bytes); if (str_len > 4 && str_len < rfile.length()) { str_len -= 4; string_table = new byte[str_len]; rfile.seek(offset + 4); rfile.readFully(string_table); } else { string_table = new byte[0];
public static String[] getStringTable(byte[] bytes) { List aList = new ArrayList(); int offset = 0; for (int i = 0; i < bytes.length; i++) { if (bytes[i] == 0) { aList.add(new String(bytes, offset, i - offset)); offset = i + 1; } } return (String[])aList.toArray(new String[0]); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/74206bb9c0adfac164644b684d089bbdf8757013/Coff.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/Coff.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 4997, 1388, 12, 7229, 8526, 1731, 13, 288, 202, 202, 682, 279, 682, 273, 394, 2407, 5621, 202, 202, 474, 1384, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1731, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 3890, 63, 77, 65, 422, 374, 13, 288, 9506, 202, 69, 682, 18, 1289, 12, 2704, 514, 12, 3890, 16, 1384, 16, 277, 300, 1384, 10019, 9506, 202, 3348, 273, 277, 397, 404, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 780, 63, 5717, 69, 682, 18, 31447, 12, 2704, 514, 63, 20, 19226, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 760, 514, 8526, 4997, 1388, 12, 7229, 8526, 1731, 13, 288, 202, 202, 682, 279, 682, 273, 394, 2407, 5621, 202, 202, 474, 1384, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1731, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 3890, 63, 77, 65, 422, 374, 13, 288, 9506, 202, 69, 682, 18, 1289, 12, 2704, 514, 12, 3890, 16, 1384, 16, 277, 300, 1384, 10019, 9506, 202, 3348, 273, 277, 397, 404, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 780, 63, 5717, 69, 682, 18, 31447, 12, 2704, 514, 63, 20, 19226, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
re.append((char) c); } StringBuffer flagsBuf = new StringBuffer();
addToString(c); } int reEnd = stringBufferTop;
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') if ((flags & TSF_NEWLINES) != 0) break; } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') isUnicodeEscapeStart = true; else c = '\\'; // always unread the 'u' or whatever, we need // to start the string below at the <backslash>. in.unread(); } if (isUnicodeEscapeStart || Character.isJavaIdentifierStart((char)c)) { in.startString(); boolean containsEscape = isUnicodeEscapeStart; do { c = in.read(); if (c == '\\') { c = in.read(); containsEscape = (c == 'u'); } } while (Character.isJavaIdentifierPart((char)c)); in.unread(); int result; String str = in.getString(); // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence after an identifier, we can report // an error here. if (containsEscape) { char ca[] = str.toCharArray(); int L = str.length(); int destination = 0; for (int i = 0; i != L;) { c = ca[i]; ++i; if (c == '\\' && i != L && ca[i] == 'u') { boolean goodEscape = false; if (i + 4 < L) { int val = xDigitToInt(ca[i + 1]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 2]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 3]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 4]); if (val >= 0) { c = (char)val; i += 5; goodEscape = true; } } } } } if (!goodEscape) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } } ca[destination] = (char)c; ++destination; } str = new String(ca, 0, destination); } else { // Return the corresponding token if it's a keyword result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); result = EOF; } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { int base = 10; in.startString(); if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { c = in.read(); base = 16; // restart the string, losing leading 0x in.startString(); } else if (isDigit(c)) { base = 8; } } while (0 <= xDigitToInt(c)) { if (base < 16) { if (isAlpha(c)) break; /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } } c = in.read(); } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { c = in.read(); if (c == '+' || c == '-') { c = in.read(); } if (!isDigit(c)) { in.getString(); // throw away string in progress reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = in.getString(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. StringBuffer stringBuf = null; int quoteChar = c; int val = 0; c = in.read(); in.startString(); // start after the first " while(c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); in.getString(); // throw away the string in progress reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character; revert to the // slow method of building a string. if (stringBuf == null) { // Don't include the backslash in.unread(); stringBuf = new StringBuffer(in.getString()); in.read(); } switch (c = in.read()) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; case 'v': c = '\u000B'; break; // \v a late addition to the ECMA spec. // '\v' doesn't seem to be valid Java. default: if (isDigit(c) && c < '8') { val = c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); } } in.unread(); if (val > 0377) { reportSyntaxError("msg.oct.esc.too.large", null); return ERROR; } c = val; } else if (c == 'u') { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. Do some manual * match (OK because we're in a string) to avoid * multi-char match on the underlying stream. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'u'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('u'); c = c1; } else { int c3 = in.read(); c = (c << 4) | xDigitToInt(c3); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); c = c2; } else { int c4 = in.read(); c = (c << 4) | xDigitToInt(c4); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); stringBuf.append((char)c2); c = c3; } else { // got 4 hex digits! Woo Hoo! } } } } } else if (c == 'x') { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'x'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('x'); c = c1; } else { // got 2 hex digits } } } } } if (stringBuf != null) stringBuf.append((char) c); c = in.read(); } if (stringBuf != null) this.string = stringBuf.toString(); else { in.unread(); // miss the trailing " this.string = in.getString(); in.read(); } return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { // We don't try to use the in.startString/in.getString // approach, because escaped characters (which break it) // seem likely to be common. StringBuffer re = new StringBuffer(); while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { re.append((char) c); c = in.read(); } re.append((char) c); } StringBuffer flagsBuf = new StringBuffer(); while (true) { if (in.match('g')) flagsBuf.append('g'); else if (in.match('i')) flagsBuf.append('i'); else if (in.match('m')) flagsBuf.append('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = re.toString(); this.regExpFlags = flagsBuf.toString(); return OBJECT; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': case '-': if (in.match('=')) { if (c == '+') { this.op = ADD; return ASSIGN; } else { this.op = SUB; return ASSIGN; } } else if (in.match((char) c)) { if (c == '+') { return INC; } else { return DEC; } } else if (c == '-') { return SUB; } else { return ADD; } default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5220fdb55a7afd4a0c4a0d02f8a489ee87fa676c/TokenStream.java/buggy/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 898, 31, 3639, 289, 1323, 261, 291, 46, 1260, 909, 12, 71, 13, 747, 276, 422, 2337, 82, 8284, 3639, 309, 261, 71, 422, 6431, 67, 7305, 13, 5411, 327, 6431, 31, 3639, 368, 2756, 19, 11041, 19, 1336, 792, 35, 3639, 368, 4267, 596, 364, 5023, 598, 279, 411, 823, 12877, 34, 3639, 1250, 353, 16532, 8448, 1685, 273, 629, 31, 3639, 309, 261, 71, 422, 5282, 13, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 296, 89, 6134, 7734, 353, 16532, 8448, 1685, 273, 638, 31, 5411, 469, 7734, 276, 273, 5282, 31, 5411, 368, 3712, 19541, 326, 296, 89, 11, 578, 15098, 16, 732, 1608, 5411, 368, 358, 787, 326, 533, 5712, 622, 326, 411, 823, 12877, 18652, 5411, 316, 18, 318, 896, 5621, 3639, 289, 3639, 309, 261, 291, 16532, 8448, 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, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 898, 31, 3639, 289, 1323, 261, 291, 46, 1260, 909, 12, 71, 2 ]
for( Enumeration s = services.elements(); s.hasMoreElements(); ) { ServiceInfo info = (ServiceInfo)s.nextElement();
for (Iterator serviceIterator = services.values().iterator() ; serviceIterator.hasNext() ;) { ServiceInfo info = (ServiceInfo)serviceIterator.next();
public void run() { synchronized (ioLock) { if (plannedAnswer == in) { plannedAnswer = null; } // We use these sets to prevent duplicate records // FIXME - This should be moved into DNSOutgoing HashSet questions = new HashSet(); HashSet answers = new HashSet(); if (state == DNSState.ANNOUNCED) { try { long now = System.currentTimeMillis(); long expirationTime = now + 1; //=now+DNSConstants.KNOWN_ANSWER_TTL; boolean isUnicast = (port != DNSConstants.MDNS_PORT); // Answer questions for (Enumeration e = in.questions.elements(); e.hasMoreElements(); ) { DNSEntry entry = (DNSEntry) e.nextElement(); if (entry instanceof DNSQuestion) { DNSQuestion q = (DNSQuestion) entry; // for unicast responses the question must be included if (isUnicast) { //out.addQuestion(q); questions.add(q); } int type = q.type; if (type == DNSConstants.TYPE_ANY || type == DNSConstants.TYPE_SRV) { if (host.name.equalsIgnoreCase(q.name)) { type = DNSConstants.TYPE_A; } else if (serviceTypes.containsKey(q.name.toLowerCase())) { type = DNSConstants.TYPE_PTR; } } switch( type ) { case DNSConstants.TYPE_A: { // Answer a query for a domain name //out = addAnswer( in, addr, port, out, host ); answers.add(host); break; } case DNSConstants.TYPE_PTR: { // Answer a query for services of a given type // find matching services for( Enumeration s = services.elements(); s.hasMoreElements(); ) { ServiceInfo info = (ServiceInfo)s.nextElement(); if (info.getState() == DNSState.ANNOUNCED) { if( q.name.equalsIgnoreCase(info.type) ) { answers.add(host); answers.add(new DNSRecord.Pointer( info.type, DNSConstants.TYPE_PTR, DNSConstants.CLASS_IN, DNSConstants.DNS_TTL, info.getQualifiedName()) ); answers.add( new DNSRecord.Service( info.getQualifiedName(), DNSConstants.TYPE_SRV, DNSConstants.CLASS_IN | DNSConstants.CLASS_UNIQUE, DNSConstants.DNS_TTL, info.priority, info.weight, info.port, host.name ) ); answers.add( new DNSRecord.Text( info.getQualifiedName(), DNSConstants.TYPE_TXT, DNSConstants.CLASS_IN | DNSConstants.CLASS_UNIQUE, DNSConstants.DNS_TTL, info.text ) ); } } } if( q.name.equalsIgnoreCase( "_services._mdns._udp.local." ) ) { for( Enumeration t = serviceTypes.elements(); t.hasMoreElements(); ) { answers.add( new DNSRecord.Pointer( "_services._mdns._udp.local.", DNSConstants.TYPE_PTR, DNSConstants.CLASS_IN, DNSConstants.DNS_TTL, (String)t.nextElement() ) ); } } break; } case DNSConstants.TYPE_SRV : case DNSConstants.TYPE_ANY : case DNSConstants.TYPE_TXT : { ServiceInfo info = (ServiceInfo) services.get(q.name.toLowerCase()); if (info != null && info.getState() == DNSState.ANNOUNCED) { answers.add(host); answers.add( new DNSRecord.Pointer( info.type, DNSConstants.TYPE_PTR, DNSConstants.CLASS_IN, DNSConstants.DNS_TTL, info.getQualifiedName()) ); answers.add( new DNSRecord.Service( info.getQualifiedName(), DNSConstants.TYPE_SRV, DNSConstants.CLASS_IN | DNSConstants.CLASS_UNIQUE, DNSConstants.DNS_TTL, info.priority, info.weight, info.port, host.name ) ); answers.add( new DNSRecord.Text( info.getQualifiedName(), DNSConstants.TYPE_TXT, DNSConstants.CLASS_IN | DNSConstants.CLASS_UNIQUE, DNSConstants.DNS_TTL, info.text ) ); } break; } default : { //System.out.println("JmDNSResponder.unhandled query:"+q); break; } } } } if (answers.size() !=0) { if (debug > 1) System.out.println("JmDNS responding"); DNSOutgoing out = null; if (isUnicast) { out = new DNSOutgoing( DNSConstants.FLAGS_QR_RESPONSE | DNSConstants.FLAGS_AA, false ); } for (Iterator i=questions.iterator(); i.hasNext(); ) { out.addQuestion((DNSQuestion) i.next()); } for (Iterator i=answers.iterator(); i.hasNext(); ) { out = addAnswer(in, addr, port, out, (DNSRecord) i.next()); } send(out); } cancel(); } catch (Throwable e) { e.printStackTrace(); close(); } } } }
51459 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51459/0163ae0c157c3a896ab369894d8c4302792969c3/JmDNS.java/clean/jmdns/src/javax/jmdns/JmDNS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 3852, 261, 1594, 2531, 13, 288, 7734, 309, 261, 412, 10041, 13203, 422, 316, 13, 288, 10792, 886, 10041, 13203, 273, 446, 31, 7734, 289, 27573, 368, 1660, 999, 4259, 1678, 358, 5309, 6751, 3853, 7734, 368, 9852, 300, 1220, 1410, 506, 10456, 1368, 8858, 24866, 7734, 6847, 13494, 273, 394, 6847, 5621, 7734, 6847, 12415, 273, 394, 6847, 5621, 4766, 7734, 309, 261, 2019, 422, 8858, 1119, 18, 1258, 3417, 2124, 23552, 13, 288, 10792, 775, 288, 13491, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 13491, 1525, 7686, 950, 273, 2037, 397, 404, 31, 368, 33, 3338, 15, 11602, 2918, 18, 9308, 67, 11607, 18839, 67, 11409, 31, 13491, 1250, 20488, 12544, 273, 261, 655, 480, 8858, 2918, 18, 6188, 3156, 67, 6354, 1769, 28524, 3639, 368, 21019, 13494, 13491, 364, 261, 21847, 425, 273, 316, 18, 9758, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 18701, 8858, 1622, 1241, 273, 261, 11602, 1622, 13, 425, 18, 4285, 1046, 5621, 18701, 309, 261, 4099, 1276, 8858, 11665, 13, 288, 27573, 8858, 11665, 1043, 273, 261, 11602, 11665, 13, 1241, 31, 4766, 27573, 368, 364, 640, 12544, 7220, 326, 5073, 1297, 506, 5849, 27573, 309, 261, 291, 984, 12544, 13, 288, 4766, 565, 368, 659, 18, 1289, 11665, 12, 85, 1769, 4766, 565, 13494, 18, 1289, 12, 85, 1769, 27573, 289, 4766, 27573, 509, 618, 273, 1043, 18, 723, 31, 27573, 309, 261, 723, 422, 8858, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 3852, 261, 1594, 2531, 13, 288, 7734, 309, 261, 412, 10041, 13203, 422, 316, 13, 288, 10792, 886, 10041, 13203, 273, 446, 31, 7734, 289, 27573, 368, 1660, 999, 4259, 1678, 358, 5309, 6751, 3853, 7734, 368, 9852, 300, 1220, 1410, 506, 10456, 1368, 8858, 24866, 7734, 6847, 13494, 273, 394, 6847, 5621, 7734, 6847, 12415, 273, 394, 6847, 5621, 4766, 7734, 309, 261, 2019, 422, 8858, 1119, 18, 1258, 3417, 2124, 23552, 13, 288, 10792, 775, 288, 13491, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 13491, 1525, 7686, 950, 273, 2037, 397, 404, 31, 368, 33, 3338, 15, 11602, 2918, 18, 9308, 67, 11607, 18839, 67, 11409, 31, 13491, 1250, 2 ]
throw new LDAPException("sasl", resultCode);
throw new LDAPException("Authentication failed", resultCode);
private boolean checkForSASLBindCompletion(int resultCode) throws LDAPException{ if (resultCode == LDAPException.SUCCESS) { return true; } else if (resultCode == LDAPException.SASL_BIND_IN_PROGRESS) { return false; } else { throw new LDAPException("sasl", resultCode); } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/831a10d21d43a8b53b899b507acd0630ce9d7a83/LDAPConnection.java/clean/directory/java-sdk/ldapjdk/netscape/ldap/LDAPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 13855, 55, 3033, 48, 3357, 11238, 12, 474, 563, 1085, 13, 1377, 1216, 11916, 503, 95, 3639, 309, 261, 2088, 1085, 422, 11916, 503, 18, 12778, 13, 288, 5411, 327, 638, 31, 3639, 289, 469, 309, 261, 2088, 1085, 422, 11916, 503, 18, 55, 3033, 48, 67, 2708, 67, 706, 67, 24022, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 288, 5411, 604, 394, 11916, 503, 2932, 6492, 2535, 3113, 563, 1085, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 13855, 55, 3033, 48, 3357, 11238, 12, 474, 563, 1085, 13, 1377, 1216, 11916, 503, 95, 3639, 309, 261, 2088, 1085, 422, 11916, 503, 18, 12778, 13, 288, 5411, 327, 638, 31, 3639, 289, 469, 309, 261, 2088, 1085, 422, 11916, 503, 18, 55, 3033, 48, 67, 2708, 67, 706, 67, 24022, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 288, 5411, 604, 394, 11916, 503, 2932, 6492, 2535, 3113, 563, 1085, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (action == "deleteAll") { this.actionDeleteAll(); } if (action == "deleteAllRecordTimer") { this.actionDeleteAllRecordTimer(); } if (action == "deleteAllSystemTimer") { this.actionDeleteAllSystemTimer(); } if (action == "deleteSelectedRecordTimer") { this.actionDeleteSelectedRecordTimer(); } if (action == "deleteSelectedSystemTimer") { this.actionDeleteSelectedSystemTimer(); } if (action == "addProgramTimer") { this.getTimerList()[0].add(this.buildRecordTimer()); this.getTab().getRecordTimerTableModel().fireTableDataChanged(); } if (action == "addSystemTimer") { this.getTimerList()[1].add(this.buildSystemTimer()); this.getTab().getSystemTimerTableModel().fireTableDataChanged(); } if (action == "reload") { this.actionReload(); } if (action == "send") { this.actionSend();
while (true) { if (action == "deleteAll") { this.actionDeleteAll(); break; } if (action == "deleteAllRecordTimer") { this.actionDeleteAllRecordTimer(); break; } if (action == "deleteAllSystemTimer") { this.actionDeleteAllSystemTimer(); break; } if (action == "deleteSelectedRecordTimer") { this.actionDeleteSelectedRecordTimer(); break; } if (action == "deleteSelectedSystemTimer") { this.actionDeleteSelectedSystemTimer(); break; } if (action == "addRecordTimer") { this.actionAddRecordTimer(); break; } if (action == "addSystemTimer") { this.actionAddSystemTimer(); break; } if (action == "reload") { this.actionReload(); break; } if (action == "send") { this.actionSend(); break; } if (action == "recordTimer") { this.actionRecordTimerRepeatDaysChanged(e); break; } if (action == "systemTimer") { this.actionSystemTimerRepeatDaysChanged(e); break; } break;
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action == "deleteAll") { this.actionDeleteAll(); } if (action == "deleteAllRecordTimer") { this.actionDeleteAllRecordTimer(); } if (action == "deleteAllSystemTimer") { this.actionDeleteAllSystemTimer(); } if (action == "deleteSelectedRecordTimer") { this.actionDeleteSelectedRecordTimer(); } if (action == "deleteSelectedSystemTimer") { this.actionDeleteSelectedSystemTimer(); } if (action == "addProgramTimer") { this.getTimerList()[0].add(this.buildRecordTimer()); this.getTab().getRecordTimerTableModel().fireTableDataChanged(); } if (action == "addSystemTimer") { this.getTimerList()[1].add(this.buildSystemTimer()); this.getTab().getSystemTimerTableModel().fireTableDataChanged(); } if (action == "reload") { this.actionReload(); } if (action == "send") { this.actionSend(); } }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/eb39b1470901d9b67127437decfdbde4d81bbf4f/ControlNeutrinoTimerTab.java/buggy/jtg/control/ControlNeutrinoTimerTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 2115, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 2115, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 3163, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 3163, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 7416, 2115, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 7416, 2115, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 7416, 3163, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 7416, 3163, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 1289, 9459, 6777, 7923, 288, 1082, 202, 2211, 18, 588, 6777, 682, 1435, 63, 20, 8009, 1289, 12, 2211, 18, 3510, 2115, 6777, 10663, 1082, 202, 2211, 18, 588, 5661, 7675, 588, 2115, 6777, 1388, 1488, 7675, 12179, 1388, 751, 5033, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 1289, 3163, 6777, 7923, 288, 1082, 202, 2211, 18, 588, 6777, 682, 1435, 63, 21, 8009, 1289, 12, 2211, 18, 3510, 3163, 6777, 10663, 1082, 202, 2211, 18, 588, 5661, 7675, 588, 3163, 6777, 1388, 1488, 7675, 12179, 1388, 751, 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, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 2115, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 2115, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 1595, 3163, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 1595, 3163, 6777, 5621, 202, 202, 97, 202, 202, 430, 261, 1128, 422, 315, 3733, 7416, 2115, 6777, 7923, 288, 1082, 202, 2211, 18, 1128, 2613, 7416, 2115, 6777, 5621, 2 ]
setMin((DataElement)newValue);
setMin((DataElement) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case ComponentPackage.SCALE__MIN: setMin((DataElement)newValue); return; case ComponentPackage.SCALE__MAX: setMax((DataElement)newValue); return; case ComponentPackage.SCALE__STEP: setStep(((Double)newValue).doubleValue()); return; case ComponentPackage.SCALE__UNIT: setUnit((ScaleUnitType)newValue); return; case ComponentPackage.SCALE__MINOR_GRIDS_PER_UNIT: setMinorGridsPerUnit(((Integer)newValue).intValue()); return; } eDynamicSet(eFeature, newValue); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ScaleImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ScaleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 5435, 2261, 18, 19378, 972, 6236, 30, 7734, 27724, 12443, 751, 1046, 13, 6129, 1769, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 6694, 30, 7734, 10851, 12443, 751, 1046, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 26951, 30, 7734, 444, 4160, 12443, 12, 5265, 13, 2704, 620, 2934, 9056, 620, 10663, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 15736, 30, 7734, 444, 2802, 12443, 5587, 2802, 559, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 6236, 916, 67, 6997, 19516, 67, 3194, 67, 15736, 30, 7734, 444, 19549, 6313, 87, 2173, 2802, 12443, 12, 4522, 13, 2704, 620, 2934, 474, 620, 10663, 7734, 327, 31, 3639, 289, 3639, 425, 9791, 694, 12, 73, 4595, 16, 6129, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 5435, 2261, 18, 19378, 972, 6236, 30, 7734, 27724, 12443, 751, 1046, 13, 6129, 1769, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 6694, 30, 7734, 10851, 12443, 751, 1046, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 26951, 30, 7734, 444, 4160, 12443, 12, 5265, 13, 2704, 620, 2934, 9056, 620, 10663, 7734, 327, 31, 5411, 648, 5435, 2261, 18, 19378, 972, 15736, 30, 7734, 444, 2802, 12443, 5587, 2802, 559, 13, 2704, 620, 1769, 7734, 327, 31, 2 ]
getLog().info( "Not processing config file template " + template + " because no destination specified (no property " + "config.template." + template + ")");
info("Not processing config file template " + template + " because no destination specified (no property " + "config.template." + template + ")");
private static void installConfigurationFile(String template) throws IOException { // Get the destination: specified in property config.template.XXX String destination = getProperty("config.template." + template); if (destination == null) { // If no destination is specified getLog().info( "Not processing config file template " + template + " because no destination specified (no property " + "config.template." + template + ")"); return; } getLog().info( "Installing configuration file template " + template + " to " + destination); // Open the template BufferedReader in = new BufferedReader(new FileReader( getProperty("dspace.dir") + File.separator + "config" + File.separator + "templates" + File.separator + template)); // Open the destination for writing PrintWriter out = new PrintWriter(new FileWriter(destination)); // We'll keep track of line numbers for error messages etc. int lineNumber = 0; String line; // Copy the template, filling out config values while ((line = in.readLine()) != null) { lineNumber++; // Find configuration values boolean moreValues = true; while (moreValues) { // Look for "@@" int first = line.indexOf("@@"); if (first > -1) { // Look for the "@@" on the other side int second = line.indexOf("@@", first + 2); if (second > -1) { // We have a property String propName = line.substring(first + 2, second); String propValue = getProperty(propName); if (propValue == null) { getLog() .warn( template + " line " + lineNumber + ": Property " + propName + " not defined in DSpace configuration - " + "using empty string"); propValue = ""; } // Fill in the value line = line.substring(0, first) + propValue + line.substring(second + 2); } else { // There's a "@@" with no second one... just leave as-is getLog().warn( template + " line " + lineNumber + ": Single @@ - leaving as-is"); moreValues = false; } } else { // No more @@'s moreValues = false; } } // Write the line out.println(line); } in.close(); out.close(); }
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/eca96b9fbb762592e7812a30a2551e25023b084a/ConfigurationManager.java/buggy/dspace/src/org/dspace/core/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3799, 1750, 812, 12, 780, 1542, 13, 5411, 1216, 1860, 565, 288, 3639, 368, 968, 326, 2929, 30, 1269, 316, 1272, 642, 18, 3202, 18, 15639, 3639, 514, 2929, 273, 3911, 2932, 1425, 18, 3202, 1199, 397, 1542, 1769, 3639, 309, 261, 10590, 422, 446, 13, 3639, 288, 5411, 368, 971, 1158, 2929, 353, 1269, 5411, 9189, 7675, 1376, 12, 10792, 315, 1248, 4929, 642, 585, 1542, 315, 397, 1542, 18701, 397, 315, 2724, 1158, 2929, 1269, 261, 2135, 1272, 315, 18701, 397, 315, 1425, 18, 3202, 1199, 397, 1542, 397, 7310, 1769, 5411, 327, 31, 3639, 289, 3639, 9189, 7675, 1376, 12, 7734, 315, 6410, 310, 1664, 585, 1542, 315, 397, 1542, 397, 315, 358, 315, 13491, 397, 2929, 1769, 3639, 368, 3502, 326, 1542, 3639, 10633, 316, 273, 394, 10633, 12, 2704, 23010, 12, 7734, 3911, 2932, 2377, 909, 18, 1214, 7923, 397, 1387, 18, 11287, 397, 315, 1425, 6, 13491, 397, 1387, 18, 11287, 397, 315, 8502, 6, 397, 1387, 18, 11287, 13491, 397, 1542, 10019, 3639, 368, 3502, 326, 2929, 364, 7410, 3639, 14071, 596, 273, 394, 14071, 12, 2704, 24639, 12, 10590, 10019, 3639, 368, 1660, 5614, 3455, 3298, 434, 980, 5600, 364, 555, 2743, 5527, 18, 3639, 509, 13629, 273, 374, 31, 3639, 514, 980, 31, 3639, 368, 5631, 326, 1542, 16, 25740, 596, 642, 924, 3639, 1323, 14015, 1369, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 3639, 288, 5411, 13629, 9904, 31, 5411, 368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3799, 1750, 812, 12, 780, 1542, 13, 5411, 1216, 1860, 565, 288, 3639, 368, 968, 326, 2929, 30, 1269, 316, 1272, 642, 18, 3202, 18, 15639, 3639, 514, 2929, 273, 3911, 2932, 1425, 18, 3202, 1199, 397, 1542, 1769, 3639, 309, 261, 10590, 422, 446, 13, 3639, 288, 5411, 368, 971, 1158, 2929, 353, 1269, 5411, 9189, 7675, 1376, 12, 10792, 315, 1248, 4929, 642, 585, 1542, 315, 397, 1542, 18701, 397, 315, 2724, 1158, 2929, 1269, 261, 2135, 1272, 315, 18701, 397, 315, 1425, 18, 3202, 1199, 397, 1542, 397, 7310, 1769, 5411, 327, 31, 3639, 289, 3639, 9189, 7675, 1376, 12, 7734, 315, 6410, 310, 1664, 585, 1542, 315, 397, 1542, 397, 315, 2 ]
if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); if (psiDir != null) { if (!myFileTypeManager.isFileIgnored(newName)) {
public void run() { PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); treeEvent.setParent(parentDir); if (VirtualFile.PROP_NAME.equals(propertyName)) { final String newName = (String)event.getNewValue(); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); if (psiDir != null) { if (!myFileTypeManager.isFileIgnored(newName)) { treeEvent.setChild(psiDir); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_DIRECTORY_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } else { treeEvent.setChild(psiDir); myManager.beforeChildRemoval(treeEvent); } } else { if (!isExcludeRoot(vFile) && !myFileTypeManager.isFileIgnored(newName)) { myManager.beforeChildAddition(treeEvent); } } } else { PsiFile psiFile = findFile(vFile); PsiFile psiFile1 = createPsiFile(vFile, newName); if (psiFile != null) { if (psiFile1 == null) { treeEvent.setChild(psiFile); myManager.beforeChildRemoval(treeEvent); } else if (!psiFile1.getClass().equals(psiFile.getClass())) { treeEvent.setOldChild(psiFile); myManager.beforeChildReplacement(treeEvent); } else { treeEvent.setChild(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_FILE_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } } else { if (psiFile1 != null) { myManager.beforeChildAddition(treeEvent); } } } } else if (VirtualFile.PROP_WRITABLE.equals(propertyName)) { PsiFile psiFile = myVFileToPsiFileMap.get(vFile); if (psiFile == null) return; treeEvent.setElement(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_WRITABLE); treeEvent.setOldValue(event.getOldValue()); treeEvent.setNewValue(event.getNewValue()); myManager.beforePropertyChange(treeEvent); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d88b0d6e4538f617f5b687d2c93ed46f9f15ff35/FileManagerImpl.java/clean/source/com/intellij/psi/impl/file/impl/FileManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 453, 7722, 2471, 20930, 2828, 2151, 1133, 273, 394, 453, 7722, 2471, 20930, 2828, 12, 4811, 1318, 1769, 5411, 2151, 1133, 18, 542, 3054, 12, 2938, 1621, 1769, 5411, 309, 261, 6466, 812, 18, 15811, 67, 1985, 18, 14963, 12, 4468, 461, 3719, 288, 2868, 727, 514, 13253, 273, 261, 780, 13, 2575, 18, 588, 1908, 620, 5621, 2868, 309, 261, 90, 812, 18, 291, 2853, 10756, 288, 7734, 453, 7722, 2853, 23921, 1621, 273, 1104, 2853, 12, 90, 812, 1769, 7734, 309, 261, 24275, 1621, 480, 446, 13, 288, 5375, 309, 16051, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 24275, 1621, 1769, 10792, 2151, 1133, 18, 542, 13073, 12, 52, 7722, 2471, 20930, 18, 15811, 67, 17229, 67, 1985, 1769, 10792, 2151, 1133, 18, 542, 7617, 620, 12, 90, 812, 18, 17994, 10663, 10792, 2151, 1133, 18, 542, 1908, 620, 12, 2704, 461, 1769, 10792, 3399, 1318, 18, 5771, 1396, 3043, 12, 3413, 1133, 1769, 5375, 289, 5375, 469, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 24275, 1621, 1769, 10792, 3399, 1318, 18, 5771, 1763, 24543, 12, 3413, 1133, 1769, 5375, 289, 7734, 289, 7734, 469, 288, 5375, 309, 16051, 291, 12689, 2375, 12, 90, 812, 13, 597, 401, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 3399, 1318, 18, 5771, 1763, 30296, 12, 3413, 1133, 1769, 5375, 289, 7734, 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, 6647, 1071, 918, 1086, 1435, 288, 5411, 453, 7722, 2471, 20930, 2828, 2151, 1133, 273, 394, 453, 7722, 2471, 20930, 2828, 12, 4811, 1318, 1769, 5411, 2151, 1133, 18, 542, 3054, 12, 2938, 1621, 1769, 5411, 309, 261, 6466, 812, 18, 15811, 67, 1985, 18, 14963, 12, 4468, 461, 3719, 288, 2868, 727, 514, 13253, 273, 261, 780, 13, 2575, 18, 588, 1908, 620, 5621, 2868, 309, 261, 90, 812, 18, 291, 2853, 10756, 288, 7734, 453, 7722, 2853, 23921, 1621, 273, 1104, 2853, 12, 90, 812, 1769, 7734, 309, 261, 24275, 1621, 480, 446, 13, 288, 5375, 309, 16051, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 2 ]
buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;" + numberOfDisconnected + "</span></li>");
buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;").append(numberOfDisconnected).append("</span></li>");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); ctx.getPageMaker().makeHead(buf, "Darknet Peers"); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime:&nbsp;" + bwlimitDelayTime + "ms</li>"); buf.append("<li>nodeAveragePingTime:&nbsp;" + nodeAveragePingTime + "ms</li>"); buf.append("<li>networkSizeEstimate:&nbsp;" + networkSizeEstimate + "&nbsp;nodes</li>"); buf.append("<li>nodeUptime:&nbsp;" + nodeUptimeString + "</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); // Activity box buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<ul id=\"activity\">\n" + "<li>Inserts:&nbsp;"+node.getNumInserts()+"</li>\n" + "<li>Requests:&nbsp;"+node.getNumRequests()+"</li>\n" + "<li>Transferring Requests:&nbsp;"+node.getNumTransferringRequests()+"</li>\n" + "<li>ARK Fetch Requests:&nbsp;"+node.getNumARKFetchers()+"</li>\n" + "</ul>\n"); buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected:&nbsp;" + numberOfConnected + "</span></li>"); } if (numberOfRoutingBackedOff > 0) { buf.append("<li><span class=\"peer_backedoff\">Backed off:&nbsp;" + numberOfRoutingBackedOff + "</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new:&nbsp;" + numberOfTooNew + "</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old:&nbsp;" + numberOfTooOld + "</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;" + numberOfDisconnected + "</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected:&nbsp;" + numberOfNeverConnected + "</span></li>"); } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); buf.append("</td><td class=\"last\">"); // Peer routing backoff reason box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append(routingBackoffReasons[i]+":&nbsp;"+reasonCount+"<br/>\n"); } } } buf.append("</div>"); buf.append("</div>\n"); buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append("<tr><th></th><th>Status</th><th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th><th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th><th>Version</th><th>Location</th><th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th><th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th></tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); boolean routingBackedOffNow = (now < routingBackedOffUntil); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if(backoff > 0 && backoff < 1000 ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = "/"; String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } String avgPingTimeString = ""; if(pn.isConnected()) avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; String VersionPrefixString = ""; String VersionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { VersionPrefixString = "<span class=\"peer_version_problem\">"; VersionSuffixString = "</span>"; } String NamePrefixString = ""; String NameSuffixString = ""; if(pn.isConnected()) { NamePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; NameSuffixString = "</a>"; } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"delete_node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = NamePrefixString+HTMLEncoder.encode(pn.getName())+NameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = VersionPrefixString+HTMLEncoder.encode(pn.getVersion())+VersionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; int x = ((Integer) row[2]).intValue(); String arkAsterisk = ""; if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+((PeerNode) row[0]).getPeerNodeStatusString()+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) // skip index 9 as it's used for sorting purposes only continue; buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />&nbsp;&nbsp;&nbsp;<span class=\"darknet_connections\">* Requesting ARK</span>\n"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/3be4a715743a4da419f855cd533fb98e389864a2/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 780, 1892, 1681, 273, 394, 6674, 12, 2163, 3247, 1769, 9506, 202, 759, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 5900, 18, 588, 1964, 12373, 7675, 6540, 1414, 12, 4385, 16, 315, 40, 1313, 2758, 19622, 414, 8863, 9506, 202, 759, 9852, 5, 1660, 1608, 2690, 13752, 4602, 202, 202, 6813, 907, 8526, 4261, 3205, 273, 756, 18, 588, 40, 1313, 2758, 9314, 5621, 9506, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 9506, 202, 2159, 18, 11798, 87, 18, 869, 4733, 4353, 12, 4385, 1769, 9506, 202, 20308, 756, 1267, 924, 1195, 202, 202, 474, 12986, 3595, 6763, 950, 273, 261, 474, 13, 756, 18, 588, 38, 91, 3595, 6763, 950, 5621, 202, 202, 474, 756, 17115, 17223, 950, 273, 261, 474, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2 ]
sf.schedule();
private static ClientGetState uskCreate(ClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket); sf.schedule(); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/dc371e62cad5776abdd1637f55b95503b3fb3a61/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 8065, 264, 1042, 1103, 16, 13124, 1042, 1328, 92, 16, 509, 30222, 16, 509, 13917, 2355, 16, 1250, 14046, 21009, 1227, 967, 16, 1033, 1147, 16, 1250, 353, 41, 1049, 2001, 16, 7408, 327, 4103, 13, 1216, 8065, 503, 288, 202, 202, 430, 12, 407, 79, 18, 87, 28892, 41, 1460, 1545, 374, 13, 288, 1082, 202, 759, 2000, 326, 4891, 4846, 1177, 1496, 622, 4520, 22168, 41, 1460, 18, 1082, 202, 5748, 28432, 273, 1103, 18, 407, 79, 1318, 18, 8664, 12, 407, 79, 1769, 1082, 202, 430, 12, 329, 608, 1648, 584, 79, 18, 87, 28892, 41, 1460, 13, 288, 9506, 202, 759, 16515, 358, 10326, 812, 16855, 9506, 202, 967, 11238, 2428, 3399, 8876, 273, 6862, 202, 2704, 587, 11129, 3886, 11238, 2428, 12, 407, 79, 16, 1103, 18, 407, 79, 1318, 16, 2875, 1769, 9506, 202, 759, 678, 970, 358, 1089, 326, 4891, 4846, 7494, 21437, 326, 2158, 21933, 18, 9506, 202, 5281, 812, 16855, 9033, 273, 4405, 202, 2704, 10326, 812, 16855, 12, 2938, 16, 3399, 8876, 16, 1004, 2277, 16, 584, 79, 18, 588, 1260, 47, 12, 407, 79, 18, 87, 28892, 41, 1460, 3631, 6862, 1082, 202, 3901, 7957, 16, 1103, 16, 1328, 92, 16, 30222, 16, 13917, 2355, 16, 14046, 21009, 1227, 967, 16, 6862, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 8065, 264, 1042, 1103, 16, 13124, 1042, 1328, 92, 16, 509, 30222, 16, 509, 13917, 2355, 16, 1250, 14046, 21009, 1227, 967, 16, 1033, 1147, 16, 1250, 353, 41, 1049, 2001, 16, 7408, 327, 4103, 13, 1216, 8065, 503, 288, 202, 202, 430, 12, 407, 79, 18, 87, 28892, 41, 1460, 1545, 374, 13, 288, 1082, 202, 759, 2000, 326, 4891, 4846, 1177, 1496, 622, 4520, 22168, 41, 1460, 18, 1082, 202, 5748, 28432, 273, 1103, 18, 407, 79, 1318, 18, 8664, 12, 407, 79, 2 ]
public String getIndexedExpr() { return (indexedExpr); }
public String getIndexedExpr() { return (indexedExpr); }
public String getIndexedExpr() { return (indexedExpr); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELRadioTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 514, 282, 8088, 329, 4742, 1435, 288, 327, 261, 19626, 4742, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 514, 282, 8088, 329, 4742, 1435, 288, 327, 261, 19626, 4742, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Called to showDialog() for LoggingDialog") ;
public static LoggingDialog showDialog(MainFrame frame, String title, AbstractView view) { System.out.println("Called to showDialog() for LoggingDialog") ; // Create the dialog window Composite parent = frame.getWindow() ; LoggingDialog dialog = new LoggingDialog(frame, title, view) ; //dialog.getDialog().setSize(550, 180) ; dialog.getDialog().pack() ; dialog.centerDialog(parent) ; dialog.open() ; dialog.pumpMessages() ; System.out.println("ShowDialog() complete for LoggingDialog") ; return dialog ; }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/5235e424395ac629cf5a3acfbbd6f0cd89b922a0/LoggingDialog.java/buggy/SoarSuite/Tools/SoarJavaDebugger/dialogs/LoggingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 10253, 6353, 2405, 6353, 12, 6376, 3219, 2623, 16, 514, 2077, 16, 4115, 1767, 1476, 13, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 8185, 358, 2405, 6353, 1435, 364, 10253, 6353, 7923, 274, 9506, 202, 759, 1788, 326, 6176, 2742, 202, 202, 9400, 982, 273, 2623, 18, 588, 3829, 1435, 274, 202, 202, 7735, 6353, 6176, 273, 394, 10253, 6353, 12, 3789, 16, 2077, 16, 1476, 13, 274, 25083, 202, 759, 12730, 18, 588, 6353, 7675, 542, 1225, 12, 2539, 20, 16, 9259, 13, 274, 202, 202, 12730, 18, 588, 6353, 7675, 2920, 1435, 274, 202, 202, 12730, 18, 5693, 6353, 12, 2938, 13, 274, 202, 202, 12730, 18, 3190, 1435, 274, 9506, 202, 12730, 18, 84, 2801, 5058, 1435, 274, 202, 202, 3163, 18, 659, 18, 8222, 2932, 5706, 6353, 1435, 3912, 364, 10253, 6353, 7923, 274, 202, 202, 2463, 6176, 274, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 10253, 6353, 2405, 6353, 12, 6376, 3219, 2623, 16, 514, 2077, 16, 4115, 1767, 1476, 13, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 8185, 358, 2405, 6353, 1435, 364, 10253, 6353, 7923, 274, 9506, 202, 759, 1788, 326, 6176, 2742, 202, 202, 9400, 982, 273, 2623, 18, 588, 3829, 1435, 274, 202, 202, 7735, 6353, 6176, 273, 394, 10253, 6353, 12, 3789, 16, 2077, 16, 1476, 13, 274, 25083, 202, 759, 12730, 18, 588, 6353, 7675, 542, 1225, 12, 2539, 20, 16, 9259, 13, 274, 202, 202, 12730, 18, 588, 6353, 7675, 2920, 1435, 274, 202, 202, 12730, 18, 5693, 6353, 12, 2938, 13, 274, 202, 202, 12730, 18, 3190, 1435, 274, 2 ]
float alGetListenerf(@ALenum int pname);
void alGetListenerf(@ALenum int pname, @Result float value);
float alGetListenerf(@ALenum int pname);
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/95e35d95ac2ba00d3f3a0b510166c4f722375a2f/AL10.java/buggy/src/templates/org/lwjgl/openal/AL10.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5659, 524, 967, 2223, 74, 26964, 1013, 7924, 509, 19952, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5659, 524, 967, 2223, 74, 26964, 1013, 7924, 509, 19952, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
res.close();
res.close();
public Vector getSubFolders(CmsFolder parentFolder) throws CmsException { Vector folders=new Vector(); CmsFolder folder=null; ResultSet res =null; PreparedStatement statement = null; try { // get all subfolders statement = m_pool.getPreparedStatement(C_RESOURCES_GET_SUBFOLDER_KEY); statement.setInt(1,parentFolder.getResourceId()); res = statement.executeQuery(); // create new folder objects while ( res.next() ) { folder = new CmsFolder(res.getInt(C_RESOURCES_RESOURCE_ID), res.getInt(C_RESOURCES_PARENT_ID), res.getInt(C_RESOURCES_FILE_ID), res.getString(C_RESOURCES_RESOURCE_NAME), res.getInt(C_RESOURCES_RESOURCE_TYPE), res.getInt(C_RESOURCES_RESOURCE_FLAGS), res.getInt(C_RESOURCES_USER_ID), res.getInt(C_RESOURCES_GROUP_ID), res.getInt(C_PROJECT_ID_RESOURCES), res.getInt(C_RESOURCES_ACCESS_FLAGS), res.getInt(C_RESOURCES_STATE), res.getInt(C_RESOURCES_LOCKED_BY), res.getTimestamp(C_RESOURCES_DATE_CREATED).getTime(), res.getTimestamp(C_RESOURCES_DATE_LASTMODIFIED).getTime(), res.getInt(C_RESOURCES_LASTMODIFIED_BY) ); folders.addElement(folder); } res.close(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"] "+e.getMessage(),CmsException.C_SQL_ERROR, e); } catch( Exception exc ) { throw new CmsException("getSubFolders "+exc.getMessage(), CmsException.C_UNKNOWN_EXCEPTION, exc); }finally { if( statement != null) { m_pool.putPreparedStatement(C_RESOURCES_GET_SUBFOLDER_KEY, statement); } } return SortEntrys(folders); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/bfd608ea5205949b70df14e26b599faec4f75b90/CmsDbAccess.java/clean/src/com/opencms/file/genericSql/CmsDbAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 1071, 5589, 7040, 14885, 12, 4747, 3899, 982, 3899, 13, 540, 1216, 11228, 288, 540, 5589, 9907, 33, 2704, 5589, 5621, 540, 2149, 3899, 3009, 33, 2011, 31, 540, 10842, 400, 273, 2011, 31, 540, 16913, 3021, 273, 446, 31, 6647, 775, 288, 2398, 368, 225, 336, 777, 720, 16064, 2398, 3021, 273, 312, 67, 6011, 18, 588, 29325, 12, 39, 67, 11395, 55, 67, 3264, 67, 8362, 17357, 67, 3297, 1769, 2398, 3021, 18, 542, 1702, 12, 21, 16, 2938, 3899, 18, 588, 17790, 10663, 2868, 400, 273, 3021, 18, 8837, 1138, 5621, 19694, 368, 752, 394, 3009, 2184, 1082, 565, 1323, 261, 400, 18, 4285, 1435, 262, 288, 9079, 3009, 273, 394, 2149, 3899, 12, 455, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 11395, 67, 734, 3631, 6862, 6862, 9506, 282, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 14943, 67, 734, 3631, 6862, 6862, 9506, 282, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 3776, 67, 734, 3631, 6862, 6862, 9506, 282, 400, 18, 588, 780, 12, 39, 67, 11395, 55, 67, 11395, 67, 1985, 3631, 4766, 9079, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 11395, 67, 2399, 3631, 4766, 9079, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 11395, 67, 17836, 3631, 4766, 9079, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 4714, 67, 734, 3631, 4766, 9079, 400, 18, 588, 1702, 12, 39, 67, 11395, 55, 67, 8468, 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, 1071, 5589, 7040, 14885, 12, 4747, 3899, 982, 3899, 13, 540, 1216, 11228, 288, 540, 5589, 9907, 33, 2704, 5589, 5621, 540, 2149, 3899, 3009, 33, 2011, 31, 540, 10842, 400, 273, 2011, 31, 540, 16913, 3021, 273, 446, 31, 6647, 775, 288, 2398, 368, 225, 336, 777, 720, 16064, 2398, 3021, 273, 312, 67, 6011, 18, 588, 29325, 12, 39, 67, 11395, 55, 67, 3264, 67, 8362, 17357, 67, 3297, 1769, 2398, 3021, 18, 542, 1702, 12, 21, 16, 2938, 3899, 18, 588, 17790, 10663, 2868, 400, 273, 3021, 18, 8837, 1138, 5621, 19694, 368, 752, 394, 3009, 2184, 1082, 565, 1323, 261, 400, 18, 4285, 1435, 262, 288, 9079, 3009, 273, 394, 2149, 3899, 12, 455, 2 ]
out.writeLong(file.length()); in = FileSystem.getNamed("local", this.jobConf).open(file);
out.writeLong(getLocalFs().getLength(file)); in = getLocalFs().open(file);
public void write(DataOutput out) throws IOException { UTF8.writeString(out, mapTaskId); UTF8.writeString(out, reduceTaskId); out.writeInt(partition); File file = getOutputFile(mapTaskId, partition); FSDataInputStream in = null; try { // write the length-prefixed file content to the wire out.writeLong(file.length()); in = FileSystem.getNamed("local", this.jobConf).open(file); } catch (FileNotFoundException e) { TaskTracker.LOG.log(Level.SEVERE, "Can't open map output:" + file, e); ((MapOutputServer)Server.get()).getTaskTracker().mapOutputLost(mapTaskId); throw e; } try { byte[] buffer = new byte[8192]; int l = 0; while (l != -1) { out.write(buffer, 0, l); try { l = in.read(buffer); } catch (IOException e) { TaskTracker.LOG.log(Level.SEVERE,"Can't read map output:" + file, e); ((MapOutputServer)Server.get()).getTaskTracker().mapOutputLost(mapTaskId); throw e; } } } finally { in.close(); } }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ee01fef4b4fb82c7492a4a747793839a4d14cd39/MapOutputFile.java/buggy/src/java/org/apache/hadoop/mapred/MapOutputFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 751, 1447, 596, 13, 1216, 1860, 288, 565, 6380, 28, 18, 2626, 780, 12, 659, 16, 852, 30182, 1769, 565, 6380, 28, 18, 2626, 780, 12, 659, 16, 5459, 30182, 1769, 565, 596, 18, 2626, 1702, 12, 10534, 1769, 3639, 1387, 585, 273, 11062, 812, 12, 1458, 30182, 16, 3590, 1769, 565, 9247, 751, 4348, 316, 273, 446, 31, 565, 775, 288, 1377, 368, 1045, 326, 769, 17, 3239, 329, 585, 913, 358, 326, 6636, 1377, 596, 18, 2626, 3708, 12, 768, 18, 2469, 10663, 1377, 316, 273, 10931, 18, 588, 7604, 2932, 3729, 3113, 333, 18, 4688, 3976, 2934, 3190, 12, 768, 1769, 565, 289, 1044, 261, 812, 3990, 425, 13, 288, 1377, 3837, 8135, 18, 4842, 18, 1330, 12, 2355, 18, 1090, 2204, 41, 16, 315, 2568, 1404, 1696, 852, 876, 2773, 397, 585, 16, 425, 1769, 1377, 14015, 863, 1447, 2081, 13, 2081, 18, 588, 1435, 2934, 588, 2174, 8135, 7675, 1458, 1447, 19024, 12, 1458, 30182, 1769, 1377, 604, 425, 31, 565, 289, 565, 775, 288, 1377, 1160, 8526, 1613, 273, 394, 1160, 63, 28, 15561, 15533, 1377, 509, 328, 225, 273, 374, 31, 5411, 1323, 261, 80, 480, 300, 21, 13, 288, 3639, 596, 18, 2626, 12, 4106, 16, 374, 16, 328, 1769, 3639, 775, 288, 1850, 328, 273, 316, 18, 896, 12, 4106, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 1850, 3837, 8135, 18, 4842, 18, 1330, 12, 2355, 18, 1090, 2204, 41, 10837, 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, 1045, 12, 751, 1447, 596, 13, 1216, 1860, 288, 565, 6380, 28, 18, 2626, 780, 12, 659, 16, 852, 30182, 1769, 565, 6380, 28, 18, 2626, 780, 12, 659, 16, 5459, 30182, 1769, 565, 596, 18, 2626, 1702, 12, 10534, 1769, 3639, 1387, 585, 273, 11062, 812, 12, 1458, 30182, 16, 3590, 1769, 565, 9247, 751, 4348, 316, 273, 446, 31, 565, 775, 288, 1377, 368, 1045, 326, 769, 17, 3239, 329, 585, 913, 358, 326, 6636, 1377, 596, 18, 2626, 3708, 12, 768, 18, 2469, 10663, 1377, 316, 273, 10931, 18, 588, 7604, 2932, 3729, 3113, 333, 18, 4688, 3976, 2934, 3190, 12, 768, 1769, 565, 289, 1044, 261, 812, 3990, 425, 13, 288, 1377, 2 ]
public void initBrowserNative() throws JdicInitException { // The Browser component is used. // If the Browser specific native file setting was already initialized, // just return. if (isBrowserNativeInitialized) { return; } try { // Pre-append the JDIC binary path to PATH(on Windows) or // LD_LIBRARY_PATH(on Unix). InitUtility.appendEnv(libPathEnv, binaryPath); String browserPath = WebBrowserUtil.getBrowserPath(); if (browserPath == null) { throw new JdicInitException( "Can't locate the native browser path!"); } // Mozilla is the default/embedded browser. if (WebBrowserUtil.isDefaultBrowserMozilla()) { // Use the user defined env variable or the mozilla binary // path as the default MOZILLA_FIVE_HOME value. String envMFH = InitUtility.getEnv("MOZILLA_FIVE_HOME"); if (envMFH == null) { File browserFile = new File(browserPath); if (browserFile.isDirectory()) { envMFH = browserFile.getCanonicalPath(); } else { envMFH = browserFile.getCanonicalFile().getParent(); } } if (!isWindows) { // On Unix, add the binary path to PATH. InitUtility.appendEnv("PATH", binaryPath); // When running on webstart, the browser binary will lose // "x" permission after extracted from .jar file. String browserBinary = WebBrowser.getBrowserBinary(); Runtime.getRuntime().exec("chmod a+x "+ binaryPath + File.separator + browserBinary); } else { // Mozilla on Windows, // - first reset MOZILLA_FIVE_HOME to the GRE directory path // [Common Files]\mozilla.org\GRE\1.x_BUILDID, // if Mozilla installs from a .exe package. // // - then copy MozEmbed.exe to %MOZILLA_FIVE_HOME% directory. String xpcomPath = envMFH + File.separator + "xpcom.dll"; if (!(new File(xpcomPath).isFile())) { // Mozilla installs from a .exe package. Check the // installed GRE directory. String mozGreHome = WebBrowserUtil.getMozillaGreHome(); if (mozGreHome == null) { throw new JdicInitException( "Can't locate the GRE directory of the " + "installed Mozilla binary: " + envMFH); } envMFH = mozGreHome; } String sourceFileName = binaryPath + File.separator + "MozEmbed.exe"; String destFileName = envMFH + File.separator + "MozEmbed.exe"; InitUtility.copyFile(sourceFileName, destFileName); } InitUtility.appendEnv("MOZILLA_FIVE_HOME", envMFH); InitUtility.appendEnv(libPathEnv, envMFH); } // end - Mozilla is the default/embedded browser. } catch (Throwable e) { throw new JdicInitException(e); } isBrowserNativeInitialized = true; }
46042 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46042/3ef773cec70f89890d329bf9e376fc3a82b68c95/JdicManager.java/buggy/src/jdic/src/share/classes/org/jdesktop/jdic/init/JdicManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 9132, 9220, 1435, 1216, 804, 15859, 2570, 503, 288, 3639, 368, 1021, 15408, 1794, 353, 1399, 18, 3639, 368, 971, 326, 15408, 2923, 6448, 585, 3637, 1703, 1818, 6454, 16, 540, 368, 2537, 327, 18, 3639, 309, 261, 291, 9132, 9220, 11459, 13, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 368, 2962, 17, 6923, 326, 804, 2565, 39, 3112, 589, 358, 7767, 12, 265, 8202, 13, 578, 2398, 368, 28083, 67, 2053, 28254, 67, 4211, 12, 265, 9480, 2934, 4766, 4378, 6497, 18, 6923, 3491, 12, 2941, 743, 3491, 16, 3112, 743, 1769, 2398, 514, 4748, 743, 273, 2999, 9132, 1304, 18, 588, 9132, 743, 5621, 5411, 309, 261, 11213, 743, 422, 446, 13, 288, 7734, 604, 394, 804, 15859, 2570, 503, 12, 10792, 315, 2568, 1404, 10627, 326, 6448, 4748, 589, 4442, 1769, 5411, 289, 5411, 368, 19058, 10745, 353, 326, 805, 19, 20722, 4748, 18, 5411, 309, 261, 4079, 9132, 1304, 18, 291, 1868, 9132, 49, 11142, 10745, 10756, 288, 4766, 282, 368, 2672, 326, 729, 2553, 1550, 2190, 578, 326, 27513, 3112, 7734, 368, 589, 487, 326, 805, 16070, 62, 2627, 2534, 67, 1653, 3412, 67, 14209, 460, 18, 7734, 514, 1550, 13542, 44, 273, 4378, 6497, 18, 588, 3491, 2932, 5980, 62, 2627, 2534, 67, 1653, 3412, 67, 14209, 8863, 7734, 309, 261, 3074, 13542, 44, 422, 446, 13, 288, 10792, 1387, 4748, 812, 273, 394, 1387, 12, 11213, 743, 1769, 10792, 309, 261, 11213, 812, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 9132, 9220, 1435, 1216, 804, 15859, 2570, 503, 288, 3639, 368, 1021, 15408, 1794, 353, 1399, 18, 3639, 368, 971, 326, 15408, 2923, 6448, 585, 3637, 1703, 1818, 6454, 16, 540, 368, 2537, 327, 18, 3639, 309, 261, 291, 9132, 9220, 11459, 13, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 368, 2962, 17, 6923, 326, 804, 2565, 39, 3112, 589, 358, 7767, 12, 265, 8202, 13, 578, 2398, 368, 28083, 67, 2053, 28254, 67, 4211, 12, 265, 9480, 2934, 4766, 4378, 6497, 18, 6923, 3491, 12, 2941, 743, 3491, 16, 3112, 743, 1769, 2398, 514, 4748, 743, 273, 2999, 9132, 1304, 18, 588, 9132, 743, 5621, 5411, 309, 261, 11213, 743, 422, 2 ]
public static double abs(double d)
public static int abs(int i)
public static double abs(double d) { return (d <= 0) ? 0 - d : d; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/36b8a2afb2057cf01f2b6b099657e3b206c095de/Math.java/buggy/libjava/java/lang/Math.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 2417, 12, 474, 277, 13, 225, 288, 565, 327, 261, 72, 1648, 374, 13, 692, 374, 300, 302, 294, 302, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 2417, 12, 474, 277, 13, 225, 288, 565, 327, 261, 72, 1648, 374, 13, 692, 374, 300, 302, 294, 302, 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 ]
checkURIs[x-dataBlocks.length] = key.getURI();
checkURIs[x-dataBlocks.length] = uri;
public void onEncode(ClientKey key, ClientPutState state) { SingleBlockInserter sbi = (SingleBlockInserter)state; int x = sbi.token; synchronized(this) { if(finished) return; if(x >= dataBlocks.length) { if(checkURIs[x-dataBlocks.length] != null) { Logger.normal(this, "Got uri twice for check block "+x+" on "+this); return; } checkURIs[x-dataBlocks.length] = key.getURI(); } else { if(dataURIs[x] != null) { Logger.normal(this, "Got uri twice for data block "+x+" on "+this); return; } dataURIs[x] = key.getURI(); } blocksGotURI++; if(blocksGotURI != dataBlocks.length + checkBlocks.length) return; } // Double check for(int i=0;i<checkURIs.length;i++) if(checkURIs[i] == null) { Logger.error(this, "Check URI "+i+" is null"); return; } for(int i=0;i<dataURIs.length;i++) { if(dataURIs[i] == null) { Logger.error(this, "Data URI "+i+" is null"); return; } } parent.segmentHasURIs(this); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/4ca04e00097bc75c6db60d8f51a8350367f45de2/SplitFileInserterSegment.java/buggy/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 603, 5509, 12, 1227, 653, 498, 16, 2445, 6426, 1119, 919, 13, 288, 202, 202, 5281, 1768, 382, 550, 387, 2393, 77, 273, 261, 5281, 1768, 382, 550, 387, 13, 2019, 31, 202, 202, 474, 619, 273, 2393, 77, 18, 2316, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 430, 12, 92, 1545, 501, 6450, 18, 2469, 13, 288, 9506, 202, 430, 12, 1893, 1099, 2520, 63, 92, 17, 892, 6450, 18, 2469, 65, 480, 446, 13, 288, 6862, 202, 3328, 18, 6130, 12, 2211, 16, 315, 15617, 2003, 13605, 364, 866, 1203, 13773, 92, 9078, 603, 13773, 2211, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 1893, 1099, 2520, 63, 92, 17, 892, 6450, 18, 2469, 65, 273, 498, 18, 588, 3098, 5621, 1082, 202, 97, 469, 288, 9506, 202, 430, 12, 892, 1099, 2520, 63, 92, 65, 480, 446, 13, 288, 6862, 202, 3328, 18, 6130, 12, 2211, 16, 315, 15617, 2003, 13605, 364, 501, 1203, 13773, 92, 9078, 603, 13773, 2211, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 892, 1099, 2520, 63, 92, 65, 273, 498, 18, 588, 3098, 5621, 1082, 202, 97, 1082, 202, 7996, 15617, 3098, 9904, 31, 1082, 202, 430, 12, 7996, 15617, 3098, 480, 501, 6450, 18, 2469, 397, 866, 6450, 18, 2469, 13, 327, 31, 202, 202, 97, 202, 202, 759, 3698, 866, 202, 202, 1884, 12, 474, 277, 33, 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, 603, 5509, 12, 1227, 653, 498, 16, 2445, 6426, 1119, 919, 13, 288, 202, 202, 5281, 1768, 382, 550, 387, 2393, 77, 273, 261, 5281, 1768, 382, 550, 387, 13, 2019, 31, 202, 202, 474, 619, 273, 2393, 77, 18, 2316, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 430, 12, 92, 1545, 501, 6450, 18, 2469, 13, 288, 9506, 202, 430, 12, 1893, 1099, 2520, 63, 92, 17, 892, 6450, 18, 2469, 65, 480, 446, 13, 288, 6862, 202, 3328, 18, 6130, 12, 2211, 16, 315, 15617, 2003, 13605, 364, 866, 1203, 13773, 92, 9078, 603, 13773, 2211, 1769, 6862, 202, 2463, 31, 9506, 2 ]
{ int lengthLocation = markStack[--top]; int length = offset - lengthLocation;
{ int lengthLocation = markStack[--top]; int length = offset - lengthLocation;
protected void endDdm () { // remove the top length location offset from the mark stack // calculate the length based on the marked location and end of data. int lengthLocation = markStack[--top]; int length = offset - lengthLocation; // determine if any extended length bytes are needed. the value returned // from calculateExtendedLengthByteCount is the number of extended length // bytes required. 0 indicates no exteneded length. int extendedLengthByteCount = calculateExtendedLengthByteCount (length); if (extendedLengthByteCount != 0) { // ensure there is enough room in the buffer for the extended length bytes. ensureLength (extendedLengthByteCount); // calculate the length to be placed in the extended length bytes. // this length does not include the 4 byte llcp. int extendedLength = length - 4; // shift the data to the right by the number of extended // length bytes needed. int extendedLengthLocation = lengthLocation + 4; System.arraycopy (bytes, extendedLengthLocation, bytes, extendedLengthLocation + extendedLengthByteCount, extendedLength); // write the extended length int shiftSize = (extendedLengthByteCount -1) * 8; for (int i = 0; i < extendedLengthByteCount; i++) { bytes[extendedLengthLocation++] = (byte) ((extendedLength >>> shiftSize ) & 0xff); shiftSize -= 8; } // adjust the offset to account for the shift and insert offset += extendedLengthByteCount; // the two byte length field before the codepoint contains the length // of itself, the length of the codepoint, and the number of bytes used // to hold the extended length. the 2 byte length field also has the first // bit on to indicate extended length bytes were used. length = extendedLengthByteCount + 4; length |= DssConstants.CONTINUATION_BIT; } // write the 2 byte length field (2 bytes before codepoint). bytes[lengthLocation] = (byte) ((length >>> 8) & 0xff); bytes[lengthLocation+1] = (byte) (length & 0xff); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 679, 40, 10956, 1832, 202, 95, 202, 202, 759, 1206, 326, 1760, 769, 2117, 1384, 628, 326, 2267, 2110, 202, 202, 759, 4604, 326, 769, 2511, 603, 326, 9350, 2117, 471, 679, 434, 501, 18, 202, 202, 474, 769, 2735, 273, 2267, 2624, 63, 413, 3669, 15533, 202, 202, 474, 769, 273, 1384, 300, 769, 2735, 31, 202, 202, 759, 4199, 309, 1281, 7021, 769, 1731, 854, 3577, 18, 202, 5787, 460, 2106, 202, 202, 759, 628, 4604, 11456, 1782, 3216, 1380, 353, 326, 1300, 434, 7021, 769, 202, 202, 759, 1731, 1931, 18, 374, 8527, 1158, 1110, 275, 2830, 769, 18, 202, 202, 474, 7021, 1782, 3216, 1380, 273, 4604, 11456, 1782, 3216, 1380, 261, 2469, 1769, 202, 202, 430, 261, 14948, 1782, 3216, 1380, 480, 374, 13, 202, 202, 95, 1082, 202, 759, 3387, 1915, 353, 7304, 7725, 316, 326, 1613, 364, 326, 7021, 769, 1731, 18, 1082, 202, 15735, 1782, 261, 14948, 1782, 3216, 1380, 1769, 1082, 202, 759, 4604, 326, 769, 358, 506, 15235, 316, 326, 7021, 769, 1731, 18, 1082, 202, 759, 333, 769, 1552, 486, 2341, 326, 1059, 1160, 6579, 4057, 18, 1082, 202, 474, 7021, 1782, 273, 769, 300, 1059, 31, 1082, 202, 759, 4654, 326, 501, 358, 326, 2145, 635, 326, 1300, 434, 7021, 1082, 202, 759, 769, 1731, 3577, 18, 1082, 202, 474, 7021, 1782, 2735, 273, 769, 2735, 397, 1059, 31, 1082, 202, 3163, 18, 1126, 3530, 261, 3890, 16, 25083, 2868, 7021, 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, 679, 40, 10956, 1832, 202, 95, 202, 202, 759, 1206, 326, 1760, 769, 2117, 1384, 628, 326, 2267, 2110, 202, 202, 759, 4604, 326, 769, 2511, 603, 326, 9350, 2117, 471, 679, 434, 501, 18, 202, 202, 474, 769, 2735, 273, 2267, 2624, 63, 413, 3669, 15533, 202, 202, 474, 769, 273, 1384, 300, 769, 2735, 31, 202, 202, 759, 4199, 309, 1281, 7021, 769, 1731, 854, 3577, 18, 202, 5787, 460, 2106, 202, 202, 759, 628, 4604, 11456, 1782, 3216, 1380, 353, 326, 1300, 434, 7021, 769, 202, 202, 759, 1731, 1931, 18, 374, 8527, 1158, 1110, 275, 2830, 769, 18, 202, 202, 474, 7021, 1782, 3216, 1380, 273, 4604, 11456, 1782, 3216, 1380, 2 ]
SMTPResponse response2 = smtpProtocol1.getResponse();
public void testEhloResolvIgnoreClientDisabled() throws Exception, SMTPException { m_testConfiguration.setEhloResolv(); m_testConfiguration.setCheckAuthNetworks(true); finishSetUp(m_testConfiguration); MySMTPProtocol smtpProtocol1 = new MySMTPProtocol("127.0.0.1", m_smtpListenerPort); smtpProtocol1.openPort(); assertEquals("first connection taken", 1, smtpProtocol1.getState()); // no message there, yet assertNull("no mail received by mail server", m_mailServer.getLastMail()); String[] ehlo1 = new String[] { "abgsfe3rsf.de"}; String[] ehlo2 = new String[] { "james.apache.org" }; smtpProtocol1.sendCommand("ehlo", ehlo1); SMTPResponse response = smtpProtocol1.getResponse(); // this should give a 501 code cause the ehlo could not resolved assertEquals("expected error: ehlo could not resolved", 501, response.getCode()); smtpProtocol1.sendCommand("ehlo", ehlo2); SMTPResponse response2 = smtpProtocol1.getResponse(); // ehlo is resolvable. so this should give a 250 code assertEquals("ehlo accepted", 250, response2.getCode()); smtpProtocol1.quit(); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/636ca4790d205ba7dcd3647f5645640b2ed68d5e/SMTPServerTest.java/buggy/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 41, 76, 383, 2903, 90, 3777, 1227, 8853, 1435, 1216, 1185, 16, 18102, 503, 288, 3639, 312, 67, 3813, 1750, 18, 542, 41, 76, 383, 2903, 90, 5621, 3639, 312, 67, 3813, 1750, 18, 542, 1564, 1730, 19999, 12, 3767, 1769, 3639, 4076, 694, 1211, 12, 81, 67, 3813, 1750, 1769, 3639, 8005, 55, 14636, 5752, 17660, 5752, 21, 273, 394, 8005, 55, 14636, 5752, 2932, 14260, 18, 20, 18, 20, 18, 21, 3113, 312, 67, 20278, 2223, 2617, 1769, 3639, 17660, 5752, 21, 18, 3190, 2617, 5621, 3639, 1815, 8867, 2932, 3645, 1459, 9830, 3113, 404, 16, 17660, 5752, 21, 18, 588, 1119, 10663, 3639, 368, 1158, 883, 1915, 16, 4671, 3639, 1815, 2041, 2932, 2135, 4791, 5079, 635, 4791, 1438, 3113, 312, 67, 4408, 2081, 18, 588, 3024, 6759, 10663, 3639, 514, 8526, 20124, 383, 21, 273, 394, 514, 8526, 288, 315, 378, 564, 3030, 23, 5453, 74, 18, 323, 6, 20451, 3639, 514, 8526, 20124, 383, 22, 273, 394, 514, 8526, 288, 315, 78, 753, 18, 19211, 18, 3341, 6, 289, 31, 7734, 17660, 5752, 21, 18, 4661, 2189, 2932, 73, 76, 383, 3113, 20124, 383, 21, 1769, 3639, 18102, 1064, 766, 273, 17660, 5752, 21, 18, 588, 1064, 5621, 3639, 368, 333, 1410, 8492, 279, 1381, 1611, 981, 4620, 326, 20124, 383, 3377, 486, 4640, 3639, 1815, 8867, 2932, 3825, 555, 30, 20124, 383, 3377, 486, 4640, 3113, 1381, 1611, 16, 766, 18, 588, 1085, 10663, 10792, 17660, 5752, 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, 41, 76, 383, 2903, 90, 3777, 1227, 8853, 1435, 1216, 1185, 16, 18102, 503, 288, 3639, 312, 67, 3813, 1750, 18, 542, 41, 76, 383, 2903, 90, 5621, 3639, 312, 67, 3813, 1750, 18, 542, 1564, 1730, 19999, 12, 3767, 1769, 3639, 4076, 694, 1211, 12, 81, 67, 3813, 1750, 1769, 3639, 8005, 55, 14636, 5752, 17660, 5752, 21, 273, 394, 8005, 55, 14636, 5752, 2932, 14260, 18, 20, 18, 20, 18, 21, 3113, 312, 67, 20278, 2223, 2617, 1769, 3639, 17660, 5752, 21, 18, 3190, 2617, 5621, 3639, 1815, 8867, 2932, 3645, 1459, 9830, 3113, 404, 16, 17660, 5752, 21, 18, 588, 1119, 10663, 3639, 368, 1158, 883, 1915, 16, 4671, 3639, 1815, 2041, 2 ]
u.p("layout thread ending");
private synchronized void completeLayout() { u.p("layout thread ending"); done = true; graphics = null; panel.repaint(); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/0c66b0065199584307997eaf70c9585a4d0964be/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 3912, 3744, 1435, 288, 7734, 2731, 273, 638, 31, 3639, 17313, 273, 446, 31, 3639, 6594, 18, 14462, 1598, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 3852, 918, 3912, 3744, 1435, 288, 7734, 2731, 273, 638, 31, 3639, 17313, 273, 446, 31, 3639, 6594, 18, 14462, 1598, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return newInstance;
return result;
public Scriptable construct(Context cx, Scriptable scope, Object[] args) throws JavaScriptException { Scriptable newInstance = createObject(cx, scope); Object val = call(cx, scope, newInstance, args); if (val instanceof Scriptable && val != Undefined.instance) { return (Scriptable) val; } return newInstance; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/4a4ee9842125c087bae32dd53c74d3efa3437a40/BaseFunction.java/clean/js/rhino/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 22780, 5984, 273, 17109, 12, 71, 92, 16, 2146, 1769, 3639, 1033, 1244, 273, 745, 12, 71, 92, 16, 2146, 16, 5984, 16, 833, 1769, 3639, 309, 261, 1125, 1276, 22780, 597, 1244, 480, 22243, 18, 1336, 13, 288, 5411, 327, 261, 3651, 429, 13, 1244, 31, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 22780, 5984, 273, 17109, 12, 71, 92, 16, 2146, 1769, 3639, 1033, 1244, 273, 745, 12, 71, 92, 16, 2146, 16, 5984, 16, 833, 1769, 3639, 309, 261, 1125, 1276, 22780, 597, 1244, 480, 22243, 18, 1336, 13, 288, 5411, 327, 261, 3651, 429, 13, 1244, 31, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public DataObjectManipulator(Session session) { if (session == null) { throw new IllegalArgumentException("session: " + session); } m_session = session; makeManipulators(session);
public DataObjectManipulator() { makeManipulators();
public DataObjectManipulator(Session session) { if (session == null) { throw new IllegalArgumentException("session: " + session); } m_session = session; makeManipulators(session); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/cb1364ac6f640a6ad163932b5427367d994b50b6/DataObjectManipulator.java/clean/archive/packaging/test/src/com/arsdigita/persistence/DataObjectManipulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18914, 27587, 12, 2157, 1339, 13, 288, 3639, 309, 261, 3184, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 3184, 30, 315, 397, 1339, 1769, 3639, 289, 3639, 312, 67, 3184, 273, 1339, 31, 3639, 1221, 19308, 332, 3062, 12, 3184, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18914, 27587, 12, 2157, 1339, 13, 288, 3639, 309, 261, 3184, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 3184, 30, 315, 397, 1339, 1769, 3639, 289, 3639, 312, 67, 3184, 273, 1339, 31, 3639, 1221, 19308, 332, 3062, 12, 3184, 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 ]
waitForRefresh();
public void testImportSingleZip() { try { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject[] workspaceProjects = root.getProjects(); for (int i = 0; i < workspaceProjects.length; i++) FileUtil.deleteProject(workspaceProjects[i]); URL archiveFile = Platform.asLocalURL(Platform.find(TestPlugin.getDefault().getBundle(), new Path(DATA_PATH_PREFIX + ARCHIVE_HELLOWORLD + ".zip"))); WizardProjectsImportPage wpip = getNewWizard(); HashSet projects = new HashSet(); projects.add("HelloWorld"); wpip.getProjectFromDirectoryRadio().setSelection((false)); //We want the other one selected wpip.updateProjectsList(archiveFile.getPath()); ProjectRecord[] selectedProjects= wpip.getValidProjects(); ArrayList projectNames = new ArrayList(); for (int i = 0; i < selectedProjects.length; i++) { projectNames.add(selectedProjects[i].getProjectName()); } assertTrue("Not all projects were found correctly in zip", projectNames.containsAll(projects)); CheckboxTreeViewer projectsList= wpip.getProjectsList(); projectsList.setCheckedElements(selectedProjects); wpip.createProjects(); // Try importing all the projects we found // "HelloWorld" should be the only project in the workspace workspaceProjects = root.getProjects(); if (workspaceProjects.length != 1) fail("Incorrect Number of projects imported"); IFolder helloFolder = workspaceProjects[0].getFolder("HelloWorld"); if (helloFolder.exists()) fail("Project was imported as a folder into itself"); verifyProjectInWorkspace(true, workspaceProjects[0], FILE_LIST, true); } catch (IOException e) { fail(e.toString()); } catch (CoreException e) { fail(e.toString()); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/30807e10cc3fd4b2844a733922e0ca637ad02238/ImportExistingTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7048, 1290, 8323, 5621, 225, 918, 7048, 1290, 8323, 5621, 225, 1842, 5010, 5281, 9141, 1435, 7048, 1290, 8323, 5621, 225, 288, 202, 202, 698, 7048, 1290, 8323, 5621, 225, 288, 1082, 202, 45, 8241, 2375, 7048, 1290, 8323, 5621, 225, 1365, 7048, 1290, 8323, 5621, 225, 273, 7048, 1290, 8323, 5621, 225, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 25083, 202, 45, 4109, 8526, 7048, 1290, 8323, 5621, 225, 6003, 4109, 5328, 1540, 1290, 8323, 5621, 225, 273, 7048, 1290, 8323, 5621, 225, 1365, 18, 588, 15298, 5621, 7048, 1290, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 364, 7048, 1290, 8323, 5621, 225, 261, 474, 7048, 1290, 8323, 5621, 225, 277, 7048, 1290, 8323, 5621, 225, 273, 7048, 1290, 8323, 5621, 225, 374, 31, 7048, 1290, 8323, 5621, 225, 277, 7048, 1290, 8323, 5621, 225, 411, 7048, 1290, 8323, 5621, 225, 6003, 15298, 18, 2469, 31, 7048, 1290, 8323, 5621, 225, 277, 27245, 7048, 1290, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7048, 1290, 8323, 5621, 225, 918, 7048, 1290, 8323, 5621, 225, 1842, 5010, 5281, 9141, 1435, 7048, 1290, 8323, 5621, 225, 288, 202, 202, 698, 7048, 1290, 8323, 5621, 225, 288, 1082, 202, 45, 8241, 2375, 7048, 1290, 8323, 5621, 225, 1365, 7048, 1290, 8323, 5621, 225, 273, 7048, 1290, 8323, 5621, 225, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 25083, 202, 45, 4109, 8526, 7048, 1290, 8323, 5621, 225, 6003, 4109, 5328, 1540, 1290, 8323, 5621, 225, 273, 7048, 1290, 8323, 5621, 225, 1365, 18, 588, 15298, 5621, 7048, 1290, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 10712, 8323, 5621, 225, 2 ]
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; select getdatabaseencoding()"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { dbEncoding = "KOI8_R"; } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/45b5d792afa60ae24d57cdceaaec0e03cf6abb2a/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5466, 8863, 3639, 333, 67, 7407, 273, 302, 31, 565, 333, 67, 718, 273, 880, 31, 565, 22116, 67, 22366, 273, 2063, 31, 565, 22116, 67, 13784, 273, 1123, 18, 588, 1396, 2932, 3664, 8863, 565, 22116, 67, 4714, 273, 1123, 18, 588, 1396, 2932, 1355, 8863, 565, 22116, 67, 6354, 273, 1756, 31, 565, 22116, 67, 8908, 273, 1479, 31, 565, 22116, 67, 8608, 273, 20695, 67, 16234, 31, 565, 368, 4494, 1221, 326, 2172, 1459, 565, 775, 1377, 288, 202, 8365, 67, 3256, 273, 394, 22116, 67, 1228, 12, 2564, 16, 1756, 1769, 1377, 289, 1044, 261, 5215, 503, 276, 338, 13, 288, 202, 759, 25808, 635, 453, 847, 13076, 411, 84, 847, 36, 266, 736, 84, 18, 3341, 18, 19445, 34, 202, 759, 8289, 503, 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, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 2 ]
String uri = (String) in.readObject();
String uri = (String)in.readObject();
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); String uri = (String) in.readObject(); try { endpoint = MuleEndpoint.getOrCreateEndpointForUri(uri, UMOEndpoint.ENDPOINT_TYPE_SENDER); } catch (UMOException e) { throw (IOException) new IOException().initCause(e); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/6de1510957924530f45b91a16430b826029ecf1b/MuleEvent.java/buggy/src/java/org/mule/impl/MuleEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 17362, 12, 921, 4348, 316, 13, 1216, 1860, 16, 10403, 565, 288, 3639, 316, 18, 1886, 1994, 921, 5621, 3639, 514, 2003, 273, 261, 780, 13, 267, 18, 896, 921, 5621, 3639, 775, 288, 5411, 2494, 273, 490, 725, 3293, 18, 588, 17717, 3293, 1290, 3006, 12, 1650, 16, 587, 5980, 3293, 18, 18506, 67, 2399, 67, 1090, 18556, 1769, 3639, 289, 1044, 261, 2799, 51, 503, 425, 13, 288, 5411, 604, 261, 14106, 13, 394, 1860, 7675, 2738, 10683, 12, 73, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 17362, 12, 921, 4348, 316, 13, 1216, 1860, 16, 10403, 565, 288, 3639, 316, 18, 1886, 1994, 921, 5621, 3639, 514, 2003, 273, 261, 780, 13, 267, 18, 896, 921, 5621, 3639, 775, 288, 5411, 2494, 273, 490, 725, 3293, 18, 588, 17717, 3293, 1290, 3006, 12, 1650, 16, 587, 5980, 3293, 18, 18506, 67, 2399, 67, 1090, 18556, 1769, 3639, 289, 1044, 261, 2799, 51, 503, 425, 13, 288, 5411, 604, 261, 14106, 13, 394, 1860, 7675, 2738, 10683, 12, 73, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch (column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } });
localsTable = new MyTreeTable(new VariableModel());
ContextWindow(final DebugGui debugGui) { super(); this.debugGui = debugGui; enabled = false; JPanel left = new JPanel(); JToolBar t1 = new JToolBar(); t1.setName("Variables"); t1.setLayout(new GridLayout()); t1.add(left); JPanel p1 = new JPanel(); p1.setLayout(new GridLayout()); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout()); p1.add(t1); JLabel label = new JLabel("Context:"); context = new JComboBox(); context.setLightWeightPopupEnabled(false); toolTips = new java.util.Vector(); label.setBorder(context.getBorder()); context.addActionListener(this); context.setActionCommand("ContextSwitch"); GridBagLayout layout = new GridBagLayout(); left.setLayout(layout); GridBagConstraints lc = new GridBagConstraints(); lc.insets.left = 5; lc.anchor = GridBagConstraints.WEST; lc.ipadx = 5; layout.setConstraints(label, lc); left.add(label); GridBagConstraints c = new GridBagConstraints(); c.gridwidth = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; layout.setConstraints(context, c); left.add(context); tabs = new JTabbedPane(SwingConstants.BOTTOM); tabs.setPreferredSize(new Dimension(500,300)); thisTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { //return 3; return 2; } public String getColumnName(int column) { switch (column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); JScrollPane jsp = new JScrollPane(thisTable); jsp.getViewport().setViewSize(new Dimension(5,2)); tabs.add("this", jsp); localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch (column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); localsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); localsTable.setPreferredSize(null); jsp = new JScrollPane(localsTable); tabs.add("Locals", jsp); c.weightx = c.weighty = 1; c.gridheight = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; layout.setConstraints(tabs, c); left.add(tabs); evaluator = new Evaluator(debugGui); cmdLine = new EvalTextArea(debugGui); //cmdLine.requestFocus(); tableModel = evaluator.tableModel; jsp = new JScrollPane(evaluator); JToolBar t2 = new JToolBar(); t2.setName("Evaluate"); tabs2 = new JTabbedPane(SwingConstants.BOTTOM); tabs2.add("Watch", jsp); tabs2.add("Evaluate", new JScrollPane(cmdLine)); tabs2.setPreferredSize(new Dimension(500,300)); t2.setLayout(new GridLayout()); t2.add(tabs2); p2.add(t2); evaluator.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, p1, p2); split.setOneTouchExpandable(true); DebugGui.setResizeWeight(split, 0.5); setLayout(new BorderLayout()); add(split, BorderLayout.CENTER); final JToolBar finalT1 = t1; final JToolBar finalT2 = t2; final JPanel finalP1 = p1; final JPanel finalP2 = p2; final JSplitPane finalSplit = split; final JPanel finalThis = this; ComponentListener clistener = new ComponentListener() { boolean t1Docked = true; boolean t2Docked = true; void check(Component comp) { Component thisParent = finalThis.getParent(); if (thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if (parent != null) { if (parent != finalP1) { while (!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; debugGui.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if (!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if (parent != null) { if (parent != finalP2) { while (!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; debugGui.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if (leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if (leftDocked) { if (rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if (adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if (rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } public void componentHidden(ComponentEvent e) { check(e.getComponent()); } public void componentMoved(ComponentEvent e) { check(e.getComponent()); } public void componentResized(ComponentEvent e) { check(e.getComponent()); } public void componentShown(ComponentEvent e) { check(e.getComponent()); } }; p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if (e.getChild() == finalT1) { if (finalT2.getParent() == finalP2) { // both docked finalSplit.setDividerLocation(0.5); } else { // left docked only finalSplit.setDividerLocation(1.0); } split.setDividerLocation(0.66); } } public void componentRemoved(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if (e.getChild() == finalT1) { if (finalT2.getParent() == finalP2) { // right docked only finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } } }); t1.addComponentListener(clistener); t2.addComponentListener(clistener); disable(); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/1e8e9be6240bd419cb4ce7800a26a09d70dd4e27/DebugGui.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1772, 3829, 12, 6385, 4015, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 88, 21, 1769, 3639, 21403, 1433, 273, 394, 21403, 2932, 1042, 2773, 1769, 3639, 819, 273, 394, 804, 22199, 5621, 3639, 819, 18, 542, 12128, 6544, 13770, 1526, 12, 5743, 1769, 3639, 5226, 56, 7146, 273, 394, 2252, 18, 1367, 18, 5018, 5621, 3639, 1433, 18, 542, 8107, 12, 2472, 18, 588, 8107, 10663, 3639, 819, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 819, 18, 542, 1803, 2189, 2932, 1042, 10200, 8863, 3639, 7145, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 3639, 2002, 18, 542, 3744, 12, 6741, 1769, 3639, 13075, 9109, 273, 394, 13075, 5621, 3639, 9109, 18, 267, 4424, 18, 4482, 273, 1381, 31, 3639, 9109, 18, 16215, 273, 13075, 18, 31285, 31, 3639, 9109, 18, 625, 361, 92, 273, 1381, 31, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1772, 3829, 12, 6385, 4015, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 2 ]
if (isSameSelection(items, current)) return;
if (isSameSelection(items, current)) return;
protected void setSelection(List items) { Item[] current = getSelection(getTree()); //Don't bother resetting the same selection if (isSameSelection(items, current)) return; TreeItem[] newItems = new TreeItem[items.size()]; items.toArray(newItems); getTree().setSelection(newItems); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d94e309c616b79ca7e205fa94a5f9687ffcbe4f8/TreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 6233, 12, 682, 1516, 13, 288, 3639, 4342, 8526, 783, 273, 23204, 12, 588, 2471, 10663, 3639, 368, 22293, 1404, 23440, 30691, 326, 1967, 4421, 3639, 309, 261, 291, 8650, 6233, 12, 3319, 16, 783, 3719, 5411, 327, 31, 3639, 4902, 1180, 8526, 394, 3126, 273, 394, 4902, 1180, 63, 3319, 18, 1467, 1435, 15533, 3639, 1516, 18, 31447, 12, 2704, 3126, 1769, 3639, 15867, 7675, 542, 6233, 12, 2704, 3126, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 6233, 12, 682, 1516, 13, 288, 3639, 4342, 8526, 783, 273, 23204, 12, 588, 2471, 10663, 3639, 368, 22293, 1404, 23440, 30691, 326, 1967, 4421, 3639, 309, 261, 291, 8650, 6233, 12, 3319, 16, 783, 3719, 5411, 327, 31, 3639, 4902, 1180, 8526, 394, 3126, 273, 394, 4902, 1180, 63, 3319, 18, 1467, 1435, 15533, 3639, 1516, 18, 31447, 12, 2704, 3126, 1769, 3639, 15867, 7675, 542, 6233, 12, 2704, 3126, 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 ]
/* CREATE A NEW SERVER */
/* CREATE A NEW SERVER AND CONNECT TO IT */
public void actionPerformed(ActionEvent arg0) { switch( view.choicePane.getSelectedIndex() ) { /* CREATE A NEW SERVER */ case 0: // Take the stored information. ServerSettings settings = model.getSettings(false); // Gather the information from the dialog. // About the server. String serverPassword = new String( view.serverPassword.getPassword() ); int serverPort; try { serverPort = Integer.parseInt(view.serverPort.getText()); } catch(Exception e) { serverPort = RMIServer.DEFAULT_PORT; } // About the database. String database = ((javax.swing.JTextField)view.databaseType.getEditor().getEditorComponent()).getText(), suffix = view.databaseParameter.getText(); int databasePort; try { databasePort = Integer.parseInt(view.databasePort.getText()); } catch(Exception e) { databasePort = 5432 ; } settings = new ServerSettings( serverPort, settings.getTimeout(), // use the stored value settings.getConnectionsTotal(), // use the stored value settings.getConnectionsPerIP(), // use the stored value new DatabaseSettings( database, databasePort, suffix) ); // Save those settings. model.setSettings( settings ); // Create and run a new server. Task createServer = model.createNewServerTask( serverPassword ); new DefaultProgressBar(createServer, view, true) { @Override public void exceptionHandler(Exception ex) { getTask().stop(); DefaultExceptionHandler.handle(parent, ex, L10n.getString("Error.CannotStartServer"), true); } }; createServer.start(); break; /* CONNECT TO A RUNNING SERVER */ case 1: // Gather the information from the dialog. String password = new String( view.remoteServerPassword.getPassword() ); int port; try { port = Integer.parseInt( view.remoteServerPort.getText() ); } catch(Exception e) { port = RMIServer.DEFAULT_PORT; } Task connectToServer = model.createConnectToRunningServerTask( view.remoteHost.getText(), port, password ); new DefaultProgressBar(connectToServer, view, true) { @Override public void exceptionHandler(Exception ex) { getTask().stop(); DefaultExceptionHandler.handle(parent, ex, L10n.getString("Error.CannotConnectToTheServer"), true); } }; connectToServer.start(); break; } }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/98325a30b5305f7b8acc4483f94d914fd98aa7a9/ServerCreateCtrl.java/clean/trunk/src/net/sf/plantlore/server/manager/ServerCreateCtrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 1803, 1133, 1501, 20, 13, 288, 6862, 9506, 202, 9610, 12, 1476, 18, 11569, 8485, 18, 588, 7416, 1016, 1435, 262, 288, 9506, 202, 20308, 13278, 432, 12887, 15061, 1195, 9506, 202, 3593, 374, 30, 6862, 202, 759, 17129, 326, 4041, 1779, 18, 6862, 202, 2081, 2628, 1947, 273, 938, 18, 588, 2628, 12, 5743, 1769, 6862, 25083, 202, 759, 25868, 326, 1779, 628, 326, 6176, 18, 17322, 202, 202, 759, 9771, 659, 326, 1438, 18, 6862, 202, 780, 1438, 3913, 273, 394, 514, 12, 1476, 18, 3567, 3913, 18, 588, 3913, 1435, 11272, 6862, 202, 474, 1438, 2617, 31, 6862, 202, 698, 288, 25083, 202, 3567, 2617, 273, 2144, 18, 2670, 1702, 12, 1945, 18, 3567, 2617, 18, 588, 1528, 10663, 6862, 202, 97, 1044, 12, 503, 425, 13, 288, 1438, 2617, 273, 534, 7492, 2081, 18, 5280, 67, 6354, 31, 289, 6862, 25083, 202, 759, 9771, 659, 326, 2063, 18, 6862, 202, 780, 2063, 273, 14015, 28384, 18, 5328, 310, 18, 46, 16157, 13, 1945, 18, 6231, 559, 18, 588, 6946, 7675, 588, 6946, 1841, 1435, 2934, 588, 1528, 9334, 6862, 202, 8477, 273, 1476, 18, 6231, 1662, 18, 588, 1528, 5621, 6862, 25083, 202, 474, 2063, 2617, 31, 6862, 202, 698, 288, 25083, 202, 6231, 2617, 273, 2144, 18, 2670, 1702, 12, 1945, 18, 6231, 2617, 18, 588, 1528, 10663, 6862, 202, 97, 1044, 12, 503, 425, 13, 288, 2063, 2617, 273, 22431, 1578, 274, 289, 6862, 25083, 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, 1875, 202, 482, 918, 26100, 12, 1803, 1133, 1501, 20, 13, 288, 6862, 9506, 202, 9610, 12, 1476, 18, 11569, 8485, 18, 588, 7416, 1016, 1435, 262, 288, 9506, 202, 20308, 13278, 432, 12887, 15061, 1195, 9506, 202, 3593, 374, 30, 6862, 202, 759, 17129, 326, 4041, 1779, 18, 6862, 202, 2081, 2628, 1947, 273, 938, 18, 588, 2628, 12, 5743, 1769, 6862, 25083, 202, 759, 25868, 326, 1779, 628, 326, 6176, 18, 17322, 202, 202, 759, 9771, 659, 326, 1438, 18, 6862, 202, 780, 1438, 3913, 273, 394, 514, 12, 1476, 18, 3567, 3913, 18, 588, 3913, 1435, 11272, 6862, 202, 474, 1438, 2617, 31, 6862, 202, 698, 288, 25083, 202, 3567, 2617, 273, 2144, 18, 2670, 1702, 2 ]
public static ScalarMap[] getMaps(DisplayImpl display, ScalarType[] st, DisplayRealType[] drt) { Vector v = new Vector(); Vector maps = display.getMapVector(); int size = maps.size();
public static ScalarMap[] getMaps(DisplayImpl display, RealType[] types) { ScalarMap[] maps = new ScalarMap[types.length]; Vector v = display.getMapVector(); int size = v.size();
public static ScalarMap[] getMaps(DisplayImpl display, ScalarType[] st, DisplayRealType[] drt) { Vector v = new Vector(); Vector maps = display.getMapVector(); int size = maps.size(); for (int i=0; i<size; i++) { ScalarMap map = (ScalarMap) maps.elementAt(i); if (st != null) { boolean success = false; ScalarType type = map.getScalar(); for (int j=0; j<st.length; j++) { if (type.equals(st[j])) { success = true; break; } } if (!success) continue; } if (drt != null) { boolean success = false; DisplayRealType type = map.getDisplayScalar(); for (int j=0; j<drt.length; j++) { if (type.equals(drt[j])) { success = true; break; } } if (!success) continue; } v.add(map); } ScalarMap[] matches = new ScalarMap[v.size()]; v.copyInto(matches); return matches; }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/319aad22f2a3a558f6f44b2fb15987149b92cbda/VisUtil.java/buggy/loci/visbio/util/VisUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 15791, 863, 8526, 336, 8903, 12, 4236, 2828, 2562, 16, 565, 15791, 559, 8526, 384, 16, 9311, 6955, 559, 8526, 302, 3797, 13, 225, 288, 565, 5589, 331, 273, 394, 5589, 5621, 565, 5589, 7565, 273, 2562, 18, 588, 863, 5018, 5621, 565, 509, 963, 273, 7565, 18, 1467, 5621, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 15791, 863, 852, 273, 261, 13639, 863, 13, 7565, 18, 2956, 861, 12, 77, 1769, 1377, 309, 261, 334, 480, 446, 13, 288, 3639, 1250, 2216, 273, 629, 31, 3639, 15791, 559, 618, 273, 852, 18, 588, 13639, 5621, 3639, 364, 261, 474, 525, 33, 20, 31, 525, 32, 334, 18, 2469, 31, 525, 27245, 288, 1850, 309, 261, 723, 18, 14963, 12, 334, 63, 78, 22643, 288, 5411, 2216, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 289, 3639, 309, 16051, 4768, 13, 1324, 31, 1377, 289, 1377, 309, 261, 3069, 88, 480, 446, 13, 288, 3639, 1250, 2216, 273, 629, 31, 3639, 9311, 6955, 559, 618, 273, 852, 18, 588, 4236, 13639, 5621, 3639, 364, 261, 474, 525, 33, 20, 31, 525, 32, 3069, 88, 18, 2469, 31, 525, 27245, 288, 1850, 309, 261, 723, 18, 14963, 12, 3069, 88, 63, 78, 22643, 288, 5411, 2216, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 289, 3639, 309, 16051, 4768, 13, 1324, 31, 1377, 289, 1377, 331, 18, 1289, 12, 1458, 1769, 565, 289, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 15791, 863, 8526, 336, 8903, 12, 4236, 2828, 2562, 16, 565, 15791, 559, 8526, 384, 16, 9311, 6955, 559, 8526, 302, 3797, 13, 225, 288, 565, 5589, 331, 273, 394, 5589, 5621, 565, 5589, 7565, 273, 2562, 18, 588, 863, 5018, 5621, 565, 509, 963, 273, 7565, 18, 1467, 5621, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 15791, 863, 852, 273, 261, 13639, 863, 13, 7565, 18, 2956, 861, 12, 77, 1769, 1377, 309, 261, 334, 480, 446, 13, 288, 3639, 1250, 2216, 273, 629, 31, 3639, 15791, 559, 618, 273, 852, 18, 588, 13639, 5621, 3639, 364, 261, 474, 525, 33, 20, 31, 525, 32, 334, 2 ]
pc += 2;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + slot]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_LOAD_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_LOAD_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_LOAD_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; continue Loop; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; continue Loop; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_AND_THIS : { boolean skipGetThis = (0 != iCode[pc]); stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, skipGetThis); ++pc; continue Loop; } case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; continue Loop; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; continue Loop; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; continue Loop; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; continue Loop; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/c3a64d2b269a8284dd3145271f1e6f8250800383/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 16717, 2083, 2295, 1162, 3651, 16, 18701, 5294, 11599, 751, 612, 396, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 612, 396, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 612, 396, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 9494, 18, 2761, 11599, 4368, 3748, 273, 612, 396, 18, 7462, 3748, 31, 5411, 775, 288, 7734, 327, 888, 18, 1991, 1190, 3748, 12, 350, 396, 18, 7462, 3748, 16, 9494, 16, 2295, 1162, 3651, 16, 29159, 2146, 16, 15261, 16, 833, 1769, 5411, 289, 3095, 288, 7734, 9494, 18, 2761, 11599, 4368, 3748, 273, 5198, 3748, 31, 5411, 289, 3639, 289, 3639, 727, 1033, 2383, 48, 67, 23464, 47, 273, 5294, 11599, 18, 2290, 48, 67, 23464, 47, 31, 3639, 727, 22780, 3109, 273, 22243, 18, 1336, 31, 3639, 727, 509, 8350, 67, 2664, 4464, 273, 374, 31, 3639, 727, 509, 943, 5555, 273, 612, 396, 18, 1282, 2747, 5555, 31, 3639, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 16717, 2083, 2295, 1162, 3651, 16, 18701, 5294, 11599, 751, 612, 396, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 612, 396, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 612, 396, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 2 ]
if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
finally { }
public void mBAND() throws RecognitionException { int type = BAND; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:142:8: ( '&' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:142:8: '&' { match('&'); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 38, 4307, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 605, 4307, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 29126, 30, 28, 30, 261, 9824, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 29126, 30, 28, 30, 9824, 3639, 288, 3639, 845, 2668, 10, 8284, 3639, 289, 4202, 3095, 288, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 38, 4307, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 605, 4307, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 29126, 30, 28, 30, 261, 9824, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 2 ]
GapContentPosition p = (GapContentPosition) i.next();
WeakReference r = (WeakReference) i.next(); GapContentPosition p = (GapContentPosition) r.get(); if (p == null) continue;
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specified offset. The binarySearch does // not necessarily find the first one. while (index1 > 0 && ((GapContentPosition) positions.get(index1 - 1)).mark == offset) index1--; for (ListIterator i = positions.listIterator(index1); i.hasNext();) { GapContentPosition p = (GapContentPosition) i.next(); if (p.mark > endOffset) break; if (p.mark >= offset && p.mark <= endOffset) p.mark += incr; } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/GapContent.java/buggy/libraries/javalib/external/classpath/javax/swing/text/GapContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 5765, 11024, 25277, 12, 474, 1384, 16, 509, 769, 16, 509, 17633, 13, 225, 288, 565, 509, 25507, 273, 1384, 397, 769, 31, 565, 509, 770, 21, 273, 5737, 18, 8578, 2979, 12, 12388, 16, 4766, 1850, 394, 611, 438, 1350, 2555, 12, 3348, 10019, 565, 309, 261, 1615, 21, 411, 374, 13, 1377, 770, 21, 273, 300, 12, 1615, 21, 397, 404, 1769, 565, 368, 5167, 326, 1122, 770, 598, 326, 1269, 1384, 18, 1021, 31903, 1552, 565, 368, 486, 23848, 1104, 326, 1122, 1245, 18, 565, 1323, 261, 1615, 21, 405, 374, 3639, 597, 14015, 14001, 1350, 2555, 13, 6865, 18, 588, 12, 1615, 21, 300, 404, 13, 2934, 3355, 422, 1384, 13, 1377, 770, 21, 413, 31, 565, 364, 261, 682, 3198, 277, 273, 6865, 18, 1098, 3198, 12, 1615, 21, 1769, 277, 18, 5332, 2134, 5621, 13, 1377, 288, 3639, 23632, 2404, 436, 273, 261, 3218, 581, 2404, 13, 277, 18, 4285, 5621, 611, 438, 1350, 2555, 293, 273, 261, 14001, 1350, 2555, 13, 436, 18, 588, 5621, 309, 261, 84, 422, 446, 13, 1324, 31, 540, 309, 261, 84, 18, 3355, 405, 25507, 13, 1850, 898, 31, 3639, 309, 261, 84, 18, 3355, 1545, 1384, 597, 293, 18, 3355, 1648, 25507, 13, 1850, 293, 18, 3355, 1011, 17633, 31, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 5765, 11024, 25277, 12, 474, 1384, 16, 509, 769, 16, 509, 17633, 13, 225, 288, 565, 509, 25507, 273, 1384, 397, 769, 31, 565, 509, 770, 21, 273, 5737, 18, 8578, 2979, 12, 12388, 16, 4766, 1850, 394, 611, 438, 1350, 2555, 12, 3348, 10019, 565, 309, 261, 1615, 21, 411, 374, 13, 1377, 770, 21, 273, 300, 12, 1615, 21, 397, 404, 1769, 565, 368, 5167, 326, 1122, 770, 598, 326, 1269, 1384, 18, 1021, 31903, 1552, 565, 368, 486, 23848, 1104, 326, 1122, 1245, 18, 565, 1323, 261, 1615, 21, 405, 374, 3639, 597, 14015, 14001, 1350, 2555, 13, 6865, 18, 588, 12, 1615, 21, 300, 404, 13, 2934, 3355, 422, 1384, 13, 1377, 770, 2 ]
closePoll(pollState, results.getDuration(), results.getPollVotes(), nodeState);
void handleContentPoll(PollState pollState, Poll.VoteTally results, NodeState nodeState) { if (results.didWinPoll()) { // if agree if (pollState.getStatus() == PollState.RUNNING) { // if normal poll, we won! pollState.status = PollState.WON; } else if (pollState.getStatus() == PollState.REPAIRING) { // if repair poll, we're repaired pollState.status = PollState.REPAIRED; } closePoll(pollState, results.getDuration(), results.getPollVotes(), nodeState); updateReputations(results); } else { // if disagree if (pollState.getStatus() == PollState.REPAIRING) { // if repair poll, can't be repaired pollState.status = PollState.UNREPAIRABLE; closePoll(pollState, results.getDuration(), results.getPollVotes(), nodeState); updateReputations(results); } else if (nodeState.isInternalNode()) { // if internal node, we need to call a name poll pollState.status = PollState.LOST; closePoll(pollState, results.getDuration(), results.getPollVotes(), nodeState); callNamePoll(nodeState.getCachedUrlSet()); } else { // if leaf node, we need to repair pollState.status = PollState.REPAIRING; try { markNodeForRepair(nodeState.getCachedUrlSet(), results); closePoll(pollState, results.getDuration(), results.getPollVotes(), nodeState); } catch (IOException ioe) { logger.error("Repair attempt failed.", ioe); // the treewalk will fix this eventually } } } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1689897b8e97c2815afc30b0343e51df5eb40065/NodeManagerImpl.java/buggy/src/org/lockss/state/NodeManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1640, 1350, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 18, 19338, 56, 1230, 1686, 16, 4766, 2029, 1119, 756, 1119, 13, 288, 565, 309, 261, 4717, 18, 14044, 18049, 19085, 10756, 288, 1377, 368, 309, 1737, 992, 1377, 309, 261, 13835, 1119, 18, 588, 1482, 1435, 422, 19160, 1119, 18, 29358, 13, 288, 3639, 368, 309, 2212, 7672, 16, 732, 8462, 5, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 59, 673, 31, 1377, 289, 469, 309, 261, 13835, 1119, 18, 588, 1482, 1435, 422, 19160, 1119, 18, 862, 4066, 7937, 1360, 13, 288, 3639, 368, 309, 20994, 7672, 16, 732, 4565, 2071, 69, 2921, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 862, 4066, 45, 5879, 31, 1377, 289, 1377, 1746, 19085, 12, 13835, 1119, 16, 1686, 18, 588, 5326, 9334, 1686, 18, 588, 19085, 29637, 9334, 7734, 756, 1119, 1769, 1377, 1089, 426, 458, 1012, 12, 4717, 1769, 565, 289, 469, 288, 1377, 368, 309, 1015, 346, 992, 1377, 309, 261, 13835, 1119, 18, 588, 1482, 1435, 422, 19160, 1119, 18, 862, 4066, 7937, 1360, 13, 288, 3639, 368, 309, 20994, 7672, 16, 848, 1404, 506, 2071, 69, 2921, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 2124, 862, 4066, 7937, 2782, 31, 3639, 1746, 19085, 12, 13835, 1119, 16, 1686, 18, 588, 5326, 9334, 1686, 18, 588, 19085, 29637, 9334, 5375, 756, 1119, 1769, 3639, 1089, 426, 458, 1012, 12, 4717, 1769, 1377, 289, 469, 309, 261, 2159, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1640, 1350, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 18, 19338, 56, 1230, 1686, 16, 4766, 2029, 1119, 756, 1119, 13, 288, 565, 309, 261, 4717, 18, 14044, 18049, 19085, 10756, 288, 1377, 368, 309, 1737, 992, 1377, 309, 261, 13835, 1119, 18, 588, 1482, 1435, 422, 19160, 1119, 18, 29358, 13, 288, 3639, 368, 309, 2212, 7672, 16, 732, 8462, 5, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 59, 673, 31, 1377, 289, 469, 309, 261, 13835, 1119, 18, 588, 1482, 1435, 422, 19160, 1119, 18, 862, 4066, 7937, 1360, 13, 288, 3639, 368, 309, 20994, 7672, 16, 732, 4565, 2071, 69, 2921, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 862, 2 ]
if (!hashCodeComputed) { hashCode = HASH_INITIAL;
if (hashCode == HASH_INITIAL) {
public int hashCode() { if (!hashCodeComputed) { hashCode = HASH_INITIAL; hashCode = hashCode * HASH_FACTOR + Util.hashCode(activityId); hashCode = hashCode * HASH_FACTOR + Util.hashCode(categoryId); hashCode = hashCode * HASH_FACTOR + Util.hashCode(sourceId); hashCodeComputed = true; } return hashCode; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/656aceed8fe4b7861391608975573bcdfb416f65/CategoryActivityBindingDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/CategoryActivityBindingDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 288, 3639, 309, 16051, 2816, 1085, 17934, 13, 288, 5411, 13374, 273, 20857, 67, 28497, 31, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 9653, 548, 1769, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 4743, 548, 1769, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 3168, 548, 1769, 5411, 13374, 17934, 273, 638, 31, 3639, 289, 3639, 327, 13374, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 288, 3639, 309, 16051, 2816, 1085, 17934, 13, 288, 5411, 13374, 273, 20857, 67, 28497, 31, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 9653, 548, 1769, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 4743, 548, 1769, 5411, 13374, 273, 13374, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 3168, 548, 1769, 5411, 13374, 17934, 273, 638, 31, 3639, 289, 3639, 327, 13374, 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 ]
public Class loadClass(String name) throws ClassNotFoundException {
public Class<?> loadClass(String name) throws ClassNotFoundException {
public Class loadClass(String name) throws ClassNotFoundException { return this.loadClass(name, null, null, false); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/ab233d7ad47750cdffec7c79a17bc9150bb4ad2b/MOPClassLoader.java/buggy/src/org/objectweb/proactive/core/mop/MOPClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 12880, 34, 16038, 12, 780, 508, 13, 1216, 10403, 288, 3639, 327, 333, 18, 945, 797, 12, 529, 16, 446, 16, 446, 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, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 12880, 34, 16038, 12, 780, 508, 13, 1216, 10403, 288, 3639, 327, 333, 18, 945, 797, 12, 529, 16, 446, 16, 446, 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, -100, -100, -100 ]
public void ignorableWhitespace(char ch[], int start, int length) throws Exception {}
public void ignorableWhitespace(int dataIndex) throws Exception { if (!fIncludeIgnorableWhitespace) { fStringPool.orphanString(dataIndex); return; } if (fDeferredDocumentImpl != null) { int text; if (fInCDATA) { text = fDeferredDocumentImpl.createCDATASection(dataIndex, true); } else { text = fDeferredDocumentImpl.createTextNode(dataIndex, true); } fDeferredDocumentImpl.appendChild(fCurrentNodeIndex, text); } else { Text text; if (fInCDATA) { text = fDocument.createCDATASection(fStringPool.orphanString(dataIndex)); } else { if (fWithinElement && fCurrentElementNode.getNodeType() == Node.ELEMENT_NODE) { Node lastChild = fCurrentElementNode.getLastChild(); if (lastChild != null && lastChild.getNodeType() == Node.TEXT_NODE) { ((Text)lastChild).appendData(fStringPool.orphanString(dataIndex)); return; } } text = fDocument.createTextNode(fStringPool.orphanString(dataIndex)); } if (fDocumentImpl != null) { ((TextImpl)text).setIgnorableWhitespace(true); } fCurrentElementNode.appendChild(text); } }
public void ignorableWhitespace(char ch[], int start, int length) throws Exception {}
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/221becb903804eab60bfef4d1fdc00f089286797/DOMParser.java/buggy/src/org/apache/xerces/parsers/DOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 1216, 1185, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 1216, 1185, 2618, 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 ]