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
String type = field.getType(); String ownerName = (field.getOwner().equals(classNode.getName()))
Type type = field.getType(); String ownerName = (field.getOwner().equals(classNode.getType()))
public void loadInstanceField(FieldExpression fldExp) { FieldNode field = fldExp.getField(); boolean holder = field.isHolder() && !isInClosureConstructor(); String type = field.getType(); String ownerName = (field.getOwner().equals(classNode.getName())) ? internalClassName : org.objectweb.asm.Type.getInternalName(loadClass(field.getOwner())); cv.visitVarInsn(ALOAD, 0); cv.visitFieldInsn(GETFIELD, ownerName, fldExp.getFieldName(), BytecodeHelper.getTypeDescription(type)); if (holder) { cv.visitMethodInsn(INVOKEVIRTUAL, "groovy/lang/Reference", "get", "()Ljava/lang/Object;"); } else { if (BytecodeHelper.isPrimitiveType(type)) { helper.box(type); } else { } } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/0e621fdecf3e8ab9db2fe9eea10bae5d2dc4b695/AsmClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 1442, 974, 12, 974, 2300, 9880, 2966, 13, 288, 377, 202, 974, 907, 652, 273, 9880, 2966, 18, 588, 974, 5621, 3639, 1250, 10438, 273, 652, 18, 291, 6064, 1435, 597, 401, 291, 382, 10573, 6293, 5621, 3639, 514, 618, 273, 652, 18, 588, 559, 5621, 3639, 514, 3410, 461, 273, 261, 1518, 18, 588, 5541, 7675, 14963, 12, 1106, 907, 18, 17994, 1435, 3719, 9506, 202, 35, 2713, 3834, 9506, 202, 30, 2358, 18, 1612, 4875, 18, 23522, 18, 559, 18, 588, 3061, 461, 12, 945, 797, 12, 1518, 18, 588, 5541, 1435, 10019, 3639, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 374, 1769, 202, 202, 19774, 18, 11658, 974, 11796, 12, 3264, 6776, 16, 3410, 461, 16, 9880, 2966, 18, 588, 7287, 9334, 2525, 16651, 2276, 18, 588, 559, 3291, 12, 723, 10019, 202, 202, 430, 261, 4505, 13, 288, 1082, 202, 19774, 18, 11658, 1305, 11796, 12, 706, 17691, 41, 26854, 16, 315, 75, 12859, 19, 4936, 19, 2404, 3113, 315, 588, 3113, 25605, 21159, 19, 4936, 19, 921, 4868, 1769, 202, 202, 97, 469, 288, 1082, 202, 430, 261, 858, 16651, 2276, 18, 291, 9840, 559, 12, 723, 3719, 288, 9506, 202, 4759, 18, 2147, 12, 723, 1769, 1082, 202, 97, 469, 288, 1082, 202, 97, 202, 202, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 1442, 974, 12, 974, 2300, 9880, 2966, 13, 288, 377, 202, 974, 907, 652, 273, 9880, 2966, 18, 588, 974, 5621, 3639, 1250, 10438, 273, 652, 18, 291, 6064, 1435, 597, 401, 291, 382, 10573, 6293, 5621, 3639, 514, 618, 273, 652, 18, 588, 559, 5621, 3639, 514, 3410, 461, 273, 261, 1518, 18, 588, 5541, 7675, 14963, 12, 1106, 907, 18, 17994, 1435, 3719, 9506, 202, 35, 2713, 3834, 9506, 202, 30, 2358, 18, 1612, 4875, 18, 23522, 18, 559, 18, 588, 3061, 461, 12, 945, 797, 12, 1518, 18, 588, 5541, 1435, 10019, 3639, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 374, 1769, 202, 202, 19774, 18, 11658, 974, 11796, 2 ]
c.popBFC();
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockFormattingContext() == null) { outerBox.setParent(c.getCtx().getRootBox()); BlockFormattingContext bfc = new BlockFormattingContext(outerBox, c); c.pushBFC(bfc); set_bfc = true; bfc.setWidth((int) c.getExtents().getWidth()); } } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); outerBox.x = c.getExtents().x; outerBox.y = c.getExtents().y; //HACK: for now outerBox.width = c.getExtents().width; outerBox.height = c.getExtents().height; TableBox tableBox = new TableBox(); tableBox.element = content.getElement(); //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } else { c.pushStyle(CascadedStyle.emptyCascadedStyle); } VerticalMarginCollapser.collapseVerticalMargins(c, tableBox, content, (float) oe.getWidth()); TableContent tableContent = (TableContent) content; if (tableContent.isTopMarginCollapsed()) { tableBox.setMarginTopOverride(0f); } if (tableContent.isBottomMarginCollapsed()) { tableBox.setMarginBottomOverride(0f); } Border border = c.getCurrentStyle().getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = tableBox.getMarginWidth(c, (float) oe.getWidth()); Border padding = c.getCurrentStyle().getPaddingWidth((float) oe.getWidth(), (float) oe.getWidth(), c.getCtx()); int tx = margin.left + border.left + padding.left; int ty = margin.top + border.top + padding.top; tableBox.tx = tx; tableBox.ty = ty; c.translate(tx, ty); c.shrinkExtents(tx + margin.right + border.right + padding.right, ty + margin.bottom + border.bottom + padding.bottom); IdentValue borderStyle = c.getCurrentStyle().getIdent(CSSName.BORDER_COLLAPSE); int borderSpacingHorizontal = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.FS_BORDER_SPACING_HORIZONTAL, 0, c.getCtx()); int borderSpacingVertical = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.FS_BORDER_SPACING_VERTICAL, 0, c.getCtx()); layoutChildren(c, tableBox, content, false, borderSpacingHorizontal, borderSpacingVertical); c.unshrinkExtents(); c.translate(-tx, -ty); //OK, now we basically have the maximum cell widths, is that a smart order? //TODO: percentages? if (c.getCurrentStyle().isIdent(CSSName.WIDTH, IdentValue.AUTO)) { //we're normally fine, unless the maximum width is greater than the extents fixWidths(tableBox, borderSpacingHorizontal); } else {//if the algorithm is fixed, we need to do something else from the start int givenWidth = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.WIDTH, c.getExtents().width, c.getCtx()); //also fine, if the total calculated is less than the extents and the width if (tableBox.width < givenWidth) { tableBox.width = givenWidth; fixWidths(tableBox, borderSpacingHorizontal); } else { c.getExtents().width = 1; c.translate(tx, ty); int[] preferredColumns = tableBox.columns; tableBox.columns = null; tableBox.removeAllChildren(); tableBox.width = 0; tableBox.height = 0; layoutChildren(c, tableBox, content, false, borderSpacingHorizontal, borderSpacingVertical); c.translate(-tx, -ty); //here the table is layed out with minimum column widths if (tableBox.width < givenWidth) { //do it right tableBox.width = givenWidth; tableBox.removeAllChildren(); fixWidths(tableBox, borderSpacingHorizontal, preferredColumns); c.translate(tx, ty); tableBox.width = 0; tableBox.height = 0; layoutChildren(c, tableBox, content, true, borderSpacingHorizontal, borderSpacingVertical); c.translate(-tx, -ty); } } } //now the width is settled, fix vertical alignment for (Iterator i = tableBox.getChildIterator(); i.hasNext();) { Object o = i.next(); if (o instanceof RowBox) { fixVerticalAlign(c, (RowBox) o); } } // calculate the total outer width tableBox.width = margin.left + border.left + padding.left + tableBox.width + padding.right + border.right + margin.right; tableBox.height = margin.top + border.top + padding.top + tableBox.height + padding.bottom + border.bottom + margin.bottom; c.popStyle(); //restore the extents c.setExtents(oe); // remove the outtermost bfc if (set_bfc) { c.getBlockFormattingContext().doFinalAdjustments(); //no! clear it in BasicPanel instead! c.popBFC(); } return tableBox;//HACK: }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea25c36d8670e0a2297b9a25e4765c46f98952c5/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 1071, 71, 18, 5120, 38, 4488, 5621, 760, 71, 18, 5120, 38, 4488, 5621, 8549, 71, 18, 5120, 38, 4488, 5621, 3511, 12, 1042, 71, 18, 5120, 38, 4488, 5621, 276, 16, 71, 18, 5120, 38, 4488, 5621, 3697, 71, 18, 5120, 38, 4488, 5621, 913, 13, 71, 18, 5120, 38, 4488, 5621, 288, 71, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 8549, 71, 18, 5120, 38, 4488, 5621, 6390, 3514, 31, 759, 451, 557, 18, 5120, 38, 4488, 5621, 6390, 71, 18, 5120, 38, 4488, 5621, 3919, 71, 18, 5120, 38, 4488, 5621, 2026, 71, 18, 5120, 38, 4488, 5621, 506, 71, 18, 5120, 38, 4488, 5621, 1203, 71, 18, 5120, 38, 4488, 5621, 578, 71, 18, 5120, 38, 4488, 5621, 316, 7511, 557, 18, 5120, 38, 4488, 5621, 1203, 71, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 1250, 71, 18, 5120, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 1071, 71, 18, 5120, 38, 4488, 5621, 760, 71, 18, 5120, 38, 4488, 5621, 8549, 71, 18, 5120, 38, 4488, 5621, 3511, 12, 1042, 71, 18, 5120, 38, 4488, 5621, 276, 16, 71, 18, 5120, 38, 4488, 5621, 3697, 71, 18, 5120, 38, 4488, 5621, 913, 13, 71, 18, 5120, 38, 4488, 5621, 288, 71, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 5621, 276, 18, 5120, 38, 4488, 2 ]
return RubyFixnum.newFixnum(getRuntime(), getLength());
return getRuntime().newFixnum(getLength());
public RubyFixnum length() { return RubyFixnum.newFixnum(getRuntime(), getLength()); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaArray.java/buggy/src/org/jruby/javasupport/JavaArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 769, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 588, 1782, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 769, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 588, 1782, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.err.println(message + " - " + ze.getMessage());
private static void saveItem(ZipFile zipFile, String rootDirName, ZipEntry entry) throws ZipException, IOException { InputStream is = null; BufferedInputStream inStream = null; FileOutputStream outStream = null; BufferedOutputStream bufferedOutStream = null; try { File file = new File(rootDirName, entry.getName()); if (entry.isDirectory()) { file.mkdirs(); } else { is = zipFile.getInputStream(entry); inStream = new BufferedInputStream(is); File dir = new File(file.getParent()); dir.mkdirs(); outStream = new FileOutputStream(file); bufferedOutStream = new BufferedOutputStream(outStream); int c; while ((c = inStream.read()) != -1) { bufferedOutStream.write((byte) c); } } } catch (ZipException ze) { String message = "Zip error unzipping entry: " + entry.getName(); LOG.error(message, ze); System.err.println(message + " - " + ze.getMessage()); throw new RuntimeException(message, ze); } catch (IOException ioe) { String message = "I/O error unzipping entry: " + entry.getName(); LOG.error(message, ioe); System.err.println(message + " - " + ioe.getMessage()); throw new RuntimeException(message, ioe); } finally { if (bufferedOutStream != null) { bufferedOutStream.close(); } if (inStream != null) { inStream.close(); } } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/2c85e0021203d96ece16c5bbfb40ebb70caeeb07/ZipUtil.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ZipUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, 3639, 12942, 28997, 273, 446, 31, 3639, 28649, 11445, 1182, 1228, 273, 446, 31, 3639, 775, 288, 5411, 1387, 585, 273, 394, 1387, 12, 3085, 28780, 16, 1241, 18, 17994, 10663, 5411, 309, 261, 4099, 18, 291, 2853, 10756, 288, 7734, 585, 18, 24816, 8291, 5621, 5411, 289, 469, 288, 7734, 353, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 7734, 28987, 273, 394, 24742, 12, 291, 1769, 7734, 1387, 1577, 273, 394, 1387, 12, 768, 18, 588, 3054, 10663, 7734, 1577, 18, 24816, 8291, 5621, 7734, 28997, 273, 394, 12942, 12, 768, 1769, 7734, 11445, 1182, 1228, 273, 394, 28649, 12, 659, 1228, 1769, 7734, 509, 276, 31, 7734, 1323, 14015, 71, 273, 28987, 18, 896, 10756, 480, 300, 21, 13, 288, 10792, 11445, 1182, 1228, 18, 2626, 12443, 7229, 13, 276, 1769, 7734, 289, 5411, 289, 3639, 289, 1044, 261, 9141, 503, 26637, 13, 288, 5411, 514, 883, 273, 315, 9141, 555, 20259, 1382, 1241, 30, 315, 397, 1241, 18, 17994, 5621, 5411, 2018, 18, 1636, 12, 2150, 16, 26637, 1769, 15604, 604, 394, 3235, 12, 2150, 16, 26637, 1769, 3639, 289, 1044, 261, 14106, 10847, 13, 288, 5411, 514, 883, 273, 315, 45, 19, 51, 555, 20259, 1382, 1241, 30, 315, 397, 1241, 18, 17994, 5621, 5411, 2018, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, 3639, 12942, 28997, 273, 446, 31, 3639, 28649, 11445, 1182, 1228, 273, 446, 31, 3639, 775, 288, 5411, 1387, 585, 273, 394, 1387, 12, 3085, 28780, 16, 1241, 18, 17994, 10663, 5411, 309, 261, 4099, 18, 291, 2853, 10756, 288, 7734, 585, 18, 24816, 8291, 5621, 5411, 289, 469, 288, 7734, 353, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 7734, 28987, 273, 394, 24742, 12, 291, 1769, 7734, 1387, 1577, 273, 394, 1387, 12, 768, 18, 588, 3054, 10663, 7734, 1577, 18, 24816, 2 ]
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { //log("start doPost"); // Lets validate the session and get the session if (super.checkSession(req,res) == false) { log("checkSession == false"); return ; } HttpSession session = req.getSession(false); // Lets get the standard parameters and validate them Properties params = super.getSessionParameters(req) ; if (super.checkParameters(req, res, params) == false) { log("getSessionParameters==false"); return ; } // Lets get the new chat parameters Properties chatParams = super.getNewChatParameters(req) ; if (super.checkParameters(req, res, chatParams) == false) { log("checkParameters==false"); //return ; } // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( !isUserAuthorized( req, res, user ) ) { log("isUserAuthorized==false"); return ; } // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String chatPoolServer = Utility.getDomainPref("chat_server",host) ; RmiConf rmi = new RmiConf(user) ; String action = req.getParameter("action"); if(action == null) { action = "" ; String header = "ChatCreator servlet. " ; ChatError err = new ChatError(req,res,header,3) ; log(header + err.getErrorMsg()) ; return ; } // ********* If a NEW CHAT is created ******** if(action.equalsIgnoreCase("ADD_CHAT")) { //log("action = ADD_CHAT") ; //*************** Get all New Chatparameters ******************** //get the msgTypes Vector msgTypesV ; if( (Vector)session.getValue("msgTypesV")==null ){ String[][] msgTypes = rmi.execProcedureMulti(chatPoolServer, "C_GetTheMsgTypesBase"); msgTypesV = super.convert2Vector(msgTypes); session.putValue("msgTypesV",msgTypesV); } msgTypesV = (Vector)session.getValue("msgTypesV"); //get the authorization types Vector autTypeV ; if( (Vector)session.getValue("autTypesV")==null ){ String[][] autTypes = rmi.execProcedureMulti(chatPoolServer, "C_GetAuthorizationTypes"); autTypeV = super.convert2Vector(autTypes); session.putValue("autTypesV",autTypeV); } autTypeV = (Vector)session.getValue("autTypesV"); //lets get the selected autotypes String[] selAuto = (req.getParameterValues("authorized")==null) ? new String[0] : (req.getParameterValues("authorized")); Vector selAutoV = super.convert2Vector(selAuto); //get existing rooms Vector roomsV = ( (Vector)session.getValue("roomList")==null ) ? new Vector() : (Vector)session.getValue("roomList"); //get existing new msgTypes Vector newMsgTypeV = ( (Vector)session.getValue("newMsgTypes")==null ) ? new Vector() : (Vector)session.getValue("newMsgTypes"); //****************If newRoom or newMsgTypebutton is pressed:************************ if ( req.getParameter("addRoom") != null || req.getParameter("addMsgType") != null) { //log("addRoom or addMsgType" ); VariableManager vm = new VariableManager() ; Html htm = new Html(); //get new parameters if ( req.getParameter("chatRoom")==null ){ chatParams.setProperty("chatRoom",""); }else{ chatParams.setProperty("chatRoom",req.getParameter("chatRoom").trim()); } if ( req.getParameter("msgType")==null ){ chatParams.setProperty("msgType"," ") ; }else{ chatParams.setProperty("msgType",req.getParameter("msgType").trim()); } String theRoom = chatParams.getProperty("chatRoom"); String theType = chatParams.getProperty("msgType"); //get all chatparameters Enumeration chatEnum = chatParams.propertyNames(); while (chatEnum.hasMoreElements()) { String paramName = (String)chatEnum.nextElement(); //Add new Room if ( req.getParameter("addRoom") != null && paramName.equals("chatRoom") ) { //add new room to roomlist theRoom = chatParams.getProperty(paramName) ; //log("Rum: " + theRoom ); roomsV.add(" "); roomsV.add( theRoom ); //add room to session session.putValue("roomList",roomsV); } //Add new MsgType else if ( req.getParameter("addMsgType") != null && paramName.equals("msgType") ) { //add new msgType to msgTypelist theType = chatParams.getProperty(paramName); //log("MsgTyp: " + theType); msgTypesV.add(" "); msgTypesV.add(theType); newMsgTypeV.add( theType ); //add type to session session.putValue("newMsgTypes",newMsgTypeV); session.putValue("msgTypesV",msgTypesV); } }//end while //ok lets set up the page String updateTime = chatParams.getProperty("updateTime"); //log("Updatetime: 1 " + updateTime); vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req)) ; vm.addProperty("chatRoom",chatParams.getProperty("chatRoom")); vm.addProperty("roomList", htm.createHtmlCode("ID_OPTION",theRoom, roomsV) ) ; vm.addProperty("msgType"," "); vm.addProperty("msgTypes", htm.createHtmlCode("ID_OPTION",theType, msgTypesV) ) ; vm.addProperty("authorized", htm.createHtmlCode("ID_OPTION",selAutoV, autTypeV) ) ; vm.addProperty("chatName",chatParams.getProperty("chatName") ); vm.addProperty("updateTime",chatParams.getProperty("updateTime") ); Vector buttonValues = new Vector();buttonValues.add("1");buttonValues.add("2");buttonValues.add("3"); vm.addProperty("reload", htm.createRadioButton("reload",buttonValues,chatParams.getProperty("reload") ) ); vm.addProperty("inOut", htm.createRadioButton("inOut",buttonValues,chatParams.getProperty("inOut") ) ); vm.addProperty("private", htm.createRadioButton("private",buttonValues,chatParams.getProperty("privat") ) ); vm.addProperty("public", htm.createRadioButton("public",buttonValues,chatParams.getProperty("publik") ) ); vm.addProperty("dateTime", htm.createRadioButton("dateTime",buttonValues,chatParams.getProperty("dateTime") ) ); vm.addProperty("font", htm.createRadioButton("font",buttonValues,chatParams.getProperty("font") ) ); sendHtml(req,res,vm, HTML_TEMPLATE) ; //log("end addRoom or addMsgType"); return ; }//end adding new msgTypes or rooms //get the new metaId String metaId = params.getProperty("META_ID") ; //log("metaid: "+ metaId); //check that its really a new metaId String foundMetaId = rmi.execSqlProcedureStr(chatPoolServer, "C_MetaIdExists " + metaId) ; if( !foundMetaId.equals("1") ) { action = "" ; String header = "ChatCreator servlet. " ; ChatError err = new ChatError(req,res,header,90) ; log(header + err.getErrorMsg()); return ; } //******************* save to db ********************************** // Lets add a new Chat to DB String chatName = chatParams.getProperty("chatName"); //log("chatName: " + chatName); String permission = chatParams.getProperty("permission"); //log("permission: "+permission); String sqlQ = "C_AddNewChat " + metaId + ",'" + chatName + "'," + permission; //log("C_AddNewChat sql:" + sqlQ ) ; rmi.execSqlUpdateProcedure(chatPoolServer, sqlQ) ; //lets save the rooms and assosiate them with this chat for (int i=0;i<roomsV.size();i+=2) { String newRsql = "C_AddNewChatRoom " +metaId + ", '" + roomsV.get(i+1)+"'"; //log("C_AddNewChatRoom sql:" + newRsql ) ; rmi.execSqlUpdateProcedure(chatPoolServer, newRsql) ; } //lets connect the standard msgTypes with the chat String[] tempTypes = rmi.execSqlProcedure(chatPoolServer, "C_GetBaseMsgTypes"); for(int i=0;i<tempTypes.length;i++) { String tempTypeId = rmi.execSqlProcedureStr(chatPoolServer, "C_GetMsgTypeId " + "'"+ tempTypes[i] +"'"); rmi.execSqlUpdateProcedure(chatPoolServer,"C_AddNewChatMsg " + tempTypeId + " , " + metaId ) ; } // Lets add the new msgTypes to the db /ugly but it works for (int i=0;i<newMsgTypeV.size();i++) { //save newMsgTypes to db //Lets get the highest msgId //String msgTypeId = rmi.execSqlProcedureStr(chatPoolServer, "C_GetMaxMsgTypeId"); String newMsql = "C_AddMessageType " + " '" + metaId + "', " + newMsgTypeV.get(i); //log("AddNewMsgType sql:" + newMsql ) ; rmi.execSqlUpdateProcedure(chatPoolServer,newMsql); } // Vector valuesV = new Vector(); String valuesS = "C_AddChatParams "; valuesS = valuesS + metaId +"," + chatParams.getProperty("updateTime")+"," + chatParams.getProperty("reload")+"," + chatParams.getProperty("inOut")+"," + chatParams.getProperty("privat")+"," + chatParams.getProperty("publik")+"," + chatParams.getProperty("dateTime")+"," + chatParams.getProperty("font") ; //log("valuesS: " + valuesS ); rmi.execSqlUpdateProcedure(chatPoolServer,valuesS); //ok lets add the authorization types //if there isnt any lets give everybody access //log("selAutoV.size()= "+selAutoV.size()); if (selAutoV.size() == 0) { selAutoV.addElement(new String("1")); } for(int i=0; i<selAutoV.size(); i++) { String newAutoSql = "C_ChatAutoTypes " + " '" + selAutoV.elementAt(i) + "', " + metaId; //System.out.println("ChatAutoTypes sql:" + newAutoSql ) ; rmi.execSqlUpdateProcedure(chatPoolServer,newAutoSql); } //put the parameters needed to create a chat in the session session.putValue("chatId",metaId); //session.putValue("roomList",roomsV); //session.putValue("msgTypes",msgTypesV); //session.putValue("chatParams",chatParams); Enumeration e = chatParams.propertyNames(); while (e.hasMoreElements()) { String temp = (String)e.nextElement(); //log( "testParams: " + temp + " Value: " + chatParams.getProperty( temp) ); } //ok lets create the chat object and its rooms String[] types = rmi.execSqlProcedure(chatPoolServer, "C_GetChatAutoTypes '"+ metaId + "' "); Chat theChat = new Chat( Integer.parseInt(metaId), msgTypesV, chatParams, types ); //lets get the rooms data from db String[][] roomIdNr = rmi.execProcedureMulti(chatPoolServer, "C_GetRooms " + metaId) ; //log("C_GetRooms " + metaId); for(int i=0; i<roomIdNr.length;i++) { //log("#########"+roomIdNr[i][0]); theChat.createNewChatGroup(Integer.parseInt(roomIdNr[i][0]), roomIdNr[i][1]); } ServletContext myContext = getServletContext(); myContext.setAttribute("theChat"+metaId, theChat); // Ok, we're done creating the chat. Lets tell imCMS system to show this child. rmi.activateChild(imcServer, metaId) ; // Ok, we're done adding the chat, Lets log in to it! String loginPage = MetaInfo.getServletPath(req) + "ChatLogin?login_type=login" ; res.sendRedirect(loginPage) ; //log("end ADD_CHAT"); return ; } /**************************************************************************************************** * admin chat ****************************************************************************************************/ if (action.equalsIgnoreCase("admin_chat")) { //log("*** start admin_chat ***"); VariableManager vm = new VariableManager() ; Html htm = new Html(); //this method handle the stuff we can do in the template admin page if (req.getParameter("admin_templates_meta") != null) { //log("admin_templates_meta"); if(req.getParameter("add_templates")!= null) { //log("add_templates"); //lets add a new template set if we got some thing to add String newLibName = req.getParameter("template_lib_name"); newLibName = super.verifySqlText(newLibName) ; if (newLibName==null) { String header = "ChatCreator servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header, 80) ; //obs kolla om rtt nr return ; } // Lets check if we already have a templateset with that name String sql = "C_FindTemplateLib " + newLibName ; String libNameExists = rmi.execSqlProcedureStr(chatPoolServer, sql) ; if( !libNameExists.equalsIgnoreCase("-1") ) { String header = "ChatCreator servlet. " ; ChatError err = new ChatError(req,res,header, 84) ;//obs kolla om rtt nr return ; } //********* String sqlQ = "C_AddTemplateLib '" + newLibName + "'" ; rmi.execSqlUpdateProcedure(chatPoolServer, sqlQ) ; // Lets copy the original folders to the new foldernames String metaId = super.getMetaId(req) ; FileManager fileObj = new FileManager() ; File templateSrc = new File(MetaInfo.getExternalTemplateFolder(imcServer, metaId), "original") ; File imageSrc = new File(rmi.getExternalImageHomeFolder(host,imcServer, metaId), "original") ; File templateTarget = new File(MetaInfo.getExternalTemplateFolder(imcServer, metaId), newLibName) ; File imageTarget = new File(rmi.getExternalImageHomeFolder(host,imcServer, metaId), newLibName) ; fileObj.copyDirectory(templateSrc, templateTarget) ; fileObj.copyDirectory(imageSrc, imageTarget) ; }//done add new template lib if (req.getParameter("change_templatelib")!=null) {//ok lets handle the change set case //log("change_templatelib"); // Lets get the new library name and validate it String newLibName = req.getParameter("new_templateset_name") ; //log("newLibName: "+newLibName); if (newLibName == null) { String header = "ChatCreator servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header, 80) ;//obs kolla om rtt nr return ; } // Lets find the selected template in the database and get its id // if not found, -1 will be returned String sqlQ = "C_GetTemplateIdFromName '" + newLibName + "'" ;//GetTemplateIdFromName String templateId = rmi.execSqlProcedureStr(chatPoolServer, sqlQ) ; if(templateId.equalsIgnoreCase("-1")) { String header = "ChatCreator servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,81) ; return ; } // Ok, lets update the chat with this new templateset. //but first lets delete the old one. String delString = "C_deleteChatTemplateset "+ params.getProperty("META_ID") ; rmi.execSqlUpdateProcedure(chatPoolServer, delString) ; String updateSql = "C_SetNewTemplateLib " + params.getProperty("META_ID") ;//SetTemplateLib updateSql += ", '" + newLibName + "'" ; rmi.execSqlUpdateProcedure(chatPoolServer, updateSql) ; } if (req.getParameter("UPLOAD_CHAT")!=null) {//ok lets handle the upload of templates and images //lets load the page to handle this String folderName = req.getParameter("TEMPLATE_NAME"); String uploadType = req.getParameter("UPLOAD_TYPE"); String metaId = params.getProperty("META_ID"); //log(folderName +" "+uploadType+" "+metaId); if(folderName == null || uploadType == null || metaId == null) return; vm.addProperty("META_ID", metaId ) ; vm.addProperty("UPLOAD_TYPE", uploadType); vm.addProperty("FOLDER_NAME", folderName); sendHtml(req,res,vm, ADMIN_TEMPLATES_TEMPLATE_2) ; return; } } //check if template adminpage is wanted if (req.getParameter("adminTemplates")!=null) { //log("jippikaayeeee"); //ok we need to create the admin templates page, and to be //able to do that, we need the name and number of the current template set //but we also need a select list of all template set there is... //so what keeping us from doing it...coffe-break maby... //back from the coffe-break, now lets rock! //lets get the meta_id String metaId = params.getProperty("META_ID") ; //log("metaid: "+ metaId); //ok now lets get the template set name String templateSetName = rmi.execSqlProcedureStr(chatPoolServer, "C_GetTemplateLib '"+ metaId + "' "); if (templateSetName == null) { templateSetName=""; } //ok lets get all the template set there is String[] templateLibs = rmi.execSqlProcedure(chatPoolServer, "C_GetAllTemplateLibs"); //lets check if we got something //log(""+templateLibs.length); Vector vect = new Vector(); if (templateLibs != null) { vect = super.convert2Vector(templateLibs); } vm.addProperty("TEMPLATE_LIST",htm.createHtmlCode("ID_OPTION",templateSetName, vect) ); vm.addProperty("CURRENT_TEMPLATE_SET", templateSetName ) ; sendHtml(req,res,vm, ADMIN_TEMPLATES_TEMPLATE) ; return; } //FIX ugly //lets get the chatMember //check which chat we have String chatName = req.getParameter("chatName"); if(chatName==null)chatName =""; //log("ChatName: " + chatName); vm.addProperty("chatName", chatName ) ; String metaId = (String)session.getValue("Chat.meta_id"); //log("MetaId: " + metaId); ChatMember myMember = (ChatMember) session.getValue("theChatMember"); if (myMember == null) { log("chatMembern was null so return"); return; } Chat myChat = myMember.getMyParent(); if (myChat == null) { log("theChat was null so return"); return; }//FIX end //************** add new room ************************* //get chatrooms Enumeration groupE = myChat.getAllChatGroups(); Vector groupsV = new Vector(); while (groupE.hasMoreElements()) { ChatGroup temp = (ChatGroup)groupE.nextElement(); groupsV.add( temp.getGroupName() ); groupsV.add( temp.getGroupName() ); //log("grupp: " + temp ); } Vector addGroups = (Vector)session.getValue("NewRooms") == null ? new Vector() : (Vector)session.getValue("NewRooms") ;//sessionen Vector delGroups = (Vector)session.getValue("DelRooms") == null ? new Vector() : (Vector)session.getValue("DelRooms") ;//sessionen if ( req.getParameter("addRoom") != null ) { //log("*** start addRoom ***"); //lets get the room to add String newRoom = req.getParameter("chatRoom"); addGroups.add(newRoom); addGroups.add(newRoom); session.putValue("NewRooms",addGroups); //log("*** end addRoom ***"); } //********* delete room ***************** if ( req.getParameter("removeRoom") != null ) { //log("*** start removeRoom ***"); //vilket rum ska tas bort String delRoom = req.getParameter("roomList"); //log("roomList: " + delRoom); //deleta rummet i listan delGroups.add(delRoom); delGroups.add(delRoom); session.putValue("DelRooms",delGroups); //log("*** end removeRoom ***"); } //lgg ihop rummen for(int i=0;i<addGroups.size();i++) { groupsV.add(addGroups.get(i)); } for(int i=0;i<delGroups.size();i++) { groupsV.remove(delGroups.get(i)); } //************ add new msgTypes ******************** Vector theTypes = myChat.getMsgTypes(); Vector msgTypeV = new Vector(); for(int i = 0; i<theTypes.size();i+=2) { msgTypeV.add(theTypes.get(i+1)); msgTypeV.add(theTypes.get(i+1)); } //hmta redan tillagda typer Vector addTypes = (Vector)session.getValue("NewTypes") == null ? new Vector() : (Vector)session.getValue("NewTypes") ; Vector delTypes = (Vector)session.getValue("DelTypes") == null ? new Vector() : (Vector)session.getValue("DelTypes") ; Vector autTypeV = (Vector) session.getValue("Chat_autTypeV"); String[] selAuto = (req.getParameterValues("authorized")==null) ? new String[0] : (req.getParameterValues("authorized")); Vector selAutoV = super.convert2Vector(selAuto); //add new msgType if ( req.getParameter("addMsgType") != null ) { String newMsgType = req.getParameter("msgType"); //lgg till ny typ addTypes.add(newMsgType); addTypes.add(newMsgType); session.putValue("NewTypes",addTypes); } //*************** delete msgType ********** if ( req.getParameter("removeMsgType") != null ) { //vilket rum ska tas bort String delType = req.getParameter("msgTypes"); //deleta typen i listan delTypes.add(delType); delTypes.add(delType); session.putValue("DelTypes",delTypes); } //lgg ihop msgTyperna for(int i=0;i<addTypes.size();i++) { msgTypeV.add(addTypes.get(i)); } for(int i=0;i<delTypes.size();i++) { msgTypeV.remove(delTypes.get(i)); } //rita om sidan med rtt vrden vm.addProperty("chatRoom", "" ); vm.addProperty("msgType", "" ); vm.addProperty("roomList", htm.createHtmlCode("ID_OPTION","", groupsV) ) ; vm.addProperty("msgTypes", htm.createHtmlCode("ID_OPTION","", msgTypeV) ) ; //get parameters Properties chatP = super.getNewChatParameters(req); File templatePath = new File(super.getExternalTemplateFolder (req),ADMIN_TEMPLATES_BUTTON); Vector tempV = new Vector(); ParseServlet parser = new ParseServlet(templatePath, tempV,tempV) ; String templateButton = parser.getHtmlDoc() ; vm.addProperty("templates", templateButton); vm.addProperty("authorized", htm.createHtmlCode("ID_OPTION",selAutoV, autTypeV) ) ; vm.addProperty("chatName",chatName ); vm.addProperty("",""); vm.addProperty("updateTime",chatP.getProperty("updateTime") ); Vector buttonValues = new Vector();buttonValues.add("1");buttonValues.add("2");buttonValues.add("3"); vm.addProperty("reload", htm.createRadioButton("reload",buttonValues,chatP.getProperty("reload") ) ); vm.addProperty("inOut", htm.createRadioButton("inOut",buttonValues,chatP.getProperty("inOut") ) ); vm.addProperty("private", htm.createRadioButton("private",buttonValues,chatP.getProperty("privat") ) ); vm.addProperty("public", htm.createRadioButton("public",buttonValues,chatP.getProperty("publik") ) ); vm.addProperty("dateTime", htm.createRadioButton("dateTime",buttonValues,chatP.getProperty("dateTime") ) ); vm.addProperty("font", htm.createRadioButton("font",buttonValues,chatP.getProperty("font") ) ); sendHtml(req,res,vm, ADMIN_TEMPLATE) ; //################################################################### if (req.getParameter("okChat") != null ) { //log("*** start okChat ***"); //spara vrden till databas //ta bort alla rum tillhrande den hr chatten //String delete = "C_DeleteConnections " + metaId; //rmi.execSqlUpdateProcedure(chatPoolServer , delete ); //lets get all current connected rooms Vector currGroupsV = (Vector)session.getValue("chat_V_room"); Vector currMsgTypesV = (Vector)session.getValue("chat_V_msgTypes"); if (currGroupsV == null) { //fixa s att de hmtas frn db #### OBS #### } if (currMsgTypesV == null) { //fixa s att de hmtas frn db #### OBS #### //eller frn chatten direct kanske r smartare } //now we have to see if we need to do anything to the db //lets start whit the Groups for(int i=0;i<groupsV.size();i+=2) { boolean found=false; String name = (String) groupsV.get(i+1); for(int e=0;e< currGroupsV.size();e+=2) { String name2 = (String) currGroupsV.get(e+1); if (name.equals(name2)) { found = true; break; } } if ( !found )//then there is a new one lets save it to db { rmi.execSqlUpdateProcedure(chatPoolServer, "C_AddNewChatRoom '"+metaId+"','"+name+"'"); } } session.removeValue("NewRooms"); //lets see if there is any to delete Vector dellV = (Vector) session.getValue("DelRooms"); session.removeValue("DelRooms"); if (dellV != null)//ok we have some to delete { for(int i=0; i<dellV.size();i+=2) { boolean found = false; String name = (String) dellV.get(i+1); //log("name1= "+name); for(int e=0;e<currGroupsV.size();e+=2) { String name2 = (String)currGroupsV.get(e+1); //log("name2 = "+name2); if (name.equals(name2))//ok lets leave this one { found = true; break; } } if (found)//lets delete this on { String roomId = rmi.execSqlProcedureStr(chatPoolServer, "C_GetTheRoomId '"+metaId+"','"+name+"'"); rmi.execSqlUpdateProcedure(chatPoolServer, "C_DeleteChatRoom '"+metaId+"','"+roomId+"'"); } } } //now lets se how it is whith the messageTypes for(int i=0;i<msgTypeV.size();i+=2) { boolean found=false; String name = (String) msgTypeV.get(i+1); for(int e=0;e< currMsgTypesV.size();e+=2) { String name2 = (String) currMsgTypesV.get(e+1); if (name.equals(name2)) { found = true; break; } } if ( !found )//then there is a new one lets save it to db { //log("add new msgtype stringen C_AddMessageType '"+metaId+"','"+name+"'"); rmi.execSqlUpdateProcedure(chatPoolServer, "C_AddMessageType '"+metaId+"','"+name+"'"); } } session.removeValue("NewTypes"); //lets see if there is any to delete Vector dellMsgV = (Vector) session.getValue("DelTypes"); session.removeValue("DelTypes"); if (dellMsgV != null)//ok we have some to delete { for(int i=0; i<dellMsgV.size();i+=2) { boolean found = false; String name = (String) dellMsgV.get(i+1); //log("name1= "+name); for(int e=0;e<currMsgTypesV.size();e+=2) { String name2 = (String)currMsgTypesV.get(e+1); //log("name2 = "+name2); if (name.equals(name2))//ok lets leave this one { found = true; break; } } if (found)//lets delete this on { String msgId = rmi.execSqlProcedureStr(chatPoolServer, "C_GetMessageId "+name); rmi.execSqlUpdateProcedure(chatPoolServer, "C_DeleteMessage '"+metaId+"','"+msgId+"'"); } } } //uppdatera databasen med chatP StringBuffer update = new StringBuffer("C_UpdateChatParams '" + metaId); update.append("','"+ chatP.getProperty("updateTime")); update.append("','"+ chatP.getProperty("reload")); update.append("','"+ chatP.getProperty("inOut")); update.append("','"+ chatP.getProperty("privat")); update.append("','"+ chatP.getProperty("publik")); update.append("','"+ chatP.getProperty("dateTime")); update.append("','"+ chatP.getProperty("font")+"'"); //log(update.toString()); rmi.execSqlUpdateProcedure(chatPoolServer, update.toString() ); //lets get rid off old authorizations if there is any String delAutho = "C_DeleteAuthorizations " + metaId; rmi.execSqlUpdateProcedure(chatPoolServer , delAutho ); //ok lets save the new ones to db String[] newAutho = (req.getParameterValues("authorized")==null) ? new String[0] : (req.getParameterValues("authorized")); selAutoV = super.convert2Vector(newAutho); if (selAutoV.size() == 0) { selAutoV.addElement(new String("1")); } for(int i=0; i<selAutoV.size(); i++) { String newAutoSql = "C_ChatAutoTypes " + " '" + selAutoV.elementAt(i) + "', " + metaId; //log("C_ChatAutoTypes sql:" + newAutoSql ) ; rmi.execSqlUpdateProcedure(chatPoolServer,newAutoSql); } //ok lets set up the chat whith the new settings String[] types = rmi.execSqlProcedure(chatPoolServer, "C_GetChatAutoTypes '"+ metaId + "' "); myChat.setAuthorizations(types); //Chat theChat = new Chat( Integer.parseInt(metaId), msgTypesV, chatParams, types ); //lets get the rooms data from db String[][] roomIdNr = rmi.execProcedureMulti(chatPoolServer, "C_GetRooms " + metaId) ; //ok lets see if there is any rooms we have to get rid of Enumeration enum = myChat.getAllChatGroups(); while (enum.hasMoreElements()) { ChatGroup temp = (ChatGroup) enum.nextElement(); boolean found=false; int x=0; while (!found && x<roomIdNr.length) { if (temp.getGroupId() == Integer.parseInt(roomIdNr[x][0])) { temp.setChatGroupName(roomIdNr[x][1]);//just incase found = true; } x++; } if (!found) {//lets remove it myChat.removeChatGroup(temp.getGroupId()); temp = null;//ugly if there is any members in it they will have a null pointer i think } } //ok lets add new groups if there is any lets get the existing groups enum = myChat.getAllChatGroups(); for(int i=0; i<roomIdNr.length;i++)//ugly but it works { boolean found=false; while (enum.hasMoreElements() && !found) { ChatGroup temp = (ChatGroup) enum.nextElement(); if (temp.getGroupId() == Integer.parseInt(roomIdNr[i][0])) { found = true; } } if (!found) { myChat.createNewChatGroup(Integer.parseInt(roomIdNr[i][0]), roomIdNr[i][1]); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/430d9ed54a9461e77ea6e2de9ce4a477357217e2/ChatCreator.java/buggy/servlets/chat/ChatCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2896, 3349, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 202, 15069, 4745, 503, 16, 14106, 202, 95, 202, 202, 759, 1330, 2932, 1937, 2896, 3349, 8863, 202, 202, 759, 48, 2413, 877, 270, 546, 281, 893, 464, 588, 7915, 893, 202, 202, 430, 12, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 631, 5743, 13, 202, 202, 95, 1082, 202, 1330, 2932, 1893, 2157, 631, 5743, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2940, 2157, 3184, 33, 3658, 18, 588, 2157, 12, 5743, 1769, 202, 202, 759, 48, 2413, 588, 29201, 2958, 3977, 464, 877, 270, 546, 351, 202, 202, 2297, 2010, 33, 9565, 18, 588, 2157, 2402, 12, 3658, 1769, 202, 202, 430, 12, 9565, 18, 1893, 2402, 12, 3658, 16, 455, 16, 2010, 13, 631, 5743, 13, 202, 202, 95, 1082, 202, 1330, 2932, 588, 2157, 2402, 631, 5743, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 48, 2413, 588, 15991, 359, 10880, 3977, 202, 202, 2297, 10880, 1370, 33, 9565, 18, 588, 1908, 14163, 2402, 12, 3658, 1769, 202, 202, 430, 12, 9565, 18, 1893, 2402, 12, 3658, 16, 455, 16, 10880, 1370, 13, 631, 5743, 13, 202, 202, 95, 1082, 202, 1330, 2932, 1893, 2402, 631, 5743, 8863, 1082, 202, 759, 2463, 31, 202, 202, 97, 202, 202, 759, 48, 2413, 588, 304, 1355, 1612, 202, 202, 381, 710, 18, 3567, 18, 1299, 1355, 33, 9565, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2896, 3349, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 202, 15069, 4745, 503, 16, 14106, 202, 95, 202, 202, 759, 1330, 2932, 1937, 2896, 3349, 8863, 202, 202, 759, 48, 2413, 877, 270, 546, 281, 893, 464, 588, 7915, 893, 202, 202, 430, 12, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 631, 5743, 13, 202, 202, 95, 1082, 202, 1330, 2932, 1893, 2157, 631, 5743, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2940, 2157, 3184, 33, 3658, 18, 588, 2157, 12, 5743, 1769, 202, 202, 759, 48, 2413, 588, 29201, 2958, 3977, 464, 877, 270, 546, 351, 202, 202, 2297, 2010, 33, 9565, 18, 588, 2 ]
Set<String> s = disabledSubsystemsHolder.get( );
Set<String> s = data.get().disabledSubsystems;
public static boolean isDisabled(String id) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null || id == null || ! s.contains(id)) return false; return true; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 24517, 12, 780, 612, 13, 565, 288, 377, 202, 694, 32, 780, 34, 272, 273, 501, 18, 588, 7675, 9278, 28150, 87, 31, 377, 202, 430, 261, 272, 422, 446, 747, 612, 422, 446, 747, 401, 272, 18, 12298, 12, 350, 3719, 327, 629, 31, 377, 202, 2463, 638, 31, 377, 202, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 24517, 12, 780, 612, 13, 565, 288, 377, 202, 694, 32, 780, 34, 272, 273, 501, 18, 588, 7675, 9278, 28150, 87, 31, 377, 202, 430, 261, 272, 422, 446, 747, 612, 422, 446, 747, 401, 272, 18, 12298, 12, 350, 3719, 327, 629, 31, 377, 202, 2463, 638, 31, 377, 202, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else { Navigatable navigatable = getNavigateableForNode(node);
else if (node.isLeaf()) { Navigatable navigatable = getNavigatableForNode(node);
private void initTree() { myTree.setRootVisible(false); myTree.setShowsRootHandles(true); SmartExpander.installOn(myTree); TreeUtil.installActions(myTree); EditSourceOnDoubleClickHandler.install(myTree); myTree.addKeyListener( new KeyAdapter() { public void keyPressed(KeyEvent e) { if (KeyEvent.VK_ENTER == e.getKeyCode()) { TreePath leadSelectionPath = myTree.getLeadSelectionPath(); if (leadSelectionPath == null) return; DefaultMutableTreeNode node = ((DefaultMutableTreeNode)leadSelectionPath.getLastPathComponent()); if (node instanceof UsageNode) { Usage usage = ((UsageNode)node).getUsage(); usage.navigate(false); usage.highlightInEditor(); } else { Navigatable navigatable = getNavigateableForNode(node); if (navigatable != null && navigatable.canNavigate()) { navigatable.navigate(false); } } } } } ); PopupHandler.installPopupHandler(myTree, IdeActions.GROUP_USAGE_VIEW_POPUP, ActionPlaces.USAGE_VIEW_POPUP); //TODO: install speed search. Not in openapi though. It makes sense to create a common TreeEnchancer service. }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/23d5551e916258324b5e77db585fac09b338a54f/UsageViewImpl.java/buggy/UsageView/src/com/intellij/usages/impl/UsageViewImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2471, 1435, 288, 565, 3399, 2471, 18, 542, 2375, 6207, 12, 5743, 1769, 565, 3399, 2471, 18, 542, 24548, 2375, 8788, 12, 3767, 1769, 565, 19656, 12271, 264, 18, 5425, 1398, 12, 4811, 2471, 1769, 565, 4902, 1304, 18, 5425, 6100, 12, 4811, 2471, 1769, 565, 15328, 1830, 1398, 5265, 6563, 1503, 18, 5425, 12, 4811, 2471, 1769, 565, 3399, 2471, 18, 1289, 653, 2223, 12, 3639, 394, 1929, 4216, 1435, 288, 3639, 1071, 918, 498, 24624, 12, 653, 1133, 425, 13, 288, 1850, 309, 261, 653, 1133, 18, 58, 47, 67, 12278, 422, 425, 18, 588, 653, 1085, 10756, 288, 5411, 4902, 743, 5871, 6233, 743, 273, 3399, 2471, 18, 588, 9678, 6233, 743, 5621, 5411, 309, 261, 24429, 6233, 743, 422, 446, 13, 327, 31, 5411, 2989, 19536, 12513, 756, 273, 14015, 1868, 19536, 12513, 13, 24429, 6233, 743, 18, 588, 3024, 743, 1841, 10663, 5411, 309, 261, 2159, 1276, 10858, 907, 13, 288, 2868, 10858, 4084, 273, 14015, 5357, 907, 13, 2159, 2934, 588, 5357, 5621, 2868, 4084, 18, 82, 20698, 12, 5743, 1769, 2868, 4084, 18, 15978, 382, 6946, 5621, 5411, 289, 5411, 469, 288, 2868, 423, 4911, 8163, 290, 4911, 8163, 273, 11069, 20698, 429, 31058, 12, 2159, 1769, 2868, 309, 261, 82, 4911, 8163, 480, 446, 597, 290, 4911, 8163, 18, 4169, 50, 20698, 10756, 288, 7734, 290, 4911, 8163, 18, 82, 20698, 12, 5743, 1769, 2868, 289, 5411, 289, 1850, 289, 3639, 289, 1377, 289, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2471, 1435, 288, 565, 3399, 2471, 18, 542, 2375, 6207, 12, 5743, 1769, 565, 3399, 2471, 18, 542, 24548, 2375, 8788, 12, 3767, 1769, 565, 19656, 12271, 264, 18, 5425, 1398, 12, 4811, 2471, 1769, 565, 4902, 1304, 18, 5425, 6100, 12, 4811, 2471, 1769, 565, 15328, 1830, 1398, 5265, 6563, 1503, 18, 5425, 12, 4811, 2471, 1769, 565, 3399, 2471, 18, 1289, 653, 2223, 12, 3639, 394, 1929, 4216, 1435, 288, 3639, 1071, 918, 498, 24624, 12, 653, 1133, 425, 13, 288, 1850, 309, 261, 653, 1133, 18, 58, 47, 67, 12278, 422, 425, 18, 588, 653, 1085, 10756, 288, 5411, 4902, 743, 5871, 6233, 743, 273, 3399, 2471, 18, 588, 9678, 6233, 743, 2 ]
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID();
public quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { quickfix.field.OrigClOrdID value = new quickfix.field.OrigClOrdID();
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix41/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 336, 4741, 2009, 15383, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 336, 4741, 2009, 15383, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
nmExecArray[0] = nmPath.trim(); nmExecArray[nmExecArray.length-1] = libraryFile.getAbsolutePath(); System.arraycopy(splittedNmArgs, 0, nmExecArray, 1, splittedNmArgs.length);
nmExecArray[0] = nmPath.trim(); nmExecArray[nmExecArray.length-1] = libraryFile.getAbsolutePath(); System.arraycopy(splittedNmArgs, 0, nmExecArray, 1, splittedNmArgs.length); } else { nmExecArray = new String[2]; nmExecArray[0] = nmPath.trim(); nmExecArray[1] = libraryFile.getAbsolutePath(); }
private static Vector<String> loadNmData(File libraryFile) { Vector<String> nmData = new Vector<String>(); try { String nmPath = GUI.getExternalToolsSetting("PATH_NM"); String nmArgs = GUI.getExternalToolsSetting("NM_ARGS"); if (nmPath == null || nmPath.equals("")) return null; String[] splittedNmArgs = nmArgs.split(" "); String[] nmExecArray = new String[1 + splittedNmArgs.length + 1]; nmExecArray[0] = nmPath.trim(); nmExecArray[nmExecArray.length-1] = libraryFile.getAbsolutePath(); System.arraycopy(splittedNmArgs, 0, nmExecArray, 1, splittedNmArgs.length); String line; Process p = Runtime.getRuntime().exec(nmExecArray); BufferedReader input = new BufferedReader (new InputStreamReader(p.getInputStream())); p.getErrorStream().close(); // Ignore error stream while ((line = input.readLine()) != null) { nmData.add(line); } input.close(); } catch (Exception err) { err.printStackTrace(); return null; } if (nmData == null || nmData.size() == 0) return null; return nmData; }
43319 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43319/3d551593adaf545379bc271a3a45d3faa4832e96/ContikiMoteType.java/buggy/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 5589, 32, 780, 34, 1262, 25246, 751, 12, 812, 5313, 812, 13, 288, 565, 5589, 32, 780, 34, 8442, 751, 273, 394, 5589, 32, 780, 34, 5621, 565, 775, 288, 1377, 514, 8442, 743, 273, 10978, 18, 588, 6841, 10348, 5568, 2932, 4211, 67, 50, 49, 8863, 1377, 514, 8442, 2615, 273, 10978, 18, 588, 6841, 10348, 5568, 2932, 50, 49, 67, 22439, 8863, 1377, 309, 261, 15094, 743, 422, 446, 747, 8442, 743, 18, 14963, 2932, 6, 3719, 3639, 327, 446, 31, 1377, 514, 8526, 17687, 25246, 2615, 273, 8442, 2615, 18, 4939, 2932, 315, 1769, 1377, 514, 8526, 8442, 1905, 1076, 273, 394, 514, 63, 21, 397, 17687, 25246, 2615, 18, 2469, 397, 404, 15533, 1377, 8442, 1905, 1076, 63, 20, 65, 273, 8442, 743, 18, 5290, 5621, 1377, 8442, 1905, 1076, 63, 15094, 1905, 1076, 18, 2469, 17, 21, 65, 273, 5313, 812, 18, 588, 10368, 743, 5621, 1377, 2332, 18, 1126, 3530, 12, 4939, 2344, 25246, 2615, 16, 374, 16, 8442, 1905, 1076, 16, 404, 16, 17687, 25246, 2615, 18, 2469, 1769, 1377, 514, 980, 31, 1377, 4389, 293, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 15094, 1905, 1076, 1769, 1377, 10633, 810, 273, 3639, 394, 10633, 3639, 261, 2704, 15322, 12, 84, 18, 588, 4348, 1435, 10019, 1377, 293, 18, 588, 668, 1228, 7675, 4412, 5621, 368, 8049, 555, 1407, 1377, 1323, 14015, 1369, 273, 810, 18, 896, 1670, 10756, 480, 446, 13, 288, 3639, 8442, 751, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 5589, 32, 780, 34, 1262, 25246, 751, 12, 812, 5313, 812, 13, 288, 565, 5589, 32, 780, 34, 8442, 751, 273, 394, 5589, 32, 780, 34, 5621, 565, 775, 288, 1377, 514, 8442, 743, 273, 10978, 18, 588, 6841, 10348, 5568, 2932, 4211, 67, 50, 49, 8863, 1377, 514, 8442, 2615, 273, 10978, 18, 588, 6841, 10348, 5568, 2932, 50, 49, 67, 22439, 8863, 1377, 309, 261, 15094, 743, 422, 446, 747, 8442, 743, 18, 14963, 2932, 6, 3719, 3639, 327, 446, 31, 1377, 514, 8526, 17687, 25246, 2615, 273, 8442, 2615, 18, 4939, 2932, 315, 1769, 1377, 514, 8526, 8442, 1905, 1076, 273, 394, 514, 63, 21, 397, 17687, 25246, 2615, 18, 2469, 397, 404, 2 ]
setLocation(x, y);
if (this.x == x && this.y == y) return; invalidate (); this.x = x; this.y = y; if (peer != null) peer.setBounds (x, y, width, height);
public void move(int x, int y) { setLocation(x, y); }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Component.java/buggy/libjava/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3635, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 261, 2211, 18, 92, 422, 619, 597, 333, 18, 93, 422, 677, 13, 327, 31, 11587, 261, 1769, 333, 18, 92, 273, 619, 31, 333, 18, 93, 273, 677, 31, 309, 261, 12210, 480, 446, 13, 4261, 18, 542, 5694, 261, 92, 16, 677, 16, 1835, 16, 2072, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3635, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 261, 2211, 18, 92, 422, 619, 597, 333, 18, 93, 422, 677, 13, 327, 31, 11587, 261, 1769, 333, 18, 92, 273, 619, 31, 333, 18, 93, 273, 677, 31, 309, 261, 12210, 480, 446, 13, 4261, 18, 542, 5694, 261, 92, 16, 677, 16, 1835, 16, 2072, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public TextViewerDragAdapter(ITextViewer viewer, ITextEditorExtension editor) { fViewer= viewer; fEditor= editor;
public TextViewerDragAdapter(ITextViewer viewer) { this(viewer, null);
public TextViewerDragAdapter(ITextViewer viewer, ITextEditorExtension editor) { fViewer= viewer; fEditor= editor; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/be7b98b84ef6bf32a5b6df6ee6247cf308c08389/TextViewerDragAdapter.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dnd/TextViewerDragAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 18415, 11728, 4216, 12, 1285, 408, 18415, 14157, 16, 467, 1528, 6946, 3625, 4858, 13, 288, 202, 202, 74, 18415, 33, 14157, 31, 202, 202, 74, 6946, 33, 4858, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 18415, 11728, 4216, 12, 1285, 408, 18415, 14157, 16, 467, 1528, 6946, 3625, 4858, 13, 288, 202, 202, 74, 18415, 33, 14157, 31, 202, 202, 74, 6946, 33, 4858, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String contributorAddress, String areaCode, String areaOfAreaCode, String area, String parishOfResidence, String districtSubdivisionOfResidence, String districtOfResidence) { final Party existing = Party.readByContributorNumber(contributorNumber); if (existing != null && existing != this) { throw new DomainException("PARTY.editContributor.existing.contributor.number"); } setName(contributorName); setSocialSecurityNumber(contributorNumber); setAddress(contributorAddress); setAddress(contributorAddress); setAreaCode(areaCode); setAreaOfAreaCode(areaOfAreaCode); setArea(area); setParishOfResidence(parishOfResidence); setDistrictSubdivisionOfResidence(districtSubdivisionOfResidence); setDistrictOfResidence(districtOfResidence);
String contributorAddress, String areaCode, String areaOfAreaCode, String area, String parishOfResidence, String districtSubdivisionOfResidence, String districtOfResidence) { final Party existing = Party.readByContributorNumber(contributorNumber); if (existing != null && existing != this) { throw new DomainException("PARTY.editContributor.existing.contributor.number"); } setName(contributorName); setSocialSecurityNumber(contributorNumber); setAddress(contributorAddress); setAddress(contributorAddress); setAreaCode(areaCode); setAreaOfAreaCode(areaOfAreaCode); setArea(area); setParishOfResidence(parishOfResidence); setDistrictSubdivisionOfResidence(districtSubdivisionOfResidence); setDistrictOfResidence(districtOfResidence);
public void editContributor(String contributorName, String contributorNumber, String contributorAddress, String areaCode, String areaOfAreaCode, String area, String parishOfResidence, String districtSubdivisionOfResidence, String districtOfResidence) { final Party existing = Party.readByContributorNumber(contributorNumber); if (existing != null && existing != this) { throw new DomainException("PARTY.editContributor.existing.contributor.number"); } setName(contributorName); setSocialSecurityNumber(contributorNumber); setAddress(contributorAddress); setAddress(contributorAddress); setAreaCode(areaCode); setAreaOfAreaCode(areaOfAreaCode); setArea(area); setParishOfResidence(parishOfResidence); setDistrictSubdivisionOfResidence(districtSubdivisionOfResidence); setDistrictOfResidence(districtOfResidence); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1eab5569eea9b71f208c0d25e856d5bdea5a3e8c/Party.java/clean/src/net/sourceforge/fenixedu/domain/organizationalStructure/Party.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3874, 442, 19293, 12, 780, 31123, 461, 16, 514, 31123, 1854, 16, 5411, 514, 31123, 1887, 16, 514, 5091, 1085, 16, 514, 5091, 951, 5484, 1085, 16, 514, 5091, 16, 5411, 514, 779, 1468, 951, 607, 10328, 16, 514, 1015, 5792, 1676, 2892, 1951, 951, 607, 10328, 16, 514, 1015, 5792, 951, 607, 10328, 13, 288, 7734, 727, 6393, 93, 2062, 273, 6393, 93, 18, 896, 858, 442, 19293, 1854, 12, 591, 19293, 1854, 1769, 3639, 309, 261, 11711, 480, 446, 597, 2062, 480, 333, 13, 288, 5411, 604, 394, 24569, 2932, 2778, 5538, 18, 4619, 442, 19293, 18, 11711, 18, 591, 19293, 18, 2696, 8863, 3639, 289, 7734, 6788, 12, 591, 19293, 461, 1769, 3639, 13928, 9306, 4368, 1854, 12, 591, 19293, 1854, 1769, 3639, 444, 1887, 12, 591, 19293, 1887, 1769, 3639, 444, 1887, 12, 591, 19293, 1887, 1769, 3639, 444, 5484, 1085, 12, 5036, 1085, 1769, 3639, 444, 5484, 951, 5484, 1085, 12, 5036, 951, 5484, 1085, 1769, 3639, 444, 5484, 12, 5036, 1769, 3639, 444, 1553, 1468, 951, 607, 10328, 12, 1065, 1468, 951, 607, 10328, 1769, 3639, 444, 1669, 5792, 1676, 2892, 1951, 951, 607, 10328, 12, 22602, 1676, 2892, 1951, 951, 607, 10328, 1769, 3639, 444, 1669, 5792, 951, 607, 10328, 12, 22602, 951, 607, 10328, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3874, 442, 19293, 12, 780, 31123, 461, 16, 514, 31123, 1854, 16, 5411, 514, 31123, 1887, 16, 514, 5091, 1085, 16, 514, 5091, 951, 5484, 1085, 16, 514, 5091, 16, 5411, 514, 779, 1468, 951, 607, 10328, 16, 514, 1015, 5792, 1676, 2892, 1951, 951, 607, 10328, 16, 514, 1015, 5792, 951, 607, 10328, 13, 288, 7734, 727, 6393, 93, 2062, 273, 6393, 93, 18, 896, 858, 442, 19293, 1854, 12, 591, 19293, 1854, 1769, 3639, 309, 261, 11711, 480, 446, 597, 2062, 480, 333, 13, 288, 5411, 604, 394, 24569, 2932, 2778, 5538, 18, 4619, 442, 19293, 18, 11711, 18, 591, 19293, 18, 2696, 8863, 3639, 289, 7734, 6788, 12, 591, 19293, 461, 1769, 3639, 2 ]
return new ModelAndView( getSuccessView() );
return new ModelAndView( getSuccessView() ).addObject( "experimentalDesign", ed );
public ModelAndView onSubmit( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors ) throws Exception { log.debug( "entering onSubmit" ); ExperimentalDesign ed = ( ExperimentalDesign ) command; experimentalDesignService.update( ed ); saveMessage( request, "object.saved", new Object[] { ed.getClass().getSimpleName(), ed.getId() }, "Saved" ); return new ModelAndView( getSuccessView() ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/79495c6b64269b0c8811223f8ec96444d4c57ec3/ExperimentalDesignFormController.java/buggy/gemma-web/src/main/java/ubic/gemma/web/controller/expression/experiment/ExperimentalDesignFormController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 3639, 613, 18, 4148, 12, 315, 2328, 310, 603, 11620, 6, 11272, 3639, 22844, 287, 15478, 1675, 273, 261, 22844, 287, 15478, 262, 1296, 31, 3639, 23070, 15478, 1179, 18, 2725, 12, 1675, 11272, 3639, 1923, 1079, 12, 590, 16, 315, 1612, 18, 14077, 3113, 394, 1033, 8526, 288, 1675, 18, 588, 797, 7675, 588, 5784, 461, 9334, 1675, 18, 26321, 1435, 19879, 315, 16776, 6, 11272, 4202, 327, 394, 3164, 1876, 1767, 12, 1322, 2825, 1767, 1435, 262, 18, 1289, 921, 12, 315, 18142, 287, 15478, 3113, 1675, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 3639, 613, 18, 4148, 12, 315, 2328, 310, 603, 11620, 6, 11272, 3639, 22844, 287, 15478, 1675, 273, 261, 22844, 287, 15478, 262, 1296, 31, 3639, 23070, 15478, 1179, 18, 2725, 12, 1675, 11272, 3639, 1923, 1079, 12, 590, 16, 315, 1612, 18, 14077, 3113, 394, 1033, 8526, 288, 1675, 18, 588, 797, 7675, 588, 5784, 461, 9334, 1675, 18, 26321, 1435, 19879, 315, 16776, 6, 11272, 4202, 327, 394, 3164, 1876, 1767, 12, 1322, 2825, 1767, 1435, 262, 18, 1289, 921, 12, 315, 18142, 287, 15478, 3113, 1675, 11272, 565, 289, 2, -100, -100 ]
public static void glWeightuARB(ByteBuffer pWeights) {
public static void glWeightuARB(IntBuffer pWeights) {
public static void glWeightuARB(ByteBuffer pWeights) { BufferChecks.checkDirect(pWeights); nglWeightubvARB((pWeights.remaining()), pWeights, pWeights.position()); }
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/34f4e7ae56bc58e471c8c83a1f87a76a5e81ea12/ARBVertexBlend.java/buggy/src/java/org/lwjgl/opengl/ARBVertexBlend.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 6544, 89, 20926, 12, 12242, 293, 16595, 13, 288, 202, 202, 1892, 4081, 18, 1893, 5368, 12, 84, 16595, 1769, 202, 202, 3368, 80, 6544, 373, 90, 20926, 12443, 84, 16595, 18, 17956, 1435, 3631, 293, 16595, 16, 293, 16595, 18, 3276, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 6544, 89, 20926, 12, 12242, 293, 16595, 13, 288, 202, 202, 1892, 4081, 18, 1893, 5368, 12, 84, 16595, 1769, 202, 202, 3368, 80, 6544, 373, 90, 20926, 12443, 84, 16595, 18, 17956, 1435, 3631, 293, 16595, 16, 293, 16595, 18, 3276, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
executeQuery(DatabaseHandler.getExistenceValidationQuery(), conn);
executeQuery(WikiDatabase.getExistenceValidationQuery(), conn);
public static void testDatabase(String driver, String url, String user, String password, boolean existence) throws Exception { Connection conn = null; try { if (StringUtils.hasText(driver)) { Class.forName(driver, true, Thread.currentThread().getContextClassLoader()); } conn = DriverManager.getConnection(url, user, password); if (existence) { // test to see if database exists executeQuery(DatabaseHandler.getExistenceValidationQuery(), conn); } } finally { if (conn != null) { try { conn.close(); } catch (Exception e) {} } } }
50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/513a238e3f29ddefa148a3c1e845ad0af9dd6c29/DatabaseConnection.java/buggy/src/java/org/jamwiki/db/DatabaseConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1842, 4254, 12, 780, 3419, 16, 514, 880, 16, 514, 729, 16, 514, 2201, 16, 1250, 15782, 13, 1216, 1185, 288, 202, 202, 1952, 1487, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 780, 1989, 18, 5332, 1528, 12, 7407, 3719, 288, 9506, 202, 797, 18, 1884, 461, 12, 7407, 16, 638, 16, 4884, 18, 2972, 3830, 7675, 29120, 7805, 10663, 1082, 202, 97, 1082, 202, 4646, 273, 9396, 1318, 18, 588, 1952, 12, 718, 16, 729, 16, 2201, 1769, 1082, 202, 430, 261, 7398, 802, 13, 288, 9506, 202, 759, 1842, 358, 2621, 309, 2063, 1704, 9506, 202, 8837, 1138, 12, 4254, 1503, 18, 588, 4786, 802, 4354, 1138, 9334, 1487, 1769, 1082, 202, 97, 202, 202, 97, 3095, 288, 1082, 202, 430, 261, 4646, 480, 446, 13, 288, 9506, 202, 698, 288, 6862, 202, 4646, 18, 4412, 5621, 9506, 202, 97, 1044, 261, 503, 425, 13, 2618, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1842, 4254, 12, 780, 3419, 16, 514, 880, 16, 514, 729, 16, 514, 2201, 16, 1250, 15782, 13, 1216, 1185, 288, 202, 202, 1952, 1487, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 780, 1989, 18, 5332, 1528, 12, 7407, 3719, 288, 9506, 202, 797, 18, 1884, 461, 12, 7407, 16, 638, 16, 4884, 18, 2972, 3830, 7675, 29120, 7805, 10663, 1082, 202, 97, 1082, 202, 4646, 273, 9396, 1318, 18, 588, 1952, 12, 718, 16, 729, 16, 2201, 1769, 1082, 202, 430, 261, 7398, 802, 13, 288, 9506, 202, 759, 1842, 358, 2621, 309, 2063, 1704, 9506, 202, 8837, 1138, 12, 4254, 1503, 18, 588, 4786, 802, 4354, 1138, 9334, 2 ]
if ( getMethodName().equals("<init>") || getMethodName().equals("init")
if ( getMethod().isStatic() == f.isStatic() && ( calledFromConstructors.contains(getMethodName()+":"+getMethodSig()) || getMethodName().equals("<init>") || getMethodName().equals("init") || getMethodName().equals("init")
public void sawOpcode(int seen) { opcodeStack.mergeJumps(this); if (seen == GETSTATIC) { XField f = XFactory.createReferencedXField(this); staticFieldsReadInThisMethod.add(f); } else if (seen == INVOKESTATIC) { seenInvokeStatic = true; } else if (seen == PUTSTATIC && !getMethod().isStatic()) { XField f = XFactory.createReferencedXField(this); if (!staticFieldsReadInThisMethod.contains(f)) { int priority = LOW_PRIORITY; if (!publicOrProtectedConstructor) priority--; if (!seenInvokeStatic && staticFieldsReadInThisMethod.isEmpty()) priority--; if (getThisClass().isPublic() && getMethod().isPublic()) priority--; if (getThisClass().isPrivate() || getMethod().isPrivate()) priority++; if (getClassName().indexOf('$') != -1) priority++; bugReporter.reportBug(new BugInstance(this, "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", priority ) .addClassAndMethod(this) .addField(f) .addSourceLine(this) ); } } if (seen == INVOKEVIRTUAL || seen == INVOKEINTERFACE || seen == INVOKESPECIAL) { String sig = getSigConstantOperand(); int pos = PreorderVisitor.getNumberArguments(sig); if (opcodeStack.getStackDepth() > pos) { OpcodeStack.Item item = opcodeStack.getStackItem(pos); if (DEBUG) System.out.println("In " + getFullyQualifiedMethodName() + " saw call on " + item); boolean superCall = seen == INVOKESPECIAL && !getClassConstantOperand() .equals(getClassName()); boolean selfCall = item.getRegisterNumber() == 0 && !superCall; if (selfCall && getMethodName().equals("<init>")) { sawSelfCallInConstructor = true; if (DEBUG) System.out.println("Saw self call in " + getFullyQualifiedMethodName() + " to " + getClassConstantOperand() + "." + getNameConstantOperand() ); } } } if ((seen == IFNULL || seen == IFNONNULL) && opcodeStack.getStackDepth() > 0) { OpcodeStack.Item item = opcodeStack.getStackItem(0); XField f = item.getXField(); if (f != null) { nullTested.add(f); if (DEBUG) System.out.println(f + " null checked in " + getFullyQualifiedMethodName()); } } if (seen == GETFIELD || seen == INVOKEVIRTUAL || seen == INVOKEINTERFACE || seen == INVOKESPECIAL || seen == PUTFIELD || seen == IALOAD || seen == AALOAD || seen == BALOAD || seen == CALOAD || seen == SALOAD || seen == IASTORE || seen == AASTORE || seen == BASTORE || seen == CASTORE || seen == SASTORE || seen == ARRAYLENGTH) { int pos = 0; switch(seen) { case ARRAYLENGTH: case GETFIELD : pos = 0; break; case INVOKEVIRTUAL : case INVOKEINTERFACE: case INVOKESPECIAL: String sig = getSigConstantOperand(); pos = PreorderVisitor.getNumberArguments(sig); break; case PUTFIELD : case IALOAD : case AALOAD: case BALOAD: case CALOAD: case SALOAD: pos = 1; break; case IASTORE : case AASTORE: case BASTORE: case CASTORE: case SASTORE: pos = 2; break; default: throw new RuntimeException("Impossible"); } if (opcodeStack.getStackDepth() >= pos) { OpcodeStack.Item item = opcodeStack.getStackItem(pos); XField f = item.getXField(); if (DEBUG) System.out.println("RRR: " + f + " " + nullTested.contains(f) + " " + writtenInConstructorFields.contains(f) + " " + writtenNonNullFields.contains(f)); if (f != null && !nullTested.contains(f) && ! (writtenInConstructorFields.contains(f) && writtenNonNullFields.contains(f)) ) { ProgramPoint p = new ProgramPoint(this); HashSet <ProgramPoint> s = assumedNonNull.get(f); if (s == null) { s = new HashSet<ProgramPoint>(); assumedNonNull.put(f,s); } s.add(p); if (DEBUG) System.out.println(f + " assumed non-null in " + getFullyQualifiedMethodName()); } } } if (seen == ALOAD_1) { count_aload_1++; } else if (seen == GETFIELD || seen == GETSTATIC) { XField f = XFactory.createReferencedXField(this); if (DEBUG) System.out.println("get: " + f); readFields.add(f); } else if (seen == PUTFIELD || seen == PUTSTATIC) { XField f = XFactory.createReferencedXField(this); OpcodeStack.Item item = null; if (opcodeStack.getStackDepth() > 0) { item = opcodeStack.getStackItem(0); if (!item.isNull()) nullTested.add(f); } writtenFields.add(f); if (previousOpcode != ACONST_NULL || previousPreviousOpcode == GOTO ) { writtenNonNullFields.add(f); if (DEBUG) System.out.println("put nn: " + f); } else if (DEBUG) System.out.println("put: " + f); if ( getMethodName().equals("<init>") || getMethodName().equals("init") || getMethodName().equals("initialize") || getMethodName().equals("<clinit>") || getMethod().isPrivate()) { writtenInConstructorFields.add(f); if (previousOpcode != ACONST_NULL || previousPreviousOpcode == GOTO ) assumedNonNull.remove(f); } } opcodeStack.sawOpcode(this, seen); previousPreviousOpcode = previousOpcode; previousOpcode = seen; if (false && DEBUG) { System.out.println("After " + OPCODE_NAMES[seen] + " opcode stack is"); System.out.println(opcodeStack); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/71c235eadb94acee3d4c0f84156ae78cce2b78a6/UnreadFields.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/UnreadFields.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 9506, 202, 556, 710, 2624, 18, 2702, 46, 23868, 12, 2211, 1769, 202, 202, 430, 261, 15156, 422, 4978, 22741, 13, 288, 1082, 202, 60, 974, 284, 273, 1139, 1733, 18, 2640, 22344, 60, 974, 12, 2211, 1769, 1171, 202, 3845, 2314, 1994, 382, 2503, 1305, 18, 1289, 12, 74, 1769, 1082, 202, 97, 202, 202, 12107, 309, 261, 15156, 422, 20694, 11027, 11781, 13, 288, 1082, 202, 15156, 10969, 5788, 273, 638, 31, 1082, 202, 97, 202, 202, 12107, 309, 261, 15156, 422, 11443, 22741, 1875, 202, 10, 10, 401, 588, 1305, 7675, 291, 5788, 10756, 288, 1082, 202, 60, 974, 284, 273, 1139, 1733, 18, 2640, 22344, 60, 974, 12, 2211, 1769, 1171, 202, 430, 16051, 3845, 2314, 1994, 382, 2503, 1305, 18, 12298, 12, 74, 3719, 288, 9506, 202, 474, 4394, 273, 1806, 59, 67, 19804, 31, 9506, 202, 430, 16051, 482, 1162, 15933, 6293, 13, 6862, 202, 8457, 413, 31, 9506, 202, 430, 16051, 15156, 10969, 5788, 4405, 377, 597, 760, 2314, 1994, 382, 2503, 1305, 18, 291, 1921, 10756, 6862, 202, 8457, 413, 31, 9506, 202, 430, 261, 588, 2503, 797, 7675, 291, 4782, 1435, 4405, 202, 10, 10, 6272, 7675, 291, 4782, 10756, 6862, 202, 8457, 413, 31, 9506, 202, 430, 261, 588, 2503, 797, 7675, 291, 6014, 1435, 4405, 565, 747, 6272, 7675, 291, 6014, 10756, 6862, 202, 8457, 9904, 31, 9506, 202, 430, 261, 588, 3834, 7675, 31806, 2668, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 9506, 202, 556, 710, 2624, 18, 2702, 46, 23868, 12, 2211, 1769, 202, 202, 430, 261, 15156, 422, 4978, 22741, 13, 288, 1082, 202, 60, 974, 284, 273, 1139, 1733, 18, 2640, 22344, 60, 974, 12, 2211, 1769, 1171, 202, 3845, 2314, 1994, 382, 2503, 1305, 18, 1289, 12, 74, 1769, 1082, 202, 97, 202, 202, 12107, 309, 261, 15156, 422, 20694, 11027, 11781, 13, 288, 1082, 202, 15156, 10969, 5788, 273, 638, 31, 1082, 202, 97, 202, 202, 12107, 309, 261, 15156, 422, 11443, 22741, 1875, 202, 10, 10, 401, 588, 1305, 7675, 291, 5788, 10756, 288, 1082, 202, 60, 974, 284, 273, 1139, 1733, 18, 2640, 22344, 2 ]
protected Object getState(PipelineContext context) {
public Object getState(PipelineContext context) {
protected Object getState(PipelineContext context) { Object state = context.getAttribute(getProcessorKey(context)); if (state == null) { throw new OXFException("No state in context"); } return state; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/4991b30415dcfb1b79b16bb5c46a194e21aa81a4/ProcessorImpl.java/buggy/src/java/org/orbeon/oxf/processor/ProcessorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8997, 12, 8798, 1042, 819, 13, 288, 3639, 1033, 919, 273, 819, 18, 588, 1499, 12, 588, 5164, 653, 12, 2472, 10019, 3639, 309, 261, 2019, 422, 446, 13, 288, 5411, 604, 394, 531, 60, 42, 503, 2932, 2279, 919, 316, 819, 8863, 3639, 289, 3639, 327, 919, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8997, 12, 8798, 1042, 819, 13, 288, 3639, 1033, 919, 273, 819, 18, 588, 1499, 12, 588, 5164, 653, 12, 2472, 10019, 3639, 309, 261, 2019, 422, 446, 13, 288, 5411, 604, 394, 531, 60, 42, 503, 2932, 2279, 919, 316, 819, 8863, 3639, 289, 3639, 327, 919, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Category findCategory(String id) {
public IViewCategory findCategory(String id) {
public Category findCategory(String id) { mapViewsToCategories(); return internalFindCategory(id); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f41cf0929f3983fa42cf889c8ad770cc5dd6600c/ViewRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 4457, 1104, 4457, 12, 780, 612, 13, 288, 377, 202, 1458, 9959, 774, 10487, 5621, 3639, 327, 2713, 3125, 4457, 12, 350, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 4457, 1104, 4457, 12, 780, 612, 13, 288, 377, 202, 1458, 9959, 774, 10487, 5621, 3639, 327, 2713, 3125, 4457, 12, 350, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private boolean bufferNextHits() throws ServiceException { if (mAtEndOfList) { return false; } mBufferStartOffset = mIterOffset; int chunkSizeToUse = mSearchParams.getLimit(); if (chunkSizeToUse < MIN_BUFFER_CHUNK_SIZE) chunkSizeToUse = MIN_BUFFER_CHUNK_SIZE; if (chunkSizeToUse > 500) chunkSizeToUse = 500; mBufferEndOffset = mBufferStartOffset + chunkSizeToUse; mHitBuffer = new ArrayList<ProxiedHit>(chunkSizeToUse); try { SoapTransport transp = getTransport(); Element searchElt; if (isMultipleMailboxes) { searchElt = Element.create(mResponseProto, AdminService.SEARCH_MULTIPLE_MAILBOXES_REQUEST); } else {// searchElt = new Element.XMLElement(MailService.SEARCH_REQUEST); searchElt = Element.create(mResponseProto, MailService.SEARCH_REQUEST); } searchElt.addAttribute(MailService.A_SEARCH_TYPES, mSearchParams.getTypesStr()); searchElt.addAttribute(MailService.A_SORTBY, mSearchParams.getSortByStr()); searchElt.addAttribute(MailService.A_QUERY_OFFSET, mBufferStartOffset); searchElt.addAttribute(MailService.A_QUERY_LIMIT, chunkSizeToUse); searchElt.addAttribute(MailService.E_QUERY, mSearchParams.getQueryStr(), Element.DISP_CONTENT); if (isMultipleMailboxes) { if (isAllMailboxes) { Element mbxElt = searchElt.addElement(MailService.E_MAILBOX); ParseMailboxID id = ParseMailboxID.serverAll(mServer); mbxElt.addAttribute(MailService.A_ID, id.getString()); } else { for (Iterator iter = mMailboxes.iterator(); iter.hasNext();) { ParseMailboxID id = (ParseMailboxID)iter.next(); // assert(!id.isLocal()); // assert(id.getServer().equals(serverID)); searchElt.addElement(MailService.E_MAILBOX).addAttribute(MailService.A_ID, id.getString()); } } } // call the remote server now! transp.setSoapProtocol(searchElt instanceof Element.JavaScriptElement ? SoapProtocol.SoapJS : SoapProtocol.Soap12); Element searchResp = transp.invokeWithoutSession(searchElt); int hitOffset = (int) searchResp.getAttributeLong(MailService.A_QUERY_OFFSET); boolean hasMore = searchResp.getAttributeBool(MailService.A_QUERY_MORE); assert(mBufferStartOffset == hitOffset); // put these hits into our buffer! int bufferIdx = 0; int stop = mBufferEndOffset - mBufferStartOffset; for (Iterator iter = searchResp.elementIterator(); iter.hasNext() && bufferIdx < stop;) { Element e = (Element)iter.next(); mHitBuffer.add(bufferIdx++, new ProxiedHit(this, e)); } // // are we at the end of the line here? // if ((bufferIdx < stop) || (!hasMore)) { // update the buffer-end-pointer mBufferEndOffset = mBufferStartOffset + bufferIdx; if (hasMore) { assert(!hasMore); // if bufferIdx < stop then !hasMore should be set...server bug! } this.mAtEndOfList = true; } else { assert(mBufferEndOffset == mBufferStartOffset+bufferIdx); } assert(mBufferStartOffset <= mIterOffset); // OK, we were successful if we managed to buffer the current hit return (mBufferEndOffset > mIterOffset); } catch (IOException e) { throw ServiceException.FAILURE("IOException ", e); }// catch (ServiceException e) {// //throw ServiceException.FAILURE("ServiceException ", e);// throw e;// } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7cf60dcb7303e971f0cb6ddfb211e6afe3bc6890/ProxiedQueryResults.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/ProxiedQueryResults.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1613, 2134, 20950, 1435, 1216, 16489, 377, 288, 3639, 309, 261, 81, 861, 23358, 682, 13, 288, 5411, 327, 629, 31, 3639, 289, 7734, 312, 1892, 1685, 2335, 273, 312, 2360, 2335, 31, 3639, 509, 17791, 18762, 273, 312, 2979, 1370, 18, 588, 3039, 5621, 3639, 309, 261, 6551, 1225, 18762, 411, 6989, 67, 11302, 67, 26464, 67, 4574, 13, 540, 202, 6551, 1225, 18762, 273, 6989, 67, 11302, 67, 26464, 67, 4574, 31, 3639, 309, 261, 6551, 1225, 18762, 405, 6604, 13, 540, 202, 6551, 1225, 18762, 273, 6604, 31, 3639, 312, 1892, 1638, 2335, 273, 312, 1892, 1685, 2335, 397, 17791, 18762, 31, 3639, 312, 13616, 1892, 273, 394, 2407, 32, 16155, 2092, 13616, 34, 12, 6551, 1225, 18762, 1769, 7734, 775, 288, 5411, 21789, 6568, 906, 84, 273, 29801, 5621, 13491, 3010, 1623, 15899, 31, 5411, 309, 261, 291, 8438, 6759, 15918, 13, 288, 7734, 1623, 15899, 273, 3010, 18, 2640, 12, 81, 1064, 6262, 16, 7807, 1179, 18, 17251, 67, 24683, 900, 67, 18191, 16876, 3991, 67, 5519, 1769, 5411, 289, 469, 288, 759, 7734, 1623, 15899, 273, 394, 3010, 18, 15223, 12, 6759, 1179, 18, 17251, 67, 5519, 1769, 7734, 1623, 15899, 273, 3010, 18, 2640, 12, 81, 1064, 6262, 16, 11542, 1179, 18, 17251, 67, 5519, 1769, 5411, 289, 13491, 1623, 15899, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 17251, 67, 10564, 16, 312, 2979, 1370, 18, 588, 2016, 1585, 10663, 5411, 1623, 15899, 18, 1289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1613, 2134, 20950, 1435, 1216, 16489, 377, 288, 3639, 309, 261, 81, 861, 23358, 682, 13, 288, 5411, 327, 629, 31, 3639, 289, 7734, 312, 1892, 1685, 2335, 273, 312, 2360, 2335, 31, 3639, 509, 17791, 18762, 273, 312, 2979, 1370, 18, 588, 3039, 5621, 3639, 309, 261, 6551, 1225, 18762, 411, 6989, 67, 11302, 67, 26464, 67, 4574, 13, 540, 202, 6551, 1225, 18762, 273, 6989, 67, 11302, 67, 26464, 67, 4574, 31, 3639, 309, 261, 6551, 1225, 18762, 405, 6604, 13, 540, 202, 6551, 1225, 18762, 273, 6604, 31, 3639, 312, 1892, 1638, 2335, 273, 312, 1892, 1685, 2335, 397, 17791, 18762, 31, 3639, 312, 13616, 1892, 273, 394, 2407, 32, 16155, 2092, 13616, 2 ]
public org.quickfix.field.EncodedLegSecurityDesc getEncodedLegSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedLegSecurityDesc value = new org.quickfix.field.EncodedLegSecurityDesc();
public quickfix.field.EncodedLegSecurityDesc getEncodedLegSecurityDesc() throws FieldNotFound { quickfix.field.EncodedLegSecurityDesc value = new quickfix.field.EncodedLegSecurityDesc();
public org.quickfix.field.EncodedLegSecurityDesc getEncodedLegSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedLegSecurityDesc value = new org.quickfix.field.EncodedLegSecurityDesc(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionReport.java/clean/src/java/src/quickfix/fix44/PositionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 28799, 8329, 4368, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 28799, 8329, 4368, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 4368, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.exception = e;
this.exception = e;
public void exceptionOccured(IOException e) { this.exception = e; }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/ProgressDialog.java/buggy/freehep-graphicsio/src/main/java/org/freehep/graphicsio/exportchooser/ProgressDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1520, 24269, 2862, 12, 14106, 425, 13, 288, 377, 202, 2211, 18, 4064, 273, 425, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1520, 24269, 2862, 12, 14106, 425, 13, 288, 377, 202, 2211, 18, 4064, 273, 425, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public synchronized void register(UserAlert alert) { alerts.add(alert);
public void register(UserAlert alert) { synchronized (alerts) { alerts.add(alert); }
public synchronized void register(UserAlert alert) { alerts.add(alert); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/30ab8ebf80a05ba2502d6187bd9d6f47d063fbd1/UserAlertManager.java/buggy/src/freenet/node/useralerts/UserAlertManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1744, 12, 1299, 13298, 6881, 13, 288, 202, 202, 11798, 87, 18, 1289, 12, 11798, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1744, 12, 1299, 13298, 6881, 13, 288, 202, 202, 11798, 87, 18, 1289, 12, 11798, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
XSClass xsClass = new XSClass(jClass, typeName);
boolean derived = false;
public JClass createSourceCode (SimpleType simpleType, SGStateInfo sgState) { if ( SimpleTypesFactory.isBuiltInType( simpleType.getTypeCode() ) ) { String err = "You cannot construct a ClassInfo for a " + "built-in SimpleType."; throw new IllegalArgumentException(err); } if (sgState == null) { throw new IllegalArgumentException("SGStateInfo cannot be null."); } boolean enumeration = false; //-- class name information String typeName = simpleType.getName(); if (typeName == null) { Structure struct = simpleType.getParent(); switch (struct.getStructureType()) { case Structure.ATTRIBUTE: typeName = ((AttributeDecl)struct).getName(); break; case Structure.ELEMENT: typeName = ((ElementDecl)struct).getName(); break; } typeName += "Type"; } String className = JavaNaming.toJavaClassName(typeName); String packageName = sgState.packageName; if (simpleType.hasFacet(Facet.ENUMERATION)) { enumeration = true; //-- XXXX Fix packageName...this is a hack I know, //-- XXXX we should change this if ((packageName != null) && (packageName.length() > 0)) packageName = packageName + ".types"; else packageName = "types"; } className = resolveClassName(className, packageName); FactoryState state = new FactoryState(className, sgState); //-- reset package name state.packageName = packageName; ClassInfo classInfo = state.classInfo; JClass jClass = state.jClass; initialize(jClass); //-- XML information Schema schema = simpleType.getSchema(); classInfo.setNamespaceURI(schema.getTargetNamespace()); classInfo.setNodeName(typeName); //-- process annotation String comment = processAnnotations(simpleType); if (comment != null) jClass.getJDocComment().setComment(comment); XSClass xsClass = new XSClass(jClass, typeName); classInfo.setSchemaType(xsClass); //-- handle enumerated types if (enumeration) { xsClass.setAsEnumertated(true); processEnumeration(simpleType, state); } //-- create Bound Properties code if (state.hasBoundProperties()) createPropertyChangeMethods(jClass); sgState.bindReference(jClass, classInfo); sgState.bindReference(simpleType, classInfo); return jClass; } //-- createSourceCode(SimpleType);
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/00058c702c0678febae558c788d3a26a0bfb42e0/SourceFactory.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/SourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 797, 752, 1830, 1085, 3639, 261, 5784, 559, 4143, 559, 16, 348, 43, 1119, 966, 11150, 1119, 13, 565, 288, 3639, 309, 261, 4477, 2016, 1733, 18, 291, 16409, 382, 559, 12, 4143, 559, 18, 588, 15460, 1435, 262, 262, 288, 5411, 514, 393, 273, 315, 6225, 2780, 4872, 279, 19010, 364, 279, 315, 397, 7734, 315, 12406, 17, 267, 4477, 559, 1199, 31, 5411, 604, 394, 2754, 12, 370, 1769, 3639, 289, 7734, 309, 261, 1055, 1119, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 30820, 1119, 966, 2780, 506, 446, 1199, 1769, 3639, 289, 3639, 1250, 16836, 273, 629, 31, 3639, 368, 413, 667, 508, 1779, 3639, 514, 8173, 273, 4143, 559, 18, 17994, 5621, 3639, 309, 261, 723, 461, 422, 446, 13, 288, 5411, 13348, 1958, 273, 4143, 559, 18, 588, 3054, 5621, 5411, 1620, 261, 1697, 18, 588, 6999, 559, 10756, 288, 7734, 648, 13348, 18, 11616, 30, 10792, 8173, 273, 14015, 1499, 3456, 13, 1697, 2934, 17994, 5621, 10792, 898, 31, 7734, 648, 13348, 18, 10976, 30, 10792, 8173, 273, 14015, 1046, 3456, 13, 1697, 2934, 17994, 5621, 10792, 898, 31, 5411, 289, 5411, 8173, 1011, 315, 559, 14432, 3639, 289, 3639, 514, 2658, 282, 273, 5110, 24102, 18, 869, 5852, 3834, 12, 723, 461, 1769, 3639, 514, 9929, 273, 11150, 1119, 18, 5610, 461, 31, 3639, 309, 261, 9647, 559, 18, 5332, 11137, 12, 11137, 18, 16509, 654, 2689, 3719, 288, 5411, 16836, 273, 638, 31, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 797, 752, 1830, 1085, 3639, 261, 5784, 559, 4143, 559, 16, 348, 43, 1119, 966, 11150, 1119, 13, 565, 288, 3639, 309, 261, 4477, 2016, 1733, 18, 291, 16409, 382, 559, 12, 4143, 559, 18, 588, 15460, 1435, 262, 262, 288, 5411, 514, 393, 273, 315, 6225, 2780, 4872, 279, 19010, 364, 279, 315, 397, 7734, 315, 12406, 17, 267, 4477, 559, 1199, 31, 5411, 604, 394, 2754, 12, 370, 1769, 3639, 289, 7734, 309, 261, 1055, 1119, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 30820, 1119, 966, 2780, 506, 446, 1199, 1769, 3639, 289, 3639, 1250, 16836, 273, 629, 31, 3639, 368, 413, 667, 508, 1779, 3639, 514, 8173, 273, 4143, 559, 18, 2 ]
public static void prepareWebArchive(String webAppsDir, String warFile) throws Exception, IOException { String webModule = warFile; if (webModule.indexOf("/") != -1) webModule = webModule.substring(webModule.lastIndexOf("/") + 1); if (webModule.indexOf(dirDelim) != -1) webModule = webModule.substring(webModule.lastIndexOf(dirDelim) + 1); if (webModule.endsWith(".war")) webModule = webModule.substring(0, webModule.lastIndexOf(".")); System.out.println("prepare web archive '" + webModule + "' ..."); Mapping mappingPortletXml = null; Mapping mappingWebXml = null; // get portlet xml mapping file String _portlet_mapping = webAppsDir + portalImplWebDir + "WEB-INF" + dirDelim + "data" + dirDelim + "xml" +dirDelim + "portletdefinitionmapping.xml"; mappingPortletXml = new Mapping(); try { mappingPortletXml.loadMapping(_portlet_mapping); } catch (Exception e) { System.out.println("CASTOR-Exception: " + e); throw new IOException( "Failed to load mapping file " + _web_mapping + ". Cause of mapping error: " + e.getMessage()); } File portletXml = new File(webAppsDir + webModule + webInfDir + "portlet.xml"); // get web xml mapping file String _web_mapping = webAppsDir + portalImplWebDir + "WEB-INF" + dirDelim + "data" + dirDelim + "xml" + dirDelim + "servletdefinitionmapping.xml"; mappingWebXml = new Mapping(); try { mappingWebXml.loadMapping(_web_mapping); } catch (Exception e) { throw new IOException( "Failed to load mapping file " + _web_mapping + ". Cause of mapping error: " + e.getMessage()); } File webXml = new File(webAppsDir + webModule + webInfDir + "web.xml"); try { org.w3c.dom.Document portletDocument = XmlParser.parsePortletXml(new FileInputStream(portletXml)); Unmarshaller unmarshaller = new Unmarshaller(mappingPortletXml); // modified by YCLI: START :: to ignore extra elements and attributes unmarshaller.setIgnoreExtraElements(true); unmarshaller.setIgnoreExtraAttributes(true); // modified by YCLI: END PortletApplicationDefinitionImpl portletApp = (PortletApplicationDefinitionImpl) unmarshaller.unmarshal( portletDocument); // refill structure with necessary information Vector structure = new Vector(); structure.add(webModule); structure.add(null); structure.add(null); portletApp.preBuild(structure); if (debug) { System.out.println(portletApp); } // now generate web part WebApplicationDefinitionImpl webApp = null; if (webXml.exists()) { org.w3c.dom.Document webDocument = XmlParser.parseWebXml(new FileInputStream(webXml)); Unmarshaller unmarshallerWeb = new Unmarshaller(mappingWebXml); // modified by YCLI: START :: to ignore extra elements and attributes unmarshallerWeb.setIgnoreExtraElements(true); unmarshallerWeb.setIgnoreExtraAttributes(true); // modified by YCLI: END webApp = (WebApplicationDefinitionImpl) unmarshallerWeb.unmarshal( webDocument); } else { webApp = new WebApplicationDefinitionImpl(); DisplayNameImpl dispName = new DisplayNameImpl(); dispName.setDisplayName(webModule); dispName.setLocale(Locale.ENGLISH); DisplayNameSetImpl dispSet = new DisplayNameSetImpl(); dispSet.add(dispName); webApp.setDisplayNames(dispSet); DescriptionImpl desc = new DescriptionImpl(); desc.setDescription("Automated generated Application Wrapper"); desc.setLocale(Locale.ENGLISH); DescriptionSetImpl descSet = new DescriptionSetImpl(); descSet.add(desc); webApp.setDescriptions(descSet); } org.apache.pluto.om.ControllerFactory controllerFactory = new org.apache.pluto.portalImpl.om.ControllerFactoryImpl(); ServletDefinitionListCtrl servletDefinitionSetCtrl = (ServletDefinitionListCtrl) controllerFactory.get( webApp.getServletDefinitionList()); Collection servletMappings = webApp.getServletMappings(); Iterator portlets = portletApp.getPortletDefinitionList().iterator(); while (portlets.hasNext()) { PortletDefinition portlet = (PortletDefinition) portlets.next(); // check if already exists ServletDefinition servlet = webApp.getServletDefinitionList().get(portlet.getName()); if (servlet != null) { if (!servlet .getServletClass() .equals("org.apache.pluto.core.PortletServlet")) { System.out.println( "Note: Replaced already existing the servlet with the name '" + portlet.getName() + "' with the wrapper servlet."); } ServletDefinitionCtrl _servletCtrl = (ServletDefinitionCtrl) controllerFactory.get(servlet); _servletCtrl.setServletClass( "org.apache.pluto.core.PortletServlet"); } else { servlet = servletDefinitionSetCtrl.add( portlet.getName(), "org.apache.pluto.core.PortletServlet"); } ServletDefinitionCtrl servletCtrl = (ServletDefinitionCtrl) controllerFactory.get(servlet); DisplayNameImpl dispName = new DisplayNameImpl(); dispName.setDisplayName(portlet.getName() + " Wrapper"); dispName.setLocale(Locale.ENGLISH); DisplayNameSetImpl dispSet = new DisplayNameSetImpl(); dispSet.add(dispName); servletCtrl.setDisplayNames(dispSet); DescriptionImpl desc = new DescriptionImpl(); desc.setDescription("Automated generated Portlet Wrapper"); desc.setLocale(Locale.ENGLISH); DescriptionSetImpl descSet = new DescriptionSetImpl(); descSet.add(desc); servletCtrl.setDescriptions(descSet); ParameterSet parameters = servlet.getInitParameterSet(); ParameterSetCtrl parameterSetCtrl = (ParameterSetCtrl) controllerFactory.get(parameters); Parameter parameter1 = parameters.get("portlet-class"); if (parameter1 == null) { parameterSetCtrl.add( "portlet-class", portlet.getClassName()); } else { ParameterCtrl parameterCtrl = (ParameterCtrl) controllerFactory.get(parameter1); parameterCtrl.setValue(portlet.getClassName()); } Parameter parameter2 = parameters.get("portlet-guid"); if (parameter2 == null) { parameterSetCtrl.add( "portlet-guid", portlet.getId().toString()); } else { ParameterCtrl parameterCtrl = (ParameterCtrl) controllerFactory.get(parameter2); parameterCtrl.setValue(portlet.getId().toString()); } boolean found = false; Iterator mappings = servletMappings.iterator(); while (mappings.hasNext()) { ServletMappingImpl servletMapping = (ServletMappingImpl) mappings.next(); if (servletMapping .getServletName() .equals(portlet.getName())) { found = true; servletMapping.setUrlPattern( "/" + portlet.getName().replace(' ', '_') + "/*"); } } if (!found) { ServletMappingImpl servletMapping = new ServletMappingImpl(); servletMapping.setServletName(portlet.getName()); servletMapping.setUrlPattern( "/" + portlet.getName().replace(' ', '_') + "/*"); servletMappings.add(servletMapping); } SecurityRoleRefSet servletSecurityRoleRefs = ((ServletDefinitionImpl)servlet).getInitSecurityRoleRefSet(); SecurityRoleRefSetCtrl servletSecurityRoleRefSetCtrl = (SecurityRoleRefSetCtrl) controllerFactory.get( servletSecurityRoleRefs); SecurityRoleSet webAppSecurityRoles = webApp.getSecurityRoles(); SecurityRoleRefSet portletSecurityRoleRefs = portlet.getInitSecurityRoleRefSet(); Iterator p = portletSecurityRoleRefs.iterator(); while (p.hasNext()) { SecurityRoleRef portletSecurityRoleRef = (SecurityRoleRef) p.next(); if ( portletSecurityRoleRef.getRoleLink()== null && webAppSecurityRoles.get(portletSecurityRoleRef.getRoleName())==null ){ System.out.println( "Note: The web application has no security role defined which matches the role name \"" + portletSecurityRoleRef.getRoleName() + "\" of the security-role-ref element defined for the wrapper-servlet with the name '" + portlet.getName() + "'."); break; } SecurityRoleRef servletSecurityRoleRef = servletSecurityRoleRefs.get( portletSecurityRoleRef.getRoleName()); if (null != servletSecurityRoleRef) { System.out.println( "Note: Replaced already existing element of type <security-role-ref> with value \"" + portletSecurityRoleRef.getRoleName() + "\" for subelement of type <role-name> for the wrapper-servlet with the name '" + portlet.getName() + "'."); servletSecurityRoleRefSetCtrl.remove( servletSecurityRoleRef); } servletSecurityRoleRefSetCtrl.add(portletSecurityRoleRef); } } if (debug) { System.out.println(webApp); } OutputFormat of = new OutputFormat(); of.setIndenting(true); of.setIndent(4); // 2-space indention of.setLineWidth(16384); // As large as needed to prevent linebreaks in text nodes of.setDoctype( Constants.WEB_PORTLET_PUBLIC_ID, Constants.WEB_PORTLET_DTD); FileWriter writer = new FileWriter(webAppsDir + webModule + System.getProperty("file.separator") + "WEB-INF"+ System.getProperty("file.separator") + "web.xml"); XMLSerializer serializer = new XMLSerializer(writer, of); try { Marshaller marshaller = new Marshaller(serializer.asDocumentHandler()); marshaller.setMapping(mappingWebXml); marshaller.marshal(webApp); } catch (Exception e) { writer.close(); e.printStackTrace(System.out); throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e); } // REMOVED copy of tld b/c it's now included in the container distribution. //String strTo = dirDelim + "WEB-INF" + dirDelim + "tld" + dirDelim + "portlet.tld"; //String strFrom = plutoHome + "portal" + dirDelim + "src" + // dirDelim + "webapp" + strTo; //copy(strFrom, webAppsDir + webModule + strTo); } catch (Exception e) { e.printStackTrace(System.out); throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e); } System.out.println("finished!"); }
51810 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51810/00086a1ad6a1efd1fb392a944b4ca282a135942c/Deploy.java/buggy/portal/src/java/org/apache/pluto/portalImpl/Deploy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2911, 4079, 7465, 12, 780, 3311, 16339, 1621, 16, 514, 21983, 812, 13, 3639, 1216, 1185, 16, 1860, 288, 3639, 514, 3311, 3120, 273, 21983, 812, 31, 3639, 309, 261, 4875, 3120, 18, 31806, 2932, 4898, 13, 480, 300, 21, 13, 5411, 3311, 3120, 273, 3311, 3120, 18, 28023, 12, 4875, 3120, 18, 2722, 31985, 2932, 4898, 13, 397, 404, 1769, 3639, 309, 261, 4875, 3120, 18, 31806, 12, 1214, 21445, 13, 480, 300, 21, 13, 5411, 3311, 3120, 273, 7734, 3311, 3120, 18, 28023, 12, 4875, 3120, 18, 2722, 31985, 12, 1214, 21445, 13, 397, 404, 1769, 3639, 309, 261, 4875, 3120, 18, 5839, 1190, 2932, 18, 905, 6, 3719, 5411, 3311, 3120, 273, 3311, 3120, 18, 28023, 12, 20, 16, 3311, 3120, 18, 2722, 31985, 2932, 1199, 10019, 3639, 2332, 18, 659, 18, 8222, 2932, 9366, 3311, 5052, 2119, 397, 3311, 3120, 397, 2491, 1372, 8863, 3639, 9408, 2874, 18566, 4432, 273, 446, 31, 3639, 9408, 2874, 4079, 4432, 273, 446, 31, 3639, 368, 336, 13114, 2025, 2874, 585, 3639, 514, 389, 655, 1810, 67, 6770, 273, 5411, 3311, 16339, 1621, 397, 11899, 2828, 4079, 1621, 397, 315, 14778, 17, 19212, 6, 397, 1577, 21445, 397, 315, 892, 6, 397, 1577, 21445, 397, 315, 2902, 6, 397, 1214, 21445, 397, 315, 655, 1810, 6907, 6770, 18, 2902, 14432, 3639, 2874, 18566, 4432, 273, 394, 9408, 5621, 3639, 775, 288, 5411, 2874, 18566, 4432, 18, 945, 3233, 24899, 655, 1810, 67, 6770, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2911, 4079, 7465, 12, 780, 3311, 16339, 1621, 16, 514, 21983, 812, 13, 3639, 1216, 1185, 16, 1860, 288, 3639, 514, 3311, 3120, 273, 21983, 812, 31, 3639, 309, 261, 4875, 3120, 18, 31806, 2932, 4898, 13, 480, 300, 21, 13, 5411, 3311, 3120, 273, 3311, 3120, 18, 28023, 12, 4875, 3120, 18, 2722, 31985, 2932, 4898, 13, 397, 404, 1769, 3639, 309, 261, 4875, 3120, 18, 31806, 12, 1214, 21445, 13, 480, 300, 21, 13, 5411, 3311, 3120, 273, 7734, 3311, 3120, 18, 28023, 12, 4875, 3120, 18, 2722, 31985, 12, 1214, 21445, 13, 397, 404, 1769, 3639, 309, 261, 4875, 3120, 18, 5839, 1190, 2932, 18, 905, 6, 3719, 5411, 3311, 3120, 273, 2 ]
synchronized( o1 )
synchronized(o1)
public void testCursorResultSetConcurrency0003() throws Exception { Statement stmt0 = con.createStatement(); stmt0.execute("create table #SAfe0003(id int primary key, val varchar(20) null) "+ "insert into #SAfe0003 values (1, 'Line 1') "+ "insert into #SAfe0003 values (2, 'Line 2')"); while( stmt0.getMoreResults() || stmt0.getUpdateCount()!=-1 ); final Object o1=new Object(), o2=new Object(); final Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); int threadCount = 25; Thread threads[] = new Thread[threadCount]; started = done = 0; failed = false; for( int i=0; i<threadCount; i++ ) { threads[i] = new Thread() { public void run() { ResultSet rs = null; try { rs = stmt.executeQuery("SELECT * FROM #SAfe0003"); assertEquals(null, rs.getWarnings()); assertEquals(null, stmt.getWarnings()); // Synchronize all threads synchronized( o2 ) { synchronized( o1 ) { started++; o1.notify(); } try{ o2.wait(); } catch( InterruptedException e ) {} } assertNotNull("executeQuery should not return null", rs); assertTrue(rs.next()); assertTrue(rs.next()); assertTrue(!rs.next()); assertTrue(rs.previous()); assertTrue(rs.previous()); assertTrue(!rs.previous()); } catch( SQLException e ) { e.printStackTrace(); synchronized (o1) { failed = true; } fail("An SQL Exception occured: "+e); } finally { if( rs != null ) try{ rs.close(); } catch( SQLException e ) {} // Notify that we're done synchronized( o1 ) { done++; o1.notify(); } } } }; threads[i].start(); } while( true ) { synchronized( o1 ) { if( started == threadCount ) break; o1.wait(); } } synchronized( o2 ) { o2.notifyAll(); } boolean passed = true; for( int i=0; i<threadCount; i++ ) { stmt0 = con.createStatement(); ResultSet rs = stmt0.executeQuery("SELECT 1234"); passed &= rs.next(); passed &= !rs.next(); stmt0.close(); } while( true ) { synchronized( o1 ) { if( done == threadCount ) break; o1.wait(); } } for( int i=0; i<threadCount; i++ ) threads[i].join(); stmt0.close(); stmt.close(); assertTrue(passed); assertTrue(!failed); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d48066e24a9a4b4edf35b9545de98ba05acafd4d/SAfeTest.java/clean/src/test/net/sourceforge/jtds/test/SAfeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6688, 13198, 18273, 30770, 1435, 1216, 1185, 565, 288, 3639, 8056, 3480, 20, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 20, 18, 8837, 2932, 2640, 1014, 468, 5233, 3030, 30770, 12, 350, 509, 3354, 498, 16, 1244, 30871, 12, 3462, 13, 446, 13, 13773, 5411, 315, 6387, 1368, 468, 5233, 3030, 30770, 924, 261, 21, 16, 296, 1670, 404, 6134, 13773, 5411, 315, 6387, 1368, 468, 5233, 3030, 30770, 924, 261, 22, 16, 296, 1670, 576, 23291, 1769, 3639, 1323, 12, 3480, 20, 18, 588, 7417, 3447, 1435, 747, 3480, 20, 18, 588, 1891, 1380, 1435, 5, 29711, 21, 11272, 3639, 727, 1033, 320, 21, 33, 2704, 1033, 9334, 320, 22, 33, 2704, 1033, 5621, 3639, 727, 8056, 3480, 273, 356, 18, 2640, 3406, 12, 13198, 18, 2399, 67, 2312, 14555, 67, 706, 26753, 16325, 16, 10842, 18, 2248, 7509, 67, 6949, 67, 10857, 1769, 3639, 509, 2650, 1380, 273, 6969, 31, 3639, 4884, 7403, 8526, 273, 394, 4884, 63, 5930, 1380, 15533, 3639, 5746, 273, 2731, 273, 374, 31, 3639, 2535, 273, 629, 31, 3639, 364, 12, 509, 277, 33, 20, 31, 277, 32, 5930, 1380, 31, 277, 9904, 262, 3639, 288, 5411, 7403, 63, 77, 65, 273, 394, 4884, 1435, 5411, 288, 7734, 1071, 918, 1086, 1435, 7734, 288, 10792, 10842, 3597, 273, 446, 31, 10792, 775, 10792, 288, 13491, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 380, 4571, 468, 5233, 3030, 30770, 8863, 13491, 1815, 8867, 12, 2011, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6688, 13198, 18273, 30770, 1435, 1216, 1185, 565, 288, 3639, 8056, 3480, 20, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 20, 18, 8837, 2932, 2640, 1014, 468, 5233, 3030, 30770, 12, 350, 509, 3354, 498, 16, 1244, 30871, 12, 3462, 13, 446, 13, 13773, 5411, 315, 6387, 1368, 468, 5233, 3030, 30770, 924, 261, 21, 16, 296, 1670, 404, 6134, 13773, 5411, 315, 6387, 1368, 468, 5233, 3030, 30770, 924, 261, 22, 16, 296, 1670, 576, 23291, 1769, 3639, 1323, 12, 3480, 20, 18, 588, 7417, 3447, 1435, 747, 3480, 20, 18, 588, 1891, 1380, 1435, 5, 29711, 21, 11272, 3639, 727, 1033, 320, 21, 33, 2704, 1033, 9334, 320, 22, 33, 2704, 1033, 2 ]
item.addGroup(group.getId());
item.addInheritedGroup(group.getId());
public static EditItem getEditItem(String id, String collectionId, RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); Stack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK); Map current_stack_frame = peekAtStack(state); EditItem item = null; // populate an EditItem object with values from the resource and return the EditItem try { ResourceProperties properties = ContentHostingService.getProperties(id); boolean isCollection = false; try { isCollection = properties.getBooleanProperty(ResourceProperties.PROP_IS_COLLECTION); } catch(Exception e) { // assume isCollection is false if property is not set } ContentEntity entity = null; String itemType = ""; byte[] content = null; if(isCollection) { itemType = "folder"; entity = ContentHostingService.getCollection(id); } else { entity = ContentHostingService.getResource(id); itemType = ((ContentResource) entity).getContentType(); content = ((ContentResource) entity).getContent(); } String itemName = properties.getProperty(ResourceProperties.PROP_DISPLAY_NAME); item = new EditItem(id, itemName, itemType); item.setInDropbox(ContentHostingService.isInDropbox(id)); BasicRightsAssignment rightsObj = new BasicRightsAssignment(item.getItemNum(), properties); item.setRights(rightsObj); String encoding = data.getRequest().getCharacterEncoding(); if(encoding != null) { item.setEncoding(encoding); } String defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT); if(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals("")) { defaultCopyrightStatus = ServerConfigurationService.getString("default.copyright"); state.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus); } item.setCopyrightStatus(defaultCopyrightStatus); if(content != null) { item.setContent(content); } String dummyId = collectionId.trim(); if(dummyId.endsWith(Entity.SEPARATOR)) { dummyId += "dummy"; } else { dummyId += Entity.SEPARATOR + "dummy"; } String containerId = ContentHostingService.getContainingCollectionId (id); item.setContainer(containerId); boolean canRead = ContentHostingService.allowGetCollection(id); boolean canAddFolder = ContentHostingService.allowAddCollection(id); boolean canAddItem = ContentHostingService.allowAddResource(id); boolean canDelete = ContentHostingService.allowRemoveResource(id); boolean canRevise = ContentHostingService.allowUpdateResource(id); item.setCanRead(canRead); item.setCanRevise(canRevise); item.setCanAddItem(canAddItem); item.setCanAddFolder(canAddFolder); item.setCanDelete(canDelete); // item.setIsUrl(isUrl); AccessMode access = ((GroupAwareEntity) entity).getAccess(); if(access == null) { item.setAccess(AccessMode.INHERITED.toString()); } else { item.setAccess(access.toString()); } AccessMode inherited_access = ((GroupAwareEntity) entity).getInheritedAccess(); if(inherited_access == null || inherited_access.equals(AccessMode.SITE)) { item.setInheritedAccess(AccessMode.INHERITED.toString()); } else { item.setInheritedAccess(inherited_access.toString()); } List access_groups = new Vector(((GroupAwareEntity) entity).getGroups()); if(access_groups != null) { Site site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); Iterator it = access_groups.iterator(); while(it.hasNext()) { String groupRef = (String) it.next(); Group group = site.getGroup(groupRef); item.addGroup(group.getId()); } } List inherited_access_groups = new Vector(((GroupAwareEntity) entity).getInheritedGroups()); if(inherited_access_groups != null) { Site site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); Iterator it = inherited_access_groups.iterator(); while(it.hasNext()) { String groupRef = (String) it.next(); Group group = site.getGroup(groupRef); item.addGroup(group.getId()); } } Boolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY); if(preventPublicDisplay == null) { preventPublicDisplay = Boolean.FALSE; state.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay); } if(preventPublicDisplay.booleanValue()) { item.setPubviewPossible(false); item.setPubviewInherited(false); item.setPubview(false); } else { item.setPubviewPossible(true); // find out about pubview boolean pubviewset = ContentHostingService.isInheritingPubView(id); item.setPubviewInherited(pubviewset); boolean pubview = pubviewset; if (!pubviewset) { pubview = ContentHostingService.isPubView(id); item.setPubview(pubview); } } if(item.isUrl()) { String url = new String(content); item.setFilename(url); } else if(item.isStructuredArtifact()) { String formtype = properties.getProperty(ResourceProperties.PROP_STRUCTOBJ_TYPE); current_stack_frame.put(STATE_STACK_STRUCTOBJ_TYPE, formtype); current_stack_frame.put(STATE_STACK_EDIT_ITEM, item); setupStructuredObjects(state); Document doc = Xml.readDocumentFromString(new String(content)); Element root = doc.getDocumentElement(); importStructuredArtifact(root, item.getForm()); List flatList = item.getForm().getFlatList(); item.setProperties(flatList); } else if(item.isHtml() || item.isPlaintext() || item.isFileUpload()) { String filename = properties.getProperty(ResourceProperties.PROP_ORIGINAL_FILENAME); if(filename == null) { // this is a hack to deal with the fact that original filenames were not saved for some time. if(containerId != null && item.getId().startsWith(containerId) && containerId.length() < item.getId().length()) { filename = item.getId().substring(containerId.length()); } } if(filename == null) { item.setFilename(itemName); } else { item.setFilename(filename); } } String description = properties.getProperty(ResourceProperties.PROP_DESCRIPTION); item.setDescription(description); try { Time creTime = properties.getTimeProperty(ResourceProperties.PROP_CREATION_DATE); String createdTime = creTime.toStringLocalShortDate() + " " + creTime.toStringLocalShort(); item.setCreatedTime(createdTime); } catch(Exception e) { String createdTime = properties.getProperty(ResourceProperties.PROP_CREATION_DATE); item.setCreatedTime(createdTime); } try { String createdBy = getUserProperty(properties, ResourceProperties.PROP_CREATOR).getDisplayName(); item.setCreatedBy(createdBy); } catch(Exception e) { String createdBy = properties.getProperty(ResourceProperties.PROP_CREATOR); item.setCreatedBy(createdBy); } try { Time modTime = properties.getTimeProperty(ResourceProperties.PROP_MODIFIED_DATE); String modifiedTime = modTime.toStringLocalShortDate() + " " + modTime.toStringLocalShort(); item.setModifiedTime(modifiedTime); } catch(Exception e) { String modifiedTime = properties.getProperty(ResourceProperties.PROP_MODIFIED_DATE); item.setModifiedTime(modifiedTime); } try { String modifiedBy = getUserProperty(properties, ResourceProperties.PROP_MODIFIED_BY).getDisplayName(); item.setModifiedBy(modifiedBy); } catch(Exception e) { String modifiedBy = properties.getProperty(ResourceProperties.PROP_MODIFIED_BY); item.setModifiedBy(modifiedBy); } String url = ContentHostingService.getUrl(id); item.setUrl(url); String size = ""; if(properties.getProperty(ResourceProperties.PROP_CONTENT_LENGTH) != null) { size = properties.getPropertyFormatted(ResourceProperties.PROP_CONTENT_LENGTH) + " (" + Validator.getFileSizeWithDividor(properties.getProperty(ResourceProperties.PROP_CONTENT_LENGTH)) +" bytes)"; } item.setSize(size); String copyrightStatus = properties.getProperty(properties.getNamePropCopyrightChoice()); if(copyrightStatus == null || copyrightStatus.trim().equals("")) { copyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT); } item.setCopyrightStatus(copyrightStatus); String copyrightInfo = properties.getPropertyFormatted(properties.getNamePropCopyright()); item.setCopyrightInfo(copyrightInfo); String copyrightAlert = properties.getProperty(properties.getNamePropCopyrightAlert()); if("true".equalsIgnoreCase(copyrightAlert)) { item.setCopyrightAlert(true); } else { item.setCopyrightAlert(false); } Map metadata = new Hashtable(); List groups = (List) state.getAttribute(STATE_METADATA_GROUPS); if(groups != null && ! groups.isEmpty()) { Iterator it = groups.iterator(); while(it.hasNext()) { MetadataGroup group = (MetadataGroup) it.next(); Iterator propIt = group.iterator(); while(propIt.hasNext()) { ResourcesMetadata prop = (ResourcesMetadata) propIt.next(); String name = prop.getFullname(); String widget = prop.getWidget(); if(widget.equals(ResourcesMetadata.WIDGET_DATE) || widget.equals(ResourcesMetadata.WIDGET_DATETIME) || widget.equals(ResourcesMetadata.WIDGET_TIME)) { Time time = TimeService.newTime(); try { time = properties.getTimeProperty(name); } catch(Exception ignore) { // use "now" as default in that case } metadata.put(name, time); } else { String value = properties.getPropertyFormatted(name); metadata.put(name, value); } } } item.setMetadata(metadata); } else { item.setMetadata(new Hashtable()); } // for collections only if(item.isFolder()) { // setup for quota - ADMIN only, site-root collection only if (SecurityService.isSuperUser()) { Reference ref = EntityManager.newReference(entity.getReference()); String context = ref.getContext(); String siteCollectionId = ContentHostingService.getSiteCollection(context); if(siteCollectionId.equals(entity.getId())) { item.setCanSetQuota(true); try { long quota = properties.getLongProperty(ResourceProperties.PROP_COLLECTION_BODY_QUOTA); item.setHasQuota(true); item.setQuota(Long.toString(quota)); } catch (Exception any) { } } } } } catch (IdUnusedException e) { addAlert(state, RESOURCE_NOT_EXIST_STRING); } catch (PermissionException e) { addAlert(state, rb.getString("notpermis2") + " " + id + ". " ); } catch(TypeException e) { addAlert(state," " + rb.getString("typeex") + " " + id); } catch(ServerOverloadException e) { // this represents temporary unavailability of server's filesystem // for server configured to save resource body in filesystem addAlert(state, rb.getString("failed")); } catch(RuntimeException e) { logger.warn("ResourcesAction.doEdit ***** Unknown Exception ***** " + e.getMessage()); addAlert(state, rb.getString("failed")); } return item; }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/a2aab422114d84976ab40599bea93c37797fd542/ResourcesAction.java/clean/content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 15328, 1180, 21221, 1180, 12, 780, 612, 16, 514, 1849, 548, 16, 1939, 751, 501, 13, 202, 95, 202, 202, 2157, 1119, 919, 273, 14015, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 18566, 2157, 1119, 261, 12443, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 8382, 67, 347, 350, 1832, 1769, 202, 202, 2624, 5295, 67, 3772, 273, 261, 2624, 13, 919, 18, 588, 1499, 12, 7998, 67, 6639, 3118, 22088, 67, 13950, 15297, 67, 21971, 1769, 202, 202, 863, 783, 67, 3772, 67, 3789, 273, 8032, 861, 2624, 12, 2019, 1769, 202, 202, 4666, 1180, 761, 273, 446, 31, 202, 202, 759, 6490, 392, 15328, 1180, 733, 598, 924, 628, 326, 1058, 471, 327, 326, 15328, 1180, 202, 202, 698, 202, 202, 95, 1082, 202, 1420, 2297, 1790, 273, 3697, 2594, 310, 1179, 18, 588, 2297, 12, 350, 1769, 1082, 202, 6494, 26506, 273, 629, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 291, 2532, 273, 1790, 18, 588, 5507, 1396, 12, 1420, 2297, 18, 15811, 67, 5127, 67, 25964, 1769, 1082, 202, 97, 1082, 202, 14683, 12, 503, 425, 13, 1082, 202, 95, 9506, 202, 759, 6750, 26506, 353, 629, 309, 1272, 353, 486, 444, 1082, 202, 97, 1082, 202, 1350, 1943, 1522, 273, 446, 31, 1082, 202, 780, 23080, 273, 1408, 31, 1082, 202, 7229, 8526, 913, 273, 446, 31, 1082, 202, 430, 12, 291, 2532, 13, 1082, 202, 95, 9506, 202, 1726, 559, 273, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 15328, 1180, 21221, 1180, 12, 780, 612, 16, 514, 1849, 548, 16, 1939, 751, 501, 13, 202, 95, 202, 202, 2157, 1119, 919, 273, 14015, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 18566, 2157, 1119, 261, 12443, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 8382, 67, 347, 350, 1832, 1769, 202, 202, 2624, 5295, 67, 3772, 273, 261, 2624, 13, 919, 18, 588, 1499, 12, 7998, 67, 6639, 3118, 22088, 67, 13950, 15297, 67, 21971, 1769, 202, 202, 863, 783, 67, 3772, 67, 3789, 273, 8032, 861, 2624, 12, 2019, 1769, 202, 202, 4666, 1180, 761, 273, 446, 31, 202, 202, 759, 6490, 392, 15328, 1180, 733, 598, 924, 628, 326, 2 ]
oMax = new Double( 99.99 );
oMax = new Double( 100 );
private final Object getMinMax( Axis ax, int iType ) throws ChartException, IllegalArgumentException { final Series[] sea = ax.getRuntimeSeries( ); final int iSeriesCount = sea.length; Series se; DataSet ds; Object oV1, oV2, oMin = null, oMax = null; PluginSettings ps = PluginSettings.instance( ); IDataSetProcessor iDSP = null; // ANY STACKED SERIES ASSOCIATED WITH AXIS 'ax' boolean bAnyStacked = false; for ( int i = 0; i < iSeriesCount; i++ ) { if ( sea[i].isStacked( ) ) { if ( sea[i].canBeStacked( ) ) { bAnyStacked = true; continue; } else { throw new IllegalArgumentException( MessageFormat.format( Messages.getResourceBundle( rtc.getULocale( ) ) .getString( "exception.unstackable.is.stacked" ), //$NON-NLS-1$ new Object[]{ sea[i] } ) ); } } iDSP = ps.getDataSetProcessor( sea[i].getClass( ) ); ds = sea[i].getDataSet( ); oV1 = iDSP.getMinimum( ds ); oV2 = iDSP.getMaximum( ds ); if ( ( iType & NUMERICAL ) == NUMERICAL ) { if ( oV1 != null ) // SETUP THE MINIMUM VALUE FOR ALL DATASETS { if ( oMin == null ) { oMin = oV1; } else { final double dV1 = asDouble( oV1 ).doubleValue( ); if ( Math.min( asDouble( oMin ).doubleValue( ), dV1 ) == dV1 ) { oMin = oV1; } } } if ( oV2 != null ) // SETUP THE MAXIMUM VALUE FOR ALL DATASETS { if ( oMax == null ) { oMax = oV2; } else { final double dV2 = asDouble( oV2 ).doubleValue( ); if ( Math.max( asDouble( oMax ).doubleValue( ), dV2 ) == dV2 ) { oMax = oV2; } } } } else if ( ( iType & DATE_TIME ) == DATE_TIME ) { if ( oV1 != null ) // SETUP THE MINIMUM VALUE FOR ALL DATASETS { if ( oMin == null ) { oMin = oV1; } else { final CDateTime cdtV1 = asDateTime( oV1 ); final CDateTime cdtMin = asDateTime( oMin ); if ( cdtV1.before( cdtMin ) ) { oMin = cdtV1; } } } if ( oV2 != null ) // SETUP THE MAXIMUM VALUE FOR ALL DATASETS { if ( oMax == null ) { oMax = oV2; } else { final CDateTime cdtV2 = asDateTime( oV2 ); final CDateTime cdtMax = asDateTime( oMax ); if ( cdtV2.after( cdtMax ) ) { oMax = cdtV2; } } } } } // ONLY NUMERIC VALUES ARE SUPPORTED IN STACKED ELEMENT COMPUTATIONS if ( bAnyStacked || ax.isPercent( ) ) { if ( ax.getType( ).getValue( ) == AxisType.DATE_TIME ) { throw new IllegalArgumentException( MessageFormat.format( Messages.getResourceBundle( rtc.getULocale( ) ) .getString( "exception.stacked.datetime.axis.series" ), //$NON-NLS-1$ new Object[]{ ax } ) ); } Object oValue; int iSeriesPerGroup; double dGroupMin, dGroupMax, dValue, dAbsTotal, dPercentMax = 0, dPercentMin = 0; double dAxisMin = Double.MAX_VALUE, dAxisMax = -Double.MAX_VALUE; ArrayList alSeriesGroupsPerAxis = ssl.getStackGroups( ax ); ArrayList alSeriesPerGroup; StackGroup sg; DataSetIterator[] dsi = new DataSetIterator[ssl.getSeriesCount( ax )]; if ( alSeriesGroupsPerAxis == null ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_SET, "exception.internal.stack.series.setup", //$NON-NLS-1$ new Object[]{ ax }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } logger.log( ILogger.INFORMATION, Messages.getString( "info.processing.stacked.info", //$NON-NLS-1$ new Object[]{ ax }, rtc.getULocale( ) ) ); int iSeriesIndex, iDataSetCount = ssl.getUnitCount( ); for ( int k = 0; k < iDataSetCount; k++ ) // PER UNIT { dAbsTotal = 0; iSeriesIndex = 0; for ( int i = 0; i < alSeriesGroupsPerAxis.size( ); i++ ) { sg = (StackGroup) alSeriesGroupsPerAxis.get( i ); alSeriesPerGroup = sg.getSeries( ); iSeriesPerGroup = alSeriesPerGroup.size( ); if ( iSeriesPerGroup > 0 ) { se = (Series) alSeriesPerGroup.get( 0 ); ds = se.getDataSet( ); if ( dsi[iSeriesIndex] == null ) { dsi[iSeriesIndex] = new DataSetIterator( ds ); if ( ( dsi[iSeriesIndex].getDataType( ) & IConstants.NUMERICAL ) != IConstants.NUMERICAL ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_SET, "exception.percent.stacked.non.numerical", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } } // ALL SERIES MUST HAVE THE SAME DATASET ELEMENT COUNT iDataSetCount = dsi[iSeriesIndex].size( ); dGroupMin = 0; dGroupMax = 0; if ( ax.isPercent( ) ) { dAbsTotal = 0; } for ( int j = 0; j < iSeriesPerGroup; j++ ) { se = (Series) alSeriesPerGroup.get( j ); if ( j > 0 ) // ALREADY DONE FOR '0' { if ( dsi[iSeriesIndex] == null ) { ds = se.getDataSet( ); // DATA SET dsi[iSeriesIndex] = new DataSetIterator( ds ); if ( ( dsi[iSeriesIndex].getDataType( ) & IConstants.NUMERICAL ) != IConstants.NUMERICAL ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_SET, "exception.percent.stacked.non.numerical", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } } } // EACH ROW OF DATA oValue = dsi[iSeriesIndex].next( ); if ( oValue != null ) // NULL CHECK { // EXTRACT WRAPPED VALUE dValue = ( (Double) oValue ).doubleValue( ); dAbsTotal += Math.abs( dValue ); if ( dValue > 0 ) { dGroupMax += dValue; // UPDATE MAX } else if ( dValue < 0 ) { dGroupMin += dValue; // UPDATE MIN } } iSeriesIndex++; } final AxisSubUnit au = ssl.getSubUnit( sg, k ); au.setPositiveTotal( dGroupMax ); au.setNegativeTotal( dGroupMin ); // FOR EACH UNIT, UPDATE THE MIN/MAX BASED ON ALL // STACKED SERIES dAxisMax = Math.max( dGroupMax, dAxisMax ); dAxisMin = Math.min( dGroupMin, dAxisMin ); if ( ax.isPercent( ) ) { if ( dAbsTotal != 0d ) { dPercentMax = Math.max( ( dGroupMax / dAbsTotal ) * 100d, dPercentMax ); dPercentMin = Math.min( ( dGroupMin / dAbsTotal ) * 100d, dPercentMin ); } } } } } if ( ax.isPercent( ) ) // HANDLE PERCENT { if ( dPercentMax >= 100 ) dPercentMax = 99.9; if ( dPercentMin <= -100 ) dPercentMin = -99.9; if ( dPercentMax == 0 && dPercentMin == 0 ) { dPercentMax = 99; } dAxisMin = dPercentMin; dAxisMax = dPercentMax; } if ( ( iType & LOGARITHMIC ) == LOGARITHMIC ) { dAxisMin = 1; } oMin = new Double( dAxisMin ); oMax = new Double( dAxisMax ); } // IF NO DATASET WAS FOUND BECAUSE NO SERIES WERE ATTACHED TO AXES, // SIMULATE MIN/MAX VALUES if ( oMin == null && oMax == null ) { if ( iType == DATE_TIME ) { oMin = new CDateTime( 1, 1, 2005 ); oMax = new CDateTime( 1, 1, 2006 ); } else if ( ( iType & NUMERICAL ) == NUMERICAL ) { if ( ( iType & PERCENT ) == PERCENT ) { oMin = new Double( 0 ); oMax = new Double( 99.99 ); } else if ( ( iType & LOGARITHMIC ) == LOGARITHMIC ) { oMin = new Double( 1 ); oMax = new Double( 999 ); } else { oMin = new Double( -0.9 ); oMax = new Double( 0.9 ); } } } if ( iType == DATE_TIME ) { try { return new Calendar[]{ asDateTime( oMin ), asDateTime( oMax ) }; } catch ( ClassCastException ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_SET, "exception.numerical.data.datetime.axis", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else if ( ( iType & NUMERICAL ) == NUMERICAL ) { try { return new double[]{ asDouble( oMin ).doubleValue( ), asDouble( oMax ).doubleValue( ) }; } catch ( ClassCastException ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_SET, "exception.datetime.data.numerical.axis", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/98cba9bda694f0960ab48217f5b94f92c5f9da85/PlotWith2DAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 1033, 9555, 2747, 12, 15509, 1740, 16, 509, 277, 559, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 9225, 8526, 695, 69, 273, 1740, 18, 588, 5576, 6485, 12, 11272, 202, 202, 6385, 509, 277, 6485, 1380, 273, 695, 69, 18, 2469, 31, 202, 202, 6485, 695, 31, 202, 202, 13676, 3780, 31, 202, 202, 921, 320, 58, 21, 16, 320, 58, 22, 16, 320, 2930, 273, 446, 16, 320, 2747, 273, 446, 31, 202, 202, 3773, 2628, 4250, 273, 6258, 2628, 18, 1336, 12, 11272, 202, 202, 734, 396, 694, 5164, 277, 40, 3118, 273, 446, 31, 202, 202, 759, 16743, 11464, 2056, 7758, 8805, 17289, 27248, 6344, 13601, 29539, 5127, 296, 651, 11, 202, 202, 6494, 324, 2961, 2624, 329, 273, 629, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 277, 6485, 1380, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 430, 261, 695, 69, 63, 77, 8009, 291, 2624, 329, 12, 262, 262, 1082, 202, 95, 9506, 202, 430, 261, 695, 69, 63, 77, 8009, 4169, 1919, 2624, 329, 12, 262, 262, 9506, 202, 95, 6862, 202, 70, 2961, 2624, 329, 273, 638, 31, 6862, 202, 17143, 31, 9506, 202, 97, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 12849, 394, 2754, 12, 17377, 18, 2139, 12, 4838, 18, 588, 18731, 12, 436, 5111, 18, 588, 57, 3916, 12, 262, 262, 6862, 1082, 202, 18, 588, 780, 12, 315, 4064, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 1033, 9555, 2747, 12, 15509, 1740, 16, 509, 277, 559, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 9225, 8526, 695, 69, 273, 1740, 18, 588, 5576, 6485, 12, 11272, 202, 202, 6385, 509, 277, 6485, 1380, 273, 695, 69, 18, 2469, 31, 202, 202, 6485, 695, 31, 202, 202, 13676, 3780, 31, 202, 202, 921, 320, 58, 21, 16, 320, 58, 22, 16, 320, 2930, 273, 446, 16, 320, 2747, 273, 446, 31, 202, 202, 3773, 2628, 4250, 273, 6258, 2628, 18, 1336, 12, 11272, 202, 202, 734, 396, 694, 5164, 277, 40, 3118, 273, 446, 31, 202, 202, 759, 16743, 11464, 2056, 7758, 8805, 17289, 27248, 6344, 13601, 2 ]
if( ( null == addrArray ) || ( 0 == addrArray.length ) )
if( ( null == addrArray ) || ( 0 == addrArray.length ) ) {
private static void addRecipients( MimeMessage msg, Message.RecipientType recipType, String addrUserName, String addrList ) throws MessagingException, TaskException { if( ( null == addrList ) || ( addrList.trim().length() <= 0 ) ) return; try { InternetAddress[] addrArray = InternetAddress.parse( addrList ); if( ( null == addrArray ) || ( 0 == addrArray.length ) ) throw new TaskException( "Empty " + addrUserName + " recipients list was specified" ); msg.setRecipients( recipType, addrArray ); } catch( AddressException ae ) { throw new TaskException( "Invalid " + addrUserName + " recipient list" ); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8ce1de2178a0422105fa437c327b49fb5637ff28/MimeMail.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 527, 22740, 12, 22059, 1079, 1234, 16, 4766, 4202, 2350, 18, 18241, 559, 5863, 559, 16, 4766, 4202, 514, 3091, 15296, 16, 4766, 4202, 514, 3091, 682, 4766, 4202, 262, 3639, 1216, 23794, 503, 16, 3837, 503, 565, 288, 3639, 309, 12, 261, 446, 422, 3091, 682, 262, 747, 261, 3091, 682, 18, 5290, 7675, 2469, 1435, 1648, 374, 262, 262, 5411, 327, 31, 3639, 775, 3639, 288, 5411, 21352, 1887, 8526, 3091, 1076, 273, 21352, 1887, 18, 2670, 12, 3091, 682, 11272, 5411, 309, 12, 261, 446, 422, 3091, 1076, 262, 747, 261, 374, 422, 3091, 1076, 18, 2469, 262, 262, 288, 7734, 604, 394, 3837, 503, 12, 315, 1921, 315, 397, 3091, 15296, 397, 315, 12045, 666, 1703, 1269, 6, 11272, 5411, 1234, 18, 542, 22740, 12, 5863, 559, 16, 3091, 1076, 11272, 3639, 289, 3639, 1044, 12, 5267, 503, 14221, 262, 3639, 288, 5411, 604, 394, 3837, 503, 12, 315, 1941, 315, 397, 3091, 15296, 397, 315, 8027, 666, 6, 11272, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 527, 22740, 12, 22059, 1079, 1234, 16, 4766, 4202, 2350, 18, 18241, 559, 5863, 559, 16, 4766, 4202, 514, 3091, 15296, 16, 4766, 4202, 514, 3091, 682, 4766, 4202, 262, 3639, 1216, 23794, 503, 16, 3837, 503, 565, 288, 3639, 309, 12, 261, 446, 422, 3091, 682, 262, 747, 261, 3091, 682, 18, 5290, 7675, 2469, 1435, 1648, 374, 262, 262, 5411, 327, 31, 3639, 775, 3639, 288, 5411, 21352, 1887, 8526, 3091, 1076, 273, 21352, 1887, 18, 2670, 12, 3091, 682, 11272, 5411, 309, 12, 261, 446, 422, 3091, 1076, 262, 747, 261, 374, 422, 3091, 1076, 18, 2469, 262, 262, 288, 7734, 604, 394, 3837, 503, 12, 315, 1921, 315, 397, 3091, 15296, 2 ]
Assert.assertEquals(xmlValError.getBadSchemaType().getName().getLocalPart(), "personType"); Assert.assertEquals(xmlValError.getMessage(), "Expected element(s)");
Assert.assertEquals(xmlValError.getMessage(), "Element not allowed (strict wildcard, and no definition found): blah in element person");
public void testValidationElementNotAllowedError() throws XmlException { StringBuffer empSchema = new StringBuffer(); empSchema.append("<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified'>\n"); empSchema.append("<xs:element name='age'>\n"); empSchema.append("<xs:simpleType>\n"); empSchema.append("<xs:restriction base='xs:integer'>\n"); empSchema.append("<xs:minInclusive value='0'/>\n"); empSchema.append("<xs:maxInclusive value='100'/>\n"); empSchema.append("</xs:restriction>\n"); empSchema.append("</xs:simpleType>\n"); empSchema.append("</xs:element>\n"); empSchema.append("<xs:element name='empRecords'>\n"); empSchema.append("<xs:complexType>\n"); empSchema.append("<xs:sequence>\n"); empSchema.append("<xs:element name='person' type='personType' maxOccurs='unbounded'/>\n"); empSchema.append("</xs:sequence>\n"); empSchema.append("</xs:complexType>\n"); empSchema.append("</xs:element>\n"); empSchema.append("<xs:element name='name' type='xs:string'/>\n"); empSchema.append("<xs:complexType name='personType'>\n"); empSchema.append("<xs:sequence>\n"); empSchema.append("<xs:element ref='name'/>\n"); empSchema.append("<xs:element ref='age'/>\n"); empSchema.append("</xs:sequence>\n"); empSchema.append("<xs:attribute name='employee' use='required'>\n"); empSchema.append("<xs:simpleType>\n"); empSchema.append("<xs:restriction base='xs:NMTOKEN'>\n"); empSchema.append("<xs:enumeration value='current'/>\n"); empSchema.append("<xs:enumeration value='past'/>\n"); empSchema.append("</xs:restriction>\n"); empSchema.append("</xs:simpleType>\n"); empSchema.append("</xs:attribute>\n"); empSchema.append("</xs:complexType>\n"); empSchema.append("</xs:schema>\n"); StringBuffer xmlInstance = new StringBuffer(); xmlInstance.append("<empRecords xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >"); xmlInstance.append("<person employee='past'>"); xmlInstance.append("<name>joe blow</name>"); xmlInstance.append("<age>31</age>"); xmlInstance.append("</person>"); xmlInstance.append("<person employee='current'>"); xmlInstance.append("<name>test user</name>"); xmlInstance.append("<age>29</age>"); xmlInstance.append("</person>"); xmlInstance.append("</empRecords>"); String[] schemas = {empSchema.toString()}; List errors = null; errors = performValidation(schemas, null, xmlInstance.toString(), true); Assert.assertTrue(errors != null); // todo: enable this assert Assert.assertTrue(errors.size()>0); for (Iterator it = errors.iterator(); it.hasNext();) { XmlValidationError xmlValError = (XmlValidationError) it.next(); Assert.assertEquals(xmlValError.getErrorType(), XmlValidationError.ELEMENT_NOT_ALLOWED); Assert.assertEquals(xmlValError.getBadSchemaType().getName().getLocalPart(), "personType"); Assert.assertEquals(xmlValError.getMessage(), "Expected element(s)"); } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/c0c60fadc083383dde660c5b34897ec66ae25e61/ValidatorTests.java/buggy/v2/test/src/drt/drtcases/ValidatorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4354, 1046, 19354, 668, 1435, 1216, 5714, 503, 565, 288, 3639, 6674, 801, 84, 3078, 273, 394, 6674, 5621, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 4821, 12302, 30, 13713, 2218, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 11, 282, 930, 1204, 1868, 2218, 19724, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 2956, 508, 2218, 410, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 9647, 559, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 23954, 1026, 2218, 13713, 30, 7745, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 1154, 19146, 460, 2218, 20, 11, 19, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 1896, 19146, 460, 2218, 6625, 11, 19, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 1757, 13713, 30, 23954, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 1757, 13713, 30, 9647, 559, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 1757, 13713, 30, 2956, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 2956, 508, 2218, 30752, 6499, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 14259, 559, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 6178, 5333, 82, 8863, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4354, 1046, 19354, 668, 1435, 1216, 5714, 503, 565, 288, 3639, 6674, 801, 84, 3078, 273, 394, 6674, 5621, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 4821, 12302, 30, 13713, 2218, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 11, 282, 930, 1204, 1868, 2218, 19724, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 2956, 508, 2218, 410, 11, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 9647, 559, 5333, 82, 8863, 3639, 801, 84, 3078, 18, 6923, 2932, 32, 13713, 30, 23954, 1026, 2218, 13713, 30, 7745, 11, 5333, 82, 8863, 3639, 801, 84, 2 ]
.getTaskDataManager().getNextLocalTaskId());
.getTaskDataManager().getNewRepositoryTaskId());
public void testStackTraceJRockit() throws Exception { // jrockit (slash delimiters) String stackTrace = "java.lang.Error: Something bad happened\n" + " at java/io/BufferedReader.readLine(BufferedReader.java:331)\n" + " at java/io/BufferedReader.readLine(BufferedReader.java:362)\n" + " at java/util/Properties.load(Properties.java:192)\n" + " at java/util/logging/LogManager.readConfiguration(L:555)"; NewBugzillaReport model = new NewBugzillaReport(repository.getUrl(), TasksUiPlugin.getDefault() .getTaskDataManager().getNextLocalTaskId()); model.setNewComment(stackTrace); model.setHasLocalChanges(true); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); NewTaskEditorInput input = new NewTaskEditorInput(repository, model); TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page); MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor(); NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance(); assertEquals(stackTrace, editor.getStackTraceFromDescription().trim()); editor.markDirty(false); editor.close(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1fd48b2ec875678679a990ab3b428c5aa45bddda/DuplicateDetetionTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 6332, 46, 54, 975, 305, 1435, 1216, 1185, 288, 202, 202, 759, 525, 26926, 305, 261, 12877, 18374, 13, 202, 202, 780, 22327, 273, 315, 6290, 18, 4936, 18, 668, 30, 29116, 5570, 17497, 64, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1594, 19, 17947, 2514, 18, 896, 1670, 12, 17947, 2514, 18, 6290, 30, 3707, 21, 5153, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1594, 19, 17947, 2514, 18, 896, 1670, 12, 17947, 2514, 18, 6290, 30, 5718, 22, 5153, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1367, 19, 2297, 18, 945, 12, 2297, 18, 6290, 30, 15561, 5153, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1367, 19, 11167, 19, 1343, 1318, 18, 896, 1750, 12, 48, 30, 2539, 25, 2225, 31, 202, 377, 202, 202, 1908, 19865, 15990, 4820, 938, 273, 394, 1166, 19865, 15990, 4820, 12, 9071, 18, 588, 1489, 9334, 20350, 13943, 3773, 18, 588, 1868, 1435, 9506, 202, 18, 588, 2174, 751, 1318, 7675, 588, 2134, 2042, 30182, 10663, 202, 202, 2284, 18, 542, 1908, 4469, 12, 3772, 3448, 1769, 202, 202, 2284, 18, 542, 5582, 2042, 7173, 12, 3767, 1769, 202, 202, 45, 2421, 22144, 1964, 1363, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 202, 202, 1908, 2174, 6946, 1210, 810, 273, 394, 1166, 2174, 6946, 1210, 12, 9071, 16, 938, 1769, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 6332, 46, 54, 975, 305, 1435, 1216, 1185, 288, 202, 202, 759, 525, 26926, 305, 261, 12877, 18374, 13, 202, 202, 780, 22327, 273, 315, 6290, 18, 4936, 18, 668, 30, 29116, 5570, 17497, 64, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1594, 19, 17947, 2514, 18, 896, 1670, 12, 17947, 2514, 18, 6290, 30, 3707, 21, 5153, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1594, 19, 17947, 2514, 18, 896, 1670, 12, 17947, 2514, 18, 6290, 30, 5718, 22, 5153, 82, 6, 397, 202, 202, 6, 202, 270, 2252, 19, 1367, 19, 2297, 18, 945, 12, 2297, 18, 6290, 30, 15561, 5153, 82, 6, 397, 202, 202, 2 ]
for (int i = 0; i < myMergingStrategies.size(); i++) {
for (int i = myMergingStrategies.size() - 1; i >= 0; i--) {
protected Object mergeImplementations(final Class returnType, final Object... implementations) { for (int i = 0; i < myMergingStrategies.size(); i++) { if (myMergingStrategyClasses.get(i).isAssignableFrom(returnType)) { MergingStrategy function = myMergingStrategies.get(i); final Object o = function.mergeChildren(returnType, implementations); if (o != null) { return o; } } } if (implementations.length == 1) { return implementations[0]; } return mergeModels(returnType, implementations); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/51016dd778350561d500b0de6fa7971e4668dddf/ModelMergerImpl.java/buggy/dom/impl/src/com/intellij/util/xml/ModelMergerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1033, 2691, 5726, 1012, 12, 6385, 1659, 9424, 16, 727, 1033, 2777, 16164, 13, 288, 565, 364, 261, 474, 277, 273, 3399, 8478, 1998, 1585, 15127, 18, 1467, 1435, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 1377, 309, 261, 4811, 8478, 1998, 4525, 4818, 18, 588, 12, 77, 2934, 291, 7961, 1265, 12, 2463, 559, 3719, 288, 3639, 14940, 1998, 4525, 445, 273, 3399, 8478, 1998, 1585, 15127, 18, 588, 12, 77, 1769, 3639, 727, 1033, 320, 273, 445, 18, 2702, 4212, 12, 2463, 559, 16, 16164, 1769, 3639, 309, 261, 83, 480, 446, 13, 288, 1850, 327, 320, 31, 3639, 289, 1377, 289, 565, 289, 565, 309, 261, 10442, 1012, 18, 2469, 422, 404, 13, 288, 1377, 327, 16164, 63, 20, 15533, 565, 289, 565, 327, 2691, 8430, 12, 2463, 559, 16, 16164, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1033, 2691, 5726, 1012, 12, 6385, 1659, 9424, 16, 727, 1033, 2777, 16164, 13, 288, 565, 364, 261, 474, 277, 273, 3399, 8478, 1998, 1585, 15127, 18, 1467, 1435, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 1377, 309, 261, 4811, 8478, 1998, 4525, 4818, 18, 588, 12, 77, 2934, 291, 7961, 1265, 12, 2463, 559, 3719, 288, 3639, 14940, 1998, 4525, 445, 273, 3399, 8478, 1998, 1585, 15127, 18, 588, 12, 77, 1769, 3639, 727, 1033, 320, 273, 445, 18, 2702, 4212, 12, 2463, 559, 16, 16164, 1769, 3639, 309, 261, 83, 480, 446, 13, 288, 1850, 327, 320, 31, 3639, 289, 1377, 289, 565, 289, 565, 309, 261, 10442, 1012, 18, 2469, 2 ]
if (m != null) {
if (m != null) {
private void addNormalMenuBar(JChemPaintPanel jcpPanel, String menuDefinition) { String definition = menuDefinition; if (definition == null) { definition = getMenuResourceString("menubar"); } String[] menuKeys = StringHelper.tokenize(definition); for (int i = 0; i < menuKeys.length; i++) { JMenu m = createMenu(jcpPanel, menuKeys[i]); if (m != null) { this.add(m); } } }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/9d2a51021be688934ccb4de9bead21d49dccd46f/JChemPaintMenuBar.java/buggy/src/org/openscience/cdk/applications/jchempaint/JChemPaintMenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 5506, 4599, 5190, 12, 46, 20200, 12699, 5537, 525, 4057, 5537, 16, 514, 3824, 1852, 13, 202, 95, 202, 202, 780, 2379, 273, 3824, 1852, 31, 202, 202, 430, 261, 6907, 422, 446, 13, 202, 202, 95, 1082, 202, 6907, 273, 25877, 1420, 780, 2932, 27617, 373, 297, 8863, 202, 202, 97, 202, 202, 780, 8526, 3824, 2396, 273, 21494, 18, 2316, 554, 12, 6907, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3824, 2396, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 46, 4599, 312, 273, 752, 4599, 12, 78, 4057, 5537, 16, 3824, 2396, 63, 77, 19226, 1082, 202, 430, 261, 81, 480, 446, 13, 1082, 202, 95, 9506, 202, 2211, 18, 1289, 12, 81, 1769, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 5506, 4599, 5190, 12, 46, 20200, 12699, 5537, 525, 4057, 5537, 16, 514, 3824, 1852, 13, 202, 95, 202, 202, 780, 2379, 273, 3824, 1852, 31, 202, 202, 430, 261, 6907, 422, 446, 13, 202, 202, 95, 1082, 202, 6907, 273, 25877, 1420, 780, 2932, 27617, 373, 297, 8863, 202, 202, 97, 202, 202, 780, 8526, 3824, 2396, 273, 21494, 18, 2316, 554, 12, 6907, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3824, 2396, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 46, 4599, 312, 273, 752, 4599, 12, 78, 4057, 5537, 16, 3824, 2396, 63, 77, 19226, 1082, 202, 430, 261, 81, 480, 446, 13, 1082, 2 ]
context.operands.push(context.findIdentifier(patoken.value));
( (HashMap) data[0]).put(patoken.value, data[2]);
public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("load: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("load: wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 21, 1769, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 945, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 20, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3297, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 945, 30, 7194, 1775, 8863, 3639, 289, 3639, 261, 261, 8658, 13, 501, 63, 20, 65, 2934, 458, 12, 16330, 969, 18, 1132, 16, 501, 63, 22, 19226, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 21, 1769, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 945, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 20, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3297, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 945, 30, 7194, 1775, 8863, 3639, 289, 3639, 261, 261, 8658, 13, 501, 63, 20, 65, 2934, 458, 12, 16330, 969, 18, 2 ]
private RubyString cat(StringBuffer str) { getValue().append(str); return this; }
public RubyString cat(CharSequence str) { getMutableValue().append(str); return this; }
private RubyString cat(StringBuffer str) { getValue().append(str); return this; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 780, 6573, 12, 780, 1892, 609, 13, 288, 3639, 2366, 7675, 6923, 12, 701, 1769, 3639, 327, 333, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 780, 6573, 12, 780, 1892, 609, 13, 288, 3639, 2366, 7675, 6923, 12, 701, 1769, 3639, 327, 333, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ModelItem item = rdfModel.objectAtPoint(point);
ModelItem item = rdfGraphicModel.objectAtPoint(rdfModel, point);
public void openUrlForObjectAtPoint(NSPoint point) { ModelItem item = rdfModel.objectAtPoint(point); if (item != null) { if (item.isNode() && !((Node) item).isLiteral()) { String urlString = ((Node) item).id(); if (urlString != null) { try { java.net.URL url = new java.net.URL( urlString ); NSWorkspace.sharedWorkspace().openURL( url ); } catch (Exception e) { RDFAuthorUtilities.ShowError("Cannot Open URL", "I cannot open <" + urlString + ">. Perhaps it isn't a URL?", RDFAuthorUtilities.Normal, window); } } } } }
364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/364/3e4c877acab0714e47f8fdafdeea5bc637f757f5/RDFAuthorDocument.java/buggy/rdfweb.org/RDFAuthor/RDFAuthorDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1696, 1489, 1290, 921, 861, 2148, 12, 3156, 2148, 1634, 13, 565, 288, 3639, 3164, 1180, 761, 273, 9160, 29459, 1488, 18, 1612, 861, 2148, 12, 19299, 1488, 16, 1634, 1769, 3639, 309, 261, 1726, 480, 446, 13, 3639, 288, 5411, 309, 261, 1726, 18, 291, 907, 1435, 597, 401, 12443, 907, 13, 761, 2934, 291, 6177, 10756, 5411, 288, 7734, 514, 29374, 273, 14015, 907, 13, 761, 2934, 350, 5621, 7734, 309, 261, 718, 780, 480, 446, 13, 7734, 288, 10792, 775, 10792, 288, 13491, 2252, 18, 2758, 18, 1785, 880, 273, 394, 2252, 18, 2758, 18, 1785, 12, 29374, 11272, 13491, 11472, 8241, 18, 11574, 8241, 7675, 3190, 1785, 12, 880, 11272, 10792, 289, 10792, 1044, 261, 503, 425, 13, 10792, 288, 13491, 13539, 3594, 11864, 18, 5706, 668, 2932, 4515, 3502, 1976, 3113, 18701, 315, 45, 2780, 1696, 411, 6, 397, 29374, 397, 18701, 14402, 18, 5722, 19312, 518, 5177, 1404, 279, 1976, 35, 3113, 18701, 13539, 3594, 11864, 18, 5506, 16, 2742, 1769, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1696, 1489, 1290, 921, 861, 2148, 12, 3156, 2148, 1634, 13, 565, 288, 3639, 3164, 1180, 761, 273, 9160, 29459, 1488, 18, 1612, 861, 2148, 12, 19299, 1488, 16, 1634, 1769, 3639, 309, 261, 1726, 480, 446, 13, 3639, 288, 5411, 309, 261, 1726, 18, 291, 907, 1435, 597, 401, 12443, 907, 13, 761, 2934, 291, 6177, 10756, 5411, 288, 7734, 514, 29374, 273, 14015, 907, 13, 761, 2934, 350, 5621, 7734, 309, 261, 718, 780, 480, 446, 13, 7734, 288, 10792, 775, 10792, 288, 13491, 2252, 18, 2758, 18, 1785, 880, 273, 394, 2252, 18, 2758, 18, 1785, 12, 29374, 11272, 13491, 11472, 8241, 18, 11574, 8241, 7675, 3190, 1785, 12, 880, 11272, 10792, 289, 2 ]
public void writeStartTag() throws XmlPullParserException, IOException { if (!parser.getFeature(parser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES)) { for (int i = parser.getNamespaceCount(parser.getDepth() - 1); i < parser.getNamespaceCount(parser.getDepth()) - 1; i++) { serializer.setPrefix( parser.getNamespacePrefix(i), parser.getNamespaceUri(i)); } } serializer.startTag(parser.getNamespace(), parser.getName());
public void writeStartTag() throws XmlPullParserException, IOException { if (!parser .getFeature( XmlPullParser .FEATURE_REPORT_NAMESPACE_ATTRIBUTES)) { for (int i = parser.getNamespaceCount(parser.getDepth() - 1); i < parser.getNamespaceCount(parser.getDepth()) - 1; i++) { serializer.setPrefix( parser.getNamespacePrefix(i), parser.getNamespaceUri(i)); } } serializer.startTag( parser.getNamespace(), parser.getName());
public void writeStartTag() throws XmlPullParserException, IOException { //check forcase when feature xml roundtrip is supported //if (parser.getFeature (FEATURE_XML_ROUNDTRIP)) { //TODO: how to do pass through string with actual start tag in getText() //return; //} if (!parser.getFeature(parser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES)) { for (int i = parser.getNamespaceCount(parser.getDepth() - 1); i < parser.getNamespaceCount(parser.getDepth()) - 1; i++) { serializer.setPrefix( parser.getNamespacePrefix(i), parser.getNamespaceUri(i)); } } serializer.startTag(parser.getNamespace(), parser.getName()); for (int i = 0; i < parser.getAttributeCount(); i++) { serializer.attribute( parser.getAttributeNamespace(i), parser.getAttributeName(i), parser.getAttributeValue(i)); } //serializer.closeStartTag(); }
4761 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4761/1bf1077e59c844091c0e415306ee85be3a58515d/Roundtrip.java/buggy/samples/Roundtrip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24961, 1805, 1435, 1216, 5714, 9629, 25746, 16, 1860, 288, 202, 202, 759, 1893, 364, 3593, 1347, 2572, 2025, 3643, 25125, 353, 3260, 202, 202, 759, 430, 261, 4288, 18, 588, 4595, 261, 18257, 67, 4201, 67, 15092, 6566, 52, 3719, 288, 202, 202, 759, 6241, 30, 3661, 358, 741, 1342, 3059, 533, 598, 3214, 787, 1047, 316, 6701, 1435, 202, 202, 759, 2463, 31, 202, 202, 759, 97, 202, 202, 430, 16051, 4288, 18, 588, 4595, 12, 4288, 18, 18257, 67, 22710, 67, 11368, 67, 22308, 3719, 288, 1082, 202, 1884, 261, 474, 277, 273, 2082, 18, 588, 3402, 1380, 12, 4288, 18, 588, 6148, 1435, 300, 404, 1769, 9506, 202, 77, 411, 2082, 18, 588, 3402, 1380, 12, 4288, 18, 588, 6148, 10756, 300, 404, 31, 9506, 202, 77, 27245, 288, 9506, 202, 15663, 18, 542, 2244, 12, 6862, 202, 4288, 18, 588, 3402, 2244, 12, 77, 3631, 6862, 202, 4288, 18, 588, 3402, 3006, 12, 77, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 15663, 18, 1937, 1805, 12, 4288, 18, 588, 3402, 9334, 2082, 18, 17994, 10663, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2082, 18, 588, 1499, 1380, 5621, 277, 27245, 288, 1082, 202, 15663, 18, 4589, 12, 9506, 202, 4288, 18, 588, 1499, 3402, 12, 77, 3631, 9506, 202, 4288, 18, 588, 19240, 12, 77, 3631, 9506, 202, 4288, 18, 588, 14942, 12, 77, 10019, 202, 202, 97, 202, 202, 759, 15663, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24961, 1805, 1435, 1216, 5714, 9629, 25746, 16, 1860, 288, 202, 202, 759, 1893, 364, 3593, 1347, 2572, 2025, 3643, 25125, 353, 3260, 202, 202, 759, 430, 261, 4288, 18, 588, 4595, 261, 18257, 67, 4201, 67, 15092, 6566, 52, 3719, 288, 202, 202, 759, 6241, 30, 3661, 358, 741, 1342, 3059, 533, 598, 3214, 787, 1047, 316, 6701, 1435, 202, 202, 759, 2463, 31, 202, 202, 759, 97, 202, 202, 430, 16051, 4288, 18, 588, 4595, 12, 4288, 18, 18257, 67, 22710, 67, 11368, 67, 22308, 3719, 288, 1082, 202, 1884, 261, 474, 277, 273, 2082, 18, 588, 3402, 1380, 12, 4288, 18, 588, 6148, 1435, 300, 404, 1769, 9506, 202, 77, 411, 2082, 2 ]
try { Set<AbstractRepositoryTask> changedTasks = getChangedSinceLastSync(repository, repositoryTasks); Set<AbstractRepositoryTask> tasksToSync = new HashSet<AbstractRepositoryTask>(); for (AbstractRepositoryTask task : changedTasks) { if(task.getSyncState() == RepositoryTaskSyncState.SYNCHRONIZED) { tasksToSync.add(task); }
Set<AbstractRepositoryTask> tasksToSync = new HashSet<AbstractRepositoryTask>(); Set<AbstractRepositoryTask> changedTasks = null; int attempts = 0; while (attempts < MAX_QUERY_ATTEMPTS && changedTasks == null) { attempts++; try { changedTasks = getChangedSinceLastSync(repository, repositoryTasks); } catch (Exception e) { if (attempts == MAX_QUERY_ATTEMPTS) { MylarStatusHandler.log(e, "Error determining modified reports on " + repository.getUrl() + "."); return; } try { Thread.sleep(RETRY_DELAY); } catch (InterruptedException e1) { return; }
public void synchronizeChanged(TaskRepository repository) { TaskList taskList = MylarTaskListPlugin.getTaskListManager().getTaskList(); Set<AbstractRepositoryTask> repositoryTasks = Collections.unmodifiableSet(taskList .getRepositoryTasks(repository.getUrl())); try { Set<AbstractRepositoryTask> changedTasks = getChangedSinceLastSync(repository, repositoryTasks); Set<AbstractRepositoryTask> tasksToSync = new HashSet<AbstractRepositoryTask>(); for (AbstractRepositoryTask task : changedTasks) { if(task.getSyncState() == RepositoryTaskSyncState.SYNCHRONIZED) { tasksToSync.add(task); } } refreshTasks(tasksToSync, false); MylarTaskListPlugin.getRepositoryManager().setSyncTime(repository, new Date()); } catch (GeneralSecurityException e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), MylarTaskListPlugin.TITLE_DIALOG, "Authentication error. Check setting in " + TaskRepositoriesView.NAME + "."); } }); } catch (final IOException e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), MylarTaskListPlugin.TITLE_DIALOG, "Communication error during query synchronization. Error reported:\n\n" + e.getMessage()); } }); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/860609d12c3ae8ec3d323180e3fec1a355fce67f/AbstractRepositoryConnector.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/AbstractRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16978, 5033, 12, 2174, 3305, 3352, 13, 288, 202, 202, 2174, 682, 1562, 682, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 5621, 202, 202, 694, 32, 7469, 3305, 2174, 34, 3352, 6685, 273, 5737, 18, 318, 13388, 694, 12, 4146, 682, 9506, 202, 18, 588, 3305, 6685, 12, 9071, 18, 588, 1489, 1435, 10019, 202, 202, 698, 288, 1082, 202, 694, 32, 7469, 3305, 2174, 34, 3550, 6685, 273, 336, 5033, 9673, 3024, 4047, 12, 9071, 16, 3352, 6685, 1769, 1082, 202, 694, 32, 7469, 3305, 2174, 34, 4592, 774, 4047, 273, 394, 6847, 32, 7469, 3305, 2174, 34, 5621, 1082, 202, 1884, 261, 7469, 3305, 2174, 1562, 294, 3550, 6685, 13, 288, 9506, 202, 430, 12, 4146, 18, 588, 4047, 1119, 1435, 422, 6281, 2174, 4047, 1119, 18, 7474, 50, 1792, 19359, 24131, 13, 288, 6862, 202, 9416, 774, 4047, 18, 1289, 12, 4146, 1769, 9506, 202, 97, 6862, 1082, 202, 97, 1082, 202, 9144, 6685, 12, 9416, 774, 4047, 16, 629, 1769, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 542, 4047, 950, 12, 9071, 16, 394, 2167, 10663, 202, 202, 97, 1044, 261, 12580, 24918, 425, 13, 288, 1082, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 9506, 202, 482, 918, 1086, 1435, 288, 6862, 202, 1079, 6353, 18, 3190, 668, 12, 4236, 18, 588, 1868, 7675, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16978, 5033, 12, 2174, 3305, 3352, 13, 288, 202, 202, 2174, 682, 1562, 682, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 5621, 202, 202, 694, 32, 7469, 3305, 2174, 34, 3352, 6685, 273, 5737, 18, 318, 13388, 694, 12, 4146, 682, 9506, 202, 18, 588, 3305, 6685, 12, 9071, 18, 588, 1489, 1435, 10019, 202, 202, 698, 288, 1082, 202, 694, 32, 7469, 3305, 2174, 34, 3550, 6685, 273, 336, 5033, 9673, 3024, 4047, 12, 9071, 16, 3352, 6685, 1769, 1082, 202, 694, 32, 7469, 3305, 2174, 34, 4592, 774, 4047, 273, 394, 6847, 32, 7469, 3305, 2174, 34, 5621, 1082, 202, 1884, 261, 7469, 3305, 2174, 2 ]
e.printStackTrace();
throw new WebServiceException(e); } catch (IOException e) { throw new WebServiceException(e);
public byte[] getAttachmentAsByteArray(String cid) { AttachmentBlock ab = attachments.get(decodeCid(cid)); if((ab == null) && ((ab != null) && (ab.getAttachmentPart() == null))) throw new IllegalArgumentException("Attachment corresponding to "+cid+ " not found!"); try { return ab.getAttachmentPart().getRawContentBytes(); } catch (SOAPException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } return null; }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/c1571ca6003dfac6cd73a9b198882f1ae1d9f12c/JAXWSAttachmentUnmarshaller.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/encoding/JAXWSAttachmentUnmarshaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 31134, 1463, 8826, 12, 780, 7504, 13, 288, 3639, 15939, 1768, 1223, 273, 10065, 18, 588, 12, 3922, 19844, 12, 13478, 10019, 3639, 309, 12443, 378, 422, 446, 13, 597, 14015, 378, 480, 446, 13, 597, 261, 378, 18, 588, 6803, 1988, 1435, 422, 446, 20349, 5411, 604, 394, 2754, 2932, 6803, 4656, 358, 13773, 13478, 15, 315, 486, 1392, 4442, 1769, 3639, 775, 288, 5411, 327, 1223, 18, 588, 6803, 1988, 7675, 588, 4809, 1350, 2160, 5621, 3639, 289, 1044, 261, 27952, 503, 425, 13, 288, 5411, 604, 394, 2999, 15133, 12, 73, 1769, 289, 1044, 261, 14106, 425, 13, 288, 604, 394, 2999, 15133, 12, 73, 1769, 225, 368, 774, 2549, 1417, 434, 1044, 3021, 999, 1387, 571, 8709, 571, 1387, 26212, 18, 3639, 289, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 31134, 1463, 8826, 12, 780, 7504, 13, 288, 3639, 15939, 1768, 1223, 273, 10065, 18, 588, 12, 3922, 19844, 12, 13478, 10019, 3639, 309, 12443, 378, 422, 446, 13, 597, 14015, 378, 480, 446, 13, 597, 261, 378, 18, 588, 6803, 1988, 1435, 422, 446, 20349, 5411, 604, 394, 2754, 2932, 6803, 4656, 358, 13773, 13478, 15, 315, 486, 1392, 4442, 1769, 3639, 775, 288, 5411, 327, 1223, 18, 588, 6803, 1988, 7675, 588, 4809, 1350, 2160, 5621, 3639, 289, 1044, 261, 27952, 503, 425, 13, 288, 5411, 604, 394, 2999, 15133, 12, 73, 1769, 289, 1044, 261, 14106, 425, 13, 288, 604, 394, 2999, 15133, 12, 73, 1769, 225, 368, 774, 2549, 1417, 434, 2 ]
if (debug()) log.debug ("PureAckSender: Sending pure ack " +pam);
public void run() { int len; while (true) { // Wait until we have some new messages or we have timed out to // re-examine old messages. synchronized (queue) { while (true) { // Check for new messages before waiting. They can come // in during waiting or during queue processing. if (haveNewMessages) { haveNewMessages = false; if (queue.size() > 0) break; } // Check how long to wait before we need to satisfy a send deadline long waitTime = 0; // 0 = wait till notify (or interrupt) if (queue.size() > 0) { waitTime = minSendDeadline - now(); if (waitTime <= 0) break; } // Wait until timeout, notify, or interrupt//System.err.println ("\nPureAckSender: WAIT waitTime= "+waitTime); try { queue.wait (waitTime); } catch (Exception e) {}//System.err.println ("\nPureAckSender: RUN"); } messages = (PureAckMessage[]) queue.toArray (messages); // try array reuse len = queue.size();//System.err.println ("PureAckSender: len="+len); } // Check if it is time to send a pure ack message minSendDeadline = Long.MAX_VALUE; for (int i=0; i<len; i++) { // We only consider sending a pure ack message as long as there is // a need to send an ack for the src message we received that created // this pure ack message. If that is no longer the case, we can // drop this pure ack message. PureAckMessage pam = messages[i];//System.err.println ("PureAckSender: msg="+MessageUtils.toString(pam)); if (MessageAckingAspect.findAckToSend (pam)) { PureAck pureAck = (PureAck) MessageUtils.getAck (pam); long sendDeadline = pureAck.getSendDeadline(); long timeLeft = sendDeadline - now(); if (timeLeft <= 0) { // Time to send/resend the ack// System.err.println ("PureAckSender: Launching " +pam); remove (pam); // remove first to avoid race condition with send MessageSender.sendMsg (pam); } else { if (sendDeadline < minSendDeadline) minSendDeadline = sendDeadline; } } else {//System.err.println ("PureAckSender: removing " +pam); remove (pam); // done sending this pure ack message } } Arrays.fill (messages, null); // release references } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/9a2d13a59e36b040dbfd312e7251d2cec5bd90cb/PureAckSender.java/buggy/msglog/src/org/cougaar/core/mts/acking/PureAckSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 1071, 918, 1086, 1435, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 225, 288, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 509, 562, 31, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 1323, 261, 3767, 13, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 225, 288, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 1071, 918, 1086, 1435, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 225, 288, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 509, 562, 31, 430, 261, 4148, 10756, 613, 18, 4148, 7566, 13645, 11931, 12021, 30, 2479, 310, 16618, 8479, 315, 397, 84, 301, 1769, 309, 261, 4148, 10756, 613, 2 ]
break _loop1673;
break _loop1679;
public final void casestate(AST _t) throws RecognitionException { AST casestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1669 = _t; AST tmp1814_AST_in = (AST)_t; match(_t,CASE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; block_colon(_t); _t = _retTree; AST __t1670 = _t; AST tmp1815_AST_in = (AST)_t; match(_t,Code_block); _t = _t.getFirstChild(); { _loop1673: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WHEN)) { AST __t1672 = _t; AST tmp1816_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); case_expression(_t); _t = _retTree; AST tmp1817_AST_in = (AST)_t; match(_t,THEN); _t = _t.getNextSibling(); blockorstate(_t); _t = _retTree; _t = __t1672; _t = _t.getNextSibling(); } else { break _loop1673; } } while (true); } _t = __t1670; _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OTHERWISE: { AST __t1675 = _t; AST tmp1818_AST_in = (AST)_t; match(_t,OTHERWISE); _t = _t.getFirstChild(); blockorstate(_t); _t = _retTree; _t = __t1675; _t = _t.getNextSibling(); break; } case EOF: case END: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EOF: { AST tmp1819_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } case END: { AST __t1677 = _t; AST tmp1820_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASE: { AST tmp1821_AST_in = (AST)_t; match(_t,CASE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1677; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t1669; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 8697, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 8697, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2313, 8148, 273, 389, 88, 31, 202, 202, 9053, 1853, 2643, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 13415, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 8692, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2629, 67, 22667, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 9053, 1001, 88, 2313, 7301, 273, 389, 88, 31, 202, 202, 9053, 1853, 2643, 3600, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1085, 67, 2629, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 67, 6498, 2313, 9036, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 430, 14015, 67, 88, 18, 588, 559, 1435, 631, 12557, 1157, 3719, 288, 9506, 202, 9053, 1001, 88, 2313, 9060, 273, 389, 88, 31, 9506, 202, 9053, 1853, 2643, 2313, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 8697, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 8697, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2313, 8148, 273, 389, 88, 31, 202, 202, 9053, 1853, 2643, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 13415, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 8692, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2629, 67, 22667, 24899, 88, 1769, 202, 202, 67, 88, 273, 2 ]
jButton1.setFont(new java.awt.Font("Dialog", 0, 12)); jButton1.setText("Cancel"); jButton1.setToolTipText("null");
cancelButton.setFont(new java.awt.Font("Dialog", 0, 12)); cancelButton.setText("Cancel"); cancelButton.setToolTipText("null"); cancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelButtonActionPerformed(evt); } });
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; findBugsLabel = new javax.swing.JLabel(); archivesLabel = new javax.swing.JLabel(); classesLabel = new javax.swing.JLabel(); archivesProgress = new javax.swing.JProgressBar(); classesProgress = new javax.swing.JProgressBar(); jButton1 = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); archiveLabel = new javax.swing.JLabel(); archiveName = new javax.swing.JLabel(); topVerticalFiller = new javax.swing.JLabel(); bottomVerticalFiller = new javax.swing.JLabel(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); findBugsLabel.setBackground(new java.awt.Color(0, 0, 204)); findBugsLabel.setFont(new java.awt.Font("Dialog", 1, 24)); findBugsLabel.setForeground(new java.awt.Color(255, 255, 255)); findBugsLabel.setText("Find Bugs!"); findBugsLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0); gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.weightx = 1.0; getContentPane().add(findBugsLabel, gridBagConstraints); archivesLabel.setFont(new java.awt.Font("Dialog", 0, 12)); archivesLabel.setText("Archives:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; getContentPane().add(archivesLabel, gridBagConstraints); classesLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classesLabel.setText("Classes:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; getContentPane().add(classesLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); getContentPane().add(archivesProgress, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); getContentPane().add(classesProgress, gridBagConstraints); jButton1.setFont(new java.awt.Font("Dialog", 0, 12)); jButton1.setText("Cancel"); jButton1.setToolTipText("null"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 2; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); getContentPane().add(jButton1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; getContentPane().add(jSeparator1, gridBagConstraints); archiveLabel.setFont(new java.awt.Font("Dialog", 0, 12)); archiveLabel.setText("Archive:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; getContentPane().add(archiveLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; getContentPane().add(archiveName, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.weighty = 0.5; getContentPane().add(topVerticalFiller, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.weighty = 0.5; getContentPane().add(bottomVerticalFiller, gridBagConstraints); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/41b9eaba353c8214b911905f8ce13d895b64bd2f/RunAnalysisDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/RunAnalysisDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 1104, 31559, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 21997, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 3318, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 21997, 5491, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 3318, 5491, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 525, 3616, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 6581, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 6581, 5621, 3639, 5052, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 5052, 461, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1760, 15704, 8026, 264, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 5469, 15704, 8026, 264, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 5154, 8485, 7675, 542, 3744, 12, 2704, 2252, 18, 2219, 88, 18, 6313, 5013, 3744, 10663, 3639, 527, 3829, 2223, 12, 2704, 2252, 18, 2219, 88, 18, 2575, 18, 3829, 4216, 1435, 288, 5411, 1071, 918, 2742, 23115, 12, 6290, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 6324, 13, 288, 7734, 646, 3829, 23115, 12, 73, 11734, 1769, 5411, 289, 5411, 1071, 918, 2742, 15745, 12, 6290, 18, 2219, 88, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 1104, 31559, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 21997, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 3318, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 21997, 5491, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 3318, 5491, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 525, 3616, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 6581, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 6581, 5621, 3639, 2 ]
String path = ""; Object altObj = toolSession.getAttribute(ALTERNATE_DONE_URL); Object pathObj = toolSession.getAttribute(tool.getId() + "thetoolPath");
String pathObj = (String)toolSession.getAttribute(tool.getId() + "thetoolPath"); toolSession.removeAttribute(tool.getId() + "thetoolPath"); if(toolSession.getAttribute(ALTERNATE_DONE_URL_MAP) != null) { String path = ""; Object altObj = toolSession.getAttribute(ALTERNATE_DONE_URL); Map urlMap = (Map)toolSession.getAttribute(ALTERNATE_DONE_URL_MAP); if(altObj != null) { url = (String) urlMap.get((String)altObj); if(pathObj != null) { path = (String) pathObj; } if(!url.startsWith("/")) url = path + "/" + url; }
public void render(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { ToolSession toolSession = SessionManager.getCurrentToolSession(); Tool tool = ToolManager.getCurrentTool(); String url = (String) toolSession.getAttribute( tool.getId() + Tool.HELPER_DONE_URL); toolSession.removeAttribute(tool.getId() + Tool.HELPER_DONE_URL); String path = ""; Object altObj = toolSession.getAttribute(ALTERNATE_DONE_URL); Object pathObj = toolSession.getAttribute(tool.getId() + "thetoolPath"); if(altObj != null) { url = (String) toolSession.getAttribute((String)altObj); if(pathObj != null) { path = (String) pathObj; } if(!url.startsWith("/")) url = path + "/" + url; } if(toolSession.getAttribute(ALTERNATE_DONE_URL_SET) != null) { List views = (List) toolSession.getAttribute(ALTERNATE_DONE_URL_SET); for(Iterator i = views.iterator(); i.hasNext();) { toolSession.removeAttribute((String)i.next()); } toolSession.removeAttribute(ALTERNATE_DONE_URL_SET); } toolSession.removeAttribute(tool.getId() + "thetoolPath"); setUrl(url); if (getModelPrefix() == null) { setModelPrefix(""); } super.render(model, request, response); }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/bae204032556ceb5485109f5974bdfed993947ed/ToolFinishedView.java/clean/common/tool-lib/src/java/org/theospi/utils/mvc/impl/ToolFinishedView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1743, 12, 863, 938, 16, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 1377, 13288, 2157, 5226, 2157, 273, 3877, 1318, 18, 588, 3935, 6364, 2157, 5621, 1377, 13288, 5226, 273, 13288, 1318, 18, 588, 3935, 6364, 5621, 1377, 514, 880, 273, 261, 780, 13, 5226, 2157, 18, 588, 1499, 12, 5411, 5226, 18, 26321, 1435, 397, 13288, 18, 20264, 3194, 67, 26875, 67, 1785, 1769, 5411, 5226, 2157, 18, 4479, 1499, 12, 6738, 18, 26321, 1435, 397, 13288, 18, 20264, 3194, 67, 26875, 67, 1785, 1769, 5411, 514, 589, 273, 1408, 31, 1377, 1033, 3770, 2675, 273, 5226, 2157, 18, 588, 1499, 12, 1013, 6519, 1777, 67, 26875, 67, 1785, 1769, 1377, 1033, 589, 2675, 273, 5226, 2157, 18, 588, 1499, 12, 6738, 18, 26321, 1435, 397, 315, 451, 278, 1371, 743, 8863, 1377, 309, 12, 2390, 2675, 480, 446, 13, 288, 540, 880, 273, 261, 780, 13, 5226, 2157, 18, 588, 1499, 12443, 780, 13, 2390, 2675, 1769, 540, 309, 12, 803, 2675, 480, 446, 13, 288, 5411, 589, 273, 261, 780, 13, 589, 2675, 31, 540, 289, 5375, 309, 12, 5, 718, 18, 17514, 1190, 2932, 4898, 3719, 5411, 880, 273, 589, 397, 4016, 397, 880, 31, 1377, 289, 1377, 309, 12, 6738, 2157, 18, 588, 1499, 12, 1013, 6519, 1777, 67, 26875, 67, 1785, 67, 4043, 13, 480, 446, 13, 288, 540, 987, 7361, 273, 261, 682, 13, 5226, 2157, 18, 588, 1499, 12, 1013, 6519, 1777, 67, 26875, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1743, 12, 863, 938, 16, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 1377, 13288, 2157, 5226, 2157, 273, 3877, 1318, 18, 588, 3935, 6364, 2157, 5621, 1377, 13288, 5226, 273, 13288, 1318, 18, 588, 3935, 6364, 5621, 1377, 514, 880, 273, 261, 780, 13, 5226, 2157, 18, 588, 1499, 12, 5411, 5226, 18, 26321, 1435, 397, 13288, 18, 20264, 3194, 67, 26875, 67, 1785, 1769, 5411, 5226, 2157, 18, 4479, 1499, 12, 6738, 18, 26321, 1435, 397, 13288, 18, 20264, 3194, 67, 26875, 67, 1785, 1769, 5411, 514, 589, 273, 1408, 31, 1377, 1033, 3770, 2675, 273, 5226, 2157, 18, 588, 1499, 12, 1013, 6519, 1777, 67, 26875, 67, 1785, 1769, 1377, 1033, 589, 2 ]
return getParent().getChild("initialsetup").getURIWithContextPath();
return getParent().getChild("initialsetup").getURI();
public String getResourceURI() { if(getBuilderLogic().isFirstBuilderRun()){ return getParent().getChild("initialsetup").getURIWithContextPath(); } else{ return getIWMainApplication().getWindowOpenerURI(IBApplication.class); } }
54061 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54061/6783da6073a2747e3e843aec12c46eba8e1e9e96/BuilderApplicationViewNode.java/clean/src/java/com/idega/builder/view/BuilderApplicationViewNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 5070, 3098, 1435, 288, 202, 202, 430, 12, 588, 1263, 20556, 7675, 291, 3759, 1263, 1997, 10756, 95, 1082, 202, 2463, 5089, 7675, 588, 1763, 2932, 6769, 8401, 20387, 588, 3098, 4772, 743, 5621, 202, 202, 97, 202, 202, 12107, 95, 1082, 202, 2463, 8974, 59, 6376, 3208, 7675, 588, 3829, 3817, 708, 3098, 12, 13450, 3208, 18, 1106, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 5070, 3098, 1435, 288, 202, 202, 430, 12, 588, 1263, 20556, 7675, 291, 3759, 1263, 1997, 10756, 95, 1082, 202, 2463, 5089, 7675, 588, 1763, 2932, 6769, 8401, 20387, 588, 3098, 4772, 743, 5621, 202, 202, 97, 202, 202, 12107, 95, 1082, 202, 2463, 8974, 59, 6376, 3208, 7675, 588, 3829, 3817, 708, 3098, 12, 13450, 3208, 18, 1106, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Attributes attributes) { if (qName.equals("issuezilla")) { /* System.out.println("List issues = new ArrayList();"); System.out.println("Issue currentIssue = null;"); System.out.println("Description description = null;"); */ } else if (currentIssue == null) { if (qName.equals("issue")) { currentIssue = new Issue();
Attributes attributes) { if(qName.equals("issuezilla")) { } else if(currentIssue == null) { if(qName.equals("issue")) { currentIssue = new Issue();
public void startElement(String uri, String localName, String qName, Attributes attributes) { // ignore issuezilla tags if (qName.equals("issuezilla")) { // write the necessary Java code /* System.out.println("List issues = new ArrayList();"); System.out.println("Issue currentIssue = null;"); System.out.println("Description description = null;"); */ // ignore // create a new issue } else if (currentIssue == null) { if (qName.equals("issue")) { currentIssue = new Issue(); // save the status code String statusCode = attributes.getValue("status_code"); currentIssue.setStatusCode(statusCode != null ? Integer.valueOf(statusCode) : new Integer(404)); // write the necessary Java code /*System.out.println("currentIssue = new Issue();");*/ } else { addException(this + " encountered unexpected element \"" + qName + "\""); } // attempt to delegate to a specialized handler } else if (simpleElementHandler != null) { simpleElementHandler.startElement(uri, localName, qName, attributes); // handle a sophisticated description field } else if (qName.equals("long_desc")) { simpleElementHandler = new DescriptionHandler(this); // handle a sophisticated attachment field } else if (qName.equals("attachment")) { simpleElementHandler = new AttachmentHandler(this); // handle a sophisticated activity field } else if (qName.equals("activity")) { simpleElementHandler = new ActivityHandler(this); // handle all other cases in the base class } else { super.startElement(uri, localName, qName, attributes); } }
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/55ef928971f1cd3bf080886a5ec7786988f3d5d3/IssuezillaXMLParser.java/buggy/source/ca/odell/glazedlists/demo/issuebrowser/IssuezillaXMLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 1082, 202, 2498, 1677, 13, 288, 1082, 202, 759, 2305, 5672, 15990, 2342, 1082, 202, 430, 261, 85, 461, 18, 14963, 2932, 13882, 15990, 6, 3719, 288, 9506, 202, 759, 1045, 326, 4573, 5110, 981, 9506, 202, 20308, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 682, 8296, 273, 394, 2407, 26994, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 12956, 783, 12956, 273, 446, 4868, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 3291, 2477, 273, 446, 4868, 1769, 9506, 202, 5549, 9506, 202, 759, 2305, 9506, 202, 759, 752, 279, 394, 5672, 1082, 202, 97, 469, 309, 261, 2972, 12956, 422, 446, 13, 288, 9506, 202, 430, 261, 85, 461, 18, 14963, 2932, 13882, 6, 3719, 288, 6862, 202, 2972, 12956, 273, 394, 11820, 5621, 6862, 202, 759, 1923, 326, 1267, 981, 6862, 202, 780, 6593, 273, 1677, 18, 24805, 2932, 2327, 67, 710, 8863, 6862, 202, 2972, 12956, 18, 542, 14041, 12, 30120, 480, 446, 692, 2144, 18, 1132, 951, 12, 30120, 13, 294, 394, 2144, 12, 11746, 10019, 6862, 202, 759, 1045, 326, 4573, 5110, 981, 6862, 202, 20308, 3163, 18, 659, 18, 8222, 2932, 2972, 12956, 273, 394, 11820, 26994, 1769, 5549, 9506, 202, 97, 469, 288, 6862, 202, 1289, 503, 12, 2211, 397, 315, 9919, 9733, 930, 11843, 397, 22914, 397, 11143, 1769, 9506, 202, 97, 9506, 202, 759, 4395, 358, 7152, 358, 279, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 1082, 202, 2498, 1677, 13, 288, 1082, 202, 759, 2305, 5672, 15990, 2342, 1082, 202, 430, 261, 85, 461, 18, 14963, 2932, 13882, 15990, 6, 3719, 288, 9506, 202, 759, 1045, 326, 4573, 5110, 981, 9506, 202, 20308, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 682, 8296, 273, 394, 2407, 26994, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 12956, 783, 12956, 273, 446, 4868, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 3291, 2477, 273, 446, 4868, 1769, 9506, 202, 5549, 9506, 202, 759, 2305, 9506, 202, 759, 752, 279, 394, 5672, 1082, 202, 97, 469, 309, 261, 2972, 12956, 2 ]
if ( cbl != lg && cbl != p && cbl != tb )
if ( cbl != lg && cbl != pl && cbl != tb )
private void doLayout_tmp( IDisplayServer xs, Chart cm, Bounds boFull, RunTimeContext rtc ) throws ChartException { final boolean isRightToLeft = rtc.isRightToLeft( ); Block bl = cm.getBlock( ); bl.setBounds( boFull ); Insets ins = bl.getInsets( ); Bounds bo = boFull.adjustedInstance( ins ); Legend lg = cm.getLegend( ); Plot p = cm.getPlot( ); TitleBlock tb = cm.getTitle( ); Size szTitle = ( !tb.isVisible( ) ) ? SizeImpl.create( 0, 0 ) : tb.getPreferredSize( xs, cm, rtc ); Bounds boPlot = p.getBounds( ); Bounds boLegend = lg.getBounds( ); // Layout title in North Anchor by default. Bounds boTitle = tb.getBounds( ); Anchor titleAnchor = tb.getAnchor( ); boTitle.setLeft( bo.getLeft( ) ); boTitle.setWidth( bo.getWidth( ) ); boTitle.setTop( bo.getTop( ) ); boTitle.setHeight( szTitle.getHeight( ) ); Size szLegend = ( !lg.isVisible( ) ) ? SizeImpl.create( 0, 0 ) : lg.getPreferredSize( xs, cm, rtc ); if ( !lg.isSetPosition( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, Messages.getString( "error.legend.position", //$NON-NLS-1$ ULocale.getDefault( ) ) ); } double plotWidthHint = -1, plotHeightHint = -1; if ( p.isSetWidthHint( ) ) { plotWidthHint = p.getWidthHint( ); } if ( p.isSetHeightHint( ) ) { plotHeightHint = p.getHeightHint( ); } double plotLeft, plotTop; // SETUP THE POSITION OF THE LEGEND AND THE PLOT Position po = lg.getPosition( ); // swap right/left if ( isRightToLeft ) { if ( po == Position.RIGHT_LITERAL ) { po = Position.LEFT_LITERAL; } else if ( po == Position.LEFT_LITERAL ) { po = Position.RIGHT_LITERAL; } } // restrict lenged size to 1/3 of the total block size. // TODO use better layout solution final double renderLegendHeight = szLegend.getHeight( ); final double renderLegendWidth = szLegend.getWidth( ); switch ( po.getValue( ) ) { case Position.ABOVE : case Position.BELOW : // restrict height if ( szLegend.getHeight( ) > bo.getHeight( ) / 3 ) { szLegend.setHeight( bo.getHeight( ) / 3 ); } break; case Position.LEFT : case Position.RIGHT : case Position.OUTSIDE : // restrict width if ( szLegend.getWidth( ) > bo.getWidth( ) / 3 ) { szLegend.setWidth( bo.getWidth( ) / 3 ); } break; default : // ignore other cases break; } Anchor anchor = p.getAnchor( ); // swap west/east if ( isRightToLeft ) { switch ( anchor.getValue( ) ) { case Anchor.EAST : anchor = Anchor.WEST_LITERAL; break; case Anchor.NORTH_EAST : anchor = Anchor.NORTH_WEST_LITERAL; break; case Anchor.SOUTH_EAST : anchor = Anchor.SOUTH_WEST_LITERAL; break; case Anchor.WEST : anchor = Anchor.EAST_LITERAL; break; case Anchor.NORTH_WEST : anchor = Anchor.NORTH_EAST_LITERAL; break; case Anchor.SOUTH_WEST : anchor = Anchor.SOUTH_EAST_LITERAL; break; } } switch ( po.getValue( ) ) { case Position.INSIDE : boPlot.setWidth( plotWidthHint < 0 ? bo.getWidth( ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - szTitle.getHeight( ) ) : plotHeightHint ); switch ( titleAnchor.getValue( ) ) { case Anchor.EAST : case Anchor.WEST : boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - szTitle.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? bo.getHeight( ) : plotHeightHint ); boTitle.setHeight( bo.getHeight( ) ); boTitle.setWidth( szTitle.getWidth( ) ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boTitle.setTop( bo.getTop( ) + bo.getHeight( ) - szTitle.getHeight( ) ); break; } plotLeft = bo.getLeft( ); plotTop = bo.getTop( ); switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : plotLeft = bo.getLeft( ) + szTitle.getWidth( ); break; case Anchor.EAST : boTitle.setLeft( bo.getLeft( ) + bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : plotTop = bo.getTop( ) + szTitle.getHeight( ); break; } // adjust left. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; } // adjust top. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; } boPlot.setLeft( plotLeft ); boPlot.setTop( plotTop ); boLegend.set( 0, 0, szLegend.getWidth( ), szLegend.getHeight( ) ); break; case Position.RIGHT : case Position.OUTSIDE : boLegend.setWidth( szLegend.getWidth( ) ); boLegend.setHeight( bo.getHeight( ) - szTitle.getHeight( ) ); boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - boLegend.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - szTitle.getHeight( ) ) : plotHeightHint ); switch ( titleAnchor.getValue( ) ) { case Anchor.EAST : case Anchor.WEST : boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - boLegend.getWidth( ) - szTitle.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? bo.getHeight( ) : plotHeightHint ); boTitle.setHeight( bo.getHeight( ) ); boTitle.setWidth( szTitle.getWidth( ) ); boLegend.setHeight( bo.getHeight( ) ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boTitle.setTop( bo.getTop( ) + bo.getHeight( ) - szTitle.getHeight( ) ); break; } boLegend.setTop( bo.getTop( ) ); boLegend.setLeft( bo.getLeft( ) + bo.getWidth( ) - szLegend.getWidth( ) ); plotLeft = bo.getLeft( ); plotTop = bo.getTop( ); switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : plotLeft = bo.getLeft( ) + szTitle.getWidth( ); break; case Anchor.EAST : boTitle.setLeft( bo.getLeft( ) + bo.getWidth( ) - szTitle.getWidth( ) ); boLegend.setLeft( boTitle.getLeft( ) - szLegend.getWidth( ) ); break; case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : plotTop = bo.getTop( ) + szTitle.getHeight( ); boLegend.setTop( bo.getTop( ) + szTitle.getHeight( ) ); break; } // adjust left. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - szTitle.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - szTitle.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; } // adjust top. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; } boPlot.setLeft( plotLeft ); boPlot.setTop( plotTop ); break; case Position.LEFT : boLegend.setWidth( renderLegendWidth ); boLegend.setHeight( bo.getHeight( ) - szTitle.getHeight( ) ); boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - boLegend.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - szTitle.getHeight( ) ) : plotHeightHint ); switch ( titleAnchor.getValue( ) ) { case Anchor.EAST : case Anchor.WEST : boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - boLegend.getWidth( ) - szTitle.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? bo.getHeight( ) : plotHeightHint ); boTitle.setHeight( bo.getHeight( ) ); boTitle.setWidth( szTitle.getWidth( ) ); boLegend.setHeight( bo.getHeight( ) ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boTitle.setTop( bo.getTop( ) + bo.getHeight( ) - szTitle.getHeight( ) ); break; } boLegend.setTop( bo.getTop( ) ); boLegend.setLeft( bo.getLeft( ) + szLegend.getWidth( ) - renderLegendWidth ); plotLeft = bo.getLeft( ) + szLegend.getWidth( ); plotTop = bo.getTop( ); switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : boLegend.setLeft( bo.getLeft( ) + szTitle.getWidth( ) + szLegend.getWidth( ) - renderLegendWidth ); plotLeft = bo.getLeft( ) + szTitle.getWidth( ) + szLegend.getWidth( ); break; case Anchor.EAST : boTitle.setLeft( bo.getLeft( ) + bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : plotTop = bo.getTop( ) + szTitle.getHeight( ); boLegend.setTop( bo.getTop( ) + szTitle.getHeight( ) ); break; } // adjust left. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - szTitle.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - szTitle.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - boLegend.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; } // adjust top. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - szTitle.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; } boPlot.setLeft( plotLeft ); boPlot.setTop( plotTop ); break; case Position.ABOVE : boLegend.setWidth( bo.getWidth( ) ); boLegend.setHeight( renderLegendHeight ); boPlot.setWidth( plotWidthHint < 0 ? bo.getWidth( ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - szTitle.getHeight( ) - szLegend.getHeight( ) ) : plotHeightHint ); switch ( titleAnchor.getValue( ) ) { case Anchor.EAST : case Anchor.WEST : boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - szTitle.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - boLegend.getHeight( ) ) : plotHeightHint ); boTitle.setHeight( bo.getHeight( ) ); boTitle.setWidth( szTitle.getWidth( ) ); boLegend.setWidth( bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boTitle.setTop( bo.getTop( ) + bo.getHeight( ) - szTitle.getHeight( ) ); break; } boLegend.setTop( bo.getTop( ) + szLegend.getHeight( ) - renderLegendHeight ); boLegend.setLeft( bo.getLeft( ) ); plotLeft = bo.getLeft( ); plotTop = bo.getTop( ) + szLegend.getHeight( ); switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : boLegend.setLeft( bo.getLeft( ) + szTitle.getWidth( ) ); plotLeft = bo.getLeft( ) + szTitle.getWidth( ); break; case Anchor.EAST : boTitle.setLeft( bo.getLeft( ) + bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : plotTop = bo.getTop( ) + szLegend.getHeight( ) + szTitle.getHeight( ); boLegend.setTop( bo.getTop( ) + szTitle.getHeight( ) + szLegend.getHeight( ) - renderLegendHeight ); break; } // adjust left. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; } // adjust top. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - szTitle.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - szTitle.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; } boPlot.setLeft( plotLeft ); boPlot.setTop( plotTop ); break; case Position.BELOW : boLegend.setWidth( bo.getWidth( ) ); boLegend.setHeight( szLegend.getHeight( ) ); boPlot.setWidth( plotWidthHint < 0 ? bo.getWidth( ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - boTitle.getHeight( ) - boLegend.getHeight( ) ) : plotHeightHint ); switch ( titleAnchor.getValue( ) ) { case Anchor.EAST : case Anchor.WEST : boPlot.setWidth( plotWidthHint < 0 ? ( bo.getWidth( ) - szTitle.getWidth( ) ) : plotWidthHint ); boPlot.setHeight( plotHeightHint < 0 ? ( bo.getHeight( ) - boLegend.getHeight( ) ) : plotHeightHint ); boTitle.setHeight( bo.getHeight( ) ); boTitle.setWidth( szTitle.getWidth( ) ); boLegend.setWidth( bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boTitle.setTop( bo.getTop( ) + bo.getHeight( ) - szTitle.getHeight( ) ); break; } boLegend.setTop( bo.getTop( ) + bo.getHeight( ) - szLegend.getHeight( ) ); boLegend.setLeft( bo.getLeft( ) ); plotLeft = bo.getLeft( ); plotTop = bo.getTop( ); switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : boLegend.setLeft( bo.getLeft( ) + szTitle.getWidth( ) ); plotLeft = bo.getLeft( ) + szTitle.getWidth( ); break; case Anchor.EAST : boTitle.setLeft( bo.getLeft( ) + bo.getWidth( ) - szTitle.getWidth( ) ); break; case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : plotTop = bo.getTop( ) + szTitle.getHeight( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : boLegend.setTop( boTitle.getTop( ) - szLegend.getHeight( ) ); break; } // adjust left. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - szTitle.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : plotLeft = plotLeft + bo.getWidth( ) - boPlot.getWidth( ); break; case Anchor.NORTH : case Anchor.SOUTH : plotLeft = plotLeft + ( bo.getWidth( ) - boPlot.getWidth( ) ) / 2; break; } break; } // adjust top. switch ( titleAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.EAST : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; default : switch ( anchor.getValue( ) ) { case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : plotTop = plotTop + bo.getHeight( ) - szTitle.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ); break; case Anchor.WEST : case Anchor.EAST : plotTop = plotTop + ( bo.getHeight( ) - szTitle.getHeight( ) - boLegend.getHeight( ) - boPlot.getHeight( ) ) / 2; break; } break; } boPlot.setLeft( plotLeft ); boPlot.setTop( plotTop ); break; } // layout custom blocks. for ( Iterator itr = bl.getChildren( ).iterator( ); itr.hasNext( ); ) { Block cbl = (Block) itr.next( ); if ( cbl != lg && cbl != p && cbl != tb ) { layoutBlock( xs, cm, bl.getBounds( ), bl.getInsets( ), cbl, rtc ); } } // layout custom legend blocks. for ( Iterator itr = lg.getChildren( ).iterator( ); itr.hasNext( ); ) { Block cbl = (Block) itr.next( ); layoutBlock( xs, cm, lg.getBounds( ), lg.getInsets( ), cbl, rtc ); } // layout custom title blocks. for ( Iterator itr = tb.getChildren( ).iterator( ); itr.hasNext( ); ) { Block cbl = (Block) itr.next( ); layoutBlock( xs, cm, tb.getBounds( ), tb.getInsets( ), cbl, rtc ); } // layout custom plot blocks. for ( Iterator itr = p.getChildren( ).iterator( ); itr.hasNext( ); ) { Block cbl = (Block) itr.next( ); layoutBlock( xs, cm, p.getBounds( ), p.getInsets( ), cbl, rtc ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bdbe857d641e2e27600409e7bb20f1950ed1536b/LayoutManager.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/layout/LayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 3744, 67, 5645, 12, 1599, 291, 1601, 2081, 9280, 16, 14804, 5003, 16, 20382, 800, 5080, 16, 1082, 202, 1997, 950, 1042, 436, 5111, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1250, 353, 4726, 774, 3910, 273, 436, 5111, 18, 291, 4726, 774, 3910, 12, 11272, 202, 202, 1768, 2811, 273, 5003, 18, 588, 1768, 12, 11272, 202, 202, 3083, 18, 542, 5694, 12, 800, 5080, 11272, 202, 202, 382, 4424, 2763, 273, 2811, 18, 588, 382, 4424, 12, 11272, 202, 202, 5694, 800, 273, 800, 5080, 18, 13362, 329, 1442, 12, 2763, 11272, 202, 202, 16812, 15266, 273, 5003, 18, 588, 16812, 12, 11272, 202, 202, 11532, 293, 273, 5003, 18, 588, 11532, 12, 11272, 202, 202, 4247, 1768, 8739, 273, 5003, 18, 588, 4247, 12, 11272, 202, 202, 1225, 11262, 4247, 273, 261, 401, 18587, 18, 291, 6207, 12, 262, 262, 692, 6321, 2828, 18, 2640, 12, 374, 16, 374, 262, 9506, 202, 30, 8739, 18, 588, 16028, 1225, 12, 9280, 16, 5003, 16, 436, 5111, 11272, 202, 202, 5694, 800, 11532, 273, 293, 18, 588, 5694, 12, 11272, 202, 202, 5694, 800, 16812, 273, 15266, 18, 588, 5694, 12, 11272, 202, 202, 759, 9995, 2077, 316, 423, 7825, 27285, 635, 805, 18, 202, 202, 5694, 800, 4247, 273, 8739, 18, 588, 5694, 12, 11272, 202, 202, 11605, 2077, 11605, 273, 8739, 18, 588, 11605, 12, 11272, 202, 202, 1075, 4247, 18, 542, 3910, 12, 800, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 3744, 67, 5645, 12, 1599, 291, 1601, 2081, 9280, 16, 14804, 5003, 16, 20382, 800, 5080, 16, 1082, 202, 1997, 950, 1042, 436, 5111, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1250, 353, 4726, 774, 3910, 273, 436, 5111, 18, 291, 4726, 774, 3910, 12, 11272, 202, 202, 1768, 2811, 273, 5003, 18, 588, 1768, 12, 11272, 202, 202, 3083, 18, 542, 5694, 12, 800, 5080, 11272, 202, 202, 382, 4424, 2763, 273, 2811, 18, 588, 382, 4424, 12, 11272, 202, 202, 5694, 800, 273, 800, 5080, 18, 13362, 329, 1442, 12, 2763, 11272, 202, 202, 16812, 15266, 273, 5003, 18, 588, 16812, 12, 11272, 202, 202, 11532, 293, 273, 5003, 18, 2 ]
fileEditorInput = new FileEditorInput(file.getParent().getFile(new Path("index.eomodeld")));
public void init(IEditorSite _site, IEditorInput _editorInput) throws PartInitException { try { IWorkbench workbench = Activator.getDefault().getWorkbench(); IWorkbenchPage workbenchPage = workbench.getActiveWorkbenchWindow().getActivePage(); int result = switchMode; if (workbenchPage != null && !EOModelerPerspectiveFactory.EOMODELER_PERSPECTIVE_ID.equals(workbenchPage.getPerspective().getId()) && result < 2) { // FIXME AK: this sucks, as we only keep this pref for the session, but I'm totally tired of this dialog MessageDialog dialog = new MessageDialog(Display.getDefault().getActiveShell(), Messages.getString("EOModelEditor.switchPerspectivesTitle"), null, Messages.getString("EOModelEditor.switchPerspectivesMessage"), MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, Messages.getString("EOModelEditor.switchPerspectivesAlways"), Messages.getString("EOModelEditor.switchPerspectivesNever") }, 0); // yes is the default result = dialog.open(); if (result > 1) { switchMode = result; } } if (result == 0 || result == 2) { workbench.showPerspective(EOModelerPerspectiveFactory.EOMODELER_PERSPECTIVE_ID, workbench.getActiveWorkbenchWindow()); } } catch (WorkbenchException e) { e.printStackTrace(); } try { IFileEditorInput fileEditorInput; if (_editorInput instanceof IFileEditorInput) { fileEditorInput = (IFileEditorInput) _editorInput; } else { throw new PartInitException("Unknown editor input: " + _editorInput + "."); } if (myModel != null) { myModel.removePropertyChangeListener(EOModel.DIRTY, myDirtyModelListener); myModel.removePropertyChangeListener(EOModel.ENTITIES, myEntitiesChangeListener); myModel.removePropertyChangeListener(EOModel.STORED_PROCEDURES, myStoredProceduresChangeListener); } IFile file = fileEditorInput.getFile(); String openingEntityName = null; if ("plist".equalsIgnoreCase(file.getFileExtension())) { String name = file.getName(); openingEntityName = name.substring(0, name.indexOf('.')); fileEditorInput = new FileEditorInput(file.getParent().getFile(new Path("index.eomodeld"))); } myLoadFailures = new HashSet(); myModel = EclipseEOModelGroupFactory.createModel(fileEditorInput.getFile(), myLoadFailures); if (openingEntityName != null) { myOpeningEntity = myModel.getEntityNamed(openingEntityName); } handleModelErrors(myLoadFailures); myModel.addPropertyChangeListener(EOModel.DIRTY, myDirtyModelListener); myModel.addPropertyChangeListener(EOModel.ENTITIES, myEntitiesChangeListener); myModel.addPropertyChangeListener(EOModel.STORED_PROCEDURES, myStoredProceduresChangeListener); super.init(_site, fileEditorInput); updatePartName(); _site.setSelectionProvider(this); EOModelEditor.this.editorDirtyStateChanged(); } catch (Exception e) { throw new PartInitException("Failed to create EOModelEditorInput for " + _editorInput + ".", e); } }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/bf3ba14f6d3631aa5a677d94752b3ef84b75d8a4/EOModelEditor.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/EOModelEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 12, 45, 6946, 4956, 389, 4256, 16, 467, 6946, 1210, 389, 9177, 1210, 13, 1216, 6393, 2570, 503, 288, 565, 775, 288, 1377, 467, 2421, 22144, 1440, 22144, 273, 26939, 639, 18, 588, 1868, 7675, 588, 2421, 22144, 5621, 1377, 467, 2421, 22144, 1964, 1440, 22144, 1964, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 1377, 509, 563, 273, 1620, 2309, 31, 1377, 309, 261, 1252, 22144, 1964, 480, 446, 597, 401, 41, 51, 1488, 264, 14781, 16772, 1733, 18, 41, 1872, 1212, 2247, 654, 67, 3194, 23810, 1268, 5354, 67, 734, 18, 14963, 12, 1252, 22144, 1964, 18, 588, 14781, 16772, 7675, 26321, 10756, 597, 563, 411, 576, 13, 288, 3639, 368, 9852, 432, 47, 30, 333, 1597, 363, 87, 16, 487, 732, 1338, 3455, 333, 11307, 364, 326, 1339, 16, 1496, 467, 17784, 9997, 1230, 268, 2921, 434, 333, 6176, 3639, 2350, 6353, 6176, 273, 394, 2350, 6353, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 9334, 4838, 18, 588, 780, 2932, 41, 51, 1488, 6946, 18, 9610, 14781, 1181, 3606, 4247, 6, 3631, 446, 16, 4838, 18, 588, 780, 2932, 41, 51, 1488, 6946, 18, 9610, 14781, 1181, 3606, 1079, 6, 3631, 2350, 6353, 18, 4740, 1146, 16, 394, 514, 8526, 288, 1599, 3529, 2918, 18, 29081, 67, 13545, 16, 1599, 3529, 2918, 18, 3417, 67, 13545, 16, 4838, 18, 588, 780, 2932, 41, 51, 1488, 6946, 18, 9610, 14781, 1181, 3606, 18806, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 12, 45, 6946, 4956, 389, 4256, 16, 467, 6946, 1210, 389, 9177, 1210, 13, 1216, 6393, 2570, 503, 288, 565, 775, 288, 1377, 467, 2421, 22144, 1440, 22144, 273, 26939, 639, 18, 588, 1868, 7675, 588, 2421, 22144, 5621, 1377, 467, 2421, 22144, 1964, 1440, 22144, 1964, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 1377, 509, 563, 273, 1620, 2309, 31, 1377, 309, 261, 1252, 22144, 1964, 480, 446, 597, 401, 41, 51, 1488, 264, 14781, 16772, 1733, 18, 41, 1872, 1212, 2247, 654, 67, 3194, 23810, 1268, 5354, 67, 734, 18, 14963, 12, 1252, 22144, 1964, 18, 588, 14781, 16772, 7675, 26321, 10756, 597, 563, 411, 576, 2 ]
e.getfield(THREAD_CALLBACKS_FIELD); e.invoke_virtual(THREAD_LOCAL, THREAD_LOCAL_GET); e.dup(); Label found_callback = e.make_label(); e.ifnonnull(found_callback); e.pop();
e.getfield(THREAD_CALLBACKS_FIELD); e.invoke_virtual(THREAD_LOCAL, THREAD_LOCAL_GET); e.dup(); Label found_callback = e.make_label(); e.ifnonnull(found_callback); e.pop();
private void emitBindCallbacks(ClassEmitter ce) { CodeEmitter e = ce.begin_method(Constants.PRIVATE_FINAL_STATIC, BIND_CALLBACKS, null, null); Local me = e.make_local(); e.load_arg(0); e.checkcast_this(); e.store_local(me); Label end = e.make_label(); e.load_local(me); e.getfield(BOUND_FIELD); e.if_jump(e.NE, end); e.load_local(me); e.push(1); e.putfield(BOUND_FIELD); e.getfield(THREAD_CALLBACKS_FIELD); e.invoke_virtual(THREAD_LOCAL, THREAD_LOCAL_GET); e.dup(); Label found_callback = e.make_label(); e.ifnonnull(found_callback); e.pop(); e.getfield(STATIC_CALLBACKS_FIELD); e.dup(); e.ifnonnull(found_callback); e.pop(); e.goTo(end); e.mark(found_callback); e.checkcast(CALLBACK_ARRAY); e.load_local(me); e.swap(); for (int i = callbackTypes.length - 1; i >= 0; i--) { if (i != 0) { e.dup2(); } e.aaload(i); e.checkcast(callbackTypes[i]); e.putfield(getCallbackField(i)); } e.mark(end); e.return_value(); e.end_method(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4c632c609488fb8900f7eb5390cd16cbaaf04adf/AdvancedEnhancer.java/clean/source/net/sf/cglib/proxy/AdvancedEnhancer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 3357, 10617, 12, 797, 13476, 5898, 13, 288, 3639, 3356, 13476, 425, 273, 5898, 18, 10086, 67, 2039, 12, 2918, 18, 20055, 67, 7263, 1013, 67, 22741, 16, 4766, 3639, 605, 2356, 67, 30312, 55, 16, 4766, 3639, 446, 16, 4766, 3639, 446, 1769, 3639, 3566, 1791, 273, 425, 18, 6540, 67, 3729, 5621, 3639, 425, 18, 945, 67, 3175, 12, 20, 1769, 3639, 425, 18, 1893, 4155, 67, 2211, 5621, 3639, 425, 18, 2233, 67, 3729, 12, 3501, 1769, 3639, 5287, 679, 273, 425, 18, 6540, 67, 1925, 5621, 3639, 425, 18, 945, 67, 3729, 12, 3501, 1769, 3639, 425, 18, 588, 1518, 12, 19318, 67, 6776, 1769, 3639, 425, 18, 430, 67, 24574, 12, 73, 18, 5407, 16, 679, 1769, 3639, 425, 18, 945, 67, 3729, 12, 3501, 1769, 3639, 425, 18, 6206, 12, 21, 1769, 3639, 425, 18, 458, 1518, 12, 19318, 67, 6776, 1769, 3639, 425, 18, 588, 1518, 12, 21730, 67, 30312, 55, 67, 6776, 1769, 3639, 425, 18, 14407, 67, 12384, 12, 21730, 67, 14922, 16, 7662, 6949, 67, 14922, 67, 3264, 1769, 3639, 425, 18, 26427, 5621, 3639, 5287, 1392, 67, 3394, 273, 425, 18, 6540, 67, 1925, 5621, 3639, 425, 18, 430, 5836, 2011, 12, 7015, 67, 3394, 1769, 3639, 425, 18, 5120, 5621, 3639, 425, 18, 588, 1518, 12, 22741, 67, 30312, 55, 67, 6776, 1769, 3639, 425, 18, 26427, 5621, 3639, 425, 18, 430, 5836, 2011, 12, 7015, 67, 3394, 1769, 3639, 425, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 3357, 10617, 12, 797, 13476, 5898, 13, 288, 3639, 3356, 13476, 425, 273, 5898, 18, 10086, 67, 2039, 12, 2918, 18, 20055, 67, 7263, 1013, 67, 22741, 16, 4766, 3639, 605, 2356, 67, 30312, 55, 16, 4766, 3639, 446, 16, 4766, 3639, 446, 1769, 3639, 3566, 1791, 273, 425, 18, 6540, 67, 3729, 5621, 3639, 425, 18, 945, 67, 3175, 12, 20, 1769, 3639, 425, 18, 1893, 4155, 67, 2211, 5621, 3639, 425, 18, 2233, 67, 3729, 12, 3501, 1769, 3639, 5287, 679, 273, 425, 18, 6540, 67, 1925, 5621, 3639, 425, 18, 945, 67, 3729, 12, 3501, 1769, 3639, 425, 18, 588, 1518, 12, 19318, 67, 6776, 1769, 3639, 425, 18, 430, 67, 24574, 2 ]
private String buildUpdateStatement(boolean[] parameterMask) {
private String buildUpdateStatement(int[] parameterMask) {
private String buildUpdateStatement(boolean[] parameterMask) { StringBuffer sb = new StringBuffer(); sb.append("UPDATE ").append(tableName).append("\n"); sb.append("SET").append("\n"); boolean first = true; for (int i = 0; i < xsqlvars.length; i++) { if (!updatedFlags[i]) continue; if (!first) sb.append(","); sb.append("\n\t"); sb.append(xsqlvars[i].sqlname).append(" = ").append("?"); first = false; } sb.append("\n"); appendWhereClause(sb, parameterMask); return sb.toString(); }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/71ec22bccb26dfac226cd4607238d9daa80ebe4c/FBRowUpdater.java/buggy/src/main/org/firebirdsql/jdbc/FBRowUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1361, 1891, 3406, 12, 474, 8526, 1569, 5796, 13, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 7734, 2393, 18, 6923, 2932, 8217, 315, 2934, 6923, 12, 18033, 2934, 6923, 31458, 82, 8863, 3639, 2393, 18, 6923, 2932, 4043, 20387, 6923, 31458, 82, 8863, 7734, 1250, 1122, 273, 638, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 619, 4669, 4699, 18, 2469, 31, 277, 27245, 288, 5411, 309, 16051, 7007, 5094, 63, 77, 5717, 7734, 1324, 31, 13491, 309, 16051, 3645, 13, 7734, 2393, 18, 6923, 2932, 16, 8863, 13491, 2393, 18, 6923, 31458, 82, 64, 88, 8863, 5411, 2393, 18, 6923, 12, 92, 4669, 4699, 63, 77, 8009, 4669, 529, 2934, 6923, 2932, 273, 315, 2934, 6923, 2932, 7225, 1769, 13491, 1122, 273, 629, 31, 3639, 289, 7734, 2393, 18, 6923, 31458, 82, 8863, 3639, 714, 5262, 7044, 12, 18366, 16, 1569, 5796, 1769, 7734, 327, 2393, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1361, 1891, 3406, 12, 474, 8526, 1569, 5796, 13, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 7734, 2393, 18, 6923, 2932, 8217, 315, 2934, 6923, 12, 18033, 2934, 6923, 31458, 82, 8863, 3639, 2393, 18, 6923, 2932, 4043, 20387, 6923, 31458, 82, 8863, 7734, 1250, 1122, 273, 638, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 619, 4669, 4699, 18, 2469, 31, 277, 27245, 288, 5411, 309, 16051, 7007, 5094, 63, 77, 5717, 7734, 1324, 31, 13491, 309, 16051, 3645, 13, 7734, 2393, 18, 6923, 2932, 16, 8863, 13491, 2393, 18, 6923, 31458, 82, 64, 88, 8863, 5411, 2393, 18, 6923, 12, 92, 4669, 4699, 63, 77, 8009, 4669, 529, 2934, 6923, 2 ]
ArrayList/*< URLRewriter >*/ rewriters = getRewriters();
ArrayList /*< URLRewriter >*/ rewriters = getRewriters();
public static void rewriteURL(MutableURI url, URLType type, boolean needsToBeSecure) { ArrayList/*< URLRewriter >*/ rewriters = getRewriters(); if (rewriters != null) { for (Iterator i = rewriters.iterator(); i.hasNext();) { URLRewriter rewriter = (URLRewriter) i.next(); rewriter.rewriteURL(url, type, needsToBeSecure); } } if (url instanceof FreezableMutableURI) { ((FreezableMutableURI) url).setFrozen(true); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/74cda7c2aa1023c821782bc0e607fe2cf90d80d3/URLRewriterService.java/buggy/ti/jars/core/src/java/org/apache/ti/core/urls/URLRewriterService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 10738, 1785, 12, 19536, 3098, 880, 16, 1976, 559, 618, 16, 1250, 4260, 15360, 12834, 13, 288, 3639, 2407, 1748, 32, 1976, 17631, 1091, 405, 5549, 283, 5363, 414, 273, 4170, 359, 583, 414, 5621, 3639, 309, 261, 266, 5363, 414, 480, 446, 13, 288, 5411, 364, 261, 3198, 277, 273, 283, 5363, 414, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 1976, 17631, 1091, 283, 6299, 273, 261, 1785, 17631, 1091, 13, 277, 18, 4285, 5621, 7734, 283, 6299, 18, 21489, 1785, 12, 718, 16, 618, 16, 4260, 15360, 12834, 1769, 5411, 289, 3639, 289, 3639, 309, 261, 718, 1276, 15217, 94, 429, 19536, 3098, 13, 288, 5411, 14015, 9194, 94, 429, 19536, 3098, 13, 880, 2934, 542, 42, 9808, 12, 3767, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 10738, 1785, 12, 19536, 3098, 880, 16, 1976, 559, 618, 16, 1250, 4260, 15360, 12834, 13, 288, 3639, 2407, 1748, 32, 1976, 17631, 1091, 405, 5549, 283, 5363, 414, 273, 4170, 359, 583, 414, 5621, 3639, 309, 261, 266, 5363, 414, 480, 446, 13, 288, 5411, 364, 261, 3198, 277, 273, 283, 5363, 414, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 1976, 17631, 1091, 283, 6299, 273, 261, 1785, 17631, 1091, 13, 277, 18, 4285, 5621, 7734, 283, 6299, 18, 21489, 1785, 12, 718, 16, 618, 16, 4260, 15360, 12834, 1769, 5411, 289, 3639, 289, 3639, 309, 261, 718, 1276, 15217, 94, 429, 19536, 3098, 13, 288, 5411, 14015, 9194, 94, 2 ]
if((isNodeNotConvertible(root, xpath))){
if(isNodeNotConvertible(root, xpath, true)){
private ICUResourceWriter.Resource parseCollation(Node root, StringBuffer xpath){ ICUResourceWriter.ResourceTable table = new ICUResourceWriter.ResourceTable(); ICUResourceWriter.Resource current = null; table.name = LDMLUtilities.getAttributeValue(root, LDMLConstants.TYPE); int savedLength = xpath.length(); getXPath(root, xpath); int oldLength = xpath.length(); //if the whole collatoin node is marked draft then //dont write anything if((isNodeNotConvertible(root, xpath))){ xpath.setLength(savedLength); return null; } StringBuffer rules = new StringBuffer(); for(Node node=root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = node.getNodeName(); ICUResourceWriter.Resource res = null; if(name.equals(LDMLConstants.ALIAS)){ res = parseAliasResource(node, xpath); res.name =table.name; return res; }else if(name.equals(LDMLConstants.RULES)){ Node alias = LDMLUtilities.getNode(node, LDMLConstants.ALIAS , fullyResolvedDoc, xpath.toString()); getXPath(node, xpath); if(alias!=null){ res = parseAliasResource(alias, xpath); }else{ rules.append( parseRules(node, xpath)); } }else if(name.equals(LDMLConstants.SETTINGS)){ //TODO rules.append(parseSettings(node)); }else if(name.equals(LDMLConstants.SUPPRESS_CONTRACTIONS)){ if(DEBUG)System.out.println(""); int index = rules.length(); rules.append("[suppressContractions "); rules.append(LDMLUtilities.getNodeValue(node)); rules.append(" ]"); if(DEBUG) System.out.println(rules.substring(index)); }else if(name.equals(LDMLConstants.OPTIMIZE)){ rules.append("[optimize "); rules.append(LDMLUtilities.getNodeValue(node)); rules.append(" ]"); }else if (name.equals(LDMLConstants.BASE)){ //TODO Dont know what to do here }else{ System.err.println("Encountered unknown <"+root.getNodeName()+"> subelement: "+name); System.exit(-1); } if(res!=null){ if(current == null){ current = table.first= res; }else{ current.next = res; current = current.next; } res = null; } xpath.delete(oldLength, xpath.length()); } if(rules!=null){ ICUResourceWriter.ResourceString str = new ICUResourceWriter.ResourceString(); str.name = LDMLConstants.SEQUENCE; str.val = rules.toString(); if(current == null){ current = table.first= str; }else{ current.next = str; current = current.next; } str = new ICUResourceWriter.ResourceString(); str.name = "Version"; str.val = ldmlVersion; //"1.0"; /* * Not needed anymore if(specialsDoc!=null){ Node version = LDMLUtilities.getNode(specialsDoc, xpath.append("/special").toString()); if(version!=null){ str.val = LDMLUtilities.getAttributeValue(version, "icu:version"); } } */ current.next = str; } xpath.delete(savedLength, xpath.length()); if(table.first!=null){ return table; } return null; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6269cba31ec11123bf47b1c97e07ed0e0d8d194b/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 13535, 367, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1388, 1014, 273, 394, 28009, 1420, 2289, 18, 1420, 1388, 5621, 3639, 28009, 1420, 2289, 18, 1420, 783, 273, 446, 31, 3639, 1014, 18, 529, 273, 28083, 1495, 11864, 18, 588, 14942, 12, 3085, 16, 28083, 1495, 2918, 18, 2399, 1769, 3639, 509, 5198, 1782, 273, 6748, 18, 2469, 5621, 3639, 6538, 743, 12, 3085, 16, 6748, 1769, 3639, 509, 1592, 1782, 273, 6748, 18, 2469, 5621, 7734, 368, 430, 326, 7339, 4508, 270, 885, 756, 353, 9350, 12246, 1508, 3639, 368, 72, 1580, 1045, 6967, 3639, 309, 12, 291, 907, 1248, 2723, 1523, 12, 3085, 16, 6748, 16, 638, 3719, 95, 5411, 6748, 18, 542, 1782, 12, 14077, 1782, 1769, 5411, 327, 446, 31, 3639, 289, 3639, 6674, 2931, 273, 394, 6674, 5621, 3639, 364, 12, 907, 756, 33, 3085, 18, 588, 3759, 1763, 5621, 756, 5, 33, 2011, 31, 756, 33, 2159, 18, 588, 2134, 10291, 10756, 95, 5411, 309, 12, 2159, 18, 588, 15101, 1435, 5, 33, 907, 18, 10976, 67, 8744, 15329, 7734, 1324, 31, 5411, 289, 5411, 514, 508, 273, 756, 18, 588, 18948, 5621, 5411, 28009, 1420, 2289, 18, 1420, 400, 273, 446, 31, 5411, 309, 12, 529, 18, 14963, 12, 12069, 1495, 2918, 18, 23784, 3719, 95, 7734, 400, 273, 1109, 2936, 1420, 12, 2159, 16, 6748, 1769, 7734, 400, 18, 529, 273, 2121, 18, 529, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 13535, 367, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1388, 1014, 273, 394, 28009, 1420, 2289, 18, 1420, 1388, 5621, 3639, 28009, 1420, 2289, 18, 1420, 783, 273, 446, 31, 3639, 1014, 18, 529, 273, 28083, 1495, 11864, 18, 588, 14942, 12, 3085, 16, 28083, 1495, 2918, 18, 2399, 1769, 3639, 509, 5198, 1782, 273, 6748, 18, 2469, 5621, 3639, 6538, 743, 12, 3085, 16, 6748, 1769, 3639, 509, 1592, 1782, 273, 6748, 18, 2469, 5621, 7734, 368, 430, 326, 7339, 4508, 270, 885, 756, 353, 9350, 12246, 1508, 3639, 368, 72, 1580, 1045, 6967, 3639, 309, 12, 291, 907, 1248, 2723, 1523, 12, 3085, 2 ]
int LA25_466 = input.LA(1); if ( LA25_466=='f' ) {return s564;}
int LA25_564 = input.LA(1); if ( LA25_564=='c' ) {return s637;}
public DFA.State transition(IntStream input) throws RecognitionException { int LA25_466 = input.LA(1); if ( LA25_466=='f' ) {return s564;} return s45; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.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, 509, 2928, 2947, 67, 24, 6028, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 2947, 67, 24, 6028, 18920, 74, 11, 262, 288, 2463, 272, 25, 1105, 31, 97, 7734, 327, 272, 7950, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 2947, 67, 24, 6028, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 2947, 67, 24, 6028, 18920, 74, 11, 262, 288, 2463, 272, 25, 1105, 31, 97, 7734, 327, 272, 7950, 31, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertNull(DateFormatType.get(4) );
public void testGet() { assertEquals( DateFormatType.LONG_LITERAL, DateFormatType.get(0) ); assertEquals( DateFormatType.SHORT_LITERAL, DateFormatType.get(1) ); assertEquals( DateFormatType.MEDIUM_LITERAL, DateFormatType.get(DateFormatType.MEDIUM) ); assertEquals( DateFormatType.FULL_LITERAL, DateFormatType.get(DateFormatType.FULL) ); assertEquals( DateFormatType.LONG_LITERAL, DateFormatType.get("Long") ); //$NON-NLS-1$ assertEquals( DateFormatType.SHORT_LITERAL, DateFormatType.get("Short") ); //$NON-NLS-1$ assertEquals( DateFormatType.MEDIUM_LITERAL, DateFormatType.get("Medium") ); //$NON-NLS-1$ assertEquals( DateFormatType.FULL_LITERAL, DateFormatType.get("Full") ); //$NON-NLS-1$ assertNull(DateFormatType.get("No Match") ); //$NON-NLS-1$ assertNull(DateFormatType.get(4) ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e757044daa53d502ecf969354d3f5ec94aa76fd1/DateFormatTypeTest.java/buggy/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/model/attribute/DateFormatTypeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 9506, 202, 11231, 8867, 12, 18371, 559, 18, 14639, 67, 23225, 16, 18371, 559, 18, 588, 12, 20, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15993, 67, 23225, 16, 18371, 559, 18, 588, 12, 21, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15971, 2799, 67, 23225, 16, 18371, 559, 18, 588, 12, 11878, 559, 18, 15971, 2799, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 18111, 67, 23225, 16, 18371, 559, 18, 588, 12, 11878, 559, 18, 18111, 13, 11272, 9506, 202, 11231, 8867, 12, 18371, 559, 18, 14639, 67, 23225, 16, 18371, 559, 18, 588, 2932, 3708, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15993, 67, 23225, 16, 18371, 559, 18, 588, 2932, 4897, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15971, 2799, 67, 23225, 16, 18371, 559, 18, 588, 2932, 25599, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 8867, 12, 18371, 559, 18, 18111, 67, 23225, 16, 18371, 559, 18, 588, 2932, 5080, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 11231, 2041, 12, 11878, 559, 18, 588, 2932, 2279, 4639, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 2041, 12, 11878, 559, 18, 588, 12, 24, 13, 11272, 202, 97, 2, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 9506, 202, 11231, 8867, 12, 18371, 559, 18, 14639, 67, 23225, 16, 18371, 559, 18, 588, 12, 20, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15993, 67, 23225, 16, 18371, 559, 18, 588, 12, 21, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 15971, 2799, 67, 23225, 16, 18371, 559, 18, 588, 12, 11878, 559, 18, 15971, 2799, 13, 11272, 202, 202, 11231, 8867, 12, 18371, 559, 18, 18111, 67, 23225, 16, 18371, 559, 18, 588, 12, 11878, 559, 18, 18111, 13, 11272, 9506, 202, 11231, 8867, 12, 18371, 559, 18, 14639, 67, 23225, 16, 18371, 559, 18, 588, 2932, 3708, 7923, 11272, 4329, 2 ]
LOG.assertTrue(false);
LOG.assertTrue(false, rootBlock.getClass().getName());
private AbstractBlockWrapper processSimpleBlock(final Block rootBlock, final AbstractBlockWrapper parent, final boolean readOnly, final TextRange textRange, final int index) { final LeafBlockWrapper info = new LeafBlockWrapper(rootBlock, parent, myCurrentWhiteSpace, myModel, myPreviousBlock, readOnly, textRange); if (index == 0) { info.arrangeParentTextRange(); } myResult.put(rootBlock, info); if (textRange.getLength() == 0) { LOG.assertTrue(false); } if (myPreviousBlock != null) { myPreviousBlock.setNextBlock(info); } if (myFirstTokenBlock == null) { myFirstTokenBlock = info; } myLastTokenBlock = info; if (currentWhiteSpaceIsRreadOnly()) { myCurrentWhiteSpace.setReadOnly(true); } if (myCurrentSpaceProperty != null) { myCurrentWhiteSpace.setIsSafe(myCurrentSpaceProperty.isSafe()); myCurrentWhiteSpace.setKeepFirstColumn(myCurrentSpaceProperty.shouldKeepFirstColumn()); } info.setSpaceProperty(myCurrentSpaceProperty); myCurrentWhiteSpace = new WhiteSpace(textRange.getEndOffset(), false); myPreviousBlock = info; return info; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bb9cb99dafc6d17ff556a960808ad3c01e882afc/InitialInfoBuilder.java/buggy/source/com/intellij/formatting/InitialInfoBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 4115, 1768, 3611, 1207, 5784, 1768, 12, 6385, 3914, 1365, 1768, 16, 4766, 5375, 727, 4115, 1768, 3611, 982, 16, 4766, 5375, 727, 1250, 15075, 16, 4766, 5375, 727, 3867, 2655, 977, 2655, 16, 727, 509, 770, 13, 288, 565, 727, 23383, 1768, 3611, 1123, 273, 394, 23383, 1768, 3611, 12, 3085, 1768, 16, 982, 16, 3399, 3935, 23108, 16, 3399, 1488, 16, 3399, 8351, 1768, 16, 15075, 16, 4766, 15604, 977, 2655, 1769, 565, 309, 261, 1615, 422, 374, 13, 288, 1377, 1123, 18, 297, 3676, 3054, 1528, 2655, 5621, 565, 289, 565, 3399, 1253, 18, 458, 12, 3085, 1768, 16, 1123, 1769, 565, 309, 261, 955, 2655, 18, 588, 1782, 1435, 422, 374, 13, 288, 1377, 2018, 18, 11231, 5510, 12, 5743, 16, 1365, 1768, 18, 588, 797, 7675, 17994, 10663, 565, 289, 565, 309, 261, 4811, 8351, 1768, 480, 446, 13, 288, 1377, 3399, 8351, 1768, 18, 542, 2134, 1768, 12, 1376, 1769, 565, 289, 565, 309, 261, 4811, 3759, 1345, 1768, 422, 446, 13, 288, 1377, 3399, 3759, 1345, 1768, 273, 1123, 31, 565, 289, 565, 3399, 3024, 1345, 1768, 273, 1123, 31, 565, 309, 261, 2972, 23108, 2520, 54, 896, 3386, 10756, 288, 1377, 3399, 3935, 23108, 18, 542, 12066, 12, 3767, 1769, 565, 289, 565, 309, 261, 4811, 3935, 3819, 1396, 480, 446, 13, 288, 1377, 3399, 3935, 23108, 18, 542, 2520, 9890, 12, 4811, 3935, 3819, 1396, 18, 291, 9890, 10663, 1377, 3399, 3935, 23108, 18, 542, 11523, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 4115, 1768, 3611, 1207, 5784, 1768, 12, 6385, 3914, 1365, 1768, 16, 4766, 5375, 727, 4115, 1768, 3611, 982, 16, 4766, 5375, 727, 1250, 15075, 16, 4766, 5375, 727, 3867, 2655, 977, 2655, 16, 727, 509, 770, 13, 288, 565, 727, 23383, 1768, 3611, 1123, 273, 394, 23383, 1768, 3611, 12, 3085, 1768, 16, 982, 16, 3399, 3935, 23108, 16, 3399, 1488, 16, 3399, 8351, 1768, 16, 15075, 16, 4766, 15604, 977, 2655, 1769, 565, 309, 261, 1615, 422, 374, 13, 288, 1377, 1123, 18, 297, 3676, 3054, 1528, 2655, 5621, 565, 289, 565, 3399, 1253, 18, 458, 12, 3085, 1768, 16, 1123, 1769, 565, 309, 261, 955, 2655, 18, 588, 1782, 1435, 422, 374, 13, 288, 2 ]
match(input,23,FOLLOW_23_in_predicate2024);
match(input,23,FOLLOW_23_in_predicate2025);
public void predicate(List constraints) throws RecognitionException { Token decl=null; Token field=null; String text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:703:17: (decl= ID ':' field= ID '->' '(' text= paren_chunk ')' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:703:17: decl= ID ':' field= ID '->' '(' text= paren_chunk ')' { decl=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2008); match(input,30,FOLLOW_30_in_predicate2010); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2014); match(input,49,FOLLOW_49_in_predicate2016); match(input,21,FOLLOW_21_in_predicate2018); following.push(FOLLOW_paren_chunk_in_predicate2022); text=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_predicate2024); PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), text ); constraints.add( d ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 3496, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 5411, 288, 5411, 3496, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 6976, 28, 1769, 2398, 845, 12, 2630, 16, 5082, 16, 29890, 67, 5082, 67, 267, 67, 18344, 6734, 20, 1769, 2398, 652, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 6734, 24, 1769, 2398, 845, 12, 2630, 16, 7616, 16, 29890, 67, 7616, 67, 267, 67, 18344, 28525, 1769, 2398, 845, 12, 2630, 16, 5340, 16, 29890, 67, 5340, 67, 267, 67, 18344, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 2 ]
String pre = woresponse.contentString();
int offset = woresponse.contentString().length();
public void appendToResponse(WOResponse woresponse, WOContext wocontext) { String pre = woresponse.contentString(); super.appendToResponse(woresponse, wocontext); if(cleanupXHTML) correctResponse(woresponse, pre.length(), pre); }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/ebda80220a212da041a02659634dbf9a30a022ad/ERXPatcher.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXPatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 16022, 1064, 12, 59, 51, 1064, 341, 83, 2740, 16, 678, 51, 1042, 341, 16550, 955, 13, 288, 7734, 509, 1384, 273, 341, 83, 2740, 18, 1745, 780, 7675, 2469, 5621, 7734, 2240, 18, 6923, 774, 1064, 12, 6933, 2740, 16, 341, 16550, 955, 1769, 7734, 309, 12, 16732, 60, 4870, 13, 10792, 3434, 1064, 12, 6933, 2740, 16, 675, 18, 2469, 9334, 675, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 16022, 1064, 12, 59, 51, 1064, 341, 83, 2740, 16, 678, 51, 1042, 341, 16550, 955, 13, 288, 7734, 509, 1384, 273, 341, 83, 2740, 18, 1745, 780, 7675, 2469, 5621, 7734, 2240, 18, 6923, 774, 1064, 12, 6933, 2740, 16, 341, 16550, 955, 1769, 7734, 309, 12, 16732, 60, 4870, 13, 10792, 3434, 1064, 12, 6933, 2740, 16, 675, 18, 2469, 9334, 675, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rightJust[i]))
rightJust[j]))
private void displayResultSet(Statement statement, ResultSet r, int[] incCols, String exclPref) throws SQLException { int updateCount = (statement == null) ? -1 : statement.getUpdateCount(); switch (updateCount) { case -1: if (r == null) { stdprint("No result"); break; } ResultSetMetaData m = r.getMetaData(); int cols = m.getColumnCount(); int incCount = (incCols == null) ? cols : incCols.length; String val; ArrayList rows = new ArrayList(); String[] headerArray = null; String[] fieldArray; int[] maxWidth = new int[incCount]; int insi; boolean skip; String dataType; // STEP 1: GATHER DATA if (!htmlMode) { for (int i = 0; i < maxWidth.length; i++) maxWidth[i] = 0; } boolean[] rightJust = new boolean[incCount]; if (incCount > 1) { insi = -1; headerArray = new String[incCount]; for (int i = 1; i <= cols; i++) { if (incCols != null) { skip = true; for (int j = 0; j < incCols.length; j++) if (i == incCols[j]) skip = false; if (skip) continue; } headerArray[++insi] = m.getColumnLabel(i); dataType = m.getColumnTypeName(i); rightJust[insi] = dataType.equals("INTEGER") || dataType.equals("NUMBER"); if (htmlMode) continue; if (headerArray[insi].length() > maxWidth[insi]) maxWidth[insi] = headerArray[insi].length(); } } EACH_ROW: while (r.next()) { fieldArray = new String[incCount]; insi = -1; for (int i = 1; i <= cols; i++) { if (incCols != null) { skip = true; for (int j = 0; j < incCols.length; j++) if (i == incCols[j]) skip = false; if (skip) continue; } val = r.getString(i); if (exclPref != null && val != null && val.startsWith(exclPref)) continue EACH_ROW; fieldArray[++insi] = r.wasNull() ? (htmlMode ? "<I>null</I>" : "null") : val; if (htmlMode) continue; if (fieldArray[insi].length() > maxWidth[insi]) maxWidth[insi] = fieldArray[insi].length(); } rows.add(fieldArray); } // STEP 2: DISPLAY DATA if (htmlMode) psStd.println("<TABLE border='1'>"); if (headerArray != null) { if (htmlMode) psStd.print(htmlRow(COL_HEAD) + '\n' + PRE_TD); for (int i = 0; i < headerArray.length; i++) { psStd.print(htmlMode ? ("<TD>" + headerArray[i] + "</TD>") : (((i > 0) ? spaces(2) : "") + pad(headerArray[i], maxWidth[i], rightJust[i])) ); } psStd.println(htmlMode ? ("\n" + PRE_TR + "</TR>") : ""); if (!htmlMode) { for (int i = 0; i < headerArray.length; i++) { psStd.print(((i > 0) ? spaces(2) : "") + divider(maxWidth[i])); } psStd.println(); } } for (int i = 0; i < rows.size(); i++) { if (htmlMode) psStd.print(htmlRow( ((i % 2) == 0) ? COL_EVEN : COL_ODD) + '\n' + PRE_TD); fieldArray = (String[]) rows.get(i); for (int j = 0; j < fieldArray.length; j++) { psStd.print(htmlMode ? ("<TD>" + fieldArray[j] + "</TD>") : (((j > 0) ? spaces(2) : "") + pad(fieldArray[j], maxWidth[j], rightJust[i])) ); }; psStd.println(htmlMode ? ("\n" + PRE_TR + "</TR>") : ""); } if (htmlMode) psStd.println("</TABLE>"); if (rows.size() != 1) stdprint("\n" + rows.size() + " rows"); break; default: if (updateCount != 0) stdprint(Integer.toString(updateCount) + " row" + ((updateCount == 1) ? "" : "s") + " updated"); break; } }
49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/c2a24e932033f3c415b52dbfae58f08bd0ecebfb/SqlFile.java/clean/base-one/trunk/src/org/hsqldb/util/SqlFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2562, 13198, 12, 3406, 3021, 16, 5411, 10842, 436, 16, 509, 8526, 7290, 8011, 16, 514, 4687, 23218, 13, 1216, 6483, 288, 3639, 509, 1089, 1380, 273, 261, 11516, 422, 446, 13, 692, 300, 21, 294, 3021, 18, 588, 1891, 1380, 5621, 3639, 1620, 261, 2725, 1380, 13, 288, 5411, 648, 300, 21, 30, 7734, 309, 261, 86, 422, 446, 13, 288, 10792, 2044, 1188, 2932, 2279, 563, 8863, 10792, 898, 31, 7734, 289, 7734, 10842, 6998, 312, 273, 436, 18, 588, 6998, 5621, 7734, 509, 5347, 273, 312, 18, 588, 1494, 1380, 5621, 7734, 509, 7290, 1380, 273, 261, 9523, 8011, 422, 446, 13, 692, 5347, 294, 7290, 8011, 18, 2469, 31, 7734, 514, 1244, 31, 7734, 2407, 2595, 273, 394, 2407, 5621, 7734, 514, 8526, 1446, 1076, 273, 446, 31, 7734, 514, 8526, 652, 1076, 31, 7734, 509, 8526, 17681, 273, 394, 509, 63, 9523, 1380, 15533, 7734, 509, 2763, 77, 31, 7734, 1250, 2488, 31, 7734, 514, 8891, 31, 7734, 368, 25538, 404, 30, 611, 3275, 654, 8730, 7734, 309, 16051, 2620, 2309, 13, 288, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 17681, 18, 2469, 31, 277, 27245, 17681, 63, 77, 65, 273, 374, 31, 7734, 289, 7734, 1250, 8526, 2145, 19642, 273, 394, 1250, 63, 9523, 1380, 15533, 7734, 309, 261, 9523, 1380, 405, 404, 13, 288, 10792, 2763, 77, 273, 300, 21, 31, 10792, 1446, 1076, 273, 394, 514, 63, 9523, 1380, 15533, 10792, 364, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2562, 13198, 12, 3406, 3021, 16, 5411, 10842, 436, 16, 509, 8526, 7290, 8011, 16, 514, 4687, 23218, 13, 1216, 6483, 288, 3639, 509, 1089, 1380, 273, 261, 11516, 422, 446, 13, 692, 300, 21, 294, 3021, 18, 588, 1891, 1380, 5621, 3639, 1620, 261, 2725, 1380, 13, 288, 5411, 648, 300, 21, 30, 7734, 309, 261, 86, 422, 446, 13, 288, 10792, 2044, 1188, 2932, 2279, 563, 8863, 10792, 898, 31, 7734, 289, 7734, 10842, 6998, 312, 273, 436, 18, 588, 6998, 5621, 7734, 509, 5347, 273, 312, 18, 588, 1494, 1380, 5621, 7734, 509, 7290, 1380, 273, 261, 9523, 8011, 422, 446, 13, 692, 5347, 294, 7290, 8011, 18, 2469, 31, 7734, 514, 1244, 2 ]
getLogger().debug("Copying message to group: "+headers[i]); NNTPGroup group = repo.getGroup(headers[i]); if ( group == null ) { getLogger().error("Couldn't add article with article ID " + articleID + " to group " + headers[i] + " - group not found."); continue; }
StringTokenizer tokenizer = new StringTokenizer(headers[i],","); while ( tokenizer.hasMoreTokens() ) { String groupName = tokenizer.nextToken().trim(); getLogger().debug("Copying message to group: "+groupName); NNTPGroup group = repo.getGroup(groupName); if ( group == null ) { getLogger().error("Couldn't add article with article ID " + articleID + " to group " + groupName + " - group not found."); continue; }
private void process(File spoolFile) throws Exception { StringBuffer logBuffer = new StringBuffer(160) .append("process: ") .append(spoolFile.getAbsolutePath()) .append(",") .append(spoolFile.getCanonicalPath()); getLogger().debug(logBuffer.toString()); final MimeMessage msg; String articleID; // TODO: Why is this a block? { // Get the message for copying to destination groups. FileInputStream fin = new FileInputStream(spoolFile); try { msg = new MimeMessage(null,fin); } finally { IOUtil.shutdownStream(fin); } // ensure no duplicates exist. String[] idheader = msg.getHeader("Message-Id"); articleID = ((idheader != null && (idheader.length > 0))? idheader[0] : null); if ((articleID != null) && ( articleIDRepo.isExists(articleID))) { getLogger().debug("Message already exists: "+articleID); if (spoolFile.delete() == false) getLogger().error("Could not delete duplicate message from spool: " + spoolFile.getAbsolutePath()); return; } if ( articleID == null ) { articleID = articleIDRepo.generateArticleID(); msg.setHeader("Message-Id", articleID); FileOutputStream fout = new FileOutputStream(spoolFile); try { msg.writeTo(fout); } finally { IOUtil.shutdownStream(fout); } } } String[] headers = msg.getHeader("Newsgroups"); Properties prop = new Properties(); if (headers != null) { for ( int i = 0 ; i < headers.length ; i++ ) { getLogger().debug("Copying message to group: "+headers[i]); NNTPGroup group = repo.getGroup(headers[i]); if ( group == null ) { getLogger().error("Couldn't add article with article ID " + articleID + " to group " + headers[i] + " - group not found."); continue; } FileInputStream newsStream = new FileInputStream(spoolFile); try { NNTPArticle article = group.addArticle(newsStream); prop.setProperty(group.getName(),article.getArticleNumber() + ""); } finally { IOUtil.shutdownStream(newsStream); } } } articleIDRepo.addArticle(articleID,prop); boolean delSuccess = spoolFile.delete(); if ( delSuccess == false ) { getLogger().error("Could not delete file: " + spoolFile.getAbsolutePath()); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/7f5b77494ec0c794d32777851916907be6588836/NNTPSpooler.java/buggy/trunk/src/java/org/apache/james/nntpserver/repository/NNTPSpooler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1207, 12, 812, 1694, 1371, 812, 13, 1216, 1185, 288, 5411, 6674, 613, 1892, 273, 7734, 394, 6674, 12, 16874, 13, 13491, 263, 6923, 2932, 2567, 30, 9369, 13491, 263, 6923, 12, 1752, 1371, 812, 18, 588, 10368, 743, 10756, 13491, 263, 6923, 2932, 16, 7923, 13491, 263, 6923, 12, 1752, 1371, 812, 18, 588, 15512, 743, 10663, 5411, 7156, 7675, 4148, 12, 1330, 1892, 18, 10492, 10663, 5411, 727, 22059, 1079, 1234, 31, 5411, 514, 7559, 734, 31, 5411, 368, 2660, 30, 3497, 93, 353, 333, 279, 1203, 35, 5411, 288, 282, 368, 968, 326, 883, 364, 8933, 358, 2929, 3252, 18, 7734, 11907, 574, 273, 394, 11907, 12, 1752, 1371, 812, 1769, 7734, 775, 288, 10792, 1234, 273, 394, 22059, 1079, 12, 2011, 16, 926, 1769, 7734, 289, 3095, 288, 10792, 1665, 1304, 18, 15132, 1228, 12, 926, 1769, 7734, 289, 7734, 368, 3387, 1158, 11211, 1005, 18, 7734, 514, 8526, 612, 3374, 273, 1234, 18, 588, 1864, 2932, 1079, 17, 548, 8863, 7734, 7559, 734, 273, 14015, 350, 3374, 480, 446, 597, 261, 350, 3374, 18, 2469, 405, 374, 24783, 612, 3374, 63, 20, 65, 294, 446, 1769, 7734, 309, 14015, 11480, 734, 480, 446, 13, 597, 261, 7559, 734, 8791, 18, 291, 4002, 12, 11480, 734, 20349, 288, 10792, 7156, 7675, 4148, 2932, 1079, 1818, 1704, 30, 13773, 11480, 734, 1769, 10792, 309, 261, 1752, 1371, 812, 18, 3733, 1435, 422, 629, 13, 13491, 7156, 7675, 1636, 2932, 4445, 486, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1207, 12, 812, 1694, 1371, 812, 13, 1216, 1185, 288, 5411, 6674, 613, 1892, 273, 7734, 394, 6674, 12, 16874, 13, 13491, 263, 6923, 2932, 2567, 30, 9369, 13491, 263, 6923, 12, 1752, 1371, 812, 18, 588, 10368, 743, 10756, 13491, 263, 6923, 2932, 16, 7923, 13491, 263, 6923, 12, 1752, 1371, 812, 18, 588, 15512, 743, 10663, 5411, 7156, 7675, 4148, 12, 1330, 1892, 18, 10492, 10663, 5411, 727, 22059, 1079, 1234, 31, 5411, 514, 7559, 734, 31, 5411, 368, 2660, 30, 3497, 93, 353, 333, 279, 1203, 35, 5411, 288, 282, 368, 968, 326, 883, 364, 8933, 358, 2929, 3252, 18, 7734, 11907, 574, 273, 394, 11907, 12, 1752, 1371, 812, 1769, 7734, 775, 2 ]
for (int i = 0; i < 48; i++) {
for (int i = 0; i < 49; i++) {
final private void jj_rescan_token() { jj_rescan = true; for (int i = 0; i < 48; i++) { JJCalls p = jj_2_rtns[i]; do { if (p.gen > jj_gen) { jj_la = p.arg; jj_lastpos = jj_scanpos = p.first; switch (i) { case 0: jj_3_1(); break; case 1: jj_3_2(); break; case 2: jj_3_3(); break; case 3: jj_3_4(); break; case 4: jj_3_5(); break; case 5: jj_3_6(); break; case 6: jj_3_7(); break; case 7: jj_3_8(); break; case 8: jj_3_9(); break; case 9: jj_3_10(); break; case 10: jj_3_11(); break; case 11: jj_3_12(); break; case 12: jj_3_13(); break; case 13: jj_3_14(); break; case 14: jj_3_15(); break; case 15: jj_3_16(); break; case 16: jj_3_17(); break; case 17: jj_3_18(); break; case 18: jj_3_19(); break; case 19: jj_3_20(); break; case 20: jj_3_21(); break; case 21: jj_3_22(); break; case 22: jj_3_23(); break; case 23: jj_3_24(); break; case 24: jj_3_25(); break; case 25: jj_3_26(); break; case 26: jj_3_27(); break; case 27: jj_3_28(); break; case 28: jj_3_29(); break; case 29: jj_3_30(); break; case 30: jj_3_31(); break; case 31: jj_3_32(); break; case 32: jj_3_33(); break; case 33: jj_3_34(); break; case 34: jj_3_35(); break; case 35: jj_3_36(); break; case 36: jj_3_37(); break; case 37: jj_3_38(); break; case 38: jj_3_39(); break; case 39: jj_3_40(); break; case 40: jj_3_41(); break; case 41: jj_3_42(); break; case 42: jj_3_43(); break; case 43: jj_3_44(); break; case 44: jj_3_45(); break; case 45: jj_3_46(); break; case 46: jj_3_47(); break; case 47: jj_3_48(); break; } } p = p.next; } while (p != null); } jj_rescan = false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 918, 10684, 67, 455, 4169, 67, 2316, 1435, 288, 565, 10684, 67, 455, 4169, 273, 638, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 17160, 31, 277, 27245, 288, 1377, 804, 46, 10125, 293, 273, 10684, 67, 22, 67, 3797, 2387, 63, 77, 15533, 1377, 741, 288, 3639, 309, 261, 84, 18, 4507, 405, 10684, 67, 4507, 13, 288, 1850, 10684, 67, 11821, 273, 293, 18, 3175, 31, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 293, 18, 3645, 31, 1850, 1620, 261, 77, 13, 288, 5411, 648, 374, 30, 10684, 67, 23, 67, 21, 5621, 898, 31, 5411, 648, 404, 30, 10684, 67, 23, 67, 22, 5621, 898, 31, 5411, 648, 576, 30, 10684, 67, 23, 67, 23, 5621, 898, 31, 5411, 648, 890, 30, 10684, 67, 23, 67, 24, 5621, 898, 31, 5411, 648, 1059, 30, 10684, 67, 23, 67, 25, 5621, 898, 31, 5411, 648, 1381, 30, 10684, 67, 23, 67, 26, 5621, 898, 31, 5411, 648, 1666, 30, 10684, 67, 23, 67, 27, 5621, 898, 31, 5411, 648, 2371, 30, 10684, 67, 23, 67, 28, 5621, 898, 31, 5411, 648, 1725, 30, 10684, 67, 23, 67, 29, 5621, 898, 31, 5411, 648, 2468, 30, 10684, 67, 23, 67, 2163, 5621, 898, 31, 5411, 648, 1728, 30, 10684, 67, 23, 67, 2499, 5621, 898, 31, 5411, 648, 4648, 30, 10684, 67, 23, 67, 2138, 5621, 898, 31, 5411, 648, 2593, 30, 10684, 67, 23, 67, 3437, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 918, 10684, 67, 455, 4169, 67, 2316, 1435, 288, 565, 10684, 67, 455, 4169, 273, 638, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 17160, 31, 277, 27245, 288, 1377, 804, 46, 10125, 293, 273, 10684, 67, 22, 67, 3797, 2387, 63, 77, 15533, 1377, 741, 288, 3639, 309, 261, 84, 18, 4507, 405, 10684, 67, 4507, 13, 288, 1850, 10684, 67, 11821, 273, 293, 18, 3175, 31, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 293, 18, 3645, 31, 1850, 1620, 261, 77, 13, 288, 5411, 648, 374, 30, 10684, 67, 23, 67, 21, 5621, 898, 31, 5411, 648, 404, 30, 10684, 67, 23, 67, 22, 5621, 898, 31, 5411, 2 ]
m3InitialRotation.setIdentity();
Matrix3f m3 = new Matrix3f(); m3.setIdentity(); selection.setOrientation(m3);
public void reset() { m3InitialRotation.setIdentity(); aaRotation.angle = 0; setPassive(); //MainFrame.getInstance().getJPatchScreen().update_all(); }
9769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9769/602d2067e36ea0240bbe0c694fe4bca9afa9d6b7/RotateTool.java/clean/jpatch/src/jpatch/boundary/tools/RotateTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2715, 1435, 288, 202, 202, 81, 23, 4435, 14032, 18, 542, 4334, 5621, 202, 202, 7598, 14032, 18, 4341, 273, 374, 31, 202, 202, 542, 6433, 688, 5621, 202, 202, 759, 6376, 3219, 18, 588, 1442, 7675, 588, 46, 7332, 7956, 7675, 2725, 67, 454, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2715, 1435, 288, 202, 202, 81, 23, 4435, 14032, 18, 542, 4334, 5621, 202, 202, 7598, 14032, 18, 4341, 273, 374, 31, 202, 202, 542, 6433, 688, 5621, 202, 202, 759, 6376, 3219, 18, 588, 1442, 7675, 588, 46, 7332, 7956, 7675, 2725, 67, 454, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean targetMissingOrOlder = !artifactTarget.exists() || artifactTarget.lastModified() < artifactSource.lastModified();
boolean targetMissingOrOlder = !artifactTarget.exists() || artifactTarget.lastModified() < artifactSource.lastModified();
private void rewriteArtifactsAndPoms( List artifacts, ArtifactRepository sourceRepo, ArtifactRepository targetRepo, RepositoryCleanerConfiguration configuration, File reportsBase, File sourceRepositoryBase, File targetRepositoryBase, FileReporter repoReporter ) throws Exception { Logger logger = getLogger(); ArtifactPomRewriter artifactPomRewriter = null; try { logger.info( "Rewriting up to " + artifacts.size() + " artifacts (Should be " + ( artifacts.size() * 2 ) + " rewrites including POMs)." ); int actualRewriteCount = 0; for ( Iterator it = artifacts.iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); RewriteTransaction transaction = new RewriteTransaction( artifact ); String artifactReportPath = buildArtifactReportPath( artifact ); FileReporter artifactReporter = null; try { artifactReporter = new FileReporter( reportsBase, artifactReportPath ); boolean errorOccurred = false; File artifactSource = new File( sourceRepo.getBasedir(), sourceRepo.pathOf( artifact ) ); File artifactTarget = new File( targetRepo.getBasedir(), targetRepo.pathOf( artifact ).replace('+', '-') ); transaction.addFile( artifactTarget ); artifact.setFile( artifactSource ); boolean targetMissingOrOlder = !artifactTarget.exists() || artifactTarget.lastModified() < artifactSource.lastModified(); if ( artifactSource.exists() && ( configuration.force() || targetMissingOrOlder ) ) { actualRewriteCount++; transaction.addFile( artifactTarget ); try { if ( !configuration.reportOnly() ) { if ( logger.isDebugEnabled() ) { logger.debug( "sourceRepo basedir is: \'" + sourceRepo.getBasedir() + "\'" ); logger.debug( "targetRepo basedir is: \'" + targetRepo.getBasedir() + "\'" ); } File targetParent = artifactTarget.getParentFile(); if ( !targetParent.exists() ) { transaction.addFile( targetParent ); targetParent.mkdirs(); } if ( logger.isDebugEnabled() ) { logger.debug( "Copying artifact[" + artifact.getId() + "] from \'" + artifactSource + "\' to \'" + artifactTarget + "\'." ); } copyArtifact( artifact, artifactTarget, artifactReporter ); } } catch ( Exception e ) { repoReporter.error( "Error transferring artifact[" + artifact.getId() + "] to the target repository.", e ); throw e; } if ( logger.isDebugEnabled() ) { logger.debug( "working on digest for artifact[" + artifact.getId() + "] with groupId: \'" + artifact.getGroupId() + "\'" ); } try { digestVerifier.verifyDigest( artifactSource, artifactTarget, transaction, artifactReporter, configuration.reportOnly() ); } catch ( Exception e ) { repoReporter.error( "Error verifying digest for artifact[" + artifact.getId() + "]", e ); throw e; } ArtifactMetadata pom = new ProjectMetadata( artifact ); artifactPomRewriter = (ArtifactPomRewriter) container.lookup( ArtifactPomRewriter.ROLE, configuration .getSourcePomVersion() ); File sourcePom = new File( sourceRepositoryBase, sourceRepo.pathOfMetadata( pom ) ); File targetPom = new File( targetRepositoryBase, targetRepo.pathOfMetadata( pom ).replace('+', '-') ); transaction.addFile( targetPom ); File bridgedTargetPom = new File( targetRepositoryBase, bridgingLayout.pathOfMetadata( pom ).replace('+', '-') ); transaction.addFile( bridgedTargetPom ); try { artifactPomRewriter.rewrite( artifact, sourcePom, targetPom, artifactReporter, configuration.reportOnly() ); boolean wroteBridge = bridgePomLocations( targetPom, bridgedTargetPom, artifactReporter ); digestVerifier.verifyDigest( sourcePom, targetPom, transaction, artifactReporter, configuration.reportOnly() ); if(wroteBridge) { digestVerifier.verifyDigest( sourcePom, bridgedTargetPom, transaction, artifactReporter, configuration.reportOnly() ); } } catch ( Exception e ) { repoReporter.error( "Error rewriting POM for artifact[" + artifact.getId() + "] into the target repository.\n Error message: " + e.getMessage() ); } } else if ( !targetMissingOrOlder ) { artifactReporter.warn( "Target file for artifact is present and not stale. (Artifact: \'" + artifact.getId() + "\' in path: \'" + artifactSource + "\' with target path: " + artifactTarget + ")." ); } else { artifactReporter.error( "Cannot find source file for artifact: \'" + artifact.getId() + "\' under path: \'" + artifactSource + "\'" ); } if ( artifactReporter.hasError() ) { repoReporter.warn( "Error(s) occurred while rewriting artifact: \'" + artifact.getId() + "\' or its POM." ); } } catch ( Exception e ) { if ( !configuration.force() ) { try { transaction.rollback(); } catch ( RollbackException re ) { repoReporter.error( "Error rolling back conversion transaction.", re ); } } artifactReporter.error( "Error while rewriting file or POM for artifact: \'" + artifact.getId() + "\'. See report at: \'" + artifactReportPath + "\'.", e ); } finally { if ( artifactReporter != null ) { artifactReporter.close(); } } } logger.info( "Actual number of artifacts rewritten: " + actualRewriteCount + " (" + ( actualRewriteCount * 2 ) + " including POMs)." ); } finally { if ( artifactPomRewriter != null ) { container.release( artifactPomRewriter ); } } }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/6e51d420ed174d20446e7387dab144f9c1a9eed0/RepositoryCleaner.java/buggy/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10738, 16981, 1876, 52, 25390, 12, 987, 16259, 16, 14022, 3305, 1084, 8791, 16, 14022, 3305, 1018, 8791, 16, 29159, 6281, 7605, 264, 1750, 1664, 16, 1387, 10557, 2171, 16, 29159, 1387, 1084, 3305, 2171, 16, 1387, 1018, 3305, 2171, 16, 1387, 13289, 3538, 13289, 262, 3639, 1216, 1185, 565, 288, 3639, 4242, 1194, 273, 7156, 5621, 3639, 14022, 52, 362, 17631, 1091, 6462, 52, 362, 17631, 1091, 273, 446, 31, 3639, 775, 3639, 288, 5411, 1194, 18, 1376, 12, 315, 17631, 583, 310, 731, 358, 315, 397, 16259, 18, 1467, 1435, 397, 315, 16259, 261, 14309, 506, 315, 397, 261, 16259, 18, 1467, 1435, 380, 576, 262, 7734, 397, 315, 283, 13284, 6508, 453, 1872, 87, 14944, 11272, 5411, 509, 3214, 19618, 1380, 273, 374, 31, 5411, 364, 261, 4498, 518, 273, 16259, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 14022, 6462, 273, 261, 7581, 13, 518, 18, 4285, 5621, 7734, 17851, 3342, 2492, 273, 394, 17851, 3342, 12, 6462, 11272, 7734, 514, 6462, 4820, 743, 273, 1361, 7581, 4820, 743, 12, 6462, 11272, 7734, 1387, 13289, 6462, 13289, 273, 446, 31, 7734, 775, 7734, 288, 10792, 6462, 13289, 273, 394, 1387, 13289, 12, 10557, 2171, 16, 6462, 4820, 743, 11272, 10792, 1250, 555, 30096, 273, 629, 31, 10792, 1387, 6462, 1830, 273, 394, 1387, 12, 1084, 8791, 18, 588, 2171, 1214, 9334, 1084, 8791, 18, 803, 951, 12, 6462, 262, 11272, 10792, 1387, 6462, 2326, 273, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10738, 16981, 1876, 52, 25390, 12, 987, 16259, 16, 14022, 3305, 1084, 8791, 16, 14022, 3305, 1018, 8791, 16, 29159, 6281, 7605, 264, 1750, 1664, 16, 1387, 10557, 2171, 16, 29159, 1387, 1084, 3305, 2171, 16, 1387, 1018, 3305, 2171, 16, 1387, 13289, 3538, 13289, 262, 3639, 1216, 1185, 565, 288, 3639, 4242, 1194, 273, 7156, 5621, 3639, 14022, 52, 362, 17631, 1091, 6462, 52, 362, 17631, 1091, 273, 446, 31, 3639, 775, 3639, 288, 5411, 1194, 18, 1376, 12, 315, 17631, 583, 310, 731, 358, 315, 397, 16259, 18, 1467, 1435, 397, 315, 16259, 261, 14309, 506, 315, 397, 261, 16259, 18, 1467, 1435, 380, 576, 262, 7734, 397, 315, 283, 13284, 6508, 453, 1872, 2 ]
print("%op " + impl.TypeName(type.getId()) + " " + operator_name);
String name; if(jtype) { name = impl.OperatorType( StringConversions.makeIdentifier(type.getId()), StringConversions.makeIdentifier(alt.getId())); } else { name = impl.OperatorName(alt.getId()); } print("%op " + impl.TypeName(type.getId()) + " " + name);
private void genTomAltOperator(Type type, Alternative alt) { String class_name = impl.TypeName(type.getId()); String operator_name = impl.OperatorName(alt.getId()); print("%op " + impl.TypeName(type.getId()) + " " + operator_name); Iterator fields = type.altFieldIterator(alt.getId()); if (fields.hasNext()) { print("("); while (fields.hasNext()) { Field field = (Field) fields.next(); String field_id = impl.FieldName(field.getId()); String field_class = impl.FieldType(field.getType()); String field_type = field_class; print(field_id + ":" + field_type); if (fields.hasNext()) { print(", "); } } print(")"); } println(" {"); println(" fsym {" + impl.OperatorFSym(class_name, operator_name) + "}"); println(" is_fsym(t) { " + impl.OperatorIsFSym("t", class_name, operator_name) + "}"); fields = type.altFieldIterator(alt.getId()); while (fields.hasNext()) { Field field = (Field) fields.next(); String field_id = StringConversions.makeIdentifier(field.getId()); println(" get_slot("+ field_id + ",t) { " + impl.OperatorGetSlot("t", class_name, field_id) + "}"); } String arg = "("; int arity = type.getAltArity(alt); for (int i = 0; i < arity; i++) { arg += ("t" + i); if (i < arity - 1) { arg += ", "; } } arg += ")"; println(" make"+ arg+ " { " + impl.OperatorMake(class_name, operator_name, arg) + "}"); println("}"); println(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/c3f6ce4ae0614c0b5e62f51e451983a76b053b32/TomSignatureGenerator.java/buggy/apigen/apigen/gen/tom/TomSignatureGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 56, 362, 10655, 5592, 12, 559, 618, 16, 21498, 1535, 3770, 13, 288, 202, 202, 780, 667, 67, 529, 273, 9380, 18, 7947, 12, 723, 18, 26321, 10663, 202, 202, 780, 3726, 67, 529, 273, 9380, 18, 5592, 461, 12, 2390, 18, 26321, 10663, 1082, 202, 1188, 27188, 556, 315, 397, 9380, 18, 7947, 12, 723, 18, 26321, 10756, 397, 315, 315, 397, 3726, 67, 529, 1769, 202, 202, 3198, 1466, 273, 618, 18, 2390, 974, 3198, 12, 2390, 18, 26321, 10663, 202, 202, 430, 261, 2821, 18, 5332, 2134, 10756, 288, 1082, 202, 1188, 2932, 2932, 1769, 1082, 202, 17523, 261, 2821, 18, 5332, 2134, 10756, 288, 9506, 202, 974, 652, 273, 261, 974, 13, 1466, 18, 4285, 5621, 9506, 202, 780, 652, 67, 350, 273, 9380, 18, 7287, 12, 1518, 18, 26321, 10663, 9506, 202, 780, 652, 67, 1106, 273, 9380, 18, 13715, 12, 1518, 18, 588, 559, 10663, 9506, 202, 780, 652, 67, 723, 273, 652, 67, 1106, 31, 9506, 202, 1188, 12, 1518, 67, 350, 397, 6153, 397, 652, 67, 723, 1769, 9506, 202, 430, 261, 2821, 18, 5332, 2134, 10756, 288, 6862, 202, 1188, 2932, 16, 315, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 1188, 2932, 2225, 1769, 202, 202, 97, 202, 202, 8222, 2932, 288, 8863, 202, 202, 8222, 2932, 225, 2662, 2942, 12528, 397, 9380, 18, 5592, 4931, 2942, 12, 1106, 67, 529, 16, 3726, 67, 529, 13, 397, 11883, 1769, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 56, 362, 10655, 5592, 12, 559, 618, 16, 21498, 1535, 3770, 13, 288, 202, 202, 780, 667, 67, 529, 273, 9380, 18, 7947, 12, 723, 18, 26321, 10663, 202, 202, 780, 3726, 67, 529, 273, 9380, 18, 5592, 461, 12, 2390, 18, 26321, 10663, 1082, 202, 1188, 27188, 556, 315, 397, 9380, 18, 7947, 12, 723, 18, 26321, 10756, 397, 315, 315, 397, 3726, 67, 529, 1769, 202, 202, 3198, 1466, 273, 618, 18, 2390, 974, 3198, 12, 2390, 18, 26321, 10663, 202, 202, 430, 261, 2821, 18, 5332, 2134, 10756, 288, 1082, 202, 1188, 2932, 2932, 1769, 1082, 202, 17523, 261, 2821, 18, 5332, 2134, 10756, 288, 9506, 202, 974, 652, 273, 261, 2 ]
public int length() { return xs.length; }
public int length() { return value.length; }
public int length() { return xs.length; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/buggy/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 769, 1435, 288, 327, 9280, 18, 2469, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 769, 1435, 288, 327, 9280, 18, 2469, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected JToolBar getRangeRingGUI() { if (rrToolBar == null) { rrToolBar = new GridBagToolBar(); rrToolBar.setFloatable(false); rrToolBar.setMargin(new Insets(0, 1, 0, 1)); // JPanel intervalPanel = // PaletteHelper.createPaletteJPanel("Interval"); intervalField = new JTextField(Integer.toString(((OMRangeRings) circle).getInterval()), 5); intervalField.setMargin(new Insets(0, 1, 0, 1)); intervalField.setHorizontalAlignment(JTextField.RIGHT); intervalField.setToolTipText(i18n.get(this, "intervalField.tooltip" , "Value for interval between rings.")); intervalField.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { updateInterval(((JTextField) (ae.getSource())).getText()); } }); rrToolBar.add(intervalField); // JSlider intervalSlide = new JSlider( // JSlider.HORIZONTAL, 1/*min*/, 200/*max*/, // ((OMRangeRings)circle).getInterval()/*inital*/); // java.util.Hashtable dict = new java.util.Hashtable(); // dict.put(new Integer(1), new JLabel("1")); // dict.put(new Integer(50), new JLabel("50")); // dict.put(new Integer(100), new JLabel("100")); // dict.put(new Integer(150), new JLabel("150")); // dict.put(new Integer(200), new JLabel("200")); // intervalSlide.setLabelTable(dict); // intervalSlide.setPaintLabels(true); // intervalSlide.setMajorTickSpacing(10); // intervalSlide.setPaintTicks(true); // intervalSlide.setSnapToTicks(false); // intervalSlide.addChangeListener(new ChangeListener() { // public void stateChanged(ChangeEvent ce) { // JSlider slider = (JSlider) ce.getSource(); // if (slider.getValueIsAdjusting()) { // ((OMRangeRings)circle).setInterval(slider.getValue()); // } // } // }); Length[] available = Length.getAvailable(); String[] unitStrings = new String[available.length + 1]; String current = null; Length l = ((OMRangeRings) circle).getIntervalUnits(); if (l != null) { current = l.toString(); } int currentIndex = unitStrings.length - 1; for (int i = 0; i < available.length; i++) { unitStrings[i] = available[i].toString(); if (current != null && unitStrings[i].equals(current)) { currentIndex = i; } } unitStrings[unitStrings.length - 1] = i18n.get(this, "unitStrings.concentric", "concentric"); JComboBox unitList = new JComboBox(unitStrings); unitList.setBorder(new javax.swing.border.EmptyBorder(0, 1, 0, 1)); unitList.setSelectedIndex(currentIndex); unitList.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox jcb = (JComboBox) e.getSource(); ((OMRangeRings) circle).setIntervalUnits(Length.get((String) jcb.getSelectedItem())); updateInterval(intervalField.getText()); } }); rrToolBar.add(unitList); } return rrToolBar; }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/0851512d322a9d12f5398b0f4c5bfa0a551b01e7/EditableOMRangeRings.java/clean/src/openmap/com/bbn/openmap/omGraphics/EditableOMRangeRings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 6364, 5190, 22373, 10369, 43, 5370, 1435, 288, 3639, 309, 261, 523, 6364, 5190, 422, 446, 13, 288, 5411, 8354, 6364, 5190, 273, 394, 7145, 5013, 6364, 5190, 5621, 5411, 8354, 6364, 5190, 18, 542, 4723, 429, 12, 5743, 1769, 5411, 8354, 6364, 5190, 18, 542, 9524, 12, 2704, 22300, 12, 20, 16, 404, 16, 374, 16, 404, 10019, 5411, 368, 225, 24048, 3673, 5537, 273, 5411, 368, 453, 8786, 2276, 18, 2640, 25863, 46, 5537, 2932, 4006, 8863, 5411, 3673, 974, 273, 394, 804, 16157, 12, 4522, 18, 10492, 12443, 12, 1872, 2655, 54, 899, 13, 12470, 2934, 588, 4006, 1435, 3631, 1381, 1769, 5411, 3673, 974, 18, 542, 9524, 12, 2704, 22300, 12, 20, 16, 404, 16, 374, 16, 404, 10019, 5411, 3673, 974, 18, 542, 14457, 11535, 12, 46, 16157, 18, 11847, 1769, 5411, 3673, 974, 18, 542, 29250, 1528, 12, 77, 2643, 82, 18, 588, 12, 2211, 16, 315, 6624, 974, 18, 19798, 6, 2868, 269, 315, 620, 364, 3673, 3086, 26537, 1199, 10019, 5411, 3673, 974, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 7734, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 10792, 1089, 4006, 12443, 12, 46, 16157, 13, 261, 8906, 18, 588, 1830, 10756, 2934, 588, 1528, 10663, 7734, 289, 5411, 15549, 5411, 8354, 6364, 5190, 18, 1289, 12, 6624, 974, 1769, 5411, 368, 225, 804, 21824, 3673, 21068, 273, 394, 804, 21824, 12, 5411, 368, 1377, 804, 21824, 18, 44, 20344, 16, 404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 6364, 5190, 22373, 10369, 43, 5370, 1435, 288, 3639, 309, 261, 523, 6364, 5190, 422, 446, 13, 288, 5411, 8354, 6364, 5190, 273, 394, 7145, 5013, 6364, 5190, 5621, 5411, 8354, 6364, 5190, 18, 542, 4723, 429, 12, 5743, 1769, 5411, 8354, 6364, 5190, 18, 542, 9524, 12, 2704, 22300, 12, 20, 16, 404, 16, 374, 16, 404, 10019, 5411, 368, 225, 24048, 3673, 5537, 273, 5411, 368, 453, 8786, 2276, 18, 2640, 25863, 46, 5537, 2932, 4006, 8863, 5411, 3673, 974, 273, 394, 804, 16157, 12, 4522, 18, 10492, 12443, 12, 1872, 2655, 54, 899, 13, 12470, 2934, 588, 4006, 1435, 3631, 1381, 1769, 5411, 3673, 974, 18, 542, 9524, 12, 2704, 22300, 12, 20, 2 ]
runtime.defineReadonlyVariable("$*", argumentArray);
runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray));
private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConstant("ARGV", argumentArray); defineGlobal(runtime, "$-p", commandline.assumePrinting); defineGlobal(runtime, "$-n", commandline.assumeLoop); defineGlobal(runtime, "$-a", commandline.sDoSplit); defineGlobal(runtime, "$-l", commandline.processLineEnds); runtime.defineReadonlyVariable("$*", argumentArray); runtime.defineVariable(new RubyGlobal.StringGlobalVariable(runtime, "$0", RubyString.newString(runtime, filename))); runtime.getLoadService().init(runtime, commandline.loadPaths()); Iterator iter = commandline.requiredLibraries().iterator(); while (iter.hasNext()) { String scriptName = (String) iter.next(); KernelModule.require(runtime.getTopSelf(), RubyString.newString(runtime, scriptName)); } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/05c7de156620b4e1926ea77f476287db1b42b4cc/Main.java/clean/src/org/jruby/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4046, 5576, 12, 54, 10340, 3099, 16, 514, 1544, 13, 288, 3639, 15908, 10340, 921, 1237, 1076, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 9448, 16, 28305, 18, 4263, 4628, 1769, 3639, 3099, 18, 542, 14489, 12, 3076, 1369, 18, 11369, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 21900, 3113, 28305, 18, 11369, 1769, 3639, 3099, 18, 11255, 5160, 6902, 2932, 10973, 58, 3113, 1237, 1076, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 84, 3113, 28305, 18, 428, 2066, 5108, 310, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 82, 3113, 28305, 18, 428, 2066, 6452, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 69, 3113, 28305, 18, 87, 3244, 5521, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 80, 3113, 28305, 18, 2567, 1670, 24980, 1769, 3639, 3099, 18, 588, 5160, 6158, 7675, 11255, 1994, 3700, 2932, 8, 14, 3113, 394, 1445, 8235, 12, 3446, 1076, 10019, 3639, 3099, 18, 11255, 3092, 12, 2704, 19817, 5160, 18, 780, 5160, 3092, 12, 9448, 16, 4662, 20, 3113, 19817, 780, 18, 2704, 780, 12, 9448, 16, 1544, 3719, 1769, 3639, 3099, 18, 588, 2563, 1179, 7675, 2738, 12, 9448, 16, 28305, 18, 945, 4466, 10663, 3639, 4498, 1400, 273, 28305, 18, 4718, 31909, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 514, 31008, 273, 261, 780, 13, 1400, 18, 4285, 5621, 5411, 14556, 3120, 18, 6528, 12, 9448, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4046, 5576, 12, 54, 10340, 3099, 16, 514, 1544, 13, 288, 3639, 15908, 10340, 921, 1237, 1076, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 9448, 16, 28305, 18, 4263, 4628, 1769, 3639, 3099, 18, 542, 14489, 12, 3076, 1369, 18, 11369, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 21900, 3113, 28305, 18, 11369, 1769, 3639, 3099, 18, 11255, 5160, 6902, 2932, 10973, 58, 3113, 1237, 1076, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 84, 3113, 28305, 18, 428, 2066, 5108, 310, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 82, 3113, 28305, 18, 428, 2066, 6452, 1769, 3639, 4426, 5160, 12, 9448, 16, 4662, 17, 69, 3113, 28305, 2 ]
KoLmafia.updateDisplay( "Initializing data for " + username + "..." );
KoLmafia.updateDisplay( "Initializing session for " + username + "..." );
public boolean executeLogin() { sessionID = null; KoLmafia.updateDisplay( "Sending login request..." ); super.run(); if ( responseCode == 302 && redirectLocation.equals( "maint.php" ) ) { // Nightly maintenance, so KoLmafia should retry. // Therefore, return true. waitTime = ROLLOVER_WAIT; return true; } else if ( responseCode == 302 && redirectLocation.startsWith( "main" ) ) { KoLmafia.updateDisplay( "Login successful. Saving session ID..." ); if ( redirectLocation.equals( "main_c.html" ) ) KoLRequest.isCompactMode = true; // If the login is successful, you notify the client // of success. But first, if there was a desire to // save the password, do so here. if ( this.savePassword ) KoLmafia.addSaveState( username, password ); else KoLmafia.removeSaveState( username ); KoLmafia.forceContinue(); sessionID = formConnection.getHeaderField( "Set-Cookie" ); KoLmafia.updateDisplay( "Initializing data for " + username + "..." ); client.initialize( username, this.getBreakfast, this.isQuickLogin ); return false; } else if ( responseCode == 302 ) { // It's possible that KoL will eventually make the redirect // the way it used to be, but enforce the redirect. If this // happens, then validate here. Matcher matcher = REDIRECT_PATTERN.matcher( redirectLocation ); if ( matcher.find() ) { redirectLocation = matcher.group(); setLoginServer( matcher.group(1) ); return true; } } else if ( responseText.indexOf( "Please wait a minute" ) != -1 ) { // Ooh, logged in too fast. KoLmafia should recognize this and // try again automatically in 75 seconds. waitTime = STANDARD_WAIT; return true; } else if ( responseText.indexOf( "Please wait fifteen minutes" ) != -1 ) { // Ooh, logged in too fast. KoLmafia should recognize this and // try again automatically in 1000 seconds. waitTime = 1000; return true; } else if ( responseText.indexOf( "login.php" ) != -1 ) { // KoL sometimes switches servers while logging in. It returns a hidden form // with responseCode 200. // <html> // <body> // <form name=formredirect method=post action="http://www.kingdomofloathing.com/login.php"> // <input type=hidden name=loginname value="xxx"> // <input type=hidden name=loggingin value="Yup."> // <input type=hidden name=password value="xxx"> // </form> // </body> // </html>Redirecting to www. Matcher matcher = REDIRECT_PATTERN.matcher( responseText ); if ( matcher.find() ) { redirectLocation = matcher.group(); setLoginServer( matcher.group(1) ); return true; } } // This means that the login failed. Therefore, the user should // re-input their username and password. KoLmafia.updateDisplay( ERROR_STATE, "Login failed." ); return false; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e2012c3c660722989509ff80f67d36106c81b0ff/LoginRequest.java/buggy/src/net/sourceforge/kolmafia/LoginRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1836, 5358, 1435, 202, 95, 202, 202, 17255, 273, 446, 31, 202, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 315, 16322, 3925, 590, 7070, 11272, 202, 202, 9565, 18, 2681, 5621, 202, 202, 430, 261, 20407, 422, 22072, 597, 3136, 2735, 18, 14963, 12, 315, 81, 1598, 18, 2684, 6, 262, 262, 202, 202, 95, 1082, 202, 759, 423, 750, 715, 18388, 16, 1427, 1475, 83, 48, 81, 1727, 1155, 1410, 3300, 18, 1082, 202, 759, 17189, 16, 327, 638, 18, 1082, 202, 7048, 950, 273, 534, 1741, 1502, 2204, 67, 19046, 31, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 12107, 309, 261, 20407, 422, 22072, 597, 3136, 2735, 18, 17514, 1190, 12, 315, 5254, 6, 262, 262, 202, 202, 95, 1082, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 315, 5358, 6873, 18, 225, 348, 5339, 1339, 1599, 7070, 11272, 1082, 202, 430, 261, 3136, 2735, 18, 14963, 12, 315, 5254, 67, 71, 18, 2620, 6, 262, 262, 9506, 202, 47, 83, 48, 691, 18, 291, 16863, 2309, 273, 638, 31, 1082, 202, 759, 971, 326, 3925, 353, 6873, 16, 1846, 5066, 326, 1004, 1082, 202, 759, 434, 2216, 18, 225, 12484, 1122, 16, 309, 1915, 1703, 279, 2832, 577, 358, 1082, 202, 759, 1923, 326, 2201, 16, 741, 1427, 2674, 18, 1082, 202, 430, 261, 333, 18, 5688, 3913, 262, 9506, 202, 47, 83, 48, 81, 1727, 1155, 18, 1289, 4755, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1836, 5358, 1435, 202, 95, 202, 202, 17255, 273, 446, 31, 202, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 315, 16322, 3925, 590, 7070, 11272, 202, 202, 9565, 18, 2681, 5621, 202, 202, 430, 261, 20407, 422, 22072, 597, 3136, 2735, 18, 14963, 12, 315, 81, 1598, 18, 2684, 6, 262, 262, 202, 202, 95, 1082, 202, 759, 423, 750, 715, 18388, 16, 1427, 1475, 83, 48, 81, 1727, 1155, 1410, 3300, 18, 1082, 202, 759, 17189, 16, 327, 638, 18, 1082, 202, 7048, 950, 273, 534, 1741, 1502, 2204, 67, 19046, 31, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 12107, 309, 261, 20407, 422, 22072, 597, 3136, 2 ]
push(new SparseInstance(instance.weight(), vals));
inst = new SparseInstance(instance.weight(), vals);
public boolean input(Instance instance) throws Exception { if (getInputFormat() == null) { throw new Exception("No input instance format defined"); } if (m_NewBatch) { resetQueue(); m_NewBatch = false; } double[] vals = new double[instance.numAttributes()+1]; for(int i = 0; i < instance.numAttributes(); i++) { if (instance.isMissing(i)) { vals[i] = Instance.missingValue(); } else { vals[i] = instance.value(i); } } evaluateExpression(vals); if (instance instanceof SparseInstance) { push(new SparseInstance(instance.weight(), vals)); } else { push(new Instance(instance.weight(), vals)); } return true; }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/18f2e5861379830b993ab3f6892fcf72a8e6cc7d/AttributeExpressionFilter.java/clean/weka/filters/AttributeExpressionFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 810, 12, 1442, 791, 13, 1216, 1185, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67, 1908, 4497, 13, 288, 1377, 2715, 3183, 5621, 1377, 312, 67, 1908, 4497, 273, 629, 31, 565, 289, 565, 1645, 8526, 5773, 273, 394, 1645, 63, 1336, 18, 2107, 2498, 1435, 15, 21, 15533, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 791, 18, 2107, 2498, 5621, 277, 27245, 288, 1377, 309, 261, 1336, 18, 291, 4841, 12, 77, 3719, 288, 202, 4524, 63, 77, 65, 273, 5180, 18, 7337, 620, 5621, 1377, 289, 469, 288, 202, 4524, 63, 77, 65, 273, 791, 18, 1132, 12, 77, 1769, 1377, 289, 565, 289, 565, 5956, 2300, 12, 4524, 1769, 565, 309, 261, 1336, 1276, 16473, 1442, 13, 288, 1377, 1804, 273, 394, 16473, 1442, 12, 1336, 18, 4865, 9334, 5773, 1769, 565, 289, 469, 288, 1377, 1817, 12, 2704, 5180, 12, 1336, 18, 4865, 9334, 5773, 10019, 565, 289, 565, 327, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 810, 12, 1442, 791, 13, 1216, 1185, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67, 1908, 4497, 13, 288, 1377, 2715, 3183, 5621, 1377, 312, 67, 1908, 4497, 273, 629, 31, 565, 289, 565, 1645, 8526, 5773, 273, 394, 1645, 63, 1336, 18, 2107, 2498, 1435, 15, 21, 15533, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 791, 18, 2107, 2498, 5621, 277, 27245, 288, 1377, 309, 261, 1336, 18, 291, 4841, 12, 77, 3719, 288, 202, 4524, 63, 77, 65, 273, 5180, 18, 7337, 620, 5621, 1377, 289, 469, 288, 202, 2 ]
fSearchForDuplicateFiles.setLabelText( "Search for duplicate files" ); */
fSearchForDuplicateFiles.setLabelText( "Search for duplicate source files" ); fSearchForDuplicateFiles.setDialogFieldListener( new IDialogFieldListener() { public void dialogFieldChanged( DialogField field ) { doCheckStateChanged(); } } );
public SourceLookupBlock() { String[] generatedSourceButtonLabels = new String[] { /* 0 */ "Select All", /* 1 */ "Deselect All", }; String[] addedSourceButtonLabels = new String[] { /* 0 */ "Add...", /* 1 */ null, /* 2 */ "Up", /* 3 */ "Down", /* 4 */ null, /* 5 */ "Remove", }; IListAdapter generatedSourceAdapter = new IListAdapter() { public void customButtonPressed( DialogField field, int index ) { doGeneratedSourceButtonPressed( index ); } public void selectionChanged( DialogField field ) { doGeneratedSourceSelectionChanged(); } }; fGeneratedSourceListField = new CheckedListDialogField( generatedSourceAdapter, generatedSourceButtonLabels, new SourceLookupLabelProvider() ); fGeneratedSourceListField.setLabelText( "Generic Source Locations" ); fGeneratedSourceListField.setCheckAllButtonIndex( 0 ); fGeneratedSourceListField.setUncheckAllButtonIndex( 1 ); fGeneratedSourceListField.setDialogFieldListener( new IDialogFieldListener() { public void dialogFieldChanged( DialogField field ) { doCheckStateChanged(); } } ); IListAdapter addedSourceAdapter = new IListAdapter() { public void customButtonPressed( DialogField field, int index ) { doAddedSourceButtonPressed( index ); } public void selectionChanged( DialogField field ) { doAddedSourceSelectionChanged(); } }; fAddedSourceListField = new SourceListDialogField( addedSourceAdapter, addedSourceButtonLabels, new SourceLookupLabelProvider() ); fAddedSourceListField.setLabelText( "Additional Source Locations" ); fAddedSourceListField.setUpButtonIndex( 2 ); fAddedSourceListField.setDownButtonIndex( 3 ); fAddedSourceListField.setRemoveButtonIndex( 5 );/* fSearchForDuplicateFiles = new SelectionButtonDialogField( SWT.CHECK ); fSearchForDuplicateFiles.setLabelText( "Search for duplicate files" );*/ }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d253f76e29b700903103e3f97728e4bd6a615ed4/SourceLookupBlock.java/clean/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4998, 6609, 1768, 1435, 202, 95, 202, 202, 780, 8526, 4374, 1830, 3616, 5888, 273, 394, 514, 8526, 3196, 202, 95, 1082, 202, 20308, 374, 1195, 315, 3391, 4826, 3113, 1082, 202, 20308, 404, 1195, 315, 6305, 13759, 4826, 3113, 202, 202, 20451, 202, 202, 780, 8526, 3096, 1830, 3616, 5888, 273, 394, 514, 8526, 3196, 202, 95, 1082, 202, 20308, 374, 1195, 315, 986, 7070, 16, 1082, 202, 20308, 404, 1195, 446, 16, 1082, 202, 20308, 576, 1195, 315, 1211, 3113, 1082, 202, 20308, 890, 1195, 315, 4164, 3113, 1082, 202, 20308, 1059, 1195, 446, 16, 1082, 202, 20308, 1381, 1195, 315, 3288, 3113, 202, 202, 20451, 202, 202, 45, 682, 4216, 4374, 1830, 4216, 273, 394, 467, 682, 4216, 1435, 6862, 6862, 6862, 202, 95, 6862, 6862, 25083, 202, 482, 918, 1679, 3616, 24624, 12, 17242, 974, 652, 16, 509, 770, 262, 6862, 6862, 25083, 202, 95, 6862, 6862, 6862, 1082, 202, 2896, 7823, 1830, 3616, 24624, 12, 770, 11272, 6862, 6862, 25083, 202, 97, 6862, 6862, 6862, 1082, 202, 482, 918, 4421, 5033, 12, 17242, 974, 652, 262, 6862, 6862, 25083, 202, 95, 6862, 6862, 6862, 1082, 202, 2896, 7823, 1830, 6233, 5033, 5621, 6862, 6862, 25083, 202, 97, 6862, 6862, 6862, 202, 20451, 202, 202, 74, 7823, 1830, 682, 974, 273, 394, 2073, 18073, 6353, 974, 12, 4374, 1830, 4216, 16, 4374, 1830, 3616, 5888, 16, 394, 4998, 6609, 2224, 2249, 1435, 11272, 202, 202, 74, 7823, 1830, 682, 974, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4998, 6609, 1768, 1435, 202, 95, 202, 202, 780, 8526, 4374, 1830, 3616, 5888, 273, 394, 514, 8526, 3196, 202, 95, 1082, 202, 20308, 374, 1195, 315, 3391, 4826, 3113, 1082, 202, 20308, 404, 1195, 315, 6305, 13759, 4826, 3113, 202, 202, 20451, 202, 202, 780, 8526, 3096, 1830, 3616, 5888, 273, 394, 514, 8526, 3196, 202, 95, 1082, 202, 20308, 374, 1195, 315, 986, 7070, 16, 1082, 202, 20308, 404, 1195, 446, 16, 1082, 202, 20308, 576, 1195, 315, 1211, 3113, 1082, 202, 20308, 890, 1195, 315, 4164, 3113, 1082, 202, 20308, 1059, 1195, 446, 16, 1082, 202, 20308, 1381, 1195, 315, 3288, 3113, 202, 202, 20451, 202, 202, 45, 682, 4216, 4374, 1830, 4216, 2 ]
MessageDialog.openError(Display.getDefault().getActiveShell(), MylarTaskListPlugin.TITLE_DIALOG, "Communication error during query synchronization. Error reported:\n\n" + e.getMessage());
MessageDialog.openError(Display.getDefault().getActiveShell(), MylarTaskListPlugin.TITLE_DIALOG, "Communication error during query synchronization. Error reported:\n\n" + e.getMessage());
public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), MylarTaskListPlugin.TITLE_DIALOG, "Communication error during query synchronization. Error reported:\n\n" + e.getMessage()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1e68e51b0aaf08b6aac49f3da6bda5ddc01eeb08/AbstractRepositoryConnector.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/AbstractRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 1079, 6353, 18, 3190, 668, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 9334, 6862, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 14123, 67, 2565, 18683, 16, 6862, 1082, 202, 6, 25219, 555, 4982, 843, 24488, 18, 1068, 14010, 5581, 82, 64, 82, 6, 6862, 6862, 202, 15, 425, 18, 24906, 10663, 9506, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 1079, 6353, 18, 3190, 668, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 9334, 6862, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 14123, 67, 2565, 18683, 16, 6862, 1082, 202, 6, 25219, 555, 4982, 843, 24488, 18, 1068, 14010, 5581, 82, 64, 82, 6, 6862, 6862, 202, 15, 425, 18, 24906, 10663, 9506, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void conditionalExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:541:17: ( logicalOrExpression ( QUESTION assignmentExpression COLON conditionalExpression )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:541:17: logicalOrExpression ( QUESTION assignmentExpression COLON conditionalExpression )? { following.push(FOLLOW_logicalOrExpression_in_conditionalExpression2121); logicalOrExpression(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:542:17: ( QUESTION assignmentExpression COLON conditionalExpression )? int alt52=2; int LA52_0 = input.LA(1); if ( LA52_0==QUESTION ) { alt52=1; } else if ( LA52_0==RBRACK||(LA52_0>=SEMI && LA52_0<=COMMA)||(LA52_0>=RPAREN && LA52_0<=BOR_ASSIGN) ) { alt52=2; } else { NoViableAltException nvae = new NoViableAltException("542:17: ( QUESTION assignmentExpression COLON conditionalExpression )?", 52, 0, input); throw nvae; } switch (alt52) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:542:19: QUESTION assignmentExpression COLON conditionalExpression { match(input,QUESTION,FOLLOW_QUESTION_in_conditionalExpression2127); following.push(FOLLOW_assignmentExpression_in_conditionalExpression2129); assignmentExpression(); following.pop(); match(input,COLON,FOLLOW_COLON_in_conditionalExpression2131); following.push(FOLLOW_conditionalExpression_in_conditionalExpression2133); conditionalExpression(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11139, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 6564, 21, 30, 4033, 30, 261, 6374, 23695, 261, 23328, 882, 1146, 6661, 2300, 27856, 11139, 2300, 7851, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 6564, 21, 30, 4033, 30, 6374, 23695, 261, 23328, 882, 1146, 6661, 2300, 27856, 11139, 2300, 7851, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 20300, 23695, 67, 267, 67, 22019, 2300, 22, 26009, 1769, 5411, 6374, 23695, 5621, 5411, 3751, 18, 5120, 5621, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 6564, 22, 30, 4033, 30, 261, 23328, 882, 1146, 6661, 2300, 27856, 11139, 2300, 7851, 5411, 509, 3770, 9401, 33, 22, 31, 5411, 509, 2928, 9401, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 5411, 309, 261, 2928, 9401, 67, 20, 631, 4740, 1146, 262, 288, 7734, 3770, 9401, 33, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11139, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 6564, 21, 30, 4033, 30, 261, 6374, 23695, 261, 23328, 882, 1146, 6661, 2300, 27856, 11139, 2300, 7851, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 6564, 21, 30, 4033, 30, 6374, 23695, 261, 2 ]
SVNExternalInfo info = addExternal(path, url, rev);
path = PathUtil.removeLeadingSlash(path); path = PathUtil.removeTrailingSlash(path); url = PathUtil.removeTrailingSlash(url); SVNExternalInfo info = addExternal(directory, path, url, rev);
public SVNExternalInfo[] addExternals(SVNDirectory directory, String externals) throws SVNException { if (externals == null) { return null; } Collection result = new ArrayList(); for(StringTokenizer lines = new StringTokenizer(externals, "\n\r"); lines.hasMoreTokens();) { String line = lines.nextToken().trim(); if (line.length() == 0 || line.startsWith("#")) { continue; } String url = null; String path = null; long rev = -1; List parts = new ArrayList(4); for(StringTokenizer tokens = new StringTokenizer(line, " \t"); tokens.hasMoreTokens();) { String token = tokens.nextToken().trim(); parts.add(token); } if (parts.size() < 2) { continue; } path = PathUtil.append(directory.getPath(), (String) parts.get(0)); path = PathUtil.removeLeadingSlash(path); if (parts.size() == 2) { url = (String) parts.get(1); } else if (parts.size() == 3 && parts.get(1).toString().startsWith("-r")) { String revStr = parts.get(1).toString(); revStr = revStr.substring("-r".length()); if (!"HEAD".equals(revStr)) { try { rev = Long.parseLong(revStr); } catch (NumberFormatException nfe) { continue; } } url = (String) parts.get(2); } else if (parts.size() == 4 && "-r".equals(parts.get(1))) { String revStr = parts.get(2).toString(); if (!"HEAD".equals(revStr)) { try { rev = Long.parseLong(revStr); } catch (NumberFormatException nfe) { continue; } } url = (String) parts.get(4); } if (path!= null && url != null) { SVNExternalInfo info = addExternal(path, url, rev); result.add(info); } } return (SVNExternalInfo[]) result.toArray(new SVNExternalInfo[result.size()]); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/35c4eff3cdefe26dc93ca64dd0977a77801e7b74/SVNWCAccess.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/ws/log/SVNWCAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29537, 50, 6841, 966, 8526, 527, 29764, 1031, 12, 23927, 50, 2853, 1867, 16, 514, 18885, 1031, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 338, 798, 1031, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 2200, 563, 273, 394, 2407, 5621, 3639, 364, 12, 780, 10524, 2362, 273, 394, 16370, 12, 338, 798, 1031, 16, 1548, 82, 64, 86, 8863, 2362, 18, 5332, 7417, 5157, 5621, 13, 288, 5411, 514, 980, 273, 2362, 18, 4285, 1345, 7675, 5290, 5621, 5411, 309, 261, 1369, 18, 2469, 1435, 422, 374, 747, 980, 18, 17514, 1190, 2932, 17133, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 514, 880, 273, 446, 31, 5411, 514, 589, 273, 446, 31, 5411, 1525, 5588, 273, 300, 21, 31, 5411, 987, 2140, 273, 394, 2407, 12, 24, 1769, 2398, 364, 12, 780, 10524, 2430, 273, 394, 16370, 12, 1369, 16, 315, 521, 88, 8863, 2430, 18, 5332, 7417, 5157, 5621, 13, 288, 7734, 514, 1147, 273, 2430, 18, 4285, 1345, 7675, 5290, 5621, 7734, 2140, 18, 1289, 12, 2316, 1769, 5411, 289, 5411, 309, 261, 6019, 18, 1467, 1435, 411, 576, 13, 288, 7734, 1324, 31, 5411, 289, 5411, 589, 273, 2666, 1304, 18, 6923, 12, 5149, 18, 588, 743, 9334, 261, 780, 13, 2140, 18, 588, 12, 20, 10019, 5411, 589, 273, 2666, 1304, 18, 4479, 19112, 11033, 12, 803, 1769, 5411, 309, 261, 6019, 18, 1467, 1435, 422, 576, 13, 288, 7734, 880, 273, 261, 780, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29537, 50, 6841, 966, 8526, 527, 29764, 1031, 12, 23927, 50, 2853, 1867, 16, 514, 18885, 1031, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 338, 798, 1031, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 2200, 563, 273, 394, 2407, 5621, 3639, 364, 12, 780, 10524, 2362, 273, 394, 16370, 12, 338, 798, 1031, 16, 1548, 82, 64, 86, 8863, 2362, 18, 5332, 7417, 5157, 5621, 13, 288, 5411, 514, 980, 273, 2362, 18, 4285, 1345, 7675, 5290, 5621, 5411, 309, 261, 1369, 18, 2469, 1435, 422, 374, 747, 980, 18, 17514, 1190, 2932, 17133, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 514, 880, 273, 446, 31, 5411, 514, 589, 273, 2 ]
this.newManager.release( this.readerSelector );
this.newManager.release(this.readerSelector);
public void recycle() { // release reader. if ( this.readerSelector != null) { this.readerSelector.release(this.reader); this.newManager.release( this.readerSelector ); this.readerSelector = null; this.reader = null; this.readerParam = null; } // Release generator. if ( this.generatorSelector != null) { this.generatorSelector.release( this.generator ); this.newManager.release( this.generatorSelector ); this.generatorSelector = null; this.generator = null; this.generatorParam = null; } // Release transformers int size = this.transformerSelectors.size(); for (int i = 0; i < size; i++) { final ServiceSelector selector = (ServiceSelector)this.transformerSelectors.get(i); selector.release(this.transformers.get(i)); this.newManager.release( selector ); } this.transformerSelectors.clear(); this.transformers.clear(); this.transformerParams.clear(); this.transformerSources.clear(); // release serializer if ( this.serializerSelector != null ) { this.serializerSelector.release(this.serializer); this.newManager.release( this.serializerSelector ); this.serializerSelector = null; this.serializerParam = null; } this.serializer = null; this.parameters = null; this.processor = null; this.lastConsumer = null; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/95f39a584124da878be695ec780b20f0661f447b/AbstractProcessingPipeline.java/clean/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23493, 1435, 288, 3639, 368, 3992, 2949, 18, 3639, 309, 261, 333, 18, 10530, 4320, 480, 446, 13, 288, 5411, 333, 18, 10530, 4320, 18, 9340, 12, 2211, 18, 10530, 1769, 5411, 333, 18, 2704, 1318, 18, 9340, 12, 2211, 18, 10530, 4320, 1769, 5411, 333, 18, 10530, 4320, 273, 446, 31, 5411, 333, 18, 10530, 273, 446, 31, 5411, 333, 18, 10530, 786, 273, 446, 31, 3639, 289, 3639, 368, 10819, 4456, 18, 3639, 309, 261, 333, 18, 8812, 4320, 480, 446, 13, 288, 5411, 333, 18, 8812, 4320, 18, 9340, 12, 333, 18, 8812, 11272, 5411, 333, 18, 2704, 1318, 18, 9340, 12, 333, 18, 8812, 4320, 11272, 5411, 333, 18, 8812, 4320, 273, 446, 31, 5411, 333, 18, 8812, 273, 446, 31, 5411, 333, 18, 8812, 786, 273, 446, 31, 3639, 289, 3639, 368, 10819, 20522, 3639, 509, 963, 273, 333, 18, 21523, 19277, 18, 1467, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 963, 31, 277, 27245, 288, 5411, 727, 1956, 4320, 3451, 273, 7734, 261, 1179, 4320, 13, 2211, 18, 21523, 19277, 18, 588, 12, 77, 1769, 5411, 3451, 18, 9340, 12, 2211, 18, 6547, 414, 18, 588, 12, 77, 10019, 5411, 333, 18, 2704, 1318, 18, 9340, 12, 3451, 11272, 3639, 289, 3639, 333, 18, 21523, 19277, 18, 8507, 5621, 3639, 333, 18, 6547, 414, 18, 8507, 5621, 3639, 333, 18, 21523, 1370, 18, 8507, 5621, 3639, 333, 18, 21523, 8628, 18, 8507, 5621, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23493, 1435, 288, 3639, 368, 3992, 2949, 18, 3639, 309, 261, 333, 18, 10530, 4320, 480, 446, 13, 288, 5411, 333, 18, 10530, 4320, 18, 9340, 12, 2211, 18, 10530, 1769, 5411, 333, 18, 2704, 1318, 18, 9340, 12, 2211, 18, 10530, 4320, 1769, 5411, 333, 18, 10530, 4320, 273, 446, 31, 5411, 333, 18, 10530, 273, 446, 31, 5411, 333, 18, 10530, 786, 273, 446, 31, 3639, 289, 3639, 368, 10819, 4456, 18, 3639, 309, 261, 333, 18, 8812, 4320, 480, 446, 13, 288, 5411, 333, 18, 8812, 4320, 18, 9340, 12, 333, 18, 8812, 11272, 5411, 333, 18, 2704, 1318, 18, 9340, 12, 333, 18, 8812, 4320, 11272, 5411, 333, 18, 8812, 4320, 273, 2 ]
firstChild.serializeWithCache(
firstChild.serialize(
public void invokeBusinessLogic( MessageContext inMessage, MessageContext outMessage) throws AxisFault { try { ServiceDescription service = inMessage .getOperationContext() .getServiceContext() .getServiceConfig(); Parameter implInfoParam = service.getParameter("ServiceClass"); if (implInfoParam == null) { throw new AxisFault( Messages.getMessage("paramIsNotSpecified", "ServiceClass")); } InputStream groovyFileStream = service.getClassLoader().getResourceAsStream( implInfoParam.getValue().toString()); if (groovyFileStream == null) { throw new AxisFault( Messages.getMessage("groovyUnableToLoad", implInfoParam.getValue().toString())); } //look at the method name. if available this should be a groovy method OperationDescription op = inMessage.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( Messages.getMessage("notFound", "Operation")); } String methodName = op.getName().getLocalPart(); OMElement firstChild = (OMElement) inMessage.getEnvelope().getBody().getFirstOMChild(); inMessage.getEnvelope().build(); StringWriter writer = new StringWriter(); firstChild.build(); firstChild.serializeWithCache( new OMOutputImpl( XMLOutputFactory.newInstance().createXMLStreamWriter( writer))); writer.flush(); String value = writer.toString(); if (value != null) { InputStream in = new ByteArrayInputStream(value.getBytes()); GroovyClassLoader loader = new GroovyClassLoader(); Class groovyClass = loader.parseClass(groovyFileStream); GroovyObject groovyObject = (GroovyObject) groovyClass.newInstance(); Object[] arg = { in }; Object obj = groovyObject.invokeMethod(methodName, arg); if (obj == null) { throw new AxisFault(Messages.getMessage("groovyNoanswer")); } SOAPFactory fac = null; if(inMessage.isSOAP11()){ fac = OMAbstractFactory.getSOAP11Factory(); }else{ fac = OMAbstractFactory.getSOAP12Factory(); } SOAPEnvelope envelope = fac.getDefaultEnvelope(); OMNamespace ns = fac.createOMNamespace("http://soapenc/", "res"); OMElement responseElement = fac.createOMElement(methodName + "Response", ns); String outMessageString = obj.toString(); // System.out.println("outMessageString = " + outMessageString); // responseElement.setText(outMessageString); responseElement.addChild(getpayLoad(outMessageString)); envelope.getBody().addChild(responseElement); outMessage.setEnvelope(envelope); } } catch (Exception e) { throw new AxisFault(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/ed3f8f11e91d799eb86c47f4321e42c59293f9a6/GroovyReceiver.java/buggy/modules/samples/src/sample/groovy/GroovyReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4356, 13423, 20556, 12, 3639, 2350, 1042, 316, 1079, 16, 3639, 2350, 1042, 596, 1079, 13, 3639, 1216, 15509, 7083, 288, 3639, 775, 288, 5411, 1956, 3291, 1156, 273, 7734, 316, 1079, 10792, 263, 588, 2988, 1042, 1435, 10792, 263, 588, 1179, 1042, 1435, 10792, 263, 588, 1179, 809, 5621, 5411, 5498, 9380, 966, 786, 273, 1156, 18, 588, 1662, 2932, 1179, 797, 8863, 5411, 309, 261, 11299, 966, 786, 422, 446, 13, 288, 7734, 604, 394, 15509, 7083, 12, 10792, 4838, 18, 24906, 2932, 891, 28041, 17068, 3113, 315, 1179, 797, 7923, 1769, 5411, 289, 5411, 5037, 24955, 812, 1228, 273, 7734, 1156, 18, 588, 7805, 7675, 588, 1420, 17052, 12, 10792, 9380, 966, 786, 18, 24805, 7675, 10492, 10663, 5411, 309, 261, 75, 12859, 812, 1228, 422, 446, 13, 288, 7734, 604, 394, 15509, 7083, 12, 10792, 4838, 18, 24906, 2932, 75, 12859, 3370, 26883, 3113, 9380, 966, 786, 18, 24805, 7675, 10492, 1435, 10019, 5411, 289, 5411, 368, 7330, 622, 326, 707, 508, 18, 309, 2319, 333, 1410, 506, 279, 24955, 707, 5411, 4189, 3291, 1061, 273, 7734, 316, 1079, 18, 588, 2988, 1042, 7675, 588, 6558, 2988, 5621, 5411, 309, 261, 556, 422, 446, 13, 288, 7734, 604, 394, 15509, 7083, 12, 10792, 4838, 18, 24906, 2932, 902, 2043, 3113, 315, 2988, 7923, 1769, 5411, 289, 5411, 514, 4918, 273, 1061, 18, 17994, 7675, 588, 2042, 1988, 5621, 5411, 531, 12310, 15070, 273, 7734, 261, 51, 12310, 13, 316, 1079, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4356, 13423, 20556, 12, 3639, 2350, 1042, 316, 1079, 16, 3639, 2350, 1042, 596, 1079, 13, 3639, 1216, 15509, 7083, 288, 3639, 775, 288, 5411, 1956, 3291, 1156, 273, 7734, 316, 1079, 10792, 263, 588, 2988, 1042, 1435, 10792, 263, 588, 1179, 1042, 1435, 10792, 263, 588, 1179, 809, 5621, 5411, 5498, 9380, 966, 786, 273, 1156, 18, 588, 1662, 2932, 1179, 797, 8863, 5411, 309, 261, 11299, 966, 786, 422, 446, 13, 288, 7734, 604, 394, 15509, 7083, 12, 10792, 4838, 18, 24906, 2932, 891, 28041, 17068, 3113, 315, 1179, 797, 7923, 1769, 5411, 289, 5411, 5037, 24955, 812, 1228, 273, 7734, 1156, 18, 588, 7805, 7675, 588, 1420, 17052, 12, 10792, 9380, 966, 786, 2 ]
this.tabbedPane.setEnabledAt(tabbedPane.indexOfTab(messageBundle .getString("tab.title.call_tree")), false); this.tabbedPane.setEnabledAt(tabbedPane.indexOfTab(messageBundle .getString("tab.title.history")), false);
this.tabbedPane.setEnabledAt(tabbedPane .indexOfTab(messageBundle .getString("tab.title.call_tree")), false); this.tabbedPane.setEnabledAt(tabbedPane .indexOfTab(messageBundle .getString("tab.title.history")), false);
public void setUp() { try { this.theaterScrollPane = new JScrollPane(this.theatre); //theaterScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); //theaterScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); this.tabbedPane.addTab(messageBundle.getString("tab.title.theater"), theaterScrollPane); this.tabbedPane.setMnemonicAt(0, KeyEvent.VK_T); if (!jeliot.isExperiment()) { this.tabbedPane.addTab(messageBundle.getString("tab.title.call_tree"), callTree .getComponent()); this.tabbedPane.setMnemonicAt(1, KeyEvent.VK_E); this.tabbedPane.addTab(messageBundle.getString("tab.title.history"), hv); this.tabbedPane.setMnemonicAt(2, KeyEvent.VK_Y); this.tabbedPane.setEnabledAt(tabbedPane.indexOfTab(messageBundle .getString("tab.title.call_tree")), false); this.tabbedPane.setEnabledAt(tabbedPane.indexOfTab(messageBundle .getString("tab.title.history")), false); } this.frame.setIconImage(iLoad.getImage(propertiesBundle .getStringProperty("image.jeliot_icon"))); frame.setJMenuBar(makeMenuBar()); JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, editor, tabbedPane); pane.setOneTouchExpandable(true); codeNest = pane; Dimension minimumSize = new Dimension(0, 0); codePane.setMinimumSize(minimumSize); editor.setMinimumSize(minimumSize); JPanel bottomPane = new JPanel(new BorderLayout()); conPan = makeControlPanel(); bottomPane.add("West", conPan); OutputConsole oc = new OutputConsole(conPan); this.outputConsole = oc; bottomPane.add("Center", oc.container); JPanel rootPane = new JPanel(new BorderLayout()); rootPane.add("Center", pane); rootPane.add("South", bottomPane); frame.setContentPane(rootPane); //Maximize the window. /* Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); //frame.setSize(screenSize.width, screenSize.height - 30); frame.setSize(800, 600); Dimension frameSize = frame.getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); */ frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { closeWindow(); } }); enterEditTrue(); pane.setDividerLocation((jeliot.isExperiment()) ? 512 : 300); //TheatrePopup popup = new TheatrePopup(); //theatre.addMouseListener(popup); //theatre.addMouseMotionListener(popup); hw = new HelpWindow(iLoad.getImage(propertiesBundle .getStringProperty("image.jeliot_icon")), udir); aw = new AboutWindow(iLoad.getImage(propertiesBundle .getStringProperty("image.jeliot_icon")), udir); frame.pack(); frame.setExtendedState(JFrame.MAXIMIZED_BOTH); frame.setVisible(true); //editor.requestFocus(); //System.out.println(theatre.getSize()); } catch (Exception e) { e.printStackTrace(System.out); } }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/2afb143799924500a7f86421daa0c157cfa3f366/JeliotWindow.java/clean/src/jeliot/gui/JeliotWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 775, 288, 5411, 333, 18, 5787, 2045, 26360, 273, 394, 804, 26360, 12, 2211, 18, 5787, 270, 266, 1769, 5411, 368, 5787, 2045, 26360, 18, 542, 15704, 6806, 5190, 2582, 12, 46, 26360, 18, 21654, 10109, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 5411, 368, 5787, 2045, 26360, 18, 542, 14457, 6806, 5190, 2582, 12, 46, 26360, 18, 44, 20344, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 5411, 333, 18, 7032, 2992, 8485, 18, 1289, 5661, 12, 2150, 3405, 18, 588, 780, 2932, 7032, 18, 2649, 18, 5787, 2045, 6, 3631, 326, 2045, 26360, 1769, 5411, 333, 18, 7032, 2992, 8485, 18, 542, 29668, 20918, 861, 12, 20, 16, 23737, 18, 58, 47, 67, 56, 1769, 5411, 309, 16051, 78, 292, 77, 352, 18, 291, 22338, 10756, 288, 7734, 333, 18, 7032, 2992, 8485, 18, 1289, 5661, 12, 2150, 3405, 18, 588, 780, 2932, 7032, 18, 2649, 18, 1991, 67, 3413, 6, 3631, 745, 2471, 13491, 263, 588, 1841, 10663, 7734, 333, 18, 7032, 2992, 8485, 18, 542, 29668, 20918, 861, 12, 21, 16, 23737, 18, 58, 47, 67, 41, 1769, 7734, 333, 18, 7032, 2992, 8485, 18, 1289, 5661, 12, 2150, 3405, 18, 588, 780, 2932, 7032, 18, 2649, 18, 8189, 6, 3631, 366, 90, 1769, 7734, 333, 18, 7032, 2992, 8485, 18, 542, 29668, 20918, 861, 12, 22, 16, 23737, 18, 58, 47, 67, 61, 1769, 7734, 333, 18, 7032, 2992, 8485, 18, 542, 1526, 861, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 775, 288, 5411, 333, 18, 5787, 2045, 26360, 273, 394, 804, 26360, 12, 2211, 18, 5787, 270, 266, 1769, 5411, 368, 5787, 2045, 26360, 18, 542, 15704, 6806, 5190, 2582, 12, 46, 26360, 18, 21654, 10109, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 5411, 368, 5787, 2045, 26360, 18, 542, 14457, 6806, 5190, 2582, 12, 46, 26360, 18, 44, 20344, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 5411, 333, 18, 7032, 2992, 8485, 18, 1289, 5661, 12, 2150, 3405, 18, 588, 780, 2932, 7032, 18, 2649, 18, 5787, 2045, 6, 3631, 326, 2045, 26360, 1769, 5411, 333, 18, 7032, 2992, 8485, 18, 542, 29668, 20918, 861, 12, 20, 16, 23737, 2 ]
return TA_RetCode.TA_SUCCESS; }
if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( optInPenetration == (-4e+37) ) optInPenetration = 5.000000e-1; else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) return TA_RetCode. TA_BAD_PARAM; lookbackTotal = CDLDARKCLOUDCOVER_Lookback (optInPenetration); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; i = BodyLongTrailingIdx; while( i < startIdx ) { BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == 1 && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == -1 && inOpen[i] > inHigh[i-1] && inClose[i] > inOpen[i-1] && inClose[i] < inClose[i-1] - ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) * optInPenetration ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx-1] - inOpen[BodyLongTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx-1] - inLow[BodyLongTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx-1] - ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inClose[BodyLongTrailingIdx-1] : inOpen[BodyLongTrailingIdx-1] ) ) + ( ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inOpen[BodyLongTrailingIdx-1] : inClose[BodyLongTrailingIdx-1] ) - inLow[BodyLongTrailingIdx-1] ) : 0 ) ) ) ; i++; BodyLongTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS; }
public TA_RetCode CDLDARKCLOUDCOVER(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], double optInPenetration, MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double BodyLongPeriodTotal; int i, outIdx, BodyLongTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if (optInPenetration == (-4e+37)) optInPenetration = 5.000000e-1; else if ((optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37)) return TA_RetCode.TA_BAD_PARAM; lookbackTotal = CDLDARKCLOUDCOVER_Lookback(optInPenetration); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == 1 && (Math.abs(inClose[i - 1] - inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i] >= inOpen[i] ? 1 : -1) == -1 && inOpen[i] > inHigh[i - 1] && inClose[i] > inOpen[i - 1] && inClose[i] < inClose[i - 1] - (Math.abs(inClose[i - 1] - inOpen[i - 1])) * optInPenetration) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - 1] - inOpen[BodyLongTrailingIdx - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - 1] - inLow[BodyLongTrailingIdx - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - 1] - (inClose[BodyLongTrailingIdx - 1] >= inOpen[BodyLongTrailingIdx - 1] ? inClose[BodyLongTrailingIdx - 1] : inOpen[BodyLongTrailingIdx - 1])) + ((inClose[BodyLongTrailingIdx - 1] >= inOpen[BodyLongTrailingIdx - 1] ? inOpen[BodyLongTrailingIdx - 1] : inClose[BodyLongTrailingIdx - 1]) - inLow[BodyLongTrailingIdx - 1]) : 0))); i++; BodyLongTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 40, 9584, 22693, 12587, 3865, 2204, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 9056, 2153, 382, 24251, 278, 7034, 16, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1082, 202, 474, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 3708, 5027, 5269, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 5652, 3708, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 202, 202, 430, 261, 3838, 382, 24251, 278, 7034, 422, 24927, 24, 73, 15, 6418, 3719, 1082, 202, 3838, 382, 24251, 278, 7034, 273, 1381, 18, 9449, 73, 17, 21, 31, 202, 202, 12107, 309, 14015, 3838, 382, 24251, 278, 7034, 411, 374, 18, 9449, 73, 15, 20, 13, 9506, 202, 20081, 261, 3838, 382, 24251, 278, 7034, 405, 890, 18, 9449, 73, 15, 6418, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 16234, 67, 8388, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 40, 9584, 22693, 12587, 3865, 2204, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 9056, 2153, 382, 24251, 278, 7034, 16, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1082, 202, 474, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 3708, 5027, 5269, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 5652, 3708, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 2 ]
protected void onBind() { Component c = getComponent(); if (!(c instanceof IUpdatable)) { throw new WicketRuntimeException("This handler must be bound to Updatable Components."); } // create a unique HTML for the explode component String componentpath = removeColon(getComponent().getPath()); //this.HTMLID = "f_" + this.getComponent().getId() + "_" + getComponent().getPath(); this.HTMLID = ((IUpdatable)getComponent()).getHTMLID(); // Add ID to component, and bind effect to trigger c.add(new AttributeModifier("id", true, new Model(HTMLID))); }
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/8efc90c94da45c55b2b76a0d834093512966806e/DojoAutoUpdateHandler.java/buggy/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/autoupdate/DojoAutoUpdateHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 603, 3357, 1435, 202, 95, 202, 202, 1841, 276, 273, 10322, 5621, 202, 202, 430, 16051, 12, 71, 1276, 467, 1211, 3404, 429, 3719, 202, 202, 95, 1082, 202, 12849, 394, 678, 29378, 11949, 2932, 2503, 1838, 1297, 506, 2489, 358, 1948, 3404, 429, 25286, 1199, 1769, 202, 202, 97, 202, 202, 759, 752, 279, 3089, 3982, 364, 326, 3172, 1794, 9506, 202, 780, 1794, 803, 273, 1206, 19636, 12, 588, 1841, 7675, 588, 743, 10663, 9506, 202, 759, 2211, 18, 4870, 734, 273, 315, 74, 9548, 397, 333, 18, 588, 1841, 7675, 26321, 1435, 397, 8802, 397, 10322, 7675, 588, 743, 5621, 202, 202, 2211, 18, 4870, 734, 273, 14015, 45, 1211, 3404, 429, 13, 588, 1841, 1435, 2934, 588, 4870, 734, 5621, 9506, 202, 759, 1436, 1599, 358, 1794, 16, 471, 1993, 5426, 358, 3080, 202, 202, 71, 18, 1289, 12, 2704, 3601, 9829, 2932, 350, 3113, 638, 16, 394, 3164, 12, 4870, 734, 3719, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 603, 3357, 1435, 202, 95, 202, 202, 1841, 276, 273, 10322, 5621, 202, 202, 430, 16051, 12, 71, 1276, 467, 1211, 3404, 429, 3719, 202, 202, 95, 1082, 202, 12849, 394, 678, 29378, 11949, 2932, 2503, 1838, 1297, 506, 2489, 358, 1948, 3404, 429, 25286, 1199, 1769, 202, 202, 97, 202, 202, 759, 752, 279, 3089, 3982, 364, 326, 3172, 1794, 9506, 202, 780, 1794, 803, 273, 1206, 19636, 12, 588, 1841, 7675, 588, 743, 10663, 9506, 202, 759, 2211, 18, 4870, 734, 273, 315, 74, 9548, 397, 333, 18, 588, 1841, 7675, 26321, 1435, 397, 8802, 397, 10322, 7675, 588, 743, 5621, 202, 202, 2211, 18, 4870, 734, 273, 14015, 45, 1211, 3404, 429, 2 ]
if (param == PATTERN) { setSearchPattern((String) value); }
super.setFilterParam(param, value);
public void setFilterParam(int param, Object value) { if (param == PATTERN) { setSearchPattern((String) value); } if (param == DERIVED) { setSearchDerived(((Boolean) value).booleanValue()); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ea0718e0ea8d8a7b8c1c9d464be2b2219d8be426/ResourceSearcher.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 22855, 786, 12, 474, 579, 16, 1033, 460, 13, 288, 202, 202, 430, 261, 891, 422, 20146, 13, 288, 1082, 202, 542, 2979, 3234, 12443, 780, 13, 460, 1769, 202, 202, 97, 9506, 202, 430, 261, 891, 422, 21801, 20764, 13, 288, 1082, 202, 542, 2979, 21007, 12443, 12, 5507, 13, 460, 2934, 6494, 620, 10663, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 22855, 786, 12, 474, 579, 16, 1033, 460, 13, 288, 202, 202, 430, 261, 891, 422, 20146, 13, 288, 1082, 202, 542, 2979, 3234, 12443, 780, 13, 460, 1769, 202, 202, 97, 9506, 202, 430, 261, 891, 422, 21801, 20764, 13, 288, 1082, 202, 542, 2979, 21007, 12443, 12, 5507, 13, 460, 2934, 6494, 620, 10663, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
long bitcount = bytecount << 3;
long bitcount = bytecount * 8;
public byte[] engineDigest () { long bitcount = bytecount << 3; engineUpdate ((byte)0x80); // 10000000 in binary; the start of the padding // add the rest of the padding to fill this block out, but leave 8 // bytes to put in the original bytecount while ((bytecount & 0x3f) != 56) engineUpdate ((byte)0); // add the length of the original, unpadded block to the end of // the padding W[14] = (int)(bitcount >>> 32); W[15] = (int)bitcount; bytecount += 8; // digest the fully padded block munch (); byte[] result = new byte[] {(byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte)H0, (byte)(H1 >>> 24), (byte)(H1 >>> 16), (byte)(H1 >>> 8), (byte)H1, (byte)(H2 >>> 24), (byte)(H2 >>> 16), (byte)(H2 >>> 8), (byte)H2, (byte)(H3 >>> 24), (byte)(H3 >>> 16), (byte)(H3 >>> 8), (byte)H3, (byte)(H4 >>> 24), (byte)(H4 >>> 16), (byte)(H4 >>> 8), (byte)H4}; engineReset (); return result; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/f0fa0d7593a4096ea9c1b26389ec4bb1431e5631/SHA.java/clean/libjava/gnu/java/security/provider/SHA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 4073, 9568, 1832, 225, 288, 565, 1525, 2831, 1883, 273, 635, 14537, 592, 380, 1725, 31, 565, 4073, 1891, 14015, 7229, 13, 20, 92, 3672, 1769, 368, 2130, 11706, 316, 3112, 31, 326, 787, 434, 326, 4992, 565, 368, 527, 326, 3127, 434, 326, 4992, 358, 3636, 333, 1203, 596, 16, 1496, 8851, 1725, 565, 368, 1731, 358, 1378, 316, 326, 2282, 635, 14537, 592, 565, 1323, 14015, 1637, 14537, 592, 473, 374, 92, 23, 74, 13, 480, 13850, 13, 1377, 4073, 1891, 14015, 7229, 13, 20, 1769, 565, 368, 527, 326, 769, 434, 326, 2282, 16, 640, 6982, 785, 1203, 358, 326, 679, 434, 565, 368, 326, 4992, 565, 678, 63, 3461, 65, 273, 261, 474, 21433, 3682, 1883, 4080, 3847, 1769, 565, 678, 63, 3600, 65, 273, 261, 474, 13, 3682, 1883, 31, 565, 635, 14537, 592, 1011, 1725, 31, 565, 368, 5403, 326, 7418, 14426, 1203, 565, 312, 4384, 261, 1769, 565, 1160, 8526, 563, 1377, 273, 394, 1160, 8526, 288, 12, 7229, 21433, 44, 20, 4080, 4248, 3631, 261, 7229, 21433, 44, 20, 4080, 2872, 3631, 1082, 565, 261, 7229, 21433, 44, 20, 4080, 1725, 3631, 261, 7229, 13, 44, 20, 16, 1082, 565, 261, 7229, 21433, 44, 21, 4080, 4248, 3631, 261, 7229, 21433, 44, 21, 4080, 2872, 3631, 1082, 565, 261, 7229, 21433, 44, 21, 4080, 1725, 3631, 261, 7229, 13, 44, 21, 16, 1082, 565, 261, 7229, 21433, 44, 22, 4080, 4248, 3631, 261, 7229, 21433, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 4073, 9568, 1832, 225, 288, 565, 1525, 2831, 1883, 273, 635, 14537, 592, 380, 1725, 31, 565, 4073, 1891, 14015, 7229, 13, 20, 92, 3672, 1769, 368, 2130, 11706, 316, 3112, 31, 326, 787, 434, 326, 4992, 565, 368, 527, 326, 3127, 434, 326, 4992, 358, 3636, 333, 1203, 596, 16, 1496, 8851, 1725, 565, 368, 1731, 358, 1378, 316, 326, 2282, 635, 14537, 592, 565, 1323, 14015, 1637, 14537, 592, 473, 374, 92, 23, 74, 13, 480, 13850, 13, 1377, 4073, 1891, 14015, 7229, 13, 20, 1769, 565, 368, 527, 326, 769, 434, 326, 2282, 16, 640, 6982, 785, 1203, 358, 326, 679, 434, 565, 368, 326, 4992, 565, 678, 63, 3461, 65, 273, 2 ]
logger.debug("Field value: null");
private DefaultMutableTreeNode getTree(ChemObject object) { DefaultMutableTreeNode node = new ChemObjectTreeNode(object); Class reflectedClass = object.getClass(); // get all fields in this ChemObject Field[] fields = getFields(reflectedClass); // logger.debug(reflectedClass.getName() + " #fields: " + fields.length); for (int i=0; i<fields.length; i++) { Field f = fields[i]; f.setAccessible(true); // logger.debug("Field name: " + f.getName()); // logger.debug("Field type: " + f.getType().getName()); try { // get an instance of the object in the field Object fieldObject = f.get(object); if (fieldObject != null) { // logger.debug("Field value: " + fieldObject.getClass().getName()); if (fieldObject instanceof ChemObject) { // yes, found a ChemObject! // logger.debug("Recursing into this object"); node.add(getTree((ChemObject)fieldObject)); } else if (fieldObject instanceof ChemObject[]) { // yes, found a Array! // logger.debug("Recursing into this Array"); // determine what kind of Array ChemObject[] objects = (ChemObject[])fieldObject; int count = objects.length; // Because the count above gives the array length and not the number // of not null objects the array, some intelligence must be added if (object instanceof AtomContainer) { if (objects[0] instanceof Atom) { count = ((AtomContainer)object).getAtomCount(); } else if (objects[0] instanceof Bond) { count = ((AtomContainer)object).getBondCount(); } } // now start actual looping over child objects for (int j=0; j<objects.length; j++) { if (objects[j] != null) { node.add(getTree(objects[j])); } } } } else { //logger.debug("Field value: null"); } } catch (Exception e) { logger.error(e.toString()); } } return node; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a087356949ddf5adf7b02ebd8111b72c53eab132/ChemObjectTree.java/buggy/src/org/openscience/cdk/applications/swing/ChemObjectTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 6015, 270, 12970, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 2989, 19536, 2471, 50, 1009, 717, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 15867, 12, 20200, 921, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 733, 13, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 288, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 2989, 19536, 2471, 50, 1009, 717, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 290, 1009, 717, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 273, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 394, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 26542, 921, 12513, 12, 1612, 1769, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 6015, 270, 12970, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 2989, 19536, 2471, 50, 1009, 717, 693, 18, 4148, 2932, 974, 460, 30, 446, 8863, 15867, 12, 20200, 921, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 733, 13, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 288, 4901, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 974, 460, 30, 446, 8863, 1194, 18, 4148, 2932, 2 ]
"END;\n"+
public void testColumnConstraints() throws Exception { assertEqualsIgnoringWhitespaces( "DROP TABLE \"constraints\" CASCADE CONSTRAINTS;\n" + "DROP TRIGGER \"trg_constraints_L_PK_AUTO_INCR\";\n"+ "DROP SEQUENCE \"seq_constraints_L_PK_AUTO_INCR\";\n" + "DROP TRIGGER \"trg_constraints_COL_AUTO_INCR\";\n"+ "DROP SEQUENCE \"seq_constraints_COL_AUTO_INCR\";\n" + "CREATE SEQUENCE \"seq_constraints_L_PK_AUTO_INCR\";\n" + "CREATE SEQUENCE \"seq_constraints_COL_AUTO_INCR\";\n" + "CREATE TABLE \"constraints\"\n"+ "(\n"+ " \"COL_PK\" VARCHAR2(32),\n"+ " \"COL_PK_AUTO_INCR\" NUMBER(20,0),\n"+ " \"COL_NOT_NULL\" RAW(100) NOT NULL,\n"+ " \"COL_NOT_NULL_DEFAULT\" NUMBER(38) DEFAULT -2.0 NOT NULL,\n"+ " \"COL_DEFAULT\" CHAR(4) DEFAULT 'test',\n"+ " \"COL_AUTO_INCR\" NUMBER(38,0),\n"+ " PRIMARY KEY (\"COL_PK\", \"COL_PK_AUTO_INCR\")\n"+ ");\n"+ "CREATE OR REPLACE TRIGGER \"trg_constraints_L_PK_AUTO_INCR\" BEFORE INSERT ON \"constraints\" FOR EACH ROW\n"+ "BEGIN\n"+ " SELECT \"seq_constraints_L_PK_AUTO_INCR\".nextval INTO :new.\"COL_PK_AUTO_INCR\" FROM dual;\n"+ "END;\n"+ "CREATE OR REPLACE TRIGGER \"trg_constraints_COL_AUTO_INCR\" BEFORE INSERT ON \"constraints\" FOR EACH ROW\n"+ "BEGIN\n"+ " SELECT \"seq_constraints_COL_AUTO_INCR\".nextval INTO :new.\"COL_AUTO_INCR\" FROM dual;\n"+ "END;\n", createTestDatabase(COLUMN_CONSTRAINT_TEST_SCHEMA)); }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/ca254167df5b93edf72a7fc2f7c90db929e1f14a/TestOracle8Platform.java/buggy/src/test/org/apache/ddlutils/platform/TestOracle8Platform.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1494, 4878, 1435, 1216, 1185, 565, 288, 3639, 1815, 8867, 21702, 2888, 21693, 12, 5411, 315, 18768, 7567, 1239, 11967, 2412, 6425, 25517, 29316, 55, 9747, 82, 6, 397, 5411, 315, 18768, 22800, 27399, 1239, 313, 75, 67, 11967, 67, 48, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 15, 5411, 315, 18768, 27118, 1239, 5436, 67, 11967, 67, 48, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 397, 5411, 315, 18768, 22800, 27399, 1239, 313, 75, 67, 11967, 67, 4935, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 15, 5411, 315, 18768, 27118, 1239, 5436, 67, 11967, 67, 4935, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 397, 5411, 315, 9344, 27118, 1239, 5436, 67, 11967, 67, 48, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 397, 5411, 315, 9344, 27118, 1239, 5436, 67, 11967, 67, 4935, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 397, 5411, 315, 9344, 7567, 1239, 11967, 31670, 82, 6, 15, 5411, 315, 4713, 82, 6, 15, 5411, 315, 565, 1239, 4935, 67, 8784, 2412, 9079, 27915, 22, 12, 1578, 3631, 64, 82, 6, 15, 5411, 315, 565, 1239, 4935, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 377, 15532, 12, 3462, 16, 20, 3631, 64, 82, 6, 15, 5411, 315, 565, 1239, 4935, 67, 4400, 67, 8560, 2412, 540, 29118, 12, 6625, 13, 4269, 3206, 17211, 82, 6, 15, 5411, 315, 565, 1239, 4935, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1494, 4878, 1435, 1216, 1185, 565, 288, 3639, 1815, 8867, 21702, 2888, 21693, 12, 5411, 315, 18768, 7567, 1239, 11967, 2412, 6425, 25517, 29316, 55, 9747, 82, 6, 397, 5411, 315, 18768, 22800, 27399, 1239, 313, 75, 67, 11967, 67, 48, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 15, 5411, 315, 18768, 27118, 1239, 5436, 67, 11967, 67, 48, 67, 8784, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 397, 5411, 315, 18768, 22800, 27399, 1239, 313, 75, 67, 11967, 67, 4935, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 6, 15, 5411, 315, 18768, 27118, 1239, 5436, 67, 11967, 67, 4935, 67, 18909, 67, 706, 5093, 2412, 9747, 82, 2 ]
throws IOException, XmlPullParserException;
throws IOException, IllegalArgumentException, IllegalStateException;
public XmlSerializer endTag (String namespace, String name) throws IOException, XmlPullParserException;
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/9b1275f14088f09fc6c347fccdf2573706184e43/XmlSerializer.java/clean/src/java/api/org/xmlpull/v1/XmlSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 6306, 29765, 261, 780, 1981, 16, 514, 508, 13, 3639, 1216, 1860, 16, 5714, 9629, 25746, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 6306, 29765, 261, 780, 1981, 16, 514, 508, 13, 3639, 1216, 1860, 16, 5714, 9629, 25746, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throws Throwable
private static Value pregReplaceCallback(Env env, Value patternValue, Callback fun, String subject, @Optional("-1") long limit, @Optional @Reference Value countV) throws Throwable { if (limit < 0) limit = Long.MAX_VALUE; if (patternValue.isArray()) { ArrayValue patternArray = (ArrayValue) patternValue; for (Value value : patternArray.values()) { subject = pregReplaceCallbackImpl(env, value.toString(), fun, subject, limit, countV); } return new StringValueImpl(subject); } else if (patternValue instanceof StringValue) { return new StringValueImpl(pregReplaceCallbackImpl(env, patternValue.toString(), fun, subject, limit, countV)); } else { return NullValue.NULL; } }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/87fa828f676c349c54c585677eb7eeab11f5627f/RegexpModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/RegexpModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1445, 2299, 5729, 2428, 12, 3491, 1550, 16, 4766, 6647, 1445, 1936, 620, 16, 4766, 6647, 8444, 9831, 16, 4766, 6647, 514, 3221, 16, 4766, 6647, 632, 6542, 2932, 17, 21, 7923, 1525, 1800, 16, 4766, 6647, 632, 6542, 632, 2404, 1445, 1056, 58, 13, 377, 288, 565, 309, 261, 3595, 411, 374, 13, 1377, 1800, 273, 3407, 18, 6694, 67, 4051, 31, 565, 309, 261, 4951, 620, 18, 291, 1076, 10756, 288, 1377, 1510, 620, 1936, 1076, 273, 261, 1076, 620, 13, 1936, 620, 31, 1377, 364, 261, 620, 460, 294, 1936, 1076, 18, 2372, 10756, 288, 3639, 3221, 273, 2299, 5729, 2428, 2828, 12, 3074, 16, 4766, 1850, 460, 18, 10492, 9334, 4766, 1850, 9831, 16, 4766, 1850, 3221, 16, 4766, 1850, 1800, 16, 4766, 1850, 1056, 58, 1769, 1377, 289, 1377, 327, 394, 18595, 2828, 12, 7857, 1769, 565, 289, 469, 309, 261, 4951, 620, 1276, 18595, 13, 288, 1377, 327, 394, 18595, 2828, 12, 1484, 75, 5729, 2428, 2828, 12, 3074, 16, 4766, 5397, 1936, 620, 18, 10492, 9334, 4766, 5397, 9831, 16, 4766, 5397, 3221, 16, 4766, 5397, 1800, 16, 4766, 5397, 1056, 58, 10019, 565, 289, 469, 288, 1377, 327, 4112, 620, 18, 8560, 31, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1445, 2299, 5729, 2428, 12, 3491, 1550, 16, 4766, 6647, 1445, 1936, 620, 16, 4766, 6647, 8444, 9831, 16, 4766, 6647, 514, 3221, 16, 4766, 6647, 632, 6542, 2932, 17, 21, 7923, 1525, 1800, 16, 4766, 6647, 632, 6542, 632, 2404, 1445, 1056, 58, 13, 377, 288, 565, 309, 261, 3595, 411, 374, 13, 1377, 1800, 273, 3407, 18, 6694, 67, 4051, 31, 565, 309, 261, 4951, 620, 18, 291, 1076, 10756, 288, 1377, 1510, 620, 1936, 1076, 273, 261, 1076, 620, 13, 1936, 620, 31, 1377, 364, 261, 620, 460, 294, 1936, 1076, 18, 2372, 10756, 288, 3639, 3221, 273, 2299, 5729, 2428, 2828, 12, 3074, 16, 4766, 1850, 460, 18, 10492, 9334, 4766, 1850, 2 ]
<T extends ManagedObject> ManagedReferenceImpl<T> findReference(T object) {
ManagedReferenceImpl findReference(ManagedObject object) {
<T extends ManagedObject> ManagedReferenceImpl<T> findReference(T object) { return ManagedReferenceImpl.findReference(this, object); }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/468fd904132fe7f543e7cd90eed49c63132c4835/Context.java/buggy/src/server/j2se/com/sun/sgs/impl/service/data/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 411, 56, 3231, 28690, 34, 10024, 2404, 2828, 32, 56, 34, 1104, 2404, 12, 56, 733, 13, 288, 202, 2463, 10024, 2404, 2828, 18, 4720, 2404, 12, 2211, 16, 733, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 411, 56, 3231, 28690, 34, 10024, 2404, 2828, 32, 56, 34, 1104, 2404, 12, 56, 733, 13, 288, 202, 2463, 10024, 2404, 2828, 18, 4720, 2404, 12, 2211, 16, 733, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return new FCallNode(iPosition, name, args);
return new FCallNode(operation.getPosition(), name, args);
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCallNode(iPosition, name, args); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b1293eda8454686e846e2a9837b348e2983bb423/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 394, 67, 74, 1991, 12, 780, 508, 16, 2029, 833, 16, 467, 1830, 2555, 277, 2555, 13, 288, 3639, 309, 261, 1968, 480, 446, 597, 833, 1276, 3914, 6433, 907, 13, 288, 5411, 14015, 1768, 6433, 907, 13, 833, 2934, 542, 2360, 907, 12, 2704, 478, 1477, 907, 12, 1968, 18, 588, 2555, 9334, 508, 16, 14015, 1768, 6433, 907, 13, 833, 2934, 588, 2615, 907, 1435, 10019, 5411, 327, 833, 31, 3639, 289, 3639, 327, 394, 478, 1477, 907, 12, 7624, 18, 588, 2555, 9334, 508, 16, 833, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 394, 67, 74, 1991, 12, 780, 508, 16, 2029, 833, 16, 467, 1830, 2555, 277, 2555, 13, 288, 3639, 309, 261, 1968, 480, 446, 597, 833, 1276, 3914, 6433, 907, 13, 288, 5411, 14015, 1768, 6433, 907, 13, 833, 2934, 542, 2360, 907, 12, 2704, 478, 1477, 907, 12, 1968, 18, 588, 2555, 9334, 508, 16, 14015, 1768, 6433, 907, 13, 833, 2934, 588, 2615, 907, 1435, 10019, 5411, 327, 833, 31, 3639, 289, 3639, 327, 394, 478, 1477, 907, 12, 7624, 18, 588, 2555, 9334, 508, 16, 833, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IPersistentMap set = new PersistentHybridMap(1001);
IPersistentMap set = new PersistentHashtableMap(1001);
static public void main(String args[]){ if(args.length != 1) System.err.println("Usage: RBTree n"); int n = Integer.parseInt(args[0]); Integer[] ints = new Integer[n]; for(int i = 0; i < ints.length; i++) { ints[i] = new Integer(i); } Collections.shuffle(Arrays.asList(ints)); //force the ListMap class loading now PersistentListMap.EMPTY.add(1).add(2).add(3); System.out.println("Building set"); IPersistentMap set = new PersistentHybridMap(1001); //IMap set = new HashtableMap(1001); //IMap set = new ListMap(); //IMap set = new ArrayMap(); //IMap set = new RBTree();// for(int i = 0; i < ints.length; i++)// {// Integer anInt = ints[i];// set = set.add(anInt);// } long startTime = System.nanoTime(); for(int i = 0; i < ints.length; i++) { Integer anInt = ints[i]; set = set.put(anInt, anInt); } //System.out.println("_count = " + set.count());// System.out.println("_count = " + set._count + ", min: " + set.minKey() + ", max: " + set.maxKey()// + ", depth: " + set.depth()); Iterator it = set.iterator(); while(it.hasNext()) { IMapEntry o = (IMapEntry) it.next(); if(!set.contains(o.key())) System.err.println("Can't find: " + o); //else if(n < 2000) // System.out.print(o.key().toString() + ","); } for(int i = 0; i < ints.length/2; i++) { Integer anInt = ints[i]; set = set.remove(anInt); } long estimatedTime = System.nanoTime() - startTime; System.out.println(); System.out.println("_count = " + set.count() + ", time: " + estimatedTime/10000); System.out.println("Building ht"); Hashtable ht = new Hashtable(1001); startTime = System.nanoTime();// for(int i = 0; i < ints.length; i++)// {// Integer anInt = ints[i];// ht.put(anInt,null);// } for(int i = 0; i < ints.length; i++) { Integer anInt = ints[i]; ht.put(anInt, anInt); } //System.out.println("size = " + ht.size()); it = ht.entrySet().iterator(); while(it.hasNext()) { Map.Entry o = (Map.Entry) it.next(); if(!ht.containsKey(o.getKey())) System.err.println("Can't find: " + o); //else if(n < 2000) // System.out.print(o.toString() + ","); } for(int i = 0; i < ints.length/2; i++) { Integer anInt = ints[i]; ht.remove(anInt); } estimatedTime = System.nanoTime() - startTime; System.out.println(); System.out.println("size = " + ht.size() + ", time: " + estimatedTime/10000);// System.out.println("_count = " + set._count + ", min: " + set.minKey() + ", max: " + set.maxKey()// + ", depth: " + set.depth());}
47116 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47116/3e18fcb60b00f869f74b112af5b5d90b9a9edba0/PersistentTree.java/buggy/src/org/clojure/runtime/PersistentTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 1071, 918, 2774, 12, 780, 833, 63, 5717, 95, 202, 430, 12, 1968, 18, 2469, 480, 404, 13, 202, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 534, 38, 2471, 290, 8863, 202, 474, 290, 273, 2144, 18, 2670, 1702, 12, 1968, 63, 20, 19226, 202, 4522, 8526, 15542, 273, 394, 2144, 63, 82, 15533, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 15542, 18, 2469, 31, 277, 27245, 202, 202, 95, 202, 202, 28142, 63, 77, 65, 273, 394, 2144, 12, 77, 1769, 202, 202, 97, 202, 15150, 18, 31980, 12, 12726, 18, 345, 682, 12, 28142, 10019, 202, 759, 5734, 326, 987, 863, 667, 7153, 2037, 202, 11906, 682, 863, 18, 13625, 18, 1289, 12, 21, 2934, 1289, 12, 22, 2934, 1289, 12, 23, 1769, 202, 3163, 18, 659, 18, 8222, 2932, 16713, 444, 8863, 202, 2579, 6572, 863, 444, 273, 394, 11049, 17507, 14400, 863, 12, 6625, 21, 1769, 202, 759, 45, 863, 444, 273, 394, 18559, 863, 12, 6625, 21, 1769, 202, 759, 45, 863, 444, 273, 394, 987, 863, 5621, 202, 759, 45, 863, 444, 273, 394, 1510, 863, 5621, 202, 759, 45, 863, 444, 273, 394, 534, 38, 2471, 5621, 759, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 15542, 18, 2469, 31, 277, 27245, 759, 202, 202, 95, 759, 202, 202, 4522, 392, 1702, 273, 15542, 63, 77, 15533, 759, 202, 202, 542, 273, 444, 18, 1289, 12, 304, 1702, 1769, 759, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 1071, 918, 2774, 12, 780, 833, 63, 5717, 95, 202, 430, 12, 1968, 18, 2469, 480, 404, 13, 202, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 534, 38, 2471, 290, 8863, 202, 474, 290, 273, 2144, 18, 2670, 1702, 12, 1968, 63, 20, 19226, 202, 4522, 8526, 15542, 273, 394, 2144, 63, 82, 15533, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 15542, 18, 2469, 31, 277, 27245, 202, 202, 95, 202, 202, 28142, 63, 77, 65, 273, 394, 2144, 12, 77, 1769, 202, 202, 97, 202, 15150, 18, 31980, 12, 12726, 18, 345, 682, 12, 28142, 10019, 202, 759, 5734, 326, 987, 863, 667, 7153, 2037, 202, 11906, 682, 863, 18, 13625, 18, 2 ]
pendingOperations.remove(communityName);
removePendingOperation(communityName);
protected void leave(final String communityName, String entityName) { if (logger.isDebugEnabled()) { logger.debug(thisAgent+": Leaving community:" + " community=" + communityName + " entity=" + entityName); } pendingOperations.add(communityName); communityService.leaveCommunity(communityName, entityName, new CommunityResponseListener() { public void getResponse(CommunityResponse resp) { if (logger.isDetailEnabled()) { logger.detail("Leave status=" + resp); } pendingOperations.remove(communityName); } }); }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/9986f01c922b1db504ae46ca24b2dcd7a95c9b29/MembershipWatcher.java/clean/community/src/org/cougaar/community/MembershipWatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 8851, 12, 6385, 514, 19833, 461, 16, 514, 14868, 13, 288, 565, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 1377, 1194, 18, 4148, 12, 2211, 3630, 15, 6877, 3519, 5339, 19833, 2773, 397, 5375, 315, 19833, 1546, 397, 19833, 461, 397, 5375, 315, 1522, 1546, 397, 14868, 1769, 565, 289, 565, 4634, 9343, 18, 1289, 12, 20859, 461, 1769, 565, 19833, 1179, 18, 19574, 12136, 13352, 12, 20859, 461, 16, 4766, 282, 14868, 16, 1377, 394, 16854, 13352, 1064, 2223, 1435, 288, 3639, 1071, 918, 6476, 12, 12136, 13352, 1064, 1718, 13, 288, 1850, 309, 261, 4901, 18, 291, 6109, 1526, 10756, 288, 5411, 1194, 18, 8992, 2932, 21300, 1267, 1546, 397, 1718, 1769, 1850, 289, 1850, 1206, 8579, 2988, 12, 20859, 461, 1769, 3639, 289, 565, 15549, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 8851, 12, 6385, 514, 19833, 461, 16, 514, 14868, 13, 288, 565, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 1377, 1194, 18, 4148, 12, 2211, 3630, 15, 6877, 3519, 5339, 19833, 2773, 397, 5375, 315, 19833, 1546, 397, 19833, 461, 397, 5375, 315, 1522, 1546, 397, 14868, 1769, 565, 289, 565, 4634, 9343, 18, 1289, 12, 20859, 461, 1769, 565, 19833, 1179, 18, 19574, 12136, 13352, 12, 20859, 461, 16, 4766, 282, 14868, 16, 1377, 394, 16854, 13352, 1064, 2223, 1435, 288, 3639, 1071, 918, 6476, 12, 12136, 13352, 1064, 1718, 13, 288, 1850, 309, 261, 4901, 18, 291, 6109, 1526, 10756, 288, 5411, 1194, 18, 8992, 2932, 21300, 1267, 1546, 397, 1718, 1769, 2 ]
} else { Via via = transactionResponse.getTopmostVia(); String transport = via.getTransport(); if (transport == null) throw new IOException ("missing transport!"); int port = via.getrport(); if (port == -1) port = via.getPort(); if (port == -1) { if (transport.equalsIgnoreCase("TLS")) port = 5061; else port = 5060; }
} else { Via via = transactionResponse.getTopmostVia(); String transport = via.getTransport(); if (transport == null) throw new IOException("missing transport!"); int port = via.getrport(); if (port == -1) port = via.getPort(); if (port == -1) { if (transport.equalsIgnoreCase("TLS")) port = 5061; else port = 5060; }
private void sendResponse(SIPResponse transactionResponse) throws IOException { // RFC18.2.2. Sending Responses // The server transport uses the value of the top Via header field in order // to determine where to send a response. // It MUST follow the following process: // If the "sent-protocol" is a reliable transport // protocol such as TCP or SCTP, // or TLS over those, the response MUST be // sent using the existing connection // to the source of the original request // that created the transaction, if that connection is still open. if (isReliable()) { getMessageChannel().sendMessage(transactionResponse); // If that connection attempt fails, the server SHOULD // use SRV 3263 procedures // for servers in order to determine the IP address // and port to open the connection and send the response to. } else { Via via = transactionResponse.getTopmostVia(); String transport = via.getTransport(); if (transport == null) throw new IOException ("missing transport!"); //@@@ hagai Symmetric NAT support int port = via.getrport(); if (port == -1) port = via.getPort(); if (port == -1) { if (transport.equalsIgnoreCase("TLS")) port = 5061; else port = 5060; } // Otherwise, if the Via header field value contains a // "maddr" parameter, the response MUST be forwarded to // the address listed there, using the port indicated in "sent-by", // or port 5060 if none is present. If the address is a multicast // address, the response SHOULD be sent using // the TTL indicated in the "ttl" parameter, or with a // TTL of 1 if that parameter is not present. Host maddr= via.getMaddr(); String host=null; if (maddr!=null) { host = maddr.getHostname(); } else { // Otherwise (for unreliable unicast transports), // if the top Via has a "received" parameter, the response MUST be sent to the // address in the "received" parameter, using the port indicated in the // "sent-by" value, or using port 5060 if none is specified explicitly. host = via.getParameter(Via.RECEIVED); if (host==null) { // Otherwise, if it is not receiver-tagged, the response MUST be // sent to the address indicated by the "sent-by" value, // using the procedures in Section 5 // RFC 3263 PROCEDURE TO BE DONE HERE host = via.getHost(); } } // Changed by Daniel J. Martinez Manzano <dani@dif.um.es> // Original code called constructor with concatenated // parameters, which didn't work for IPv6 addresses. HopImpl hop = new HopImpl(host,port,transport); MessageChannel messageChannel = ((SIPTransactionStack) getSIPStack()).createRawMessageChannel(hop); messageChannel.sendMessage(transactionResponse); } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/e93925fd4fa7b834b3f4314207bf6a06fb1ff621/SIPServerTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPServerTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 1064, 12, 17739, 1064, 2492, 1064, 13, 282, 1216, 1860, 288, 282, 368, 8372, 2643, 18, 22, 18, 22, 18, 2479, 310, 29972, 282, 368, 225, 1021, 1438, 4736, 4692, 326, 460, 434, 326, 1760, 776, 1155, 1446, 652, 316, 1353, 565, 368, 225, 358, 4199, 1625, 358, 1366, 279, 766, 18, 377, 368, 225, 2597, 10685, 2805, 326, 3751, 1207, 30, 282, 368, 225, 971, 326, 315, 7569, 17, 8373, 6, 353, 279, 31024, 4736, 565, 368, 225, 1771, 4123, 487, 9911, 578, 348, 1268, 52, 16, 565, 368, 225, 578, 8098, 1879, 5348, 16, 326, 766, 10685, 506, 565, 368, 225, 3271, 1450, 326, 2062, 1459, 565, 368, 225, 358, 326, 1084, 434, 326, 2282, 590, 282, 368, 225, 716, 2522, 326, 2492, 16, 309, 716, 1459, 353, 4859, 1696, 18, 282, 309, 261, 291, 1971, 2214, 10756, 288, 4202, 2381, 2909, 7675, 4661, 1079, 12, 7958, 1064, 1769, 1171, 368, 971, 716, 1459, 4395, 6684, 16, 326, 1438, 6122, 31090, 3639, 368, 999, 19145, 58, 3847, 4449, 450, 23382, 4202, 368, 364, 7084, 316, 1353, 358, 4199, 326, 2971, 1758, 3639, 368, 471, 1756, 358, 1696, 326, 1459, 471, 1366, 326, 766, 358, 18, 282, 289, 469, 288, 4202, 776, 1155, 3970, 273, 2492, 1064, 18, 588, 3401, 10329, 21246, 5621, 4202, 514, 4736, 273, 3970, 18, 588, 6568, 5621, 4202, 309, 261, 13049, 422, 446, 13, 604, 394, 1860, 7566, 7337, 4736, 4442, 1769, 4202, 23834, 30989, 366, 346, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 1064, 12, 17739, 1064, 2492, 1064, 13, 282, 1216, 1860, 288, 282, 368, 8372, 2643, 18, 22, 18, 22, 18, 2479, 310, 29972, 282, 368, 225, 1021, 1438, 4736, 4692, 326, 460, 434, 326, 1760, 776, 1155, 1446, 652, 316, 1353, 565, 368, 225, 358, 4199, 1625, 358, 1366, 279, 766, 18, 377, 368, 225, 2597, 10685, 2805, 326, 3751, 1207, 30, 282, 368, 225, 971, 326, 315, 7569, 17, 8373, 6, 353, 279, 31024, 4736, 565, 368, 225, 1771, 4123, 487, 9911, 578, 348, 1268, 52, 16, 565, 368, 225, 578, 8098, 1879, 5348, 16, 326, 766, 10685, 506, 565, 368, 225, 3271, 1450, 326, 2062, 1459, 565, 368, 225, 358, 326, 1084, 434, 2 ]
String id = ((ITranslationUnit)celement).getContentTypeId(); if (contentType.getId().equals(id)) {
String oldId = ((ITranslationUnit)celement).getContentTypeId(); if (contentType.getId().equals(oldId)) {
protected void processContentType(ICElement celement, IContentType contentType, IScopeContext context) { if (celement instanceof IOpenable) { int type = celement.getElementType(); // if the type is not a TranslationUnit switch (type) { case ICElement.C_PROJECT: { CElementInfo info = (CElementInfo)fManager.peekAtInfo(celement); if (info != null) { ICElement[] celements = info.getChildren(); for (int i = 0; i < celements.length; ++i) { processContentType(celements[i], contentType, context); } } break; } case ICElement.C_CCONTAINER: { CElementInfo info = (CElementInfo)fManager.peekAtInfo(celement); if (info != null) { try { ICElement[] celements = info.getChildren(); IResource resource = celement.getResource(); IResource[] members = null; if (resource instanceof IContainer) { members = ((IContainer)resource).members(); } if (members != null) { for (int i = 0; i < members.length; ++i) { if (members[i] instanceof IFile) { IFile file = (IFile) members[i]; String name = file.getName(); IContentType cType = CCorePlugin.getContentType(file.getProject(), name); if (cType != null && cType.equals(contentType)) { boolean found = false; for (int j = 0; j < celements.length; ++j) { if (celements[j].getElementName().equals(name) && celements[j].getElementType() == ICElement.C_UNIT) { ITranslationUnit unit = (ITranslationUnit)celements[j]; if (!cType.getId().equals(unit.getContentTypeId())) { elementChanged(celements[j]); } found = true; break; } } if (! found) { ICElement newElement = CoreModel.getDefault().create(file); if (newElement != null) { elementAdded(newElement, celement); } } } } } } for (int i = 0; i < celements.length; ++i) { processContentType(celements[i], contentType, context); } } catch (CoreException e) { // } } } break; case ICElement.C_UNIT: { String id = ((ITranslationUnit)celement).getContentTypeId(); if (contentType.getId().equals(id)) { try { IContentType cType = CCorePlugin.getContentType(celement.getCProject().getProject(), celement.getElementName()); if (cType != null && isRegisteredContentTypeId(cType.getId())) { elementChanged(celement); } else { elementRemoved(celement, celement.getParent()); } } catch (CoreException e) { // } } break; } } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d2aff435e1888fc71c61d13324a26d0da257919e/ContentTypeProcessor.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ContentTypeProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 8046, 12, 2871, 1046, 276, 2956, 16, 467, 8046, 5064, 16, 467, 3876, 1042, 819, 13, 288, 202, 202, 430, 261, 2183, 820, 1276, 1665, 1907, 429, 13, 288, 1082, 202, 474, 618, 273, 276, 2956, 18, 588, 17481, 5621, 1082, 202, 759, 309, 326, 618, 353, 486, 279, 17427, 2802, 1082, 202, 9610, 261, 723, 13, 288, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 17147, 30, 288, 9506, 202, 39, 1046, 966, 1123, 273, 261, 39, 1046, 966, 13, 74, 1318, 18, 347, 3839, 861, 966, 12, 2183, 820, 1769, 9506, 202, 430, 261, 1376, 480, 446, 13, 288, 6862, 202, 2871, 1046, 8526, 276, 6274, 273, 1123, 18, 588, 4212, 5621, 6862, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 276, 6274, 18, 2469, 31, 965, 77, 13, 288, 25083, 202, 2567, 8046, 12, 2183, 17110, 63, 77, 6487, 5064, 16, 819, 1769, 6862, 202, 97, 9506, 202, 97, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 39, 21395, 30, 288, 9506, 202, 39, 1046, 966, 1123, 273, 261, 39, 1046, 966, 13, 74, 1318, 18, 347, 3839, 861, 966, 12, 2183, 820, 1769, 9506, 202, 430, 261, 1376, 480, 446, 13, 288, 6862, 202, 698, 288, 25083, 202, 2871, 1046, 8526, 276, 6274, 273, 1123, 18, 588, 4212, 5621, 25083, 202, 45, 1420, 1058, 273, 276, 2956, 18, 588, 1420, 5621, 25083, 202, 45, 1420, 8526, 4833, 273, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 8046, 12, 2871, 1046, 276, 2956, 16, 467, 8046, 5064, 16, 467, 3876, 1042, 819, 13, 288, 202, 202, 430, 261, 2183, 820, 1276, 1665, 1907, 429, 13, 288, 1082, 202, 474, 618, 273, 276, 2956, 18, 588, 17481, 5621, 1082, 202, 759, 309, 326, 618, 353, 486, 279, 17427, 2802, 1082, 202, 9610, 261, 723, 13, 288, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 17147, 30, 288, 9506, 202, 39, 1046, 966, 1123, 273, 261, 39, 1046, 966, 13, 74, 1318, 18, 347, 3839, 861, 966, 12, 2183, 820, 1769, 9506, 202, 430, 261, 1376, 480, 446, 13, 288, 6862, 202, 2871, 1046, 8526, 276, 6274, 273, 1123, 18, 588, 4212, 5621, 2 ]
int afterName = getSourceString(source, i + 2, null);
int afterName = getSourceStringEnd(source, i + 2);
private static void decompile_r(Object encodedSourcesTree, boolean nested, boolean justbody, Object[] srcData, int indent, int indentGap, int caseGap, StringBuffer result) { String source; Object[] childNodes = null; if (encodedSourcesTree == null) { source = null; } else if (encodedSourcesTree instanceof String) { source = (String)encodedSourcesTree; } else { childNodes = (Object[])encodedSourcesTree; source = (String)childNodes[0]; } if (source == null) { return; } int length = source.length(); if (length == 0) { return; } // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = null; if (Token.printNames) { tokenname = Token.name(source.charAt(i)); } if (tokenname == null) { tokenname = "---"; } String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } if (!nested) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } int i = 0; // If the first token is Token.SCRIPT, then we're // decompiling the toplevel script, otherwise it a function // and should start with Token.FUNCTION int token = source.charAt(i); ++i; if (token == Token.FUNCTION) { if (!justbody) { result.append("function "); } else { // Skip past the entire function header pass the next EOL. skipLoop: for (;;) { token = source.charAt(i); ++i; switch (token) { case Token.EOL: break skipLoop; case Token.NAME: // Skip function or argument name i = getSourceString(source, i, null); break; case Token.LP: case Token.COMMA: case Token.RP: break; default: // Bad function header throw new RuntimeException(); } } } } else if (token != Token.SCRIPT) { // Bad source header throw new RuntimeException(); } while (i < length) { switch(source.charAt(i)) { case Token.NAME: case Token.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ i = getSourceString(source, i + 1, srcData); result.append((String)srcData[0]); continue; case Token.NUMBER: { i = getSourceNumber(source, i + 1, srcData); double number = ((Number)srcData[0]).doubleValue(); result.append(ScriptRuntime.numberToString(number, 10)); continue; } case Token.STRING: i = getSourceString(source, i + 1, srcData); result.append('"'); result.append(ScriptRuntime.escapeString((String)srcData[0])); result.append('"'); continue; case Token.PRIMARY: ++i; switch(source.charAt(i)) { case Token.TRUE: result.append("true"); break; case Token.FALSE: result.append("false"); break; case Token.NULL: result.append("null"); break; case Token.THIS: result.append("this"); break; case Token.TYPEOF: result.append("typeof"); break; case Token.VOID: result.append("void"); break; case Token.UNDEFINED: result.append("undefined"); break; } break; case Token.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionIndex = source.charAt(i); if (childNodes == null || functionIndex + 1 > childNodes.length) { throw Context.reportRuntimeError(Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionIndex))); } decompile_r(childNodes[functionIndex + 1], true, false, srcData, indent, indentGap, caseGap, result); break; } case Token.COMMA: result.append(", "); break; case Token.LC: if (nextIs(source, length, i, Token.EOL)) indent += indentGap; result.append('{'); break; case Token.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && !nested && i + 1 == length) break; if (nextIs(source, length, i, Token.EOL)) indent -= indentGap; if (nextIs(source, length, i, Token.WHILE) || nextIs(source, length, i, Token.ELSE)) { indent -= indentGap; result.append("} "); } else result.append('}'); break; case Token.LP: result.append('('); break; case Token.RP: if (nextIs(source, length, i, Token.LC)) result.append(") "); else result.append(')'); break; case Token.LB: result.append('['); break; case Token.RB: result.append(']'); break; case Token.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; int nextToken = source.charAt(i + 1); if (nextToken == Token.CASE || nextToken == Token.DEFAULT) { less = indentGap - caseGap; } else if (nextToken == Token.RC) { less = indentGap; } /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextToken == Token.NAME) { int afterName = getSourceString(source, i + 2, null); if (source.charAt(afterName) == Token.COLON) less = indentGap; } for (; less < indent; less++) result.append(' '); } break; case Token.DOT: result.append('.'); break; case Token.NEW: result.append("new "); break; case Token.DELPROP: result.append("delete "); break; case Token.IF: result.append("if "); break; case Token.ELSE: result.append("else "); break; case Token.FOR: result.append("for "); break; case Token.IN: result.append(" in "); break; case Token.WITH: result.append("with "); break; case Token.WHILE: result.append("while "); break; case Token.DO: result.append("do "); break; case Token.TRY: result.append("try "); break; case Token.CATCH: result.append("catch "); break; case Token.FINALLY: result.append("finally "); break; case Token.THROW: result.append("throw "); break; case Token.SWITCH: result.append("switch "); break; case Token.BREAK: if (nextIs(source, length, i, Token.NAME)) result.append("break "); else result.append("break"); break; case Token.CONTINUE: if (nextIs(source, length, i, Token.NAME)) result.append("continue "); else result.append("continue"); break; case Token.CASE: result.append("case "); break; case Token.DEFAULT: result.append("default"); break; case Token.RETURN: if (nextIs(source, length, i, Token.SEMI)) result.append("return"); else result.append("return "); break; case Token.VAR: result.append("var "); break; case Token.SEMI: if (nextIs(source, length, i, Token.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case Token.ASSIGN: ++i; switch(source.charAt(i)) { case Token.NOP: result.append(" = "); break; case Token.ADD: result.append(" += "); break; case Token.SUB: result.append(" -= "); break; case Token.MUL: result.append(" *= "); break; case Token.DIV: result.append(" /= "); break; case Token.MOD: result.append(" %= "); break; case Token.BITOR: result.append(" |= "); break; case Token.BITXOR: result.append(" ^= "); break; case Token.BITAND: result.append(" &= "); break; case Token.LSH: result.append(" <<= "); break; case Token.RSH: result.append(" >>= "); break; case Token.URSH: result.append(" >>>= "); break; } break; case Token.HOOK: result.append(" ? "); break; case Token.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case Token.COLON: if (nextIs(source, length, i, Token.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case Token.OR: result.append(" || "); break; case Token.AND: result.append(" && "); break; case Token.BITOR: result.append(" | "); break; case Token.BITXOR: result.append(" ^ "); break; case Token.BITAND: result.append(" & "); break; case Token.EQOP: ++i; switch(source.charAt(i)) { case Token.SHEQ: result.append(" === "); break; case Token.SHNE: result.append(" !== "); break; case Token.EQ: result.append(" == "); break; case Token.NE: result.append(" != "); break; } break; case Token.RELOP: ++i; switch(source.charAt(i)) { case Token.LE: result.append(" <= "); break; case Token.LT: result.append(" < "); break; case Token.GE: result.append(" >= "); break; case Token.GT: result.append(" > "); break; case Token.INSTANCEOF: result.append(" instanceof "); break; } break; case Token.SHOP: ++i; switch(source.charAt(i)) { case Token.LSH: result.append(" << "); break; case Token.RSH: result.append(" >> "); break; case Token.URSH: result.append(" >>> "); break; } break; case Token.UNARYOP: ++i; switch(source.charAt(i)) { case Token.TYPEOF: result.append("typeof "); break; case Token.VOID: result.append("void "); break; case Token.NOT: result.append('!'); break; case Token.BITNOT: result.append('~'); break; case Token.ADD: result.append('+'); break; case Token.SUB: result.append('-'); break; } break; case Token.INC: result.append("++"); break; case Token.DEC: result.append("--"); break; case Token.ADD: result.append(" + "); break; case Token.SUB: result.append(" - "); break; case Token.MUL: result.append(" * "); break; case Token.DIV: result.append(" / "); break; case Token.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (!nested && !justbody) result.append('\n'); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/26830fb45b7c82a7760eb0041f4a6ad5b88bfc73/Parser.java/clean/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 443, 11100, 67, 86, 12, 921, 3749, 8628, 2471, 16, 4766, 565, 1250, 4764, 16, 1250, 2537, 3432, 16, 4766, 565, 1033, 8526, 1705, 751, 16, 509, 3504, 16, 4766, 565, 509, 3504, 14001, 16, 509, 648, 14001, 16, 4766, 565, 6674, 563, 13, 565, 288, 3639, 514, 1084, 31, 3639, 1033, 8526, 10582, 273, 446, 31, 3639, 309, 261, 10787, 8628, 2471, 422, 446, 13, 288, 5411, 1084, 273, 446, 31, 3639, 289, 469, 309, 261, 10787, 8628, 2471, 1276, 514, 13, 288, 5411, 1084, 273, 261, 780, 13, 10787, 8628, 2471, 31, 3639, 289, 469, 288, 5411, 10582, 273, 261, 921, 63, 5717, 10787, 8628, 2471, 31, 5411, 1084, 273, 261, 780, 13, 3624, 3205, 63, 20, 15533, 3639, 289, 3639, 309, 261, 3168, 422, 446, 13, 288, 327, 31, 289, 3639, 509, 769, 273, 1084, 18, 2469, 5621, 3639, 309, 261, 2469, 422, 374, 13, 288, 327, 31, 289, 3639, 368, 348, 347, 91, 2430, 316, 1084, 16, 364, 10450, 18, 3639, 368, 487, 3463, 1300, 1149, 3639, 309, 261, 1188, 1830, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 2469, 2773, 397, 769, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 965, 77, 13, 288, 7734, 368, 3609, 716, 1147, 774, 461, 903, 2321, 3308, 1772, 18, 1188, 26590, 7734, 368, 353, 638, 18, 7734, 514, 1147, 529, 273, 446, 31, 7734, 309, 261, 1345, 18, 1188, 1557, 13, 288, 10792, 1147, 529, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 443, 11100, 67, 86, 12, 921, 3749, 8628, 2471, 16, 4766, 565, 1250, 4764, 16, 1250, 2537, 3432, 16, 4766, 565, 1033, 8526, 1705, 751, 16, 509, 3504, 16, 4766, 565, 509, 3504, 14001, 16, 509, 648, 14001, 16, 4766, 565, 6674, 563, 13, 565, 288, 3639, 514, 1084, 31, 3639, 1033, 8526, 10582, 273, 446, 31, 3639, 309, 261, 10787, 8628, 2471, 422, 446, 13, 288, 5411, 1084, 273, 446, 31, 3639, 289, 469, 309, 261, 10787, 8628, 2471, 1276, 514, 13, 288, 5411, 1084, 273, 261, 780, 13, 10787, 8628, 2471, 31, 3639, 289, 469, 288, 5411, 10582, 273, 261, 921, 63, 5717, 10787, 8628, 2471, 31, 5411, 1084, 273, 261, 780, 13, 2 ]
else if (count > delta) count = delta; end = begin + count;
} else if (dcount > (length - begin)) { count = length - begin; } else { count = (long)dcount; }
private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1645, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 20, 19226, 3639, 1645, 679, 31, 3639, 1645, 3622, 31, 3639, 1645, 1056, 31, 3639, 309, 261, 10086, 411, 374, 13, 288, 5411, 2376, 1011, 769, 31, 5411, 309, 261, 10086, 411, 374, 13, 7734, 2376, 273, 374, 31, 3639, 289, 469, 309, 261, 10086, 405, 769, 13, 288, 5411, 2376, 273, 769, 31, 3639, 289, 3639, 1501, 71, 413, 31, 3639, 1748, 4037, 326, 2205, 1237, 628, 279, 1056, 1368, 279, 284, 802, 2767, 770, 18, 1195, 3639, 3622, 273, 769, 300, 2376, 31, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 1056, 273, 3622, 31, 5411, 679, 273, 769, 31, 3639, 289, 469, 288, 5411, 1056, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 21, 19226, 5411, 309, 261, 1883, 411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1645, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 2 ]
throw new ProjectBuildingException( "Missing parent POM: " + parent.getGroupId() + ":" + parent.getArtifactId() + "-" +
throw new ProjectBuildingException( "Missing parent POM: " + parent.getGroupId() + ":" + parent.getArtifactId() + "-" +
private File findParentModel( Parent parent, Set remoteRepositories, ArtifactRepository localRepository ) throws ProjectBuildingException { Artifact artifact = new DefaultArtifact( parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), "pom" ); try { artifactResolver.resolve( artifact, remoteRepositories, localRepository ); } catch ( ArtifactResolutionException e ) { // @todo use parent.toString() if modello could generate it, or specify in a code segment throw new ProjectBuildingException( "Missing parent POM: " + parent.getGroupId() + ":" + parent.getArtifactId() + "-" + parent.getVersion(), e ); } return artifact.getFile(); }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/8d339b01b849d1a6f51e989a14def9d1d81c903e/DefaultMavenProjectBuilder.java/clean/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 1104, 3054, 1488, 12, 9520, 982, 16, 1000, 2632, 18429, 16, 14022, 3305, 1191, 3305, 262, 3639, 1216, 5420, 16713, 503, 565, 288, 3639, 14022, 6462, 273, 394, 2989, 7581, 12, 982, 18, 588, 8722, 9334, 4766, 5375, 982, 18, 588, 7581, 548, 9334, 4766, 1171, 982, 18, 588, 1444, 9334, 4766, 1171, 315, 84, 362, 6, 11272, 3639, 775, 3639, 288, 5411, 6462, 4301, 18, 10828, 12, 6462, 16, 2632, 18429, 16, 1191, 3305, 11272, 3639, 289, 3639, 1044, 261, 14022, 11098, 503, 425, 262, 3639, 288, 5411, 368, 632, 9012, 999, 982, 18, 10492, 1435, 309, 938, 383, 3377, 2103, 518, 16, 578, 4800, 316, 279, 981, 3267, 5411, 604, 394, 5420, 16713, 503, 12, 315, 4841, 982, 453, 1872, 30, 315, 397, 1171, 982, 18, 588, 8722, 1435, 397, 6153, 397, 1171, 982, 18, 588, 7581, 548, 1435, 397, 7514, 397, 1171, 982, 18, 588, 1444, 9334, 425, 11272, 3639, 289, 3639, 327, 6462, 18, 29925, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 1104, 3054, 1488, 12, 9520, 982, 16, 1000, 2632, 18429, 16, 14022, 3305, 1191, 3305, 262, 3639, 1216, 5420, 16713, 503, 565, 288, 3639, 14022, 6462, 273, 394, 2989, 7581, 12, 982, 18, 588, 8722, 9334, 4766, 5375, 982, 18, 588, 7581, 548, 9334, 4766, 1171, 982, 18, 588, 1444, 9334, 4766, 1171, 315, 84, 362, 6, 11272, 3639, 775, 3639, 288, 5411, 6462, 4301, 18, 10828, 12, 6462, 16, 2632, 18429, 16, 1191, 3305, 11272, 3639, 289, 3639, 1044, 261, 14022, 11098, 503, 425, 262, 3639, 288, 5411, 368, 632, 9012, 999, 982, 18, 10492, 1435, 309, 938, 383, 3377, 2103, 518, 16, 578, 4800, 316, 279, 981, 3267, 5411, 604, 394, 5420, 16713, 503, 2 ]
errorViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) {
errorViewer .addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) {
protected Control createDialogArea(Composite parent) { initializeDialogUnits(parent); Composite topArea = (Composite) super.createDialogArea(parent); errorViewer = new TableViewer(topArea, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); errorViewer.setSorter(getViewerSorter()); errorViewer.getControl().addMouseListener(new MouseAdapter() { /* (non-Javadoc) * @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent) */ public void mouseDoubleClick(MouseEvent e) { openErrorDialog(); } }); errorViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { clearButton.setEnabled(!errorViewer.getSelection().isEmpty()); showButton.setEnabled(getSingleSelection() != null); } }); Control control = errorViewer.getControl(); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); data.widthHint = convertWidthInCharsToPixels(60); data.heightHint = convertHeightInCharsToPixels(10); control.setLayoutData(data); initContentProvider(); initLabelProvider(); applyDialogFont(parent); return topArea; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0feab0514a7f8351ffa209ded50efa4bb764b563/ErrorNotificationDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 11160, 6353, 7537, 12, 2938, 1769, 202, 202, 9400, 1760, 5484, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 2938, 1769, 202, 202, 1636, 18415, 273, 394, 3555, 18415, 12, 3669, 5484, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 38, 7954, 1769, 202, 202, 1636, 18415, 18, 542, 24952, 12, 588, 18415, 24952, 10663, 202, 202, 1636, 18415, 18, 588, 3367, 7675, 1289, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 5328, 88, 18, 5989, 18, 9186, 4216, 7, 11697, 5265, 6563, 12, 3341, 18, 20416, 18, 5328, 88, 18, 5989, 18, 9186, 1133, 13, 9506, 1195, 1082, 202, 482, 918, 7644, 5265, 6563, 12, 9186, 1133, 425, 13, 288, 9506, 202, 3190, 668, 6353, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 1636, 18415, 18, 1289, 6233, 5033, 2223, 12, 2704, 467, 6233, 5033, 2223, 1435, 288, 1082, 202, 482, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 9506, 202, 8507, 3616, 18, 542, 1526, 12, 5, 1636, 18415, 18, 588, 6233, 7675, 291, 1921, 10663, 9506, 202, 4500, 3616, 18, 542, 1526, 12, 588, 5281, 6233, 1435, 480, 446, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 3367, 3325, 273, 555, 18415, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 11160, 6353, 7537, 12, 2938, 1769, 202, 202, 9400, 1760, 5484, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 2938, 1769, 202, 202, 1636, 18415, 273, 394, 3555, 18415, 12, 3669, 5484, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 38, 7954, 1769, 202, 202, 1636, 18415, 18, 542, 24952, 12, 588, 18415, 24952, 10663, 202, 202, 1636, 18415, 18, 588, 3367, 7675, 1289, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 2 ]
log.info(choices);
public NSArray availableElements(){ if(_availableElements==null){ Object choices = valueForBinding("possibleChoices"); log.info(choices); if(choices != null) { NSMutableArray keyChoices = new NSMutableArray(); if(choices instanceof NSArray) { for(Enumeration e = ((NSArray)choices).objectEnumerator(); e.hasMoreElements(); ) { NSDictionary dict = (NSDictionary)e.nextElement(); String key = (String)dict.allKeys().lastObject(); String value = (String)dict.objectForKey(key); keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value))); } } else if(choices instanceof NSDictionary) { NSArray keys = ((NSDictionary)choices).allKeys(); keys = ERXArrayUtilities.sortedArraySortedWithKey(keys, "toString"); for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) { String key = (String)e.nextElement(); String value = (String)((NSDictionary)choices).objectForKey(key); keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value))); } } _availableElements = keyChoices; } if(_availableElements==null){ if(log.isDebugEnabled()) log.debug("key ="+key()); String keyForAvailableObjects = key()+"Available"; entityForReportName = (String)valueForBinding("entityNameForReport"); _availableElements = ERDirectToWeb.displayableArrayForKeyPathArray((NSArray)object().valueForKeyPath(keyForAvailableObjects), entityForReportName, ERXLocalizer.localizerForSession(session()).language()); } if(log.isDebugEnabled()) log.debug("availableElements = "+_availableElements); } return _availableElements; }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/42aed79f7f3169bc5776c7d1f6bbe7ff51e4de6a/ERDEditStringWithChoices.java/buggy/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERDEditStringWithChoices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11472, 1076, 2319, 3471, 1435, 95, 3639, 309, 24899, 5699, 3471, 631, 2011, 15329, 5411, 1033, 7246, 273, 460, 1290, 5250, 2932, 12708, 17442, 8863, 15604, 309, 12, 11937, 480, 446, 13, 288, 7734, 423, 7303, 3050, 1076, 498, 17442, 273, 394, 423, 7303, 3050, 1076, 5621, 7734, 309, 12, 11937, 1276, 11472, 1076, 13, 288, 10792, 364, 12, 21847, 425, 273, 14015, 3156, 1076, 13, 11937, 2934, 1612, 3572, 7385, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 13491, 423, 9903, 3192, 2065, 273, 261, 3156, 10905, 13, 73, 18, 4285, 1046, 5621, 13491, 514, 498, 273, 261, 780, 13, 1576, 18, 454, 2396, 7675, 2722, 921, 5621, 13491, 514, 460, 273, 261, 780, 13, 1576, 18, 1612, 19759, 12, 856, 1769, 13491, 498, 17442, 18, 1289, 921, 12, 2704, 4232, 60, 13841, 4154, 12, 856, 16, 4232, 60, 2042, 1824, 18, 2972, 2042, 1824, 7675, 3729, 1235, 780, 19759, 24502, 12, 1132, 3719, 1769, 10792, 289, 7734, 289, 469, 309, 12, 11937, 1276, 423, 9903, 3192, 13, 288, 10792, 11472, 1076, 1311, 273, 14015, 3156, 10905, 13, 11937, 2934, 454, 2396, 5621, 10792, 1311, 273, 4232, 60, 1076, 11864, 18, 10350, 1076, 11739, 1190, 653, 12, 2452, 16, 315, 10492, 8863, 10792, 364, 12, 21847, 425, 273, 1311, 18, 1612, 3572, 7385, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 13491, 514, 498, 273, 261, 780, 13, 73, 18, 4285, 1046, 5621, 13491, 514, 460, 273, 261, 780, 13, 12443, 3156, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11472, 1076, 2319, 3471, 1435, 95, 3639, 309, 24899, 5699, 3471, 631, 2011, 15329, 5411, 1033, 7246, 273, 460, 1290, 5250, 2932, 12708, 17442, 8863, 15604, 309, 12, 11937, 480, 446, 13, 288, 7734, 423, 7303, 3050, 1076, 498, 17442, 273, 394, 423, 7303, 3050, 1076, 5621, 7734, 309, 12, 11937, 1276, 11472, 1076, 13, 288, 10792, 364, 12, 21847, 425, 273, 14015, 3156, 1076, 13, 11937, 2934, 1612, 3572, 7385, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 13491, 423, 9903, 3192, 2065, 273, 261, 3156, 10905, 13, 73, 18, 4285, 1046, 5621, 13491, 514, 498, 273, 261, 780, 13, 1576, 18, 454, 2396, 7675, 2722, 921, 5621, 13491, 514, 460, 273, 261, 780, 13, 2 ]
public void testClone() {
public void testClone() throws Exception {
public void testClone() { ISingleElectron radical = builder.newSingleElectron(); Object clone = radical.clone(); assertNotNull(clone); assertTrue(clone instanceof ISingleElectron); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/2b55a607674535cd8492e3539d8f3dce16fc3b92/SingleElectronTest.java/buggy/src/org/openscience/cdk/test/SingleElectronTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 1435, 1216, 1185, 288, 3639, 4437, 1714, 28621, 6719, 1706, 273, 2089, 18, 2704, 5281, 28621, 5621, 3639, 1033, 3236, 273, 6719, 1706, 18, 14056, 5621, 3639, 25395, 12, 14056, 1769, 3639, 1815, 5510, 12, 14056, 1276, 4437, 1714, 28621, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 1435, 1216, 1185, 288, 3639, 4437, 1714, 28621, 6719, 1706, 273, 2089, 18, 2704, 5281, 28621, 5621, 3639, 1033, 3236, 273, 6719, 1706, 18, 14056, 5621, 3639, 25395, 12, 14056, 1769, 3639, 1815, 5510, 12, 14056, 1276, 4437, 1714, 28621, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} catch (SVNClientException e) {
} catch (SVNException e) {
private IResource[] findChanges(IResource resource, int depth) throws TeamException { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IWorkspaceRoot workspaceRoot = workspace.getRoot(); remoteSyncStateStore.flushBytes(resource, depth); ISVNClientAdapter client = SVNProviderPlugin.getPlugin().createSVNClient(); boolean descend = (depth == IResource.DEPTH_INFINITE)? true : false; try { StatusAndInfoCommand cmd = new StatusAndInfoCommand(SVNWorkspaceRoot.getSVNResourceFor( resource ), descend, false, true ); cmd.execute( client ); RemoteResourceStatus[] statuses = cmd.getRemoteResourceStatuses(); List result = new ArrayList(statuses.length); for (int i = 0; i < statuses.length; i++) { IResource changedResource = statuses[i].getResource(); if ((changedResource != null) && isSupervised(changedResource)) { result.add(changedResource); remoteSyncStateStore.setBytes( statuses[i].getResource(), statuses[i].getBytes() ); } } return (IResource[]) result.toArray(new IResource[result.size()]); } catch (SVNClientException e) { throw new TeamException("Error getting status for resource " + resource + " " + e.getMessage(), e); } }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/f19497b6cb60174f7e9992c588cab7207ecdd889/SVNWorkspaceSubscriber.java/buggy/subclipse/core/src/org/tigris/subversion/subclipse/core/sync/SVNWorkspaceSubscriber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 1420, 8526, 1104, 7173, 12, 45, 1420, 1058, 16, 509, 3598, 13, 1216, 10434, 503, 288, 3639, 467, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 3639, 467, 8241, 2375, 6003, 2375, 273, 6003, 18, 588, 2375, 5621, 7734, 2632, 4047, 1119, 2257, 18, 11330, 2160, 12, 3146, 16, 3598, 1769, 3639, 4437, 58, 50, 1227, 4216, 1004, 273, 29537, 50, 2249, 3773, 18, 588, 3773, 7675, 2640, 23927, 50, 1227, 5621, 3639, 1250, 10653, 273, 261, 5979, 422, 467, 1420, 18, 27479, 67, 706, 7263, 5398, 9945, 638, 294, 629, 31, 3639, 775, 288, 5411, 2685, 1876, 966, 2189, 1797, 273, 394, 2685, 1876, 966, 2189, 12, 23927, 50, 8241, 2375, 18, 588, 23927, 50, 1420, 1290, 12, 1058, 262, 16, 10653, 16, 629, 16, 638, 11272, 5411, 1797, 18, 8837, 12, 1004, 11272, 5411, 6304, 1420, 1482, 8526, 13516, 273, 1797, 18, 588, 5169, 1420, 15220, 5621, 5411, 987, 563, 273, 394, 2407, 12, 21655, 18, 2469, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13516, 18, 2469, 31, 277, 27245, 288, 2398, 202, 45, 1420, 3550, 1420, 273, 13516, 63, 77, 8009, 588, 1420, 5621, 6862, 7734, 309, 14015, 6703, 1420, 480, 446, 13, 597, 353, 8051, 26779, 12, 6703, 1420, 3719, 7734, 288, 1171, 202, 2088, 18, 1289, 12, 6703, 1420, 1769, 1171, 202, 7222, 4047, 1119, 2257, 18, 542, 2160, 12, 13516, 63, 77, 8009, 588, 1420, 9334, 13516, 63, 77, 8009, 588, 2160, 1435, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 1420, 8526, 1104, 7173, 12, 45, 1420, 1058, 16, 509, 3598, 13, 1216, 10434, 503, 288, 3639, 467, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 3639, 467, 8241, 2375, 6003, 2375, 273, 6003, 18, 588, 2375, 5621, 7734, 2632, 4047, 1119, 2257, 18, 11330, 2160, 12, 3146, 16, 3598, 1769, 3639, 4437, 58, 50, 1227, 4216, 1004, 273, 29537, 50, 2249, 3773, 18, 588, 3773, 7675, 2640, 23927, 50, 1227, 5621, 3639, 1250, 10653, 273, 261, 5979, 422, 467, 1420, 18, 27479, 67, 706, 7263, 5398, 9945, 638, 294, 629, 31, 3639, 775, 288, 5411, 2685, 1876, 966, 2189, 1797, 273, 394, 2685, 1876, 966, 2189, 12, 23927, 50, 8241, 2375, 18, 588, 23927, 2 ]
} catch (Exception excptn) { excptn.printStackTrace(getErrorStream());
/*} catch (Exception excptn) { excptn.printStackTrace(getErrorStream());*/
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // volatile ID last_func; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); ruby.pushClass(); RubyModule wrapper = ruby.getWrapper(); ruby.setCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby.setWrapper(null); } else { /* load in anonymous module as toplevel */ ruby.setWrapper(RubyModule.newModule(ruby)); ruby.setRubyClass(ruby.getWrapper()); self = ruby.getRubyTopSelf().rbClone(); self.extendObject(ruby.getRubyClass()); ruby.getCRef().push(ruby.getWrapper()); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new CRefNode(ruby.getRubyClass(), null)); ruby.getScope().push(); /* default visibility is private at loading toplevel */ ruby.setActMethodScope(Constants.SCOPE_PRIVATE); String last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); ruby.getRubyParser().compileString(scriptName.getValue(), source, 0); // --- ruby.setInEval(ruby.getInEval() - 1); self.evalNode(ruby.getParserHelper().getEvalTree()); } catch (Exception excptn) { excptn.printStackTrace(getErrorStream()); } finally { ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setCRef(savedCRef); ruby.getScope().pop(); ruby.getRubyFrame().pop(); ruby.popClass(); RubyVarmap.pop(ruby); ruby.setWrapper(wrapper); } /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/RubyRuntime.java/buggy/org/jruby/runtime/RubyRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 3651, 12, 54, 10340, 780, 31008, 16, 19817, 780, 1084, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 385, 1957, 907, 5198, 39, 1957, 273, 22155, 18, 588, 39, 1957, 5621, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 309, 261, 4113, 597, 22155, 18, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 3639, 368, 31548, 1599, 1142, 67, 644, 31, 3639, 368, 22155, 67, 370, 1376, 273, 2238, 20154, 31, 1748, 3387, 1195, 3639, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 22155, 18, 6206, 797, 5621, 3639, 19817, 3120, 4053, 273, 22155, 18, 588, 3611, 5621, 3639, 22155, 18, 542, 39, 1957, 12, 27768, 18, 588, 3401, 39, 1957, 10663, 3639, 309, 16051, 4113, 13, 288, 5411, 22155, 18, 8869, 12, 24, 1769, 1748, 1410, 10182, 2552, 919, 1195, 5411, 22155, 18, 542, 54, 10340, 797, 12, 27768, 18, 588, 4818, 7675, 588, 921, 797, 10663, 5411, 22155, 18, 542, 3611, 12, 2011, 1769, 3639, 289, 469, 288, 5411, 1748, 1262, 316, 13236, 1605, 487, 28999, 1195, 5411, 22155, 18, 542, 3611, 12, 54, 10340, 3120, 18, 2704, 3120, 12, 27768, 10019, 5411, 22155, 18, 542, 54, 10340, 797, 12, 27768, 18, 588, 3611, 10663, 5411, 365, 273, 22155, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 3651, 12, 54, 10340, 780, 31008, 16, 19817, 780, 1084, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 385, 1957, 907, 5198, 39, 1957, 273, 22155, 18, 588, 39, 1957, 5621, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 309, 261, 4113, 597, 22155, 18, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 3639, 368, 31548, 1599, 1142, 67, 644, 31, 3639, 368, 22155, 67, 370, 1376, 273, 2238, 20154, 31, 1748, 3387, 1195, 3639, 2 ]
return;
return;
static void handleStylesheets(HttpServletRequest req, String action) { String schemaID=null; String xslFolder=null; String fileName=null; AppUser user = SecurityUtil.getUser(req, Names.USER_ATT); String user_name=null; if (user!=null) user_name = user.getUserName(); xslFolder=Properties.xslFolder; //props.getString("xsl.folder"); if (!xslFolder.endsWith(File.separator)) xslFolder = xslFolder + File.separator; if (action.equals( Names.XSL_ADD_ACTION) ) { HashMap req_params=null; try{ if (!SecurityUtil.hasPerm(user_name, "/" + Names.ACL_STYLESHEETS_PATH, "i")){ req.setAttribute(Names.ERROR_ATT, "You don't have permissions to insert stylesheets!"); return; } } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Cannot read permissions: " + e.toString()); return; } try{ MultipartFileUpload fu = new MultipartFileUpload(false); fu.processMultiPartRequest(req); req_params = fu.getRequestParams(); fu.setFolder(xslFolder); fileName=fu.saveFile(); //FileUpload fu = new FileUpload(xslFolder); //fu.uploadFile(req); //fileName=fu.getFileName(); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Uploading file: " + e.toString()); return; } if (fileName==null){ req.setAttribute(Names.ERROR_ATT, "Filename is not defined"); return; } String schema= (String)req_params.get("SCHEMA"); String type= (String)req_params.get("CONTENT_TYPE"); String descr= (String)req_params.get("DESCRIPTION"); if (Utils.isNullStr(schema)){ req.setAttribute(Names.ERROR_ATT, "XML schema cannot be empty."); return; } try{ dbM= GDEMServices.getDbModule(); schemaID=dbM.getSchemaID(schema); if (schemaID==null) schemaID=dbM.addSchema(schema, null); dbM.addStylesheet(schemaID, type, fileName, descr); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Error while saving info into database: " + e.toString()); return; } } else if (action.equals( Names.XSL_UPD_ACTION) ) { HashMap req_params=null; try{ if (!SecurityUtil.hasPerm(user_name, "/" + Names.ACL_STYLESHEETS_PATH, "u")){ req.setAttribute(Names.ERROR_ATT, "You don't have permissions to update stylesheets!"); return; } } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Cannot read permissions: " + e.toString()); return; } try{ MultipartFileUpload fu = new MultipartFileUpload(false); fu.processMultiPartRequest(req); req_params = fu.getRequestParams(); fu.setFolder(xslFolder); fileName=fu.saveFile(); //FileUpload fu = new FileUpload(xformFolder); //fu.uploadFile(req); //fileName=fu.getFileName(); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Uploading file: " + e.toString()); return; } if (req_params==null){ req.setAttribute(Names.ERROR_ATT, "Cannot read request parameters."); return; } String schema_id= (String)req_params.get("SCHEMA_ID"); String xsl_id= (String)req_params.get("XSL_ID"); String descr= (String)req_params.get("DESCRIPTION"); String content_type= (String)req_params.get("CONTENT_TYPE"); String current_file= (String)req_params.get("FILE_NAME"); if (Utils.isNullStr(schema_id)){ req.setAttribute(Names.ERROR_ATT, "XML schema id cannot be empty."); return; } if (Utils.isNullStr(xsl_id)){ req.setAttribute(Names.ERROR_ATT, "Stylesheet id cannot be empty."); return; } fileName = (fileName==null)?current_file:fileName; try{ dbM= GDEMServices.getDbModule(); dbM.updateStylesheet(xsl_id, schema_id, descr, fileName, content_type); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Error while saving info into database: " + e.toString()); return; } } else if (action.equals( Names.XSL_DEL_ACTION) ) { try{ if (!SecurityUtil.hasPerm(user_name, "/" + Names.ACL_STYLESHEETS_PATH, "d")){ req.setAttribute(Names.ERROR_ATT, "You don't have permissions to delete stylesheets!"); return; } } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Cannot read permissions: " + e.toString()); return; } String del_id= (String)req.getParameter(Names.XSL_DEL_ID); //schemaID= (String)req.getParameter(Names.SCHEMA_ID); if (Utils.isNullStr(del_id)){ req.setAttribute(Names.ERROR_ATT, "Stylesheet ID cannot be empty."); return; } try{ dbM= GDEMServices.getDbModule(); HashMap hash = dbM.getStylesheetInfo(del_id); fileName = (String)hash.get("xsl"); schemaID= (String)req.getParameter("schema_id"); dbM.removeStylesheet(del_id); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Error while deleting stylesheet from database: " + e.toString()); return; } try{ Utils.deleteFile(xslFolder + fileName); } catch (Exception e){ req.setAttribute(Names.ERROR_ATT, "Cannot delete XSL file: " + e.toString()); return; } } req.setAttribute(Names.SCHEMA_ID, schemaID); }
6392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6392/0aeb89ca42bc37b52765979f35a82721fb09ea1b/SaveHandler.java/buggy/src/eionet/gdem/conversion/ssr/SaveHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1640, 9725, 10245, 12, 2940, 18572, 1111, 16, 514, 1301, 13, 288, 377, 514, 1963, 734, 33, 2011, 31, 377, 514, 20791, 3899, 33, 2011, 31, 377, 514, 3968, 33, 2011, 31, 1850, 4677, 1299, 729, 273, 6036, 1304, 18, 588, 1299, 12, 3658, 16, 5276, 18, 4714, 67, 789, 56, 1769, 21114, 514, 729, 67, 529, 33, 2011, 31, 202, 282, 309, 261, 1355, 5, 33, 2011, 13, 3639, 729, 67, 529, 273, 729, 18, 588, 15296, 5621, 2398, 20791, 3899, 33, 2297, 18, 30903, 3899, 31, 368, 9693, 18, 588, 780, 2932, 30903, 18, 5609, 8863, 377, 309, 16051, 30903, 3899, 18, 5839, 1190, 12, 812, 18, 11287, 3719, 3639, 20791, 3899, 273, 20791, 3899, 397, 1387, 18, 11287, 31, 377, 309, 261, 1128, 18, 14963, 12, 5276, 18, 60, 4559, 67, 8355, 67, 12249, 13, 262, 288, 3639, 4317, 1111, 67, 2010, 33, 2011, 31, 3639, 775, 95, 1850, 309, 16051, 4368, 1304, 18, 5332, 9123, 12, 1355, 67, 529, 16, 4016, 397, 5276, 18, 9486, 67, 15066, 2664, 41, 1584, 55, 67, 4211, 16, 315, 77, 6, 3719, 95, 2398, 1111, 18, 542, 1499, 12, 1557, 18, 3589, 67, 789, 56, 16, 315, 6225, 2727, 1404, 1240, 4371, 358, 2243, 30163, 4442, 1769, 2398, 327, 31, 11794, 289, 3639, 289, 3639, 1044, 261, 503, 425, 15329, 6647, 1111, 18, 542, 1499, 12, 1557, 18, 3589, 67, 789, 56, 16, 315, 4515, 855, 4371, 30, 315, 397, 425, 18, 10492, 10663, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1640, 9725, 10245, 12, 2940, 18572, 1111, 16, 514, 1301, 13, 288, 377, 514, 1963, 734, 33, 2011, 31, 377, 514, 20791, 3899, 33, 2011, 31, 377, 514, 3968, 33, 2011, 31, 1850, 4677, 1299, 729, 273, 6036, 1304, 18, 588, 1299, 12, 3658, 16, 5276, 18, 4714, 67, 789, 56, 1769, 21114, 514, 729, 67, 529, 33, 2011, 31, 202, 282, 309, 261, 1355, 5, 33, 2011, 13, 3639, 729, 67, 529, 273, 729, 18, 588, 15296, 5621, 2398, 20791, 3899, 33, 2297, 18, 30903, 3899, 31, 368, 9693, 18, 588, 780, 2932, 30903, 18, 5609, 8863, 377, 309, 16051, 30903, 3899, 18, 5839, 1190, 12, 812, 18, 11287, 3719, 3639, 20791, 3899, 273, 20791, 2 ]
this.message = JMController.getMessage("admin.message.oldpasswordincorrect", request.getLocale());
String message = JMController.getMessage("admin.message.oldpasswordincorrect", request.getLocale()); next.addObject("message", message);
private void changePassword(HttpServletRequest request, ModelAndView next) throws Exception { next.addObject(WikiServlet.PARAMETER_ACTION, WikiServlet.ACTION_ADMIN); next.addObject(WikiServlet.PARAMETER_SPECIAL, new Boolean(true)); next.addObject(JMController.PARAMETER_TITLE, "Special:Admin"); try { String oldPassword = request.getParameter("oldPassword"); String newPassword = request.getParameter("newPassword"); String confirmPassword = request.getParameter("confirmPassword"); if (!Encryption.getEncryptedProperty(Environment.PROP_BASE_ADMIN_PASSWORD).equals(oldPassword)) { this.message = JMController.getMessage("admin.message.oldpasswordincorrect", request.getLocale()); } else if (!newPassword.equals(confirmPassword)) { this.message = JMController.getMessage("admin.message.passwordsnomatch", request.getLocale()); } else { Encryption.setEncryptedProperty(Environment.PROP_BASE_ADMIN_PASSWORD, newPassword); Environment.saveProperties(); this.message = JMController.getMessage("admin.message.passwordchanged", request.getLocale()); } } catch (Exception e) { logger.error("Failure while changing password", e); this.message = "Failure while changing password: " + e.getMessage(); } }
50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/833f6fd2eb2ba7b5f7e0cb4c70619b7f11c78bc0/AdminController.java/buggy/src/java/org/jmwiki/servlets/AdminController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2549, 3913, 12, 2940, 18572, 590, 16, 3164, 1876, 1767, 1024, 13, 1216, 1185, 288, 202, 202, 4285, 18, 1289, 921, 12, 25438, 4745, 18, 9819, 67, 12249, 16, 28268, 4745, 18, 12249, 67, 15468, 1769, 202, 202, 4285, 18, 1289, 921, 12, 25438, 4745, 18, 9819, 67, 13847, 6365, 16, 394, 3411, 12, 3767, 10019, 202, 202, 4285, 18, 1289, 921, 12, 46, 49, 2933, 18, 9819, 67, 14123, 16, 315, 12193, 30, 4446, 8863, 202, 202, 698, 288, 1082, 202, 780, 1592, 3913, 273, 590, 18, 588, 1662, 2932, 1673, 3913, 8863, 1082, 202, 780, 394, 3913, 273, 590, 18, 588, 1662, 2932, 2704, 3913, 8863, 1082, 202, 780, 6932, 3913, 273, 590, 18, 588, 1662, 2932, 10927, 3913, 8863, 1082, 202, 430, 16051, 7894, 18, 588, 14678, 1396, 12, 5494, 18, 15811, 67, 8369, 67, 15468, 67, 13784, 2934, 14963, 12, 1673, 3913, 3719, 288, 9506, 202, 2211, 18, 2150, 273, 804, 49, 2933, 18, 24906, 2932, 3666, 18, 2150, 18, 1673, 3664, 267, 6746, 3113, 590, 18, 588, 3916, 10663, 1082, 202, 97, 469, 309, 16051, 2704, 3913, 18, 14963, 12, 10927, 3913, 3719, 288, 9506, 202, 2211, 18, 2150, 273, 804, 49, 2933, 18, 24906, 2932, 3666, 18, 2150, 18, 3664, 8134, 362, 505, 3113, 590, 18, 588, 3916, 10663, 1082, 202, 97, 469, 288, 9506, 202, 7894, 18, 542, 14678, 1396, 12, 5494, 18, 15811, 67, 8369, 67, 15468, 67, 13784, 16, 394, 3913, 1769, 9506, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2549, 3913, 12, 2940, 18572, 590, 16, 3164, 1876, 1767, 1024, 13, 1216, 1185, 288, 202, 202, 4285, 18, 1289, 921, 12, 25438, 4745, 18, 9819, 67, 12249, 16, 28268, 4745, 18, 12249, 67, 15468, 1769, 202, 202, 4285, 18, 1289, 921, 12, 25438, 4745, 18, 9819, 67, 13847, 6365, 16, 394, 3411, 12, 3767, 10019, 202, 202, 4285, 18, 1289, 921, 12, 46, 49, 2933, 18, 9819, 67, 14123, 16, 315, 12193, 30, 4446, 8863, 202, 202, 698, 288, 1082, 202, 780, 1592, 3913, 273, 590, 18, 588, 1662, 2932, 1673, 3913, 8863, 1082, 202, 780, 394, 3913, 273, 590, 18, 588, 1662, 2932, 2704, 3913, 8863, 1082, 202, 780, 6932, 3913, 273, 590, 2 ]
public void removeChangeListener (ChangeListener listener)
public void removeChangeListener(ChangeListener listener)
public void removeChangeListener (ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/419ad44a4a7e3f6d25e69429ca5f02d1fbfdc8e3/DefaultBoundedRangeModel.java/clean/javax/swing/DefaultBoundedRangeModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 15744, 12, 15744, 2991, 13, 225, 288, 565, 2991, 682, 18, 4479, 261, 15744, 18, 1106, 16, 2991, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 15744, 12, 15744, 2991, 13, 225, 288, 565, 2991, 682, 18, 4479, 261, 15744, 18, 1106, 16, 2991, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private JPanel createIncludePanel() {
private JPanel createIncludePanel() { includeModel = new PowerTableModel( new String[] { INCLUDE_COL }, new Class[] { String.class }); includeTable = new JTable(includeModel); includeTable.setPreferredScrollableViewportSize(new Dimension(100, 50)); includeTable.addFocusListener(this);
private JPanel createIncludePanel() { JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_include"))); includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class }); includeTable = new JTable(includeModel); includeTable.setPreferredScrollableViewportSize(new Dimension(100, 70)); JScrollPane scroller = new JScrollPane(includeTable); scroller.setBackground(panel.getBackground()); panel.add(scroller, BorderLayout.CENTER); JPanel buttonPanel = createTableButtonPanel(ADD_INCLUDE, DELETE_INCLUDE); panel.add(buttonPanel, BorderLayout.SOUTH); includeTable.addFocusListener(this); return panel; }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/dd6a93842fc7eabe72133b03b57072ab346b5afb/ProxyControlGui.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 752, 8752, 5537, 1435, 565, 288, 3639, 24048, 6594, 273, 394, 24048, 12, 2704, 30814, 10663, 3639, 6594, 18, 542, 8107, 12, 8107, 1733, 18, 2640, 56, 305, 1259, 8107, 12, 8107, 1733, 18, 2640, 41, 88, 2049, 8107, 9334, 804, 16935, 1989, 18, 588, 607, 780, 2932, 13317, 67, 869, 67, 6702, 6, 3719, 1769, 3639, 2341, 1488, 273, 394, 23783, 1388, 1488, 12, 2704, 514, 8526, 288, 28062, 67, 4935, 19879, 394, 1659, 8526, 288, 514, 18, 1106, 15549, 3639, 2341, 1388, 273, 394, 804, 1388, 12, 6702, 1488, 1769, 3639, 2341, 1388, 18, 542, 16028, 6806, 429, 22743, 1225, 12, 2704, 13037, 12, 6625, 16, 16647, 10019, 7734, 804, 26360, 888, 1539, 273, 394, 804, 26360, 12, 6702, 1388, 1769, 3639, 888, 1539, 18, 542, 8199, 12, 13916, 18, 588, 8199, 10663, 3639, 6594, 18, 1289, 12, 1017, 1539, 16, 30814, 18, 19835, 1769, 7734, 24048, 3568, 5537, 273, 19565, 3616, 5537, 12, 8355, 67, 26003, 16, 8568, 67, 26003, 1769, 3639, 6594, 18, 1289, 12, 5391, 5537, 16, 30814, 18, 3584, 5844, 1769, 7734, 2341, 1388, 18, 1289, 9233, 2223, 12, 2211, 1769, 3639, 327, 6594, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 752, 8752, 5537, 1435, 565, 288, 3639, 24048, 6594, 273, 394, 24048, 12, 2704, 30814, 10663, 3639, 6594, 18, 542, 8107, 12, 8107, 1733, 18, 2640, 56, 305, 1259, 8107, 12, 8107, 1733, 18, 2640, 41, 88, 2049, 8107, 9334, 804, 16935, 1989, 18, 588, 607, 780, 2932, 13317, 67, 869, 67, 6702, 6, 3719, 1769, 3639, 2341, 1488, 273, 394, 23783, 1388, 1488, 12, 2704, 514, 8526, 288, 28062, 67, 4935, 19879, 394, 1659, 8526, 288, 514, 18, 1106, 15549, 3639, 2341, 1388, 273, 394, 804, 1388, 12, 6702, 1488, 1769, 3639, 2341, 1388, 18, 542, 16028, 6806, 429, 22743, 1225, 12, 2704, 13037, 12, 6625, 16, 16647, 10019, 7734, 804, 26360, 888, 1539, 273, 2 ]
iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop);
iCodeTop = addByte(TokenStream.RETSUB, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 1671, 1725, 3631, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 473, 374, 5297, 3631, 277, 1085, 3401, 1769, 4766, 3639, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3155, 1228, 18, 10885, 294, 7734, 277, 1085, 3401, 273, 1089, 31063, 12, 2159, 16, 277, 1085, 3401, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 309, 261, 3624, 18, 588, 559, 1435, 480, 3155, 1228, 18, 7788, 13, 7682, 277, 1085, 3401, 273, 2103, 45, 1085, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 2 ]