rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
for (;;) { try { wait(); } catch(InterruptedException e) { ; }
protected synchronized void receive(int b) throws IOException { if (buffer == null) throw new IOException("pipe closed"); // TBD: Spec says to throw IOException if thread reading from input stream // died. What does this really mean? Theoretically, multiple threads // could be reading to this object (why else would 'read' be synchronized?). // Do you track the first, last, or all of them? if (b < 0) { outClosed = true; notifyAll(); // In case someone was blocked in a read. return; } // Block until there's room in the pipe. while (in == out) try { wait(); } catch (InterruptedException ex) { throw new InterruptedIOException(); } // Check if buffer is empty. if (in < 0) in = 0; buffer[in++] = (byte) b; // Wrap back around if at end of the array. if (in >= buffer.length) in = 0; // Let other threads know there's something to read when this returns. notifyAll(); }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/8d285042d388a7105e3b50a5f438a5cd5ecdb499/PipedInputStream.java/buggy/libjava/java/io/PipedInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 918, 6798, 12, 474, 324, 13, 1216, 1860, 225, 288, 1884, 261, 25708, 13, 288, 225, 775, 288, 2529, 5621, 289, 1044, 12, 24485, 503, 425, 13, 288, 274, 289, 309, 261, 4106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 918, 6798, 12, 474, 324, 13, 1216, 1860, 225, 288, 1884, 261, 25708, 13, 288, 225, 775, 288, 2529, 5621, 289, 1044, 12, 24485, 503, 425, 13, 288, 274, 289, 309, 261, 4106, ...
buffer.append((char) c);
strbuff.append(c);
protected String getNextIdentifier() throws ScannerException { StringBuffer buffer = new StringBuffer(); skipOverWhitespace(); int c = getChar(); if (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')) | (c == '_')) { buffer.append((char) c); c = getChar(); while (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')) || ((c >= '0') && (c <= '9')) || (c == '_')) { buffer.append((char) c); c = getChar(); } } ungetChar(c); return buffer.toString(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9ebf2c99093949be13d33b05a6695fc9d76e14fc/Scanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 6927, 3004, 1435, 1216, 19074, 503, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 7457, 4851, 9431, 5621, 202, 202, 474, 276, 273, 23577, 5621, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 6927, 3004, 1435, 1216, 19074, 503, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 7457, 4851, 9431, 5621, 202, 202, 474, 276, 273, 23577, 5621, 202, 202,...
synchronized(members) { for(int i=0; i < members.size(); i++) { mbr=(Address)members.elementAt(i); win=(NakReceiverWindow)received_msgs.get(mbr); if(win != null) highest_deliv[i]=win.getHighestDelivered(); } } return highest_deliv; }
synchronized(members) { for(int i=0; i < members.size(); i++) { mbr=(Address)members.elementAt(i); win=(NakReceiverWindow)received_msgs.get(mbr); if(win != null) highest_deliv[i]=win.getHighestDelivered(); } } return highest_deliv; }
long[] getHighestSeqnosDelivered() { long[] highest_deliv=members != null ? new long[members.size()] : null; Address mbr; NakReceiverWindow win; if(highest_deliv == null) return null; for(int i=0; i < highest_deliv.length; i++) highest_deliv[i]=-1; synchronized(members) { for(int i=0; i < members.size(); i++) { mbr=(Address)members.elementAt(i); win=(NakReceiverWindow)received_msgs.get(mbr); if(win != null) highest_deliv[i]=win.getHighestDelivered(); } } return highest_deliv; }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/75359f4186603c5a949e15ffab51fb811f04ed8e/NAKACK.java/clean/src/org/jgroups/protocols/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5748, 8526, 7628, 2031, 395, 6926, 18050, 20813, 329, 1435, 288, 202, 565, 1525, 8526, 2398, 9742, 67, 3771, 427, 33, 7640, 480, 446, 692, 394, 1525, 63, 7640, 18, 1467, 1435, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5748, 8526, 7628, 2031, 395, 6926, 18050, 20813, 329, 1435, 288, 202, 565, 1525, 8526, 2398, 9742, 67, 3771, 427, 33, 7640, 480, 446, 692, 394, 1525, 63, 7640, 18, 1467, 1435, 65, ...
firePropertyChange(LOCALIZE_IMAGE_DISPLAY, oldObject, newObject);
firePropertyChange(ClipBoard.LOCALIZE_IMAGE_DISPLAY, oldObject, newObject);
void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) oldObject = (ImageDisplay) selectedNode.getUserObject(); firePropertyChange(LOCALIZE_IMAGE_DISPLAY, oldObject, newObject); selectedNode = node; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/SearchResultsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/SearchResultsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 23006, 907, 1435, 565, 288, 3639, 2989, 19536, 12513, 756, 273, 5411, 261, 1868, 19536, 12513, 13, 7595, 7416, 743, 1841, 5621, 3639, 309, 261, 8109, 907, 422, 756, 13, 327, 31, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 23006, 907, 1435, 565, 288, 3639, 2989, 19536, 12513, 756, 273, 5411, 261, 1868, 19536, 12513, 13, 7595, 7416, 743, 1841, 5621, 3639, 309, 261, 8109, 907, 422, 756, 13, 327, 31, 3639...
assertEquals( "310", DurationFormatUtils.formatPeriod(time1970, time, "yM") ); assertEquals( "3 years 10 months", DurationFormatUtils.formatPeriod(time1970, time, "y' years 'M' months'") ); assertEquals( "03/10", DurationFormatUtils.formatPeriod(time1970, time, "yy/MM") );
assertEquals("310", DurationFormatUtils.formatPeriod(time1970, time, "yM")); assertEquals("3 years 10 months", DurationFormatUtils.formatPeriod(time1970, time, "y' years 'M' months'")); assertEquals("03/10", DurationFormatUtils.formatPeriod(time1970, time, "yy/MM"));
public void testFormatPeriod() { Calendar cal1970 = Calendar.getInstance(); cal1970.set(1970, 0, 1, 0, 0, 0); cal1970.set(Calendar.MILLISECOND, 0); long time1970 = cal1970.getTime().getTime(); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "y") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "M") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "d") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "H") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "m") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "s") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time1970, "S") ); assertEquals( "0000", DurationFormatUtils.formatPeriod(time1970, time1970, "SSSS") ); assertEquals( "0000", DurationFormatUtils.formatPeriod(time1970, time1970, "yyyy") ); assertEquals( "0000", DurationFormatUtils.formatPeriod(time1970, time1970, "yyMM") ); long time = time1970 + 60 * 1000; assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time, "y") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time, "M") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time, "d") ); assertEquals( "0", DurationFormatUtils.formatPeriod(time1970, time, "H") ); assertEquals( "1", DurationFormatUtils.formatPeriod(time1970, time, "m") ); assertEquals( "60", DurationFormatUtils.formatPeriod(time1970, time, "s") ); assertEquals( "60000", DurationFormatUtils.formatPeriod(time1970, time, "S") ); assertEquals( "01:00", DurationFormatUtils.formatPeriod(time1970, time, "mm:ss") ); Calendar cal = Calendar.getInstance(); cal.set(1973, 6, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); time = cal.getTime().getTime(); assertEquals( "36", DurationFormatUtils.formatPeriod(time1970, time, "yM") ); assertEquals( "3 years 6 months", DurationFormatUtils.formatPeriod(time1970, time, "y' years 'M' months'") ); assertEquals( "03/06", DurationFormatUtils.formatPeriod(time1970, time, "yy/MM") ); cal.set(1973, 10, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); time = cal.getTime().getTime(); assertEquals( "310", DurationFormatUtils.formatPeriod(time1970, time, "yM") ); assertEquals( "3 years 10 months", DurationFormatUtils.formatPeriod(time1970, time, "y' years 'M' months'") ); assertEquals( "03/10", DurationFormatUtils.formatPeriod(time1970, time, "yy/MM") ); cal.set(1974, 0, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); time = cal.getTime().getTime(); assertEquals( "40", DurationFormatUtils.formatPeriod(time1970, time, "yM") ); assertEquals( "4 years 0 months", DurationFormatUtils.formatPeriod(time1970, time, "y' years 'M' months'") ); assertEquals( "04/00", DurationFormatUtils.formatPeriod(time1970, time, "yy/MM") ); assertEquals( "48", DurationFormatUtils.formatPeriod(time1970, time, "M") ); assertEquals( "48", DurationFormatUtils.formatPeriod(time1970, time, "MM") ); assertEquals( "048", DurationFormatUtils.formatPeriod(time1970, time, "MMM") ); }
7060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7060/f0f0bf81e7010b213be89b477eaaba339a3d9fbc/DurationFormatUtilsTest.java/buggy/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1630, 5027, 1435, 288, 3639, 5542, 1443, 3657, 7301, 273, 5542, 18, 588, 1442, 5621, 3639, 1443, 3657, 7301, 18, 542, 12, 3657, 7301, 16, 374, 16, 404, 16, 374, 16, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1630, 5027, 1435, 288, 3639, 5542, 1443, 3657, 7301, 273, 5542, 18, 588, 1442, 5621, 3639, 1443, 3657, 7301, 18, 542, 12, 3657, 7301, 16, 374, 16, 404, 16, 374, 16, 374...
Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); }
headers.add(headers.size(), new HeaderElement(name, value));
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 17663, 12, 780, 508, 16, 514, 460, 13, 225, 288, 565, 4304, 498, 273, 394, 4304, 12, 529, 1769, 565, 514, 1592, 273, 261, 780, 13, 2240, 18, 588, 12, 856, 1769, 565, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 17663, 12, 780, 508, 16, 514, 460, 13, 225, 288, 565, 4304, 498, 273, 394, 4304, 12, 529, 1769, 565, 514, 1592, 273, 261, 780, 13, 2240, 18, 588, 12, 856, 1769, 565, 309, ...
public static Test suite() { TestSuite suite = new Suite(ASTConverterTest.class.getName()); Class c = ASTConverterTest.class; Method[] methods = c.getMethods(); for (int i = 0, max = methods.length; i < max; i++) { if (methods[i].getName().startsWith("test")) { suite.addTest(new ASTConverterTest(methods[i].getName())); } }// suite.addTest(new ASTConverterTest("test0404")); return suite; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/95caafe5d5c2d961ca8fd355b42818fe4745ffb5/ASTConverterTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 4709, 18, 1106, 18, 17994, 10663, 9506, 202, 797, 276, 273, 9183, 5072, 4709, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 4709, 18, 1106, 18, 17994, 10663, 9506, 202, 797, 276, 273, 9183, 5072, 4709, 18,...
protected void handleCodeWHI(long expressionReference, String value, int round, Highlight h) {
protected void handleCodeWHI(long expressionReference, String value, int round, Highlight h) {
protected void handleCodeWHI(long expressionReference, String value, int round, Highlight h) { Value result = (Value) values.remove(new Long(expressionReference)); if (round == 0) { if (value.equals(Boolean.TRUE.toString())) { director.enterLoop(propertiesBundle .getStringProperty("statement_name.while"), result, h); } else { director.skipLoop(propertiesBundle .getStringProperty("statement_name.while"), result); } } else { if (value.equals(Boolean.TRUE.toString())) { director.continueLoop(propertiesBundle .getStringProperty("statement_name.while"), result, h); } else { director.exitLoop(propertiesBundle .getStringProperty("statement_name.while"), result); } } director.closeScratch(); director.openScratch(); }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/5ef437d8b8621983333af90d2ca218c9d8fbfe52/TheaterMCodeInterpreter.java/clean/src/jeliot/mcode/TheaterMCodeInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 1085, 12557, 45, 12, 5748, 2652, 2404, 16, 514, 460, 16, 5411, 509, 3643, 16, 31386, 366, 13, 288, 3639, 1445, 563, 273, 261, 620, 13, 924, 18, 4479, 12, 2704, 3407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 1085, 12557, 45, 12, 5748, 2652, 2404, 16, 514, 460, 16, 5411, 509, 3643, 16, 31386, 366, 13, 288, 3639, 1445, 563, 273, 261, 620, 13, 924, 18, 4479, 12, 2704, 3407, ...
return super.execMethod(methodId, f, cx, scope, thisObj, args);
return super.execMethod(f, cx, scope, thisObj, args);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: { if (thisObj != null) { // BaseFunction.construct will set up parent, proto return f.construct(cx, scope, args); } if (args.length == 0 || args[0] == null || args[0] == Undefined.instance) { return new NativeObject(); } return ScriptRuntime.toObject(cx, scope, args[0]); } case Id_toLocaleString: // For now just alias toString case Id_toString: { if (cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE)) { String s = toSource(cx, scope, thisObj, args); int L = s.length(); if (L != 0 && s.charAt(0) == '(' && s.charAt(L - 1) == ')') { // Strip () that surrounds toSource s = s.substring(1, L - 1); } return s; } return ScriptRuntime.defaultObjectToString(thisObj); } case Id_valueOf: return thisObj; case Id_hasOwnProperty: { if (args.length != 0) { String property = ScriptRuntime.toString(args[0]); if (thisObj.has(property, thisObj)) return Boolean.TRUE; } return Boolean.FALSE; } case Id_propertyIsEnumerable: { if (args.length != 0) { String name = ScriptRuntime.toString(args[0]); if (thisObj.has(name, thisObj)) { if (thisObj instanceof ScriptableObject) { ScriptableObject so = (ScriptableObject)thisObj; int a = so.getAttributes(name); if ((a & ScriptableObject.DONTENUM) == 0) { return Boolean.TRUE; } } } } return Boolean.FALSE; } case Id_isPrototypeOf: { if (args.length != 0 && args[0] instanceof Scriptable) { Scriptable v = (Scriptable) args[0]; do { v = v.getPrototype(); if (v == thisObj) return Boolean.TRUE; } while (v != null); } return Boolean.FALSE; } case Id_toSource: return toSource(cx, scope, thisObj, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeObject.java/clean/js/rhino/src/org/mozilla/javascript/NativeObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
anticipateAndSend(false, true, "uei.opennms.org/default/trap", "v1", null, 6, 1); }
anticipateAndSend(false, true, "uei.opennms.org/default/trap", "v1", null, 6, 1); }
public void testV1TrapDefaultEvent() throws Exception { anticipateAndSend(false, true, "uei.opennms.org/default/trap", "v1", null, 6, 1); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/558a43453220889056781293ae024c1128609c99/TrapHandlerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 58, 21, 56, 1266, 1868, 1133, 1435, 1216, 1185, 288, 3639, 17841, 24629, 340, 1876, 3826, 12, 5743, 16, 638, 16, 315, 344, 77, 18, 3190, 82, 959, 18, 3341, 19, 1886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 58, 21, 56, 1266, 1868, 1133, 1435, 1216, 1185, 288, 3639, 17841, 24629, 340, 1876, 3826, 12, 5743, 16, 638, 16, 315, 344, 77, 18, 3190, 82, 959, 18, 3341, 19, 1886, ...
log.info("Rejecting illegal move request [who=" + user.who() + ", piece=" + piece + "].");
log.warning("Rejecting illegal move request [who=" + user.who() + ", piece=" + piece + "].");
public void move (ClientObject caller, int pieceId, short x, short y, int targetId, BangService.InvocationListener il) throws InvocationException { BangUserObject user = (BangUserObject)caller; int pidx = _bangobj.getPlayerIndex(user.username); Piece piece = (Piece)_bangobj.pieces.get(pieceId); if (piece == null || !(piece instanceof Unit) || piece.owner != pidx) { log.info("Rejecting illegal move request [who=" + user.who() + ", piece=" + piece + "]."); return; } Unit unit = (Unit)piece; if (unit.ticksUntilMovable(_bangobj.tick) > 0) { log.info("Rejecting premature move/fire request " + "[who=" + user.who() + ", piece=" + unit.info() + "]."); return; } Piece target = (Piece)_bangobj.pieces.get(targetId); Piece munit = null, shooter = unit; try { _bangobj.startTransaction(); // if they specified a non-NOOP move, execute it if (x != unit.x || y != unit.y) { munit = moveUnit(unit, x, y); if (munit == null) { throw new InvocationException(MOVE_BLOCKED); } shooter = munit; } // if they specified a target, shoot at it if (target != null) { // make sure the target is valid if (!shooter.validTarget(target, false)) { // target already dead or something throw new InvocationException(TARGET_NO_LONGER_VALID); } // make sure the target is still within range if (!shooter.targetInRange(target.x, target.y)) { throw new InvocationException(TARGET_MOVED); } // effect the initial shot ShotEffect effect = shooter.shoot(_bangobj, target); effect.prepare(_bangobj, _damage); _bangobj.setEffect(effect); recordDamage(shooter.owner, _damage); // effect any collateral damage Effect[] ceffects = shooter.collateralDamage( _bangobj, target, effect.newDamage); int ccount = (ceffects == null) ? 0 : ceffects.length; for (int ii = 0; ii < ccount; ii++) { ceffects[ii].prepare(_bangobj, _damage); _bangobj.setEffect(ceffects[ii]); recordDamage(shooter.owner, _damage); } // allow the target to return fire effect = target.returnFire(_bangobj, shooter, effect.newDamage); if (effect != null) { effect.prepare(_bangobj, _damage); _bangobj.setEffect(effect); recordDamage(target.owner, _damage); } // if they did not move in this same action, we need to // set their last acted tick if (munit == null) { unit.lastActed = _bangobj.tick; _bangobj.updatePieces(unit); } } // finally update our game statistics _bangobj.updateStats(); } finally { _bangobj.commitTransaction(); } }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/71e15c3e8950d372bafcaf23688424b63722883d/BangManager.java/buggy/src/java/com/threerings/bang/game/server/BangManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3635, 261, 1227, 921, 4894, 16, 509, 11151, 548, 16, 3025, 619, 16, 3025, 677, 16, 8227, 509, 27729, 16, 605, 539, 1179, 18, 9267, 2223, 14254, 13, 3639, 1216, 11298, 503, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3635, 261, 1227, 921, 4894, 16, 509, 11151, 548, 16, 3025, 619, 16, 3025, 677, 16, 8227, 509, 27729, 16, 605, 539, 1179, 18, 9267, 2223, 14254, 13, 3639, 1216, 11298, 503, 56...
public FieldInfo createFieldInfo (AttributeDecl attribute, ClassInfoResolver resolver) { String memberName = JavaNaming.toJavaMemberName(attribute.getName()); if (!memberName.startsWith("_")) memberName = "_"+memberName; FieldInfo fieldInfo = null; SimpleType simpleType = attribute.getSimpleType(); XSType xsType = null; ClassInfo cInfo = null; boolean enumeration = false; if (simpleType != null) { if (simpleType.hasFacet(Facet.ENUMERATION)) { enumeration = true; //-- LOok FoR CLasSiNfO iF ReSoLvR is NoT NuLL if (resolver != null) { cInfo = resolver.resolve(simpleType); } if (cInfo != null) xsType = cInfo.getSchemaType(); } if (xsType == null) xsType = TypeConversion.convertType(simpleType); } else xsType = new XSString(); switch (xsType.getType()) { case XSType.INTEGER: fieldInfo = infoFactory.createFieldInfo(xsType, memberName); fieldInfo.setCodeHelper( new IntegerCodeHelper((XSInteger)xsType) ); break; case XSType.ID: fieldInfo = infoFactory.createIdentity(memberName); break; case XSType.COLLECTION: fieldInfo = infoFactory.createCollection( ((XSList) xsType).getContentType(), memberName, ((XSList) xsType).getContentType().getName() ); break; default: fieldInfo = infoFactory.createFieldInfo(xsType, memberName); break; } fieldInfo.setNodeName(attribute.getName()); fieldInfo.setNodeType(XMLInfo.ATTRIBUTE_TYPE); fieldInfo.setRequired(attribute.isRequired()); String value = attribute.getValue(); if (value != null) { //-- XXX Need to change this...and we //-- XXX need to validate the value. //-- clean up value if (xsType.getType() == XSType.STRING) { char ch = value.charAt(0); switch (ch) { case '\'': case '\"': break; default: value = '\"' + value + '\"'; break; } } else if (enumeration) { //-- we'll need to change this //-- when enumerations are no longer //-- treated as strings JClass jClass = cInfo.getJClass(); String tmp = jClass.getName() + ".valueOf(\"" + value; tmp += "\");"; value = tmp; } if (attribute.isFixed()) fieldInfo.setFixedValue(value); else fieldInfo.setDefaultValue(value); } //fieldInfo.setSchemaType(attribute.getSimpletypeRef()); //-- add annotated comments String comment = createComment(attribute); if (comment != null) fieldInfo.setComment(comment); return fieldInfo; } //-- createFieldInfo
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/5c9639ebaf1f34ea3ae90bcab716dcf0bf4e6da9/MemberFactory.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/MemberFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19723, 752, 974, 966, 3639, 261, 1499, 3456, 1566, 16, 19010, 4301, 5039, 13, 565, 288, 3639, 514, 3140, 461, 5411, 273, 5110, 24102, 18, 869, 5852, 4419, 461, 12, 4589, 18, 17994, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19723, 752, 974, 966, 3639, 261, 1499, 3456, 1566, 16, 19010, 4301, 5039, 13, 565, 288, 3639, 514, 3140, 461, 5411, 273, 5110, 24102, 18, 869, 5852, 4419, 461, 12, 4589, 18, 17994, ...
groupId = doc.get( ArtifactRepositoryIndex.FLD_GROUPID ); artifactId = doc.get( ArtifactRepositoryIndex.FLD_ARTIFACTID ); version = doc.get( ArtifactRepositoryIndex.FLD_VERSION ); name = doc.get( ArtifactRepositoryIndex.FLD_NAME ); packaging = name.substring( name.lastIndexOf( '.' ) + 1 );
groupId = doc.get( RepositoryIndex.FLD_GROUPID ); artifactId = doc.get( RepositoryIndex.FLD_ARTIFACTID ); version = doc.get( RepositoryIndex.FLD_VERSION ); name = doc.get( RepositoryIndex.FLD_NAME ); packaging = doc.get( RepositoryIndex.FLD_PACKAGING );
protected Object createSearchedObjectFromIndexDocument( Document doc ) throws MalformedURLException, IOException, XmlPullParserException { String groupId, artifactId, version, name, packaging; if ( doc.get( index.FLD_DOCTYPE ).equals( index.ARTIFACT ) ) { groupId = doc.get( ArtifactRepositoryIndex.FLD_GROUPID ); artifactId = doc.get( ArtifactRepositoryIndex.FLD_ARTIFACTID ); version = doc.get( ArtifactRepositoryIndex.FLD_VERSION ); name = doc.get( ArtifactRepositoryIndex.FLD_NAME ); packaging = name.substring( name.lastIndexOf( '.' ) + 1 ); Artifact artifact = factory.createBuildArtifact( groupId, artifactId, version, packaging ); String groupIdTemp = groupId.replace( '.', '/' ); artifact.setFile( new File( index.getRepository().getBasedir() + groupIdTemp + "/" + artifactId + "/" + version + "/" + name ) ); return artifact; } else if ( doc.get( index.FLD_DOCTYPE ).equals( index.POM ) ) { groupId = doc.get( PomRepositoryIndex.FLD_GROUPID ); artifactId = doc.get( PomRepositoryIndex.FLD_ARTIFACTID ); version = doc.get( PomRepositoryIndex.FLD_VERSION ); packaging = doc.get( PomRepositoryIndex.FLD_PACKAGING ); return factory.createBuildArtifact( groupId, artifactId, version, packaging ); } else if ( doc.get( index.FLD_DOCTYPE ).equals( index.METADATA ) ) { List pathParts = new ArrayList(); StringTokenizer st = new StringTokenizer( doc.get( MetadataRepositoryIndex.FLD_NAME ), "/\\" ); while ( st.hasMoreTokens() ) { pathParts.add( st.nextToken() ); } Collections.reverse( pathParts ); Iterator it = pathParts.iterator(); String metadataFile = (String) it.next(); String tmpDir = (String) it.next(); String metadataType = ""; if ( tmpDir.equals( doc.get( MetadataRepositoryIndex.FLD_GROUPID ) ) ) { metadataType = MetadataRepositoryIndex.GROUP_METADATA; } else if ( tmpDir.equals( doc.get( MetadataRepositoryIndex.FLD_ARTIFACTID ) ) ) { metadataType = MetadataRepositoryIndex.ARTIFACT_METADATA; } else { metadataType = MetadataRepositoryIndex.SNAPSHOT_METADATA; } RepositoryMetadata repoMetadata = null; repoMetadata = getMetadata( doc.get( MetadataRepositoryIndex.FLD_GROUPID ), doc.get( MetadataRepositoryIndex.FLD_ARTIFACTID ), doc.get( MetadataRepositoryIndex.FLD_VERSION ), metadataFile, metadataType ); return repoMetadata; } return null; }
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/edd8a998aa6006fddaf4d4a404bbdd6ddfd246d7/DefaultRepositoryIndexSearcher.java/clean/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/DefaultRepositoryIndexSearcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 30396, 23016, 1265, 1016, 2519, 12, 4319, 997, 262, 3639, 1216, 20710, 16, 1860, 16, 5714, 9629, 25746, 565, 288, 3639, 514, 6612, 16, 25496, 16, 1177, 16, 508, 16, 2298, 5755...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 30396, 23016, 1265, 1016, 2519, 12, 4319, 997, 262, 3639, 1216, 20710, 16, 1860, 16, 5714, 9629, 25746, 565, 288, 3639, 514, 6612, 16, 25496, 16, 1177, 16, 508, 16, 2298, 5755...
vPhaseReport.addAll(
addReport(
public void doSetLocationsExposure(Entity entity, IHex hex, boolean isJump, int elevation) { if ( hex.terrainLevel(Terrains.WATER) > 0 && !isJump && elevation < 0) { if (entity instanceof Mech && !entity.isProne() && hex.terrainLevel(Terrains.WATER) == 1) { for (int loop = 0; loop < entity.locations(); loop++) { if (game.getOptions().booleanOption("vacuum")) entity.setLocationStatus(loop, ILocationExposureStatus.VACUUM); else entity.setLocationStatus(loop, ILocationExposureStatus.NORMAL); } entity.setLocationStatus(Mech.LOC_RLEG, ILocationExposureStatus.WET); entity.setLocationStatus(Mech.LOC_LLEG, ILocationExposureStatus.WET); vPhaseReport.addAll( breachCheck(entity, Mech.LOC_RLEG, hex)); vPhaseReport.addAll( breachCheck(entity, Mech.LOC_LLEG, hex)); if (entity instanceof QuadMech) { entity.setLocationStatus(Mech.LOC_RARM, ILocationExposureStatus.WET); entity.setLocationStatus(Mech.LOC_LARM, ILocationExposureStatus.WET); vPhaseReport.addAll( breachCheck(entity, Mech.LOC_RARM, hex)); vPhaseReport.addAll( breachCheck(entity, Mech.LOC_LARM, hex)); } } else { for (int loop = 0; loop < entity.locations(); loop++) { entity.setLocationStatus(loop, ILocationExposureStatus.WET); vPhaseReport.addAll( breachCheck(entity, loop, hex)); } } } else { for (int loop = 0; loop < entity.locations(); loop++) { if (game.getOptions().booleanOption("vacuum")) entity.setLocationStatus(loop, ILocationExposureStatus.VACUUM); else entity.setLocationStatus(loop, ILocationExposureStatus.NORMAL); } } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 694, 10985, 424, 11291, 12, 1943, 1522, 16, 467, 7037, 3827, 16, 1250, 353, 26743, 16, 509, 19051, 13, 288, 3639, 309, 261, 3827, 18, 387, 7596, 2355, 12, 56, 264, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 694, 10985, 424, 11291, 12, 1943, 1522, 16, 467, 7037, 3827, 16, 1250, 353, 26743, 16, 509, 19051, 13, 288, 3639, 309, 261, 3827, 18, 387, 7596, 2355, 12, 56, 264, 354, ...
_searchBackwards.setNextFocusableComponent(_findNextButton);
_searchBackwards.setNextFocusableComponent(_searchAllDocuments); _searchAllDocuments.setNextFocusableComponent(_findNextButton);
public FindReplaceDialog(MainFrame frame, SingleDisplayModel model) { super(frame, "Find/Replace"); _model = model; int i = this.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT; //i = this.WHEN_FOCUSED; //i = this.WHEN_IN_FOCUSED_WINDOW; //InputMap im = _mainPanel.getInputMap(i); InputMap im = _findField.getInputMap(i); im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0), "Close"); im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0), "Find Next"); //ActionMap am = _mainPanel.getActionMap(); ActionMap am = _findField.getActionMap(); am.put("Find Next", _findNextAction); am.put("Close", new AbstractAction("Close") { public void actionPerformed(ActionEvent ae) { _frame.getCurrentDefPane().requestFocus(); _close(); } }); // Setup color listeners. new ForegroundColorListener(_findField); new BackgroundColorListener(_findField); new ForegroundColorListener(_replaceField); new BackgroundColorListener(_replaceField); _findNextButton = new JButton(_findNextAction); _replaceButton = new JButton(_replaceAction); _replaceFindButton = new JButton(_replaceFindAction); _replaceAllButton = new JButton(_replaceAllAction); //_closeButton = new JButton(_closeAction); _message = new JLabel(""); _replaceAction.setEnabled(false); _replaceFindAction.setEnabled(false); Font font = DrJava.getConfig().getSetting(FONT_MAIN); setFieldFont(font); // set up the layout JPanel buttons = new JPanel(); buttons.setLayout(new GridLayout(1,0,5,0)); buttons.add(_findNextButton); buttons.add(_replaceButton); buttons.add(_replaceFindButton); buttons.add(_replaceAllButton); //buttons.add(_closeButton); JLabel findLabel = new JLabel("Find", SwingConstants.LEFT); //findLabel.setLabelFor(_findField); findLabel.setHorizontalAlignment(SwingConstants.LEFT); JLabel replaceLabel = new JLabel("Replace", SwingConstants.LEFT); // replaceLabel.setLabelFor(_replaceField); replaceLabel.setHorizontalAlignment(SwingConstants.LEFT); // need separate label and field panels so that the find and // replace textfields line up _labelPanel = new JPanel(new GridLayout(0,1)); // _labelPanel.setLayout(new BoxLayout(_labelPanel, BoxLayout.Y_AXIS)); //_labelPanel.add(Box.createGlue()); _labelPanel.add(findLabel); _labelPanel.add(replaceLabel); _labelPanel.setBorder(new EmptyBorder(0,5,0,5)); // 5 pix on sides MatchCaseListener mcl = new MatchCaseListener(); _matchCase = new JCheckBox("Match Case", true); _matchCase.addItemListener(mcl); SearchBackwardsListener bsl = new SearchBackwardsListener(); _searchBackwards = new JCheckBox("Search Backwards", false); _searchBackwards.addItemListener(bsl); this.removeAll(); // actually, override the behavior of TabbedPanel // remake closePanel _closePanel = new JPanel(new BorderLayout()); _closePanel.add(_closeButton, BorderLayout.NORTH); _matchCaseAndClosePanel = new JPanel(new BorderLayout()); _matchCaseAndClosePanel.add(_matchCase, BorderLayout.WEST); _matchCaseAndClosePanel.add(_searchBackwards, BorderLayout.CENTER); _matchCaseAndClosePanel.add(_closePanel, BorderLayout.EAST); _rightPanel = new JPanel(new GridLayout(1,2,5,0)); JPanel midPanel = new JPanel(new GridLayout(2,1)); JPanel farRightPanel = new JPanel(new GridLayout(2,1)); midPanel.add(wrap(_findField)); midPanel.add(wrap(_replaceField)); farRightPanel.add(_matchCaseAndClosePanel); farRightPanel.add(_message); _rightPanel.add(midPanel); _rightPanel.add(farRightPanel); hookComponents(this,_rightPanel,_labelPanel,buttons); _machine = new FindReplaceMachine(); _findField.addActionListener(_findNextAction); _findField.setNextFocusableComponent(_replaceField); _replaceField.setNextFocusableComponent(_matchCase); _matchCase.setNextFocusableComponent(_searchBackwards); _searchBackwards.setNextFocusableComponent(_findNextButton); _replaceAllButton.setNextFocusableComponent(_closeButton); _closeButton.setNextFocusableComponent(_findField); // DocumentListener that keeps track of changes in the find field. _findField.getDocument().addDocumentListener(new DocumentListener() { /** * If attributes in the find field have changed, gray out * "Replace" and "Replace and Find Next" buttons. * @param e the event caught by this listener */ public void changedUpdate(DocumentEvent e) { _machine.makeCurrentOffsetStart(); _replaceAction.setEnabled(false); _replaceFindAction.setEnabled(false); _machine.positionChanged(); if (_findField.getText().equals("")) _replaceAllAction.setEnabled(false); else _replaceAllAction.setEnabled(true); } /** * If text has been inserted into the find field, gray out * "Replace" and "Replace and Find Next" buttons. * @param e the event caught by this listener */ public void insertUpdate(DocumentEvent e) { _machine.makeCurrentOffsetStart(); _replaceAction.setEnabled(false); _replaceFindAction.setEnabled(false); _machine.positionChanged(); if (_findField.getText().equals("")) _replaceAllAction.setEnabled(false); else _replaceAllAction.setEnabled(true); } /** * If text has been deleted from the find field, gray out * "Replace" and "Replace and Find Next" buttons. * @param e the event caught by this listener */ public void removeUpdate(DocumentEvent e) { _machine.makeCurrentOffsetStart(); _replaceAction.setEnabled(false); _replaceFindAction.setEnabled(false); _machine.positionChanged(); if (_findField.getText().equals("")) _replaceAllAction.setEnabled(false); else _replaceAllAction.setEnabled(true); } }); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6df23b9d947a754084cff460e34d203b0d81fd48/FindReplaceDialog.java/clean/drjava/src/edu/rice/cs/drjava/ui/FindReplaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4163, 5729, 6353, 12, 6376, 3219, 2623, 16, 10326, 4236, 1488, 938, 13, 288, 565, 2240, 12, 3789, 16, 315, 3125, 19, 5729, 8863, 565, 389, 2284, 273, 938, 31, 3639, 509, 277, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4163, 5729, 6353, 12, 6376, 3219, 2623, 16, 10326, 4236, 1488, 938, 13, 288, 565, 2240, 12, 3789, 16, 315, 3125, 19, 5729, 8863, 565, 389, 2284, 273, 938, 31, 3639, 509, 277, 273,...
newRubyClass.defineConstant(fields[i].getName(), JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType()));
String name = fields[i].getName(); if (Character.isLowerCase(name.charAt(0))) { name = Character.toUpperCase(name.charAt(0)) + name.substring(1); } newRubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType()));
public static RubyModule loadClass(Ruby ruby, Class javaClass, String rubyName) { RubyModule newRubyClass = getRubyClass(ruby, javaClass); if (newRubyClass != null) { return newRubyClass; } if (rubyName == null) { String javaName = javaClass.getName(); rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); } Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (methods[i].getDeclaringClass() != Object.class) { if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List)singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List)methodMap.get(methods[i].getName())).add(methods[i]); } } } newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject")); newRubyClass.defineSingletonMethod("new", new JavaConstructor(javaClass.getConstructors())); Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); methods = (Method[])((List)entry.getValue()).toArray(new Method[((List)entry.getValue()).size()]); newRubyClass.defineMethod((String)entry.getKey(), new JavaMethod(methods)); } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); methods = (Method[])((List)entry.getValue()).toArray(new Method[((List)entry.getValue()).size()]); newRubyClass.defineSingletonMethod((String)entry.getKey(), new JavaMethod(methods, true)); } // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { newRubyClass.defineConstant(fields[i].getName(), JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } putRubyClass(ruby, javaClass, newRubyClass); return newRubyClass; }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyJavaObject.java/clean/org/jruby/RubyJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 16038, 12, 54, 10340, 22155, 16, 1659, 2252, 797, 16, 514, 22155, 461, 13, 288, 3639, 19817, 3120, 394, 54, 10340, 797, 273, 4170, 10340, 797, 12, 27768, 16, 2252,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 3120, 16038, 12, 54, 10340, 22155, 16, 1659, 2252, 797, 16, 514, 22155, 461, 13, 288, 3639, 19817, 3120, 394, 54, 10340, 797, 273, 4170, 10340, 797, 12, 27768, 16, 2252,...
} else { throw new AssertionError("unexpected attribute");
public Class getValueType() { if (attribute.equals(SWTBindingConstants.SELECTION)) { return Object.class; } else { throw new AssertionError("unexpected attribute"); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/72f1f804799a0ffd127eeb44d2c1cc0229cf194a/StructuredViewerUpdatableValue.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/binding/internal/viewers/StructuredViewerUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 2366, 559, 1435, 288, 202, 202, 430, 261, 4589, 18, 14963, 12, 55, 8588, 5250, 2918, 18, 1090, 15445, 3719, 288, 1082, 202, 2463, 1033, 18, 1106, 31, 202, 202, 97, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 2366, 559, 1435, 288, 202, 202, 430, 261, 4589, 18, 14963, 12, 55, 8588, 5250, 2918, 18, 1090, 15445, 3719, 288, 1082, 202, 2463, 1033, 18, 1106, 31, 202, 202, 97, 469, ...
if (stringValue != null)
if (currentNamespacePrefix != null)
private void endAttribute() { inAttribute = false; if (stringValue == null || namespacePrefixes) tlist.endAttribute(); if (stringValue != null) { String uri = stringValue.toString(); uri = uri.length() == 0 ? null : uri.intern(); namespaceBindings.uri = uri; stringValue = null; } }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/9d897bcbf3a3b9fcff1d0b32e8553c98f87311f6/ParsedXMLToConsumer.java/clean/gnu/xml/ParsedXMLToConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 679, 1499, 1435, 225, 288, 565, 316, 1499, 273, 629, 31, 565, 309, 261, 1080, 620, 422, 446, 747, 1981, 11700, 13, 1377, 268, 1098, 18, 409, 1499, 5621, 565, 309, 261, 2972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 679, 1499, 1435, 225, 288, 565, 316, 1499, 273, 629, 31, 565, 309, 261, 1080, 620, 422, 446, 747, 1981, 11700, 13, 1377, 268, 1098, 18, 409, 1499, 5621, 565, 309, 261, 2972, ...
return sortAdviceDefinitions(allAdvices);
return allAdvices;
public List getAdviceDefinitions() { final List allAdvices = new ArrayList(); allAdvices.addAll(m_aroundAdviceDefinitions); allAdvices.addAll(m_beforeAdviceDefinitions); allAdvices.addAll(m_afterAdviceDefinitions); return sortAdviceDefinitions(allAdvices); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/b38ed0bd135533a456fab3fc227ac6850e810150/AspectDefinition.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/definition/AspectDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 1871, 633, 7130, 1435, 288, 3639, 727, 987, 777, 1871, 2094, 273, 394, 2407, 5621, 3639, 777, 1871, 2094, 18, 1289, 1595, 12, 81, 67, 12716, 1871, 633, 7130, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 1871, 633, 7130, 1435, 288, 3639, 727, 987, 777, 1871, 2094, 273, 394, 2407, 5621, 3639, 777, 1871, 2094, 18, 1289, 1595, 12, 81, 67, 12716, 1871, 633, 7130, 1769, 3639, ...
case '0': state.index = index; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': num = unDigit(c); while (++index < source.length && isDigit(c = source[index])) num = 10 * num - unDigit(c); if (num > 9 || num > state.parenCount) { state.index = ocp; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; } index--; ren = new RENode(state, REOP_BACKREF, null); ren.num = num - 1; /* \1 is numbered 0, etc. */ /* Avoid common chr- and flags-setting code after switch. */ ren.flags = RENode.NONEMPTY; skipCommon = true; break;
case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': /* Yuk. Keeping the old style \n interpretation for 1.2 compatibility. */ if (state.cx.getLanguageVersion() == Context.VERSION_1_2) { switch (c) { case '0': state.index = index; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': num = unDigit(c); len = 1; while (++index < source.length && isDigit(c = source[index])) { num = 10 * num + unDigit(c); len++; } /* n in [8-9] and > count of parenetheses, then revert to '8' or '9', ignoring the '\' */ if (((num == 8) || (num == 9)) && (num > state.parenCount)) { ocp = --index; /* skip beyond the '\' */ doFlat = true; skipCommon = true; break; } /* more than 1 digit, or a number greater than the count of parentheses => it's an octal */ if ((len > 1) || (num > state.parenCount)) { state.index = ocp; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; } index--; ren = new RENode(state, REOP_BACKREF, null); ren.num = num - 1; /* \1 is numbered 0, etc. */ /* Avoid common chr- and flags-setting code after switch. */ ren.flags = RENode.NONEMPTY; skipCommon = true; break; } } else { boolean twodigitescape = false; if (index < (source.length - 1) && source[index + 1] >= '0' && source[index + 1] <= '9') { if (c >= '0' && c <= '3') { if (c <= '7') { /* ZeroToThree OctalDigit */ if (index < (source.length - 2) && source[index + 2] >= '0' && source[index + 2] <= '9') { ren = new RENode(state, REOP_FLAT1, null); c = (char)(64 * unDigit(c) + 8 * unDigit(source[++index]) + unDigit(source[++index])); } else /*ZeroToThree OctalDigit lookahead != OctalDigit */ twodigitescape = true; } else /* ZeroToThree EightOrNine */ twodigitescape = true; } else { /* FourToNine DecimalDigit */ twodigitescape = true; } if (twodigitescape) { num = 10 * unDigit(c) + unDigit(source[index + 1]); if (num >= 10 && num <= state.parenCount) { index++; ren = new RENode(state, REOP_BACKREF, null); ren.num = num - 1;/* \1 is numbered 0, etc. */ /* Avoid common chr- and flags-setting code after switch. */ ren.flags = RENode.NONEMPTY; skipCommon = true; } if (c > '7' || source[index + 1] > '7') { Context.reportError( ScriptRuntime.getMessage( "msg.invalid.backref", null)); return null; } ren = new RENode(state, REOP_FLAT1, null); c = (char)(8 * unDigit(c) + unDigit(source[++index])); } } else { /* DecimalDigit lookahead != DecimalDigit */ if (c == '0') { ren = new RENode(state, REOP_FLAT1, null); c = 0; } else { num = (char)unDigit(c); ren = new RENode(state, REOP_BACKREF, null); ren.num = num - 1; /* \1 is numbered 0, etc. */ /* Avoid common chr- and flags-setting code after switch. */ ren.flags = RENode.NONEMPTY; skipCommon = true; } } } break;
RENode parseAtom(CompilerState state) { int num = 0, len; RENode ren = null; RENode ren2; char c; byte op; boolean skipCommon = false; boolean doFlat = false; char[] source = state.source; int index = state.index; int ocp = index; if (index == source.length) { state.index = index; return new RENode(state, REOP_EMPTY, null); } switch (source[index]) { /* handle /|a/ by returning an empty node for the leftside */ case '|': return new RENode(state, REOP_EMPTY, null); case '(': op = REOP_END; if (source[index + 1] == '?') { switch (source[index + 2]) { case ':' : op = REOP_LPARENNON; break; case '=' : op = REOP_ASSERT; break; case '!' : op = REOP_ASSERT_NOT; break; } } if (op == REOP_END) { op = REOP_LPAREN; num = state.parenCount++; /* \1 is numbered 0, etc. */ state.index = index + 1; } else state.index = index + 3; ren2 = parseRegExp(state); if (ren2 == null) return null; index = state.index; if (index >= source.length || source[index] != ')') { reportError("msg.unterm.paren", tail(source, ocp)); return null; } index++; ren = new RENode(state, op, ren2); ren.flags = (byte) (ren2.flags & (RENode.ANCHORED | RENode.NONEMPTY)); ren.num = num; if ((op == REOP_LPAREN) || (op == REOP_LPARENNON)) { /* Assume RPAREN ops immediately succeed LPAREN ops */ ren2 = new RENode(state, (byte)(op + 1), null); setNext(state, ren, ren2); ren2.num = num; } break; case '.': ++index; op = REOP_DOT; if ((index < source.length) && (source[index] == '*')) { index++; op = REOP_DOTSTAR; if ((index < source.length) && (source[index] == '?')) { index++; op = REOP_DOTSTARMIN; } } ren = new RENode(state, op, null); if (ren.op == REOP_DOT) ren.flags = RENode.SINGLE | RENode.NONEMPTY; break; case '[': /* A char class must have at least one char in it. */ if (++index == source.length) { reportError("msg.unterm.class", tail(source, ocp)); return null; } c = source[index]; ren = new RENode(state, REOP_CCLASS, new Integer(index)); /* A negated class must have at least one char in it after the ^. */ if (c == '^' && ++index == source.length) { reportError("msg.unterm.class", tail(source, ocp)); return null; } for (;;) { if (++index == source.length) { reportError("msg.unterm.paren", tail(source, ocp)); return null; } c = source[index]; if (c == ']') break; if (c == '\\' && index+1 != source.length) index++; } ren.kid2 = index++; /* Since we rule out [] and [^], we can set the non-empty flag. */ ren.flags = RENode.SINGLE | RENode.NONEMPTY; break; case '\\': if (++index == source.length) { Context.reportError(ScriptRuntime.getMessage("msg.trail.backslash", null)); return null; } c = source[index]; switch (c) { case 'f': case 'n': case 'r': case 't': case 'v': c = getEscape(c); ren = new RENode(state, REOP_FLAT1, null); break; case 'd': ren = new RENode(state, REOP_DIGIT, null); break; case 'D': ren = new RENode(state, REOP_NONDIGIT, null); break; case 'w': ren = new RENode(state, REOP_ALNUM, null); break; case 'W': ren = new RENode(state, REOP_NONALNUM, null); break; case 's': ren = new RENode(state, REOP_SPACE, null); break; case 'S': ren = new RENode(state, REOP_NONSPACE, null); break; case '0': state.index = index; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': num = unDigit(c); while (++index < source.length && isDigit(c = source[index])) num = 10 * num - unDigit(c); if (num > 9 || num > state.parenCount) { state.index = ocp; num = doOctal(state); index = state.index; ren = new RENode(state, REOP_FLAT1, null); c = (char) num; break; } index--; ren = new RENode(state, REOP_BACKREF, null); ren.num = num - 1; /* \1 is numbered 0, etc. */ /* Avoid common chr- and flags-setting code after switch. */ ren.flags = RENode.NONEMPTY; skipCommon = true; break; case 'x': ocp = index; if (++index < source.length && isHex(c = source[index])) { num = unHex(c); if (++index < source.length && isHex(c = source[index])) { num <<= 4; num += unHex(c); } else { index--; /* back up so index points to last hex char */ } } else { index = ocp; /* \xZZ is xZZ (Perl does \0ZZ!) */ num = 'x'; } ren = new RENode(state, REOP_FLAT1, null); c = (char)num; break; case 'c': c = source[++index]; if (!('A' <= c && c <= 'Z') && !('a' <= c && c <= 'z')) { index -= 2; ocp = index; doFlat = true; skipCommon = true; break; } c = Character.toUpperCase(c); c = (char) (c ^ 64); // JS_TOCTRL ren = new RENode(state, REOP_FLAT1, null); break; case 'u': if (index+4 < source.length && isHex(source[index+1]) && isHex(source[index+2]) && isHex(source[index+3]) && isHex(source[index+4])) { num = (((((unHex(source[index+1]) << 4) + unHex(source[index+2])) << 4) + unHex(source[index+3])) << 4) + unHex(source[index+4]); c = (char) num; index += 4; ren = new RENode(state, REOP_FLAT1, null); break; } /* Unlike Perl \\xZZ, we take \\uZZZ to be literal-u then ZZZ. */ ocp = index; doFlat = true; skipCommon = true; break; default: ocp = index; doFlat = true; skipCommon = true; break; } /* Common chr- and flags-setting code for escape opcodes. */ if (ren != null && !skipCommon) { ren.chr = c; ren.flags = RENode.SINGLE | RENode.NONEMPTY; } skipCommon = false; if (!doFlat) { /* Skip to next unparsed char. */ index++; break; } /* fall through since doFlat was true */ doFlat = false; default: while (++index != source.length && metachars.indexOf(source[index]) == -1) ; len = (int)(index - ocp); if (index != source.length && len > 1 && closurechars.indexOf(source[index]) != -1) { index--; len--; } if (len > REOP_FLATLEN_MAX) { len = REOP_FLATLEN_MAX; index = ocp + len; } ren = new RENode(state, len == 1 ? REOP_FLAT1 : REOP_FLAT, new Integer(ocp)); ren.flags = RENode.NONEMPTY; if (len > 1) { ren.kid2 = index; } else { ren.flags |= RENode.SINGLE; ren.chr = source[ocp]; } break; } state.index = index; return ren; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/a845f3ca488cb9b56327d490291b84dccf128a1d/NativeRegExp.java/buggy/js/rhino/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2438, 907, 1109, 3641, 12, 9213, 1119, 919, 13, 288, 3639, 509, 818, 273, 374, 16, 562, 31, 3639, 2438, 907, 1654, 273, 446, 31, 3639, 2438, 907, 1654, 22, 31, 3639, 1149, 276, 31, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2438, 907, 1109, 3641, 12, 9213, 1119, 919, 13, 288, 3639, 509, 818, 273, 374, 16, 562, 31, 3639, 2438, 907, 1654, 273, 446, 31, 3639, 2438, 907, 1654, 22, 31, 3639, 1149, 276, 31, 36...
encoded = true;
void encode() { try { splitfileAlgo.encode(dataBlocks, checkBlocks, CHKBlock.DATA_LENGTH, blockInsertContext.persistentBucketFactory); // Start the inserts for(int i=0;i<checkBlockInserters.length;i++) { if(checkBlocks[i] != null) { // else already finished on creation checkBlockInserters[i] = new SingleBlockInserter(parent.parent, checkBlocks[i], (short)-1, FreenetURI.EMPTY_CHK_URI, blockInsertContext, this, false, CHKBlock.DATA_LENGTH, i + dataBlocks.length, getCHKOnly, false, false, parent.token); checkBlockInserters[i].schedule(); } else { parent.parent.completedBlock(true); } } // Tell parent only after have started the inserts. // Because of the counting. encoded = true; parent.encodedSegment(this); onEncodedSegment(); } catch (IOException e) { InserterException ex = new InserterException(InserterException.BUCKET_ERROR, e, null); finish(ex); } catch (Throwable t) { Logger.error(this, "Caught "+t+" while encoding "+this, t); InserterException ex = new InserterException(InserterException.INTERNAL_ERROR, t, null); finish(ex); } }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/e6accf6fde724c33588e68c749fd47456ab50691/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
System.out.println("Wrote row: "+data.previous);
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { debug="processRow"; Row r=getRow(); // get row! if (r==null) // no more input to be expected... { // Don't forget the last set of rows... if (data.previous!=null) { deNormalise(data.previous); buildResult(data.previous); putRow(data.previous); System.out.println("Wrote row: "+data.previous); } setOutputDone(); return false; } if (first) { data.keyFieldNr = r.searchValueIndex(meta.getKeyField() ); if (data.keyFieldNr<0) { logError("Key field name ["+meta.getKeyField()+"] couldn't be found!"); setErrors(1); stopAll(); return false; } Hashtable subjects = new Hashtable(); data.fieldNameIndex = new int[meta.getDenormaliserTargetField().length]; for (int i=0;i<meta.getDenormaliserTargetField().length;i++) { DenormaliserTargetField field = meta.getDenormaliserTargetField()[i]; int idx = r.searchValueIndex(field.getFieldName()); if (idx<0) { logError("Unpivot field name ["+field.getFieldName()+"] couldn't be found!"); setErrors(1); stopAll(); return false; } data.fieldNameIndex[i] = idx; subjects.put(new Integer(idx), new Integer(idx)); // Fill a hashtable with the key strings and the position of the field in the row to take. data.keyValue.put(field.getKeyValue(), new Integer(i)); } Set subjectSet = subjects.keySet(); data.fieldNrs = (Integer[])subjectSet.toArray(new Integer[subjectSet.size()]); data.groupnrs = new int[meta.getGroupField().length]; for (int i=0;i<meta.getGroupField().length;i++) { data.groupnrs[i] = r.searchValueIndex(meta.getGroupField()[i]); if (data.groupnrs[i]<0) { logError("Grouping field ["+meta.getGroupField()[i]+"] couldn't be found!"); setErrors(1); stopAll(); return false; } } ArrayList removeList = new ArrayList(); removeList.add(new Integer(data.keyFieldNr)); for (int i=0;i<data.fieldNrs.length;i++) { removeList.add(data.fieldNrs[i]); } Collections.sort(removeList); data.removeNrs = new int[removeList.size()]; for (int i=0;i<removeList.size();i++) data.removeNrs[i] = ((Integer)removeList.get(i)).intValue(); data.previous=new Row(r); // copy the row to previous newGroup(); // Create a new result row (init) first=false; } // System.out.println("Check for same group..."); if (!sameGroup(data.previous, r)) { debug="Different group"; // System.out.println("Different group!"); buildResult(data.previous); putRow(data.previous); // copy row to possible alternate rowset(s). System.out.println("Wrote row: "+data.previous); newGroup(); // Create a new group aggregate (init) deNormalise(r); } else { debug="unPivot()"; deNormalise(r); } data.previous=new Row(r); if ((linesRead>0) && (linesRead%Const.ROWS_UPDATE)==0) logBasic("Linenr "+linesRead); return true; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/43f489c3f83060422ec91c325315e1500aa579b4/Denormaliser.java/clean/src/be/ibridge/kettle/trans/step/denormaliser/Denormaliser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1207, 1999, 12, 4160, 2781, 1358, 3029, 77, 16, 8693, 751, 1358, 272, 3211, 13, 1216, 1475, 278, 5929, 503, 202, 95, 202, 202, 4148, 1546, 2567, 1999, 14432, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1207, 1999, 12, 4160, 2781, 1358, 3029, 77, 16, 8693, 751, 1358, 272, 3211, 13, 1216, 1475, 278, 5929, 503, 202, 95, 202, 202, 4148, 1546, 2567, 1999, 14432, 9506, 202, ...
if (memento == null) throw new NullPointerException();
if (memento == null) { throw new NullPointerException(); }
static ActivityPatternBindingDefinition readActivityPatternBindingDefinition( IMemento memento, String sourceIdOverride) { if (memento == null) throw new NullPointerException(); String activityId = memento.getString(TAG_ACTIVITY_ID); if (activityId == null) return null; String pattern = memento.getString(TAG_PATTERN); if (pattern == null) return null; String sourceId = sourceIdOverride != null ? sourceIdOverride : memento .getString(TAG_SOURCE_ID); return new ActivityPatternBindingDefinition(activityId, pattern, sourceId); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Persistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/Persistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 9621, 3234, 5250, 1852, 855, 6193, 3234, 5250, 1852, 12, 5411, 6246, 820, 83, 312, 820, 83, 16, 514, 27572, 6618, 13, 288, 3639, 309, 261, 81, 820, 83, 422, 446, 13, 5411, 604, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9621, 3234, 5250, 1852, 855, 6193, 3234, 5250, 1852, 12, 5411, 6246, 820, 83, 312, 820, 83, 16, 514, 27572, 6618, 13, 288, 3639, 309, 261, 81, 820, 83, 422, 446, 13, 5411, 604, 3...
byte[] zipData = baos.toByteArray(); ByteArrayOutputStream base64 = new ByteArrayOutputStream ( (4*zipData.length+2)/3 ); Base64.encode( new ByteArrayInputStream(zipData), base64, false );
ByteArrayOutputStream baos = new ByteArrayOutputStream(); Writer zipOut = new BufferedWriter ( new OutputStreamWriter ( new GZIPOutputStream(baos) ) ); PacketEncoder.encodeData( packet, zipOut ); zipOut.close();
public static void encode( Packet packet, Writer out ) throws IOException { // First, validate our input. if ( null == packet ) { throw new IllegalArgumentException( "The packet is null." ); } if ( null == out ) { throw new IllegalArgumentException( "The writer is null." ); } // Encode the packet object to the stream. out.write( "<packet type=\"" ); out.write( Integer.toString(packet.getCommand()) ); out.write( "\" >" ); // Do we have any data in this packet? // N.B. this action will unzip the packet. Object[] data = packet.getData(); if ( null != data ) { // XML encode the data and GZIP it. ByteArrayOutputStream baos = new ByteArrayOutputStream(); Writer zipOut = new BufferedWriter ( new OutputStreamWriter ( new GZIPOutputStream(baos) ) ); PacketEncoder.encodeData( packet, zipOut ); zipOut.close(); // Base64 encode the commpressed data. // Please note, I couldn't get anything other than a // straight stream-to-stream encoding to work. byte[] zipData = baos.toByteArray(); ByteArrayOutputStream base64 = new ByteArrayOutputStream ( (4*zipData.length+2)/3 ); Base64.encode( new ByteArrayInputStream(zipData), base64, false ); /* begin debug code ** int loop; for ( loop = 0; loop < zipData.length; loop++ ) { System.out.print( (char) zipData[loop] ); } System.out.println( "" ); String zipStr = baos.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); zipStr = base64.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); ** end debug code */ // Save the compressed data as the packetData CDATA. out.write( "<packetData count=\"" ); out.write( Integer.toString(data.length) ); out.write( "\" isGzipped=\"true\" >" ); out.write( base64.toString() ); out.write( "</packetData>" ); } // End have-data // Finish off the packet. out.write( "</packet>" ); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/2e249088efbace03816e726900086724c02553fa/PacketEncoder.java/buggy/megamek/src/megamek/common/xml/PacketEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2017, 12, 11114, 4414, 16, 5497, 596, 262, 3639, 1216, 1860, 565, 288, 3639, 368, 5783, 16, 1954, 3134, 810, 18, 3639, 309, 261, 446, 422, 4414, 262, 288, 5411, 604, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2017, 12, 11114, 4414, 16, 5497, 596, 262, 3639, 1216, 1860, 565, 288, 3639, 368, 5783, 16, 1954, 3134, 810, 18, 3639, 309, 261, 446, 422, 4414, 262, 288, 5411, 604, 394...
consume(IToken.tRBRACE);
last = consume(IToken.tRBRACE);
protected IASTInitializerClause initializerClause(IASTScope scope, boolean constructInitializers) throws EndOfFileException, BacktrackException { if (LT(1) == IToken.tLBRACE) { IToken t = consume(IToken.tLBRACE); if (LT(1) == (IToken.tRBRACE)) { consume(IToken.tRBRACE); try { return createInitializerClause(scope, IASTInitializerClause.Kind.EMPTY, null, null, Collections.EMPTY_LIST, constructInitializers); } catch (Exception e) { logException( "initializerClause_1:createInitializerClause", e); //$NON-NLS-1$ throwBacktrack(t.getOffset()); return null; } } // otherwise it is a list of initializer clauses List initializerClauses = null; int startingOffset = LA(1).getOffset(); for (;;) { IASTInitializerClause clause = initializerClause(scope, constructInitializers); if (clause != null) { if (initializerClauses == null) initializerClauses = new ArrayList(); initializerClauses.add(clause); } if (LT(1) == IToken.tRBRACE) break; consume(IToken.tCOMMA); } consume(IToken.tRBRACE); try { return createInitializerClause(scope, IASTInitializerClause.Kind.INITIALIZER_LIST, null, initializerClauses == null ? Collections.EMPTY_LIST : initializerClauses, Collections.EMPTY_LIST, constructInitializers); } catch (Exception e) { logException("initializerClause_2:createInitializerClause", e); //$NON-NLS-1$ throwBacktrack(startingOffset); return null; } } // if we get this far, it means that we did not // try this now instead // assignmentExpression int startingOffset = LA(1).getOffset(); IASTExpression assignmentExpression = assignmentExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION); try { return createInitializerClause(scope, IASTInitializerClause.Kind.ASSIGNMENT_EXPRESSION, assignmentExpression, null, Collections.EMPTY_LIST, constructInitializers); } catch (Exception e) { logException("initializerClause_3:createInitializerClause", e); //$NON-NLS-1$ throwBacktrack(startingOffset); } throwBacktrack(startingOffset); return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/36ec31dca2ce38ed47d0f35d5d3993c54f09c5ff/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 14729, 7044, 12562, 7044, 12, 45, 9053, 3876, 2146, 16, 1082, 202, 6494, 4872, 4435, 8426, 13, 1216, 4403, 951, 812, 503, 16, 1082, 202, 2711, 4101, 503, 288, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 9053, 14729, 7044, 12562, 7044, 12, 45, 9053, 3876, 2146, 16, 1082, 202, 6494, 4872, 4435, 8426, 13, 1216, 4403, 951, 812, 503, 16, 1082, 202, 2711, 4101, 503, 288, 202, ...
ser.fFeatures.put(Constants.DOM_SPLIT_CDATA, Boolean.TRUE);
ser.fFeatures.put(Constants.DOM_VALIDATE_IF_SCHEMA, Boolean.FALSE);
private void initSerializer(XMLSerializer ser) { ser.fNamespaces = true; ser.fNSBinder = new NamespaceSupport(); ser.fLocalNSBinder = new NamespaceSupport(); ser.fSymbolTable = new SymbolTable(); ser.fFeatures = new Hashtable(); ser.fFeatures.put(Constants.NAMESPACES_FEATURE, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_NORMALIZE_CHARACTERS, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_SPLIT_CDATA, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_VALIDATE, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_ENTITIES, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_WHITESPACE_IN_ELEMENT_CONTENT, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_DISCARD_DEFAULT_CONTENT, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_CANONICAL_FORM, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_FORMAT_PRETTY_PRINT, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_XMLDECL, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_UNKNOWNCHARS, Boolean.TRUE); }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/8eddf8658a4037adbc5f580f1e045a2d978fde56/DOMWriterImpl.java/clean/src/org/apache/xml/serialize/DOMWriterImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 6306, 12, 4201, 6306, 703, 13, 288, 3639, 703, 18, 74, 13180, 273, 638, 31, 3639, 703, 18, 74, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 2042, 3156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 6306, 12, 4201, 6306, 703, 13, 288, 3639, 703, 18, 74, 13180, 273, 638, 31, 3639, 703, 18, 74, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 2042, 3156, ...
return "Unknown tag <" + opTag + ">"; }
return "Unknown tag <" + opTag + ">"; }
public static String toString(int opTag) { if (FIRST_TAG <= opTag && opTag <= LAST_TAG) return opStrings[opTag-FIRST_TAG]; if (opTag<FIRST_TAG) return GeneratedTags.toString(opTag); return "Unknown tag <" + opTag + ">"; }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/113fdf7bac10aba7f608549e2a888798eaf22afd/OperatorTags.java/buggy/src/escjava/trunk/ESCTools/Javafe/java/javafe/ast/OperatorTags.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 1762, 12, 474, 1061, 1805, 13, 288, 377, 309, 261, 15354, 67, 7927, 1648, 1061, 1805, 597, 1061, 1805, 1648, 15612, 67, 7927, 13, 4202, 327, 1061, 7957, 63, 556, 1805, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1762, 12, 474, 1061, 1805, 13, 288, 377, 309, 261, 15354, 67, 7927, 1648, 1061, 1805, 597, 1061, 1805, 1648, 15612, 67, 7927, 13, 4202, 327, 1061, 7957, 63, 556, 1805, 1...
"@Property Long id\n" + "@Property Long version\n" + "@Property String name\n" +
"Long id\n" + "Long version\n" + "String name\n" +
protected void onSetUp() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Thread.currentThread().setContextClassLoader(cl); Class tmpClass = cl.parseClass( "class ScaffoldController {\n" + "@Property boolean scaffold = true" + "}" ); Class tmpClass2 = cl.parseClass( "class Scaffold {\n" + "@Property Long id\n" + "@Property Long version\n" + "@Property String name\n" + "}" ); this.controllerClass = tmpClass; this.domainClass = tmpClass2; //grailsApplication = new DefaultGrailsApplication(,cl); this.localContext = new GenericApplicationContext(super.applicationContext); ConstructorArgumentValues args = new ConstructorArgumentValues(); args.addGenericArgumentValue(new Class[]{ controllerClass, domainClass}); args.addGenericArgumentValue(cl); MutablePropertyValues propValues = new MutablePropertyValues(); BeanDefinition grailsApplicationBean = new RootBeanDefinition(DefaultGrailsApplication.class,args,propValues); localContext.registerBeanDefinition( "grailsApplication", grailsApplicationBean ); this.localContext.refresh(); /*BeanDefinition applicationEventMulticaster = new RootBeanDefinition(SimpleApplicationEventMulticaster.class); context.registerBeanDefinition( "applicationEventMulticaster ", applicationEventMulticaster);*/ this.grailsApplication = (GrailsApplication)localContext.getBean("grailsApplication"); DefaultGrailsDomainConfiguration config = new DefaultGrailsDomainConfiguration(); config.setGrailsApplication(this.grailsApplication); Properties props = new Properties(); props.put("hibernate.connection.username","sa"); props.put("hibernate.connection.password",""); props.put("hibernate.connection.url","jdbc:hsqldb:mem:grailsDB"); props.put("hibernate.connection.driver_class","org.hsqldb.jdbcDriver"); props.put("hibernate.dialect","org.hibernate.dialect.HSQLDialect"); props.put("hibernate.hbm2ddl.auto","create-drop"); config.setProperties(props); //originalClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(cl); this.sessionFactory = config.buildSessionFactory(); assertNotNull(this.sessionFactory); GrailsRuntimeConfigurator rConfig = new GrailsRuntimeConfigurator(grailsApplication,this.localContext); this.appCtx = (ConfigurableApplicationContext)rConfig.configure(new MockServletContext()); assertNotNull(appCtx); GroovyObject domainObject = (GroovyObject)domainClass.newInstance(); domainObject.setProperty("name", "fred"); domainObject.invokeMethod("save", new Object[0]); GroovyObject domainObject2 = (GroovyObject)domainClass.newInstance(); domainObject2.setProperty("name", "wilma"); domainObject2.invokeMethod("save", new Object[0]); super.onSetUp(); }
6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/d93525c713d1d4d77372f926046f0e25c7a36a8f/ControllerScaffoldingTests.java/clean/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ControllerScaffoldingTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 603, 694, 1211, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 927, 273, 394, 20841, 7805, 5621, 202, 202, 3830, 18, 2972, 3830, 7675, 542, 1042, 7805, 12, 830, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 694, 1211, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 927, 273, 394, 20841, 7805, 5621, 202, 202, 3830, 18, 2972, 3830, 7675, 542, 1042, 7805, 12, 830, 1769, ...
return ((Comparable)a).compareTo(b);
return a.compareTo(b);
public int compare(Object a, Object b) { int cmp = bugInstanceClassComparator.compare(a, b); if (cmp != 0) return cmp; return ((Comparable)a).compareTo(b); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/dc23a4411c774f7da54f7de77b96f51b65252702/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 3400, 12, 921, 279, 16, 1033, 324, 13, 288, 5411, 509, 9411, 273, 7934, 1442, 797, 5559, 18, 9877, 12, 69, 16, 324, 1769, 5411, 309, 261, 9625, 480, 374, 13, 7734, 327, 941...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 3400, 12, 921, 279, 16, 1033, 324, 13, 288, 5411, 509, 9411, 273, 7934, 1442, 797, 5559, 18, 9877, 12, 69, 16, 324, 1769, 5411, 309, 261, 9625, 480, 374, 13, 7734, 327, 941...
ValuationPhase oldValuationPhase) { Map<ExecutionPeriod, ExecutionPeriod> oldAndNewExecutionPeriodMap = new HashMap<ExecutionPeriod, ExecutionPeriod>(); for (ExecutionPeriod executionPeriod : oldValuationPhase.getTeacherServiceDistribution().getExecutionPeriods()) { oldAndNewExecutionPeriodMap.put(executionPeriod, executionPeriod); } return oldAndNewExecutionPeriodMap;
ValuationPhase oldValuationPhase) { Map<ExecutionPeriod, ExecutionPeriod> oldAndNewExecutionPeriodMap = new HashMap<ExecutionPeriod, ExecutionPeriod>(); for (ExecutionPeriod executionPeriod : oldValuationPhase.getTeacherServiceDistribution() .getExecutionPeriods()) { oldAndNewExecutionPeriodMap.put(executionPeriod, executionPeriod);
private Map<ExecutionPeriod, ExecutionPeriod> getSimpleExecutionPeriodsTranslationMap( ValuationPhase oldValuationPhase) { Map<ExecutionPeriod, ExecutionPeriod> oldAndNewExecutionPeriodMap = new HashMap<ExecutionPeriod, ExecutionPeriod>(); for (ExecutionPeriod executionPeriod : oldValuationPhase.getTeacherServiceDistribution().getExecutionPeriods()) { oldAndNewExecutionPeriodMap.put(executionPeriod, executionPeriod); } return oldAndNewExecutionPeriodMap; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/a985ac1a24c8a3130973c5a5174de51d9b8412aa/ValuationPhase.java/buggy/src/net/sourceforge/fenixedu/domain/teacherServiceDistribution/ValuationPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1635, 32, 3210, 5027, 16, 8687, 5027, 34, 8120, 3210, 30807, 6717, 863, 12, 1082, 202, 58, 700, 367, 11406, 1592, 58, 700, 367, 11406, 13, 288, 202, 202, 863, 32, 3210, 5027,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 32, 3210, 5027, 16, 8687, 5027, 34, 8120, 3210, 30807, 6717, 863, 12, 1082, 202, 58, 700, 367, 11406, 1592, 58, 700, 367, 11406, 13, 288, 202, 202, 863, 32, 3210, 5027,...
public DOMTestIncompatibleException(Throwable ex,DocumentBuilderSetting setting) { if (ex != null) { msg = ex.toString(); } else { if (setting != null) { msg = setting.toString(); } else { msg = super.toString(); } }
private DOMTestIncompatibleException(String msg) { this.msg = msg;
public DOMTestIncompatibleException(Throwable ex,DocumentBuilderSetting setting) { if (ex != null) { msg = ex.toString(); } else { if (setting != null) { msg = setting.toString(); } else { msg = super.toString(); } } }
54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/DOMTestIncompatibleException.java/buggy/java/org/w3c/domts/DOMTestIncompatibleException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4703, 4709, 24272, 503, 12, 15155, 431, 16, 2519, 1263, 5568, 3637, 13, 288, 565, 309, 261, 338, 480, 446, 13, 288, 3639, 1234, 273, 431, 18, 10492, 5621, 565, 289, 469, 288, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4703, 4709, 24272, 503, 12, 15155, 431, 16, 2519, 1263, 5568, 3637, 13, 288, 565, 309, 261, 338, 480, 446, 13, 288, 3639, 1234, 273, 431, 18, 10492, 5621, 565, 289, 469, 288, 3639...
private void maybeSlowShrink(boolean dontCheck, boolean inStartUp) throws DatabaseException, IOException { Vector wantedKeep = new Vector(); // keep; content is wanted, and is in the right place Vector unwantedIgnore = new Vector(); // ignore; content is not wanted, and is not in the right place Vector wantedMove = new Vector(); // content is wanted, but is in the wrong part of the store Vector unwantedMove = new Vector(); // content is not wanted, but is in the part of the store we will keep Vector alreadyDropped = new Vector(); // any blocks past the end which have already been truncated, but which there are still database blocks pointing to Cursor c = null; Transaction t = null; long newSize = maxChkBlocks; if(chkBlocksInStore < maxChkBlocks) return; chkBlocksInStore = checkForHoles(maxChkBlocks, true); WrapperManager.signalStarting(24*60*60*1000); long realSize = countCHKBlocksFromFile(); System.err.println("Shrinking from "+chkBlocksInStore+" to "+maxChkBlocks+" (from db "+countCHKBlocksFromDatabase()+" from file "+countCHKBlocksFromFile()+")"); try { c = chkDB_accessTime.openCursor(null,null); DatabaseEntry keyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); OperationStatus opStat; opStat = c.getLast(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.err.println("Database is empty (shrinking)."); c.close(); c = null; return; } //Logger.minor(this, "Found first key"); int x = 0; while(true) { StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); //Logger.minor(this, "Found another key ("+(x++)+") ("+storeBlock.offset+")"); long block = storeBlock.offset; if(storeBlock.offset > Integer.MAX_VALUE) { // 2^31 * blockSize; ~ 70TB for CHKs, 2TB for the others System.err.println("Store too big, doing quick shrink"); // memory usage would be insane c.close(); c = null; maybeQuickShrink(false, false); return; } Integer blockNum = new Integer((int)storeBlock.offset); //Long seqNum = new Long(storeBlock.recentlyUsed); //System.out.println("#"+x+" seq "+seqNum+": block "+blockNum); if(blockNum.longValue() >= chkBlocksInStore) { // Truncated already? Logger.minor(this, "Truncated already? "+blockNum.longValue()); alreadyDropped.add(blockNum); } else if(x < newSize) { // Wanted if(block < newSize) { //System.out.println("Keep where it is: block "+blockNum+" seq # "+x+" / "+newSize); wantedKeep.add(blockNum); } else { //System.out.println("Move to where it should go: "+blockNum+" seq # "+x+" / "+newSize); wantedMove.add(blockNum); } } else { // Unwanted if(block < newSize) { //System.out.println("Overwrite: "+blockNum+" seq # "+x+" / "+newSize); unwantedMove.add(blockNum); } else { //System.out.println("Ignore, will be wiped: block "+blockNum+" seq # "+x+" / "+newSize); unwantedIgnore.add(blockNum); } } opStat = c.getPrev(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.out.println("Read store: "+x+" keys."); break; } x++; if(x % 1024 == 0) { System.out.println("Reading store prior to shrink: "+(x*100/chkBlocksInStore)+ "% ( "+x+"/"+chkBlocksInStore+")"); } if(x == Integer.MAX_VALUE) { System.err.println("Key number "+x+" - ignoring store after "+(x*(dataBlockSize+headerBlockSize)+" bytes")); break; } } } finally { if(c != null) c.close(); } Integer[] wantedKeepNums = (Integer[]) wantedKeep.toArray(new Integer[wantedKeep.size()]); Integer[] unwantedIgnoreNums = (Integer[]) unwantedIgnore.toArray(new Integer[unwantedIgnore.size()]); Integer[] wantedMoveNums = (Integer[]) wantedMove.toArray(new Integer[wantedMove.size()]); Integer[] unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); long[] freeEarlySlots = freeBlocks.toArray(); Arrays.sort(wantedKeepNums); Arrays.sort(unwantedIgnoreNums); Arrays.sort(wantedMoveNums); Arrays.sort(unwantedMoveNums); for(int i=0;i<realSize;i++) { Integer ii = new Integer(i); if(Arrays.binarySearch(wantedKeepNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedIgnoreNums, ii) >= 0) continue; if(Arrays.binarySearch(wantedMoveNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedMoveNums, ii) >= 0) continue; unwantedMove.add(ii); } unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); System.err.println("Keys to keep where they are: "+wantedKeepNums.length); System.err.println("Keys which will be wiped anyway: "+unwantedIgnoreNums.length); System.err.println("Keys to move: "+wantedMoveNums.length); System.err.println("Keys to be moved over: "+unwantedMoveNums.length); System.err.println("Free slots to be moved over: "+freeEarlySlots.length); // Now move all the wantedMove blocks onto the corresponding unwantedMove's. byte[] buf = new byte[headerBlockSize + dataBlockSize]; t = null; try { t = environment.beginTransaction(null,null); if(alreadyDropped.size() > 0) { System.err.println("Deleting "+alreadyDropped.size()+" blocks beyond the length of the file"); for(int i=0;i<alreadyDropped.size();i++) { Integer unwantedBlock = (Integer) alreadyDropped.get(i); DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); chkDB_blockNum.delete(t, unwantedBlockEntry); if(i % 1024 == 0) { t.commit(); t = environment.beginTransaction(null,null); } } if(alreadyDropped.size() % 1024 != 0) { t.commit(); t = environment.beginTransaction(null,null); } } for(int i=0;i<wantedMove.size();i++) { Integer wantedBlock = wantedMoveNums[i]; Integer unwantedBlock; // Can we move over an empty slot? if(i < freeEarlySlots.length) { // Don't need to delete old block unwantedBlock = new Integer((int) freeEarlySlots[i]); // will fit in an int } else if(unwantedMoveNums.length + freeEarlySlots.length > i) { unwantedBlock = unwantedMoveNums[i-freeEarlySlots.length]; // Delete unwantedBlock from the store DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); // Delete the old block from the database. chkDB_blockNum.delete(t, unwantedBlockEntry); } else { System.err.println("Keys to move but no keys to move over! Moved "+i); t.commit(); t = null; return; } // Move old data to new location DatabaseEntry wantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(wantedBlock, wantedBlockEntry); long seekTo = wantedBlock.longValue() * (headerBlockSize + dataBlockSize); try { chkStore.seek(seekTo); chkStore.readFully(buf); } catch (EOFException e) { System.err.println("Was reading "+wantedBlock+" to write to "+unwantedBlock); System.err.println(e); e.printStackTrace(); throw e; } seekTo = unwantedBlock.longValue() * (headerBlockSize + dataBlockSize); chkStore.seek(seekTo); chkStore.write(buf); // Update the database w.r.t. the old block. DatabaseEntry routingKeyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); chkDB_blockNum.get(t, wantedBlockEntry, routingKeyDBE, blockDBE, LockMode.RMW); StoreBlock block = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); block.offset = unwantedBlock.longValue(); storeBlockTupleBinding.objectToEntry(block, blockDBE); chkDB.put(t, routingKeyDBE, blockDBE); // Think about committing the transaction. if((i+1) % 2048 == 0) { t.commit(); t = environment.beginTransaction(null,null); System.out.println("Moving blocks: "+(i*100/wantedMove.size())+ "% ( "+i+"/"+wantedMove.size()+")"); } //System.err.println("Moved "+wantedBlock+" to "+unwantedBlock); } System.out.println("Moved all "+wantedMove.size()+" blocks"); if(t != null) { t.commit(); t = null; } } finally { if(t != null) t.abort(); } // If there are any slots left over, they must be free. freeBlocks.clear(); for(long i=wantedMoveNums.length;i<unwantedMoveNums.length;i++) { freeBlocks.add(i); } maybeQuickShrink(false, true); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/c7d89e185f8060750493b680a989e7dc864babcd/BerkeleyDBFreenetStore.java/buggy/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 19133, 28733, 28747, 12, 1075, 790, 464, 1580, 1564, 16, 6494, 267, 1685, 1211, 13, 15069, 4254, 503, 16, 14106, 95, 202, 202, 5018, 25861, 11523, 33, 2704, 5018, 5621, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 19133, 28733, 28747, 12, 1075, 790, 464, 1580, 1564, 16, 6494, 267, 1685, 1211, 13, 15069, 4254, 503, 16, 14106, 95, 202, 202, 5018, 25861, 11523, 33, 2704, 5018, 5621, 7...
SwingUtilities.invokeLater(new Runnable() { public void run() { stageNameLabel.setText(L10N.getLocalString("msg.finishedanalysis_txt","Finishing analysis"));
SwingUtilities.invokeLater(new Runnable() { public void run() { stageNameLabel.setText(L10N.getLocalString("msg.finishedanalysis_txt", "Finishing analysis")); } });
public void finishPerClassAnalysis() { SwingUtilities.invokeLater(new Runnable() { public void run() { stageNameLabel.setText(L10N.getLocalString("msg.finishedanalysis_txt","Finishing analysis")); } }); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/RunAnalysisDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/RunAnalysisDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4076, 2173, 797, 9418, 1435, 288, 202, 565, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 202, 202, 482, 918, 1086, 1435, 288, 1082, 565, 6009, 461, 2224, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4076, 2173, 797, 9418, 1435, 288, 202, 565, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 202, 202, 482, 918, 1086, 1435, 288, 1082, 565, 6009, 461, 2224, 18,...
JPanel panel = new JPanel();
protected JPanel getGeneralConfigPanel(){ JPanel panel = new JPanel(); TitledBorder dasborder; dasborder = BorderFactory.createTitledBorder("general"); JPanel generalConfigForm = new JPanel(); generalConfigForm.setBorder(dasborder); Box v = Box.createVerticalBox(); JTextField txt = new JTextField(" contact DAS-registration server"); txt.setEditable(false); txt.setBorder(BorderFactory.createEmptyBorder()); v.add(txt); String[] freq = { "always","once per day"}; updateBehaveList = new JComboBox(freq) ; updateBehaveList.setEditable(false); updateBehaveList.setMaximumSize(new Dimension(Short.MAX_VALUE,30)); String selectedFreq = config.getUpdateBehave(); int index = 1 ; if (selectedFreq.equals("always")) index = 0 ; updateBehaveList.setSelectedIndex(index); v.add(updateBehaveList); JButton contactRegistryNow = new JButton ("Now"); ConfigActionListener cal = new ConfigActionListener(spice,config,this); contactRegistryNow.addActionListener(cal); Box h = Box.createHorizontalBox(); JTextField txt2 = new JTextField("detect available servers") ; txt2.setEditable(false); txt2.setBorder(BorderFactory.createEmptyBorder()); h.add(txt2); h.add(contactRegistryNow); v.add(h); // config which registry to use. JTextField regdesc = new JTextField("use registry"); regdesc.setEditable(false); regdesc.setBorder(BorderFactory.createEmptyBorder()); v.add(regdesc); JTextField registry = new JTextField(config.getRegistryUrl().toString()); v.add(registry); // configure window behaviour. JTextField jmoldesc = new JTextField("position of Jmol - 3D structure window"); jmoldesc.setEditable(false); jmoldesc.setBorder(BorderFactory.createEmptyBorder()); v.add(jmoldesc); String[] windowPosition = {"top", "right","left","bottom"}; JComboBox windowlayout = new JComboBox(windowPosition); v.add(windowlayout); generalConfigForm.add(v); //generalConfigForm.add(contactRegistryNow); return generalConfigForm; }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/64d6eb33a490ec8423376a20d451a209c2004242/ConfigGui.java/clean/src/org/biojava/spice/Config/ConfigGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 24048, 336, 12580, 809, 5537, 1435, 95, 13491, 399, 305, 1259, 8107, 30255, 8815, 31, 3639, 30255, 8815, 273, 13525, 1733, 18, 2640, 56, 305, 1259, 8107, 2932, 12259, 8863, 7734, 2404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24048, 336, 12580, 809, 5537, 1435, 95, 13491, 399, 305, 1259, 8107, 30255, 8815, 31, 3639, 30255, 8815, 273, 13525, 1733, 18, 2640, 56, 305, 1259, 8107, 2932, 12259, 8863, 7734, 2404...
{ char c = readCh (); if (isWhitespace (c)) { skipWhitespace (); } else { error ("whitespace required", c, null); } }
{ char c = readCh(); if (isWhitespace(c)) { skipWhitespace(); } else { error("whitespace required", c, null); } }
private void requireWhitespace () throws SAXException, IOException { char c = readCh (); if (isWhitespace (c)) { skipWhitespace (); } else { error ("whitespace required", c, null); } }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2583, 9431, 1832, 565, 1216, 14366, 16, 1860, 565, 288, 202, 3001, 276, 273, 855, 782, 261, 1769, 202, 430, 261, 291, 9431, 261, 71, 3719, 288, 202, 565, 2488, 9431, 261, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2583, 9431, 1832, 565, 1216, 14366, 16, 1860, 565, 288, 202, 3001, 276, 273, 855, 782, 261, 1769, 202, 430, 261, 291, 9431, 261, 71, 3719, 288, 202, 565, 2488, 9431, 261, 176...
public void beginGroup(int index)
public void beginGroup(String typeName, Object type)
public void beginGroup(int index) { ensureSpace(3 + 1 + 7); gapEnd -= 7; data[gapStart++] = BEGIN_GROUP_LONG; setIntN(gapStart, gapEnd - data.length); // end_offset gapStart += 2; data[gapEnd] = END_GROUP_LONG; setIntN(gapEnd + 1, index); // begin_offset setIntN(gapEnd + 3, gapStart - 3); // begin_offset setIntN(gapEnd + 5, currentBeginGroup); // parent_offset currentBeginGroup = gapStart - 3; data[--gapEnd] = END_ATTRIBUTES; }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/73c163c9d937b791d1a320569c0c531bbb2b0173/TreeList.java/buggy/gnu/lists/TreeList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2376, 1114, 12, 780, 8173, 16, 1033, 618, 13, 225, 288, 565, 3387, 3819, 12, 23, 397, 404, 397, 2371, 1769, 565, 9300, 1638, 3947, 2371, 31, 565, 501, 63, 14048, 1685, 9904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2376, 1114, 12, 780, 8173, 16, 1033, 618, 13, 225, 288, 565, 3387, 3819, 12, 23, 397, 404, 397, 2371, 1769, 565, 9300, 1638, 3947, 2371, 31, 565, 501, 63, 14048, 1685, 9904, ...
out.println ("<input type=hidden name=\"action\" value=\"addTab\">");
out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=hidden name=\"action\" value=\"addColumn\">");
public void writePersonalizeLayoutPage (HttpServletRequest req, HttpServletResponse res, JspWriter out) { try { // Hard coded for now, but eventually // retrieve available channels from database Vector vChannels = new Vector (); vChannels.addElement ("ABC News"); vChannels.addElement ("My Bookmarks"); vChannels.addElement ("Horoscope"); vChannels.addElement ("My Applications"); vChannels.addElement ("Page Renderer"); vChannels.addElement ("Scoreboard"); vChannels.addElement ("Search"); vChannels.addElement ("Weather"); // List available channels out.println ("<table border=0 width=100% cellspacing=0 cellpadding=0>"); out.println ("<tr bgcolor=#dddddd>"); out.println ("<td>"); for (int i = 0; i < vChannels.size () / 2; i++) out.println ("<input type=checkbox name=\"channel" + i + "\">" + (String) vChannels.elementAt (i) + "<br>"); out.println ("</td>"); out.println ("<td>"); for (int i = vChannels.size () / 2 + 1; i < vChannels.size (); i++) out.println ("<input type=checkbox name=\"channel" + i + "\">" + (String) vChannels.elementAt (i) + "<br>"); out.println ("</td>"); out.println ("</tr>"); out.println ("</table><br>"); IXml layoutXml = getLayoutXml (req, getUserName (req)); ILayout layout = (ILayout) layoutXml.getRoot (); // Get Tabs ITab[] tabs = layout.getTabs (); // Add new channels out.println ("<input type=submit name=\"\" value=\"Add\">"); out.println ("checked channels to Tab "); out.println ("<select name=\"tab\">"); for (int iTab = 0; iTab < tabs.length; iTab++) out.println ("<option>" + (iTab + 1) + "</option>"); out.println ("</select>"); out.println ("Column "); out.println ("<select name=\"column\">"); // Find the max number of columns in any tab int iMaxCol = 0; for (int iTab = 0; iTab < tabs.length; iTab++) { IColumn[] columns = tabs[iTab].getColumns (); for (int iCol = 1; iCol <= columns.length; iCol++) { if (iCol > iMaxCol) iMaxCol = iCol; } } for (int iCol = 0; iCol < iMaxCol; iCol++) out.println ("<option>" + (iCol + 1) + "</option>"); out.println ("</select>"); out.println ("<hr noshade>"); // Add a new tab out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("<input type=hidden name=\"action\" value=\"addTab\">"); out.println ("<input type=submit name=\"submit\" value=\"Add\">"); out.println ("new tab"); out.println ("<select name=\"tab\">"); for (int iTab = 0; iTab < tabs.length; iTab++) out.println ("<option value=\"" + iTab + "\">before tab " + (iTab + 1) + "</option>"); out.println ("<option value=\"" + tabs.length + "\" selected>at the end</option>"); out.println ("</select>"); out.println ("</form>"); out.println ("<hr noshade>"); String sTabName = null; for (int iTab = 0; iTab < tabs.length; iTab++) { sTabName = tabs[iTab].getAttribute ("name"); out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("Tab " + (iTab + 1) +": "); // Rename tab out.println ("<input type=hidden name=\"action\" value=\"renameTab\">"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=text name=\"tabName\" value=\"" + sTabName + "\">"); out.println ("<input type=submit name=\"submit\" value=\"Rename\">"); // Move tab down if (iTab < tabs.length - 1) { out.println ("<a href=\"personalizeLayout.jsp?action=moveTabDown&tab=" + iTab + "\">"); out.println ("<img src=\"images/down.gif\" border=0 alt=\"Move tab down\"></a>"); } // Remove tab out.println ("<a href=\"personalizeLayout.jsp?action=removeTab&tab=" + iTab + "\">"); out.println ("<img src=\"images/remove.gif\" border=0 alt=\"Remove tab\"></a>"); // Move tab up if (iTab > 0) { out.println ("<a href=\"personalizeLayout.jsp?action=moveTabUp&tab=" + iTab + "\">"); out.println ("<img src=\"images/up.gif\" border=0 alt=\"Move tab up\"></a>"); } // Set tab as default int iDefaultTab; try { iDefaultTab = Integer.parseInt (layout.getActiveTabAttribute ()); } catch (NumberFormatException ne) { iDefaultTab = 0; } out.println ("<input type=radio name=\"defaultTab\" onClick=\"location='personalizeLayout.jsp?action=setDefaultTab&tab=" + iTab + "'\"" + (iDefaultTab == iTab ? " checked" : "") + ">Set as default"); out.println ("</form>"); // Get the columns for this tab IColumn[] columns = tabs[iTab].getColumns (); // Fill columns with channels out.println ("<table border=0 cellpadding=3 cellspacing=3>"); out.println ("<tr bgcolor=#dddddd>"); for (int iCol = 0; iCol < columns.length; iCol++) { out.println ("<td>"); out.println ("Column " + (iCol + 1)); // Move column left if (iCol > 0) { out.println ("<a href=\"personalizeLayout.jsp?action=moveColumnLeft&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/left.gif\" border=0 alt=\"Move column left\"></a>"); } // Remove column out.println ("<a href=\"personalizeLayout.jsp?action=removeColumn&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/remove.gif\" border=0 alt=\"Remove column\"></a>"); // Move column right if (iCol < columns.length - 1) { out.println ("<a href=\"personalizeLayout.jsp?action=moveColumnRight&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/right.gif\" border=0 alt=\"Move column right\"></a>"); } // Column width String sWidth = columns[iCol].getAttribute ("width"); String sDisplayWidth = sWidth; if (sWidth.endsWith ("%")) sDisplayWidth = sWidth.substring(0, sWidth.length () - 1); out.println ("<br>"); out.println ("Width "); out.println ("<input type=text name=\"\" value=\"" + sDisplayWidth + "\" size=4>"); out.println ("<select name=\"\">"); out.println ("<option" + (sWidth.endsWith ("%") ? "" : " selected") + ">Pixels</option>"); out.println ("<option" + (sWidth.endsWith ("%") ? " selected" : "") + ">%</option>"); out.println ("</select>"); out.println ("<hr noshade>"); out.println ("<form name=\"channels" + iTab + "_" + iCol + "\" action=\"personalizeLayout.jsp\" method=post>"); out.println ("<table><tr>"); out.println ("<td>"); out.println ("<select name=\"channel\" size=10>"); // Get the channels for this column org.jasig.portal.layout.IChannel[] channels = columns[iCol].getChannels (); // List channels for this column for (int iChan = 0; iChan < channels.length; iChan++) { org.jasig.portal.IChannel ch = getChannelInstance (channels[iChan]); out.println ("<option value=\"" + iChan + "\">" + ch.getName () + "</option>"); } out.println ("</select>"); out.println ("</td>"); out.println ("<td>"); // Move channel up out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'moveChannelUp')\"><img src=\"images/up.gif\" border=0 alt=\"Move channel up\"></a><br><br>"); // Remove channel out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'removeChannel')\"><img src=\"images/remove.gif\" border=0 alt=\"Remove channel\"></a><br><br>"); // Move channel down out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'moveChannelDown')\"><img src=\"images/down.gif\" border=0 alt=\"Move channel down\"></a>"); out.println ("</td>"); out.println ("</tr></table>"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=hidden name=\"column\" value=\"" + iCol + "\">"); out.println ("<input type=hidden name=\"action\" value=\"none\">"); out.println ("</form>"); out.println ("</td>"); } out.println ("</tr>"); out.println ("</table>"); // Add a new column for this tab out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=hidden name=\"action\" value=\"addColumn\">"); out.println ("<input type=submit name=\"submit\" value=\"Add\">"); out.println ("new column"); out.println ("<select name=\"column\">"); for (int iCol = 0; iCol < columns.length; iCol++) out.println ("<option value=" + iCol + ">before column " + (iCol + 1) + "</option>"); out.println ("<option value=" + columns.length + "selected>at the end</option>"); out.println ("</select>"); out.println ("</form>"); out.println ("<br><br>"); out.println ("<hr noshade>"); } // end for Tabs } catch (Exception e) { e.printStackTrace (); } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/19685c69ecbd64f2210f66111757e2523bc3ef28/LayoutBean.java/clean/source/org/jasig/portal/LayoutBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 8346, 287, 554, 3744, 1964, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 19300, 2289, 596, 13, 225, 288, 3639, 775, 377, 288, 4202, 368, 670, 1060, 29512, 364, 2037, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8346, 287, 554, 3744, 1964, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 19300, 2289, 596, 13, 225, 288, 3639, 775, 377, 288, 4202, 368, 670, 1060, 29512, 364, 2037, 16, ...
jjstateSet[jjnewStateCnt++] = 20; break; case 24:
jjCheckNAdd(30); break; case 39:
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 49) kind = 49; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(43, 45); break; case 19: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 20: if (curChar == 10 && kind > 46) kind = 46; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); break; case 25: if ((0x2400L & l) != 0L && kind > 49) kind = 49; break; case 26: if (curChar == 10 && kind > 49) kind = 49; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(46, 49); if (curChar == 101) jjAddStates(50, 51); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 49) kind = 49; jjAddStates(40, 42); } break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(46, 49); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(52, 53); break; case 16: if (curChar == 101) jjAddStates(50, 51); break; case 17: if (curChar != 100) break; if (kind > 46) kind = 46; jjAddStates(43, 45); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/8e9e155e88430402b0d51d6b344267b73292ca2c/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 24, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 24, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
protected void processPacket(Packet packet) throws Exception {
protected void processPacket(SendPacket packet) throws Exception {
private void initThreads() { Runnable receiverRunnable = new Runnable() { public void run() { while (receiver == Thread.currentThread()) { INetworkPacket np=null; try { np = readNetworkPacket(); if (np != null) { processPacket(np); } } catch (Exception e) { e.printStackTrace(); reportReceiveException(e); close(); } } } protected void processPacket(INetworkPacket np) throws Exception { PacketMarshaller pm = marshallerFactory.getMarshaller(np.getMarshallingType()); megamek.debug.Assert.assertTrue(pm != null, "Unknown marshalling type"); Packet packet = null; byte[] data = np.getData(); bytesReceived += data.length; ByteArrayInputStream bis = new ByteArrayInputStream(data); InputStream in; if (np.isCompressed()) { in = new GZIPInputStream(bis); } else { in = bis; } packet = pm.unmarshall(in); if (packet != null) { debugLastFewCommandsReceived.push(packet.getCommand()); processConnectionEvent(new PacketReceivedEvent(Connection.this, packet)); } } }; receiver = new Thread(receiverRunnable, "Packet Receiver (" + getId() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ Runnable senderRunable = new Runnable() { public void run() { while (sender == Thread.currentThread()) { Packet packet = sendQueue.getPacket(); if (packet != null) { try { processPacket(packet); }catch (Exception e) { reportSendException(e, packet); close(); } } } } protected void processPacket(Packet packet) throws Exception { sendNow(packet); } }; sender = new Thread(senderRunable, "Packet Sender (" + getId() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ receiver.start(); sender.start(); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/4bf1f51f4a256abd27dcedae1644dc0ce4102eab/Connection.java/buggy/megamek/src/megamek/common/net/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 13233, 1435, 288, 3639, 10254, 5971, 20013, 273, 394, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 1323, 261, 24454, 422, 4884, 18, 2972, 3830, 10756, 288, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 13233, 1435, 288, 3639, 10254, 5971, 20013, 273, 394, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 1323, 261, 24454, 422, 4884, 18, 2972, 3830, 10756, 288, 107...
throw new ArtifactHandlerNotFoundException( "Artifact handler for type '" + type + "' cannot be found." );
throw new ArtifactHandlerNotFoundException( "Artifact handler for type '" + type + "' cannot be found." );
public ArtifactHandler getArtifactHandler( String type ) throws ArtifactHandlerNotFoundException { ArtifactHandler handler = (ArtifactHandler) artifactHandlers.get( type ); if ( handler == null ) { throw new ArtifactHandlerNotFoundException( "Artifact handler for type '" + type + "' cannot be found." ); } return handler; }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/a949eb66dedc63459e4897d50c37374814750c66/DefaultArtifactHandlerManager.java/clean/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14022, 1503, 24957, 1503, 12, 514, 618, 262, 3639, 1216, 14022, 1503, 3990, 565, 288, 3639, 14022, 1503, 1838, 273, 261, 7581, 1503, 13, 6462, 6919, 18, 588, 12, 618, 11272, 3639, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14022, 1503, 24957, 1503, 12, 514, 618, 262, 3639, 1216, 14022, 1503, 3990, 565, 288, 3639, 14022, 1503, 1838, 273, 261, 7581, 1503, 13, 6462, 6919, 18, 588, 12, 618, 11272, 3639, 3...
if (!currentResource.getParent().equals(firstParent)) return false;
if (!currentResource.getParent().equals(firstParent)) { return false; }
protected boolean updateSelection(IStructuredSelection selection) { if (!super.updateSelection(selection)) return false; if (getSelectedNonResources().size() > 0) return false; List selectedResources = getSelectedResources(); if (selectedResources.size() == 0) return false; boolean projSelected = selectionIsOfType(IResource.PROJECT); boolean fileFoldersSelected = selectionIsOfType(IResource.FILE | IResource.FOLDER); if (!projSelected && !fileFoldersSelected) return false; // selection must be homogeneous if (projSelected && fileFoldersSelected) return false; // must have a common parent IContainer firstParent = ((IResource) selectedResources.get(0)) .getParent(); if (firstParent == null) return false; Iterator resourcesEnum = selectedResources.iterator(); while (resourcesEnum.hasNext()) { IResource currentResource = (IResource) resourcesEnum.next(); if (!currentResource.getParent().equals(firstParent)) return false; // resource location must exist if (currentResource.getLocation() == null) return false; } return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3a23c3b9bac4db696a0452560047155775a707b7/CopyAction.java/clean/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1089, 6233, 12, 45, 30733, 6233, 4421, 13, 288, 3639, 309, 16051, 9565, 18, 2725, 6233, 12, 10705, 3719, 5411, 327, 629, 31, 3639, 309, 261, 588, 7416, 3989, 3805, 7675, 1467,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1089, 6233, 12, 45, 30733, 6233, 4421, 13, 288, 3639, 309, 16051, 9565, 18, 2725, 6233, 12, 10705, 3719, 5411, 327, 629, 31, 3639, 309, 261, 588, 7416, 3989, 3805, 7675, 1467,...
final String appearanceValue = elementAttributes.getValue("appearance"); final String appearanceLocalname = (appearanceValue == null) ? null : XMLUtils.localNameFromQName(appearanceValue); final String appearanceURI = (appearanceValue == null) ? null : uriFromQName(appearanceValue); final String mediaType = controlInfo.getMediaTypeAttribute(); final boolean isHTML = appearanceValue != null && XFormsConstants.XXFORMS_NAMESPACE_URI.equals(appearanceURI) && "html".equals(appearanceLocalname); isImage = mediaType != null && mediaType.startsWith("image/");
public void end(String uri, String localname, String qName) throws SAXException { final ContentHandler contentHandler = handlerContext.getController().getOutput(); final String effectiveId = handlerContext.getEffectiveId(elementAttributes); final XFormsControls.OutputControlInfo controlInfo = handlerContext.isGenerateTemplate() ? null : (XFormsControls.OutputControlInfo) containingDocument.getObjectById(pipelineContext, effectiveId); // xforms:label handleLabelHintHelpAlert(effectiveId, "label", controlInfo); final AttributesImpl newAttributes; final boolean isImage; final boolean isDateOrTime; final StringBuffer classes = new StringBuffer("xforms-control xforms-output"); if (!handlerContext.isGenerateTemplate()) { final String appearanceValue = elementAttributes.getValue("appearance"); final String appearanceLocalname = (appearanceValue == null) ? null : XMLUtils.localNameFromQName(appearanceValue); final String appearanceURI = (appearanceValue == null) ? null : uriFromQName(appearanceValue); final String mediaType = controlInfo.getMediaTypeAttribute(); final boolean isHTML = appearanceValue != null && XFormsConstants.XXFORMS_NAMESPACE_URI.equals(appearanceURI) && "html".equals(appearanceLocalname); isImage = mediaType != null && mediaType.startsWith("image/"); // Find classes to add if (isHTML) { classes.append(" xforms-output-html"); } else if (isImage) { classes.append(" xforms-output-image"); } isDateOrTime = isDateOrTime(controlInfo.getType()); if (isDateOrTime) { classes.append(" xforms-date"); } handleReadOnlyClass(classes, controlInfo); handleRelevantClass(classes, controlInfo); newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); handleReadOnlyAttribute(newAttributes, controlInfo); } else { isImage = false; isDateOrTime = false; // Find classes to add newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } // Create xhtml:span final String xhtmlPrefix = handlerContext.findXHTMLPrefix(); final String spanQName = XMLUtils.buildQName(xhtmlPrefix, "span"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, newAttributes); if (!handlerContext.isGenerateTemplate()) { if (isImage) { // Case of image media type with URI final String imgQName = XMLUtils.buildQName(xhtmlPrefix, "img"); final AttributesImpl imgAttributes = new AttributesImpl(); // @src="..." imgAttributes.addAttribute("", "src", "src", ContentHandlerHelper.CDATA, controlInfo.getValue()); // @f:url-norewrite="true" final String formattingPrefix; final boolean isNewPrefix; { final String existingFormattingPrefix = handlerContext.findFormattingPrefix(); if (existingFormattingPrefix == null || "".equals(existingFormattingPrefix)) { // No prefix is currently mapped formattingPrefix = handlerContext.findNewPrefix(); isNewPrefix = true; } else { formattingPrefix = existingFormattingPrefix; isNewPrefix = false; } imgAttributes.addAttribute(XMLConstants.OPS_FORMATTING_URI, "url-norewrite", XMLUtils.buildQName(formattingPrefix, "url-norewrite"), ContentHandlerHelper.CDATA, "true"); } if (isNewPrefix) contentHandler.startPrefixMapping(formattingPrefix, XMLConstants.OPS_FORMATTING_URI); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName, imgAttributes); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName); if (isNewPrefix) contentHandler.endPrefixMapping(formattingPrefix); } else if (isDateOrTime) { // Display formatted value for dates final String displayValue = controlInfo.getDisplayValue(); contentHandler.characters(displayValue.toCharArray(), 0, displayValue.length()); } else { // Regular text case final String value = controlInfo.getValue(); if (value != null) contentHandler.characters(value.toCharArray(), 0, value.length()); } } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); // xforms:help handleLabelHintHelpAlert(effectiveId, "help", controlInfo); // xforms:hint handleLabelHintHelpAlert(effectiveId, "hint", controlInfo); }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/be5df06f28b202fc38cd73bf04037c0ca691a9d6/XFormsOutputHandler.java/buggy/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsOutputHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
int start = getLineStartOffset(line); int end = getLineEndOffset(line);
buffer.getLineText(caretLine,lineSegment); int start = getLineStartOffset(caretLine); int end = getLineEndOffset(caretLine);
private boolean doWordWrap(int line, boolean spaceInserted) { if(!hardWrap || maxLineLen <= 0) return false; int start = getLineStartOffset(line); int end = getLineEndOffset(line); int len = end - start - 1; // don't wrap unless we're at the end of the line if(getCaretPosition() != end - 1) return false; boolean returnValue = false; int tabSize = buffer.getTabSize(); String wordBreakChars = buffer.getStringProperty("wordBreakChars"); buffer.getLineText(line,lineSegment); int lineStart = lineSegment.offset; int logicalLength = 0; // length with tabs expanded int lastWordOffset = -1; boolean lastWasSpace = true; boolean initialWhiteSpace = true; int initialWhiteSpaceLength = 0; for(int i = 0; i < len; i++) { char ch = lineSegment.array[lineStart + i]; if(ch == '\t') { if(initialWhiteSpace) initialWhiteSpaceLength = i + 1; logicalLength += tabSize - (logicalLength % tabSize); if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else if(ch == ' ') { if(initialWhiteSpace) initialWhiteSpaceLength = i + 1; logicalLength++; if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else if(wordBreakChars != null && wordBreakChars.indexOf(ch) != -1) { initialWhiteSpace = false; logicalLength++; if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else { initialWhiteSpace = false; logicalLength++; lastWasSpace = false; } int insertNewLineAt; if(spaceInserted && logicalLength == maxLineLen && i == len - 1) { insertNewLineAt = end - 1; returnValue = true; } else if(logicalLength >= maxLineLen && lastWordOffset != -1) insertNewLineAt = lastWordOffset + start; else continue; try { buffer.beginCompoundEdit(); buffer.insert(insertNewLineAt,"\n"); buffer.indentLine(line + 1,true,true); } finally { buffer.endCompoundEdit(); } /* only ever return true if space was pressed * with logicalLength == maxLineLen */ return returnValue; } return false; } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/760913f735df094c2b0efdfb3cc7cf70013592b1/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 741, 3944, 2964, 12, 474, 980, 16, 1250, 3476, 27329, 13, 202, 95, 202, 202, 430, 12, 5, 20379, 2964, 747, 943, 1670, 2891, 1648, 374, 13, 1082, 202, 2463, 629, 31, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 741, 3944, 2964, 12, 474, 980, 16, 1250, 3476, 27329, 13, 202, 95, 202, 202, 430, 12, 5, 20379, 2964, 747, 943, 1670, 2891, 1648, 374, 13, 1082, 202, 2463, 629, 31, 2...
} else
} else
public void partitionPartners(Atom atom, AtomContainer unplacedPartners, AtomContainer placedPartners) { Atom[] atoms = molecule.getConnectedAtoms(atom); for (int i = 0; i < atoms.length; i++) { if (atoms[i].getFlag(CDKConstants.ISPLACED)) { placedPartners.addAtom(atoms[i]); } else { unplacedPartners.addAtom(atoms[i]); } } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/9f992723c3f44cadad1a2525a16a572d7af62f39/AtomPlacer.java/clean/src/org/openscience/cdk/layout/AtomPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3590, 1988, 9646, 12, 3641, 3179, 16, 7149, 2170, 640, 28238, 1988, 9646, 16, 7149, 2170, 15235, 1988, 9646, 13, 202, 95, 202, 202, 3641, 8526, 9006, 273, 13661, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3590, 1988, 9646, 12, 3641, 3179, 16, 7149, 2170, 640, 28238, 1988, 9646, 16, 7149, 2170, 15235, 1988, 9646, 13, 202, 95, 202, 202, 3641, 8526, 9006, 273, 13661, 18, 588, ...
if( executable == null || executable.length() == 0 )
if( executable == null || executable.length() == 0 ) {
public void setExecutable( final String executable ) { if( executable == null || executable.length() == 0 ) return; m_executable = executable.replace( '/', File.separatorChar ) .replace( '\\', File.separatorChar ); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8ce1de2178a0422105fa437c327b49fb5637ff28/Commandline.java/clean/proposal/myrmidon/src/main/org/apache/tools/ant/types/Commandline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 17709, 12, 727, 514, 9070, 262, 565, 288, 3639, 309, 12, 9070, 422, 446, 747, 9070, 18, 2469, 1435, 422, 374, 262, 288, 5411, 327, 31, 3639, 312, 67, 17751, 273, 9070, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 17709, 12, 727, 514, 9070, 262, 565, 288, 3639, 309, 12, 9070, 422, 446, 747, 9070, 18, 2469, 1435, 422, 374, 262, 288, 5411, 327, 31, 3639, 312, 67, 17751, 273, 9070, ...
} else if (this.inStream != null) { if (this.inStream != System.in) {
} else if ( this.inStream != null ) { if ( this.inStream != System.in ) {
public void close() throws IOException { if (this.debug) { System.err.println("TarBuffer.closeBuffer()."); } if (this.outStream != null) { this.flushBlock(); if (this.outStream != System.out && this.outStream != System.err) { this.outStream.close(); this.outStream = null; } } else if (this.inStream != null) { if (this.inStream != System.in) { this.inStream.close(); this.inStream = null; } } }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/TarBuffer.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 20464, 1892, 18, 4412, 1892, 1435, 1199, 1769, 3639, 289, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1435, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 20464, 1892, 18, 4412, 1892, 1435, 1199, 1769, 3639, 289, 3639, 309, ...
public void mT36() throws RecognitionException { int T36_StartIndex = input.index(); try { int type = T36; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 22) ) { return ; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:27:7: ( 'no-loop' ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:27:7: 'no-loop' { match("no-loop"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 22, T36_StartIndex); } } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 5718, 1435, 1216, 9539, 288, 3639, 509, 399, 5718, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 399, 5718, 31, 5411, 509, 787, 273, 23577, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21115, 5718, 1435, 1216, 9539, 288, 3639, 509, 399, 5718, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 399, 5718, 31, 5411, 509, 787, 273, 23577, ...
break _loop34;
break _loop658;
public final void codeRef() throws RecognitionException, TokenStreamException { Token name = null; Token a = null; Token b = null; Token c = null; Token d = null; try { // for error handling match(CODE_REF); name = LT(1); match(ADR); addVar("Code->"+name.getText()," ");setVal(name.getText(),"CodeRef");printConsole("++++CODEREF:"+name.getText()+"\n"); match(NL); match(INDENT_START); match(REF_SYMB); { switch ( LA(1)) { case MODULE_NAME: { a = LT(1); match(MODULE_NAME); appendVal(a.getText()); break; } case NUMBER: case NL: case ADR: case PURE_NAME: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { _loop34: do { switch ( LA(1)) { case PURE_NAME: { { b = LT(1); match(PURE_NAME); appendVal(b.getText()); } break; } case NUMBER: { { c = LT(1); match(NUMBER); appendVal(c.getText()); } break; } case ADR: { { d = LT(1); match(ADR); appendVal(d.getText()); } break; } default: { break _loop34; } } } while (true); } match(NL); finalizeVar();printConsole("----CodeREF:"+name.getText()+"\n"); match(INDENT_END); } catch (RecognitionException ex) { reportError(ex); consume(); consumeUntil(_tokenSet_5); } }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4179c9f6d0a36bc8b8ca5cdef30d4178930114cd/PerlParserSimple.java/buggy/org.epic.debug/src/org/epic/debug/varparser/PerlParserSimple.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 981, 1957, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 1345, 225, 508, 273, 446, 31, 202, 202, 1345, 225, 279, 273, 446, 31, 202, 202, 1345, 225, 324, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 981, 1957, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 1345, 225, 508, 273, 446, 31, 202, 202, 1345, 225, 279, 273, 446, 31, 202, 202, 1345, 225, 324, 2...
String iconPath = "icons/full/"; try { AbstractUIPlugin plugin = (AbstractUIPlugin) Platform .getPlugin(PlatformUI.PLUGIN_ID); URL installURL = plugin.getDescriptor().getInstallURL(); URL url = new URL(installURL, iconPath + relativePath); return ImageDescriptor.createFromURL(url); } catch (MalformedURLException e) { return null; }
return WorkbenchImages.getWorkbenchImageDescriptor(relativePath);
private ImageDescriptor getImageDescriptor(String relativePath) { String iconPath = "icons/full/";//$NON-NLS-1$ try { AbstractUIPlugin plugin = (AbstractUIPlugin) Platform .getPlugin(PlatformUI.PLUGIN_ID); URL installURL = plugin.getDescriptor().getInstallURL(); URL url = new URL(installURL, iconPath + relativePath); return ImageDescriptor.createFromURL(url); } catch (MalformedURLException e) { // Should not happen return null; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8fd0f2b4fd47f07d36004083215b102b7c5bcc8b/FileSystemExportWizard.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileSystemExportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3421, 3187, 10567, 3187, 12, 780, 12820, 13, 288, 3639, 514, 4126, 743, 273, 315, 14516, 19, 2854, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 3639, 775, 288, 5411, 4115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3421, 3187, 10567, 3187, 12, 780, 12820, 13, 288, 3639, 514, 4126, 743, 273, 315, 14516, 19, 2854, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 3639, 775, 288, 5411, 4115, ...
changeState( CDebugElementState.SUSPENDING );
final CDebugElementState newState = CDebugElementState.SUSPENDING; changeState( newState );
public void suspend() throws DebugException { if ( !canSuspend() ) return; changeState( CDebugElementState.SUSPENDING ); try { getCDITarget().suspend(); } catch( CDIException e ) { restoreOldState(); targetRequestFailed( e.getMessage(), null ); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4dda6937d9079ae47697952e11a7229f5f5b3791/CDebugTarget.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20413, 1435, 1216, 4015, 503, 288, 202, 202, 430, 261, 401, 4169, 55, 18815, 1435, 262, 1082, 202, 2463, 31, 202, 202, 3427, 1119, 12, 385, 2829, 1046, 1119, 18, 6639, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20413, 1435, 1216, 4015, 503, 288, 202, 202, 430, 261, 401, 4169, 55, 18815, 1435, 262, 1082, 202, 2463, 31, 202, 202, 3427, 1119, 12, 385, 2829, 1046, 1119, 18, 6639, 31...
private String content_ = IOUtils.toString(method.getResponseBodyAsStream(), getContentCharSet());
private String content_ = content; private String contentCharSet_ = contentCharSet;
private WebResponse makeWebResponse( final int statusCode, final HttpMethod method, final URL originatingURL, final long loadTime ) throws IOException { return new WebResponse() { private String content_ = IOUtils.toString(method.getResponseBodyAsStream(), getContentCharSet()); public int getStatusCode() { return statusCode; } public String getStatusMessage() { String message = method.getStatusText(); if( message == null || message.length() == 0 ) { message = HttpStatus.getStatusText( statusCode ); } if( message == null ) { message = "Unknown status code"; } return message; } public String getContentType() { final Header contentTypeHeader = method.getResponseHeader( "content-type" ); if( contentTypeHeader == null ) { // Not technically legal but some servers don't return a content-type return ""; } final String contentTypeHeaderLine = contentTypeHeader.getValue(); final int index = contentTypeHeaderLine.indexOf( ';' ); if( index == -1 ) { return contentTypeHeaderLine; } else { return contentTypeHeaderLine.substring( 0, index ); } } public String getContentAsString() { return content_; } public InputStream getContentAsStream() { return new ByteArrayInputStream(getResponseBody()); } public URL getUrl() { return originatingURL; } public String getResponseHeaderValue( final String headerName ) { final Header header = method.getResponseHeader(headerName); if( header == null ) { return null; } else { return header.getValue(); } } public long getLoadTimeInMilliSeconds() { return loadTime; } public String getContentCharSet(){ if( method instanceof HttpMethodBase ){ return ((HttpMethodBase)method).getResponseCharSet(); } else { return "ISO-8859-1"; } } public byte [] getResponseBody() { try { return content_.getBytes(getContentCharSet()); } catch (final UnsupportedEncodingException e) { // should never occur throw new RuntimeException(e); } } }; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/e19ce3a44dd60780bd582bfe20fbda6df961b020/HttpWebConnection.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2999, 1064, 1221, 4079, 1064, 12, 3639, 727, 509, 6593, 16, 727, 17069, 707, 16, 727, 1976, 4026, 1776, 1785, 16, 727, 1525, 1262, 950, 262, 540, 1216, 1860, 288, 3639, 327, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2999, 1064, 1221, 4079, 1064, 12, 3639, 727, 509, 6593, 16, 727, 17069, 707, 16, 727, 1976, 4026, 1776, 1785, 16, 727, 1525, 1262, 950, 262, 540, 1216, 1860, 288, 3639, 327, 394, ...
private void performFileImport(IProgressMonitor monitor,IContainer target, String filePath) { File toImport = new File(filePath); if (target.getLocation().equals(toImport)) return; IOverwriteQuery query = new IOverwriteQuery() { public String queryOverwrite(String pathString) { if (alwaysOverwrite) return ALL; final String returnCode[] = {CANCEL}; final String msg = WorkbenchMessages.format("CopyFilesAndFoldersOperation.overwriteQuestion", new Object[] {pathString}); //$NON-NLS-1$ final String[] options = {IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL}; parentShell.getDisplay().syncExec(new Runnable() { public void run() { MessageDialog dialog = new MessageDialog(parentShell, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.question"), null, msg, MessageDialog.QUESTION, options, 0); //$NON-NLS-1$ dialog.open(); int returnVal = dialog.getReturnCode(); String[] returnCodes = {YES, ALL, NO, CANCEL}; returnCode[0] = returnVal == -1 ? CANCEL : returnCodes[returnVal]; } }); if(returnCode[0] == ALL) alwaysOverwrite = true; return returnCode[0]; } }; ImportOperation op = new ImportOperation( target.getFullPath(), new File(toImport.getParent()), FileSystemStructureProvider.INSTANCE, query, Arrays.asList(new File[] {toImport})); op.setCreateContainerStructure(false); try { op.run(monitor); } catch (InterruptedException e) { return; } catch (InvocationTargetException e) { if (e.getTargetException() instanceof CoreException) { final IStatus status = ((CoreException) e.getTargetException()).getStatus(); parentShell.getDisplay().syncExec(new Runnable() { public void run() { ErrorDialog.openError( parentShell, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.importErrorDialogTitle"), //$NON-NLS-1$ null, // no special message status); } }); } else { // CoreExceptions are handled above, but unexpected runtime exceptions and errors may still occur. Platform.getPlugin(PlatformUI.PLUGIN_ID).getLog().log( StatusUtil.newStatus( IStatus.ERROR, null, MessageFormat.format("Exception in {0}.performFileImport(): {1}", new Object[] {getClass().getName(), e.getTargetException()}), //$NON-NLS-1$ null));; displayError(WorkbenchMessages.format("CopyFilesAndFoldersOperation.internalError", new Object[] {e.getTargetException().getMessage()})); //$NON-NLS-1$ } return; } // Special case since ImportOperation doesn't throw a CoreException on // failure. IStatus status= op.getStatus(); if (!status.isOK()) { if (errorStatus == null) errorStatus = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.ERROR, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.problemMessage"), null); //$NON-NLS-1$ errorStatus.merge(status); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/bf752ac27dbe2a869d9900197181599a8561dc6a/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3073, 812, 5010, 12, 45, 5491, 7187, 6438, 16, 45, 2170, 1018, 16, 514, 4612, 13, 288, 202, 202, 812, 358, 5010, 273, 394, 1387, 12, 22787, 1769, 202, 202, 430, 261, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 812, 5010, 12, 45, 5491, 7187, 6438, 16, 45, 2170, 1018, 16, 514, 4612, 13, 288, 202, 202, 812, 358, 5010, 273, 394, 1387, 12, 22787, 1769, 202, 202, 430, 261, 3...
public WebRoleManager() { List list = new LinkedList(); for(int i = 0; i < 11; i++) { list.add(new WebRole()); } m_roles = list;
public WebRoleManager(GroupManager groupManager) { m_groupManager = groupManager;
public WebRoleManager() { List list = new LinkedList(); for(int i = 0; i < 11; i++) { list.add(new WebRole()); } m_roles = list; }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/706ae9a9c41b58e508fa716d64e3d6f6ca56ee0e/WebRoleManager.java/buggy/src/web/src/org/opennms/web/admin/roles/WebRoleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2999, 2996, 1318, 1435, 288, 3639, 987, 666, 273, 394, 10688, 5621, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 4648, 31, 277, 27245, 288, 1850, 666, 18, 1289, 12, 2704, 2999...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2999, 2996, 1318, 1435, 288, 3639, 987, 666, 273, 394, 10688, 5621, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 4648, 31, 277, 27245, 288, 1850, 666, 18, 1289, 12, 2704, 2999...
pageContext.setAttribute(Action.EXCEPTION_KEY, ex, PageContext.REQUEST_SCOPE);
saveException(ex);
public int doEndTag() throws JspException { try { pageContext.include(template); } catch(Exception ex) { // IOException or ServletException pageContext.setAttribute(Action.EXCEPTION_KEY, ex, PageContext.REQUEST_SCOPE); throw new JspException(ex.getMessage()); } ContentMapStack.pop(pageContext); return EVAL_PAGE; }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/377700f76e22370285a5828bcf4bc1caed504aac/InsertTag.java/buggy/src/share/org/apache/struts/taglib/template/InsertTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 1377, 775, 288, 540, 21442, 18, 6702, 12, 3202, 1769, 1377, 289, 1377, 1044, 12, 503, 431, 13, 288, 368, 1860, 578, 16517, 540, 21442, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 1377, 775, 288, 540, 21442, 18, 6702, 12, 3202, 1769, 1377, 289, 1377, 1044, 12, 503, 431, 13, 288, 368, 1860, 578, 16517, 540, 21442, 18, ...
suite.addTestSuite(CModelElementsFailedTests.class);
public static Test suite() { final AutomatedIntegrationSuite suite = new AutomatedIntegrationSuite(); // Add all success tests suite.addTest(ManagedBuildTests.suite()); suite.addTest(StandardBuildTests.suite()); suite.addTest(ParserTestSuite.suite()); suite.addTest(AllCoreTests.suite()); suite.addTest(BinaryTests.suite()); suite.addTest(ElementDeltaTests.suite()); suite.addTest(WorkingCopyTests.suite()); suite.addTest(SearchTestSuite.suite()); suite.addTest(DependencyTests.suite()); //Indexer Tests need to be run after any indexer client tests //as the last test shuts down the indexing thread suite.addTest(IndexManagerTests.suite()); // Last test to trigger report generation // Add all failed tests suite.addTestSuite(ASTFailedTests.class); suite.addTestSuite(STLFailedTests.class); suite.addTestSuite(CModelElementsFailedTests.class); suite.addTestSuite(FailedCompleteParseASTTest.class); return suite; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/AutomatedIntegrationSuite.java/buggy/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/suite/AutomatedIntegrationSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 6385, 11809, 362, 690, 15372, 13587, 11371, 273, 394, 11809, 362, 690, 15372, 13587, 5621, 9506, 202, 759, 1436, 777, 2216, 7434, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 11371, 1435, 288, 202, 202, 6385, 11809, 362, 690, 15372, 13587, 11371, 273, 394, 11809, 362, 690, 15372, 13587, 5621, 9506, 202, 759, 1436, 777, 2216, 7434, 202, 202, ...
return (editable == null) ? false : editable.equalsIgnoreCase("true");
return (editable == null) ? false : editable.equalsIgnoreCase("true");
public boolean isEditable() throws CDIException { if (editable == null) { MISession mi = ((Session) (getTarget().getSession())).getMISession(); CommandFactory factory = mi.getCommandFactory(); MIVarShowAttributes var = factory.createMIVarShowAttributes(miVar.getVarName()); try { mi.postCommand(var); MIVarShowAttributesInfo info = var.getMIVarShowAttributesInfo(); if (info == null) { throw new CDIException("No answer"); } editable = String.valueOf(info.isEditable()); } catch (MIException e) { throw new MI2CDIException(e); } } return (editable == null) ? false : editable.equalsIgnoreCase("true"); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/Variable.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 15470, 1435, 1216, 385, 2565, 503, 288, 202, 202, 430, 261, 19653, 422, 446, 13, 288, 1082, 202, 7492, 2157, 12837, 273, 14015, 2157, 13, 261, 588, 2326, 7675, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 15470, 1435, 1216, 385, 2565, 503, 288, 202, 202, 430, 261, 19653, 422, 446, 13, 288, 1082, 202, 7492, 2157, 12837, 273, 14015, 2157, 13, 261, 588, 2326, 7675, 588, ...
public void onSuccess() {
public void onSuccess(ClientSSKBlock block) {
public void onSuccess() { checker = null; succeeded = true; USKFetcher.this.onSuccess(this, false); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/453d4b996fb63d69f900accadc2e27f5ed795af0/USKFetcher.java/buggy/src/freenet/client/async/USKFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 1435, 288, 1082, 202, 19243, 273, 446, 31, 1082, 202, 87, 20983, 273, 638, 31, 1082, 202, 3378, 47, 16855, 18, 2211, 18, 265, 4510, 12, 2211, 16, 629, 1769, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 1435, 288, 1082, 202, 19243, 273, 446, 31, 1082, 202, 87, 20983, 273, 638, 31, 1082, 202, 3378, 47, 16855, 18, 2211, 18, 265, 4510, 12, 2211, 16, 629, 1769, 202, ...
deferPrimary = new ArrayList(50);
deferPrimary = new HashSet();
public boolean readElement(IConfigurationElement element) { if (element.getName().equals(TAG_CATEGORY)) { deferCategory(element); return true; } else if (element.getName().equals(TAG_PRIMARYWIZARD)) { if (deferPrimary == null) deferPrimary = new ArrayList(50); deferPrimary.add(element.getAttribute(ATT_ID)); return true; } else { return super.readElement(element); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/286934ccf2547390b1ffb9538e1d693e7e6dd6cc/NewWizardsRegistryReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/NewWizardsRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 855, 1046, 12, 45, 1750, 1046, 930, 13, 288, 3639, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 7927, 67, 24847, 3719, 288, 5411, 2220, 4457, 12, 2956, 1769, 5411, 327, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 855, 1046, 12, 45, 1750, 1046, 930, 13, 288, 3639, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 7927, 67, 24847, 3719, 288, 5411, 2220, 4457, 12, 2956, 1769, 5411, 327, 638, ...
boolean writeable = (flagData[2] & 0x08) > 0;
boolean caseSensitive = (flagData[2] & 0x02) > 0; boolean writeable = (flagData[2] & 0x0C) > 0;
private PacketColumnInfoResult processColumnInfo() throws java.io.IOException, com.internetcds.jdbc.tds.TdsException { Columns columns = new Columns(); int precision; int scale; int totalLen = comm.getTdsShort(); int bytesRead = 0; int numColumns = 0; while (bytesRead < totalLen) { scale = -1; precision = -1; int sizeOfColumn = -1; byte flagData[] = new byte[4]; for (int i = 0; i < 4; i++) { flagData[i] = comm.getByte(); bytesRead++; } boolean nullable = (flagData[2] & 0x01) > 0; boolean writeable = (flagData[2] & 0x08) > 0; boolean autoIncrement = (flagData[2] & 0x10) > 0; // Get the type of column byte columnType = comm.getByte(); bytesRead++; if (columnType == SYBTEXT || columnType == SYBIMAGE) { int i; int tmpByte; // XXX Need to find out what these next 4 bytes are // Could they be the column size? comm.skip(4); bytesRead += 4; int tableNameLen = comm.getTdsShort(); bytesRead += 2; String tableName = encoder.getString(comm.getBytes(tableNameLen)); bytesRead += tableNameLen; sizeOfColumn = 2 << 31 - 1; } else if (columnType == SYBDECIMAL || columnType == SYBNUMERIC) { int tmp; sizeOfColumn = comm.getByte(); bytesRead++; precision = comm.getByte(); // Total number of digits bytesRead++; scale = comm.getByte(); // # of digits after the decimal point bytesRead++; } else if (isFixedSizeColumn(columnType)) { sizeOfColumn = lookupColumnSize(columnType); } else { sizeOfColumn = ((int) comm.getByte() & 0xff); bytesRead++; } numColumns++; if (scale != -1) { columns.setScale(numColumns, scale); } if (precision != -1) { columns.setPrecision(numColumns, precision); } columns.setNativeType(numColumns, columnType); columns.setDisplaySize(numColumns, sizeOfColumn); columns.setNullable(numColumns, (nullable ? ResultSetMetaData.columnNullable : ResultSetMetaData.columnNoNulls)); columns.setAutoIncrement(numColumns, autoIncrement); columns.setReadOnly(numColumns, !writeable); } // Don't know what the rest is except that the int skipLen = totalLen - bytesRead; if (skipLen != 0) { throw new TdsException( "skipping " + skipLen + " bytes"); } return new PacketColumnInfoResult(columns); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f7245b119e1e341f7c98206b4350b59dec0be333/Tds.java/clean/src.old/main/com/internetcds/jdbc/tds/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11114, 1494, 966, 1253, 1207, 1494, 966, 1435, 2398, 1216, 2252, 18, 1594, 18, 14106, 16, 532, 18, 267, 798, 14175, 2377, 18, 24687, 18, 88, 2377, 18, 56, 2377, 503, 565, 288, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11114, 1494, 966, 1253, 1207, 1494, 966, 1435, 2398, 1216, 2252, 18, 1594, 18, 14106, 16, 532, 18, 267, 798, 14175, 2377, 18, 24687, 18, 88, 2377, 18, 56, 2377, 503, 565, 288, 363...
indexManager.reset();
protected void setUp() throws Exception { super.setUp(); try{ project.setSessionProperty(IndexManager.indexerIDKey, sourceIndexerID); project.setSessionProperty( SourceIndexer.activationKey, new Boolean( true ) ); } catch ( CoreException e ) { //boo } TypeCacheManager typeCacheManager = TypeCacheManager.getInstance(); typeCacheManager.setProcessTypeCacheEvents(false); IndexManager indexManager = CCorePlugin.getDefault().getCoreModel().getIndexManager(); indexManager.reset(); sourceIndexer = (SourceIndexer) CCorePlugin.getDefault().getCoreModel().getIndexManager().getIndexerForProject(project); sourceIndexer.addIndexChangeListener( this ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a936f8db56194cc04f1c7ba6c2594c3bf15615c6/SearchRegressionTests.java/clean/core/org.eclipse.cdt.core.tests/regression/org/eclipse/cdt/core/tests/SearchRegressionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 2240, 18, 542, 1211, 5621, 202, 202, 698, 95, 1082, 202, 4406, 18, 542, 2157, 1396, 12, 1016, 1318, 18, 24541, 734, 653, 16, 1084, 20877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 1185, 288, 3639, 2240, 18, 542, 1211, 5621, 202, 202, 698, 95, 1082, 202, 4406, 18, 542, 2157, 1396, 12, 1016, 1318, 18, 24541, 734, 653, 16, 1084, 20877, ...
public boolean generateGCTrace() { return false; }
public boolean generateGCTrace() { return false; }
public boolean generateGCTrace() { return false; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/PlanConstraints.java/buggy/MMTk/src/org/mmtk/plan/PlanConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2103, 43, 1268, 9963, 1435, 288, 327, 629, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2103, 43, 1268, 9963, 1435, 288, 327, 629, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
while(bytesRead < bucketLength || bucketLength == -1) {
while((bytesRead < bucketLength) || (bucketLength == -1)) {
public static byte[] hash(Bucket data) throws IOException { InputStream is = null; try { MessageDigest md = MessageDigest.getInstance("SHA-256"); is = data.getInputStream(); long bucketLength = data.size(); long bytesRead = 0; byte[] buf = new byte[4096]; while(bytesRead < bucketLength || bucketLength == -1) { int readBytes = is.read(buf); if(readBytes < 0) break; bytesRead += readBytes; md.update(buf, 0, readBytes); } if(bytesRead < bucketLength && bucketLength > 0) throw new EOFException(); if(bytesRead != bucketLength && bucketLength > 0) throw new IOException("Read "+bytesRead+" but bucket length "+bucketLength+"!"); return md.digest(); } catch (NoSuchAlgorithmException e) { Logger.error(BucketTools.class, "No such digest: SHA-256 !!"); throw new Error("No such digest: SHA-256 !!"); } finally { if(is != null) is.close(); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/BucketTools.java/buggy/src/freenet/support/BucketTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1160, 8526, 1651, 12, 4103, 501, 13, 1216, 1860, 288, 202, 202, 4348, 353, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 1079, 9568, 3481, 273, 22485, 18, 588, 1442, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 1651, 12, 4103, 501, 13, 1216, 1860, 288, 202, 202, 4348, 353, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 1079, 9568, 3481, 273, 22485, 18, 588, 1442, 2932,...
testSize(dstReg, mode.getSize());
public final void writeMOV_Const(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); testSize(dstReg, BITS32 | BITS64); if (dstReg.getSize() == BITS32) { write1bOpcodeReg(0xB8, dstReg); write32(imm32); } else { writeMOV_Const(dstReg, (long) imm32); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a80d251626f7174aa2accf0086cc28c796bf1d18/X86BinaryAssembler.java/clean/core/src/core/org/jnode/assembler/x86/X86BinaryAssembler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1045, 5980, 58, 67, 9661, 12, 43, 8025, 3046, 1617, 16, 509, 709, 81, 1578, 13, 288, 3639, 1842, 1225, 12, 11057, 1617, 16, 1965, 18, 588, 1225, 10663, 202, 202, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1045, 5980, 58, 67, 9661, 12, 43, 8025, 3046, 1617, 16, 509, 709, 81, 1578, 13, 288, 3639, 1842, 1225, 12, 11057, 1617, 16, 1965, 18, 588, 1225, 10663, 202, 202, 3...
String originalPageNumber = autoText.getText( ); NumberFormatter nf = new NumberFormatter( ); String patternStr = autoText.getComputedStyle( ) .getNumberFormat( ); nf.applyPattern( patternStr ); autoText.setText( nf.format( Integer .parseInt( originalPageNumber ) ) );
if ( parent instanceof PDFLineAreaLM ) { String originalPageNumber = autoText.getText( ); NumberFormatter nf = new NumberFormatter( ); String patternStr = autoText.getComputedStyle( ) .getNumberFormat( ); nf.applyPattern( patternStr ); try { autoText.setText( nf.format( Integer .parseInt( originalPageNumber ) ) ); } catch(NumberFormatException nfe) { autoText.setText( originalPageNumber ); } }
public Object visitAutoText( IAutoTextContent autoText, Object value ) { if ( IAutoTextContent.PAGE_NUMBER == autoText.getType( ) ) { String originalPageNumber = autoText.getText( ); NumberFormatter nf = new NumberFormatter( ); String patternStr = autoText.getComputedStyle( ) .getNumberFormat( ); nf.applyPattern( patternStr ); autoText.setText( nf.format( Integer .parseInt( originalPageNumber ) ) ); return handleText( autoText ); } return new PDFTemplateLM( context, parent, autoText, executor ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/780b556b8c5e77a8cccdb3af3168c80895d45c25/PDFLayoutManagerFactory.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFLayoutManagerFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 3757, 4965, 1528, 12, 467, 4965, 1528, 1350, 3656, 1528, 16, 1033, 460, 262, 202, 202, 95, 1082, 202, 430, 261, 467, 4965, 1528, 1350, 18, 11219, 67, 9931, 422, 3656, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3757, 4965, 1528, 12, 467, 4965, 1528, 1350, 3656, 1528, 16, 1033, 460, 262, 202, 202, 95, 1082, 202, 430, 261, 467, 4965, 1528, 1350, 18, 11219, 67, 9931, 422, 3656, 1...
doDispose();
public final void dispose() { disposing.set(true); workManager.dispose(); doDispose(); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/6d1384234fa2d746fa6e85cc0f07784d8993c8e4/AbstractMessageReceiver.java/buggy/mule/src/java/org/mule/providers/AbstractMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 15825, 1435, 288, 3639, 1015, 24014, 18, 542, 12, 3767, 1769, 3639, 1440, 1318, 18, 2251, 4150, 5621, 6647, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 15825, 1435, 288, 3639, 1015, 24014, 18, 542, 12, 3767, 1769, 3639, 1440, 1318, 18, 2251, 4150, 5621, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return AccessibleJTree.this.getAccessibleChild(i);
TreeModel mod = tree.getModel(); if (mod != null) { Object child = mod.getChild(tp.getLastPathComponent(), i); if (child != null) return new AccessibleJTreeNode(tree, tp.pathByAddingChild(child), acc); } return null;
public Accessible getAccessibleChild(int i) { return AccessibleJTree.this.getAccessibleChild(i); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4cfb23bf0c3cfbad22f148e981d49bf1ca6def84/JTree.java/buggy/libraries/javalib/javax/swing/JTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 5016, 1523, 336, 10451, 1763, 12, 474, 277, 13, 1377, 288, 3639, 4902, 1488, 681, 273, 2151, 18, 588, 1488, 5621, 309, 261, 1711, 480, 446, 13, 288, 1033, 1151, 273, 681, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 5016, 1523, 336, 10451, 1763, 12, 474, 277, 13, 1377, 288, 3639, 4902, 1488, 681, 273, 2151, 18, 588, 1488, 5621, 309, 261, 1711, 480, 446, 13, 288, 1033, 1151, 273, 681, 18, 588...
} finally { Context.exit(); }
}; contextFactory.call(initAction);
public RhinoInterpreter(URL documentURL) { try { rhinoClassLoader = new RhinoClassLoader (documentURL, getClass().getClassLoader()); } catch (SecurityException se) { rhinoClassLoader = null; } // entering a context Context ctx = enterContext(); try { Scriptable scriptable = ctx.initStandardObjects(null, false); defineGlobalWrapperClass(scriptable); // we now have the window object as the global object from the // launch of the interpreter. // 1. it works around a Rhino bug introduced in 15R4 (but fixed // by a later patch). // 2. it sounds cleaner. globalObject = createGlobalObject(ctx); // import Java lang package & DOM Level 2 & SVG DOM packages NativeJavaPackage[] p = new NativeJavaPackage[TO_BE_IMPORTED.length]; for (int i = 0; i < TO_BE_IMPORTED.length; i++) { p[i] = new NativeJavaPackage(TO_BE_IMPORTED[i], rhinoClassLoader); } try { ScriptableObject.callMethod(globalObject, "importPackage", p); } catch (JavaScriptException e) { // cannot happen as we know the method is there and // the parameters are ok } } finally { Context.exit(); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/72112e8a44596cd1549ebd8c6dc70da3dd95b9d4/RhinoInterpreter.java/buggy/sources/org/apache/batik/script/rhino/RhinoInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 534, 76, 15020, 30010, 12, 1785, 1668, 1785, 13, 288, 3639, 775, 288, 2398, 6259, 15020, 7805, 273, 394, 534, 76, 15020, 7805, 7734, 261, 5457, 1785, 16, 2900, 7675, 588, 7805, 1066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 534, 76, 15020, 30010, 12, 1785, 1668, 1785, 13, 288, 3639, 775, 288, 2398, 6259, 15020, 7805, 273, 394, 534, 76, 15020, 7805, 7734, 261, 5457, 1785, 16, 2900, 7675, 588, 7805, 1066...
if (overloadedMethods.size() < 2) Context.codeBug(); methods = new Method[overloadedMethods.size()]; overloadedMethods.toArray(methods);
int N = overloadedMethods.size(); if (N < 2) Context.codeBug(); methods = new MemberBox[N]; for (int i = 0; i != N; ++i) { Method method = (Method)overloadedMethods.get(i); methods[i] = new MemberBox(method); }
private static void initNativeMethods(Hashtable ht, Scriptable scope) { Enumeration e = ht.keys(); while (e.hasMoreElements()) { String name = (String)e.nextElement(); Method[] methods; Object value = ht.get(name); if (value instanceof Method) { methods = new Method[1]; methods[0] = (Method)value; } else { ObjArray overloadedMethods = (ObjArray)value; if (overloadedMethods.size() < 2) Context.codeBug(); methods = new Method[overloadedMethods.size()]; overloadedMethods.toArray(methods); } NativeJavaMethod fun = new NativeJavaMethod(methods); if (scope != null) { fun.setPrototype(ScriptableObject.getFunctionPrototype(scope)); } ht.put(name, fun); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/1b620bbe9ad9c387f8202d7df9e1281bbd4ef637/JavaMembers.java/clean/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1208, 9220, 4712, 12, 5582, 14544, 14049, 16, 22780, 2146, 13, 565, 288, 3639, 13864, 425, 273, 14049, 18, 2452, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 9220, 4712, 12, 5582, 14544, 14049, 16, 22780, 2146, 13, 565, 288, 3639, 13864, 425, 273, 14049, 18, 2452, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 28...
return (BootstrapperDetail[]) server.getAttribute(ccMgr, "AvailableBootstrappers");
return (PluginDetail[]) server.getAttribute(ccMgr, "AvailableBootstrappers");
public BootstrapperDetail[] getBootstrappers() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException { return (BootstrapperDetail[]) server.getAttribute(ccMgr, "AvailableBootstrappers"); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/58385a8ca18a8444f0b8574ed4938f974ef47267/Configuration.java/buggy/reporting/jsp/src/net/sourceforge/cruisecontrol/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11830, 457, 6109, 8526, 2882, 1632, 701, 2910, 414, 1435, 1216, 3601, 3990, 16, 5180, 3990, 16, 5411, 16622, 503, 16, 28818, 16, 1860, 288, 3639, 327, 261, 3773, 6109, 63, 5717, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11830, 457, 6109, 8526, 2882, 1632, 701, 2910, 414, 1435, 1216, 3601, 3990, 16, 5180, 3990, 16, 5411, 16622, 503, 16, 28818, 16, 1860, 288, 3639, 327, 261, 3773, 6109, 63, 5717, 143...
{
{
public void transform(Source source) throws TransformerException { if(source instanceof DOMSource) { DOMSource dsource = (DOMSource)source; m_urlOfSource = dsource.getSystemId(); Node dNode = dsource.getNode(); if (null != dNode) { this.transformNode(dsource.getNode()); return; } else { String messageStr = XSLMessages.createMessage(XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null); throw new IllegalArgumentException(messageStr); } } InputSource xmlSource = SAXSource.sourceToInputSource(source); if(null == xmlSource) { throw new TransformerException("Can't transform a Source of type "+ source.getClass().getName()+"!"); } if (null != xmlSource.getSystemId()) m_urlOfSource = xmlSource.getSystemId(); try { XMLReader reader = null; if(source instanceof SAXSource) reader = ((SAXSource)source).getXMLReader(); // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory= javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware( true ); javax.xml.parsers.SAXParser jaxpParser= factory.newSAXParser(); reader=jaxpParser.getXMLReader(); } catch( javax.xml.parsers.ParserConfigurationException ex ) { throw new org.xml.sax.SAXException( ex ); } catch( javax.xml.parsers.FactoryConfigurationError ex1 ) { throw new org.xml.sax.SAXException( ex1.toString() ); } catch( NoSuchMethodError ex2 ) { } if (null == reader) { reader = XMLReaderFactory.createXMLReader(); } try { reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true); reader.setFeature("http://apache.org/xml/features/validation/dynamic", true); } catch (org.xml.sax.SAXException se) { // We don't care. } // Get the input content handler, which will handle the // parse events and create the source tree. ContentHandler inputHandler = getInputContentHandler(); reader.setContentHandler(inputHandler); if(inputHandler instanceof org.xml.sax.DTDHandler) reader.setDTDHandler((org.xml.sax.DTDHandler)inputHandler); try { if(inputHandler instanceof org.xml.sax.ext.LexicalHandler) reader.setProperty("http://xml.org/sax/properties/lexical-handler", inputHandler); if(inputHandler instanceof org.xml.sax.ext.DeclHandler) reader.setProperty("http://xml.org/sax/properties/declaration-handler", inputHandler); } catch(org.xml.sax.SAXException se) {} try { if(inputHandler instanceof org.xml.sax.ext.LexicalHandler) reader.setProperty("http://xml.org/sax/handlers/LexicalHandler", inputHandler); if(inputHandler instanceof org.xml.sax.ext.DeclHandler) reader.setProperty("http://xml.org/sax/handlers/DeclHandler", inputHandler); } catch(org.xml.sax.SAXNotRecognizedException snre) { } // Set the reader for cloning purposes. getXPathContext().setPrimaryReader(reader); this.m_exceptionThrown = null; if (inputHandler instanceof SourceTreeHandler) { SourceTreeHandler sth = (SourceTreeHandler) inputHandler; sth.setInputSource(source); sth.setUseMultiThreading(true); Node doc = sth.getRoot(); if (null != doc) { SourceTreeManager stm = getXPathContext().getSourceTreeManager(); stm.putDocumentInCache(doc, source); m_xmlSource = source; m_doc = doc; if (isParserEventsOnMain()) { m_isTransformDone = false; getXPathContext().getPrimaryReader().parse(xmlSource); } else { Thread t = new Thread(this); t.start(); transformNode(doc); } } } else { // ?? reader.parse(xmlSource); } // Kick off the parse. When the ContentHandler gets // the startDocument event, it will call transformNode( node ). // reader.parse( xmlSource ); // This has to be done to catch exceptions thrown from // the transform thread spawned by the STree handler. Exception e = getExceptionThrown(); if (null != e) { if (e instanceof javax.xml.transform.TransformerException) throw (javax.xml.transform.TransformerException) e; else if (e instanceof org.apache.xml.utils.WrappedRuntimeException) throw new javax.xml.transform.TransformerException( ((org.apache.xml.utils.WrappedRuntimeException) e).getException()); else { throw new javax.xml.transform.TransformerException(e); } } else if (null != m_resultTreeHandler) { m_resultTreeHandler.endDocument(); } } catch (org.apache.xml.utils.WrappedRuntimeException wre) { Throwable throwable = wre.getException(); while (throwable instanceof org.apache.xml.utils.WrappedRuntimeException) { throwable = ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); } throw new TransformerException(wre.getException()); } catch(org.xml.sax.SAXException se) { throw new TransformerException(se); } catch (IOException ioe) { throw new TransformerException(ioe); } finally { reset(); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/c736f17b9444627f273abb55d5d543623637654b/TransformerImpl.java/buggy/src/org/apache/xalan/transformer/TransformerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 12, 1830, 1084, 13, 377, 1216, 21684, 225, 288, 565, 309, 12, 3168, 1276, 4703, 1830, 13, 565, 288, 1377, 4703, 1830, 302, 3168, 273, 261, 8168, 1830, 13, 3168, 31, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2510, 12, 1830, 1084, 13, 377, 1216, 21684, 225, 288, 565, 309, 12, 3168, 1276, 4703, 1830, 13, 565, 288, 1377, 4703, 1830, 302, 3168, 273, 261, 8168, 1830, 13, 3168, 31, 137...
if(val != null){ msgPart.setDescriptor(context.translateQualifiedName(val)); msgPart.setDescriptorKind(SchemaKinds.XSD_ELEMENT); }else{ val = XmlUtil.getAttributeOrNull(msgPartElm, "type"); if(val == null) return; msgPart.setDescriptor(context.translateQualifiedName(val)); msgPart.setDescriptorKind(SchemaKinds.XSD_TYPE); }
private void parseParameter(ParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); if(partName == null) return; msgPart.setName(partName); String val = XmlUtil.getAttributeOrNull(msgPartElm, "element"); if(val != null){ msgPart.setDescriptor(context.translateQualifiedName(val)); msgPart.setDescriptorKind(SchemaKinds.XSD_ELEMENT); }else{ val = XmlUtil.getAttributeOrNull(msgPartElm, "type"); if(val == null) return; msgPart.setDescriptor(context.translateQualifiedName(val)); msgPart.setDescriptorKind(SchemaKinds.XSD_TYPE); } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgPart.getName(), elementName, name)); }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/ecd8df208c3f576e282af2b7cb16983528284c13/JAXWSBindingExtensionHandler.java/clean/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/wsdl/parser/JAXWSBindingExtensionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1662, 12, 2678, 1042, 819, 16, 7431, 2651, 5250, 20516, 4749, 5250, 16, 3010, 425, 13, 288, 3639, 514, 1087, 273, 5714, 1304, 18, 588, 1499, 18936, 12, 73, 16, 7431, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1662, 12, 2678, 1042, 819, 16, 7431, 2651, 5250, 20516, 4749, 5250, 16, 3010, 425, 13, 288, 3639, 514, 1087, 273, 5714, 1304, 18, 588, 1499, 18936, 12, 73, 16, 7431, 26...
Map<Long, byte[]> updateMap, Set insertSet);
Map<Long, byte[]> updateMap, Set insertSet) throws DataSpaceClosedException;
public void atomicUpdate(boolean clear, Map<String, Long> newNames, Set<Long> deleteSet, Map<Long, byte[]> updateMap, Set insertSet);
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/987e5fd762c50fabd2d33a1688473f28f21457f4/DataSpace.java/buggy/src/com/sun/gi/objectstore/tso/dataspace/DataSpace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7960, 1891, 12, 6494, 2424, 16, 1082, 202, 863, 32, 780, 16, 3407, 34, 394, 1557, 16, 1000, 32, 3708, 34, 1430, 694, 16, 1082, 202, 863, 32, 3708, 16, 1160, 8526, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7960, 1891, 12, 6494, 2424, 16, 1082, 202, 863, 32, 780, 16, 3407, 34, 394, 1557, 16, 1000, 32, 3708, 34, 1430, 694, 16, 1082, 202, 863, 32, 3708, 16, 1160, 8526, 34, ...
String filename = request.getPartAsString("filename",1024);
String message = request.getPartAsString("message",1024); if(message.length() == 0) message = request.getPartAsString("filename", 1024);
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); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/e34f01be68ed7e80fd4097bafbb4cefa2ac237fd/WelcomeToadlet.java/clean/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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
int end = doc.getLength(); if (end - commandStart == 0) return; try { String command = doc.getText(commandStart, end - commandStart); commandStart = end; doc.insertString(commandStart++, "\n", defaultAttrs); if (command != null) { process.setAction(command); Readline.addToHistory(command); currentHistory = Readline.getHistorySize(); } } catch (BadLocationException e) { e.printStackTrace(); } }
int end = doc.getLength(); if (end - commandStart == 0) return; try { String command = doc.getText(commandStart, end - commandStart); commandStart = end; doc.insertString(commandStart++, "\n", defaultAttrs); if (command != null) { process.setAction(command); Readline.addToHistory(command); currentHistory = Readline.getHistorySize(); } } catch (BadLocationException e) { e.printStackTrace(); } }
private void enter() { int end = doc.getLength(); if (end - commandStart == 0) return; try { String command = doc.getText(commandStart, end - commandStart); commandStart = end; doc.insertString(commandStart++, "\n", defaultAttrs); if (command != null) { process.setAction(command); Readline.addToHistory(command); currentHistory = Readline.getHistorySize(); } } catch (BadLocationException e) { e.printStackTrace(); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bb8a54acfbfbffcfe066b31fa92b8aa8bb954641/ClientFrame.java/clean/src/org/exist/client/ClientFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6103, 1435, 288, 202, 202, 474, 679, 273, 997, 18, 588, 1782, 5621, 202, 202, 430, 261, 409, 300, 1296, 1685, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 698, 288, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6103, 1435, 288, 202, 202, 474, 679, 273, 997, 18, 588, 1782, 5621, 202, 202, 430, 261, 409, 300, 1296, 1685, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 698, 288, 10...
doc = abdera.getParser().parse(pipein);
try { doc = abdera.getParser().parse(pipein); } catch (IRISyntaxException e) { }
public <T extends Element>Document<T> getDocument() { if (doc == null) { if (pipein == null) return null; doc = abdera.getParser().parse(pipein); } return doc; }
46425 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46425/a7724f57b1ed9f7e36f7b511e06e7dbc231182d4/AbderaResult.java/buggy/core/src/main/java/org/apache/abdera/util/AbderaResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 411, 56, 3231, 3010, 34, 2519, 32, 56, 34, 9956, 1435, 288, 565, 309, 261, 2434, 422, 446, 13, 288, 1377, 309, 261, 14772, 267, 422, 446, 13, 327, 446, 31, 1377, 775, 288, 997, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 411, 56, 3231, 3010, 34, 2519, 32, 56, 34, 9956, 1435, 288, 565, 309, 261, 2434, 422, 446, 13, 288, 1377, 309, 261, 14772, 267, 422, 446, 13, 327, 446, 31, 1377, 775, 288, 997, ...
pStmt1.setInt(2, 42); pStmt1.setInt(3, 2); count = pStmt1.executeUpdate(); assertTrue(count == 1);
pStmt1.setInt(2, 42); pStmt1.setInt(3, 2); count = pStmt1.executeUpdate(); assertTrue(count == 1);
public void testPreparedStatement0042() throws Exception { Connection cx = getConnection(); dropTable("#t0042"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0042 (s char(5) null, i integer null, j integer not null)"); PreparedStatement pStmt1 = cx.prepareStatement("insert into #t0042 (s, i, j) values (?, ?, ?)"); PreparedStatement pStmt2 = cx.prepareStatement("select i from #t0042 order by j"); pStmt1.setString(1, "hello"); pStmt1.setNull(2, java.sql.Types.INTEGER); pStmt1.setInt(3, 1); int count = pStmt1.executeUpdate(); assertTrue(count == 1); pStmt1.setInt(2, 42); pStmt1.setInt(3, 2); count = pStmt1.executeUpdate(); assertTrue(count == 1); ResultSet rs = pStmt2.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); rs.getInt(1); assertTrue(rs.wasNull()); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getInt(1) == 42); assertTrue(!rs.wasNull()); assertTrue("Expected no result set", !rs.next()); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/7df6dc0065b654cd4e2b156461e0394d01dd13aa/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 9452, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 9452, 8863, 202, 202, 3406, 3480, 273, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 9452, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 9452, 8863, 202, 202, 3406, 3480, 273, 9...
SizeConstraint c = (SizeConstraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(c == null) return null; return c.getRange(); }
SizeConstraint c = (SizeConstraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(c == null) return null; return c.getRange(); }
public Range getSize() { SizeConstraint c = (SizeConstraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(c == null) return null; return c.getRange(); }
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8086, 9950, 1435, 288, 202, 202, 1225, 5806, 276, 273, 261, 1225, 5806, 13, 2211, 18, 438, 3110, 4878, 18, 588, 12, 11963, 67, 15199, 11272, 202, 202, 430, 12, 71, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 8086, 9950, 1435, 288, 202, 202, 1225, 5806, 276, 273, 261, 1225, 5806, 13, 2211, 18, 438, 3110, 4878, 18, 588, 12, 11963, 67, 15199, 11272, 202, 202, 430, 12, 71, 422, 446, ...
} catch (IOException ioe) { connection.setClosed(); throw Support.linkException( new SQLException( Messages.get( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe);
} finally { if ((sendNow || sendFailed) && connectionLock != null) { connectionLock.release(); connectionLock = null; } inBatch = false;
synchronized void executeSQL(String sql, String procName, ParamInfo[] parameters, boolean noMetaData, int timeOut, int maxRows, boolean sendNow) throws SQLException { checkOpen(); clearResponseQueue(); messages.exceptions = null; // TODO Make sure this doesn't actually submit a query in the middle of buffering more requests setRowCount(maxRows); messages.clearWarnings(); this.returnStatus = null; // // Normalize the parameters argument to simplify later checks // if (parameters != null && parameters.length == 0) { parameters = null; } this.parameters = parameters; // // Normalise the procName argument as well // if (procName != null && procName.length() == 0) { procName = null; } if (parameters != null && parameters[0].isRetVal) { returnParam = parameters[0]; nextParam = 0; } else { returnParam = null; nextParam = -1; } if (parameters != null) { if (procName == null && sql.startsWith("EXECUTE ")) { // // If this is a callable statement that could not be fully parsed // into an RPC call convert to straight SQL now. // An example of non RPC capable SQL is {?=call sp_example('literal', ?)} // for (int i = 0; i < parameters.length; i++){ // Output parameters not allowed. if (!parameters[i].isRetVal && parameters[i].isOutput){ throw new SQLException(Messages.get("error.prepare.nooutparam", Integer.toString(i + 1)), "07000"); } } sql = Support.substituteParameters(sql, parameters, getTdsVersion()); parameters = null; } else { // // Check all parameters are either output or have values set // for (int i = 0; i < parameters.length; i++){ if (!parameters[i].isSet && !parameters[i].isOutput){ throw new SQLException(Messages.get("error.prepare.paramnotset", Integer.toString(i + 1)), "07000"); } parameters[i].clearOutValue(); TdsData.getNativeType(connection, parameters[i]); } } } try { switch (tdsVersion) { case Driver.TDS42: executeSQL42(sql, procName, parameters, noMetaData); break; case Driver.TDS50: executeSQL50(sql, procName, parameters); break; case Driver.TDS70: case Driver.TDS80: case Driver.TDS81: executeSQL70(sql, procName, parameters, noMetaData); break; default: throw new IllegalStateException("Unknown TDS version " + tdsVersion); } if (sendNow) { out.flush(); endOfResponse = false; endOfResults = true; wait(timeOut); } else { out.write((byte) DONE_END_OF_RESPONSE); } } catch (IOException ioe) { connection.setClosed(); throw Support.linkException( new SQLException( Messages.get( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe); } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/1e35749e3999006e55f5fcf79cb36b5060b07123/TdsCore.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1836, 3997, 12, 780, 1847, 16, 4766, 514, 5418, 461, 16, 4766, 3014, 966, 8526, 1472, 16, 4766, 1250, 1158, 6998, 16, 4766, 509, 813, 1182, 16, 4766, 509, 943, 4300, 16, 4766...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1836, 3997, 12, 780, 1847, 16, 4766, 514, 5418, 461, 16, 4766, 3014, 966, 8526, 1472, 16, 4766, 1250, 1158, 6998, 16, 4766, 509, 813, 1182, 16, 4766, 509, 943, 4300, 16, 4766...
try { restoreView(this); } catch (PartInitException e) { }
IStatus status = restoreView(this); /* * Views are not lazy created so this code will not run for now. */
public IWorkbenchPart getPart(boolean restore) { if(part != null) return part; if(restore) { try { restoreView(this); } catch (PartInitException e) { } } return part; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/49a9dbfbab938deb979d8dde7bb398e791ff2406/ViewFactory.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ViewFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2421, 22144, 1988, 13657, 12, 6494, 5217, 13, 288, 202, 202, 430, 12, 2680, 480, 446, 13, 1082, 202, 2463, 1087, 31, 202, 202, 430, 12, 13991, 13, 288, 1082, 202, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 2421, 22144, 1988, 13657, 12, 6494, 5217, 13, 288, 202, 202, 430, 12, 2680, 480, 446, 13, 1082, 202, 2463, 1087, 31, 202, 202, 430, 12, 13991, 13, 288, 1082, 202, 698, ...
public void tryBlock() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:455:17: ( 'try' compoundStatement ( handler )* ( finallyClause )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:455:17: 'try' compoundStatement ( handler )* ( finallyClause )? { match(input,108,FOLLOW_108_in_tryBlock1741); following.push(FOLLOW_compoundStatement_in_tryBlock1743); compoundStatement(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:456:17: ( handler )* loop48: do { int alt48=2; int LA48_0 = input.LA(1); if ( LA48_0==110 ) { alt48=1; } switch (alt48) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:456:18: handler { following.push(FOLLOW_handler_in_tryBlock1748); handler(); following.pop(); } break; default : break loop48; } } while (true); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:457:17: ( finallyClause )? int alt49=2; int LA49_0 = input.LA(1); if ( LA49_0==109 ) { alt49=1; } else if ( LA49_0==IDENT||(LA49_0>=LCURLY && LA49_0<=RCURLY)||LA49_0==LPAREN||(LA49_0>=PLUS && LA49_0<=MINUS)||(LA49_0>=INC && LA49_0<=NUM_FLOAT)||(LA49_0>=68 && LA49_0<=89)||(LA49_0>=93 && LA49_0<=94)||(LA49_0>=96 && LA49_0<=108)||(LA49_0>=112 && LA49_0<=115) ) { alt49=2; } else { NoViableAltException nvae = new NoViableAltException("457:17: ( finallyClause )?", 49, 0, input); throw nvae; } switch (alt49) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:457:19: finallyClause { following.push(FOLLOW_finallyClause_in_tryBlock1756); finallyClause(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 698, 1768, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 698, 1768, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19...
}else if(paramBinding.isUnbound()){ unboundParams.add(param);
private void applyRpcLitParamBinding(String opName, WrapperParameter wrapperParameter, Binding wsdlBinding, Mode mode) { RpcLitPayload payload = new RpcLitPayload(wrapperParameter.getName()); BindingOperation bo = wsdlBinding.get(opName); Map<Integer, Parameter> params = new HashMap<Integer, Parameter>(); List<Parameter> unboundParams = new ArrayList<Parameter>(); for(Parameter param:wrapperParameter.getWrapperChildren()){ String partName = param.getPartName(); if(partName == null) continue; ParameterBinding paramBinding = wsdlBinding.getBinding(opName, partName, mode); if(paramBinding != null){ if(mode == Mode.IN) param.setInBinding(paramBinding); else if(mode == Mode.OUT) param.setOutBinding(paramBinding); if(paramBinding.isBody()){// JAXBBridgeInfo bi = new JAXBBridgeInfo(getBridge(param.getTypeReference()), null); if(bo != null){ Part p = bo.getPart(param.getPartName(), mode); if(p != null) params.put(p.getIndex(), param); else params.put(params.size(), param); }else{ params.put(params.size(), param); }// payload.addParameter(bi); }else if(paramBinding.isUnbound()){ unboundParams.add(param); } } } wrapperParameter.clear(); for(int i = 0; i < params.size();i++){ Parameter p = params.get(i); wrapperParameter.addWrapperChild(p); if(((mode == Mode.IN) && p.getInBinding().isBody())|| ((mode == Mode.OUT) && p.getOutBinding().isBody())){ JAXBBridgeInfo bi = new JAXBBridgeInfo(getBridge(p.getTypeReference()), null); payload.addParameter(bi); } } //add unbounded parts for(Parameter p:unboundParams){ wrapperParameter.addWrapperChild(p); } payloadMap.put(wrapperParameter.getName(), payload); }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/3a9675ad9d0a09b85ffc682d52703310f2ee9427/RuntimeModel.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/model/RuntimeModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2230, 11647, 23707, 786, 5250, 12, 780, 1061, 461, 16, 18735, 1662, 4053, 1662, 16, 15689, 17642, 5250, 16, 8126, 1965, 13, 288, 3639, 18564, 23707, 6110, 2385, 273, 394, 18564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 11647, 23707, 786, 5250, 12, 780, 1061, 461, 16, 18735, 1662, 4053, 1662, 16, 15689, 17642, 5250, 16, 8126, 1965, 13, 288, 3639, 18564, 23707, 6110, 2385, 273, 394, 18564, ...
match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self:
match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child:
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp299_AST = null; tmp299_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp299_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp300_AST = null; tmp300_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp300_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp301_AST = null; tmp301_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp301_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp302_AST = null; tmp302_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp302_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp303_AST = null; tmp303_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp303_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp304_AST = null; tmp304_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp304_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp305_AST = null; tmp305_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp305_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp306_AST = null; tmp306_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp306_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp307_AST = null; tmp307_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp307_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp308_AST = null; tmp308_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp308_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp309_AST = null; tmp309_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp309_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp310_AST = null; tmp310_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp310_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp311_AST = null; tmp311_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp311_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp312_AST = null; tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 132: { org.exist.xquery.parser.XQueryAST tmp313_AST = null; tmp313_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp313_AST); match(132); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp314_AST = null; tmp314_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp314_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp315_AST = null; tmp315_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp315_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp316_AST = null; tmp316_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp316_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp317_AST = null; tmp317_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp317_AST); match(144); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 149: { org.exist.xquery.parser.XQueryAST tmp318_AST = null; tmp318_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp318_AST); match(149); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 150: { org.exist.xquery.parser.XQueryAST tmp319_AST = null; tmp319_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp319_AST); match(150); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp320_AST = null; tmp320_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp320_AST); match(145); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp321_AST = null; tmp321_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp321_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp322_AST = null; tmp322_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp322_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp323_AST = null; tmp323_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp323_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp324_AST = null; tmp324_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp324_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp325_AST = null; tmp325_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp325_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp326_AST = null; tmp326_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp326_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp327_AST = null; tmp327_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp327_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp328_AST = null; tmp328_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp328_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp329_AST = null; tmp329_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp329_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp330_AST = null; tmp330_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp330_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp332_AST = null; tmp332_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp332_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp333_AST = null; tmp333_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp333_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp334_AST = null; tmp334_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp334_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp335_AST = null; tmp335_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp335_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp336_AST = null; tmp336_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp336_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp337_AST = null; tmp337_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp337_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp338_AST = null; tmp338_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp338_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp339_AST = null; tmp339_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp339_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp340_AST = null; tmp340_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp340_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp341_AST = null; tmp341_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp341_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp342_AST = null; tmp342_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp342_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp343_AST = null; tmp343_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp343_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp344_AST = null; tmp344_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp344_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp345_AST = null; tmp345_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp345_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp346_AST = null; tmp346_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp346_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp347_AST = null; tmp347_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp347_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp348_AST = null; tmp348_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp348_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp349_AST = null; tmp349_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp349_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp350_AST = null; tmp350_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp350_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp351_AST = null; tmp351_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp351_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp352_AST = null; tmp352_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp352_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp353_AST = null; tmp353_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp353_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp354_AST = null; tmp354_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp354_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace: { org.exist.xquery.parser.XQueryAST tmp355_AST = null; tmp355_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp355_AST); match(LITERAL_xmlspace); if ( inputState.guessing==0 ) { name = "xmlspace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp356_AST = null; tmp356_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp356_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp357_AST = null; tmp357_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp357_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/969210006e6cb9fde8b28d06ed5a9eca60042541/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
NewsContentDefinition editCD = new NewsContentDefinition(cms, new Integer(idIntValue2));
NewsContentDefinition editCD = new NewsContentDefinition(cms, new Integer(idIntValue2));
public byte[] getContentEdit(CmsObject cms, CmsXmlWpTemplateFile template, String elementName, Hashtable parameters, String templateSelector) throws CmsException { boolean dateError = false; // System.err.println("--- Edit -"+template.toString()); String error = ""; GregorianCalendar actDate = new GregorianCalendar(); // session will be created or fetched I_CmsSession session = (CmsSession) cms.getRequestContext().getSession(true); // get value of hidden input field action String action = (String) parameters.get("action"); if(action == null) action = ""; //get value of id String id = (String) parameters.get("id"); if (id == null) id = ""; //System.err.println("getContentEdit: id= "+id); // set existing data in the content definition object //& go to the done section of the template if( action.equals("save") ) { //move to the done section in the template templateSelector = "done"; //get data from the template int idIntValue2 = Integer.valueOf(id).intValue(); String headline = (String) parameters.get("headline"); String description = (String) parameters.get("description"); String text = (String) parameters.get("text"); String author = (String) parameters.get("author"); String link = (String) parameters.get("link"); String linkText = (String) parameters.get("linkText"); String sDate = (String) parameters.get("date"); String channelName = (String)parameters.get("channel"); String a_info1 = (String)parameters.get("a_info1"); String a_info2 = (String)parameters.get("a_info2"); String a_info3 = (String)parameters.get("a_info3"); // create an Object to access the Id NewsChannelContentDefinition temp = new NewsChannelContentDefinition(channelName); int channelId = temp.getIntId(); GregorianCalendar date = null; headline.trim(); try{ date = NewsContentDefinition.string2date(sDate); }catch(ParseException e) { System.err.println("[" + this.getClass().getName() + "] " + e.getMessage()); dateError = true; } NewsContentDefinition editCD = new NewsContentDefinition(cms, new Integer(idIntValue2)); // ensure something was filled in! if((headline.equals("") || headline == null || dateError == true)) { templateSelector = "default"; template.setData("headline", headline); template.setData("descript", description); template.setData("text", text); template.setData("link", link); template.setData("linkText", linkText); template.setData("author", author); template.setData("date", NewsContentDefinition.date2string(actDate)); template.setData("a_info1", a_info1); template.setData("a_info2", a_info2); template.setData("a_info3", a_info3); // re-display data in selectbox session.putValue("checkSelectChannel", editCD.getChannel()); if( headline.equals("") || headline == null) { error += template.getProcessedDataValue("missing", this, parameters) + "<br>"; template.setData("error", error); template.setData("headlineHighlightStart", template.getData("redStart")); template.setData("headlineHighlightEnd", template.getData("redEnd")); } if(dateError == true) { error += template.getProcessedDataValue("dateError", this, parameters) +"<br>"; template.setData("dateHighlightStart", template.getData("redStart")); template.setData("dateHighlightEnd", template.getData("redEnd")); template.setData("error", error); } template.setData("setaction", "save"); // still not first time shown return startProcessing(cms, template, elementName, parameters, templateSelector); } //change the cd object content editCD.setHeadline(headline); editCD.setDescription(description); editCD.setText(text); editCD.setAuthor(author); editCD.setLink(link); editCD.setLink(linkText); editCD.setDate(date); editCD.setChannel(channelId); editCD.setA_info1(a_info1); editCD.setA_info2(a_info2); editCD.setA_info3(a_info3); try { editCD.write(cms); } catch (Exception e) { System.err.println("NewsEditBackoffice: couldnt update!"); System.err.println("[" + this.getClass().getName() + "] " + e.getMessage()); template.setData("error", e.toString()); template.setData("headline", headline); template.setData("descript", description); template.setData("text", text); template.setData("link", link); template.setData("linkText", linkText); template.setData("author", author); template.setData("date", NewsContentDefinition.date2string(actDate)); template.setData("a_info1", a_info1); template.setData("a_info2", a_info2); template.setData("a_info3", a_info3); template.setData("setaction", "save"); templateSelector = "default"; return startProcessing(cms, template, elementName, parameters, templateSelector); } } //START: first time here and got valid id parameter: // Fill the template with data! if(id != null && !id.equals("")) { //get data from cd object int idIntValue = Integer.valueOf(id).intValue(); NewsContentDefinition newsCD = new NewsContentDefinition(cms, new Integer(idIntValue)); //set the data from the CD in the template template.setData("headline", newsCD.getHeadline()); template.setData("descript", newsCD.getDescription()); template.setData("text", newsCD.getText()); template.setData("author", newsCD.getAuthor()); template.setData("link", newsCD.getLink()); template.setData("linkText", newsCD.getLinkText()); template.setData("date", newsCD.getDate()); template.setData("a_info1", newsCD.getA_info1()); template.setData("a_info2", newsCD.getA_info2()); template.setData("a_info3", newsCD.getA_info3()); template.setData("setaction", "save"); // re-display data in selectbox session.putValue("checkSelectChannel", newsCD.getChannel()); return startProcessing(cms, template, elementName, parameters, templateSelector); } //finally start the processing return startProcessing(cms, template, elementName, parameters, templateSelector); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/a80dad293083ec36179f99a238625d3037b6083c/NewsBackoffice.java/buggy/modules/news/src/com/opencms/modules/homepage/news/NewsBackoffice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 5154, 4666, 12, 4747, 921, 6166, 16, 6862, 6862, 16084, 59, 84, 2283, 812, 1542, 16, 6862, 6862, 514, 14453, 16, 6862, 6862, 18559, 1472, 16, 6862, 6862, 514, 1542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 5154, 4666, 12, 4747, 921, 6166, 16, 6862, 6862, 16084, 59, 84, 2283, 812, 1542, 16, 6862, 6862, 514, 14453, 16, 6862, 6862, 18559, 1472, 16, 6862, 6862, 514, 1542, ...
protected final boolean hasListeners() {
protected boolean hasListeners() {
protected final boolean hasListeners() { return handlerListeners != null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3dbf866b2b941a3bbaff8b6d250b7f0a91f06384/AbstractHandler.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/AbstractHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 1250, 711, 5583, 1435, 288, 202, 202, 2463, 1838, 5583, 480, 446, 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,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 1250, 711, 5583, 1435, 288, 202, 202, 2463, 1838, 5583, 480, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
variablesValue.put(variableName, indexObj);
if(variableName != null) variablesValue.put(variableName, indexObj);
public void setRepeatIdIndex(String repeatId, String variableName, int index) { // Update current element of nodeset in stack nodesetStack.pop(); nodesetStack.push(((List) nodesetStack.peek()).get(index - 1)); Integer indexObj = new Integer(index); // Store index for current repeat id, if one is specified if (repeatId != null) repeatIdToIndex.put(repeatId, indexObj); variablesValue.put(variableName, indexObj); }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/9f23108664aa921b76166c942dce7fc38794d16d/XFormsElementContext.java/buggy/src/java/org/orbeon/oxf/processor/xforms/output/element/XFormsElementContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 16750, 548, 1016, 12, 780, 7666, 548, 16, 514, 17834, 16, 509, 770, 13, 288, 3639, 368, 2315, 783, 930, 434, 2199, 278, 316, 2110, 3639, 2199, 278, 2624, 18, 5120, 5621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 16750, 548, 1016, 12, 780, 7666, 548, 16, 514, 17834, 16, 509, 770, 13, 288, 3639, 368, 2315, 783, 930, 434, 2199, 278, 316, 2110, 3639, 2199, 278, 2624, 18, 5120, 5621,...
return s67;
return s70;
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case EOL: case 15: return s63; case 23: return s30; case 22: return s39; case 49: return s16; case ID: return s67; default: NoViableAltException nvae = new NoViableAltException("", 4, 52, input); throw nvae; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/31d63bcc9d3d8766c62d2c237554a38462a57456/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, ...
XMLStringBuffer buffer = new XMLStringBuffer();
public void parse() throws IOException { // REVISIT: This method needs to be rewritten to improve performance: both // time and memory. We should be reading chunks and reporting chunks instead // of reading characters individually and reporting all the characters in // one callback. Also, currently we don't provide any locator information: // line number, column number, etc... so if we report an error it will appear // as if the invalid XML character was in the include parent. -- mrglavas XMLStringBuffer buffer = new XMLStringBuffer(); fReader = getReader(fSource); int ch; while((ch = fReader.read()) != -1) { if (isValid(ch)) { buffer.append((char)ch); } else if (XMLChar.isHighSurrogate(ch)) { int ch2 = fReader.read(); if (XMLChar.isLowSurrogate(ch2)) { // convert surrogates to a supplemental character int sup = XMLChar.supplemental((char)ch, (char)ch2); // supplemental character must be a valid XML character if (!isValid(sup)) { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "InvalidCharInContent", new Object[] { Integer.toString(sup, 16) }, XMLErrorReporter.SEVERITY_FATAL_ERROR); continue; } buffer.append((char) ch); buffer.append((char) ch2); } else { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "InvalidCharInContent", new Object[] { Integer.toString(ch, 16) }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } else { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "InvalidCharInContent", new Object[] { Integer.toString(ch, 16) }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } if (fHandler != null && buffer.length > 0) { fHandler.characters( buffer, fHandler.modifyAugmentations(null, true)); } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/562d16d2afda3a9a7941964eb8b1fc9c5a09f609/XIncludeTextReader.java/clean/src/org/apache/xerces/xinclude/XIncludeTextReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1435, 1216, 1860, 288, 3639, 368, 2438, 26780, 1285, 30, 1220, 707, 4260, 358, 506, 26768, 358, 21171, 9239, 30, 3937, 3639, 368, 813, 471, 3778, 18, 1660, 1410, 506, 645...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1435, 1216, 1860, 288, 3639, 368, 2438, 26780, 1285, 30, 1220, 707, 4260, 358, 506, 26768, 358, 21171, 9239, 30, 3937, 3639, 368, 813, 471, 3778, 18, 1660, 1410, 506, 645...
newFilters[i] = createFilter(sections[i].getName());
newFilters[i] = createFilter(sections[i].getID());
private void restoreFilters() { IDialogSettings settings = getFiltersSection(false); if (settings == null){ //Check if we have an old filter setting around IDialogSettings mainSettings = getDialogSettings(); IDialogSettings filtersSection = mainSettings.getSection(OLD_FILTER_SECTION); if(filtersSection != null){ MarkerFilter markerFilter = createFilter(MarkerMessages.MarkerFilter_defaultFilterName); markerFilter.restoreState(filtersSection); setFilters(new MarkerFilter[] {markerFilter}); } } else{ IDialogSettings[] sections = settings.getSections(); MarkerFilter[] newFilters = new MarkerFilter[sections.length]; for (int i = 0; i < sections.length; i++) { newFilters[i] = createFilter(sections[i].getName()); newFilters[i].restoreState(sections[i]); } setFilters(newFilters); } if (markerFilters.length == 0){// Make sure there is at least a default MarkerFilter filter = createFilter( MarkerMessages.MarkerFilter_defaultFilterName); filter.resetState(); setFilters(new MarkerFilter[] { filter }); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5217, 5422, 1435, 288, 202, 202, 734, 3529, 2628, 1947, 273, 25175, 5285, 12, 5743, 1769, 202, 202, 430, 261, 4272, 422, 446, 15329, 1082, 202, 759, 1564, 309, 732, 1240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5217, 5422, 1435, 288, 202, 202, 734, 3529, 2628, 1947, 273, 25175, 5285, 12, 5743, 1769, 202, 202, 430, 261, 4272, 422, 446, 15329, 1082, 202, 759, 1564, 309, 732, 1240, ...
_log.error("Timeout: found? " + _found, getAddedBy());
if (_log.shouldLog(Log.WARN)) _log.warn("Timeout: found? " + _found, getAddedBy());
public void runJob() { _log.error("Timeout: found? " + _found, getAddedBy()); if (!_found) testFailed(getContext().clock().now() - _started); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/9e5fe7d2b6b1021feed75ebf5156f3ae8688026f/TestJob.java/buggy/router/java/src/net/i2p/router/tunnel/pool/TestJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 2278, 1435, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 389, 1330, 18, 8935, 2932, 2694, 30, 1392, 35, 315, 397, 389, 7015, 16, 336, 8602...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2278, 1435, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 389, 1330, 18, 8935, 2932, 2694, 30, 1392, 35, 315, 397, 389, 7015, 16, 336, 8602...
if (setOption != option) { getToolSettingsPreferenceStore().setValue(setOption.getId(), listStr); }
public boolean performOk() { // Do the super-class thang boolean result = super.performOk(); //parse and store all build options in the corresponding preference store //parseAllOptions(); // Write the preference store values back to the build model IOptionCategory category = (IOptionCategory)tool; Object[][] options; if ( isItResourceConfigPage ) { options = category.getOptions(resConfig); } else { options = category.getOptions(configuration); } if ( options == null) return true; for (int i = 0; i < options.length; i++) { ITool tool = (ITool)options[i][0]; if (tool == null) break; // The array may not be full IOption option = (IOption)options[i][1]; try { // Transfer value from preference store to options IOption setOption = null; switch (option.getValueType()) { case IOption.BOOLEAN : boolean boolVal = getToolSettingsPreferenceStore().getBoolean(option.getId()); setOption = ManagedBuildManager.setOption(configuration, tool, option, boolVal); // Reset the preference store since the Id may have changed if (setOption != option) { getToolSettingsPreferenceStore().setValue(setOption.getId(), boolVal); } break; case IOption.ENUMERATED : String enumVal = getToolSettingsPreferenceStore().getString(option.getId()); String enumId = option.getEnumeratedId(enumVal); setOption = ManagedBuildManager.setOption(configuration, tool, option, (enumId != null && enumId.length() > 0) ? enumId : enumVal); // Reset the preference store since the Id may have changed if (setOption != option) { getToolSettingsPreferenceStore().setValue(setOption.getId(), enumVal); } break; case IOption.STRING : String strVal = getToolSettingsPreferenceStore().getString(option.getId()); setOption = ManagedBuildManager.setOption(configuration, tool, option, strVal); // Reset the preference store since the Id may have changed if (setOption != option) { getToolSettingsPreferenceStore().setValue(setOption.getId(), strVal); } break; case IOption.STRING_LIST : case IOption.INCLUDE_PATH : case IOption.PREPROCESSOR_SYMBOLS : case IOption.LIBRARIES : case IOption.OBJECTS : String listStr = getToolSettingsPreferenceStore().getString(option.getId()); String[] listVal = BuildToolsSettingsStore.parseString(listStr); setOption = ManagedBuildManager.setOption(configuration, tool, option, listVal); // Reset the preference store since the Id may have changed if (setOption != option) { getToolSettingsPreferenceStore().setValue(setOption.getId(), listStr); } break; default : break; } // Call an MBS CallBack function to inform that Settings related to Apply/OK button // press have been applied. if (setOption == null) setOption = option; if (setOption.getValueHandler().handleValue( getConfigurationHandle(), setOption.getOptionHolder(), setOption, setOption.getValueHandlerExtraArgument(), IManagedOptionValueHandler.EVENT_APPLY)) { // TODO : Event is handled successfully and returned true. // May need to do something here say log a message. } else { // Event handling Failed. } } catch (BuildException e) {} } // Save the tool command if it has changed // Get the actual value out of the field editor String command = getToolSettingsPreferenceStore().getString(tool.getId()); if (command.length() > 0 && (!command.equals(tool.getToolCommand()))) { if ( isItResourceConfigPage ) { ManagedBuildManager.setToolCommand(resConfig, tool, command); } else { ManagedBuildManager.setToolCommand(configuration, tool, command); } } return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/BuildToolSettingsPage.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 1435, 288, 202, 202, 759, 2256, 326, 2240, 17, 1106, 286, 539, 202, 202, 6494, 563, 273, 225, 2240, 18, 16092, 8809, 5621, 9506, 202, 759, 2670, 471, 1707, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 1435, 288, 202, 202, 759, 2256, 326, 2240, 17, 1106, 286, 539, 202, 202, 6494, 563, 273, 225, 2240, 18, 16092, 8809, 5621, 9506, 202, 759, 2670, 471, 1707, 7...
if(m_pattern != null) { regexp = new RegularExpr(m_pattern);
if(pattern != null) { regexp = new RegularExpr(pattern);
public boolean doLIST(String argument, Writer out) throws IOException { // parse argument if(!parse(argument)) { return false; } FileObject[] files = null; try { files = m_fileSystemView.listFiles(m_file); } catch(FtpException ex) { } if(files == null) { return false; } // Arrays.sort(files, new FileComparator()); RegularExpr regexp = null; if(m_pattern != null) { regexp = new RegularExpr(m_pattern); } for(int i=0; i<files.length; i++) { if(files[i] == null) { continue; } if ( (!m_isAllOption) && files[i].isHidden() ) { continue; } if( (regexp != null) && (!regexp.isMatch(files[i].getShortName())) ) { continue; } printLine(files[i], out); out.write(NEWLINE); } out.flush(); return true; }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/DirectoryLister.java/clean/src/java/org/apache/ftpserver/DirectoryLister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 741, 7085, 12, 780, 1237, 16, 5497, 596, 13, 1216, 1860, 288, 7734, 368, 1109, 1237, 3639, 309, 12, 5, 2670, 12, 3446, 3719, 288, 5411, 327, 629, 31, 3639, 289, 7734, 1387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 741, 7085, 12, 780, 1237, 16, 5497, 596, 13, 1216, 1860, 288, 7734, 368, 1109, 1237, 3639, 309, 12, 5, 2670, 12, 3446, 3719, 288, 5411, 327, 629, 31, 3639, 289, 7734, 1387, ...
public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:642:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:642:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1583); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:643:17: ( constraint[constraints] | predicate[constraints] ) int alt45=2; int LA45_0 = input.LA(1); if ( LA45_0==EOL||LA45_0==15 ) { alt45=1; } else if ( LA45_0==ID ) { int LA45_2 = input.LA(2); if ( LA45_2==30 ) { int LA45_3 = input.LA(3); if ( LA45_3==ID ) { int LA45_8 = input.LA(4); if ( LA45_8==50 ) { alt45=2; } else if ( LA45_8==EOL||LA45_8==15||(LA45_8>=22 && LA45_8<=23)||(LA45_8>=40 && LA45_8<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("643:17: ( constraint[constraints] | predicate[constraints] )", 45, 8, input); throw nvae; } } else if ( LA45_3==EOL||LA45_3==15 ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("643:17: ( constraint[constraints] | predicate[constraints] )", 45, 3, input); throw nvae; } } else if ( LA45_2==EOL||LA45_2==15||(LA45_2>=22 && LA45_2<=23)||(LA45_2>=40 && LA45_2<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("643:17: ( constraint[constraints] | predicate[constraints] )", 45, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("643:17: ( constraint[constraints] | predicate[constraints] )", 45, 0, input); throw nvae; } switch (alt45) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:643:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1588); constraint(constraints); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:643:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1591); predicate(constraints); following.pop(); } break; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:644:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop47: do { int alt47=2; alt47 = dfa47.predict(input); switch (alt47) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:644:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1599); opt_eol(); following.pop(); match(input,22,FOLLOW_22_in_constraints1601); following.push(FOLLOW_opt_eol_in_constraints1603); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:644:39: ( constraint[constraints] | predicate[constraints] ) int alt46=2; int LA46_0 = input.LA(1); if ( LA46_0==EOL||LA46_0==15 ) { alt46=1; } else if ( LA46_0==ID ) { int LA46_2 = input.LA(2); if ( LA46_2==30 ) { int LA46_3 = input.LA(3); if ( LA46_3==ID ) { int LA46_8 = input.LA(4); if ( LA46_8==50 ) { alt46=2; } else if ( LA46_8==EOL||LA46_8==15||(LA46_8>=22 && LA46_8<=23)||(LA46_8>=40 && LA46_8<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("644:39: ( constraint[constraints] | predicate[constraints] )", 46, 8, input); throw nvae; } } else if ( LA46_3==EOL||LA46_3==15 ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("644:39: ( constraint[constraints] | predicate[constraints] )", 46, 3, input); throw nvae; } } else if ( LA46_2==EOL||LA46_2==15||(LA46_2>=22 && LA46_2<=23)||(LA46_2>=40 && LA46_2<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("644:39: ( constraint[constraints] | predicate[constraints] )", 46, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("644:39: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); throw nvae; } switch (alt46) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:644:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1606); constraint(constraints); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:644:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1609); predicate(constraints); following.pop(); } break; } } break; default : break loop47; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1617); 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/2c627236020a6a6e3e349b38b1010bfe64567df7/RuleParser.java/buggy/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, 540, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, ...
case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)];
} case TokenStream.BINDNAME : { String name = strings[getShort(iCode, pc + 1)];
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; 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; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { 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; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
RecognizerUtilities.debugMessageOut("loading " + grammarURL);
static private void loadImports(Recognizer R, RuleGrammar G,URL context, boolean recurse,boolean relo,Vector grams) throws GrammarException, IOException { RuleGrammar G2=null; RuleName imports[] = G.listImports(); if (imports != null) { for (int i=0; i<imports.length; i++) { RecognizerUtilities.debugMessageOut("Checking import " + imports[i].getRuleName()); String gname = imports[i].getFullGrammarName(); RuleGrammar GI = R.getRuleGrammar(gname); if ((GI != null) && relo) { } if (GI == null) { URL grammarURL = gnameToURL(context,imports[i].getFullGrammarName()); RecognizerUtilities.debugMessageOut("loading " + grammarURL); G2 = JSGFParser.newGrammarFromJSGF(grammarURL, R); if (G2 == null) { RecognizerUtilities.debugMessageOut( "ERROR LOADING GRAMMAR " + grammarURL); } else { if (grams!=null) grams.addElement(G2); if (recurse) loadImports(R,G2,context,recurse,relo,grams); } } } } }
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/a276c7c88efa494a8d70071a274079246448a2ac/BaseRecognizer.java/buggy/com/sun/speech/engine/recognition/BaseRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 918, 1262, 13347, 12, 28131, 534, 16, 6781, 18576, 611, 16, 1785, 819, 16, 6862, 565, 1250, 11502, 16, 6494, 283, 383, 16, 5018, 24663, 87, 13, 3639, 1216, 27809, 503, 16, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 1262, 13347, 12, 28131, 534, 16, 6781, 18576, 611, 16, 1785, 819, 16, 6862, 565, 1250, 11502, 16, 6494, 283, 383, 16, 5018, 24663, 87, 13, 3639, 1216, 27809, 503, 16, 18...
super (bb.remaining () >> 1, bb.remaining () >> 1, bb.position (), 0);
super (capacity, capacity, 0, -1);
public CharViewBufferImpl (ByteBuffer bb, boolean readOnly) { super (bb.remaining () >> 1, bb.remaining () >> 1, bb.position (), 0); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from CharByteBufferImpl and ByteBuffer has changed its endianess ? this.endian = bb.order (); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/cbc6b01a62d01a3bd4a11282dcdebf781800adb9/CharViewBufferImpl.java/clean/libraries/javalib/java/nio/CharViewBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3703, 1767, 1892, 2828, 261, 12242, 7129, 16, 1250, 15075, 13, 225, 288, 565, 2240, 261, 16017, 16, 7519, 16, 374, 16, 300, 21, 1769, 565, 333, 18, 9897, 273, 7129, 31, 565, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3703, 1767, 1892, 2828, 261, 12242, 7129, 16, 1250, 15075, 13, 225, 288, 565, 2240, 261, 16017, 16, 7519, 16, 374, 16, 300, 21, 1769, 565, 333, 18, 9897, 273, 7129, 31, 565, 333, ...
String taskTempDir = systemDir + "/" + task.getJobId() + "/" + task.getTipId(); fs.delete(new Path(taskTempDir)) ;
Path taskTempDir = new Path(systemDir + "/" + task.getJobId() + "/" + task.getTipId()); if( fs.exists(taskTempDir)){ fs.delete(taskTempDir) ; }
public synchronized void jobHasFinished() throws IOException { if (getRunState() == TaskStatus.State.RUNNING) { killAndCleanup(false); } else { cleanup(); } if (keepJobFiles) return; // Delete temp directory in case any task used PhasedFileSystem. try{ String systemDir = task.getConf().get("mapred.system.dir"); String taskTempDir = systemDir + "/" + task.getJobId() + "/" + task.getTipId(); fs.delete(new Path(taskTempDir)) ; }catch(IOException e){ LOG.warn("Error in deleting reduce temporary output",e); } // delete the job diretory for this task // since the job is done/failed this.defaultJobConf.deleteLocalFiles(SUBDIR + Path.SEPARATOR + JOBCACHE + Path.SEPARATOR + task.getJobId()); }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/9720bb8d357706bdee97a5c5d8321f72c3e07cbb/TaskTracker.java/buggy/src/java/org/apache/hadoop/mapred/TaskTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 1719, 5582, 10577, 1435, 1216, 1860, 288, 540, 202, 2398, 309, 261, 588, 1997, 1119, 1435, 422, 29628, 18, 1119, 18, 29358, 13, 288, 7734, 8673, 1876, 15007, 12, 5743, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1719, 5582, 10577, 1435, 1216, 1860, 288, 540, 202, 2398, 309, 261, 588, 1997, 1119, 1435, 422, 29628, 18, 1119, 18, 29358, 13, 288, 7734, 8673, 1876, 15007, 12, 5743, 17...
public MCParticle getMCParticle()
public MCParticle getMCParticle() throws DataNotAvailableException
public MCParticle getMCParticle() { if (particle instanceof SIORef) particle = ((SIORef) particle).getObject(); return (MCParticle) particle; }
1507 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1507/9ece36295a1c0dab686ac92503623de5bfd3c117/SIOSimTrackerHit.java/clean/src/java/hep/lcio/implementation/sio/SIOSimTrackerHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 24105, 1988, 3711, 2108, 39, 1988, 3711, 1435, 225, 1216, 1910, 1248, 5268, 503, 282, 288, 1377, 309, 261, 2680, 3711, 1276, 348, 4294, 1957, 13, 540, 20036, 273, 14015, 2320, 51, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1071, 24105, 1988, 3711, 2108, 39, 1988, 3711, 1435, 225, 1216, 1910, 1248, 5268, 503, 282, 288, 1377, 309, 261, 2680, 3711, 1276, 348, 4294, 1957, 13, 540, 20036, 273, 14015, 2320, 51, 1...
void dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int count, TextHitInfo caret, TextHitInfo visiblePosition);
void dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int count, TextHitInfo caret, TextHitInfo visiblePosition);
void dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int count, TextHitInfo caret, TextHitInfo visiblePosition);
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/InputMethodContext.java/clean/core/src/classpath/java/java/awt/im/spi/InputMethodContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3435, 1210, 1305, 1133, 12, 474, 612, 16, 2380, 11050, 7069, 3198, 977, 16, 509, 1056, 16, 3867, 13616, 966, 21683, 16, 3867, 13616, 966, 6021, 2555, 1769, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3435, 1210, 1305, 1133, 12, 474, 612, 16, 2380, 11050, 7069, 3198, 977, 16, 509, 1056, 16, 3867, 13616, 966, 21683, 16, 3867, 13616, 966, 6021, 2555, 1769, 2, -100, -100, -100,...
Rectangle r = getBounds();
Rectangle r = getBounds();
public FigSeqObject() { _name.setLineWidth(0); _name.setFilled(false); _name.setUnderline(true); Dimension nameMin = _name.getMinimumSize(); _name.setBounds(10, 10, 90, nameMin.height); _bigPort = new FigRect(10, 10, 90, 50, Color.cyan, Color.cyan); _cover = new FigRect(10, 10, 90, 50, Color.black, Color.white); _lifeline = new FigRect(50, 10+nameMin.height, 10, 40, Color.black, Color.white); //object's termination symbol _terminateLine1 = new FigLine(10,49,19,49, Color.black); _terminateLine2 = new FigLine(19,49,10,49, Color.black); _ports = new Vector(); _activations = new Vector(); _dynObjects = ""; _dynVector = new Vector(); // add Figs to the FigNode in back-to-front order // bigPort,cover,name,lifeline addFig(_bigPort); addFig(_cover); addFig(_name); addFig(_lifeline); // add termination symbol addFig(_terminateLine1); addFig(_terminateLine2); Rectangle r = getBounds(); setBounds(r.x, r.y, r.width, r.height, 0); // default y position of rapid buttons _yPos = r.y + r.height /2; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigSeqObject.java/buggy/src_new/org/argouml/uml/diagram/sequence/ui/FigSeqObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 478, 360, 6926, 921, 1435, 288, 565, 389, 529, 18, 542, 1670, 2384, 12, 20, 1769, 565, 389, 529, 18, 542, 29754, 12, 5743, 1769, 565, 389, 529, 18, 542, 14655, 1369, 12, 3767, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 360, 6926, 921, 1435, 288, 565, 389, 529, 18, 542, 1670, 2384, 12, 20, 1769, 565, 389, 529, 18, 542, 29754, 12, 5743, 1769, 565, 389, 529, 18, 542, 14655, 1369, 12, 3767, 1...
collectElements(_model,profile,false);
if(_model != null) { collectElements(_model,profile,false); }
public void targetChanged() { Object target = _container.getTarget(); if(target instanceof MModelElement) { MModel model = ((MModelElement) target).getModel(); if(model != _model) { _model = model; _set.clear(); Profile profile = _container.getProfile(); if(_allowVoid) { _set.add(new UMLComboBoxEntry(null,profile,false)); } collectElements(_model,profile,false); if(_addElementsFromProfileModel) { MModel profileModel = profile.getProfileModel(); if(profileModel != null) { collectElements(profileModel,profile,true); } } // // scan for name collisions // Iterator iter = _set.iterator(); String before = null; UMLComboBoxEntry currentEntry = null; String current = null; UMLComboBoxEntry afterEntry = null; String after = null; while(iter.hasNext()) { before = current; currentEntry = afterEntry; current = after; afterEntry = (UMLComboBoxEntry) iter.next(); after = afterEntry.getShortName(); if(currentEntry != null) currentEntry.checkCollision(before,after); } if(afterEntry != null) afterEntry.checkCollision(current,null); fireContentsChanged(this,0,_set.size()); } // // get current value // try { Object current = _getMethod.invoke(_container,_noArgs); Iterator iter = _set.iterator(); UMLComboBoxEntry entry; while(iter.hasNext()) { entry = (UMLComboBoxEntry) iter.next(); if(!entry.isPhantom() && entry.getElement(model) == current) { _selectedItem = entry; } } } catch(Exception e) { e.printStackTrace(); _selectedItem = null; } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/149fac739d5456cf1dd33740c1e9d498e2046fa6/UMLComboBoxModel.java/buggy/src_new/org/argouml/uml/ui/UMLComboBoxModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1018, 5033, 1435, 288, 3639, 1033, 1018, 273, 389, 3782, 18, 588, 2326, 5621, 3639, 309, 12, 3299, 1276, 490, 1488, 1046, 13, 288, 5411, 490, 1488, 938, 273, 14015, 49, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1018, 5033, 1435, 288, 3639, 1033, 1018, 273, 389, 3782, 18, 588, 2326, 5621, 3639, 309, 12, 3299, 1276, 490, 1488, 1046, 13, 288, 5411, 490, 1488, 938, 273, 14015, 49, 1488, ...