rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
throw new PainterException("wrong arguments");
throw new PainterException("bind: wrong arguments");
protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // userdict systemDict.put("userdict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Float(1.0f)); } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Integer(randomNumberGenerator.nextInt(231))); } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { // context.operands.push(new Long(System.currentTimeMillis())); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); return systemDict; }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/d2f614f1cabfa6f585b4e67b060a3e4e49a9f71e/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 81, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 6692, 1527, 11453, 565, 2619, 5014, 18, 458, 2932, 8864, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 8864, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 4739, 11453, 565, 2619, 5014, 18, 458, 2932, 7511, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 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, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 81, 1527, 11453, 2 ]
Logger.minor(this, "Creating InserterException: "+getMessage(mode)+": "+msg);
Logger.minor(this, "Creating InserterException: "+getMessage(mode)+": "+msg, this);
public InserterException(int m, String msg) { super(getMessage(m)+": "+msg); mode = m; Logger.minor(this, "Creating InserterException: "+getMessage(mode)+": "+msg); errorCodes = null; }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/923f3296489fa89e5c0d76399b6de451cd594133/InserterException.java/buggy/src/freenet/client/InserterException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 657, 550, 387, 503, 12, 474, 312, 16, 514, 1234, 13, 288, 202, 202, 9565, 12, 24906, 12, 81, 27921, 6877, 13773, 3576, 1769, 202, 202, 3188, 273, 312, 31, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11092, 657, 550, 387, 503, 30, 13773, 24906, 12, 3188, 27921, 6877, 13773, 3576, 1769, 202, 202, 1636, 6295, 273, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 482, 657, 550, 387, 503, 12, 474, 312, 16, 514, 1234, 13, 288, 202, 202, 9565, 12, 24906, 12, 81, 27921, 6877, 13773, 3576, 1769, 202, 202, 3188, 273, 312, 31, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11092, 657, 550, 387, 503, 30, 13773, 24906, 12, 3188, 27921, 6877, 13773, 3576, 1769, 202, 202, 1636, 6295, 273, 446, 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 ]
tree.setType(definitions.UNIT_TYPE);
tree.setType(nextTypeOf(UNIT));
public Assign Assign(int pos, Tree lhs, Tree rhs) { Assign tree = make.Assign(pos, lhs, rhs); tree.setType(definitions.UNIT_TYPE); return tree; }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/9b2072b0aff697a0ac5cd471ee27e2471d9e968f/TreeGen.java/buggy/sources/scalac/ast/TreeGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12093, 12093, 12, 474, 949, 16, 4902, 8499, 16, 4902, 7711, 13, 288, 3639, 12093, 2151, 273, 1221, 18, 4910, 12, 917, 16, 8499, 16, 7711, 1769, 3639, 2151, 18, 542, 559, 12, 4285, 559, 951, 12, 15736, 10019, 3639, 327, 2151, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12093, 12093, 12, 474, 949, 16, 4902, 8499, 16, 4902, 7711, 13, 288, 3639, 12093, 2151, 273, 1221, 18, 4910, 12, 917, 16, 8499, 16, 7711, 1769, 3639, 2151, 18, 542, 559, 12, 4285, 559, 951, 12, 15736, 10019, 3639, 327, 2151, 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 ]
IManagedDependencyGenerator depGen = type.getDependencyGenerator();
IManagedDependencyGeneratorType depGen = type.getDependencyGenerator(); String[] extensionsList = type.getSourceExtensions(tool);
public boolean calculateDependencies(GnuMakefileGenerator makeGen, HashSet handledInputExtensions, boolean lastChance) { // Get the dependencies for this tool invocation boolean done = true; Vector myCommandDependencies = new Vector(); //Vector myEnumeratedDependencies = new Vector(); HashMap myOutputMacros = new HashMap(); IInputType[] inTypes = tool.getInputTypes(); if (inTypes != null && inTypes.length > 0) { for (int i=0; i<inTypes.length; i++) { IInputType type = inTypes[i]; IManagedDependencyGenerator depGen = type.getDependencyGenerator(); if (depGen != null) { int calcType = depGen.getCalculatorType(); switch (calcType) { case IManagedDependencyGenerator.TYPE_COMMAND: // iterate over all extensions that the tool knows how to handle String[] extensionsList = type.getSourceExtensions(tool); for (int j=0; j<extensionsList.length; j++) { String extensionName = extensionsList[j]; // Generated files should not appear in the list. if(!makeGen.getOutputExtensions().contains(extensionName) && !handledInputExtensions.contains(extensionName)) { handledInputExtensions.add(extensionName); String depsMacro = calculateSourceMacro(makeGen, extensionName, IManagedBuilderMakefileGenerator.DEP_EXT, IManagedBuilderMakefileGenerator.WILDCARD); List depsList = new ArrayList(); depsList.add(Path.fromOSString(depsMacro)); if (myOutputMacros.containsKey(DEPS_MACRO)) { List currList = (List)myOutputMacros.get(DEPS_MACRO); currList.addAll(depsList); myOutputMacros.put(DEPS_MACRO, currList); } else { myOutputMacros.put(DEPS_MACRO, depsList); } } } break; case IManagedDependencyGenerator.TYPE_INDEXER: case IManagedDependencyGenerator.TYPE_EXTERNAL: // The inputs must have been calculated before we can do this if (!inputsCalculated) { done = false; } else { Vector inputs = getEnumeratedInputs(); for (int j=0; j<inputs.size(); j++) { IResource[] outNames = depGen.findDependencies(project.getFile((String)inputs.get(j)), project); if (outNames != null) { for (int k=0; k<outNames.length; k++) { myCommandDependencies.add(outNames[k].toString()); } } } } break; default: break; } } // Add additional dependencies specified in AdditionalInput elements IAdditionalInput[] addlInputs = type.getAdditionalInputs(); if (addlInputs != null && addlInputs.length > 0) { for (int j=0; j<addlInputs.length; j++) { IAdditionalInput addlInput = addlInputs[j]; int kind = addlInput.getKind(); if (kind == IAdditionalInput.KIND_ADDITIONAL_DEPENDENCY || kind == IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY) { String[] paths = addlInput.getPaths(); if (paths != null) { for (int k = 0; k < paths.length; k++) { // Translate the path from project relative to // build directory relative String path = paths[k]; if (!(path.startsWith("$("))) { //$NON-NLS-1$ IResource addlResource = project.getFile(path); if (addlResource != null) { IPath addlPath = addlResource.getLocation(); if (addlPath != null) { path = ManagedBuildManager.calculateRelativePath(makeGen.getTopBuildDir(), addlPath).toString(); } } } myCommandDependencies.add(path); //myEnumeratedInputs.add(path); } } } } } } } else { if (bIsTargetTool) { // For support of pre-CDT 3.0 integrations. // NOTE WELL: This only supports the case of a single "target tool" // with the following characteristics: // 1. The tool consumes exactly all of the object files produced // by other tools in the build and produces a single output // 2. The target name comes from the configuration artifact name // The rule looks like: // <targ_prefix><target>.<extension>: $(OBJS) <refd_project_1 ... refd_project_n> myCommandDependencies.add("$(OBJS)"); //$NON-NLS-1$ myCommandDependencies.add("$(USER_OBJS)"); //$NON-NLS-1$ } else { String[] extensionsList = tool.getAllInputExtensions(); // Handle dependencies from the dependencyCalculator IManagedDependencyGenerator depGen = tool.getDependencyGenerator(); if (depGen != null) { int calcType = depGen.getCalculatorType(); switch (calcType) { case IManagedDependencyGenerator.TYPE_COMMAND: // iterate over all extensions that the tool knows how to handle for (int i=0; i<extensionsList.length; i++) { String extensionName = extensionsList[i]; // Generated files should not appear in the list. if(!makeGen.getOutputExtensions().contains(extensionName) && !handledInputExtensions.contains(extensionName)) { handledInputExtensions.add(extensionName); String depsMacro = calculateSourceMacro(makeGen, extensionName, IManagedBuilderMakefileGenerator.DEP_EXT, IManagedBuilderMakefileGenerator.WILDCARD); List depsList = new ArrayList(); depsList.add(Path.fromOSString(depsMacro)); if (myOutputMacros.containsKey(DEPS_MACRO)) { List currList = (List)myOutputMacros.get(DEPS_MACRO); currList.addAll(depsList); myOutputMacros.put(DEPS_MACRO, currList); } else { myOutputMacros.put(DEPS_MACRO, depsList); } } } break; case IManagedDependencyGenerator.TYPE_INDEXER: case IManagedDependencyGenerator.TYPE_EXTERNAL: // The inputs must have been calculated before we can do this if (!inputsCalculated) { done = false; } else { Vector inputs = getEnumeratedInputs(); for (int j=0; j<inputs.size(); j++) { IResource[] outNames = depGen.findDependencies(project.getFile((String)inputs.get(j)), project); if (outNames != null) { for (int k=0; k<outNames.length; k++) { myCommandDependencies.add(outNames[k].toString()); } } } } break; default: break; } } } } // Add the output macros of this tool to the buildOutVars map Iterator iterator = myOutputMacros.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry)iterator.next(); String macroName = (String)entry.getKey(); List newMacroValue = (List)entry.getValue(); HashMap map = makeGen.getBuildOutputVars(); if (map.containsKey(macroName)) { List macroValue = (List)map.get(macroName); macroValue.addAll(newMacroValue); map.put(macroName, macroValue); } else { map.put(macroName, newMacroValue); } } if (done) { commandDependencies.addAll(myCommandDependencies); //enumeratedDependencies.addAll(myEnumeratedDependencies); dependenciesCalculated = true; return true; } return false; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c7f73a40517ebbe266d35bf3a3c441c1f33003b8/ManagedBuildGnuToolInfo.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/ManagedBuildGnuToolInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 4604, 8053, 12, 43, 13053, 6464, 768, 3908, 1221, 7642, 16, 6847, 7681, 1210, 7513, 16, 1250, 1142, 782, 1359, 13, 288, 202, 202, 759, 968, 326, 5030, 364, 333, 5226, 9495, 202, 202, 6494, 2731, 273, 638, 31, 202, 202, 5018, 3399, 2189, 8053, 273, 394, 5589, 5621, 202, 202, 759, 5018, 3399, 3572, 19007, 8053, 273, 394, 5589, 5621, 202, 565, 4317, 3399, 1447, 9990, 6973, 273, 394, 4317, 5621, 202, 202, 45, 1210, 559, 8526, 316, 2016, 273, 5226, 18, 588, 1210, 2016, 5621, 202, 202, 430, 261, 267, 2016, 480, 446, 597, 316, 2016, 18, 2469, 405, 374, 13, 288, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 267, 2016, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 1210, 559, 618, 273, 316, 2016, 63, 77, 15533, 6862, 9506, 202, 3445, 4184, 7787, 3908, 5993, 7642, 273, 618, 18, 588, 7787, 3908, 5621, 9506, 202, 430, 261, 15037, 7642, 480, 446, 13, 288, 6862, 202, 474, 7029, 559, 273, 5993, 7642, 18, 588, 19278, 559, 5621, 6862, 202, 9610, 261, 12448, 559, 13, 288, 6862, 202, 3593, 6246, 4184, 7787, 3908, 18, 2399, 67, 19104, 30, 9506, 1875, 202, 759, 7401, 1879, 777, 4418, 716, 326, 5226, 21739, 3661, 358, 1640, 25083, 202, 780, 8526, 4418, 682, 273, 618, 18, 588, 1830, 7513, 12, 6738, 1769, 9506, 1875, 202, 1884, 261, 474, 525, 33, 20, 31, 525, 32, 9489, 682, 18, 2469, 31, 525, 27245, 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, 4604, 8053, 12, 43, 13053, 6464, 768, 3908, 1221, 7642, 16, 6847, 7681, 1210, 7513, 16, 1250, 1142, 782, 1359, 13, 288, 202, 202, 759, 968, 326, 5030, 364, 333, 5226, 9495, 202, 202, 6494, 2731, 273, 638, 31, 202, 202, 5018, 3399, 2189, 8053, 273, 394, 5589, 5621, 202, 202, 759, 5018, 3399, 3572, 19007, 8053, 273, 394, 5589, 5621, 202, 565, 4317, 3399, 1447, 9990, 6973, 273, 394, 4317, 5621, 202, 202, 45, 1210, 559, 8526, 316, 2016, 273, 5226, 18, 588, 1210, 2016, 5621, 202, 202, 430, 261, 267, 2016, 480, 446, 597, 316, 2016, 18, 2469, 405, 374, 13, 288, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 2 ]
_stillRunning = false; synchronized (_data) { _data.clear(); _data.notifyAll();
synchronized (runningLock) { if (_stillRunning) { _stillRunning = false; try { i2pSocket.close(); } catch (IOException e) { _log.debug("Caught IOException", e); } synchronized (_data) { _data.clear(); _data.notifyAll(); } }
public void stopRunning() { _log.debug("stopRunning() invoked on socket sender " + _id); _stillRunning = false; synchronized (_data) { _data.clear(); _data.notifyAll(); } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/28978e368018085ef39d9b88cb52f88ebe99fa8d/SAMStreamSession.java/clean/apps/sam/java/src/net/i2p/sam/SAMStreamSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2132, 7051, 1435, 288, 5411, 389, 1330, 18, 4148, 2932, 5681, 7051, 1435, 8187, 603, 2987, 5793, 315, 397, 389, 350, 1769, 5411, 389, 334, 737, 7051, 273, 629, 31, 5411, 3852, 261, 67, 892, 13, 288, 7734, 389, 892, 18, 8507, 5621, 7734, 389, 892, 18, 12336, 1595, 5621, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2132, 7051, 1435, 288, 5411, 389, 1330, 18, 4148, 2932, 5681, 7051, 1435, 8187, 603, 2987, 5793, 315, 397, 389, 350, 1769, 5411, 389, 334, 737, 7051, 273, 629, 31, 5411, 3852, 261, 67, 892, 13, 288, 7734, 389, 892, 18, 8507, 5621, 7734, 389, 892, 18, 12336, 1595, 5621, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object temp_obj = members.elementAt(0); if ( temp_obj instanceof Address ) { Address seq_addr = (Address) temp_obj; return local_addr.equals(seq_addr); } else { log.error( "Error: TOTAL_OLD.isSequencer() - could not cast element of \"members\" to an Address" ); return false; } }
Object temp_obj=members.elementAt(0); if(temp_obj instanceof Address) { Address seq_addr=(Address)temp_obj; return local_addr.equals(seq_addr); } else { log.error("Error: TOTAL_OLD.isSequencer() - could not cast element of \"members\" to an Address"); return false; } }
private boolean isSequencer() { if ( local_addr == null ) { // don't know my own local address log.error( "TOTAL_OLD.isSequencer() - local address unknown!" ); return false; } synchronized( members ) { if ( members.size() == 0 ) { // there are no members listed for the group (not even myself) log.error( "TOTAL_OLD.isSequencer() - no members!" ); return false; } Object temp_obj = members.elementAt(0); if ( temp_obj instanceof Address ) { Address seq_addr = (Address) temp_obj; return local_addr.equals(seq_addr); } else { log.error( "Error: TOTAL_OLD.isSequencer() - could not cast element of \"members\" to an Address" ); return false; } // if ( temp_obj instanceof Address ) } }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 1761, 372, 23568, 1435, 288, 202, 430, 261, 1191, 67, 4793, 422, 446, 262, 288, 202, 565, 368, 2727, 1404, 5055, 3399, 4953, 1191, 1758, 202, 565, 613, 18, 1636, 12, 315, 28624, 67, 11846, 18, 291, 1761, 372, 23568, 1435, 300, 1191, 1758, 5917, 4442, 11272, 202, 565, 327, 629, 31, 202, 97, 202, 22043, 12, 4833, 262, 288, 202, 565, 309, 261, 4833, 18, 1467, 1435, 422, 374, 262, 288, 202, 202, 759, 1915, 854, 1158, 4833, 12889, 364, 326, 1041, 261, 902, 5456, 3399, 2890, 13, 202, 202, 1330, 18, 1636, 12, 315, 28624, 67, 11846, 18, 291, 1761, 372, 23568, 1435, 300, 1158, 4833, 4442, 11272, 202, 202, 2463, 629, 31, 202, 565, 289, 202, 565, 1033, 1906, 67, 2603, 273, 4833, 18, 2956, 861, 12, 20, 1769, 202, 565, 309, 261, 1906, 67, 2603, 1276, 5267, 262, 288, 202, 202, 1887, 3833, 67, 4793, 273, 261, 1887, 13, 1906, 67, 2603, 31, 202, 202, 2463, 1191, 67, 4793, 18, 14963, 12, 5436, 67, 4793, 1769, 202, 565, 289, 469, 288, 202, 202, 1330, 18, 1636, 12, 315, 668, 30, 399, 19851, 67, 11846, 18, 291, 1761, 372, 23568, 1435, 300, 3377, 486, 4812, 930, 434, 1239, 7640, 2412, 358, 392, 5267, 6, 11272, 202, 202, 2463, 629, 31, 202, 565, 289, 368, 309, 261, 1906, 67, 2603, 1276, 5267, 262, 202, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 1761, 372, 23568, 1435, 288, 202, 430, 261, 1191, 67, 4793, 422, 446, 262, 288, 202, 565, 368, 2727, 1404, 5055, 3399, 4953, 1191, 1758, 202, 565, 613, 18, 1636, 12, 315, 28624, 67, 11846, 18, 291, 1761, 372, 23568, 1435, 300, 1191, 1758, 5917, 4442, 11272, 202, 565, 327, 629, 31, 202, 97, 202, 22043, 12, 4833, 262, 288, 202, 565, 309, 261, 4833, 18, 1467, 1435, 422, 374, 262, 288, 202, 202, 759, 1915, 854, 1158, 4833, 12889, 364, 326, 1041, 261, 902, 5456, 3399, 2890, 13, 202, 202, 1330, 18, 1636, 12, 315, 28624, 67, 11846, 18, 291, 1761, 372, 23568, 1435, 300, 1158, 4833, 4442, 11272, 202, 202, 2463, 629, 31, 2 ]
throw new IndexError(getRuntime(), "negative length");
throw getRuntime().newIndexError("negative length");
public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw new IndexError(getRuntime(), "negative length"); } if (beg < 0) { beg += strLen; } if (beg < 0 || beg >= strLen) { throw new IndexError(getRuntime(), "string index out of bounds"); } if (beg + len > strLen) { len = strLen - beg; } replace(beg, len, repl); return repl; } if (args[0] instanceof RubyFixnum) { // RubyNumeric? int idx = RubyNumeric.fix2int(args[0]); // num2int? if (idx < 0) { idx += getValue().length(); } if (idx < 0 || idx >= getValue().length()) { throw new IndexError(getRuntime(), "string index out of bounds"); } if (args[1] instanceof RubyFixnum) { char c = (char) RubyNumeric.fix2int(args[1]); setValue(getValue().substring(0, idx) + c + getValue().substring(idx + 1)); } else { replace(idx, 1, stringValue(args[1])); } return args[1]; } if (args[0] instanceof RubyRegexp) { sub_bang(args); return args[1]; } if (args[0] instanceof RubyString) { RubyString orig = stringValue(args[0]); int beg = getValue().indexOf(orig.getValue()); if (beg != -1) { replace(beg, orig.getValue().length(), stringValue(args[1])); } return args[1]; } if (args[0] instanceof RubyRange) { long[] idxs = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, true); replace((int) idxs[0], (int) idxs[1], stringValue(args[1])); return args[1]; } throw new TypeError(getRuntime(), "wrong argument type"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 487, 278, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 3813, 42, 9808, 2932, 1106, 8863, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 430, 261, 1893, 1379, 1380, 12, 1968, 16, 576, 16, 890, 13, 422, 890, 13, 288, 1082, 202, 54, 10340, 780, 6831, 273, 19721, 12, 1968, 63, 22, 19226, 1082, 202, 474, 16847, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 19226, 1082, 202, 474, 562, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 21, 19226, 1082, 202, 430, 261, 1897, 411, 374, 13, 288, 9506, 202, 12849, 394, 10195, 12, 588, 5576, 9334, 315, 13258, 769, 8863, 1082, 202, 97, 1082, 202, 430, 261, 70, 1332, 411, 374, 13, 288, 9506, 202, 70, 1332, 1011, 609, 2891, 31, 1082, 202, 97, 1082, 202, 430, 261, 70, 1332, 411, 374, 747, 16847, 1545, 609, 2891, 13, 288, 9506, 202, 12849, 394, 10195, 12, 588, 5576, 9334, 315, 1080, 770, 596, 434, 4972, 8863, 1082, 202, 97, 1082, 202, 430, 261, 70, 1332, 397, 562, 405, 609, 2891, 13, 288, 9506, 202, 1897, 273, 609, 2891, 300, 16847, 31, 1082, 202, 97, 1082, 202, 2079, 12, 70, 1332, 16, 562, 16, 6831, 1769, 1082, 202, 2463, 6831, 31, 202, 202, 97, 202, 202, 430, 261, 1968, 63, 20, 65, 1276, 19817, 8585, 2107, 13, 288, 368, 19817, 9902, 35, 1082, 202, 474, 2067, 273, 19817, 9902, 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, 15908, 10340, 921, 487, 278, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 3813, 42, 9808, 2932, 1106, 8863, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 430, 261, 1893, 1379, 1380, 12, 1968, 16, 576, 16, 890, 13, 422, 890, 13, 288, 1082, 202, 54, 10340, 780, 6831, 273, 19721, 12, 1968, 63, 22, 19226, 1082, 202, 474, 16847, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 19226, 1082, 202, 474, 562, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 21, 19226, 1082, 202, 430, 261, 1897, 411, 374, 13, 288, 9506, 202, 12849, 394, 10195, 12, 588, 5576, 9334, 315, 13258, 769, 8863, 2 ]
DecorationResult adaptedResult = null;
private void createDecorationJob() { decorationJob = new Job( WorkbenchMessages.DecorationScheduler_CalculationJobName) { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus run(IProgressMonitor monitor) { if (shutdown)// Cancelled on shutdown return Status.CANCEL_STATUS; while(updatesPending()){ try { Thread.sleep(100); } catch (InterruptedException e) { //Cancel and try again if there was an error schedule(); return Status.CANCEL_STATUS; } } monitor.beginTask( WorkbenchMessages.DecorationScheduler_CalculatingTask, 100); // will block if there are no resources to be decorated DecorationReference reference; monitor.worked(5); int workCount = 5; while ((reference = nextElement()) != null) { // Count up to 90 to give the appearance of updating if (workCount < 90) { monitor.worked(1); workCount++; } DecorationBuilder cacheResult = new DecorationBuilder(); monitor.subTask(reference.getSubTask()); // Don't decorate if there is already a pending result Object element = reference.getElement(); Object adapted = reference.getAdaptedElement(); boolean elementIsCached = true; DecorationResult adaptedResult = null; // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. elementIsCached = resultCache.containsKey(element); if (elementIsCached) { pendingUpdate.add(element); } if (!elementIsCached) { // Calculate the decoration decoratorManager.getLightweightManager() .getDecorations(element, cacheResult); // If we should update regardless then put a result // anyways if (cacheResult.hasValue() || reference.shouldForceUpdate()) { // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. // Note: resultCache and pendingUpdate modifications // must be done atomically. // Add the decoration even if it's empty in // order to indicate that the decoration is // ready resultCache .put(element, cacheResult.createResult()); // Add an update for only the original element // to // prevent multiple updates and clear the cache. pendingUpdate.add(element); } } // Only notify listeners when we have exhausted the // queue of decoration requests. if (awaitingDecoration.isEmpty()) { decorated(); } } monitor.worked(100 - workCount); monitor.done(); return Status.OK_STATUS; } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ public boolean belongsTo(Object family) { return DecoratorManager.FAMILY_DECORATE == family; } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ public boolean shouldRun() { return PlatformUI.isWorkbenchRunning(); } }; decorationJob.setSystem(true); decorationJob.setPriority(Job.DECORATE); decorationJob.schedule(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/655a60415740ac9c2bc1c145e14f84e0654c2131/DecorationScheduler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7859, 367, 2278, 1435, 288, 202, 202, 11880, 367, 2278, 273, 394, 3956, 12, 9506, 202, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 13989, 29425, 13, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 3644, 18, 9448, 18, 10088, 18, 2278, 7, 2681, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 9506, 1195, 1082, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 261, 15132, 13, 759, 10347, 1259, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 17523, 12, 14703, 8579, 10756, 95, 6862, 25083, 202, 698, 288, 25083, 202, 3830, 18, 19607, 12, 6625, 1769, 6862, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 25083, 202, 759, 6691, 471, 775, 3382, 309, 1915, 1703, 392, 555, 25083, 202, 10676, 5621, 25083, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 202, 97, 9506, 202, 97, 9506, 202, 10259, 18, 10086, 2174, 12, 25083, 202, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 30238, 2174, 16, 25083, 202, 6625, 1769, 9506, 202, 759, 903, 1203, 309, 1915, 854, 1158, 2703, 358, 506, 13816, 9506, 202, 7859, 367, 2404, 2114, 31, 9506, 202, 10259, 18, 1252, 329, 12, 25, 1769, 9506, 202, 474, 1440, 1380, 273, 1381, 31, 9506, 202, 17523, 14015, 6180, 273, 14512, 10756, 480, 446, 13, 288, 6862, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7859, 367, 2278, 1435, 288, 202, 202, 11880, 367, 2278, 273, 394, 3956, 12, 9506, 202, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 13989, 29425, 13, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 3644, 18, 9448, 18, 10088, 18, 2278, 7, 2681, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 9506, 1195, 1082, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 261, 15132, 13, 759, 10347, 1259, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 17523, 12, 14703, 8579, 10756, 95, 2 ]
if (init == null)
if (! seenInit)
public Object[] scanClassDef (Pair pair, ClassExp oexp, Translator tr) { tr.mustCompileHere(); int num_supers = Translator.listLength(pair.car); if (num_supers < 0) { tr.error('e', "object superclass specification not a list"); return null; } Expression[] supers = new Expression[num_supers]; Object superlist = pair.car; for (int i = 0; i < num_supers; i++) { while (superlist instanceof SyntaxForm) { // FIXME - need to pass syntax. superlist = ((SyntaxForm) superlist).form; } Pair superpair = (Pair) superlist; supers[i] = tr.rewrite_car(superpair, false); superlist = superpair.cdr; } oexp.supers = supers; Object components = pair.cdr; LambdaExp method_list = null; LambdaExp last_method = null; // First pass (get Declarations). Vector inits = new Vector(20); SyntaxForm componentsSyntax = null; for (Object obj = components; obj != LList.Empty; ) { // The SyntaxForm scopes aren't used in scanClassDef, but they are // used in rewriteClassDef, and might as well make the code the same. while (obj instanceof SyntaxForm) { componentsSyntax = (SyntaxForm) obj; obj = componentsSyntax.form; } if (! (obj instanceof Pair)) { tr.error('e', "object member not a list"); return null; } pair = (Pair) obj; Object pair_car = pair.car; SyntaxForm memberSyntax = componentsSyntax; while (pair_car instanceof SyntaxForm) { memberSyntax = (SyntaxForm) pair_car; pair_car = memberSyntax.form; } if (! (pair_car instanceof Pair)) { tr.error('e', "object member not a list"); return null; } obj = pair.cdr; // Next member. Object savedPos1 = tr.pushPositionOf(pair); pair = (Pair) pair_car; pair_car = pair.car; SyntaxForm memberCarSyntax = memberSyntax; while (pair_car instanceof SyntaxForm) { memberCarSyntax = (SyntaxForm) pair_car; pair_car = memberCarSyntax.form; } if (pair_car instanceof String || pair_car instanceof Symbol || pair_car instanceof Keyword) { // Field declaration. Pair typePair = null; Object sname = pair_car; Object args; Declaration decl; int allocationFlag = 0; String accessFlagName = null; int accessFlag = 0; if (sname instanceof Keyword) { decl = null; args = pair; } else { decl = oexp.addDeclaration(sname); decl.setSimple(false); decl.setFlag(Declaration.FIELD_OR_METHOD); Translator.setLine(decl, pair); args = pair.cdr; } int nKeywords = 0; Object init = null; Pair initPair = null; while (args instanceof Pair) { pair = (Pair) args; Pair keyPair = pair; Object key = pair.car; Object savedPos2 = tr.pushPositionOf(pair); args = pair.cdr; if ((key == "::" || key instanceof Keyword) && args instanceof Pair) { nKeywords++; pair = (Pair) args; Object value = pair.car; args = pair.cdr; if (key == "::" || key == typeKeyword) typePair = pair; else if (key == allocationKeyword) { if (allocationFlag != 0) tr.error('e', "duplicate allocation: specification"); if (matches(value, "class", tr) || matches(value, "static", tr)) allocationFlag = Declaration.STATIC_SPECIFIED; else if (matches(value, "instance", tr)) allocationFlag = Declaration.NONSTATIC_SPECIFIED; else tr.error('e', "unknown allocation kind '"+value+"'"); } else if (key == initKeyword || key == initformKeyword || key == init_formKeyword || key == init_valueKeyword) { if (init != null) tr.error('e', "duplicate initialization"); init = value; // In the case of 'init-form: EXPR' the scope of EXPR // doesn't include this class; // in the case of 'init: EXPR' it does. if (key != initKeyword) initPair = pair; } else if (key == init_keywordKeyword) { if (! (value instanceof Keyword)) tr.error('e', "invalid 'init-keyword' - not a keyword"); else if (((Keyword) value).getName() != sname.toString()) tr.error('w', "init-keyword option ignored"); } else if (key == accessKeyword) { String newAccessFlag = null; if (matches(value, "private", tr)) { newAccessFlag = "private"; accessFlag = Declaration.PRIVATE_ACCESS; } else if (matches(value, "protected", tr)) { newAccessFlag = "protected"; accessFlag = Declaration.PROTECTED_ACCESS; } else if (matches(value, "public", tr)) { newAccessFlag = "public"; accessFlag = Declaration.PUBLIC_ACCESS; } else if (matches(value, "package", tr)) { newAccessFlag = "package"; accessFlag = Declaration.PACKAGE_ACCESS; } else { tr.error('e', "unknown access specifier"); } if (accessFlagName != null && newAccessFlag != null) { tr.error('e', "duplicate access specifiers - " + accessFlagName + " and " + newAccessFlag); } accessFlagName = newAccessFlag; } else { tr.error('w', "unknown slot keyword '"+key+"'"); } } else if (args == LList.Empty && init == null) { // CLtL:2 explicitly prohibits this as an extension. init = key; } else if (args instanceof Pair && nKeywords == 0 && init == null && typePair == null && (pair = (Pair) args).cdr == LList.Empty) { // Backward compatibility. typePair = keyPair; init = pair.car; args = pair.cdr; } else { args = null; // Trigger error message break; } tr.popPositionOf(savedPos2); } if (args != LList.Empty) { tr.error('e', "invalid argument list for slot '" + sname + '\''+" args:"+(args==null?"null":args.getClass().getName())); return null; } if (init != null) { boolean isStatic = allocationFlag == Declaration.STATIC_SPECIFIED; inits.addElement(decl != null ? (Object) decl : isStatic ? Boolean.TRUE : Boolean.FALSE); inits.addElement(initPair); } if (decl == null) { if (init == null) { tr.error('e', "missing field name"); return null; } } else { if (typePair != null) decl.setType(tr.exp2Type(typePair)); if (allocationFlag != 0) decl.setFlag(allocationFlag); if (accessFlag != 0) decl.setFlag(accessFlag); decl.setCanRead(true); decl.setCanWrite(true); } } else if (pair_car instanceof Pair) { // Method declaration. Pair mpair = (Pair) pair_car; Object mname = mpair.car; if (! (mname instanceof String) && ! (mname instanceof Symbol)) { tr.error('e', "missing method name"); return null; } Declaration decl = oexp.addDeclaration(mname); Translator.setLine(decl, mpair); LambdaExp lexp = new LambdaExp(); lexp.outer = oexp; lexp.setClassMethod(true); decl.noteValue(lexp); decl.setFlag(Declaration.FIELD_OR_METHOD); decl.setProcedureDecl(true); lexp.setSymbol(mname); if (last_method == null) method_list = lexp; else last_method.nextSibling = lexp; last_method = lexp; } else tr.error ('e', "invalid field/method definition"); tr.popPositionOf(savedPos1); } Object[] result = { oexp, components, inits, method_list }; return result; }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/9cdfd66a5e38bd1e6205b5033c64a592001f6011/object.java/clean/kawa/standard/object.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8526, 4135, 797, 3262, 261, 4154, 3082, 16, 1659, 2966, 320, 2749, 16, 18669, 433, 13, 225, 288, 565, 433, 18, 11926, 9937, 26715, 5621, 565, 509, 818, 67, 2859, 414, 273, 18669, 18, 1098, 1782, 12, 6017, 18, 9815, 1769, 565, 309, 261, 2107, 67, 2859, 414, 411, 374, 13, 1377, 288, 202, 313, 18, 1636, 2668, 73, 2187, 315, 1612, 12098, 7490, 486, 279, 666, 8863, 202, 2463, 446, 31, 1377, 289, 565, 5371, 8526, 1169, 414, 273, 394, 5371, 63, 2107, 67, 2859, 414, 15533, 565, 1033, 2240, 1098, 273, 3082, 18, 9815, 31, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 818, 67, 2859, 414, 31, 225, 277, 27245, 1377, 288, 202, 17523, 261, 9565, 1098, 1276, 11517, 1204, 13, 202, 225, 288, 202, 565, 368, 9852, 300, 1608, 358, 1342, 6279, 18, 202, 565, 2240, 1098, 273, 14015, 8070, 1204, 13, 2240, 1098, 2934, 687, 31, 202, 225, 289, 202, 4154, 2240, 6017, 273, 261, 4154, 13, 2240, 1098, 31, 202, 2859, 414, 63, 77, 65, 273, 433, 18, 21489, 67, 9815, 12, 9565, 6017, 16, 629, 1769, 202, 9565, 1098, 273, 2240, 6017, 18, 71, 3069, 31, 1377, 289, 565, 320, 2749, 18, 2859, 414, 273, 1169, 414, 31, 565, 1033, 4085, 273, 3082, 18, 71, 3069, 31, 565, 12801, 2966, 707, 67, 1098, 273, 446, 31, 565, 12801, 2966, 1142, 67, 2039, 273, 446, 31, 565, 368, 5783, 1342, 261, 588, 3416, 7901, 1012, 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, 1033, 8526, 4135, 797, 3262, 261, 4154, 3082, 16, 1659, 2966, 320, 2749, 16, 18669, 433, 13, 225, 288, 565, 433, 18, 11926, 9937, 26715, 5621, 565, 509, 818, 67, 2859, 414, 273, 18669, 18, 1098, 1782, 12, 6017, 18, 9815, 1769, 565, 309, 261, 2107, 67, 2859, 414, 411, 374, 13, 1377, 288, 202, 313, 18, 1636, 2668, 73, 2187, 315, 1612, 12098, 7490, 486, 279, 666, 8863, 202, 2463, 446, 31, 1377, 289, 565, 5371, 8526, 1169, 414, 273, 394, 5371, 63, 2107, 67, 2859, 414, 15533, 565, 1033, 2240, 1098, 273, 3082, 18, 9815, 31, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 818, 67, 2859, 414, 31, 225, 277, 27245, 2 ]
state.remove(deliveries[i], tx);
state.acknowledge(deliveries[i], tx);
public void testRecoverableState_66() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } Delivery[] deliveries = new Delivery[NUMBER_OF_MESSAGES]; for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessage("message" + i, true, "payload" + i)); deliveries[i] = new SimpleDelivery(channel, ref, false); state.add(deliveries[i]); } Transaction tx = tr.createTransaction(); for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { // recoverable state, reliable delivery, transactional remove state.remove(deliveries[i], tx); } tx.commit(); assertTrue(state.delivering(null).isEmpty()); assertTrue(state.undelivered(null).isEmpty()); assertTrue(state.browse(null).isEmpty()); log.info("ok"); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b808cf059a2bd5d2b256a4cae82cef505669b216/StateTestBase.java/clean/tests/src/org/jboss/test/messaging/core/base/StateTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 426, 17399, 1119, 67, 6028, 1435, 1216, 4206, 282, 288, 1377, 309, 16051, 2019, 18, 291, 426, 17399, 10756, 1377, 288, 540, 368, 1338, 29218, 919, 353, 18432, 2037, 540, 327, 31, 1377, 289, 1377, 17390, 8526, 11795, 606, 273, 394, 17390, 63, 9931, 67, 3932, 67, 26195, 15533, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 15532, 67, 3932, 67, 26195, 31, 277, 27245, 1377, 288, 540, 2350, 2404, 1278, 273, 9079, 4086, 18, 6180, 12, 1079, 1733, 18, 2640, 1079, 2932, 2150, 6, 397, 277, 16, 638, 16, 315, 7648, 6, 397, 277, 10019, 540, 11795, 606, 63, 77, 65, 273, 394, 4477, 8909, 12, 4327, 16, 1278, 16, 629, 1769, 540, 919, 18, 1289, 12, 26672, 606, 63, 77, 19226, 1377, 289, 1377, 5947, 2229, 273, 433, 18, 2640, 3342, 5621, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 15532, 67, 3932, 67, 26195, 31, 277, 27245, 1377, 288, 540, 368, 29218, 919, 16, 31024, 7912, 16, 25078, 1206, 540, 919, 18, 484, 14390, 12, 26672, 606, 63, 77, 6487, 2229, 1769, 1377, 289, 1377, 2229, 18, 7371, 5621, 1377, 1815, 5510, 12, 2019, 18, 26672, 310, 12, 2011, 2934, 291, 1921, 10663, 1377, 1815, 5510, 12, 2019, 18, 1074, 292, 1667, 329, 12, 2011, 2934, 291, 1921, 10663, 1377, 1815, 5510, 12, 2019, 18, 25731, 12, 2011, 2934, 291, 1921, 10663, 1377, 613, 18, 1376, 2932, 601, 8863, 282, 289, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 426, 17399, 1119, 67, 6028, 1435, 1216, 4206, 282, 288, 1377, 309, 16051, 2019, 18, 291, 426, 17399, 10756, 1377, 288, 540, 368, 1338, 29218, 919, 353, 18432, 2037, 540, 327, 31, 1377, 289, 1377, 17390, 8526, 11795, 606, 273, 394, 17390, 63, 9931, 67, 3932, 67, 26195, 15533, 1377, 364, 12, 474, 277, 273, 374, 31, 277, 411, 15532, 67, 3932, 67, 26195, 31, 277, 27245, 1377, 288, 540, 2350, 2404, 1278, 273, 9079, 4086, 18, 6180, 12, 1079, 1733, 18, 2640, 1079, 2932, 2150, 6, 397, 277, 16, 638, 16, 315, 7648, 6, 397, 277, 10019, 540, 11795, 606, 63, 77, 65, 273, 394, 4477, 8909, 12, 4327, 16, 1278, 16, 629, 1769, 2 ]
String query = "SELECT * FROM " + table + " WHERE id=?";
String query = "SELECT * FROM " + table + " WHERE id = ?";
public static Element select(Dbms dbms, String table, String id) throws Exception { String query = "SELECT * FROM " + table + " WHERE id=?"; Element rec = dbms.select(query, id).getChild(Jeeves.Elem.RECORD); if (rec == null) return null; Element xmlField = rec.getChild("data"); String xmlData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + xmlField.getText(); return Xml.loadString(xmlData, false); }
53415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53415/f66a38142b03c0763226cd6dbb77e43a0e881d69/XmlSerializer.java/buggy/src/org/fao/geonet/kernel/XmlSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 3010, 2027, 12, 4331, 959, 1319, 959, 16, 514, 1014, 16, 514, 612, 13, 1216, 1185, 202, 95, 202, 202, 780, 843, 273, 315, 4803, 380, 4571, 315, 397, 1014, 397, 315, 4852, 612, 25501, 31, 202, 202, 1046, 1950, 273, 1319, 959, 18, 4025, 12, 2271, 16, 612, 2934, 588, 1763, 12, 46, 1340, 3324, 18, 7498, 18, 22261, 1769, 202, 202, 430, 261, 3927, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 1046, 2025, 974, 273, 1950, 18, 588, 1763, 2932, 892, 8863, 202, 202, 780, 225, 2025, 751, 225, 273, 20410, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 2984, 397, 2025, 974, 18, 588, 1528, 5621, 202, 202, 2463, 5714, 18, 945, 780, 12, 2902, 751, 16, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 482, 760, 3010, 2027, 12, 4331, 959, 1319, 959, 16, 514, 1014, 16, 514, 612, 13, 1216, 1185, 202, 95, 202, 202, 780, 843, 273, 315, 4803, 380, 4571, 315, 397, 1014, 397, 315, 4852, 612, 25501, 31, 202, 202, 1046, 1950, 273, 1319, 959, 18, 4025, 12, 2271, 16, 612, 2934, 588, 1763, 12, 46, 1340, 3324, 18, 7498, 18, 22261, 1769, 202, 202, 430, 261, 3927, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 1046, 2025, 974, 273, 1950, 18, 588, 1763, 2932, 892, 8863, 202, 202, 780, 225, 2025, 751, 225, 273, 20410, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 2984, 397, 2025, 974, 18, 2 ]
while( true ) { tmp = efile.readByte(); if ( tmp == 0 ) break; str.append((char)tmp); } return str.toString();
return getCStr();
protected String string_from_macho_symtab(MachO.SymtabCommand symtab, int index) throws IOException { StringBuffer str = new StringBuffer(); byte tmp; if ( index > symtab.strsize ) { return EMPTY_STRING; } efile.seek(symtab.stroff + index); while( true ) { tmp = efile.readByte(); if ( tmp == 0 ) break; str.append((char)tmp); } return str.toString(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/96f8f74ff891fc711574b636826006b328303a0c/MachO.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 533, 67, 2080, 67, 81, 497, 83, 67, 9009, 1010, 378, 12, 49, 497, 51, 18, 10876, 1010, 378, 2189, 1393, 1010, 378, 16, 509, 770, 13, 1216, 1860, 288, 202, 202, 780, 1892, 609, 273, 394, 6674, 5621, 202, 202, 7229, 1853, 31, 202, 202, 430, 261, 770, 405, 1393, 1010, 378, 18, 701, 1467, 262, 288, 9506, 202, 2463, 8984, 67, 5804, 31, 1082, 202, 97, 202, 202, 73, 768, 18, 16508, 12, 9009, 1010, 378, 18, 334, 303, 1403, 397, 770, 1769, 202, 202, 17523, 12, 638, 262, 288, 1082, 202, 5645, 273, 425, 768, 18, 896, 3216, 5621, 1082, 202, 430, 261, 1853, 422, 374, 262, 9506, 202, 8820, 31, 1082, 202, 701, 18, 6923, 12443, 3001, 13, 5645, 1769, 202, 202, 97, 202, 202, 2463, 609, 18, 10492, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 533, 67, 2080, 67, 81, 497, 83, 67, 9009, 1010, 378, 12, 49, 497, 51, 18, 10876, 1010, 378, 2189, 1393, 1010, 378, 16, 509, 770, 13, 1216, 1860, 288, 202, 202, 780, 1892, 609, 273, 394, 6674, 5621, 202, 202, 7229, 1853, 31, 202, 202, 430, 261, 770, 405, 1393, 1010, 378, 18, 701, 1467, 262, 288, 9506, 202, 2463, 8984, 67, 5804, 31, 1082, 202, 97, 202, 202, 73, 768, 18, 16508, 12, 9009, 1010, 378, 18, 334, 303, 1403, 397, 770, 1769, 202, 202, 17523, 12, 638, 262, 288, 1082, 202, 5645, 273, 425, 768, 18, 896, 3216, 5621, 1082, 202, 430, 261, 1853, 422, 374, 262, 9506, 202, 8820, 31, 1082, 2 ]
case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30:
case 29:
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+" "); if(debug) log("Matched @media: "+s); } case 42: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 43: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 44: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 45: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 46: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 48: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 49: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 20: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 25: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e8996198a75deffbf4dc9e1ed08d3120115f4fa9/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 1323, 261, 3767, 13, 288, 1377, 11273, 21486, 1616, 48, 273, 11273, 21486, 1616, 31, 1377, 11273, 1803, 273, 300, 21, 31, 1377, 11273, 3935, 1616, 48, 273, 11273, 3935, 1616, 273, 11273, 1685, 1994, 273, 11273, 21486, 1616, 48, 31, 3639, 11273, 1119, 273, 11273, 14756, 1706, 1119, 31, 1377, 11273, 1290, 1803, 30, 288, 3639, 1323, 261, 3767, 13, 288, 2868, 309, 261, 6378, 3935, 1616, 48, 411, 11273, 1638, 1994, 48, 13, 5411, 11273, 1210, 273, 11273, 1892, 48, 63, 6378, 3935, 1616, 48, 9904, 15533, 1850, 469, 309, 261, 6378, 861, 12706, 13, 288, 5411, 11273, 1210, 273, 1624, 61, 12706, 31, 5411, 898, 11273, 1290, 1803, 31, 1850, 289, 1850, 469, 288, 5411, 368, 1707, 1473, 3472, 6865, 5411, 11273, 3935, 1616, 225, 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, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 2 ]
log.entering(this.getClass().getName(), "engineStore");
if (Configuration.DEBUG) log.entering(this.getClass().getName(), "engineStore");
public void engineStore(OutputStream out, char[] password) throws IOException { log.entering(this.getClass().getName(), "engineStore"); ensureLoaded(); HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); privateKR.store(attr); publicKR.store(attr); log.exiting(this.getClass().getName(), "engineStore"); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/GnuKeyring.java/clean/gnu/javax/crypto/jce/keyring/GnuKeyring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4073, 2257, 12, 4632, 596, 16, 1149, 8526, 2201, 13, 1216, 1860, 225, 288, 565, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 8944, 2257, 8863, 565, 3387, 8835, 5621, 565, 4317, 1604, 273, 394, 4317, 5621, 565, 1604, 18, 458, 12, 45, 653, 8022, 18, 3297, 54, 1360, 67, 4883, 67, 5069, 16, 596, 1769, 565, 1604, 18, 458, 12, 45, 653, 8022, 18, 3297, 54, 1360, 67, 13784, 16, 2201, 1769, 565, 3238, 47, 54, 18, 2233, 12, 1747, 1769, 565, 1071, 47, 54, 18, 2233, 12, 1747, 1769, 565, 613, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 8944, 2257, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4073, 2257, 12, 4632, 596, 16, 1149, 8526, 2201, 13, 1216, 1860, 225, 288, 565, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 8944, 2257, 8863, 565, 3387, 8835, 5621, 565, 4317, 1604, 273, 394, 4317, 5621, 565, 1604, 18, 458, 12, 45, 653, 8022, 18, 3297, 54, 1360, 67, 4883, 67, 5069, 16, 596, 1769, 565, 1604, 18, 458, 12, 45, 653, 8022, 18, 3297, 54, 1360, 67, 13784, 16, 2201, 1769, 565, 3238, 47, 54, 18, 2233, 12, 1747, 1769, 565, 1071, 47, 54, 18, 2233, 12, 1747, 1769, 565, 613, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 2 ]
markLabel(beyond);
cfw.markLabel(beyond);
private void visitCall(Node node, int type, Node child) { /* * Generate code for call. */ Node chelsea = child; // remember the first child for later OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); if (target != null) { generateCodeFromNode(child, node); int regularCall = acquireLabel(); int directTargetIndex = target.getDirectTargetIndex(); addByteCode(ByteCode.ALOAD_0); classFile.add(ByteCode.GETFIELD, generatedClassName, MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); classFile.add(ByteCode.GETFIELD, mainCodegen.generatedClassName, getDirectTargetFieldName(directTargetIndex), classNameToSignature(target.getClassName())); short stackHeight = classFile.getStackTop(); addByteCode(ByteCode.DUP2); addByteCode(ByteCode.IF_ACMPNE, regularCall); addByteCode(ByteCode.SWAP); addByteCode(ByteCode.POP); if (!itsUseDynamicScope) { addByteCode(ByteCode.DUP); classFile.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); } else { aload(variableObjectLocal); } aload(contextLocal); addByteCode(ByteCode.SWAP); if (type == Token.NEW) addByteCode(ByteCode.ACONST_NULL); else { child = child.getNext(); generateCodeFromNode(child, node); }/* Remember that directCall parameters are paired in 1 aReg and 1 dReg If the argument is an incoming arg, just pass the orginal pair thru. Else, if the argument is known to be typed 'Number', pass Void.TYPE in the aReg and the number is the dReg Else pass the JS object in the aReg and 0.0 in the dReg.*/ child = child.getNext(); while (child != null) { boolean handled = false; if ((child.getType() == Token.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar != null && lVar.isParameter()) { handled = true; aload(lVar.getJRegister()); dload((short)(lVar.getJRegister() + 1)); } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); generateCodeFromNode(child, node); } else { generateCodeFromNode(child, node); push(0.0); } } resetTargets(child); child = child.getNext(); } classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); addVirtualInvoke(target.getClassName(), (type == Token.NEW) ? "constructDirect" : "callDirect", target.getDirectCallMethodSignature()); int beyond = acquireLabel(); addByteCode(ByteCode.GOTO, beyond); markLabel(regularCall, stackHeight); addByteCode(ByteCode.POP); visitRegularCall(node, type, chelsea, true); markLabel(beyond); } else { visitRegularCall(node, type, chelsea, false); } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 5411, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 509, 6736, 1477, 273, 10533, 2224, 5621, 5411, 509, 2657, 2326, 1016, 273, 1018, 18, 588, 5368, 2326, 1016, 5621, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 4374, 3834, 16, 12900, 22299, 67, 10885, 67, 6776, 16, 12900, 2774, 1085, 4507, 18, 11168, 797, 5374, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 2774, 1085, 4507, 18, 11168, 3834, 16, 12900, 27063, 2326, 7287, 12, 7205, 2326, 1016, 3631, 12900, 2658, 774, 5374, 12, 3299, 18, 588, 3834, 1435, 10019, 5411, 3025, 2110, 2686, 273, 29728, 18, 588, 2624, 3401, 5621, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 22, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 5501, 67, 2226, 4566, 5407, 16, 6736, 1477, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 18746, 2203, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30374, 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, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 5411, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 509, 6736, 1477, 273, 10533, 2224, 5621, 5411, 509, 2657, 2326, 1016, 273, 1018, 18, 588, 5368, 2326, 1016, 5621, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 2 ]
"(Ljava/lang/Object;"
"(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;"
private void generateCodeFromNode(Node node, Node parent, int trueLabel, int falseLabel) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case TokenStream.LOOP: case TokenStream.WITH: case TokenStream.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } break; case TokenStream.CASE: case TokenStream.DEFAULT: // XXX shouldn't these be StatementNodes? case TokenStream.SCRIPT: case TokenStream.BLOCK: case TokenStream.VOID: case TokenStream.NOP: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } break; case TokenStream.FUNCTION: if (inFunction || parent.getType() != TokenStream.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode fn; fn = (OptFunctionNode)scriptOrFn.getFunctionNode(fnIndex); int t = fn.getFunctionType(); if (t != FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, t); } } break; case TokenStream.NAME: visitName(node); break; case TokenStream.NEW: case TokenStream.CALL: visitCall(node, type, child); break; case TokenStream.NUMBER: case TokenStream.STRING: visitLiteral(node); break; case TokenStream.PRIMARY: visitPrimary(node); break; case TokenStream.REGEXP: visitObject(node); break; case TokenStream.TRY: visitTryCatchFinally(node, child); break; case TokenStream.THROW: visitThrow(node, child); break; case TokenStream.RETURN: visitReturn(node, child); break; case TokenStream.SWITCH: visitSwitch(node, child); break; case TokenStream.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node, -1, -1); addByteCode(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node, trueLabel, falseLabel); break; } case TokenStream.NEWSCOPE: addScriptRuntimeInvoke("newScope", "()Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.ENTERWITH: visitEnterWith(node, child); break; case TokenStream.LEAVEWITH: visitLeaveWith(node, child); break; case TokenStream.ENUMINIT: visitEnumInit(node, child); break; case TokenStream.ENUMNEXT: visitEnumNext(node, child); break; case TokenStream.ENUMDONE: visitEnumDone(node, child); break; case TokenStream.POP: visitStatement(node); if (child.getType() == TokenStream.SETVAR) { /* special case this so as to avoid unnecessary load's & pop's */ visitSetVar(child, child.getFirstChild(), false); } else { while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) addByteCode(ByteCode.POP2); else addByteCode(ByteCode.POP); } break; case TokenStream.POPV: visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } astore(scriptResultLocal); break; case TokenStream.TARGET: visitTarget(node); break; case TokenStream.JSR: case TokenStream.GOTO: case TokenStream.IFEQ: case TokenStream.IFNE: visitGOTO(node, type, child); break; case TokenStream.UNARYOP: visitUnary(node, child, trueLabel, falseLabel); break; case TokenStream.TYPEOF: visitTypeof(node, child); break; case TokenStream.INC: visitIncDec(node, true); break; case TokenStream.DEC: visitIncDec(node, false); break; case TokenStream.OR: case TokenStream.AND: { if (trueLabel == -1) { generateCodeFromNode(child, node, trueLabel, falseLabel); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = acquireLabel(); if (type == TokenStream.AND) addByteCode(ByteCode.IFEQ, falseTarget); else addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); generateCodeFromNode(child.getNext(), node, trueLabel, falseLabel); markLabel(falseTarget); } else { int interLabel = acquireLabel(); if (type == TokenStream.AND) { generateCodeFromNode(child, node, interLabel, falseLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, interLabel); addByteCode(ByteCode.GOTO, falseLabel); } } else { generateCodeFromNode(child, node, trueLabel, interLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, trueLabel); addByteCode(ByteCode.GOTO, interLabel); } } markLabel(interLabel); child = child.getNext(); generateCodeFromNode(child, node, trueLabel, falseLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, trueLabel); addByteCode(ByteCode.GOTO, falseLabel); } } } break; case TokenStream.ADD: { generateCodeFromNode(child, node, trueLabel, falseLabel); generateCodeFromNode(child.getNext(), node, trueLabel, falseLabel); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: addByteCode(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); } } break; case TokenStream.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case TokenStream.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case TokenStream.DIV: case TokenStream.MOD: visitArithmetic(node, type == TokenStream.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case TokenStream.BITOR: case TokenStream.BITXOR: case TokenStream.BITAND: case TokenStream.LSH: case TokenStream.RSH: case TokenStream.URSH: visitBitOp(node, type, child); break; case TokenStream.CONVERT: { Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); addDoubleConstructor(); } else { if (toType == ScriptRuntime.DoubleClass) { // cnvt to double // (not Double) generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); } else { if (toType == ScriptRuntime.ObjectClass) { // convert from double int prop = -1; if (child.getType() == TokenStream.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node, trueLabel, falseLabel); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, trueLabel, falseLabel); addDoubleConstructor(); } } else badTree(); } } } break; case TokenStream.RELOP: if (trueLabel == -1) // need a result Object visitRelOp(node, child, parent); else visitGOTOingRelOp(node, child, parent, trueLabel, falseLabel); break; case TokenStream.EQOP: visitEqOp(node, child, parent, trueLabel, falseLabel); break; case TokenStream.GETPROP: visitGetProp(node, child); break; case TokenStream.GETELEM: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "getElem", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "getElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case TokenStream.GETVAR: { OptLocalVariable lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); visitGetVar(lVar, node.getIntProp(Node.ISNUMBER_PROP, -1) != -1, node.getString()); } break; case TokenStream.SETVAR: visitSetVar(node, child, true); break; case TokenStream.SETNAME: visitSetName(node, child); break; case TokenStream.SETPROP: visitSetProp(node, child); break; case TokenStream.SETELEM: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"D" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case TokenStream.DELPROP: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case TokenStream.BINDNAME: case TokenStream.GETBASE: visitBind(node, type, child); break; case TokenStream.GETTHIS: generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.PARENT: generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("getParent", "(Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.NEWTEMP: visitNewTemp(node, child); break; case TokenStream.USETEMP: visitUseTemp(node, child); break; case TokenStream.NEWLOCAL: visitNewLocal(node, child); break; case TokenStream.USELOCAL: visitUseLocal(node, child); break; default: throw new RuntimeException("Unexpected node type " + TokenStream.tokenToName(type)); } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/4fa07f31de89d0efead3f273910f4ac52f44270d/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1085, 28570, 12, 907, 756, 16, 2029, 982, 16, 509, 638, 2224, 16, 4766, 1377, 509, 629, 2224, 13, 565, 288, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 4507, 981, 364, 315, 397, 756, 18, 10492, 10663, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 723, 13, 288, 2868, 648, 3155, 1228, 18, 28677, 30, 2868, 648, 3155, 1228, 18, 9147, 30, 2868, 648, 3155, 1228, 18, 13545, 30, 7734, 3757, 3406, 12, 2159, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 638, 2224, 16, 629, 2224, 1769, 10792, 1151, 273, 1151, 18, 588, 2134, 5621, 7734, 289, 7734, 898, 31, 2868, 648, 3155, 1228, 18, 13415, 30, 2868, 648, 3155, 1228, 18, 5280, 30, 7734, 368, 11329, 12044, 1404, 4259, 506, 8056, 3205, 35, 2868, 648, 3155, 1228, 18, 10885, 30, 2868, 648, 3155, 1228, 18, 11403, 30, 2868, 648, 3155, 1228, 18, 58, 12945, 30, 2868, 648, 3155, 1228, 18, 3417, 52, 30, 7734, 368, 1158, 17, 4473, 18, 7734, 3757, 3406, 12, 2159, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 638, 2224, 16, 629, 2224, 1769, 10792, 1151, 273, 1151, 18, 588, 2134, 5621, 7734, 289, 7734, 898, 31, 2868, 648, 3155, 1228, 18, 7788, 30, 7734, 309, 261, 267, 2083, 747, 982, 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, 2103, 1085, 28570, 12, 907, 756, 16, 2029, 982, 16, 509, 638, 2224, 16, 4766, 1377, 509, 629, 2224, 13, 565, 288, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 4507, 981, 364, 315, 397, 756, 18, 10492, 10663, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 723, 13, 288, 2868, 648, 3155, 1228, 18, 28677, 30, 2868, 648, 3155, 1228, 18, 9147, 30, 2868, 648, 3155, 1228, 18, 13545, 30, 7734, 3757, 3406, 12, 2159, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 638, 2224, 16, 629, 2224, 1769, 10792, 1151, 2 ]
assert trace.getPrimePump() - dst.getPrimePump() == diff : "Illegal primepump schedule";
assert Math.abs(trace.getPrimePump() - dst.getPrimePump()) == diff : "Illegal primepump schedule " + diff + " != " + Math.abs(trace.getPrimePump() - dst.getPrimePump());
private static void checkGraph(SimpleScheduler schedule) { Iterator traces = schedule.getInitSchedule().iterator(); while (traces.hasNext()) { Trace trace = (Trace)traces.next(); //check sources Iterator sources = trace.getHead().getSourceSet().iterator(); if (sources.hasNext()) { Trace src = ((Edge)sources.next()).getSrc().getParent(); int diff = src.getPrimePump() - trace.getPrimePump(); //if (diff != 0 && diff != 1) // System.out.println("Illegal primepump schedule1 " + trace); assert diff == 0 || diff == 1 : "Illegal primepump schedule"; while (sources.hasNext()) { src = ((Edge)sources.next()).getSrc().getParent(); //assert all one off //if (src.getPrimePump() - trace.getPrimePump() != diff) //System.out.println("Illegal primepump schedule2 " + trace); assert src.getPrimePump() - trace.getPrimePump() == diff : "Illegal primepump schedule"; } } //check dests Iterator dests = trace.getTail().getDestSet().iterator(); if (dests.hasNext()) { Trace dst = ((Edge)dests.next()).getDest().getParent(); int diff = trace.getPrimePump() - dst.getPrimePump(); //if (diff != 0 && diff != 1) // System.out.println("Illegal primepump schedule3 " + trace); assert diff == 0 || diff == 1 : "Illegal primepump schedule"; while (dests.hasNext()) { dst = ((Edge)dests.next()).getDest().getParent(); //if (trace.getPrimePump() - dst.getPrimePump() != diff) //System.out.println("Illegal primepump schedule3 " + trace); assert trace.getPrimePump() - dst.getPrimePump() == diff : "Illegal primepump schedule"; } } } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/efde37d94a0203444814680a709522cd90f477c2/SchedulePrimePump.java/buggy/streams/src/at/dms/kjc/spacetime/SchedulePrimePump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 866, 4137, 12, 5784, 11870, 4788, 13, 377, 288, 202, 3198, 19649, 273, 4788, 18, 588, 2570, 6061, 7675, 9838, 5621, 202, 202, 17523, 261, 2033, 764, 18, 5332, 2134, 10756, 288, 202, 565, 2677, 2606, 273, 261, 3448, 13, 2033, 764, 18, 4285, 5621, 202, 565, 368, 1893, 5550, 202, 565, 4498, 5550, 273, 2606, 18, 588, 1414, 7675, 588, 1830, 694, 7675, 9838, 5621, 202, 565, 309, 261, 10141, 18, 5332, 2134, 10756, 288, 202, 202, 3448, 1705, 273, 14015, 6098, 13, 10141, 18, 4285, 1435, 2934, 588, 7740, 7675, 588, 3054, 5621, 202, 202, 474, 3122, 273, 1705, 18, 588, 23327, 52, 2801, 1435, 300, 2606, 18, 588, 23327, 52, 2801, 5621, 202, 202, 759, 430, 261, 5413, 480, 374, 597, 3122, 480, 404, 13, 202, 202, 759, 282, 2332, 18, 659, 18, 8222, 2932, 12195, 17014, 84, 2801, 4788, 21, 315, 397, 2606, 1769, 202, 202, 11231, 3122, 422, 374, 747, 3122, 422, 404, 294, 1082, 202, 6, 12195, 17014, 84, 2801, 4788, 14432, 202, 202, 17523, 261, 10141, 18, 5332, 2134, 10756, 288, 1082, 565, 1705, 273, 14015, 6098, 13, 10141, 18, 4285, 1435, 2934, 588, 7740, 7675, 588, 3054, 5621, 1082, 565, 368, 11231, 777, 1245, 3397, 1082, 565, 368, 430, 261, 4816, 18, 588, 23327, 52, 2801, 1435, 300, 2606, 18, 588, 23327, 52, 2801, 1435, 480, 3122, 13, 1082, 565, 368, 3163, 18, 659, 18, 8222, 2932, 12195, 17014, 84, 2801, 4788, 22, 315, 397, 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, 866, 4137, 12, 5784, 11870, 4788, 13, 377, 288, 202, 3198, 19649, 273, 4788, 18, 588, 2570, 6061, 7675, 9838, 5621, 202, 202, 17523, 261, 2033, 764, 18, 5332, 2134, 10756, 288, 202, 565, 2677, 2606, 273, 261, 3448, 13, 2033, 764, 18, 4285, 5621, 202, 565, 368, 1893, 5550, 202, 565, 4498, 5550, 273, 2606, 18, 588, 1414, 7675, 588, 1830, 694, 7675, 9838, 5621, 202, 565, 309, 261, 10141, 18, 5332, 2134, 10756, 288, 202, 202, 3448, 1705, 273, 14015, 6098, 13, 10141, 18, 4285, 1435, 2934, 588, 7740, 7675, 588, 3054, 5621, 202, 202, 474, 3122, 273, 1705, 18, 588, 23327, 52, 2801, 1435, 300, 2606, 18, 588, 23327, 52, 2801, 5621, 2 ]
protected void importMaster(String subId, String classname, Element masterElement) throws CmsException { CmsMasterDataSet newDataset = new CmsMasterDataSet(); Vector channelRelations = new Vector(); Vector masterMedia = new Vector(); m_report.print(org.opencms.importexport.Messages.get().container( org.opencms.importexport.Messages.RPT_IMPORTING_0), I_CmsReport.C_FORMAT_NOTE); // try to get the dataset try { int subIdInt = Integer.parseInt(subId); newDataset = getMasterDataSet(subIdInt, masterElement); } catch (Exception e) { m_report.println(e); throw new CmsLegacyException("Cannot get dataset ", e); } m_report.print(Messages.get().container(Messages.RPT_ARGUMENT_2, CmsEncoder.escapeHtml(newDataset.m_title), classname)); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); // try to get the channelrelations try { channelRelations = getMasterChannelRelation(masterElement); } catch (Exception e) { m_report.println(e); throw new CmsLegacyException("Cannot get channelrelations ", e); } // try to get the media try { masterMedia = getMasterMedia(masterElement); } catch (Exception e) { m_report.println(e); throw new CmsLegacyException("Cannot get media ", e); } // add the channels and media to the dataset newDataset.m_channelToAdd = channelRelations; newDataset.m_mediaToAdd = masterMedia; // create the new content definition CmsMasterContent newMaster = getContentDefinition(classname, new Class[] {CmsObject.class, CmsMasterDataSet.class }, new Object[] {m_cms, newDataset }); try { CmsUUID userId = newMaster.getOwner(); CmsUUID groupId = newMaster.getGroupId(); // first insert the new master newMaster.importMaster(); // now update the master because user and group might be changed newMaster.chown(m_cms, userId); newMaster.chgrp(m_cms, groupId); } catch (Exception e) { m_report.println(e); throw new CmsLegacyException("Cannot write master ", e); } m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/88860f55b9c735c7dd01b24ea1419cb95dc77799/CmsImportModuledata.java/buggy/src-modules/com/opencms/legacy/CmsImportModuledata.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1930, 7786, 12, 780, 720, 548, 16, 514, 7479, 16, 3010, 4171, 1046, 13, 1216, 11228, 288, 3639, 2149, 7786, 13676, 394, 10656, 273, 394, 2149, 7786, 13676, 5621, 3639, 5589, 1904, 10666, 273, 394, 5589, 5621, 3639, 5589, 4171, 5419, 273, 394, 5589, 5621, 7734, 312, 67, 6006, 18, 1188, 12, 3341, 18, 556, 14645, 18, 5666, 6530, 18, 5058, 18, 588, 7675, 3782, 12, 5411, 2358, 18, 556, 14645, 18, 5666, 6530, 18, 5058, 18, 54, 1856, 67, 20445, 1360, 67, 20, 3631, 467, 67, 25702, 18, 39, 67, 7254, 67, 17857, 1769, 7734, 368, 775, 358, 336, 326, 3709, 3639, 775, 288, 5411, 509, 720, 548, 1702, 273, 2144, 18, 2670, 1702, 12, 1717, 548, 1769, 5411, 394, 10656, 273, 27607, 13676, 12, 1717, 548, 1702, 16, 4171, 1046, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 312, 67, 6006, 18, 8222, 12, 73, 1769, 5411, 604, 394, 2149, 12235, 503, 2932, 4515, 336, 3709, 3104, 425, 1769, 3639, 289, 7734, 312, 67, 6006, 18, 1188, 12, 5058, 18, 588, 7675, 3782, 12, 5058, 18, 54, 1856, 67, 18311, 67, 22, 16, 2398, 2149, 7204, 18, 6939, 4353, 12, 2704, 10656, 18, 81, 67, 2649, 3631, 7479, 10019, 3639, 312, 67, 6006, 18, 1188, 12, 3341, 18, 556, 14645, 18, 6006, 18, 5058, 18, 588, 7675, 3782, 12, 3341, 18, 556, 14645, 18, 6006, 18, 5058, 18, 54, 1856, 67, 17591, 55, 67, 20, 10019, 10402, 368, 775, 358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1930, 7786, 12, 780, 720, 548, 16, 514, 7479, 16, 3010, 4171, 1046, 13, 1216, 11228, 288, 3639, 2149, 7786, 13676, 394, 10656, 273, 394, 2149, 7786, 13676, 5621, 3639, 5589, 1904, 10666, 273, 394, 5589, 5621, 3639, 5589, 4171, 5419, 273, 394, 5589, 5621, 7734, 312, 67, 6006, 18, 1188, 12, 3341, 18, 556, 14645, 18, 5666, 6530, 18, 5058, 18, 588, 7675, 3782, 12, 5411, 2358, 18, 556, 14645, 18, 5666, 6530, 18, 5058, 18, 54, 1856, 67, 20445, 1360, 67, 20, 3631, 467, 67, 25702, 18, 39, 67, 7254, 67, 17857, 1769, 7734, 368, 775, 358, 336, 326, 3709, 3639, 775, 288, 5411, 509, 720, 548, 1702, 273, 2144, 18, 2670, 1702, 12, 2 ]
if (connection_.last_received_message_ID() == Ok) { String results = connection_.result().toString();
if (connection.last_received_message_ID() == Ok) { String results = connection.result().toString();
public void send_time_delimited_market_data_request(String symbol, String period_type, Date start_date_time, Date end_date_time) throws Exception {//!!!Adapt .../*!!!!!Notes: Probably the Parser is a good place to extract the"latest date-time" - make it available as a query, which, here, can becalled after 'parse' is called and made available, perhaps as:'latest_date_time_from_last_request' or something like that.*/ connection_.send_request(Market_data_request, symbol + Message_field_separator + period_type + Message_field_separator + date_time_range(start_date_time, end_date_time)); if (connection_.last_received_message_ID() == Ok) { String results = connection_.result().toString(); results = setup_parser_fieldspecs(results); data_parser.parse(results, main_drawer); _last_market_data = data_parser.result(); _last_market_data.set_drawer(main_drawer); _last_volume = data_parser.volume_result(); if (_last_volume != null) { _last_volume.set_drawer(volume_drawer); } _last_open_interest = data_parser.open_interest_result(); if (_last_open_interest != null) { _last_open_interest.set_drawer(open_interest_drawer); } } }
13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/54a0ce9a3412af38a1707b3ed6037afb96248aa5/DataSetBuilder.java/buggy/src/clients/mas_gui/DataSetBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 67, 957, 67, 3771, 1038, 329, 67, 27151, 67, 892, 67, 2293, 12, 780, 3273, 16, 202, 202, 780, 3879, 67, 723, 16, 2167, 787, 67, 712, 67, 957, 16, 2167, 679, 67, 712, 67, 957, 13, 1082, 202, 15069, 1185, 288, 759, 25885, 13716, 1372, 20308, 23045, 5, 18063, 30, 14610, 6906, 326, 6783, 353, 279, 7494, 3166, 358, 2608, 326, 6, 13550, 1509, 17, 957, 6, 300, 1221, 518, 2319, 487, 279, 843, 16, 1492, 16, 2674, 16, 848, 506, 11777, 1839, 296, 2670, 11, 353, 2566, 471, 7165, 2319, 16, 26282, 487, 2497, 13550, 67, 712, 67, 957, 67, 2080, 67, 2722, 67, 2293, 11, 578, 5943, 3007, 716, 4509, 19, 202, 202, 4071, 27799, 4661, 67, 2293, 12, 3882, 278, 67, 892, 67, 2293, 16, 3273, 397, 1082, 202, 1079, 67, 1518, 67, 11287, 397, 3879, 67, 723, 397, 2350, 67, 1518, 67, 11287, 397, 1082, 202, 712, 67, 957, 67, 3676, 12, 1937, 67, 712, 67, 957, 16, 679, 67, 712, 67, 957, 10019, 202, 202, 430, 261, 4071, 27799, 2722, 67, 15213, 67, 2150, 67, 734, 1435, 422, 16154, 13, 288, 1082, 202, 780, 1686, 273, 1459, 27799, 2088, 7675, 10492, 5621, 1082, 202, 4717, 273, 3875, 67, 4288, 67, 1518, 15115, 12, 4717, 1769, 1082, 202, 892, 67, 4288, 18, 2670, 12, 4717, 16, 2774, 67, 9446, 264, 1769, 1082, 202, 67, 2722, 67, 27151, 67, 892, 273, 501, 67, 4288, 18, 2088, 5621, 1082, 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, 1366, 67, 957, 67, 3771, 1038, 329, 67, 27151, 67, 892, 67, 2293, 12, 780, 3273, 16, 202, 202, 780, 3879, 67, 723, 16, 2167, 787, 67, 712, 67, 957, 16, 2167, 679, 67, 712, 67, 957, 13, 1082, 202, 15069, 1185, 288, 759, 25885, 13716, 1372, 20308, 23045, 5, 18063, 30, 14610, 6906, 326, 6783, 353, 279, 7494, 3166, 358, 2608, 326, 6, 13550, 1509, 17, 957, 6, 300, 1221, 518, 2319, 487, 279, 843, 16, 1492, 16, 2674, 16, 848, 506, 11777, 1839, 296, 2670, 11, 353, 2566, 471, 7165, 2319, 16, 26282, 487, 2497, 13550, 67, 712, 67, 957, 67, 2080, 67, 2722, 67, 2293, 11, 578, 5943, 3007, 716, 4509, 19, 2 ]
URL fullURL = (locationData != null && locationData.getSystemID() != null)
URL fullURL = (locationData != null && locationData.getSystemID() != null && NetUtils.urlHasProtocol(locationData.getSystemID()))
public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { // Read config input into a URL, cache if possible ConfigURIReferences configURIReferences = URLGenerator.this.localConfigURIReferences != null ? localConfigURIReferences : (ConfigURIReferences) readCacheInputAsObject(pipelineContext, getInputByName(INPUT_CONFIG), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { Element configElement = readInputAsDOM4J(context, input).getRootElement(); // Shortcut if the url is direct child of config String url = configElement.getTextTrim(); if (url != null && !url.equals("")) { try { return new ConfigURIReferences(new Config(URLFactory.createURL(url))); } catch (MalformedURLException e) { throw new OXFException(e); } } // We have the /config/url syntax url = XPathUtils.selectStringValueNormalize(configElement, "/config/url"); // Get content-type String contentType = XPathUtils.selectStringValueNormalize(configElement, "/config/content-type"); boolean forceContentType = ProcessorUtils.selectBooleanValue(configElement, "/config/force-content-type", DEFAULT_FORCE_CONTENT_TYPE); if (forceContentType && (contentType == null || contentType.equals(""))) throw new OXFException("The force-content-type element requires a content-type element."); // Get encoding String encoding = XPathUtils.selectStringValueNormalize(configElement, "/config/encoding"); boolean forceEncoding = ProcessorUtils.selectBooleanValue(configElement, "/config/force-encoding", DEFAULT_FORCE_ENCODING); boolean ignoreConnectionEncoding = ProcessorUtils.selectBooleanValue(configElement, "/config/ignore-connection-encoding", DEFAULT_IGNORE_CONNECTION_ENCODING); if (forceEncoding && (encoding == null || encoding.equals(""))) throw new OXFException("The force-encoding element requires an encoding element."); // Get headers Map headers = new HashMap(); for (Iterator i = configElement.selectNodes("/config/header").iterator(); i.hasNext();) { Element headerElement = (Element) i.next(); String name = headerElement.element("name").getStringValue(); String value = headerElement.element("value").getStringValue(); headers.put(name, value); } // Validation setting: local, then properties, then hard-coded default boolean defaultValidating = getPropertySet().getBoolean(VALIDATING_PROPERTY, DEFAULT_VALIDATING).booleanValue(); boolean validating = ProcessorUtils.selectBooleanValue(configElement, "/config/validating", defaultValidating); // Cache control boolean cacheUseLocalCache = ProcessorUtils.selectBooleanValue(configElement, "/config/cache-control/use-local-cache", DEFAULT_CACHE_USE_LOCAL_CACHE); boolean cacheAlwaysRevalidate = ProcessorUtils.selectBooleanValue(configElement, "/config/cache-control/always-revalidate", DEFAULT_CACHE_ALWAYS_REVALIDATE); int cacheExpiration = ProcessorUtils.selectIntValue(configElement, "/config/cache-control/expiration", DEFAULT_CACHE_EXPIRATION); // Get Tidy config (will only apply if content-type is text/html) TidyConfig tidyConfig = new TidyConfig(XPathUtils.selectSingleNode(configElement, "/config/tidy-options")); // Create configuration object try { // Use location data if present so that relative URLs can be supported LocationData locationData = URLGenerator.this.getLocationData(); URL fullURL = (locationData != null && locationData.getSystemID() != null) ? URLFactory.createURL(locationData.getSystemID(), url) : URLFactory.createURL(url); // Create configuration Config config = new Config(fullURL, contentType, forceContentType, encoding, forceEncoding, ignoreConnectionEncoding, validating, headers, cacheUseLocalCache, cacheAlwaysRevalidate, cacheExpiration, tidyConfig); if (logger.isDebugEnabled()) logger.debug("Read configuration: " + config.toString()); return new ConfigURIReferences(config); } catch (MalformedURLException e) { throw new OXFException(e); } } }); try { // Never accept a null URL if (configURIReferences.config.getURL() == null) throw new OXFException("Missing configuration."); // Create unique key and validity for the document CacheKey key = new InternalCacheKey(URLGenerator.this, "urlDocument", configURIReferences.config.toString()); // Resource from cache Object cachedResource = null; // Check if we can directly serve the resource from cache// if (configURIReferences.config.cacheExpiration != CACHE_EXPIRATION_LAST_MODIFIED) {// // We don't use the last-modified header, but instead we use an expiration value set by the user// long cacheExpiration = (configURIReferences.config.cacheExpiration < 0) ? configURIReferences.config.cacheExpiration : configURIReferences.config.cacheExpiration * 1000; // time is in msb// cachedResource = ObjectCache.instance().findValidWithExpiration(context, key, cacheExpiration);// if (cachedResource != null)// ((SAXStore) cachedResource).replay(contentHandler);// } if (cachedResource == null) { // We are unable to just replay from cache without accessing the resource // Decide whether to use read from the special oxf: handler or the generic URL handler ResourceHandler handler = null; try { // We use the same validity as for the output Object validity = getValidityImpl(pipelineContext); cachedResource = ObjectCache.instance().findValid(pipelineContext, key, validity); if (cachedResource != null) { // Just replay the cached resource // NOTE: should we do this only with config.isCacheUseLocalCache() = true? ((SAXStore) cachedResource).replay(contentHandler); } else { // We need to read the resource handler = Handler.PROTOCOL.equals(configURIReferences.config.getURL().getProtocol()) ? (ResourceHandler) new OXFResourceHandler(configURIReferences.config) : (ResourceHandler) new URLResourceHandler(configURIReferences.config); // Find content-type to use. If the config says to force the // content-type, we use the content-type provided by the user. // Otherwise, we give the priority to the content-type provided by // the connection, then the content-type provided by the user, then // we use the default content-type (XML). The user will have to // provide a content-type for example to read HTML documents with // the file: protocol. String contentType; if (configURIReferences.config.isForceContentType()) { contentType = configURIReferences.config.getContentType(); } else { contentType = handler.getResourceContentType(); if (contentType == null) contentType = configURIReferences.config.getContentType(); if (contentType == null) contentType = ProcessorUtils.DEFAULT_CONTENT_TYPE; } // Create store for caching if necessary ContentHandler output = configURIReferences.config.isCacheUseLocalCache() ? new SAXStore(contentHandler) : contentHandler; //System.out.println("XXX " + configURIReferences.config.toString() + " XXX " + handler.getResourceContentType()); // Read resource if (ProcessorUtils.HTML_CONTENT_TYPE.equals(contentType)) { handler.readHTML(output); configURIReferences.uriReferences = null; } else if (ProcessorUtils.isXMLContentType(contentType)) { LocalXIncludeListener localXIncludeListener = new LocalXIncludeListener(); XIncludeHandler.setXIncludeListener(localXIncludeListener); try { handler.readXML(pipelineContext, output); } finally { XIncludeHandler.setXIncludeListener(null); } localXIncludeListener.updateCache(pipelineContext, configURIReferences); } else if (ProcessorUtils.isTextContentType(contentType)) { handler.readText(output, contentType); configURIReferences.uriReferences = null; } else { handler.readBinary(output, contentType); configURIReferences.uriReferences = null; } // Cache the resource if (configURIReferences.config.isCacheUseLocalCache()) ObjectCache.instance().add(pipelineContext, key, validity, output); } } finally { if (handler != null) handler.destroy(); } } } catch (SAXParseException spe) { throw new ValidationException(spe.getMessage(), new LocationData(spe)); } catch (ValidationException e) { final LocationData locationData = e.getLocationData(); // The system id may not be set if (locationData == null || locationData.getSystemID() == null) throw ValidationException.wrapException(e, new LocationData(configURIReferences.config.getURL().toExternalForm(), -1, -1)); else throw e; } catch (OXFException e) { throw e; } catch (Exception e) { throw new ValidationException(e, new LocationData(configURIReferences.config.getURL().toExternalForm(), -1, -1)); } }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/c92faea3770d68e915964a3102a4873b3279f0cd/URLGenerator.java/clean/src/java/org/orbeon/oxf/processor/generator/URLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 368, 2720, 642, 810, 1368, 279, 1976, 16, 1247, 309, 3323, 7734, 1903, 3098, 8221, 642, 3098, 8221, 273, 1976, 3908, 18, 2211, 18, 3729, 809, 3098, 8221, 480, 446, 692, 1191, 809, 3098, 8221, 294, 13491, 261, 809, 3098, 8221, 13, 855, 1649, 1210, 1463, 921, 12, 14511, 1042, 16, 12353, 5911, 12, 15934, 67, 7203, 3631, 394, 4379, 429, 1210, 2514, 1435, 288, 18701, 1071, 1033, 855, 12, 8798, 1042, 819, 16, 15476, 1210, 810, 13, 288, 27573, 3010, 642, 1046, 273, 855, 1210, 1463, 8168, 24, 46, 12, 2472, 16, 810, 2934, 588, 2375, 1046, 5621, 27573, 368, 7925, 5150, 309, 326, 880, 353, 2657, 1151, 434, 642, 27573, 514, 880, 273, 642, 1046, 18, 588, 1528, 14795, 5621, 27573, 309, 261, 718, 480, 446, 597, 401, 718, 18, 14963, 2932, 6, 3719, 288, 4766, 565, 775, 288, 4766, 3639, 327, 394, 1903, 3098, 8221, 12, 2704, 1903, 12, 1785, 1733, 18, 2640, 1785, 12, 718, 3719, 1769, 4766, 565, 289, 1044, 261, 18695, 20160, 425, 13, 288, 4766, 3639, 604, 394, 531, 60, 42, 503, 12, 73, 1769, 4766, 565, 289, 27573, 289, 27573, 368, 1660, 1240, 326, 342, 1425, 19, 718, 6279, 27573, 880, 273, 10172, 1989, 18, 4025, 19733, 14380, 12, 1425, 1046, 16, 2206, 1425, 19, 718, 8863, 27573, 368, 968, 913, 17, 723, 27573, 514, 5064, 273, 10172, 1989, 18, 4025, 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, 2398, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 368, 2720, 642, 810, 1368, 279, 1976, 16, 1247, 309, 3323, 7734, 1903, 3098, 8221, 642, 3098, 8221, 273, 1976, 3908, 18, 2211, 18, 3729, 809, 3098, 8221, 480, 446, 692, 1191, 809, 3098, 8221, 294, 13491, 261, 809, 3098, 8221, 13, 855, 1649, 1210, 1463, 921, 12, 14511, 1042, 16, 12353, 5911, 12, 15934, 67, 7203, 3631, 394, 4379, 429, 1210, 2514, 1435, 288, 18701, 1071, 1033, 855, 12, 8798, 1042, 819, 16, 15476, 1210, 810, 13, 288, 27573, 3010, 642, 1046, 273, 855, 1210, 1463, 8168, 24, 46, 12, 2472, 16, 810, 2934, 588, 2375, 1046, 5621, 27573, 368, 2 ]
UMLTreeModel model,boolean navigate) {
UMLTreeModel model, boolean navigate) {
public UMLTree(UMLUserInterfaceContainer container, UMLTreeModel model,boolean navigate) { super(model); _model = model; _navigate = navigate; _container = container; setRootVisible(false); setEditable(false); getSelectionModel().setSelectionMode (TreeSelectionModel.SINGLE_TREE_SELECTION); if(navigate) { addMouseListener(this); addTreeSelectionListener(this); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLTree.java/buggy/src_new/org/argouml/uml/ui/UMLTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 1495, 2471, 12, 57, 1495, 1299, 1358, 2170, 1478, 16, 3639, 587, 1495, 2471, 1488, 938, 16, 1250, 28479, 13, 288, 3639, 2240, 12, 2284, 1769, 3639, 389, 2284, 273, 938, 31, 3639, 389, 82, 20698, 273, 28479, 31, 3639, 389, 3782, 273, 1478, 31, 3639, 31706, 6207, 12, 5743, 1769, 3639, 444, 15470, 12, 5743, 1769, 3639, 23204, 1488, 7675, 542, 6233, 2309, 5411, 261, 2471, 6233, 1488, 18, 20184, 67, 26557, 67, 1090, 15445, 1769, 3639, 309, 12, 82, 20698, 13, 288, 5411, 527, 9186, 2223, 12, 2211, 1769, 5411, 527, 2471, 6233, 2223, 12, 2211, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 1495, 2471, 12, 57, 1495, 1299, 1358, 2170, 1478, 16, 3639, 587, 1495, 2471, 1488, 938, 16, 1250, 28479, 13, 288, 3639, 2240, 12, 2284, 1769, 3639, 389, 2284, 273, 938, 31, 3639, 389, 82, 20698, 273, 28479, 31, 3639, 389, 3782, 273, 1478, 31, 3639, 31706, 6207, 12, 5743, 1769, 3639, 444, 15470, 12, 5743, 1769, 3639, 23204, 1488, 7675, 542, 6233, 2309, 5411, 261, 2471, 6233, 1488, 18, 20184, 67, 26557, 67, 1090, 15445, 1769, 3639, 309, 12, 82, 20698, 13, 288, 5411, 527, 9186, 2223, 12, 2211, 1769, 5411, 527, 2471, 6233, 2223, 12, 2211, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
CreateFileWindow.action(main, sourceInfo, -1).run();
CreateFileWindow.action(debugGui, sourceInfo, -1).run();
public void run() { String fileName = sourceInfo.getUrl(); FileWindow w = main.getFileWindow(fileName); if (w != null) { w.updateText(); w.show(); } else if (!fileName.equals("<stdin>")) { CreateFileWindow.action(main, sourceInfo, -1).run(); } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 514, 3968, 273, 1084, 966, 18, 588, 1489, 5621, 3639, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 17812, 1769, 3639, 309, 261, 91, 480, 446, 13, 288, 5411, 341, 18, 2725, 1528, 5621, 5411, 341, 18, 4500, 5621, 3639, 289, 469, 309, 16051, 17812, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1788, 812, 3829, 18, 1128, 12, 4148, 18070, 16, 1084, 966, 16, 300, 21, 2934, 2681, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 514, 3968, 273, 1084, 966, 18, 588, 1489, 5621, 3639, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 17812, 1769, 3639, 309, 261, 91, 480, 446, 13, 288, 5411, 341, 18, 2725, 1528, 5621, 5411, 341, 18, 4500, 5621, 3639, 289, 469, 309, 16051, 17812, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1788, 812, 3829, 18, 1128, 12, 4148, 18070, 16, 1084, 966, 16, 300, 21, 2934, 2681, 5621, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static String message(String msg, Class clazz) {
public static String message(String msg, Class clazz) {
public static String message(String msg, Class clazz) { return DEFAULT.getMessage(msg, clazz); }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/d2f6e0d6604886bedd04b5c5921bfe9641229d5a/I18N.java/buggy/dspace/src/org/dspace/core/I18N.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 883, 12, 780, 1234, 16, 1659, 4003, 13, 288, 202, 202, 2463, 3331, 18, 24906, 12, 3576, 16, 4003, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 883, 12, 780, 1234, 16, 1659, 4003, 13, 288, 202, 202, 2463, 3331, 18, 24906, 12, 3576, 16, 4003, 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 ]
} else { uri += "."+mimeType;
public static void main(String [] args) { String mimeType = "image/png"; String directory = null; List svgFiles = new LinkedList(); int i=0; float width = Float.NaN; float height = Float.NaN; while (i < args.length) { if (args[i].equals("-d")) { if (i+1 < args.length) { i++; directory = args[i++]; continue; } else { error("option -d requires an argument"); usage(System.err); System.exit(1); } } else if (args[i].equals("-m")) { if (i+1 < args.length) { i++; mimeType = args[i++]; continue; } else { error("option -m requires an argument"); usage(System.err); System.exit(1); } } else if (args[i].equals("-w")) { if (i+1 < args.length) { i++; try{ width = Float.parseFloat(args[i++]); }catch(NumberFormatException e){ usage(System.err); System.exit(1); } continue; } else { error("option -w requires an argument"); usage(System.err); System.exit(1); } } else if (args[i].equals("-h")) { if (i+1 < args.length) { i++; try{ width = Float.parseFloat(args[i++]); }catch(NumberFormatException e){ usage(System.err); System.exit(1); } continue; } else { error("option -h requires an argument"); usage(System.err); System.exit(1); } } else if (args[i].equals("-help")) { usage(System.out); System.exit(0); } else { svgFiles.add(args[i++]); continue; } } /*TranscoderFactory factory = ConcreteTranscoderFactory.getTranscoderFactoryImplementation(); */ ImageTranscoder t = null; if (mimeType.equals("image/jpg") || mimeType.equals("image/jpeg") || mimeType.equals("image/jpe")) { t = new JPEGTranscoder(); t.addTranscodingHint(JPEGTranscoder.KEY_XML_PARSER_CLASSNAME, "org.apache.crimson.parser.XMLReaderImpl"); } else if (mimeType.equals("image/png")) { t = new PNGTranscoder(); t.addTranscodingHint(PNGTranscoder.KEY_XML_PARSER_CLASSNAME, "org.apache.crimson.parser.XMLReaderImpl"); } if (t == null) { error("No transcoder found for mime type : "+mimeType); System.exit(1); } if(!Float.isNaN(width)){ t.addTranscodingHint(ImageTranscoder.KEY_WIDTH, new Float(width)); } if(!Float.isNaN(height)){ t.addTranscodingHint(ImageTranscoder.KEY_HEIGHT, new Float(height)); } for (Iterator iter = svgFiles.iterator(); iter.hasNext();) { String s = (String) iter.next(); File f = new File(s); String uri = f.getName(); if (uri.endsWith(".svg")) { uri = uri.substring(0, uri.lastIndexOf(".svg")); int k = mimeType.lastIndexOf('/'); if (k > 0) { String ext = mimeType.substring(k+1); if (ext.length() > 0) { uri += "."+ext; } } else { uri += "."+mimeType; } } if (directory == null) { directory = f.getParent(); } File output = new File(directory, uri); try { writeImage((ImageTranscoder)t, f.toURL().toString(), output.getAbsolutePath()); } catch (MalformedURLException ex) { error("Bad svg file : "+s); } } System.exit(0); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/f3b26f6fb767aa1e6673e0dd5670299831067c14/Main.java/buggy/sources/org/apache/batik/apps/rasterizer/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 288, 3639, 514, 10707, 273, 315, 2730, 19, 6446, 14432, 3639, 514, 1867, 273, 446, 31, 3639, 987, 9804, 2697, 273, 394, 10688, 5621, 3639, 509, 277, 33, 20, 31, 3639, 1431, 1835, 273, 5450, 18, 21172, 31, 3639, 1431, 2072, 273, 5450, 18, 21172, 31, 3639, 1323, 261, 77, 411, 833, 18, 2469, 13, 288, 5411, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 17, 72, 6, 3719, 288, 7734, 309, 261, 77, 15, 21, 411, 833, 18, 2469, 13, 288, 10792, 277, 9904, 31, 10792, 1867, 273, 833, 63, 77, 9904, 15533, 10792, 1324, 31, 7734, 289, 469, 288, 10792, 555, 2932, 3482, 300, 72, 4991, 392, 1237, 8863, 10792, 4084, 12, 3163, 18, 370, 1769, 10792, 2332, 18, 8593, 12, 21, 1769, 7734, 289, 5411, 289, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 17, 81, 6, 3719, 288, 7734, 309, 261, 77, 15, 21, 411, 833, 18, 2469, 13, 288, 10792, 277, 9904, 31, 10792, 10707, 273, 833, 63, 77, 9904, 15533, 10792, 1324, 31, 7734, 289, 469, 288, 10792, 555, 2932, 3482, 300, 81, 4991, 392, 1237, 8863, 10792, 4084, 12, 3163, 18, 370, 1769, 10792, 2332, 18, 8593, 12, 21, 1769, 7734, 289, 5411, 289, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 17, 91, 6, 3719, 288, 7734, 309, 261, 77, 15, 21, 411, 833, 18, 2469, 13, 288, 10792, 277, 9904, 31, 10792, 775, 95, 13491, 1835, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 288, 3639, 514, 10707, 273, 315, 2730, 19, 6446, 14432, 3639, 514, 1867, 273, 446, 31, 3639, 987, 9804, 2697, 273, 394, 10688, 5621, 3639, 509, 277, 33, 20, 31, 3639, 1431, 1835, 273, 5450, 18, 21172, 31, 3639, 1431, 2072, 273, 5450, 18, 21172, 31, 3639, 1323, 261, 77, 411, 833, 18, 2469, 13, 288, 5411, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 17, 72, 6, 3719, 288, 7734, 309, 261, 77, 15, 21, 411, 833, 18, 2469, 13, 288, 10792, 277, 9904, 31, 10792, 1867, 273, 833, 63, 77, 9904, 15533, 10792, 1324, 31, 7734, 289, 469, 288, 10792, 555, 2932, 3482, 300, 72, 4991, 392, 2 ]
InheritVerifiable inheritVerifiable = new InheritVerifiable(); inheritVerifiable.setValue("bad");
InheritVerifiable inheritVerifiable = new InheritVerifiable(); inheritVerifiable.setValue("bad");
public void testInheritVerifiableFails() { InheritVerifiable inheritVerifiable = new InheritVerifiable(); inheritVerifiable.setValue("bad"); boolean hasThrownException = false; try { inheritVerifiable.verify(); } catch (AssertionFailedError ex) { hasThrownException = true; } assertTrue("Should have thrown exception", hasThrownException); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/VerifierTest.java/buggy/jmock/core/src/test/jmock/util/VerifierTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14216, 3945, 8424, 30800, 1435, 288, 3639, 25953, 3945, 8424, 6811, 3945, 8424, 273, 394, 25953, 3945, 8424, 5621, 3639, 6811, 3945, 8424, 18, 542, 620, 2932, 8759, 8863, 3639, 1250, 711, 29591, 503, 273, 629, 31, 3639, 775, 288, 5411, 6811, 3945, 8424, 18, 8705, 5621, 3639, 289, 1044, 261, 14979, 2925, 668, 431, 13, 288, 5411, 711, 29591, 503, 273, 638, 31, 3639, 289, 3639, 1815, 5510, 2932, 14309, 1240, 6718, 1520, 3113, 711, 29591, 503, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14216, 3945, 8424, 30800, 1435, 288, 3639, 25953, 3945, 8424, 6811, 3945, 8424, 273, 394, 25953, 3945, 8424, 5621, 3639, 6811, 3945, 8424, 18, 542, 620, 2932, 8759, 8863, 3639, 1250, 711, 29591, 503, 273, 629, 31, 3639, 775, 288, 5411, 6811, 3945, 8424, 18, 8705, 5621, 3639, 289, 1044, 261, 14979, 2925, 668, 431, 13, 288, 5411, 711, 29591, 503, 273, 638, 31, 3639, 289, 3639, 1815, 5510, 2932, 14309, 1240, 6718, 1520, 3113, 711, 29591, 503, 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 ]
private void translateEmbeddedJSPInAttribute(ITextRegionCollection embeddedContainer) { // THIS METHOD IS A FIX FOR CMVC 263661 (jsp embedded in attribute regions) // loop all regions ITextRegionList embeddedRegions = embeddedContainer.getRegions(); ITextRegion delim = null; ITextRegion content = null; String type = null; for(int i=0; i<embeddedRegions.size(); i++) { // possible delimiter, check later delim = embeddedRegions.get(i); type = delim.getType(); // check next region to see if it's content if(i+1<embeddedRegions.size()) { if(embeddedRegions.get(i+1).getType() == XMLJSPRegionContexts.JSP_CONTENT) content = embeddedRegions.get(i+1); } if(content != null) { int contentStart = embeddedContainer.getStartOffset(content); int rStart = fCurrentNode.getStartOffset() + contentStart; int rEnd = fCurrentNode.getStartOffset() + embeddedContainer.getEndOffset(content); boolean inThisRegion = rStart <= fSourcePosition && rEnd >= fSourcePosition; //int jspPositionStart = fCurrentNode.getStartOffset() + contentStart; if(type == XMLJSPRegionContexts.JSP_EXPRESSION_OPEN) { fLastJSPType = EXPRESSION; translateExpressionString(embeddedContainer.getText(content), fCurrentNode, contentStart, content.getLength()); } else if(type == XMLJSPRegionContexts.JSP_SCRIPTLET_OPEN) { fLastJSPType = SCRIPTLET; translateScriptletString(embeddedContainer.getText(content), fCurrentNode, contentStart, content.getLength()); } else if(type == XMLJSPRegionContexts.JSP_DECLARATION_OPEN) { fLastJSPType = DECLARATION; translateDeclarationString(embeddedContainer.getText(content), fCurrentNode, contentStart, content.getLength()); } // calculate relative offset in buffer if (inThisRegion) { setCursorOwner(fLastJSPType); int currentBufferLength = getCursorOwner().length(); setRelativeOffset((fSourcePosition - contentStart) + currentBufferLength); if (fLastJSPType == EXPRESSION) { // if an expression, add then length of the enclosing paren.. setCursorInExpression(true); setRelativeOffset(getRelativeOffset() + EXPRESSION_PREFIX.length()); } } } else { type = null; content = null; } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/2e01915a5c78fe7220591d5dfc6ebf923eaed5f2/JSPTranslator.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4204, 14980, 46, 3118, 382, 1499, 12, 1285, 408, 5165, 2532, 7488, 2170, 13, 288, 202, 202, 759, 20676, 10152, 4437, 432, 8563, 12108, 15871, 13464, 576, 4449, 6028, 21, 261, 24926, 7488, 316, 1566, 10085, 13, 9506, 202, 759, 2798, 777, 10085, 202, 202, 1285, 408, 5165, 682, 7488, 17344, 273, 7488, 2170, 18, 588, 17344, 5621, 202, 202, 1285, 408, 5165, 10508, 273, 446, 31, 202, 202, 1285, 408, 5165, 913, 273, 446, 31, 202, 202, 780, 618, 273, 446, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 20722, 17344, 18, 1467, 5621, 277, 27245, 288, 25083, 202, 759, 3323, 5654, 16, 866, 5137, 1082, 202, 23822, 273, 7488, 17344, 18, 588, 12, 77, 1769, 1082, 202, 723, 273, 10508, 18, 588, 559, 5621, 25083, 202, 759, 866, 1024, 3020, 358, 2621, 309, 518, 1807, 913, 1082, 202, 430, 12, 77, 15, 21, 32, 20722, 17344, 18, 1467, 10756, 288, 9506, 202, 430, 12, 20722, 17344, 18, 588, 12, 77, 15, 21, 2934, 588, 559, 1435, 422, 3167, 46, 3118, 5165, 15518, 18, 46, 3118, 67, 9689, 13, 6862, 202, 1745, 273, 7488, 17344, 18, 588, 12, 77, 15, 21, 1769, 1082, 202, 97, 25083, 202, 430, 12, 1745, 480, 446, 13, 288, 9506, 202, 474, 913, 1685, 273, 282, 7488, 2170, 18, 588, 1685, 2335, 12, 1745, 1769, 9506, 202, 474, 436, 1685, 273, 284, 3935, 907, 18, 588, 1685, 2335, 1435, 397, 913, 1685, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4204, 14980, 46, 3118, 382, 1499, 12, 1285, 408, 5165, 2532, 7488, 2170, 13, 288, 202, 202, 759, 20676, 10152, 4437, 432, 8563, 12108, 15871, 13464, 576, 4449, 6028, 21, 261, 24926, 7488, 316, 1566, 10085, 13, 9506, 202, 759, 2798, 777, 10085, 202, 202, 1285, 408, 5165, 682, 7488, 17344, 273, 7488, 2170, 18, 588, 17344, 5621, 202, 202, 1285, 408, 5165, 10508, 273, 446, 31, 202, 202, 1285, 408, 5165, 913, 273, 446, 31, 202, 202, 780, 618, 273, 446, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 20722, 17344, 18, 1467, 5621, 277, 27245, 288, 25083, 202, 759, 3323, 5654, 16, 866, 5137, 1082, 202, 23822, 273, 7488, 2 ]
assertEquals( DateFormatType.LONG_LITERAL, DateFormatType.get(0) ); assertEquals( DateFormatType.SHORT_LITERAL, DateFormatType.get(1) );
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) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e757044daa53d502ecf969354d3f5ec94aa76fd1/DateFormatTypeTest.java/clean/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 ]
con.close();
if (con != null) { con.close(); }
private void closeConnection(Connection con) throws JMSException { try { con.close(); } catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b4d36483e149167fb50200b00fcb929c851d2576/HttpExample.java/buggy/docs/examples/http/src/org/jboss/example/jms/http/HttpExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1746, 1952, 12, 1952, 356, 13, 1216, 20343, 282, 288, 4202, 775, 4202, 288, 6647, 309, 261, 591, 480, 446, 13, 288, 356, 18, 4412, 5621, 289, 4202, 289, 4202, 1044, 12, 46, 3537, 503, 28296, 307, 13, 4202, 288, 6647, 613, 2932, 4445, 486, 1746, 1459, 315, 397, 356, 397, 6, 1520, 1703, 315, 397, 78, 81, 307, 1769, 6647, 604, 28296, 307, 31, 4202, 289, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1746, 1952, 12, 1952, 356, 13, 1216, 20343, 282, 288, 4202, 775, 4202, 288, 6647, 309, 261, 591, 480, 446, 13, 288, 356, 18, 4412, 5621, 289, 4202, 289, 4202, 1044, 12, 46, 3537, 503, 28296, 307, 13, 4202, 288, 6647, 613, 2932, 4445, 486, 1746, 1459, 315, 397, 356, 397, 6, 1520, 1703, 315, 397, 78, 81, 307, 1769, 6647, 604, 28296, 307, 31, 4202, 289, 282, 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 ]
int bytes, int allocator)
int bytes, int allocator)
public final void postAlloc(ObjectReference ref, ObjectReference typeRef, int bytes, int allocator) throws InlinePragma { switch (allocator) { case ALLOC_NURSERY: return; case ALLOC_RC: RefCountLocal.unsyncLiveObject(ref); case ALLOC_LOS: modBuffer.push(ref); RefCountSpace.initializeHeader(ref, typeRef, true); decBuffer.push(ref); if (RefCountSpace.RC_SANITY_CHECK) RefCountLocal.sanityAllocCount(ref); return; case ALLOC_IMMORTAL: if (RefCountSpace.RC_SANITY_CHECK) rc.addImmortalObject(ref); modBuffer.push(ref); return; default: if (Assert.VERIFY_ASSERTIONS) Assert.fail("No such allocator"); return; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9232c996b259f69154b495f6df0a9c0d44e630e0/GenRC.java/clean/MMTk/src/org/mmtk/plan/GenRC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 1603, 8763, 12, 22101, 1278, 16, 31321, 618, 1957, 16, 9506, 1377, 509, 1731, 16, 509, 26673, 13, 565, 1216, 16355, 2050, 9454, 288, 565, 1620, 261, 9853, 639, 13, 288, 565, 648, 7981, 29450, 67, 50, 1099, 2123, 61, 30, 327, 31, 565, 648, 7981, 29450, 67, 11529, 30, 1377, 3941, 1380, 2042, 18, 318, 8389, 12328, 921, 12, 1734, 1769, 565, 648, 7981, 29450, 67, 1502, 55, 30, 1377, 681, 1892, 18, 6206, 12, 1734, 1769, 1377, 3941, 1380, 3819, 18, 11160, 1864, 12, 1734, 16, 618, 1957, 16, 638, 1769, 1377, 2109, 1892, 18, 6206, 12, 1734, 1769, 1377, 309, 261, 1957, 1380, 3819, 18, 11529, 67, 22721, 4107, 67, 10687, 13, 3941, 1380, 2042, 18, 87, 10417, 8763, 1380, 12, 1734, 1769, 4202, 327, 31, 565, 648, 7981, 29450, 67, 3445, 49, 3871, 1013, 30, 4202, 309, 261, 1957, 1380, 3819, 18, 11529, 67, 22721, 4107, 67, 10687, 13, 4519, 18, 1289, 1170, 81, 499, 287, 921, 12, 1734, 1769, 1377, 681, 1892, 18, 6206, 12, 1734, 1769, 1377, 327, 31, 565, 805, 30, 1377, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 5452, 18, 6870, 2932, 2279, 4123, 26673, 8863, 4202, 327, 31, 565, 289, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 1603, 8763, 12, 22101, 1278, 16, 31321, 618, 1957, 16, 9506, 1377, 509, 1731, 16, 509, 26673, 13, 565, 1216, 16355, 2050, 9454, 288, 565, 1620, 261, 9853, 639, 13, 288, 565, 648, 7981, 29450, 67, 50, 1099, 2123, 61, 30, 327, 31, 565, 648, 7981, 29450, 67, 11529, 30, 1377, 3941, 1380, 2042, 18, 318, 8389, 12328, 921, 12, 1734, 1769, 565, 648, 7981, 29450, 67, 1502, 55, 30, 1377, 681, 1892, 18, 6206, 12, 1734, 1769, 1377, 3941, 1380, 3819, 18, 11160, 1864, 12, 1734, 16, 618, 1957, 16, 638, 1769, 1377, 2109, 1892, 18, 6206, 12, 1734, 1769, 1377, 309, 261, 1957, 1380, 3819, 18, 11529, 67, 22721, 4107, 67, 10687, 13, 2 ]
argoRoot = argoRoot.substring(0, argoRoot.length()-1);
argoRoot = argoRoot.substring(0, argoRoot.length() - 1);
private ModuleLoader() { _singletons = new Hashtable(); mModuleClasses= new ArrayList(); mMenuActionList=new Vector(); // Use a little trick to find out where Argo is being loaded from. String extForm = org.argouml.application.Main.class.getResource(Argo.ARGOINI).toExternalForm(); argoRoot = extForm.substring(0, extForm.length()-Argo.ARGOINI.length()); // If it's a jar, clean it up and make it look like a file url if (argoRoot.startsWith("jar:")) { argoRoot = argoRoot.substring(4); if (argoRoot.endsWith("!")) { argoRoot = argoRoot.substring(0, argoRoot.length()-1); } } if (argoRoot != null) { ArgoModule.cat.info("argoRoot is " + argoRoot); if (argoRoot.startsWith("file:")) { argoHome = new File(argoRoot.substring(5)).getAbsoluteFile().getParent(); } else { argoHome = new File(argoRoot).getAbsoluteFile().getParent(); } try { /* JDK 1.2 URLDecoder.decode(String) throws Exception * so we catch it here (and ignore it). * JDK 1.3 and JDK 1.4 do not. */ argoHome = java.net.URLDecoder.decode(argoHome); } catch (Exception e) { } ArgoModule.cat.info("argoHome is " + argoHome); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ModuleLoader.java/buggy/src_new/org/argouml/application/modules/ModuleLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5924, 2886, 1435, 288, 3639, 389, 24487, 87, 273, 394, 18559, 5621, 3639, 312, 3120, 4818, 33, 394, 2407, 5621, 3639, 312, 4599, 1803, 682, 33, 2704, 5589, 5621, 202, 759, 2672, 279, 12720, 28837, 358, 1104, 596, 1625, 1201, 3240, 353, 3832, 4203, 628, 18, 3639, 514, 1110, 1204, 273, 2358, 18, 26999, 22192, 18, 3685, 18, 6376, 18, 1106, 18, 588, 1420, 12, 686, 3240, 18, 10973, 6266, 45, 2934, 869, 6841, 1204, 5621, 202, 26999, 2375, 273, 1110, 1204, 18, 28023, 12, 20, 16, 1110, 1204, 18, 2469, 1435, 17, 686, 3240, 18, 10973, 6266, 45, 18, 2469, 10663, 202, 759, 971, 518, 1807, 279, 7334, 16, 2721, 518, 731, 471, 1221, 518, 2324, 3007, 279, 585, 880, 202, 430, 261, 26999, 2375, 18, 17514, 1190, 2932, 11930, 2773, 3719, 288, 202, 565, 1501, 83, 2375, 273, 1501, 83, 2375, 18, 28023, 12, 24, 1769, 202, 565, 309, 261, 26999, 2375, 18, 5839, 1190, 2932, 4442, 3719, 288, 202, 3639, 1501, 83, 2375, 273, 1501, 83, 2375, 18, 28023, 12, 20, 16, 1501, 83, 2375, 18, 2469, 1435, 17, 21, 1769, 202, 565, 289, 202, 97, 202, 430, 261, 26999, 2375, 480, 446, 13, 288, 202, 565, 1201, 3240, 3120, 18, 2574, 18, 1376, 2932, 26999, 2375, 353, 315, 397, 1501, 83, 2375, 1769, 202, 565, 309, 261, 26999, 2375, 18, 17514, 1190, 2932, 768, 2773, 3719, 288, 202, 3639, 1501, 83, 8684, 273, 394, 1387, 12, 26999, 2375, 18, 28023, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5924, 2886, 1435, 288, 3639, 389, 24487, 87, 273, 394, 18559, 5621, 3639, 312, 3120, 4818, 33, 394, 2407, 5621, 3639, 312, 4599, 1803, 682, 33, 2704, 5589, 5621, 202, 759, 2672, 279, 12720, 28837, 358, 1104, 596, 1625, 1201, 3240, 353, 3832, 4203, 628, 18, 3639, 514, 1110, 1204, 273, 2358, 18, 26999, 22192, 18, 3685, 18, 6376, 18, 1106, 18, 588, 1420, 12, 686, 3240, 18, 10973, 6266, 45, 2934, 869, 6841, 1204, 5621, 202, 26999, 2375, 273, 1110, 1204, 18, 28023, 12, 20, 16, 1110, 1204, 18, 2469, 1435, 17, 686, 3240, 18, 10973, 6266, 45, 18, 2469, 10663, 202, 759, 971, 518, 1807, 279, 7334, 16, 2721, 518, 731, 471, 1221, 518, 2324, 2 ]
catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); }
context.dictionaries.push(data[0]);
public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/08b9cb86387ddf1aef04a5e5fe9279f80315eadf/PAContext.java/clean/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, 775, 288, 1850, 819, 18, 72, 14336, 18, 5120, 5621, 3639, 289, 3639, 1044, 261, 1921, 2624, 503, 425, 13, 288, 1850, 604, 394, 453, 11606, 503, 2932, 10905, 2110, 353, 1008, 8863, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 775, 288, 1850, 819, 18, 72, 14336, 18, 5120, 5621, 3639, 289, 3639, 1044, 261, 1921, 2624, 503, 425, 13, 288, 1850, 604, 394, 453, 11606, 503, 2932, 10905, 2110, 353, 1008, 8863, 3639, 289, 1377, 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 ]
public void visitNthRefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitNthRefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitNthRefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/clean/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 50, 451, 1957, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 50, 451, 1957, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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 ]
expression.setText( DEUtil.resolveNull( ( (DataItemHandle) designHandle ).getValueExpr( ) ) );
expression.setText( DEUtil.getColumnExpression( ( (DataItemHandle) designHandle ).getName( ) ) );
protected Control createContents( Composite parent ) { GridData gdata; GridLayout glayout; createTitleArea( parent ); Composite composite = new Composite( parent, 0 ); glayout = new GridLayout( ); glayout.marginHeight = 0; glayout.marginWidth = 0; glayout.verticalSpacing = 0; composite.setLayout( glayout ); composite.setLayoutData( new GridData( GridData.FILL_BOTH ) ); applyDialogFont( composite ); initializeDialogUnits( composite ); Composite innerParent = (Composite) createDialogArea( composite ); createButtonBar( composite ); Label lb = new Label( innerParent, SWT.NONE ); lb.setText( Messages.getString( "MapRuleBuilderDialog.text.Condition" ) ); //$NON-NLS-1$ Composite condition = new Composite( innerParent, SWT.NONE ); condition.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); glayout = new GridLayout( 5, false ); condition.setLayout( glayout ); expression = new Combo( condition, SWT.NONE ); gdata = new GridData( ); gdata.widthHint = 100; expression.setLayoutData( gdata ); fillExpression( expression ); expression.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( expression.getText( ).equals( VALUE_OF_THIS_DATA_ITEM ) && designHandle instanceof DataItemHandle ) { expression.setText( DEUtil.resolveNull( ( (DataItemHandle) designHandle ).getValueExpr( ) ) ); } updateButtons( ); } } ); expression.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); Button expBuilder = new Button( condition, SWT.PUSH ); expBuilder.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; expBuilder.setLayoutData( gdata ); expBuilder.setToolTipText( Messages.getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ expBuilder.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( expression ); } } ); operator = new Combo( condition, SWT.READ_ONLY ); for ( int i = 0; i < OPERATOR.length; i++ ) { operator.add( OPERATOR[i][0] ); } operator.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { String value = getValueForOperator( operator.getText( ) ); int vv = determineValueVisible( value ); if ( vv == 0 ) { value1.setVisible( false ); value2.setVisible( false ); valBuilder1.setVisible( false ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 1 ) { value1.setVisible( true ); valBuilder1.setVisible( true ); value2.setVisible( false ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 2 ) { value1.setVisible( true ); value2.setVisible( true ); valBuilder1.setVisible( true ); valBuilder2.setVisible( true ); andLable.setVisible( true ); } updateButtons( ); } } ); value1 = createText( condition ); value1.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); valBuilder1 = new Button( condition, SWT.PUSH ); valBuilder1.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; valBuilder1.setLayoutData( gdata ); valBuilder1.setToolTipText( Messages.getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ valBuilder1.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( value1 ); } } ); createDummy( condition, 3 ); andLable = new Label( condition, SWT.NONE ); andLable.setText( Messages.getString( "HighlightRuleBuilderDialog.text.AND" ) ); //$NON-NLS-1$ andLable.setVisible( false ); createDummy( condition, 1 ); createDummy( condition, 3 ); value2 = createText( condition ); value2.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); value2.setVisible( false ); valBuilder2 = new Button( condition, SWT.PUSH ); valBuilder2.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; valBuilder2.setLayoutData( gdata ); valBuilder2.setToolTipText( Messages.getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ valBuilder2.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( value2 ); } } ); valBuilder2.setVisible( false ); if ( operator.getItemCount( ) > 0 ) { operator.select( 0 ); } lb = new Label( innerParent, SWT.NONE ); lb.setText( Messages.getString( "MapRuleBuilderDialog.text.Display" ) ); //$NON-NLS-1$ Composite format = new Composite( innerParent, SWT.NONE ); format.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); glayout = new GridLayout( ); format.setLayout( glayout ); display = new Text( format, SWT.BORDER ); gdata = new GridData( ); gdata.widthHint = 300; display.setLayoutData( gdata ); Composite space = new Composite( innerParent, SWT.NONE ); gdata = new GridData( GridData.FILL_HORIZONTAL ); gdata.heightHint = 20; space.setLayoutData( gdata ); lb = new Label( innerParent, SWT.SEPARATOR | SWT.HORIZONTAL ); lb.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); if ( handle != null ) { syncViewProperties( ); } updateButtons( ); return composite; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b5e2d15cc305491b3a9ee0f5b1d384f59425f25d/MapRuleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/MapRuleBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 14728, 982, 262, 202, 95, 202, 202, 6313, 751, 314, 892, 31, 202, 202, 6313, 3744, 5118, 2012, 31, 202, 202, 2640, 4247, 5484, 12, 982, 11272, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 374, 11272, 202, 202, 75, 6741, 273, 394, 7145, 3744, 12, 11272, 202, 202, 75, 6741, 18, 10107, 2686, 273, 374, 31, 202, 202, 75, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 75, 6741, 18, 17824, 18006, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 5118, 2012, 11272, 202, 202, 27676, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 262, 11272, 202, 202, 9010, 6353, 5711, 12, 9635, 11272, 202, 202, 11160, 6353, 7537, 12, 9635, 11272, 202, 202, 9400, 3443, 3054, 273, 261, 9400, 13, 752, 6353, 5484, 12, 9635, 11272, 202, 202, 2640, 3616, 5190, 12, 9635, 11272, 202, 202, 2224, 7831, 273, 394, 5287, 12, 3443, 3054, 16, 348, 8588, 18, 9826, 11272, 202, 202, 20404, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 863, 2175, 1263, 6353, 18, 955, 18, 3418, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 9400, 2269, 273, 394, 14728, 12, 3443, 3054, 16, 348, 8588, 18, 9826, 11272, 202, 202, 4175, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 75, 6741, 273, 394, 7145, 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, 6323, 12, 14728, 982, 262, 202, 95, 202, 202, 6313, 751, 314, 892, 31, 202, 202, 6313, 3744, 5118, 2012, 31, 202, 202, 2640, 4247, 5484, 12, 982, 11272, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 374, 11272, 202, 202, 75, 6741, 273, 394, 7145, 3744, 12, 11272, 202, 202, 75, 6741, 18, 10107, 2686, 273, 374, 31, 202, 202, 75, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 75, 6741, 18, 17824, 18006, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 5118, 2012, 11272, 202, 202, 27676, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 262, 11272, 202, 202, 2 ]
protected void setValidationHandler (RevalidationHandler validator){ this.fValidationHandler = validator; }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/db7e9f6d5f052c838c6ea661bf6b6fa0668be7c5/DOMNormalizer.java/clean/src/org/apache/xerces/dom/DOMNormalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 4354, 1503, 261, 426, 8685, 1503, 4213, 15329, 3639, 333, 18, 74, 4354, 1503, 273, 4213, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 4750, 918, 444, 4354, 1503, 261, 426, 8685, 1503, 4213, 15329, 3639, 333, 18, 74, 4354, 1503, 273, 4213, 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, -100, -100, -100, -100, -100, -100, -100, -100, -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 testRetrieve() throws InterruptedException, InvocationTargetException { // XXX broken due to hang that causes the scheduled job to never complete final String url = "http://eclipse.org/mylar/index.php"; final String knownTitle = "Mylar Technology Project"; RetrieveTitleFromUrlJob job = new RetrieveTitleFromUrlJob(url) { public void setTitle(String title) { assertEquals(knownTitle, title); } }; job.schedule(); do { Thread.sleep(100); } while (!job.isTitleRetrieved()); assertTrue(job.isTitleRetrieved()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e7670b6aef1aa0c8a24be5b277f41db77524bd2e/RetrieveTitleFromUrlTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/RetrieveTitleFromUrlTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5767, 1435, 1216, 7558, 16, 15342, 288, 202, 202, 759, 11329, 12933, 6541, 358, 25733, 716, 14119, 326, 9755, 1719, 358, 5903, 3912, 9506, 202, 6385, 514, 880, 273, 315, 2505, 2207, 20416, 18, 3341, 19, 4811, 7901, 19, 1615, 18, 2684, 14432, 202, 202, 6385, 514, 4846, 4247, 273, 315, 12062, 7901, 30960, 4676, 5420, 14432, 9506, 202, 5767, 4247, 28488, 2278, 1719, 273, 394, 10708, 4247, 28488, 2278, 12, 718, 13, 288, 1082, 202, 482, 918, 14109, 12, 780, 2077, 13, 288, 9506, 202, 11231, 8867, 12, 2994, 4247, 16, 2077, 1769, 1082, 202, 97, 202, 202, 20451, 202, 202, 4688, 18, 10676, 5621, 6862, 202, 2896, 288, 1082, 202, 3830, 18, 19607, 12, 6625, 1769, 3196, 202, 97, 1323, 16051, 4688, 18, 291, 4247, 3848, 2155, 10663, 202, 202, 11231, 5510, 12, 4688, 18, 291, 4247, 3848, 2155, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5767, 1435, 1216, 7558, 16, 15342, 288, 202, 202, 759, 11329, 12933, 6541, 358, 25733, 716, 14119, 326, 9755, 1719, 358, 5903, 3912, 9506, 202, 6385, 514, 880, 273, 315, 2505, 2207, 20416, 18, 3341, 19, 4811, 7901, 19, 1615, 18, 2684, 14432, 202, 202, 6385, 514, 4846, 4247, 273, 315, 12062, 7901, 30960, 4676, 5420, 14432, 9506, 202, 5767, 4247, 28488, 2278, 1719, 273, 394, 10708, 4247, 28488, 2278, 12, 718, 13, 288, 1082, 202, 482, 918, 14109, 12, 780, 2077, 13, 288, 9506, 202, 11231, 8867, 12, 2994, 4247, 16, 2077, 1769, 1082, 202, 97, 202, 202, 20451, 202, 202, 4688, 18, 10676, 5621, 6862, 202, 2896, 288, 1082, 202, 3830, 18, 2 ]
if (arg.getOwnerDocument() != ownerNode.ownerDocument()) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null); throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, msg); } int i = findNamePoint(arg.getNodeName(),0); NodeImpl previous = null; if (i >= 0) {
int i = findNamePoint(arg.getNodeName(),0); NodeImpl previous = null; if (i >= 0) {
public Node setNamedItem(Node arg) throws DOMException { if (isReadOnly()) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null); throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); } if (arg.getOwnerDocument() != ownerNode.ownerDocument()) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null); throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, msg); } int i = findNamePoint(arg.getNodeName(),0); NodeImpl previous = null; if (i >= 0) { previous = (NodeImpl) nodes.elementAt(i); nodes.setElementAt(arg,i); } else { i = -1 - i; // Insert point (may be end of list) if (null == nodes) { nodes = new Vector(5, 10); } nodes.insertElementAt(arg, i); } return previous; } // setNamedItem(Node):Node
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/199236d0d28f85d96774b9fcf7ee9271f0bcaa1e/NamedNodeMapImpl.java/clean/src/org/apache/xerces/dom/NamedNodeMapImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 444, 7604, 1180, 12, 907, 1501, 13, 3639, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 288, 5411, 514, 1234, 273, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 3113, 446, 1769, 5411, 604, 394, 4703, 503, 12, 8168, 503, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 16, 1234, 1769, 3639, 289, 377, 202, 430, 261, 3175, 18, 588, 5541, 2519, 1435, 480, 3410, 907, 18, 8443, 2519, 10756, 288, 5411, 514, 1234, 273, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 7181, 7390, 67, 18450, 67, 9712, 3113, 446, 1769, 5411, 604, 394, 4703, 503, 12, 8168, 503, 18, 7181, 7390, 67, 18450, 67, 9712, 16, 1234, 1769, 3639, 289, 565, 202, 474, 277, 273, 1104, 461, 2148, 12, 3175, 18, 588, 18948, 9334, 20, 1769, 377, 202, 907, 2828, 2416, 273, 446, 31, 377, 202, 430, 261, 77, 1545, 374, 13, 288, 5411, 2416, 273, 261, 907, 2828, 13, 2199, 18, 2956, 861, 12, 77, 1769, 5411, 2199, 18, 542, 1046, 861, 12, 3175, 16, 77, 1769, 377, 202, 97, 469, 288, 5411, 277, 273, 300, 21, 300, 277, 31, 368, 8040, 1634, 261, 24877, 506, 679, 434, 666, 13, 5411, 309, 261, 2011, 422, 2199, 13, 288, 7734, 2199, 273, 394, 5589, 12, 25, 16, 1728, 1769, 5411, 289, 5411, 2199, 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, 2029, 444, 7604, 1180, 12, 907, 1501, 13, 3639, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 288, 5411, 514, 1234, 273, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 3113, 446, 1769, 5411, 604, 394, 4703, 503, 12, 8168, 503, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 16, 1234, 1769, 3639, 289, 377, 202, 430, 261, 3175, 18, 588, 5541, 2519, 1435, 480, 3410, 907, 18, 8443, 2519, 10756, 288, 5411, 514, 1234, 273, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 7181, 7390, 67, 18450, 67, 2 ]
String TypeEquals(String arg1, String arg2);
String TypeEquals(String type, String arg1, String arg2);
String TypeEquals(String arg1, String arg2);
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/16ee45340aee3687a71ec7c425f4d9d0cd139564/TomSignatureImplementation.java/buggy/apigen/apigen/gen/TomSignatureImplementation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 1412, 8867, 12, 780, 1501, 21, 16, 514, 1501, 22, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 1412, 8867, 12, 780, 1501, 21, 16, 514, 1501, 22, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self);
} catch (RedoException rExcptn) {
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/2f13ba47385b7584839c7f6f6f1abfee251cbe53/Ruby.java/buggy/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 11069, 330, 5621, 3639, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 2629, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 3639, 19817, 1537, 1458, 18, 6206, 12, 2211, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1853, 1768, 273, 1203, 18, 588, 9161, 5621, 3639, 19817, 3219, 2623, 273, 394, 19817, 3219, 12, 5645, 1768, 18, 3789, 1769, 368, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 10663, 3639, 444, 54, 10340, 3219, 12, 3789, 1769, 3639, 385, 1957, 907, 1592, 39, 1957, 273, 1927, 1957, 5621, 3639, 11440, 1957, 12, 588, 54, 10340, 3219, 7675, 588, 39, 1969, 10663, 3639, 19817, 3876, 1592, 3876, 273, 19203, 5621, 3639, 444, 3876, 12, 5645, 1768, 18, 4887, 1769, 3639, 1203, 18, 5120, 5621, 3639, 309, 14015, 2629, 18, 7133, 473, 19817, 1768, 18, 11403, 67, 40, 67, 19444, 13, 480, 374, 13, 288, 5411, 444, 9791, 5555, 12, 2704, 19817, 1537, 1458, 12, 2011, 16, 446, 16, 1853, 1768, 18, 14507, 5555, 10019, 3639, 289, 469, 288, 5411, 444, 9791, 5555, 12, 2629, 18, 14507, 5555, 1769, 3639, 289, 3639, 444, 54, 10340, 797, 12443, 22626, 480, 446, 13, 692, 7352, 294, 1853, 1768, 18, 22626, 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, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 11069, 330, 5621, 3639, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 2629, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 3639, 19817, 1537, 1458, 18, 6206, 12, 2211, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1853, 1768, 273, 1203, 18, 588, 9161, 5621, 3639, 19817, 3219, 2623, 273, 394, 19817, 3219, 12, 5645, 1768, 18, 3789, 1769, 368, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 2 ]
tgtItemWriter.store(ItemHelper.convert(ensemblDb)); tgtItemWriter.store(ItemHelper.convert(emblDb));
tgtItemWriter.store(ItemHelper.convert(ensemblDataSet)); tgtItemWriter.store(ItemHelper.convert(emblDataSource));
public void translate(ItemWriter tgtItemWriter) throws ObjectStoreException, InterMineException { tgtItemWriter.store(ItemHelper.convert(organism)); tgtItemWriter.store(ItemHelper.convert(ensemblSource)); tgtItemWriter.store(ItemHelper.convert(ensemblDb)); tgtItemWriter.store(ItemHelper.convert(emblDb)); tgtItemWriter.store(ItemHelper.convert(uniprotDb)); super.translate(tgtItemWriter); for (Iterator i = createSuperContigs().iterator(); i.hasNext();) { Item item = (Item) i.next(); if (item.getClassName().equals(tgtNs + "Supercontig")) { Item synonym = createSynonym(item.getIdentifier(), "identifier", item.getAttribute("identifier").getValue(), ensemblSourceRef); addReferencedItem(item, synonym, "synonyms", true, "subject", false); tgtItemWriter.store(ItemHelper.convert(synonym)); } tgtItemWriter.store(ItemHelper.convert(item)); } for (Iterator i = exons.values().iterator(); i.hasNext();) { tgtItemWriter.store(ItemHelper.convert((Item) i.next())); } for (Iterator i = exonLocs.values().iterator(); i.hasNext();) { for (Iterator j = ((Collection) i.next()).iterator(); j.hasNext();) { tgtItemWriter.store(ItemHelper.convert((Item) j.next())); } } for (Iterator i = proteins.values().iterator(); i.hasNext();) { tgtItemWriter.store(ItemHelper.convert((Item) i.next())); } for (Iterator i = proteinSynonyms.iterator(); i.hasNext();) { tgtItemWriter.store(ItemHelper.convert((Item) i.next())); } if (flybaseDb != null) { tgtItemWriter.store(ItemHelper.convert(flybaseDb)); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/55775efc5e7c6f4c46a538752004538f293c8c2a/EnsemblDataTranslator.java/buggy/flymine/model/ensembl/src/java/org/flymine/dataconversion/EnsemblDataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 12, 1180, 2289, 11680, 1180, 2289, 13, 3639, 1216, 1033, 21151, 16, 5294, 49, 558, 503, 288, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 22543, 6228, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 25137, 80, 1830, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 25137, 80, 4331, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 351, 3083, 4331, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 318, 30506, 4331, 10019, 3639, 2240, 18, 13929, 12, 29672, 1180, 2289, 1769, 3639, 364, 261, 3198, 277, 273, 752, 8051, 660, 360, 87, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 4342, 761, 273, 261, 1180, 13, 277, 18, 4285, 5621, 5411, 309, 261, 1726, 18, 588, 3834, 7675, 14963, 12, 29672, 10386, 397, 315, 8051, 26075, 6, 3719, 288, 7734, 4342, 26308, 273, 752, 10503, 6435, 12, 1726, 18, 588, 3004, 9334, 315, 5644, 3113, 13491, 761, 18, 588, 1499, 2932, 5644, 20387, 24805, 9334, 570, 5747, 80, 1830, 1957, 1769, 7734, 527, 22344, 1180, 12, 1726, 16, 26308, 16, 315, 11982, 16968, 3113, 638, 16, 315, 7857, 3113, 629, 1769, 7734, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 11982, 6435, 10019, 5411, 289, 5411, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 1726, 10019, 3639, 289, 3639, 364, 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, 4204, 12, 1180, 2289, 11680, 1180, 2289, 13, 3639, 1216, 1033, 21151, 16, 5294, 49, 558, 503, 288, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 22543, 6228, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 25137, 80, 1830, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 25137, 80, 4331, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 351, 3083, 4331, 10019, 3639, 11680, 1180, 2289, 18, 2233, 12, 1180, 2276, 18, 6283, 12, 318, 30506, 4331, 10019, 3639, 2240, 18, 13929, 12, 29672, 1180, 2289, 1769, 3639, 364, 261, 3198, 277, 273, 752, 8051, 660, 360, 2 ]
return 0;
return -1;
public int getArity() { return 0; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/7b4144d109e833088b99fef35098efa1ab482436/TopSelfFactory.java/buggy/org/jruby/TopSelfFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 509, 336, 686, 560, 1435, 288, 7734, 327, 300, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 509, 336, 686, 560, 1435, 288, 7734, 327, 300, 21, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
XTFRFile xtrf = new XTFRFile(me.frame,vt);
XTFRFile xtrf = new XTFRFile(me.getParentView((Session)this),vt);
private void doMeTransfer() { XTFRFile xtrf = new XTFRFile(me.frame,vt); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/4c59a6fee6c7505cf2062ba9286c6ac043f9c52f/Gui5250.java/buggy/src/org/tn5250j/Gui5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 741, 4667, 5912, 1435, 288, 1377, 1139, 56, 9981, 812, 619, 313, 74, 273, 394, 1139, 56, 9981, 812, 12, 3501, 18, 588, 3054, 1767, 12443, 2157, 13, 2211, 3631, 11734, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 741, 4667, 5912, 1435, 288, 1377, 1139, 56, 9981, 812, 619, 313, 74, 273, 394, 1139, 56, 9981, 812, 12, 3501, 18, 588, 3054, 1767, 12443, 2157, 13, 2211, 3631, 11734, 1769, 282, 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 ]
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); }
int label = node.getIntProp(Node.LABEL_PROP, -1); if (label == -1) { label = acquireLabel(); node.putIntProp(Node.LABEL_PROP, label); } markLabel(label, 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; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/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 ]
protected int replaceWhiteSpace(final FormattingModel model, @NotNull final LeafBlockWrapper block, int shift, final String newWhiteSpace) {
protected int replaceWhiteSpace(final FormattingModel model, @NotNull final LeafBlockWrapper block, int shift, final String newWhiteSpace) {
protected int replaceWhiteSpace(final FormattingModel model, @NotNull final LeafBlockWrapper block, int shift, final String newWhiteSpace) { final WhiteSpace whiteSpace = block.getWhiteSpace(); final TextRange textRange = whiteSpace.getTextRange(); final TextRange wsRange = shiftRange(textRange, shift); TextRange newWhiteSpaceRange = model.replaceWhiteSpace(wsRange, newWhiteSpace); shift += (newWhiteSpaceRange.getLength() - (textRange.getLength())); if (block.isLeaf() && whiteSpace.containsLineFeeds() && block.containsLineFeeds()) { final TextRange currentBlockRange = shiftRange(block.getTextRange(), shift); IndentInside lastLineIndent = block.getLastLineIndent(); IndentInside whiteSpaceIndent = IndentInside.createIndentOn(IndentInside.getLastLine(newWhiteSpace)); final int shiftInside = calcShift(lastLineIndent, whiteSpaceIndent); final TextRange newBlockRange = model.shiftIndentInsideRange(currentBlockRange, shiftInside); shift += newBlockRange.getLength() - block.getTextRange().getLength(); } return shift; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/ee3f89bfa64cda89f2846e1f417caa549cf5edc9/FormatProcessor.java/clean/source/com/intellij/formatting/FormatProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 509, 1453, 23108, 12, 6385, 4077, 1787, 1488, 938, 16, 632, 5962, 727, 23383, 1768, 3611, 1203, 16, 509, 4654, 16, 727, 514, 394, 23108, 13, 288, 565, 727, 30233, 3819, 9578, 3819, 273, 1203, 18, 588, 23108, 5621, 565, 727, 3867, 2655, 977, 2655, 273, 9578, 3819, 18, 588, 1528, 2655, 5621, 565, 727, 3867, 2655, 4945, 2655, 273, 4654, 2655, 12, 955, 2655, 16, 4654, 1769, 565, 3867, 2655, 394, 23108, 2655, 273, 938, 18, 2079, 23108, 12, 4749, 2655, 16, 394, 23108, 1769, 565, 4654, 1011, 261, 2704, 23108, 2655, 18, 588, 1782, 1435, 300, 261, 955, 2655, 18, 588, 1782, 1435, 10019, 565, 309, 261, 2629, 18, 291, 9858, 1435, 597, 9578, 3819, 18, 12298, 1670, 8141, 87, 1435, 597, 1203, 18, 12298, 1670, 8141, 87, 10756, 288, 1377, 727, 3867, 2655, 30610, 2655, 273, 4654, 2655, 12, 2629, 18, 588, 1528, 2655, 9334, 4654, 1769, 1377, 28653, 18619, 31661, 7790, 273, 1203, 18, 588, 3024, 1670, 7790, 5621, 1377, 28653, 18619, 9578, 3819, 7790, 273, 28653, 18619, 18, 2640, 7790, 1398, 12, 7790, 18619, 18, 588, 3024, 1670, 12, 2704, 23108, 10019, 1377, 727, 509, 4654, 18619, 273, 7029, 10544, 12, 2722, 1670, 7790, 16, 9578, 3819, 7790, 1769, 1377, 727, 3867, 2655, 28482, 2655, 273, 938, 18, 4012, 7790, 18619, 2655, 12, 2972, 1768, 2655, 16, 4654, 18619, 1769, 1377, 4654, 1011, 225, 28482, 2655, 18, 588, 1782, 1435, 300, 1203, 18, 588, 1528, 2655, 7675, 588, 1782, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 509, 1453, 23108, 12, 6385, 4077, 1787, 1488, 938, 16, 632, 5962, 727, 23383, 1768, 3611, 1203, 16, 509, 4654, 16, 727, 514, 394, 23108, 13, 288, 565, 727, 30233, 3819, 9578, 3819, 273, 1203, 18, 588, 23108, 5621, 565, 727, 3867, 2655, 977, 2655, 273, 9578, 3819, 18, 588, 1528, 2655, 5621, 565, 727, 3867, 2655, 4945, 2655, 273, 4654, 2655, 12, 955, 2655, 16, 4654, 1769, 565, 3867, 2655, 394, 23108, 2655, 273, 938, 18, 2079, 23108, 12, 4749, 2655, 16, 394, 23108, 1769, 565, 4654, 1011, 261, 2704, 23108, 2655, 18, 588, 1782, 1435, 300, 261, 955, 2655, 18, 588, 1782, 1435, 10019, 565, 309, 261, 2629, 18, 291, 9858, 1435, 597, 9578, 3819, 2 ]
String sql = "SELECT NAME FROM R_TRANSFORMATION WHERE ID_DIRECTORY = " + id_directory + " ORDER BY NAME";
String nameField = databaseMeta.quoteField("NAME"); String sql = "SELECT "+nameField+" FROM R_TRANSFORMATION WHERE ID_DIRECTORY = " + id_directory + " ORDER BY "+nameField;
public String[] getTransformationNames(long id_directory) throws KettleDatabaseException { int nr = getNrTransformations(id_directory); String retval[] = new String[nr]; String sql = "SELECT NAME FROM R_TRANSFORMATION WHERE ID_DIRECTORY = " + id_directory + " ORDER BY NAME"; ResultSet rs = database.openQuery(sql); if (rs != null) { Row r = database.getRow(rs); int i = 0; while (r != null) { retval[i] = r.getValue(0).getString(); r = database.getRow(rs); i++; } database.closeQuery(rs); } return Const.sortStrings(retval); }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/b6c7cb37a7e80ab0971f080a2fb55d6becdba7a3/Repository.java/buggy/kettle/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 15292, 1557, 12, 5748, 612, 67, 5149, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 474, 9884, 273, 11069, 86, 4059, 1012, 12, 350, 67, 5149, 1769, 202, 202, 780, 5221, 8526, 273, 394, 514, 63, 11611, 15533, 202, 202, 780, 1847, 273, 315, 4803, 6048, 4571, 534, 67, 16596, 23805, 4852, 1599, 67, 17229, 273, 315, 397, 612, 67, 5149, 397, 315, 10205, 6953, 6048, 14432, 202, 202, 13198, 3597, 273, 2063, 18, 3190, 1138, 12, 4669, 1769, 202, 202, 430, 261, 5453, 480, 446, 13, 202, 202, 95, 1082, 202, 1999, 436, 273, 2063, 18, 588, 1999, 12, 5453, 1769, 1082, 202, 474, 277, 273, 374, 31, 1082, 202, 17523, 261, 86, 480, 446, 13, 1082, 202, 95, 9506, 202, 18341, 63, 77, 65, 273, 436, 18, 24805, 12, 20, 2934, 588, 780, 5621, 9506, 202, 86, 273, 2063, 18, 588, 1999, 12, 5453, 1769, 9506, 202, 77, 9904, 31, 1082, 202, 97, 1082, 202, 6231, 18, 4412, 1138, 12, 5453, 1769, 202, 202, 97, 202, 202, 2463, 9333, 18, 3804, 7957, 12, 18341, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 15292, 1557, 12, 5748, 612, 67, 5149, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 474, 9884, 273, 11069, 86, 4059, 1012, 12, 350, 67, 5149, 1769, 202, 202, 780, 5221, 8526, 273, 394, 514, 63, 11611, 15533, 202, 202, 780, 1847, 273, 315, 4803, 6048, 4571, 534, 67, 16596, 23805, 4852, 1599, 67, 17229, 273, 315, 397, 612, 67, 5149, 397, 315, 10205, 6953, 6048, 14432, 202, 202, 13198, 3597, 273, 2063, 18, 3190, 1138, 12, 4669, 1769, 202, 202, 430, 261, 5453, 480, 446, 13, 202, 202, 95, 1082, 202, 1999, 436, 273, 2063, 18, 588, 1999, 12, 5453, 1769, 1082, 202, 474, 277, 273, 374, 31, 1082, 2 ]
public static void checkURI(String uri) {
private static void checkURI(String uri) {
public static void checkURI(String uri) { // URIs can be null or empty if (uri == null) return; int uriLength = uri.length(); if (uriLength == 0) return; char[] data = uri.toCharArray(); int leftBrackets = 0; int rightBrackets = 0; for (int i = 0; i < uriLength; i++) { char test = data[i]; if (!isURICharacter(test)) { String msgNumber = "0x" + Integer.toHexString(test); if (test <= 0x09) { msgNumber = "0x0" + Integer.toHexString(test); } throw new MalformedURIException("URIs cannot contain " + msgNumber); } // end if else if (test == '%') { // must be followed by two hexadecimal digits try { char firstDigit = uri.charAt(i+1); char secondDigit = uri.charAt(i+2); if (!isHexDigit(firstDigit) || !isHexDigit(secondDigit)) { throw new MalformedURIException( "Percent signs in URIs must be followed " + "by exactly two hexadecimal digits."); } } catch (StringIndexOutOfBoundsException ex) { throw new MalformedURIException( "Percent signs in URIs must be followed by " + "exactly two hexadecimal digits."); } } else if (test == '[') { leftBrackets++; if (rightBrackets >= leftBrackets) { throw new MalformedURIException( "Bad use of square brackets" ); } } else if (test == ']') { rightBrackets++; } } // end for if (leftBrackets != rightBrackets || leftBrackets > 1) { throw new MalformedURIException( "Bad use of square brackets" ); } // If we got here, everything is OK return; }
8327 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8327/497f1667d6c77cb6492e6dd2559110843c6af5bf/Verifier.java/buggy/src/nu/xom/Verifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 866, 3098, 12, 780, 2003, 13, 288, 3639, 368, 24565, 848, 506, 446, 578, 1008, 3639, 309, 261, 1650, 422, 446, 13, 327, 31, 3639, 509, 2003, 1782, 273, 225, 2003, 18, 2469, 5621, 3639, 309, 261, 1650, 1782, 422, 374, 13, 327, 31, 7734, 1149, 8526, 501, 273, 2003, 18, 869, 15936, 5621, 3639, 509, 2002, 23029, 273, 374, 31, 3639, 509, 2145, 23029, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2003, 1782, 31, 277, 27245, 288, 5411, 1149, 1842, 273, 501, 63, 77, 15533, 5411, 309, 16051, 291, 3098, 7069, 12, 3813, 3719, 288, 7734, 514, 1234, 1854, 273, 315, 20, 92, 6, 397, 2144, 18, 869, 14866, 12, 3813, 1769, 7734, 309, 261, 3813, 1648, 374, 92, 5908, 13, 288, 10792, 1234, 1854, 273, 315, 20, 92, 20, 6, 397, 2144, 18, 869, 14866, 12, 3813, 1769, 7734, 289, 1171, 604, 394, 13311, 3098, 503, 2932, 1099, 2520, 2780, 912, 315, 10792, 397, 1234, 1854, 1769, 5411, 289, 368, 679, 309, 5411, 469, 309, 261, 3813, 422, 1995, 6134, 288, 7734, 368, 1297, 506, 10860, 635, 2795, 20070, 6815, 10402, 775, 288, 15604, 1149, 1122, 10907, 273, 2003, 18, 3001, 861, 12, 77, 15, 21, 1769, 15604, 1149, 2205, 10907, 273, 2003, 18, 3001, 861, 12, 77, 15, 22, 1769, 15604, 309, 16051, 291, 7037, 10907, 12, 3645, 10907, 13, 7682, 747, 401, 291, 7037, 10907, 12, 8538, 10907, 3719, 288, 21821, 604, 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, 760, 918, 866, 3098, 12, 780, 2003, 13, 288, 3639, 368, 24565, 848, 506, 446, 578, 1008, 3639, 309, 261, 1650, 422, 446, 13, 327, 31, 3639, 509, 2003, 1782, 273, 225, 2003, 18, 2469, 5621, 3639, 309, 261, 1650, 1782, 422, 374, 13, 327, 31, 7734, 1149, 8526, 501, 273, 2003, 18, 869, 15936, 5621, 3639, 509, 2002, 23029, 273, 374, 31, 3639, 509, 2145, 23029, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2003, 1782, 31, 277, 27245, 288, 5411, 1149, 1842, 273, 501, 63, 77, 15533, 5411, 309, 16051, 291, 3098, 7069, 12, 3813, 3719, 288, 7734, 514, 1234, 1854, 273, 315, 20, 92, 6, 397, 2144, 18, 869, 2 ]
if (newSelectedNode == null) {
if (newSelectedNode == null || newSelectedNode.isRoot()) {
public void undo() { // Find the node we will change focus too, note may end up null Node youngestNode = ((PrimitiveUndoableInsert) primitives.get(primitives.size() - 1)).getNode(); Node newSelectedNode = youngestNode.prev(); // Shorthand JoeTree tree = youngestNode.getTree(); OutlineLayoutManager layout = tree.getDocument().panel.layout; // Delete Everything for (int i = 0; i < primitives.size(); i++) { ((PrimitiveUndoableInsert) primitives.get(i)).undo(); } if ((newSelectedNode == youngestNode.getParent()) && !newSelectedNode.isLeaf()) { newSelectedNode = newSelectedNode.getFirstChild(); } // If the newSelectedNode is null, then select the first node in the tree if (newSelectedNode == null) { tree.setSelectedNodesParent(tree.getRootNode()); newSelectedNode = tree.getRootNode().getFirstChild(); tree.addNodeToSelection(newSelectedNode); } else { tree.setSelectedNodesParent(newSelectedNode.getParent()); tree.addNodeToSelection(newSelectedNode); } // Record the EditingNode tree.setEditingNode(newSelectedNode); tree.setComponentFocus(OutlineLayoutManager.ICON); // Redraw and Set Focus // First make sure the node to draw from wasn't removed, it will be root since it is orphaned. // If so, we need to set the new one before trying to redraw. if (layout.getNodeToDrawFrom().isRoot()) { layout.setNodeToDrawFrom(newSelectedNode, tree.getVisibleNodes().indexOf(newSelectedNode)); } tree.insertNode(newSelectedNode); // Just to make it visible layout.draw(newSelectedNode,OutlineLayoutManager.ICON); }
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/6636cb0cbeb57e169dbe6cafb526cefcd9c0c47f/CompoundUndoableInsert.java/clean/outliner/src/com/organic/maynard/outliner/CompoundUndoableInsert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15436, 1435, 288, 202, 202, 759, 4163, 326, 756, 732, 903, 2549, 7155, 4885, 16, 4721, 2026, 679, 731, 446, 202, 202, 907, 677, 465, 17592, 907, 273, 14015, 9840, 31224, 429, 4600, 13, 23376, 18, 588, 12, 683, 18116, 18, 1467, 1435, 300, 404, 13, 2934, 588, 907, 5621, 202, 202, 907, 394, 7416, 907, 273, 677, 465, 17592, 907, 18, 10001, 5621, 9506, 202, 759, 2638, 15830, 202, 202, 46, 15548, 2471, 2151, 273, 677, 465, 17592, 907, 18, 588, 2471, 5621, 202, 202, 21805, 3744, 1318, 3511, 273, 2151, 18, 588, 2519, 7675, 13916, 18, 6741, 31, 9506, 202, 759, 2504, 26553, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 23376, 18, 1467, 5621, 277, 27245, 288, 1082, 202, 12443, 9840, 31224, 429, 4600, 13, 23376, 18, 588, 12, 77, 13, 2934, 31226, 5621, 202, 202, 97, 202, 202, 430, 14015, 2704, 7416, 907, 422, 677, 465, 17592, 907, 18, 588, 3054, 10756, 597, 401, 2704, 7416, 907, 18, 291, 9858, 10756, 288, 1082, 202, 2704, 7416, 907, 273, 394, 7416, 907, 18, 588, 3759, 1763, 5621, 202, 202, 97, 9506, 202, 759, 971, 326, 394, 7416, 907, 353, 446, 16, 1508, 2027, 326, 1122, 756, 316, 326, 2151, 202, 202, 430, 261, 2704, 7416, 907, 422, 446, 13, 288, 1082, 202, 3413, 18, 542, 7416, 3205, 3054, 12, 3413, 18, 588, 29658, 10663, 1082, 202, 2704, 7416, 907, 273, 2151, 18, 588, 29658, 7675, 588, 3759, 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, 15436, 1435, 288, 202, 202, 759, 4163, 326, 756, 732, 903, 2549, 7155, 4885, 16, 4721, 2026, 679, 731, 446, 202, 202, 907, 677, 465, 17592, 907, 273, 14015, 9840, 31224, 429, 4600, 13, 23376, 18, 588, 12, 683, 18116, 18, 1467, 1435, 300, 404, 13, 2934, 588, 907, 5621, 202, 202, 907, 394, 7416, 907, 273, 677, 465, 17592, 907, 18, 10001, 5621, 9506, 202, 759, 2638, 15830, 202, 202, 46, 15548, 2471, 2151, 273, 677, 465, 17592, 907, 18, 588, 2471, 5621, 202, 202, 21805, 3744, 1318, 3511, 273, 2151, 18, 588, 2519, 7675, 13916, 18, 6741, 31, 9506, 202, 759, 2504, 26553, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 2 ]
x = (arg.charAt(0) - 'D');
x = (arg.charAt(0) - 'A');
private boolean play(boolean isBlack, String command, StringBuffer response) { String[] tokens = StringUtils.split(command, ' '); if (tokens.length < 2) { response.append("Missing argument"); return false; } try { String arg = tokens[1].toUpperCase(); if (arg.length() < 2) { response.append("Invalid argument"); return false; } int x = -1; int y = -1; if (! arg.equals("PASS")) { x = (arg.charAt(0) - 'D'); y = Integer.parseInt(arg.substring(1)); } return m_gmp.play(isBlack, x, y, response); } catch (NumberFormatException e) { response.append("Needs integer argument"); return false; } }
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/bb0deb0c90210a04884175b52f053c8b18899589/GmpToGtp.java/buggy/src/gmp/GmpToGtp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 6599, 12, 6494, 353, 13155, 16, 514, 1296, 16, 7682, 6674, 766, 13, 565, 288, 3639, 514, 8526, 2430, 273, 5778, 18, 4939, 12, 3076, 16, 296, 28005, 3639, 309, 261, 7860, 18, 2469, 411, 576, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 4841, 1237, 8863, 5411, 327, 629, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 514, 1501, 273, 2430, 63, 21, 8009, 869, 8915, 5621, 5411, 309, 261, 3175, 18, 2469, 1435, 411, 576, 13, 5411, 288, 7734, 766, 18, 6923, 2932, 1941, 1237, 8863, 7734, 327, 629, 31, 5411, 289, 5411, 509, 619, 273, 300, 21, 31, 5411, 509, 677, 273, 300, 21, 31, 5411, 309, 16051, 1501, 18, 14963, 2932, 10884, 6, 3719, 5411, 288, 7734, 619, 273, 261, 3175, 18, 3001, 861, 12, 20, 13, 300, 296, 37, 8284, 7734, 677, 273, 2144, 18, 2670, 1702, 12, 3175, 18, 28023, 12, 21, 10019, 18701, 289, 5411, 327, 312, 67, 75, 1291, 18, 1601, 12, 291, 13155, 16, 619, 16, 677, 16, 766, 1769, 3639, 289, 3639, 1044, 261, 1854, 9291, 425, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 26419, 3571, 1237, 8863, 5411, 327, 629, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 6599, 12, 6494, 353, 13155, 16, 514, 1296, 16, 7682, 6674, 766, 13, 565, 288, 3639, 514, 8526, 2430, 273, 5778, 18, 4939, 12, 3076, 16, 296, 28005, 3639, 309, 261, 7860, 18, 2469, 411, 576, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 4841, 1237, 8863, 5411, 327, 629, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 514, 1501, 273, 2430, 63, 21, 8009, 869, 8915, 5621, 5411, 309, 261, 3175, 18, 2469, 1435, 411, 576, 13, 5411, 288, 7734, 766, 18, 6923, 2932, 1941, 1237, 8863, 7734, 327, 629, 31, 5411, 289, 5411, 509, 619, 273, 300, 21, 31, 5411, 509, 677, 273, 300, 21, 31, 5411, 309, 16051, 1501, 18, 14963, 2932, 10884, 2 ]
super(null);
super(where);
public SIRPeekExpression(JExpression arg) { super(null); this.tapeType = null; this.arg = arg; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/9d2b975a2293f085ba764d7ef1fb47732802a696/SIRPeekExpression.java/buggy/streams/src/at/dms/kjc/sir/SIRPeekExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5705, 54, 30950, 2300, 12, 46, 2300, 1501, 13, 565, 288, 202, 9565, 12, 6051, 1769, 3639, 333, 18, 88, 1273, 559, 273, 446, 31, 202, 2211, 18, 3175, 273, 1501, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5705, 54, 30950, 2300, 12, 46, 2300, 1501, 13, 565, 288, 202, 9565, 12, 6051, 1769, 3639, 333, 18, 88, 1273, 559, 273, 446, 31, 202, 2211, 18, 3175, 273, 1501, 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 ]
string = s; width = fm.stringWidth(string); height = fm.getHeight(); descent = fm.getMaxDescent(); }
string = s; width = (int)Math.ceil(fm.stringWidth(string) * 1.4); height = fm.getHeight(); descent = fm.getMaxDescent(); }
public void setString(String s){ string = s; width = fm.stringWidth(string); height = fm.getHeight(); descent = fm.getMaxDescent(); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/01cc139147bf554fdd2b43ac60e436e7504f1f49/PMSimpleLabel.java/buggy/megamek/src/megamek/client/ui/AWT/widget/PMSimpleLabel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 14600, 12, 780, 272, 15329, 1377, 202, 1080, 273, 272, 31, 1377, 202, 2819, 273, 10940, 18, 1080, 2384, 12, 1080, 1769, 202, 565, 2072, 273, 10940, 18, 588, 2686, 5621, 202, 565, 3044, 319, 273, 10940, 18, 588, 2747, 4217, 319, 5621, 1377, 202, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 14600, 12, 780, 272, 15329, 1377, 202, 1080, 273, 272, 31, 1377, 202, 2819, 273, 10940, 18, 1080, 2384, 12, 1080, 1769, 202, 565, 2072, 273, 10940, 18, 588, 2686, 5621, 202, 565, 3044, 319, 273, 10940, 18, 588, 2747, 4217, 319, 5621, 1377, 202, 377, 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 ]
"SmartFrogLifecycleException",
"SmartFrogDeploymentException",
public void testCaseTCN91() throws Exception { deployExpectingException(FILES+"tcn91.sf", "tcn91", "SmartFrogLifecycleException", null, "JSchException", "UnknownHostException"); }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/136cb51a228ce5e85c50606051f3e4443d8f27d0/SSHTest.java/clean/core/testharness/testcases/org/smartfrog/test/system/components/ssh/SSHTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 56, 12821, 12416, 1435, 1216, 1185, 288, 3639, 7286, 11988, 21546, 12, 12669, 9078, 5111, 82, 12416, 18, 21668, 3113, 4766, 315, 5111, 82, 12416, 3113, 4766, 315, 23824, 42, 303, 75, 6733, 503, 3113, 4766, 446, 16, 4766, 315, 6479, 343, 503, 3113, 4766, 315, 4874, 29776, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 56, 12821, 12416, 1435, 1216, 1185, 288, 3639, 7286, 11988, 21546, 12, 12669, 9078, 5111, 82, 12416, 18, 21668, 3113, 4766, 315, 5111, 82, 12416, 3113, 4766, 315, 23824, 42, 303, 75, 6733, 503, 3113, 4766, 446, 16, 4766, 315, 6479, 343, 503, 3113, 4766, 315, 4874, 29776, 8863, 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 ]
if(len != buffer.length) break;
if (len != buffer.length) { break; }
private byte[] receive(Socket socket, int timeout) throws IOException { DataInputStream dis = new DataInputStream(socket.getInputStream()); if(timeout >= 0) { socket.setSoTimeout(timeout); } ByteArrayOutputStream baos = new ByteArrayOutputStream(connector.getBufferSize()); byte[] buffer = new byte[connector.getBufferSize()]; int len = 0; try { while ((len = dis.read(buffer, len, buffer.length)) != 0) { if (len == -1) { logger.debug("The socket is closed"); return null; } else { baos.write(buffer, 0, len); if(len != buffer.length) break; } } baos.flush(); return baos.toByteArray(); } finally { try { //if(dis!=null) dis.close(); if(baos!=null) baos.close(); } catch (IOException e) { logger.error("failed to close tcp stream: " + e); } } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/fb7294a75b4372242e3319eb308618d497e9ead8/TcpMessageDispatcher.java/clean/providers/tcp/src/java/org/mule/providers/tcp/TcpMessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1160, 8526, 6798, 12, 4534, 2987, 16, 509, 2021, 13, 1216, 1860, 565, 288, 3639, 29382, 1015, 273, 394, 29382, 12, 7814, 18, 588, 4348, 10663, 3639, 309, 12, 4538, 1545, 374, 13, 288, 5411, 2987, 18, 542, 10225, 2694, 12, 4538, 1769, 3639, 289, 3639, 11559, 17548, 273, 394, 11559, 12, 23159, 18, 588, 15384, 10663, 3639, 1160, 8526, 1613, 273, 394, 1160, 63, 23159, 18, 588, 15384, 1435, 15533, 3639, 509, 562, 273, 374, 31, 3639, 775, 3639, 288, 5411, 1323, 14015, 1897, 273, 1015, 18, 896, 12, 4106, 16, 562, 16, 1613, 18, 2469, 3719, 480, 374, 13, 5411, 288, 7734, 309, 261, 1897, 422, 300, 21, 13, 7734, 288, 10792, 1194, 18, 4148, 2932, 1986, 2987, 353, 4375, 8863, 10792, 327, 446, 31, 7734, 289, 469, 7734, 288, 10792, 17548, 18, 2626, 12, 4106, 16, 374, 16, 562, 1769, 10792, 309, 261, 1897, 480, 1613, 18, 2469, 13, 288, 898, 31, 289, 7734, 289, 5411, 289, 5411, 17548, 18, 11330, 5621, 5411, 327, 17548, 18, 869, 8826, 5621, 3639, 289, 3095, 3639, 288, 5411, 775, 5411, 288, 7734, 368, 430, 12, 2251, 5, 33, 2011, 13, 1015, 18, 4412, 5621, 7734, 309, 12, 12124, 538, 5, 33, 2011, 13, 17548, 18, 4412, 5621, 5411, 289, 1044, 261, 14106, 425, 13, 5411, 288, 7734, 1194, 18, 1636, 2932, 7307, 358, 1746, 9658, 1407, 30, 315, 397, 425, 1769, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1160, 8526, 6798, 12, 4534, 2987, 16, 509, 2021, 13, 1216, 1860, 565, 288, 3639, 29382, 1015, 273, 394, 29382, 12, 7814, 18, 588, 4348, 10663, 3639, 309, 12, 4538, 1545, 374, 13, 288, 5411, 2987, 18, 542, 10225, 2694, 12, 4538, 1769, 3639, 289, 3639, 11559, 17548, 273, 394, 11559, 12, 23159, 18, 588, 15384, 10663, 3639, 1160, 8526, 1613, 273, 394, 1160, 63, 23159, 18, 588, 15384, 1435, 15533, 3639, 509, 562, 273, 374, 31, 3639, 775, 3639, 288, 5411, 1323, 14015, 1897, 273, 1015, 18, 896, 12, 4106, 16, 562, 16, 1613, 18, 2469, 3719, 480, 374, 13, 5411, 288, 7734, 309, 261, 1897, 422, 300, 21, 13, 7734, 288, 10792, 1194, 18, 4148, 2 ]
dialogSettings.put("idArray", idArray); dialogSettings.put("textArray", textArray); dialogSettings.put("providerArray", providerArray);
String[] textArray = (String[]) arrayList .toArray(new String[arrayList.size()]); dialogSettings.put(ORDERED_ELEMENTS, orderedElements); dialogSettings.put(ORDERED_PROVIDERS, orderedProviders); dialogSettings.put(TEXT_ENTRIES, textEntries); dialogSettings.put(TEXT_ARRAY, textArray);
private void storeDialog(IDialogSettings dialogSettings) { String[] idArray = new String[previousPicksList.size()]; String[] textArray = new String[previousPicksList.size()]; String[] providerArray = new String[previousPicksList.size()]; for (int i = 0; i < idArray.length; i++) { Object element = previousPicksList.get(i); if (element instanceof AbstractElement && reverseMap.containsKey(element) && previousPicksMap.containsValue(element)) { AbstractElement abstractElement = (AbstractElement) element; idArray[i] = abstractElement.getId(); textArray[i] = (String) reverseMap.get(element); providerArray[i] = abstractElement.getProvider() .getId(); } } dialogSettings.put("idArray", idArray); //$NON-NLS-1$ dialogSettings.put("textArray", textArray); //$NON-NLS-1$ dialogSettings.put("providerArray", providerArray); //$NON-NLS-1$ }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/09697c6bff1825d456b6c019eaf13ce392a3d51e/CtrlEAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/incubator/CtrlEAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1707, 6353, 12, 734, 3529, 2628, 6176, 2628, 13, 288, 1082, 202, 780, 8526, 612, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 780, 8526, 977, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 780, 8526, 2893, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 612, 1076, 18, 2469, 31, 277, 27245, 288, 9506, 202, 921, 930, 273, 2416, 17968, 21576, 18, 588, 12, 77, 1769, 9506, 202, 430, 261, 2956, 1276, 4115, 1046, 25083, 202, 10, 10, 4219, 863, 18, 12298, 653, 12, 2956, 13, 25083, 202, 10, 10, 2416, 17968, 87, 863, 18, 12298, 620, 12, 2956, 3719, 288, 6862, 202, 7469, 1046, 8770, 1046, 273, 261, 7469, 1046, 13, 930, 31, 6862, 202, 350, 1076, 63, 77, 65, 273, 8770, 1046, 18, 26321, 5621, 6862, 202, 955, 1076, 63, 77, 65, 273, 261, 780, 13, 4219, 863, 18, 588, 12, 2956, 1769, 6862, 202, 6778, 1076, 63, 77, 65, 273, 8770, 1046, 18, 588, 2249, 1435, 6862, 1082, 202, 18, 26321, 5621, 9506, 202, 97, 1082, 202, 97, 1082, 202, 12730, 2628, 18, 458, 2932, 350, 1076, 3113, 612, 1076, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 12730, 2628, 18, 458, 2932, 955, 1076, 3113, 977, 1076, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 12730, 2628, 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, 3196, 202, 1152, 918, 1707, 6353, 12, 734, 3529, 2628, 6176, 2628, 13, 288, 1082, 202, 780, 8526, 612, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 780, 8526, 977, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 780, 8526, 2893, 1076, 273, 394, 514, 63, 11515, 17968, 21576, 18, 1467, 1435, 15533, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 612, 1076, 18, 2469, 31, 277, 27245, 288, 9506, 202, 921, 930, 273, 2416, 17968, 21576, 18, 588, 12, 77, 1769, 9506, 202, 430, 261, 2956, 1276, 4115, 1046, 25083, 202, 10, 10, 4219, 863, 18, 12298, 653, 12, 2956, 13, 25083, 202, 2 ]
protected PySequence(PyType type) { super(type); }
public PySequence() {}
protected PySequence(PyType type) { super(type); }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/0bbf19186ccdf53f725c3834d8abbfe153190cd2/PySequence.java/buggy/org/python/core/PySequence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4707, 4021, 12, 9413, 559, 618, 13, 288, 3639, 2240, 12, 723, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4707, 4021, 12, 9413, 559, 618, 13, 288, 3639, 2240, 12, 723, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public abstract void setWorkingDirectory(File new_dir);
public abstract void setWorkingDirectory(Path new_dir);
public abstract void setWorkingDirectory(File new_dir);
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ee01fef4b4fb82c7492a4a747793839a4d14cd39/FileSystem.java/buggy/src/java/org/apache/hadoop/fs/FileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 444, 14836, 2853, 12, 812, 394, 67, 1214, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 444, 14836, 2853, 12, 812, 394, 67, 1214, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (jj_scan_token(PROTECTED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
if (jj_3R_57()) return true;
final private boolean jj_3R_95() { if (jj_scan_token(PROTECTED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8778, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 3373, 26729, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8778, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 3373, 26729, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (log.isTraceEnabled()) { log.trace("no message available"); }
if (trace) { log.trace("no message available"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp = System.currentTimeMillis(); Message m = null; try { while(true) { try { if (timeout == 0) { if (log.isTraceEnabled()) log.trace("receive with no timeout"); if (!stopping) { m = getMessage(0); } if (m == null) { return null; } if (log.isTraceEnabled()) { log.trace("got " + m); } } else if (timeout == -1) { //ReceiveNoWait if (log.isTraceEnabled()) { log.trace("receive noWait"); } if (!stopping) { m = getMessage(-1); } if (m == null) { if (log.isTraceEnabled()) { log.trace("no message available"); } return null; } } else { if (log.isTraceEnabled()) { log.trace("receive timeout " + timeout + " ms, blocking poll on queue"); } if (!stopping) { m = getMessage(timeout); } if (m == null) { // timeout expired if (log.isTraceEnabled()) { log.trace(timeout + " ms timeout expired"); } return null; } } } catch(InterruptedException e) { if (log.isTraceEnabled()) { log.trace("Thread was interrupted"); } if (closed) { return null; } else { throw new JMSException("Interrupted"); } } if (log.isTraceEnabled()) { log.trace("got " + m); } if (!((MessageDelegate)m).getMessage().isExpired()) { if (log.isTraceEnabled()) { log.trace("message " + m + " is not expired, returning it to the caller"); } preDeliver(sessionDelegate, consumerID, m, isConnectionConsumer); postDeliver(sessionDelegate, consumerID, m, isConnectionConsumer); return m; } log.debug("message expired, discarding"); // discard the message, adjust timeout and reenter the buffer if (timeout != 0) { timeout -= System.currentTimeMillis() - startTimestamp; } } } finally { receiverThread = null; } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/MessageCallbackHandler.java/clean/src/main/org/jboss/jms/client/remoting/MessageCallbackHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2350, 6798, 12, 5748, 2021, 13, 1216, 20343, 282, 288, 11794, 309, 261, 12757, 480, 446, 13, 1377, 288, 540, 604, 394, 804, 38, 8464, 46, 3537, 503, 2932, 37, 883, 2991, 353, 1818, 4104, 8863, 9079, 289, 12900, 5971, 3830, 273, 4884, 18, 2972, 3830, 5621, 5375, 1525, 787, 4921, 273, 2332, 18, 2972, 28512, 5621, 5411, 2350, 312, 273, 446, 31, 5411, 775, 1377, 288, 540, 1323, 12, 3767, 13, 540, 288, 5411, 775, 5411, 288, 9079, 309, 261, 4538, 422, 374, 13, 9079, 288, 5375, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 613, 18, 5129, 2932, 18149, 598, 1158, 2021, 8863, 4766, 565, 309, 16051, 5681, 1382, 13, 5375, 288, 5397, 312, 273, 2381, 12, 20, 1769, 5375, 289, 4766, 565, 309, 261, 81, 422, 446, 13, 5375, 288, 5397, 327, 446, 31, 5375, 289, 4766, 565, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 13212, 315, 397, 312, 1769, 289, 9079, 289, 9079, 469, 309, 261, 4538, 422, 300, 21, 13, 9079, 288, 5375, 368, 11323, 2279, 5480, 5375, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 18149, 1158, 5480, 8863, 289, 4766, 8227, 309, 16051, 5681, 1382, 13, 5375, 288, 5397, 312, 273, 2381, 19236, 21, 1769, 5375, 289, 4766, 565, 309, 261, 81, 422, 446, 13, 5375, 288, 5397, 309, 261, 5129, 13, 288, 613, 18, 5129, 2932, 2135, 883, 2319, 8863, 289, 5397, 327, 446, 31, 5375, 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, 2350, 6798, 12, 5748, 2021, 13, 1216, 20343, 282, 288, 11794, 309, 261, 12757, 480, 446, 13, 1377, 288, 540, 604, 394, 804, 38, 8464, 46, 3537, 503, 2932, 37, 883, 2991, 353, 1818, 4104, 8863, 9079, 289, 12900, 5971, 3830, 273, 4884, 18, 2972, 3830, 5621, 5375, 1525, 787, 4921, 273, 2332, 18, 2972, 28512, 5621, 5411, 2350, 312, 273, 446, 31, 5411, 775, 1377, 288, 540, 1323, 12, 3767, 13, 540, 288, 5411, 775, 5411, 288, 9079, 309, 261, 4538, 422, 374, 13, 9079, 288, 5375, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 613, 18, 5129, 2932, 18149, 598, 1158, 2021, 8863, 4766, 565, 309, 16051, 5681, 1382, 13, 5375, 288, 5397, 312, 273, 2 ]
for (int i = 0; i < contexts.size(); ++i) { Element x = (Element)contexts.get(i); if (string.equals(x.elementName)) return true; } return false;
return getElement(string) != null;
public boolean containsElement(String string) { for (int i = 0; i < contexts.size(); ++i) { Element x = (Element)contexts.get(i); if (string.equals(x.elementName)) return true; } return false; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6a3183576c440762c5acf3c3ff48a8a2a9899c44/GenerateSidewaysView.java/buggy/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1914, 1046, 12, 780, 533, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5781, 18, 1467, 5621, 965, 77, 13, 288, 7734, 3010, 619, 273, 261, 1046, 13, 18332, 18, 588, 12, 77, 1769, 7734, 309, 261, 1080, 18, 14963, 12, 92, 18, 2956, 461, 3719, 327, 638, 31, 5411, 289, 5411, 327, 629, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1914, 1046, 12, 780, 533, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5781, 18, 1467, 5621, 965, 77, 13, 288, 7734, 3010, 619, 273, 261, 1046, 13, 18332, 18, 588, 12, 77, 1769, 7734, 309, 261, 1080, 18, 14963, 12, 92, 18, 2956, 461, 3719, 327, 638, 31, 5411, 289, 5411, 327, 629, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
charset = Charset.forName("UTF-8");
b = toUtf8(str);
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRING: case GENERAL_STRING: charset = Charset.forName("ISO-8859-1"); break; case UNIVERSAL_STRING: case BMP_STRING: charset = Charset.forName("UTF-16BE"); break; case UTF8_STRING: default: charset = Charset.forName("UTF-8"); break; } if (charset == null) throw new DEREncodingException("no charset"); CharsetEncoder encoder = charset.newEncoder(); ByteBuffer result = encoder.encode(CharBuffer.wrap(str)); if (result.hasArray()) { b = result.array(); } else { b = new byte[result.remaining()]; result.get(b); } writeLength(out, b.length); out.write(b); return b.length; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/b56b0f1768429005c2413ce50995d9a217f69c35/DERWriter.java/buggy/libjava/gnu/java/security/der/DERWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 12967, 12, 4632, 596, 16, 509, 1047, 16, 514, 609, 13, 565, 1216, 1860, 225, 288, 565, 12080, 4856, 273, 446, 31, 565, 1160, 8526, 324, 273, 446, 31, 565, 1620, 261, 2692, 473, 374, 92, 21, 42, 13, 1377, 288, 3639, 648, 31288, 67, 5804, 30, 3639, 648, 11770, 3217, 2782, 67, 5804, 30, 3639, 648, 399, 9498, 67, 5804, 30, 3639, 648, 776, 27242, 13439, 67, 5804, 30, 3639, 648, 467, 37, 25, 67, 5804, 30, 3639, 648, 15228, 18045, 2871, 67, 5804, 30, 3639, 648, 9351, 1105, 26, 67, 5804, 30, 3639, 648, 13679, 1013, 67, 5804, 30, 1850, 4856, 273, 12080, 18, 1884, 461, 2932, 12609, 17, 17258, 17, 21, 8863, 1850, 898, 31, 3639, 648, 19462, 31879, 67, 5804, 30, 3639, 648, 605, 4566, 67, 5804, 30, 1850, 4856, 273, 12080, 18, 1884, 461, 2932, 5159, 17, 2313, 5948, 8863, 1850, 898, 31, 3639, 648, 6380, 28, 67, 5804, 30, 3639, 805, 30, 1850, 324, 273, 358, 15230, 28, 12, 701, 1769, 1850, 898, 31, 1377, 289, 565, 309, 261, 9999, 422, 446, 13, 1377, 604, 394, 21801, 13836, 2932, 2135, 4856, 8863, 565, 12080, 7204, 7261, 273, 4856, 18, 2704, 7204, 5621, 565, 7400, 563, 273, 7261, 18, 3015, 12, 2156, 1892, 18, 4113, 12, 701, 10019, 565, 309, 261, 2088, 18, 5332, 1076, 10756, 1377, 288, 3639, 324, 273, 563, 18, 1126, 5621, 1377, 289, 565, 469, 1377, 288, 3639, 324, 273, 394, 1160, 63, 2088, 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, 509, 12967, 12, 4632, 596, 16, 509, 1047, 16, 514, 609, 13, 565, 1216, 1860, 225, 288, 565, 12080, 4856, 273, 446, 31, 565, 1160, 8526, 324, 273, 446, 31, 565, 1620, 261, 2692, 473, 374, 92, 21, 42, 13, 1377, 288, 3639, 648, 31288, 67, 5804, 30, 3639, 648, 11770, 3217, 2782, 67, 5804, 30, 3639, 648, 399, 9498, 67, 5804, 30, 3639, 648, 776, 27242, 13439, 67, 5804, 30, 3639, 648, 467, 37, 25, 67, 5804, 30, 3639, 648, 15228, 18045, 2871, 67, 5804, 30, 3639, 648, 9351, 1105, 26, 67, 5804, 30, 3639, 648, 13679, 1013, 67, 5804, 30, 1850, 4856, 273, 12080, 18, 1884, 461, 2932, 12609, 17, 17258, 17, 21, 8863, 2 ]
if (childNumberFlag == null) {
if (childNumberFlag == -1) {
private void visitBitOp(Node node, int type, Node child) { Integer childNumberFlag = (Integer)(node.getProp(Node.ISNUMBER_PROP)); if (childNumberFlag == null) { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); } generateCodeFromNode(child, node, -1, -1); // special-case URSH; work with the target arg as a long, so // that we can return a 32-bit unsigned value, and call // toUint32 instead of toInt32. if (type == TokenStream.URSH) { addScriptRuntimeInvoke("toUint32", "(Ljava/lang/Object;)", "J"); generateCodeFromNode(child.getNextSibling(), node, -1, -1); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)", "I"); // Looks like we need to explicitly mask the shift to 5 bits - // LUSHR takes 6 bits. push(31); addByteCode(ByteCode.IAND); addByteCode(ByteCode.LUSHR); addByteCode(ByteCode.L2D); addDoubleConstructor(); return; } if (childNumberFlag == null) { addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)", "I"); generateCodeFromNode(child.getNextSibling(), node, -1, -1); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)", "I"); } else { addScriptRuntimeInvoke("toInt32", "(D)", "I"); generateCodeFromNode(child.getNextSibling(), node, -1, -1); addScriptRuntimeInvoke("toInt32", "(D)", "I"); } switch (type) { case TokenStream.BITOR: addByteCode(ByteCode.IOR); break; case TokenStream.BITXOR: addByteCode(ByteCode.IXOR); break; case TokenStream.BITAND: addByteCode(ByteCode.IAND); break; case TokenStream.RSH: addByteCode(ByteCode.ISHR); break; case TokenStream.LSH: addByteCode(ByteCode.ISHL); break; default: badTree(); } addByteCode(ByteCode.I2D); if (childNumberFlag == null) { addDoubleConstructor(); } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 5775, 3817, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 288, 3639, 2144, 1151, 1854, 4678, 273, 261, 4522, 21433, 2159, 18, 588, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 10019, 3639, 309, 261, 3624, 1854, 4678, 422, 300, 21, 13, 288, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 12917, 16, 315, 6290, 19, 4936, 19, 5265, 8863, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 1769, 3639, 289, 3639, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 300, 21, 16, 300, 21, 1769, 3639, 368, 4582, 17, 3593, 1618, 2664, 31, 1440, 598, 326, 1018, 1501, 487, 279, 1525, 16, 1427, 3639, 368, 716, 732, 848, 327, 279, 3847, 17, 3682, 9088, 460, 16, 471, 745, 3639, 368, 358, 5487, 1578, 3560, 434, 20771, 1578, 18, 3639, 309, 261, 723, 422, 3155, 1228, 18, 1099, 2664, 13, 288, 5411, 527, 3651, 5576, 10969, 2932, 869, 5487, 1578, 3113, 7751, 21159, 19, 4936, 19, 921, 31, 2225, 16, 315, 46, 8863, 5411, 2103, 1085, 28570, 12, 3624, 18, 588, 2134, 10291, 9334, 756, 16, 300, 21, 16, 300, 21, 1769, 5411, 527, 3651, 5576, 10969, 2932, 869, 1702, 1578, 3113, 7751, 21159, 19, 4936, 19, 921, 31, 2225, 16, 315, 45, 8863, 5411, 368, 10176, 87, 3007, 732, 1608, 358, 8122, 3066, 326, 4654, 358, 1381, 4125, 300, 5411, 368, 25527, 2664, 54, 5530, 1666, 4125, 18, 5411, 1817, 12, 6938, 1769, 5411, 527, 3216, 1085, 12, 3216, 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, 3757, 5775, 3817, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 288, 3639, 2144, 1151, 1854, 4678, 273, 261, 4522, 21433, 2159, 18, 588, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 10019, 3639, 309, 261, 3624, 1854, 4678, 422, 300, 21, 13, 288, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 12917, 16, 315, 6290, 19, 4936, 19, 5265, 8863, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 1769, 3639, 289, 3639, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 300, 21, 16, 300, 21, 1769, 3639, 368, 4582, 17, 3593, 1618, 2664, 31, 1440, 598, 326, 1018, 1501, 487, 279, 1525, 16, 1427, 3639, 368, 716, 732, 848, 327, 279, 3847, 2 ]
this.cmd.createArgument().setValue( value );
arguments.add( value );
private void addArgIf( final boolean b, final String value ) { if ( b ) { this.cmd.createArgument().setValue( value ); } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/7f9ca7632659d1b09416026c87ce3e635b6c7495/JavadocReport.java/buggy/maven-plugins/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 4117, 2047, 12, 727, 1250, 324, 16, 727, 514, 460, 262, 565, 288, 3639, 309, 261, 324, 262, 3639, 288, 5411, 1775, 18, 1289, 12, 460, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 4117, 2047, 12, 727, 1250, 324, 16, 727, 514, 460, 262, 565, 288, 3639, 309, 261, 324, 262, 3639, 288, 5411, 1775, 18, 1289, 12, 460, 11272, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
void persistBioentryProperty(Connection conn, int bioentry_id, Object key, Object value, boolean removeFirst, boolean silent) throws SQLException { String keyString = key.toString(); // Ought to check for special-case keys. (or just wait 'til the special case // tables get nuked :-) // ex. references, dbxrefs if (!isBioentryPropertySupported()) { if (silent) { return; } else { throw new SQLException("Can't persist this property since the bioentry_property table isn't available"); } } if (removeFirst) { int id = intern_ontology_term(conn, keyString); PreparedStatement remove_old_value = conn.prepareStatement("delete from bioentry_qualifier_value " + " where bioentry_id = ? and term_id = ?"); remove_old_value.setInt(1, bioentry_id); remove_old_value.setInt(2, id); remove_old_value.executeUpdate(); remove_old_value.close(); } if (value != null) { PreparedStatement insert_new; if (isSPASupported()) { insert_new = conn.prepareStatement("insert into bioentry_qualifier_value " + " (bioentry_id, term_id, value, rank) " + "values (?, intern_ontology_term( ? ), ?, ?)"); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, bioentry_id); insert_new.setString(2, keyString); insert_new.setInt(4, ++cnt); insert_new.setString(3, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, bioentry_id); insert_new.setString(2, keyString); insert_new.setInt(3, 1); insert_new.setString(3, value.toString()); insert_new.executeUpdate(); } } else { insert_new = conn.prepareStatement("insert into bioentry_qualifier_value " + " (bioentry_id, term_id, rank, value) " + "values (?, ?, ?, ?)"); int termID = intern_ontology_term(conn, keyString); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, bioentry_id); insert_new.setInt(2, termID); insert_new.setInt(3, ++cnt); insert_new.setString(4, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, bioentry_id); insert_new.setInt(2, termID); insert_new.setInt(3, 1); insert_new.setString(4, value.toString()); insert_new.executeUpdate(); } } insert_new.close(); } }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/8a46d5de3fe9090d980d1d2a6af0d1a91dc8dba3/BioSQLSequenceDB.java/clean/src/org/biojava/bio/seq/db/biosql/BioSQLSequenceDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3898, 38, 1594, 4099, 1396, 12, 1952, 1487, 16, 6862, 509, 25091, 4099, 67, 350, 16, 6862, 1033, 498, 16, 6862, 1033, 460, 16, 6862, 1250, 1206, 3759, 16, 6862, 1250, 10404, 13, 3639, 1216, 6483, 565, 288, 202, 780, 498, 780, 273, 498, 18, 10492, 5621, 202, 759, 531, 9540, 358, 866, 364, 4582, 17, 3593, 1311, 18, 261, 280, 2537, 2529, 296, 1025, 326, 4582, 648, 202, 759, 4606, 336, 9244, 79, 329, 294, 17, 13, 202, 759, 431, 18, 5351, 16, 1319, 92, 9316, 202, 430, 16051, 291, 38, 1594, 4099, 1396, 7223, 10756, 288, 202, 565, 309, 261, 21862, 13, 288, 202, 202, 2463, 31, 202, 565, 289, 469, 288, 202, 202, 12849, 394, 6483, 2932, 2568, 1404, 3898, 333, 1272, 3241, 326, 25091, 4099, 67, 4468, 1014, 5177, 1404, 2319, 8863, 202, 565, 289, 202, 97, 202, 430, 261, 4479, 3759, 13, 288, 202, 565, 509, 612, 273, 8216, 67, 1580, 4676, 67, 6408, 12, 4646, 16, 498, 780, 1769, 202, 565, 16913, 1206, 67, 1673, 67, 1132, 273, 1487, 18, 9366, 3406, 2932, 3733, 628, 25091, 4099, 67, 28157, 67, 1132, 315, 397, 6862, 6862, 4202, 315, 1625, 25091, 4099, 67, 350, 273, 692, 471, 2481, 67, 350, 273, 692, 8863, 202, 565, 1206, 67, 1673, 67, 1132, 18, 542, 1702, 12, 21, 16, 25091, 4099, 67, 350, 1769, 202, 565, 1206, 67, 1673, 67, 1132, 18, 542, 1702, 12, 22, 16, 612, 1769, 202, 565, 1206, 67, 1673, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3898, 38, 1594, 4099, 1396, 12, 1952, 1487, 16, 6862, 509, 25091, 4099, 67, 350, 16, 6862, 1033, 498, 16, 6862, 1033, 460, 16, 6862, 1250, 1206, 3759, 16, 6862, 1250, 10404, 13, 3639, 1216, 6483, 565, 288, 202, 780, 498, 780, 273, 498, 18, 10492, 5621, 202, 759, 531, 9540, 358, 866, 364, 4582, 17, 3593, 1311, 18, 261, 280, 2537, 2529, 296, 1025, 326, 4582, 648, 202, 759, 4606, 336, 9244, 79, 329, 294, 17, 13, 202, 759, 431, 18, 5351, 16, 1319, 92, 9316, 202, 430, 16051, 291, 38, 1594, 4099, 1396, 7223, 10756, 288, 202, 565, 309, 261, 21862, 13, 288, 202, 202, 2463, 31, 202, 565, 289, 469, 288, 202, 202, 12849, 2 ]
nextPage.addContent(getPresentationPageAsXml(page));
nextPage.addContent(getPresentationPageAsXml(iterPage));
protected Element createNavigationElement(PresentationPage page) { boolean hasPrevious = false; boolean hasNext = false; String currentPage = page.getSequence(); Element navigationElement = new Element("navigation"); Element previousPage = new Element("previousPage"); Element nextPage = new Element("nextPage"); List pages = getPresentationPagesByPresentation(page.getPresentation().getId()); for (Iterator i = pages.iterator(); i.hasNext();) { PresentationPage iterPage = (PresentationPage)i.next(); if (iterPage.getSequence() == null || iterPage.getSequence().equals("")) { // Go to the next one. } else if (Integer.parseInt(iterPage.getSequence())+1 == Integer.parseInt(currentPage)) { previousPage.addContent(getPresentationPageAsXml(page)); navigationElement.addContent(previousPage); hasPrevious = true; } else if (Integer.parseInt(iterPage.getSequence())-1 == Integer.parseInt(currentPage)) { nextPage.addContent(getPresentationPageAsXml(page)); navigationElement.addContent(nextPage); hasNext = true; } if (hasPrevious && hasNext) break; } return navigationElement; }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/61e6f316073d402d64ab85a341066cc6c969e127/PresentationManagerImpl.java/clean/presentation/api-impl/src/java/org/theospi/portfolio/presentation/model/impl/PresentationManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 3010, 752, 14301, 1046, 12, 6351, 367, 1964, 1363, 13, 288, 1377, 1250, 711, 8351, 273, 629, 31, 1377, 1250, 4564, 273, 629, 31, 1377, 514, 15117, 273, 1363, 18, 588, 4021, 5621, 1377, 3010, 10394, 1046, 273, 394, 3010, 2932, 19537, 8863, 1377, 3010, 2416, 1964, 273, 394, 3010, 2932, 11515, 1964, 8863, 1377, 3010, 7580, 273, 394, 3010, 2932, 4285, 1964, 8863, 1377, 987, 4689, 273, 1689, 1581, 367, 5716, 858, 6351, 367, 12, 2433, 18, 588, 6351, 367, 7675, 26321, 10663, 1377, 364, 261, 3198, 277, 273, 4689, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 540, 25130, 367, 1964, 1400, 1964, 273, 261, 6351, 367, 1964, 13, 77, 18, 4285, 5621, 540, 309, 261, 2165, 1964, 18, 588, 4021, 1435, 422, 446, 747, 1400, 1964, 18, 588, 4021, 7675, 14963, 2932, 6, 3719, 288, 5411, 368, 4220, 358, 326, 1024, 1245, 18, 540, 289, 540, 469, 309, 261, 4522, 18, 2670, 1702, 12, 2165, 1964, 18, 588, 4021, 10756, 15, 21, 422, 2144, 18, 2670, 1702, 12, 2972, 1964, 3719, 288, 5411, 2416, 1964, 18, 1289, 1350, 12, 588, 6351, 367, 1964, 1463, 4432, 12, 2433, 10019, 5411, 10394, 1046, 18, 1289, 1350, 12, 11515, 1964, 1769, 5411, 711, 8351, 273, 638, 31, 540, 289, 540, 469, 309, 261, 4522, 18, 2670, 1702, 12, 2165, 1964, 18, 588, 4021, 10756, 17, 21, 422, 2144, 18, 2670, 1702, 12, 2972, 1964, 3719, 288, 5411, 7580, 18, 1289, 1350, 12, 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, 565, 4750, 3010, 752, 14301, 1046, 12, 6351, 367, 1964, 1363, 13, 288, 1377, 1250, 711, 8351, 273, 629, 31, 1377, 1250, 4564, 273, 629, 31, 1377, 514, 15117, 273, 1363, 18, 588, 4021, 5621, 1377, 3010, 10394, 1046, 273, 394, 3010, 2932, 19537, 8863, 1377, 3010, 2416, 1964, 273, 394, 3010, 2932, 11515, 1964, 8863, 1377, 3010, 7580, 273, 394, 3010, 2932, 4285, 1964, 8863, 1377, 987, 4689, 273, 1689, 1581, 367, 5716, 858, 6351, 367, 12, 2433, 18, 588, 6351, 367, 7675, 26321, 10663, 1377, 364, 261, 3198, 277, 273, 4689, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 540, 25130, 367, 1964, 1400, 1964, 273, 261, 6351, 367, 1964, 13, 77, 18, 4285, 5621, 2 ]
if(perspectiveId == null) {
if (perspectiveId == null) {
private void openEditor(IEditorInput input, String editorId, String perspectiveId) { if (getWorkbenchWindowCount() == 0) { // Something is wrong, there should be at least // one workbench window open by now. return; } IWorkbenchWindow win = null; if(perspectiveId == null) { win = getActiveWorkbenchWindow(); } else { IContainer root = WorkbenchPlugin.getPluginWorkspace().getRoot(); try { win = openWorkbenchWindow(perspectiveId,root); } catch (WorkbenchException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error opening window in Workbench.openEditor(..)"); return; } } if (win == null) win = getWorkbenchWindows()[0]; WorkbenchPage page = (WorkbenchPage)win.getActivePage(); String id = perspectiveId; if (id == null) id = WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(); if (page == null) { // Create the page. try { IContainer root = WorkbenchPlugin.getPluginWorkspace().getRoot(); page = (WorkbenchPage)getActiveWorkbenchWindow().openPage(id, root); } catch (WorkbenchException e) { ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Problems_Opening_Page"), //$NON-NLS-1$ e.getMessage(), e.getStatus()); } } if (page == null) return; if (page.getActivePerspective() == null) { try { page = (WorkbenchPage)showPerspective(id, win); } catch (WorkbenchException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Workbench.openEditorErrorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("Workbench.openEditorErrorDialogMessage"), //$NON-NLS-1$ status); return; } } page.setEditorAreaVisible(true); // see if we already have an editor IEditorPart editor = page.findEditor(input); if (editor != null) { page.activate(editor); return; } try { page.openEditor(input, editorId); } catch (PartInitException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( win.getShell(), WorkbenchMessages.getString("Workbench.openEditorErrorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("Workbench.openEditorErrorDialogMessage"), //$NON-NLS-1$ status); } return; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1696, 6946, 12, 45, 6946, 1210, 810, 16, 514, 4858, 548, 16, 514, 26651, 548, 13, 288, 202, 202, 430, 261, 588, 2421, 22144, 3829, 1380, 1435, 422, 374, 13, 288, 1082, 202, 759, 29116, 353, 7194, 16, 1915, 1410, 506, 622, 4520, 1082, 202, 759, 1245, 1440, 22144, 2742, 1696, 635, 2037, 18, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 45, 2421, 22144, 3829, 5657, 273, 446, 31, 202, 202, 430, 12, 10422, 16772, 548, 422, 446, 13, 288, 1082, 202, 8082, 273, 11960, 2421, 22144, 3829, 5621, 202, 202, 97, 469, 288, 1082, 202, 45, 2170, 1365, 273, 4147, 22144, 3773, 18, 588, 3773, 8241, 7675, 588, 2375, 5621, 1082, 202, 698, 288, 9506, 202, 8082, 273, 1696, 2421, 22144, 3829, 12, 10422, 16772, 548, 16, 3085, 1769, 1082, 202, 97, 1044, 261, 2421, 22144, 503, 425, 13, 288, 9506, 202, 430, 261, 2421, 22144, 3773, 18, 9394, 13, 368, 1338, 2605, 6896, 9688, 309, 326, 300, 4148, 1296, 980, 1237, 353, 1399, 6862, 202, 2421, 22144, 3773, 18, 1330, 2932, 668, 10890, 2742, 316, 4147, 22144, 18, 3190, 6946, 12, 838, 2225, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 430, 261, 8082, 422, 446, 13, 1082, 202, 8082, 273, 29026, 22144, 10399, 1435, 63, 20, 15533, 9506, 202, 2421, 22144, 1964, 1363, 273, 261, 2421, 22144, 1964, 13, 8082, 18, 588, 3896, 1964, 5621, 202, 202, 780, 612, 273, 26651, 548, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1696, 6946, 12, 45, 6946, 1210, 810, 16, 514, 4858, 548, 16, 514, 26651, 548, 13, 288, 202, 202, 430, 261, 588, 2421, 22144, 3829, 1380, 1435, 422, 374, 13, 288, 1082, 202, 759, 29116, 353, 7194, 16, 1915, 1410, 506, 622, 4520, 1082, 202, 759, 1245, 1440, 22144, 2742, 1696, 635, 2037, 18, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 45, 2421, 22144, 3829, 5657, 273, 446, 31, 202, 202, 430, 12, 10422, 16772, 548, 422, 446, 13, 288, 1082, 202, 8082, 273, 11960, 2421, 22144, 3829, 5621, 202, 202, 97, 469, 288, 1082, 202, 45, 2170, 1365, 273, 4147, 22144, 3773, 18, 588, 3773, 8241, 7675, 588, 2375, 5621, 1082, 202, 2 ]
String className,
Collection classNames,
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_launchType= launchType; m_className= className.trim(); m_groupMap= groupMap; m_suiteName= suiteName.trim(); m_complianceLevel= complianceLevel; m_logLevel= logLevel; }
55140 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55140/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/clean/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14643, 966, 12, 780, 17234, 16, 8227, 509, 8037, 559, 16, 8227, 2200, 19407, 16, 8227, 1635, 1041, 863, 16, 8227, 514, 11371, 461, 16, 8227, 514, 29443, 2355, 16, 8227, 514, 16752, 13, 288, 1377, 312, 67, 4406, 461, 33, 17234, 31, 1377, 312, 67, 20738, 559, 33, 8037, 559, 31, 1377, 312, 67, 12434, 33, 2658, 18, 5290, 5621, 1377, 312, 67, 1655, 863, 33, 1041, 863, 31, 1377, 312, 67, 30676, 461, 33, 11371, 461, 18, 5290, 5621, 1377, 312, 67, 832, 10671, 2355, 33, 29443, 2355, 31, 1377, 312, 67, 1330, 2355, 33, 16752, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14643, 966, 12, 780, 17234, 16, 8227, 509, 8037, 559, 16, 8227, 2200, 19407, 16, 8227, 1635, 1041, 863, 16, 8227, 514, 11371, 461, 16, 8227, 514, 29443, 2355, 16, 8227, 514, 16752, 13, 288, 1377, 312, 67, 4406, 461, 33, 17234, 31, 1377, 312, 67, 20738, 559, 33, 8037, 559, 31, 1377, 312, 67, 12434, 33, 2658, 18, 5290, 5621, 1377, 312, 67, 1655, 863, 33, 1041, 863, 31, 1377, 312, 67, 30676, 461, 33, 11371, 461, 18, 5290, 5621, 1377, 312, 67, 832, 10671, 2355, 33, 29443, 2355, 31, 1377, 312, 67, 1330, 2355, 33, 16752, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Graphics g = getGraphics();
Graphics g = PlotPanel.this.getGraphics();
public void mouseClicked(MouseEvent e) { if ((m_sIndex == 2 || m_sIndex == 3) && (m_createShape || (e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK)) { if (m_createShape) { //then it has been started already. Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); m_newMousePos.height = e.getY(); g.drawLine((int)Math.ceil (convertToPanelX (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil (convertToPanelY (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); } else if (m_sIndex == 3) { //then extend the lines to infinity //(100000 or so should be enough). //the area is selected by where the user right clicks //the mouse button m_createShape = false; if (m_shapePoints.size() >= 5) { double cx = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue())); double cx2 = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue())) - cx; cx2 *= 50000; double cy = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue())); double cy2 = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())) - cy; cy2 *= 50000; double cxa = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(3)). doubleValue())); double cxa2 = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(1)). doubleValue())) - cxa; cxa2 *= 50000; double cya = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(4)). doubleValue())); double cya2 = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(2)). doubleValue())) - cya; cya2 *= 50000; m_shapePoints.setElementAt (new Double(convertToAttribX(cxa2 + cxa)), 1); m_shapePoints.setElementAt (new Double(convertToAttribY(cy2 + cy)), m_shapePoints.size() - 1); m_shapePoints.setElementAt (new Double(convertToAttribX(cx2 + cx)), m_shapePoints.size() - 2); m_shapePoints.setElementAt (new Double(convertToAttribY(cya2 + cya)), 2); //determine how infinity line should be built cy = Double.POSITIVE_INFINITY; cy2 = Double.NEGATIVE_INFINITY; if (((Double)m_shapePoints.elementAt(1)). doubleValue() > ((Double)m_shapePoints.elementAt(3)). doubleValue()) { if (((Double)m_shapePoints.elementAt(2)). doubleValue() == ((Double)m_shapePoints.elementAt(4)). doubleValue()) { cy = ((Double)m_shapePoints.elementAt(2)). doubleValue(); } } if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue() > ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue()) { if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue() == ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)).doubleValue()) { cy2 = ((Double)m_shapePoints.lastElement()). doubleValue(); } } m_shapePoints.addElement(new Double(cy)); m_shapePoints.addElement(new Double(cy2)); if (!inPolyline(m_shapePoints, convertToAttribX (e.getX()), convertToAttribY(e.getY()))) { Double tmp = (Double)m_shapePoints. elementAt(m_shapePoints.size() - 2); m_shapePoints.setElementAt (m_shapePoints.lastElement(), m_shapePoints.size() - 2); m_shapePoints.setElementAt (tmp, m_shapePoints.size() - 1); } if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } else { //then close the shape m_createShape = false; if (m_shapePoints.size() >= 7) { m_shapePoints.addElement(m_shapePoints.elementAt(1)); m_shapePoints.addElement(m_shapePoints.elementAt(2)); if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } g.dispose(); //repaint(); } else if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { //then this is the first point m_createShape = true; m_shapePoints = new FastVector(17); m_shapePoints.addElement(new Double(m_sIndex)); m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); //the new point m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); //the temp mouse point m_newMousePos.height = e.getY(); Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawLine((int)Math.ceil (convertToPanelX(((Double)m_shapePoints. elementAt(1)).doubleValue())), (int)Math.ceil (convertToPanelY(((Double)m_shapePoints. elementAt(2)).doubleValue())), m_newMousePos.width, m_newMousePos.height); g.dispose(); } } else { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { searchPoints(e.getX(),e.getY(), false); } else { searchPoints(e.getX(), e.getY(), true); } } }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/dc64e78e5cb981247dcf5060d192c6dbdf43d5cd/VisualizePanel.java/buggy/weka/gui/explorer/VisualizePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 918, 7644, 27633, 12, 9186, 1133, 425, 13, 288, 202, 377, 202, 565, 309, 14015, 81, 67, 87, 1016, 422, 576, 747, 312, 67, 87, 1016, 422, 890, 13, 597, 3196, 202, 12, 81, 67, 2640, 8500, 747, 1875, 261, 73, 18, 588, 11948, 1435, 473, 425, 18, 20068, 21, 67, 11704, 13, 422, 425, 18, 20068, 21, 67, 11704, 3719, 288, 202, 1377, 309, 261, 81, 67, 2640, 8500, 13, 288, 202, 202, 759, 15991, 518, 711, 2118, 5746, 1818, 18, 202, 202, 17558, 314, 273, 336, 17558, 5621, 202, 202, 75, 18, 542, 2957, 12, 2957, 18, 11223, 1769, 202, 202, 75, 18, 542, 60, 916, 2309, 12, 2957, 18, 14739, 1769, 202, 202, 430, 14015, 73, 18, 588, 11948, 1435, 473, 425, 18, 20068, 21, 67, 11704, 13, 422, 425, 18, 20068, 21, 67, 11704, 13, 288, 1082, 225, 312, 67, 4867, 5636, 18, 1289, 1046, 12, 2704, 1875, 565, 3698, 12, 6283, 774, 12399, 60, 12, 73, 18, 588, 60, 1435, 3719, 1769, 1082, 26924, 225, 312, 67, 4867, 5636, 18, 1289, 1046, 12, 2704, 1875, 565, 3698, 12, 6283, 774, 12399, 61, 12, 73, 18, 588, 61, 1435, 3719, 1769, 1082, 26924, 225, 312, 67, 2704, 9186, 1616, 18, 2819, 273, 425, 18, 588, 60, 5621, 1082, 225, 312, 67, 2704, 9186, 1616, 18, 4210, 273, 425, 18, 588, 61, 5621, 1082, 225, 314, 18, 9446, 1670, 12443, 474, 13, 10477, 18, 311, 330, 9506, 377, 261, 6283, 774, 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, 225, 1071, 918, 7644, 27633, 12, 9186, 1133, 425, 13, 288, 202, 377, 202, 565, 309, 14015, 81, 67, 87, 1016, 422, 576, 747, 312, 67, 87, 1016, 422, 890, 13, 597, 3196, 202, 12, 81, 67, 2640, 8500, 747, 1875, 261, 73, 18, 588, 11948, 1435, 473, 425, 18, 20068, 21, 67, 11704, 13, 422, 425, 18, 20068, 21, 67, 11704, 3719, 288, 202, 1377, 309, 261, 81, 67, 2640, 8500, 13, 288, 202, 202, 759, 15991, 518, 711, 2118, 5746, 1818, 18, 202, 202, 17558, 314, 273, 336, 17558, 5621, 202, 202, 75, 18, 542, 2957, 12, 2957, 18, 11223, 1769, 202, 202, 75, 18, 542, 60, 916, 2309, 12, 2957, 18, 14739, 1769, 202, 202, 2 ]
if(bridge.getCached(handle) == null)
if(MylarBugsPlugin.getDefault().getCache().getCached(handle) == null)
public void searchCompleted(List<?> nodes) { Iterator<?> itr = nodes.iterator(); if(MylarBugzillaPlugin.getDefault() == null) return; BugzillaStructureBridge bridge = MylarBugzillaPlugin.getDefault().getStructureBridge(); while(itr.hasNext()) { Object o = itr.next(); if(o instanceof BugzillaReportNode){ BugzillaReportNode bugzillaNode = (BugzillaReportNode)o; final String handle = bugzillaNode.getElementHandle(); if(bridge.getCached(handle) == null) cache(handle, bugzillaNode); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable(){ public void run() { incrementInterest(node, BugzillaStructureBridge.EXTENSION, handle, degreeOfSeparation); } }); } } gathered = true; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2cadd19e9050c0f75683524e0780abfbdf643e1e/BugzillaReferencesProvider.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/search/BugzillaReferencesProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1623, 9556, 12, 682, 12880, 34, 2199, 13, 288, 7734, 4498, 12880, 34, 11176, 273, 2199, 18, 9838, 5621, 7734, 309, 12, 12062, 7901, 19865, 15990, 3773, 18, 588, 1868, 1435, 422, 446, 13, 1171, 202, 2463, 31, 1171, 202, 7734, 16907, 15990, 6999, 13691, 10105, 273, 8005, 7901, 19865, 15990, 3773, 18, 588, 1868, 7675, 588, 6999, 13691, 5621, 27573, 1323, 12, 305, 86, 18, 5332, 2134, 10756, 288, 10792, 1033, 320, 273, 11176, 18, 4285, 5621, 10792, 309, 12, 83, 1276, 16907, 15990, 4820, 907, 15329, 13491, 16907, 15990, 4820, 907, 7934, 15990, 907, 273, 261, 19865, 15990, 4820, 907, 13, 83, 31, 13491, 727, 514, 1640, 273, 7934, 15990, 907, 18, 21336, 3259, 5621, 13491, 309, 12, 12062, 7901, 31559, 3773, 18, 588, 1868, 7675, 588, 1649, 7675, 588, 9839, 12, 4110, 13, 422, 446, 13, 7682, 202, 2493, 12, 4110, 16, 7934, 15990, 907, 1769, 4766, 7734, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 95, 6862, 1082, 202, 482, 918, 1086, 1435, 288, 6862, 9506, 202, 15016, 29281, 12, 2159, 16, 16907, 15990, 6999, 13691, 18, 12796, 16, 1640, 16, 10782, 951, 5097, 4302, 1769, 6862, 1082, 202, 97, 13491, 15549, 10792, 289, 7734, 289, 7734, 11090, 329, 273, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1623, 9556, 12, 682, 12880, 34, 2199, 13, 288, 7734, 4498, 12880, 34, 11176, 273, 2199, 18, 9838, 5621, 7734, 309, 12, 12062, 7901, 19865, 15990, 3773, 18, 588, 1868, 1435, 422, 446, 13, 1171, 202, 2463, 31, 1171, 202, 7734, 16907, 15990, 6999, 13691, 10105, 273, 8005, 7901, 19865, 15990, 3773, 18, 588, 1868, 7675, 588, 6999, 13691, 5621, 27573, 1323, 12, 305, 86, 18, 5332, 2134, 10756, 288, 10792, 1033, 320, 273, 11176, 18, 4285, 5621, 10792, 309, 12, 83, 1276, 16907, 15990, 4820, 907, 15329, 13491, 16907, 15990, 4820, 907, 7934, 15990, 907, 273, 261, 19865, 15990, 4820, 907, 13, 83, 31, 13491, 727, 514, 1640, 273, 7934, 15990, 907, 18, 21336, 3259, 2 ]
Query after = NutchAnalysis.parseQuery(string);
Query after = NutchAnalysis.parseQuery(string, nutchConf);
public static void testQueryParser(Query query, String string) throws Exception { Query after = NutchAnalysis.parseQuery(string); assertEquals(after, query); assertEquals(after.toString(), string); }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/TestQuery.java/clean/src/test/org/apache/nutch/searcher/TestQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1842, 1138, 2678, 12, 1138, 843, 16, 514, 533, 13, 565, 1216, 1185, 288, 565, 2770, 1839, 273, 423, 322, 343, 9418, 18, 2670, 1138, 12, 1080, 16, 290, 322, 343, 3976, 1769, 565, 1815, 8867, 12, 5205, 16, 843, 1769, 565, 1815, 8867, 12, 5205, 18, 10492, 9334, 533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1842, 1138, 2678, 12, 1138, 843, 16, 514, 533, 13, 565, 1216, 1185, 288, 565, 2770, 1839, 273, 423, 322, 343, 9418, 18, 2670, 1138, 12, 1080, 16, 290, 322, 343, 3976, 1769, 565, 1815, 8867, 12, 5205, 16, 843, 1769, 565, 1815, 8867, 12, 5205, 18, 10492, 9334, 533, 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 ]
case 5:
case 5:
public static void faceNemesis() { // Make sure the player is qualified to use this script if ( !checkPrerequisites() ) return; // See how far the player has gotten in this quest REDIRECT_FOLLOWER.constructURLString( "cave.php" ); REDIRECT_FOLLOWER.run(); if ( REDIRECT_FOLLOWER.responseText == null ) { KoLmafia.updateDisplay( ABORT_STATE, "Unable to find quest." ); return; } int region = 0; if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='flies'" ) != -1 ) region = 4; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='door1'" ) != -1 ) region = 5; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='troll1'" ) != -1 ) region = 6; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='door2'" ) != -1 ) region = 7; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='troll2'" ) != -1 ) region = 8; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "value='end'" ) != -1 ) region = 9; else if ( REDIRECT_FOLLOWER.responseText.indexOf( "cave9done" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You've already defeated your nemesis." ); return; } List requirements = new ArrayList(); // Need a flyswatter to get past the Fly Bend if ( region <= 4 ) { if ( KoLCharacter.getEquipment( KoLCharacter.WEAPON ).getItemID() != FLY_SWATTER.getItemID() ) requirements.add( FLY_SWATTER ); } // Need a cog and a sprocket to get past the Stone Door if ( region <= 5 ) { requirements.add( COG ); requirements.add( SPROCKET ); } // Need fairy gravy to get past the first lavatory troll if ( region <= 6 ) { requirements.add( GRAVY ); } // Need tongs to get past the salad covered door if ( region <= 7 ) { if ( KoLCharacter.getEquipment( KoLCharacter.WEAPON ).getItemID() != TONGS.getItemID() ) requirements.add( TONGS ); } // Need some kind of ketchup to get past the second lavatory troll AdventureResult ketchup = CATSUP.getCount( inventory ) > 0 ? CATSUP : KETCHUP; if ( region <= 8 ) requirements.add( ketchup ); if ( !getClient().checkRequirements( requirements ) ) return; // Get current equipment AdventureResult initialWeapon = KoLCharacter.getEquipment( KoLCharacter.WEAPON ); AdventureResult initialOffhand = KoLCharacter.getEquipment( KoLCharacter.OFFHAND ); if ( initialWeapon == null ) initialWeapon = EquipmentRequest.UNEQUIP; if ( initialOffhand == null ) initialOffhand = EquipmentRequest.UNEQUIP; // Pass the obstacles one at a time. for ( int i = region; i <= 9; i++ ) { String action = "none"; switch (i) { case 4: // The Fly Bend // Equip fly swatter, but only if it's // not currently equipped DEFAULT_SHELL.executeLine( "equip Gnollish flyswatter" ); action = "flies"; KoLmafia.updateDisplay( "Swatting flies..." ); break; case 5: // A Stone Door action = "door1"; KoLmafia.updateDisplay( "Activating the stone door..." ); break; case 6: // Lavatory Troll 1 action = "troll1"; KoLmafia.updateDisplay( "Feeding the first troll..." ); break; case 7: // Salad-Covered Door DEFAULT_SHELL.executeLine( "equip Knob Goblin tongs" ); action = "door2"; KoLmafia.updateDisplay( "Plucking the salad door..." ); break; case 8: // Lavatory Troll 2 action = "troll2"; KoLmafia.updateDisplay( "Feeding the second troll..." ); break; case 9: // Chamber of Epic Conflict if ( initialWeapon != null ) DEFAULT_SHELL.executeLine( "equip weapon " + initialWeapon.getName() ); if ( initialOffhand != null ) DEFAULT_SHELL.executeLine( "equip off-hand " + initialOffhand.getName() ); action = "end"; KoLmafia.updateDisplay( "Fighting your nemesis..." ); break; } // Visit the cave KoLRequest request = new KoLRequest( "cave.php?action=" + action ); request.run(); if ( REDIRECT_FOLLOWER.responseText != null && REDIRECT_FOLLOWER.responseText.indexOf( "You must have at least one Adventure left to fight your nemesis." ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You're out of adventures." ); return; } // Consume items switch (i) { case 5: // A Stone Door // Use up cog & sprocket getClient().processResult( COG.getNegation() ); getClient().processResult( SPROCKET.getNegation() ); break; case 6: // Lavatory Troll 1 // Use up fairy gravy getClient().processResult( GRAVY.getNegation() ); break; case 8: // Lavatory Troll 2 // Use up ketchup getClient().processResult( ketchup.getNegation() ); break; } } if ( getClient().getCurrentRequest() != null && getClient().getCurrentRequest().responseText != null && getClient().getCurrentRequest().responseText.indexOf( "WINWINWIN" ) == -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "KoLmafia was unable to defeat your nemesis." ); return; } KoLmafia.updateDisplay( "You defeated your nemesis. Congratulations!" ); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/eb8203b0add11024f00f9d7ed2ad7b2b63269aab/Nemesis.java/clean/src/net/sourceforge/kolmafia/Nemesis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 7945, 50, 12604, 291, 1435, 202, 95, 202, 202, 759, 4344, 3071, 326, 7291, 353, 9348, 358, 999, 333, 2728, 202, 202, 430, 261, 401, 1893, 2050, 822, 16608, 2997, 1435, 262, 1082, 202, 2463, 31, 202, 202, 759, 2164, 3661, 10247, 326, 7291, 711, 2363, 2253, 316, 333, 225, 456, 202, 202, 25103, 67, 29890, 654, 18, 10062, 1785, 780, 12, 315, 71, 836, 18, 2684, 6, 11272, 202, 202, 25103, 67, 29890, 654, 18, 2681, 5621, 202, 202, 430, 261, 14411, 45, 4512, 67, 29890, 654, 18, 2740, 1528, 422, 446, 262, 202, 202, 95, 1082, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 10336, 3871, 67, 7998, 16, 315, 3370, 358, 1104, 225, 456, 1199, 11272, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 474, 3020, 273, 374, 31, 202, 202, 430, 261, 14411, 45, 4512, 67, 29890, 654, 18, 2740, 1528, 18, 31806, 12, 315, 1132, 2218, 74, 549, 281, 4970, 262, 480, 300, 21, 262, 1082, 202, 6858, 273, 1059, 31, 202, 202, 12107, 309, 261, 14411, 45, 4512, 67, 29890, 654, 18, 2740, 1528, 18, 31806, 12, 315, 1132, 2218, 2896, 280, 21, 4970, 262, 480, 300, 21, 262, 1082, 202, 6858, 273, 1381, 31, 202, 202, 12107, 309, 261, 14411, 45, 4512, 67, 29890, 654, 18, 2740, 1528, 18, 31806, 12, 315, 1132, 2218, 88, 2693, 21, 4970, 262, 480, 300, 21, 262, 1082, 202, 6858, 273, 1666, 31, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 7945, 50, 12604, 291, 1435, 202, 95, 202, 202, 759, 4344, 3071, 326, 7291, 353, 9348, 358, 999, 333, 2728, 202, 202, 430, 261, 401, 1893, 2050, 822, 16608, 2997, 1435, 262, 1082, 202, 2463, 31, 202, 202, 759, 2164, 3661, 10247, 326, 7291, 711, 2363, 2253, 316, 333, 225, 456, 202, 202, 25103, 67, 29890, 654, 18, 10062, 1785, 780, 12, 315, 71, 836, 18, 2684, 6, 11272, 202, 202, 25103, 67, 29890, 654, 18, 2681, 5621, 202, 202, 430, 261, 14411, 45, 4512, 67, 29890, 654, 18, 2740, 1528, 422, 446, 262, 202, 202, 95, 1082, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 10336, 3871, 67, 7998, 16, 2 ]
fireApplyEditorValue(); deactivate();
handleDefaultSelection(e);
public void widgetDefaultSelected(SelectionEvent e) { // same with enter-key handling code in keyReleaseOccured(e); fireApplyEditorValue(); deactivate(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9e075dc345f1ead18a20e0ce163530139530217d/TextCellEditor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TextCellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 1868, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 368, 1967, 598, 6103, 17, 856, 5057, 981, 316, 498, 7391, 24269, 2862, 12, 73, 1769, 7734, 4452, 7001, 6946, 620, 5621, 7734, 18790, 5621, 5411, 289, 565, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 1868, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 368, 1967, 598, 6103, 17, 856, 5057, 981, 316, 498, 7391, 24269, 2862, 12, 73, 1769, 7734, 4452, 7001, 6946, 620, 5621, 7734, 18790, 5621, 5411, 289, 565, 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 ]
return JavaObject.wrap(runtime, result);
return JavaObject.wrap(getRuntime(), result);
private IRubyObject invokeWithExceptionHandling(Object javaInvokee, Object[] arguments) { try { Object result = method.invoke(javaInvokee, arguments); return JavaObject.wrap(runtime, result); } catch (IllegalArgumentException iae) { throw new TypeError(getRuntime(), "expected " + argument_types().inspect()); } catch (IllegalAccessException iae) { throw new TypeError(getRuntime(), "illegal access on '" + method.getName() + "': " + iae.getMessage()); } catch (InvocationTargetException ite) { getRuntime().getJavaSupport().handleNativeException(ite.getTargetException()); // This point is only reached if there was an exception handler installed. return runtime.getNil(); } }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaMethod.java/clean/src/org/jruby/javasupport/JavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 4356, 1190, 503, 14701, 12, 921, 2252, 11354, 1340, 16, 1033, 8526, 1775, 13, 288, 3639, 775, 288, 5411, 1033, 563, 273, 707, 18, 14407, 12, 6290, 11354, 1340, 16, 1775, 1769, 5411, 327, 5110, 921, 18, 4113, 12, 588, 5576, 9334, 563, 1769, 3639, 289, 1044, 261, 31237, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 3825, 315, 397, 1237, 67, 2352, 7675, 12009, 10663, 3639, 289, 1044, 261, 12195, 9773, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 31751, 2006, 603, 2119, 397, 707, 18, 17994, 1435, 397, 2491, 30, 315, 397, 30905, 18, 24906, 10663, 3639, 289, 1044, 261, 9267, 14950, 518, 73, 13, 288, 5411, 18814, 7675, 588, 5852, 6289, 7675, 4110, 9220, 503, 12, 1137, 18, 588, 14950, 10663, 5411, 368, 1220, 1634, 353, 1338, 8675, 309, 1915, 1703, 392, 1520, 1838, 5876, 18, 5411, 327, 3099, 18, 588, 12616, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 4356, 1190, 503, 14701, 12, 921, 2252, 11354, 1340, 16, 1033, 8526, 1775, 13, 288, 3639, 775, 288, 5411, 1033, 563, 273, 707, 18, 14407, 12, 6290, 11354, 1340, 16, 1775, 1769, 5411, 327, 5110, 921, 18, 4113, 12, 588, 5576, 9334, 563, 1769, 3639, 289, 1044, 261, 31237, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 3825, 315, 397, 1237, 67, 2352, 7675, 12009, 10663, 3639, 289, 1044, 261, 12195, 9773, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 31751, 2006, 603, 2119, 397, 707, 18, 17994, 1435, 397, 2491, 30, 315, 397, 30905, 18, 24906, 10663, 3639, 289, 1044, 261, 9267, 14950, 518, 73, 2 ]
TransportManager.registerUser(SparkManager.getConnection(), serviceName, username, password);
TransportUtils.registerUser(SparkManager.getConnection(), serviceName, username, password);
public void actionPerformed(ActionEvent e) { String username = getScreenName(); String password = getPassword(); if (!ModelUtil.hasLength(username) || !ModelUtil.hasLength(password)) { JOptionPane.showMessageDialog(this, Res.getString("message.username.password.error"), Res.getString("title.registration.error"), JOptionPane.ERROR_MESSAGE); return; } try { TransportManager.registerUser(SparkManager.getConnection(), serviceName, username, password); // Send Presence final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); Presence presence = statusBar.getPresence(); presence.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(presence); } catch (XMPPException e1) { e1.printStackTrace(); JOptionPane.showMessageDialog(this, Res.getString("message.registration.transport.failed"), Res.getString("title.registration.error"), JOptionPane.ERROR_MESSAGE); } dialog.dispose(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/TransportRegistrationDialog.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/TransportRegistrationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 2718, 273, 22303, 461, 5621, 3639, 514, 2201, 273, 17397, 5621, 3639, 309, 16051, 1488, 1304, 18, 5332, 1782, 12, 5053, 13, 747, 401, 1488, 1304, 18, 5332, 1782, 12, 3664, 3719, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 1124, 18, 588, 780, 2932, 2150, 18, 5053, 18, 3664, 18, 1636, 6, 3631, 1124, 18, 588, 780, 2932, 2649, 18, 14170, 18, 1636, 6, 3631, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 9514, 1989, 18, 4861, 1299, 12, 55, 9468, 1318, 18, 588, 1952, 9334, 6773, 16, 2718, 16, 2201, 1769, 5411, 368, 2479, 31517, 5411, 727, 2685, 5190, 1267, 5190, 273, 21087, 1318, 18, 588, 8241, 7675, 588, 1482, 5190, 5621, 5411, 31517, 9805, 273, 1267, 5190, 18, 588, 22590, 5621, 5411, 9805, 18, 542, 774, 12, 13049, 18, 588, 16789, 10663, 5411, 21087, 1318, 18, 588, 1952, 7675, 4661, 6667, 12, 21731, 1769, 3639, 289, 3639, 1044, 261, 60, 19388, 503, 425, 21, 13, 288, 5411, 425, 21, 18, 1188, 6332, 5621, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 1124, 18, 588, 780, 2932, 2150, 18, 14170, 18, 13049, 18, 7307, 6, 3631, 1124, 18, 588, 780, 2932, 2649, 18, 14170, 18, 1636, 6, 3631, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 3639, 289, 3639, 6176, 18, 2251, 4150, 5621, 565, 289, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 2718, 273, 22303, 461, 5621, 3639, 514, 2201, 273, 17397, 5621, 3639, 309, 16051, 1488, 1304, 18, 5332, 1782, 12, 5053, 13, 747, 401, 1488, 1304, 18, 5332, 1782, 12, 3664, 3719, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 1124, 18, 588, 780, 2932, 2150, 18, 5053, 18, 3664, 18, 1636, 6, 3631, 1124, 18, 588, 780, 2932, 2649, 18, 14170, 18, 1636, 6, 3631, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 9514, 1989, 18, 4861, 1299, 12, 55, 9468, 1318, 18, 588, 1952, 9334, 6773, 16, 2718, 16, 2201, 1769, 5411, 2 ]
super(entity, member, name); }
super(entity, member, name); }
Attribute(Entity entity, java.lang.reflect.Member member, String name) { super(entity, member, name); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Model.java/clean/src/main/mondrian/jolap/util/Model.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1499, 12, 1943, 1522, 16, 2252, 18, 4936, 18, 1734, 1582, 18, 4419, 3140, 16, 514, 508, 13, 288, 1082, 202, 9565, 12, 1096, 16, 3140, 16, 508, 1769, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3196, 202, 1499, 12, 1943, 1522, 16, 2252, 18, 4936, 18, 1734, 1582, 18, 4419, 3140, 16, 514, 508, 13, 288, 1082, 202, 9565, 12, 1096, 16, 3140, 16, 508, 1769, 202, 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 ]
p = createCompletedPoll(daemon, testau, msg, 8,2);
p = createCompletedPoll(theDaemon, testau, msg, 8,2);
public void testCheckVote() { LcapMessage msg = null; try { msg = LcapMessage.makeReplyMsg( testpolls[0].getMessage(), pollmanager.generateRandomBytes(), pollmanager.generateRandomBytes(), null, LcapMessage.NAME_POLL_REP, testduration, testID); } catch (IOException ex1) { } Poll p = null; try { p = createCompletedPoll(daemon, testau, msg, 8,2); } catch (Exception ex2) { } LcapIdentity id = idmgr.findIdentity(msg.getOriginAddr()); int rep = p.m_tally.wtAgree + id.getReputation(); // good vote check try { p.checkVote(msg.getHashed(), new Vote(msg, false)); } catch (IllegalStateException ex) { // unitialized comm } assertEquals(9, p.m_tally.numAgree); assertEquals(2, p.m_tally.numDisagree); assertEquals(rep, p.m_tally.wtAgree); rep = p.m_tally.wtDisagree + id.getReputation(); // bad vote check try { p.checkVote(pollmanager.generateRandomBytes(), new Vote(msg, false)); } catch (IllegalStateException ex) { // unitialized comm } assertEquals(9, p.m_tally.numAgree); assertEquals(3, p.m_tally.numDisagree); assertEquals(rep, p.m_tally.wtDisagree); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ab5d2b6c8ae7a298f96ade2c4e528173e5df6796/TestPoll.java/clean/test/src/org/lockss/poller/TestPoll.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1564, 19338, 1435, 288, 565, 511, 5909, 1079, 1234, 273, 446, 31, 565, 775, 288, 1377, 1234, 273, 511, 5909, 1079, 18, 6540, 7817, 3332, 12, 1850, 1842, 3915, 3251, 63, 20, 8009, 24906, 9334, 1850, 7672, 4181, 18, 7163, 8529, 2160, 9334, 1850, 7672, 4181, 18, 7163, 8529, 2160, 9334, 1850, 446, 16, 1850, 511, 5909, 1079, 18, 1985, 67, 14232, 48, 67, 28879, 16, 1850, 1842, 8760, 16, 1850, 1842, 734, 1769, 565, 289, 565, 1044, 261, 14106, 431, 21, 13, 288, 565, 289, 565, 19160, 293, 273, 446, 31, 565, 775, 288, 1377, 293, 273, 752, 9556, 19085, 12, 5787, 12858, 16, 1842, 8377, 16, 1234, 16, 1725, 16, 22, 1769, 565, 289, 565, 1044, 261, 503, 431, 22, 13, 288, 565, 289, 565, 511, 5909, 4334, 612, 273, 612, 13552, 18, 4720, 4334, 12, 3576, 18, 588, 7571, 3178, 10663, 565, 509, 2071, 273, 293, 18, 81, 67, 88, 1230, 18, 6046, 2577, 992, 397, 612, 18, 588, 426, 458, 367, 5621, 565, 368, 7494, 12501, 866, 565, 775, 288, 1377, 293, 18, 1893, 19338, 12, 3576, 18, 588, 2310, 329, 9334, 394, 27540, 12, 3576, 16, 629, 10019, 565, 289, 565, 1044, 261, 12195, 5060, 431, 13, 288, 1377, 368, 2836, 649, 1235, 1543, 565, 289, 565, 1815, 8867, 12, 29, 16, 293, 18, 81, 67, 88, 1230, 18, 2107, 2577, 992, 1769, 565, 1815, 8867, 12, 22, 16, 293, 18, 81, 67, 88, 1230, 18, 2107, 1669, 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, 1842, 1564, 19338, 1435, 288, 565, 511, 5909, 1079, 1234, 273, 446, 31, 565, 775, 288, 1377, 1234, 273, 511, 5909, 1079, 18, 6540, 7817, 3332, 12, 1850, 1842, 3915, 3251, 63, 20, 8009, 24906, 9334, 1850, 7672, 4181, 18, 7163, 8529, 2160, 9334, 1850, 7672, 4181, 18, 7163, 8529, 2160, 9334, 1850, 446, 16, 1850, 511, 5909, 1079, 18, 1985, 67, 14232, 48, 67, 28879, 16, 1850, 1842, 8760, 16, 1850, 1842, 734, 1769, 565, 289, 565, 1044, 261, 14106, 431, 21, 13, 288, 565, 289, 565, 19160, 293, 273, 446, 31, 565, 775, 288, 1377, 293, 273, 752, 9556, 19085, 12, 5787, 12858, 16, 1842, 8377, 16, 1234, 16, 1725, 16, 22, 1769, 565, 2 ]
int offset = start - 1;
private static boolean relayoutOnNewPage( LayoutContext c, List contentList, Box block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPageBottom(c); int startAbsY = block.getAbsY() + block.ty + block.height; int endAbsY = 0; int offset = start - 1; for (int i = start; i <= end; i++) { Content currentContent = (Content)contentList.get(i); offset++; RelayoutData relayoutData = relayoutDataList.get(i); BlockBox childBox = null; //TODO:handle run-ins. For now, treat them as blocks childBox = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), false, currentContent); if (childBox.getStyle().isAvoidPageBreakInside() && childBox.crossesPageBreak(c)) { c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach(); } else { childBox.detach(); childBox = secondTry; } } c.getRootLayer().ensureHasPage(c, childBox); block.adjustWidthForChild(childBox.getWidth()); block.height = childBox.y + childBox.height; if ((i == end && end == contentList.size()-1) || (i == end - 1)) { endAbsY = childBox.getAbsY() + childBox.getHeight(); } if (childBox.getStyle().isForcePageBreakAfter()) { block.expandToPageBottom(c); } } return ! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8201cacc8af3fd808d6f2e488d68abbbd79a0b0/BlockBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 1279, 2012, 1398, 1908, 1964, 12, 5411, 9995, 1042, 276, 16, 987, 913, 682, 16, 8549, 1203, 16, 2398, 9767, 694, 2223, 2154, 694, 2223, 16, 4275, 2012, 24274, 1279, 2012, 24274, 16, 2398, 509, 787, 16, 509, 679, 13, 288, 3639, 1203, 18, 4210, 273, 1279, 2012, 24274, 18, 588, 12, 1937, 2934, 588, 4435, 3054, 2686, 5621, 3639, 1203, 18, 12320, 774, 1964, 10393, 12, 71, 1769, 7734, 509, 787, 9382, 61, 273, 1203, 18, 588, 9382, 61, 1435, 397, 1203, 18, 4098, 397, 1203, 18, 4210, 31, 3639, 509, 679, 9382, 61, 273, 374, 31, 15604, 364, 261, 474, 277, 273, 787, 31, 277, 1648, 679, 31, 277, 27245, 288, 5411, 3697, 783, 1350, 273, 261, 1350, 13, 1745, 682, 18, 588, 12, 77, 1769, 5411, 1384, 9904, 31, 13491, 4275, 2012, 751, 1279, 2012, 751, 273, 1279, 2012, 24274, 18, 588, 12, 77, 1769, 5411, 3914, 3514, 1151, 3514, 273, 446, 31, 5411, 368, 6241, 30, 4110, 1086, 17, 2679, 18, 2457, 2037, 16, 10116, 2182, 487, 4398, 13491, 1151, 3514, 273, 3511, 1768, 1763, 12, 10792, 276, 16, 1203, 16, 2154, 694, 2223, 16, 1279, 2012, 751, 18, 588, 682, 1016, 9334, 10402, 1279, 2012, 751, 18, 291, 7013, 28528, 9334, 629, 16, 783, 1350, 1769, 13491, 309, 261, 3624, 3514, 18, 588, 2885, 7675, 291, 3769, 839, 1964, 7634, 18619, 1435, 597, 5397, 1151, 3514, 18, 14653, 281, 1964, 7634, 12, 71, 3719, 288, 7734, 276, 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, 1250, 1279, 2012, 1398, 1908, 1964, 12, 5411, 9995, 1042, 276, 16, 987, 913, 682, 16, 8549, 1203, 16, 2398, 9767, 694, 2223, 2154, 694, 2223, 16, 4275, 2012, 24274, 1279, 2012, 24274, 16, 2398, 509, 787, 16, 509, 679, 13, 288, 3639, 1203, 18, 4210, 273, 1279, 2012, 24274, 18, 588, 12, 1937, 2934, 588, 4435, 3054, 2686, 5621, 3639, 1203, 18, 12320, 774, 1964, 10393, 12, 71, 1769, 7734, 509, 787, 9382, 61, 273, 1203, 18, 588, 9382, 61, 1435, 397, 1203, 18, 4098, 397, 1203, 18, 4210, 31, 3639, 509, 679, 9382, 61, 273, 374, 31, 15604, 364, 261, 474, 277, 273, 787, 31, 277, 1648, 679, 31, 277, 27245, 288, 5411, 3697, 2 ]
layeredPane.setSize(containerSize.width, containerSize.height);
layeredPane.setSize(containerSize.width, containerSize.height);
public void layoutContainer(Container c) { Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferred sizes. Otherwise, if the size of top-level window was specified then set menuBar to its preferred size and make content pane to fit into the remaining space +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); menuBar.setBounds(0, 0, maxWidth, menuBarSize.height); glassPane.setBounds(0, menuBarSize.height, maxWidth, contentPaneSize.height); contentPane.setBounds(0, menuBarSize.height, maxWidth, contentPaneSize.height); layeredPane.setSize(maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setSize(contentPaneSize.width, contentPaneSize.height); } } else { if (menuBar != null) { menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerSize.height) menuBarSize.height = containerSize.height; menuBar.setBounds(0, 0, containerSize.width, menuBarSize.height); int remainingHeight = containerSize.height - menuBarSize.height; glassPane.setBounds(0, menuBarSize.height, containerSize.width, containerSize.height - menuBarSize.height); contentPane.setBounds(0, menuBarSize.height, containerSize.width, (containerSize.height - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerSize.width, containerSize.height); contentPane.setBounds(0, 0, containerSize.width, containerSize.height); } layeredPane.setSize(containerSize.width, containerSize.height); } }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/6ddb93e378f0f5acec7d72285f3a195bd89b2a98/JRootPane.java/buggy/libjava/javax/swing/JRootPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3511, 2170, 12, 2170, 276, 13, 565, 288, 1377, 13037, 3824, 5190, 1225, 31, 1377, 13037, 1478, 1225, 273, 276, 18, 588, 1225, 12, 2011, 1769, 1377, 13037, 913, 8485, 1225, 273, 913, 8485, 18, 588, 16028, 1225, 5621, 1377, 1748, 4202, 309, 963, 434, 1760, 17, 2815, 2742, 14487, 1404, 444, 1508, 2537, 444, 4202, 913, 8485, 471, 3824, 5190, 358, 2097, 9119, 8453, 18, 4202, 5272, 16, 309, 326, 963, 434, 1760, 17, 2815, 2742, 1703, 1269, 1508, 4202, 444, 3824, 5190, 358, 2097, 9119, 963, 471, 1221, 913, 13618, 4202, 358, 4845, 1368, 326, 4463, 3476, 4202, 397, 1271, 18753, 15, 4202, 571, 225, 804, 4576, 329, 8485, 1171, 571, 4202, 571, 225, 397, 1271, 15392, 15, 571, 4202, 571, 225, 571, 3824, 5190, 5375, 571, 571, 4202, 571, 225, 397, 1271, 15392, 15, 571, 4202, 571, 225, 397, 1271, 15392, 15, 571, 4202, 571, 225, 571, 1745, 8485, 9079, 571, 571, 4202, 571, 225, 571, 12900, 571, 571, 4202, 571, 225, 571, 12900, 571, 571, 4202, 571, 225, 571, 12900, 571, 571, 4202, 571, 225, 397, 1271, 15392, 15, 571, 4202, 397, 1271, 18753, 15, 1377, 1195, 1377, 309, 261, 3782, 1225, 18, 2819, 422, 374, 597, 1478, 1225, 18, 4210, 422, 374, 13, 3639, 288, 202, 225, 309, 261, 5414, 5190, 480, 446, 13, 202, 565, 288, 202, 1377, 509, 17681, 31, 202, 1377, 3824, 5190, 1225, 273, 3824, 5190, 18, 588, 16028, 1225, 5621, 202, 1377, 17681, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3511, 2170, 12, 2170, 276, 13, 565, 288, 1377, 13037, 3824, 5190, 1225, 31, 1377, 13037, 1478, 1225, 273, 276, 18, 588, 1225, 12, 2011, 1769, 1377, 13037, 913, 8485, 1225, 273, 913, 8485, 18, 588, 16028, 1225, 5621, 1377, 1748, 4202, 309, 963, 434, 1760, 17, 2815, 2742, 14487, 1404, 444, 1508, 2537, 444, 4202, 913, 8485, 471, 3824, 5190, 358, 2097, 9119, 8453, 18, 4202, 5272, 16, 309, 326, 963, 434, 1760, 17, 2815, 2742, 1703, 1269, 1508, 4202, 444, 3824, 5190, 358, 2097, 9119, 963, 471, 1221, 913, 13618, 4202, 358, 4845, 1368, 326, 4463, 3476, 4202, 397, 1271, 18753, 15, 4202, 571, 225, 804, 4576, 329, 8485, 1171, 571, 4202, 571, 225, 2 ]
presentationSite .setState(IStackPresentationSite.STATE_RESTORED);
Rectangle bounds = Geometry.toDisplay(getParent(), getPresentation().getControl().getBounds()); float xpct = (initialLocation.x - bounds.x) / (float)(bounds.width); float ypct = (initialLocation.y - bounds.y) / (float)(bounds.height); presentationSite.setState(IStackPresentationSite.STATE_RESTORED); bounds = Geometry.toDisplay(getParent(), getPresentation().getControl().getBounds()); initialLocation.x = (int) (bounds.x + (xpct * bounds.width)); initialLocation.y = (int) (bounds.y + (ypct * bounds.height));
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED); } DragUtil.performDrag(PartStack.this, Geometry .toDisplay(getParent(), getPresentation().getControl() .getBounds()), initialLocation, !keyboard); } } else { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { presentationSite .setState(IStackPresentationSite.STATE_RESTORED); } DragUtil.performDrag(pane, Geometry.toDisplay(getParent(), getPresentation().getControl().getBounds()), initialLocation, !keyboard); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0416003558d859c87f8adb63704c8017af7e68ba/PartStack.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13618, 11728, 1685, 12, 3744, 1988, 13618, 16, 4686, 2172, 2735, 16, 5411, 1250, 16263, 13, 288, 3639, 309, 261, 29009, 422, 446, 13, 288, 5411, 309, 261, 4169, 7607, 3899, 10756, 288, 7734, 309, 261, 10364, 4956, 18, 588, 1119, 1435, 422, 467, 2624, 6351, 367, 4956, 18, 7998, 67, 6694, 3445, 24131, 13, 288, 10792, 12947, 12, 45, 2624, 6351, 367, 4956, 18, 7998, 67, 12030, 51, 5879, 1769, 7734, 289, 10792, 28425, 1304, 18, 16092, 11728, 12, 1988, 2624, 18, 2211, 16, 8344, 13491, 263, 869, 4236, 12, 588, 3054, 9334, 1689, 1581, 367, 7675, 588, 3367, 1435, 27573, 263, 588, 5694, 1435, 3631, 2172, 2735, 16, 401, 31486, 1769, 5411, 289, 3639, 289, 469, 288, 13491, 309, 261, 10364, 4956, 18, 588, 1119, 1435, 422, 467, 2624, 6351, 367, 4956, 18, 7998, 67, 6694, 3445, 24131, 13, 288, 7734, 22525, 4956, 13491, 263, 542, 1119, 12, 45, 2624, 6351, 367, 4956, 18, 7998, 67, 12030, 51, 5879, 1769, 5411, 289, 7734, 28425, 1304, 18, 16092, 11728, 12, 29009, 16, 8344, 18, 869, 4236, 12, 588, 3054, 9334, 10792, 1689, 1581, 367, 7675, 588, 3367, 7675, 588, 5694, 1435, 3631, 10792, 2172, 2735, 16, 401, 31486, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13618, 11728, 1685, 12, 3744, 1988, 13618, 16, 4686, 2172, 2735, 16, 5411, 1250, 16263, 13, 288, 3639, 309, 261, 29009, 422, 446, 13, 288, 5411, 309, 261, 4169, 7607, 3899, 10756, 288, 7734, 309, 261, 10364, 4956, 18, 588, 1119, 1435, 422, 467, 2624, 6351, 367, 4956, 18, 7998, 67, 6694, 3445, 24131, 13, 288, 10792, 12947, 12, 45, 2624, 6351, 367, 4956, 18, 7998, 67, 12030, 51, 5879, 1769, 7734, 289, 10792, 28425, 1304, 18, 16092, 11728, 12, 1988, 2624, 18, 2211, 16, 8344, 13491, 263, 869, 4236, 12, 588, 3054, 9334, 1689, 1581, 367, 7675, 588, 3367, 1435, 27573, 263, 588, 5694, 1435, 3631, 2172, 2735, 16, 401, 31486, 1769, 5411, 289, 3639, 2 ]
public String getIssueURL(){
public String getIssueURL() {
public String getIssueURL(){ return taskURL; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c76de80eb654f1714b3f46acb04927174e315803/TaskInputDialog.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskInputDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 336, 12956, 1785, 1435, 95, 202, 202, 2463, 1562, 1785, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 12956, 1785, 1435, 95, 202, 202, 2463, 1562, 1785, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Thread.sleep(100);
public final synchronized void quit() { _log.log(this + ".quit() called"); beforeQuit(); _slaveExited = false;// Utilities.showDebug("quit() called"); // put exit into another thread to allow this RMI call to return normally. Thread t = new Thread(_quitSlaveThreadName) { public void run() { try { // wait for parent RMI calling thread to exit synchronized(_slaveJVMLock) { while (! _slaveExited) { _log.log("Waiting for " + AbstractSlaveJVM.this + ".quit() to exit"); _slaveJVMLock.wait(); } } Thread.sleep(100); // This is kluge to allow the parent RMI calling thread to exit shutdown(); } catch (Throwable th) { _log.log(this + ".quit() failed!"); quitFailed(th); } } }; t.start(); _log.log(this + ".quit() RMI call exited"); synchronized(_slaveJVMLock) { _slaveExited = true; _slaveJVMLock.notify(); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e69a4c60c625d52f9ba6a18669f0f6846846e463/AbstractSlaveJVM.java/clean/drjava/src/edu/rice/cs/util/newjvm/AbstractSlaveJVM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 3852, 918, 9706, 1435, 288, 565, 389, 1330, 18, 1330, 12, 2211, 397, 3552, 27176, 1435, 2566, 8863, 565, 1865, 25365, 5621, 3639, 389, 27352, 6767, 329, 273, 629, 31, 759, 565, 26703, 18, 4500, 2829, 2932, 27176, 1435, 2566, 8863, 565, 368, 1378, 2427, 1368, 4042, 2650, 358, 1699, 333, 534, 7492, 745, 358, 327, 15849, 18, 565, 4884, 268, 273, 394, 4884, 24899, 27176, 20302, 3830, 461, 13, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 1850, 368, 2529, 364, 982, 534, 7492, 4440, 2650, 358, 2427, 6647, 3852, 24899, 27352, 46, 58, 1495, 975, 13, 288, 2398, 1323, 16051, 389, 27352, 6767, 329, 13, 288, 2868, 389, 1330, 18, 1330, 2932, 15946, 364, 315, 397, 4115, 20302, 46, 7397, 18, 2211, 397, 3552, 27176, 1435, 358, 2427, 8863, 2868, 389, 27352, 46, 58, 1495, 975, 18, 7048, 5621, 2398, 289, 1850, 289, 6647, 368, 1220, 353, 15290, 21627, 358, 1699, 326, 982, 534, 7492, 4440, 2650, 358, 2427, 1850, 5731, 5621, 3639, 289, 3639, 1044, 261, 15155, 286, 13, 288, 6647, 389, 1330, 18, 1330, 12, 2211, 397, 3552, 27176, 1435, 2535, 4442, 1769, 1850, 9706, 2925, 12, 451, 1769, 540, 289, 1377, 289, 565, 289, 31, 565, 268, 18, 1937, 5621, 565, 389, 1330, 18, 1330, 12, 2211, 397, 3552, 27176, 1435, 534, 7492, 745, 21590, 8863, 565, 3852, 24899, 27352, 46, 58, 1495, 975, 13, 288, 4202, 389, 27352, 6767, 329, 273, 638, 31, 4202, 389, 27352, 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, 727, 3852, 918, 9706, 1435, 288, 565, 389, 1330, 18, 1330, 12, 2211, 397, 3552, 27176, 1435, 2566, 8863, 565, 1865, 25365, 5621, 3639, 389, 27352, 6767, 329, 273, 629, 31, 759, 565, 26703, 18, 4500, 2829, 2932, 27176, 1435, 2566, 8863, 565, 368, 1378, 2427, 1368, 4042, 2650, 358, 1699, 333, 534, 7492, 745, 358, 327, 15849, 18, 565, 4884, 268, 273, 394, 4884, 24899, 27176, 20302, 3830, 461, 13, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 1850, 368, 2529, 364, 982, 534, 7492, 4440, 2650, 358, 2427, 6647, 3852, 24899, 27352, 46, 58, 1495, 975, 13, 288, 2398, 1323, 16051, 389, 27352, 6767, 329, 13, 288, 2868, 389, 1330, 18, 1330, 2932, 2 ]
v.stopTime = System.currentTimeMillis();
v.stopTime = J3dClock.currentTimeMillis();
synchronized void runMonitor(int action, UnorderList stateThreadList, UnorderList renderThreadList, UnorderList requestRenderThreadList, J3dThread nthread) { switch (action) { case RUN_THREADS: int currentStateThread = 0; int currentRenderThread = 0; int currentRequestRenderThread = 0; View view; boolean done; J3dThreadData thread; J3dThreadData renderThreads[] = (J3dThreadData []) renderThreadList.toArray(false); J3dThreadData stateThreads[] = (J3dThreadData []) stateThreadList.toArray(false); J3dThreadData requestRenderThreads[] = (J3dThreadData []) requestRenderThreadList.toArray(false); int renderThreadSize = renderThreadList.arraySize(); int stateThreadSize = stateThreadList.arraySize(); int requestRenderThreadSize = requestRenderThreadList.arraySize(); done = false; //lock all the needed geometry and image component View[] allView = (View []) views.toArray(false); View currentV; int i; if (lockGeometry) { for( i = views.arraySize()-1; i >= 0; i--) { currentV = allView[i]; currentV.renderBin.lockGeometry(); } } while (!done) { // First try a RenderThread while (!renderWaiting && currentRenderThread != renderThreadSize) { thread = renderThreads[currentRenderThread++]; if (!thread.needsRun) { continue; } if ((thread.threadOpts & J3dThreadData.START_TIMER) != 0) { view = (View)((Object[])thread.threadArgs)[2]; view.frameNumber++; view.startTime = System.currentTimeMillis(); } renderPending++; if (cpuLimit == 1) { thread.thread.args = (Object[])thread.threadArgs; thread.thread.doWork(currentTime); } else { threadPending++; thread.thread.runMonitor(J3dThread.RUN, currentTime, (Object[])thread.threadArgs); } if ((thread.threadOpts & J3dThreadData.STOP_TIMER) != 0) { view = (View)((Object[])thread.threadArgs)[3]; timestampUpdateList.add(view); } if ((thread.threadOpts & J3dThreadData.LAST_STOP_TIMER) != 0) { // release lock on locked geometry and image component for( i = 0; i < views.arraySize(); i++) { currentV = allView[i]; currentV.renderBin.releaseGeometry(); } } if ((cpuLimit != 1) && (thread.threadOpts & J3dThreadData.WAIT_ALL_THREADS) != 0) { renderWaiting = true; } if ((cpuLimit != 1) && (cpuLimit <= threadPending)) { state = WAITING_FOR_CPU; try { wait(); } catch (InterruptedException e) { System.err.println(e); } state = RUNNING; } } // Now try state threads while (!stateWaiting && currentStateThread != stateThreadSize) { thread = stateThreads[currentStateThread++]; if (!thread.needsRun) { continue; } statePending++; if (cpuLimit == 1) { thread.thread.args = (Object[])thread.threadArgs; thread.thread.doWork(currentTime); } else { threadPending++; thread.thread.runMonitor(J3dThread.RUN, currentTime, (Object[])thread.threadArgs); } if (cpuLimit != 1 && (thread.threadOpts & J3dThreadData.WAIT_ALL_THREADS) != 0) { stateWaiting = true; } if ((cpuLimit != 1) && (cpuLimit <= threadPending)) { // Fix bug 4686766 - always allow // renderer thread to continue if not finish // geomLock can release for Behavior thread to // continue. if (currentRenderThread == renderThreadSize) { state = WAITING_FOR_CPU; try { wait(); } catch (InterruptedException e) { System.err.println(e); } state = RUNNING; } else { // Run renderer thread next time break; } } } // Now try requestRender threads if (!renderWaiting && (currentRenderThread == renderThreadSize)) { currentRequestRenderThread = 0; while (!renderWaiting && (currentRequestRenderThread != requestRenderThreadSize)) { thread = requestRenderThreads[currentRequestRenderThread++]; renderPending++; if (cpuLimit == 1) { thread.thread.args = (Object[])thread.threadArgs; thread.thread.doWork(currentTime); } else { threadPending++; thread.thread.runMonitor(J3dThread.RUN, currentTime, (Object[])thread.threadArgs); } if (cpuLimit != 1 && (thread.threadOpts & J3dThreadData.WAIT_ALL_THREADS) != 0) { renderWaiting = true; } if (cpuLimit != 1 && cpuLimit <= threadPending) { state = WAITING_FOR_CPU; try { wait(); } catch (InterruptedException e) { System.err.println(e); } state = RUNNING; } } } if (cpuLimit != 1) { if ((renderWaiting && (currentStateThread == stateThreadSize)) || (stateWaiting && currentRenderThread == renderThreadSize) || (renderWaiting && stateWaiting)) { if (!requestRenderWorkToDo) { state = WAITING_FOR_THREADS; try { wait(); } catch (InterruptedException e) { System.err.println(e); } state = RUNNING; } requestRenderWorkToDo = false; } } if ((currentStateThread == stateThreadSize) && (currentRenderThread == renderThreadSize) && (currentRequestRenderThread == requestRenderThreadSize) && (threadPending == 0)) { for (int k=timestampUpdateList.size()-1; k >=0; k--) { View v = (View) timestampUpdateList.get(k); v.setFrameTimingValues(); v.universe.behaviorStructure.incElapsedFrames(); } timestampUpdateList.clear(); updateMirrorObjects(); done = true; } } break; case THREAD_DONE: if (state != WAITING_FOR_RENDERER_CLEANUP) { threadPending--; if (nthread.type == J3dThread.RENDER_THREAD) { View v = (View) nthread.args[3]; if (v != null) { // STOP_TIMER v.stopTime = System.currentTimeMillis(); } if (--renderPending == 0) { renderWaiting = false; } } else { if (--statePending == 0) { stateWaiting = false; } } if (state == WAITING_FOR_CPU || state == WAITING_FOR_THREADS) { notify(); } } else { notify(); state = RUNNING; } break; case WAIT_FOR_ALL: while (threadPending != 0) { state = WAITING_FOR_THREADS; try { wait(); } catch (InterruptedException e) { System.err.println(e); } } break; case CHECK_FOR_WORK: if (!workToDo) { state = SLEEPING; try { wait(); } catch (InterruptedException e) { System.err.println(e); } state = RUNNING; } workToDo = false; break; case SET_WORK: workToDo = true; if (state == SLEEPING) { notify(); } break; case SET_WORK_FOR_REQUEST_RENDERER: requestRenderWorkToDo = true; workToDo = true; if (state == WAITING_FOR_CPU || state == WAITING_FOR_THREADS || state == SLEEPING) { notify(); } break; case RUN_RENDERER_CLEANUP: nthread.runMonitor(J3dThread.RUN, currentTime, rendererCleanupArgs); state = WAITING_FOR_RENDERER_CLEANUP; try { wait(); } catch (InterruptedException e) { System.err.println(e); } break; case SLEEP: state = SLEEPING; try { wait(sleepTime); } catch (InterruptedException e) { System.err.println(e); } } }
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/c10acf66a6dfced63afaa0f4d572390468873c28/MasterControl.java/buggy/src/classes/share/javax/media/j3d/MasterControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1086, 7187, 12, 474, 1301, 16, 4405, 1351, 1019, 682, 919, 3830, 682, 16, 4405, 1351, 1019, 682, 1743, 3830, 682, 16, 6862, 1351, 1019, 682, 590, 3420, 3830, 682, 16, 6862, 804, 23, 72, 3830, 290, 5930, 13, 288, 3639, 1620, 261, 1128, 13, 288, 202, 3593, 15484, 67, 21730, 55, 30, 202, 565, 509, 17773, 3830, 273, 374, 31, 202, 565, 509, 783, 3420, 3830, 273, 374, 31, 202, 565, 509, 783, 691, 3420, 3830, 273, 374, 31, 202, 565, 4441, 1476, 31, 202, 565, 1250, 2731, 31, 202, 565, 804, 23, 72, 3830, 751, 2650, 31, 202, 565, 804, 23, 72, 3830, 751, 1743, 13233, 8526, 273, 261, 46, 23, 72, 3830, 751, 5378, 13, 1082, 11794, 1743, 3830, 682, 18, 31447, 12, 5743, 1769, 202, 565, 804, 23, 72, 3830, 751, 919, 13233, 8526, 273, 261, 46, 23, 72, 3830, 751, 5378, 13, 1875, 18701, 919, 3830, 682, 18, 31447, 12, 5743, 1769, 202, 565, 804, 23, 72, 3830, 751, 590, 3420, 13233, 8526, 273, 261, 46, 23, 72, 3830, 751, 5378, 13, 1875, 15604, 590, 3420, 3830, 682, 18, 31447, 12, 5743, 1769, 202, 565, 509, 1743, 3830, 1225, 273, 1743, 3830, 682, 18, 1126, 1225, 5621, 202, 565, 509, 919, 3830, 1225, 273, 919, 3830, 682, 18, 1126, 1225, 5621, 202, 565, 509, 590, 3420, 3830, 1225, 273, 590, 3420, 3830, 682, 18, 1126, 1225, 5621, 202, 565, 2731, 273, 629, 31, 202, 565, 368, 739, 777, 326, 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, 3852, 918, 1086, 7187, 12, 474, 1301, 16, 4405, 1351, 1019, 682, 919, 3830, 682, 16, 4405, 1351, 1019, 682, 1743, 3830, 682, 16, 6862, 1351, 1019, 682, 590, 3420, 3830, 682, 16, 6862, 804, 23, 72, 3830, 290, 5930, 13, 288, 3639, 1620, 261, 1128, 13, 288, 202, 3593, 15484, 67, 21730, 55, 30, 202, 565, 509, 17773, 3830, 273, 374, 31, 202, 565, 509, 783, 3420, 3830, 273, 374, 31, 202, 565, 509, 783, 691, 3420, 3830, 273, 374, 31, 202, 565, 4441, 1476, 31, 202, 565, 1250, 2731, 31, 202, 565, 804, 23, 72, 3830, 751, 2650, 31, 202, 565, 804, 23, 72, 3830, 751, 1743, 13233, 8526, 273, 261, 46, 23, 72, 3830, 751, 2 ]
strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(),
strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(), (jComboBoxVidPla6tane.getSelectedIndex() + 1),
private void createDocument(int id_df,int typeDoc, int connection) { switch(typeDoc) { case FAKTURI : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent();; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); // strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case FAKTURA_DANACHNA : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent();; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); // strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case FAKTURA_OPROSTENA : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent();; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); // strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case PROFORMA_FAKTURA : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent();; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case OFERTA : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent();; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case BRAK : { int contragent_in = 0; int contragent_out = 0; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case PROTOKOL_LIPSA : { int contragent_in = 0; int contragent_out = 0; int obekt_in = 0; int obekt_out = 0; int facturaConnection=0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String dateDeliver = dateManip.convertDate("01.01.2000"); String strDate; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case STOKOVA_RAZPISKA : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent(); int obekt_in = 0; int obekt_out = myParent.getID_Obekt(); int facturaConnection= connection; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String strDate; strDate = String.valueOf(jXDateDeliver.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getYear()+1900); String dateDeliver = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case KONSGNACIONEN_PROTOKOL : { int contragent_in = 0; int contragent_out = myParent.getID_Contragent(); int obekt_in = 0; int obekt_out = myParent.getID_Obekt(); int facturaConnection= connection; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String strDate; strDate = String.valueOf(jXDateDeliver.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getYear()+1900); String dateDeliver = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case NAREZDANE_ZA_PREHVYRQNE: { int contragent_in = 0; int contragent_out = 0; int obekt_in = 0; int obekt_out = 0; int facturaConnection= connection; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorageFROM = myParent.getStorageOUTProduct(); int docFacadeStorageTO = Integer.parseInt(jTextFieldStorageTO.getText()); int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String strDate; strDate = String.valueOf(jXDateDeliver.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getYear()+1900); String dateDeliver = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorageFROM,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case PREDAVATELNA_RAZPISKA : { break; } case PRIEMATELNA_RAZPISKA : { int contragent_in = myParent.getID_Contragent();; int contragent_out = 0; int obekt_in = 0; int obekt_out = 0; int facturaConnection= 0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String strDate; strDate = String.valueOf(jXDateDeliver.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getYear()+1900); String dateDeliver = dateManip.convertDate(strDate); System.out.println("dateDeliver :"+dateDeliver); strDate = " "; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); System.out.println("payingDate :"+payingDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); System.out.println("docFacadeDate :"+docFacadeDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } case RAZPISKA_ZA_VRYSHTANE: { int contragent_in = myParent.getID_Contragent();; int contragent_out = 0; int obekt_in = 0; int obekt_out = 0; int facturaConnection= 0; int payingOrder = 0; int zaqvkaConnection = 0; int docFacadeLevel = myParent.getDocFacadeLevel(); int docFacadeStorage = myParent.getStorageOUTProduct(); int docFacadeStorageTO = 0; int docFacadeType = myParent.getDocFacadeType(); double docFacadeTotal = Double.parseDouble(jLabelAllTotal.getText()); double docFacadeAllDDS = Double.parseDouble(jLabelAllDDS.getText()); String docFacadeCondition = "0"; String docFacadeCommnet = jTextFieldComment.getText(); int userEdit = myParent.getUserEditFortm(); int userLastEdit = userEdit; if(myParent.getUserEditFortm()!=0) userLastEdit = myParent.getUserEditFortm(); imakante.com.dateManipulation dateManip = new imakante.com.dateManipulation(); String strDate; strDate = String.valueOf(jXDateDeliver.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDeliver.getDate().getYear()+1900); String dateDeliver = dateManip.convertDate(strDate); System.out.println("dateDeliver :"+dateDeliver); strDate = " "; strDate = String.valueOf(jXDatePay.getDate().getDate()); strDate += "/" + String.valueOf(jXDatePay.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDatePay.getDate().getYear()+1900); String payingDate = dateManip.convertDate(strDate); System.out.println("payingDate :"+payingDate); strDate = " "; strDate = String.valueOf(jXDateDocument.getDate().getDate()); strDate += "/" + String.valueOf(jXDateDocument.getDate().getMonth()+1); strDate += "/" + String.valueOf(jXDateDocument.getDate().getYear()+1900); String docFacadeDate = dateManip.convertDate(strDate); System.out.println("docFacadeDate :"+docFacadeDate); long numberDoc = Long.parseLong(myParent.getNumberDocFacade()); myParent.getCountriesT().updateRow(id_df,contragent_out,contragent_in,obekt_out, obekt_in,myParent.getID_Distributor(),myParent.getID_Deliver(),jComboBoxVidPla6tane.getSelectedIndex(), numberDoc,userEdit,userLastEdit, facturaConnection,payingOrder,zaqvkaConnection,docFacadeLevel,docFacadeStorage,docFacadeType, docFacadeTotal,docFacadeAllDDS,docFacadeCondition,docFacadeDate,docFacadeCommnet,dateDeliver,payingDate,1,docFacadeStorageTO); break; } } if(myParent.getDocFacadeType()==NAREZDANE_ZA_PREHVYRQNE) { emptyPreservation(isNew); } else if(myParent.getDocFacadeType()==PRIEMATELNA_RAZPISKA || myParent.getDocFacadeType()==RAZPISKA_ZA_VRYSHTANE ) { emptyReturnet(isNew); } else if(myParent.getDocFacadeType()!=PROFORMA_FAKTURA && myParent.getDocFacadeType()!=OFERTA) emptyPreservation(isNew); isNew = false; // ve4e dokumenta ne se vodi kato "nov" myParent.refreshTable(); }
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/819e12d5887ee005a6db30d46fcc791a090c703a/aeDocumentFacade.java/clean/src/imakante/sales/aeDocumentFacade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 27569, 12, 474, 612, 67, 2180, 16, 474, 618, 1759, 16, 509, 1459, 13, 288, 3639, 1620, 12, 723, 1759, 13, 288, 5411, 648, 478, 14607, 56, 3098, 294, 5411, 288, 7734, 509, 16252, 5629, 67, 267, 273, 374, 31, 7734, 509, 16252, 5629, 67, 659, 273, 3399, 3054, 18, 588, 734, 67, 442, 313, 5629, 5621, 31, 7734, 509, 320, 2196, 8629, 67, 267, 273, 374, 31, 7734, 509, 320, 2196, 8629, 67, 659, 273, 374, 31, 27573, 509, 5410, 21401, 1952, 33, 20, 31, 7734, 509, 8843, 310, 2448, 273, 374, 31, 7734, 509, 25001, 85, 90, 7282, 1952, 273, 374, 31, 27573, 509, 997, 12467, 2355, 273, 3399, 3054, 18, 588, 1759, 12467, 2355, 5621, 7734, 509, 997, 12467, 3245, 273, 3399, 3054, 18, 588, 3245, 5069, 4133, 5621, 7734, 509, 997, 12467, 3245, 4296, 273, 374, 31, 7734, 509, 997, 12467, 559, 273, 3399, 3054, 18, 588, 1759, 12467, 559, 5621, 7734, 1645, 997, 12467, 5269, 273, 3698, 18, 2670, 5265, 12, 78, 2224, 1595, 5269, 18, 588, 1528, 10663, 7734, 1645, 997, 12467, 1595, 40, 3948, 273, 3698, 18, 2670, 5265, 12, 78, 2224, 1595, 40, 3948, 18, 588, 1528, 10663, 27573, 509, 729, 4666, 273, 225, 3399, 3054, 18, 588, 1299, 4666, 42, 499, 81, 5621, 7734, 509, 729, 3024, 4666, 273, 729, 4666, 31, 7734, 309, 12, 4811, 3054, 18, 588, 1299, 4666, 42, 499, 81, 1435, 5, 33, 20, 13, 729, 3024, 4666, 273, 225, 3399, 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, 27569, 12, 474, 612, 67, 2180, 16, 474, 618, 1759, 16, 509, 1459, 13, 288, 3639, 1620, 12, 723, 1759, 13, 288, 5411, 648, 478, 14607, 56, 3098, 294, 5411, 288, 7734, 509, 16252, 5629, 67, 267, 273, 374, 31, 7734, 509, 16252, 5629, 67, 659, 273, 3399, 3054, 18, 588, 734, 67, 442, 313, 5629, 5621, 31, 7734, 509, 320, 2196, 8629, 67, 267, 273, 374, 31, 7734, 509, 320, 2196, 8629, 67, 659, 273, 374, 31, 27573, 509, 5410, 21401, 1952, 33, 20, 31, 7734, 509, 8843, 310, 2448, 273, 374, 31, 7734, 509, 25001, 85, 90, 7282, 1952, 273, 374, 31, 27573, 509, 997, 12467, 2355, 273, 3399, 3054, 18, 588, 1759, 12467, 2 ]
destResource.getCollection().removeMember(destResource);
destResource.getCollection().removeMember(destResource);
private int validateDestination(DavResource destResource, WebdavRequest request) throws DavException { String destHeader = request.getHeader(HEADER_DESTINATION); if (destHeader == null || "".equals(destHeader)){ return DavServletResponse.SC_BAD_REQUEST; } if (destResource.getLocator().equals(request.getRequestLocator())) { return DavServletResponse.SC_FORBIDDEN; } int status; if (destResource.exists()) { if (request.isOverwrite()) { // matching if-header required for existing resources if (!request.matchesIfHeader(destResource)) { return DavServletResponse.SC_PRECONDITION_FAILED; } else { // overwrite existing resource destResource.getCollection().removeMember(destResource); status = DavServletResponse.SC_NO_CONTENT; } } else { // cannot copy/move to an existing item, if overwrite is not forced return DavServletResponse.SC_PRECONDITION_FAILED; } } else { // destination does not exist >> copy/move can be performed status = DavServletResponse.SC_CREATED; } return status; }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/e84cea46a7876af1ac481b9723e0185e8963a1f6/AbstractWebdavServlet.java/buggy/contrib/jcr-server/server/src/java/org/apache/jackrabbit/server/AbstractWebdavServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1954, 5683, 12, 40, 842, 1420, 1570, 1420, 16, 2999, 20752, 691, 590, 13, 3639, 1216, 463, 842, 503, 288, 3639, 514, 1570, 1864, 273, 590, 18, 588, 1864, 12, 7557, 67, 29451, 1769, 3639, 309, 261, 10488, 1864, 422, 446, 747, 1408, 18, 14963, 12, 10488, 1864, 3719, 95, 5411, 327, 463, 842, 29910, 18, 2312, 67, 16234, 67, 5519, 31, 3639, 289, 3639, 309, 261, 10488, 1420, 18, 588, 5786, 7675, 14963, 12, 2293, 18, 588, 691, 5786, 1435, 3719, 288, 5411, 327, 463, 842, 29910, 18, 2312, 67, 7473, 30198, 31, 3639, 289, 3639, 509, 1267, 31, 3639, 309, 261, 10488, 1420, 18, 1808, 10756, 288, 5411, 309, 261, 2293, 18, 291, 20832, 10756, 288, 7734, 368, 3607, 309, 17, 3374, 1931, 364, 2062, 2703, 7734, 309, 16051, 2293, 18, 8436, 2047, 1864, 12, 10488, 1420, 3719, 288, 10792, 327, 463, 842, 29910, 18, 2312, 67, 3670, 22017, 67, 11965, 31, 7734, 289, 469, 288, 10792, 368, 6156, 2062, 1058, 10792, 1570, 1420, 18, 588, 2532, 7675, 4479, 4419, 12, 10488, 1420, 1769, 4766, 3639, 1267, 273, 463, 842, 29910, 18, 2312, 67, 3417, 67, 9689, 31, 7734, 289, 5411, 289, 469, 288, 7734, 368, 2780, 1610, 19, 8501, 358, 392, 2062, 761, 16, 309, 6156, 353, 486, 13852, 7734, 327, 463, 842, 29910, 18, 2312, 67, 3670, 22017, 67, 11965, 31, 5411, 289, 3639, 289, 469, 288, 5411, 368, 2929, 1552, 486, 1005, 1671, 1610, 19, 8501, 848, 506, 9591, 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, 1954, 5683, 12, 40, 842, 1420, 1570, 1420, 16, 2999, 20752, 691, 590, 13, 3639, 1216, 463, 842, 503, 288, 3639, 514, 1570, 1864, 273, 590, 18, 588, 1864, 12, 7557, 67, 29451, 1769, 3639, 309, 261, 10488, 1864, 422, 446, 747, 1408, 18, 14963, 12, 10488, 1864, 3719, 95, 5411, 327, 463, 842, 29910, 18, 2312, 67, 16234, 67, 5519, 31, 3639, 289, 3639, 309, 261, 10488, 1420, 18, 588, 5786, 7675, 14963, 12, 2293, 18, 588, 691, 5786, 1435, 3719, 288, 5411, 327, 463, 842, 29910, 18, 2312, 67, 7473, 30198, 31, 3639, 289, 3639, 509, 1267, 31, 3639, 309, 261, 10488, 1420, 18, 1808, 10756, 288, 5411, 309, 261, 2293, 18, 291, 20832, 2 ]
org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1];
IMethodInfo methodInfo = methodInfos[1];
public void test012() { try { String sourceA = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " if (true\n" + " || !b) { \n" + " System.out.println();\n" + " }\n" + " }\n" + "}"; compileAndDeploy(sourceA, "A"); org.eclipse.jdt.core.util.IClassFileReader classFileReader = org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", org.eclipse.jdt.core.util.IClassFileReader.ALL); org.eclipse.jdt.core.util.IMethodInfo[] methodInfos = classFileReader.getMethodInfos(); assertEquals("wrong size", 2, methodInfos.length); org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1]; assertEquals("wrong name", "main", new String(methodInfo.getName())); org.eclipse.jdt.core.util.ICodeAttribute codeAttribute = methodInfo.getCodeAttribute(); assertNotNull("No code attribute", codeAttribute); org.eclipse.jdt.core.util.ILineNumberAttribute lineNumberAttribute = codeAttribute.getLineNumberAttribute(); assertNotNull("No code line number attribute", lineNumberAttribute); int[][] lineNumberTable = lineNumberAttribute.getLineNumberTable(); assertEquals("wrong size", 3, lineNumberTable.length); assertEquals("wrong pc[0]", 0, lineNumberTable[0][0]); assertEquals("wrong line[0]", 3, lineNumberTable[0][1]); assertEquals("wrong pc[1]", 2, lineNumberTable[1][0]); assertEquals("wrong line[1]", 6, lineNumberTable[1][1]); assertEquals("wrong pc[2]", 8, lineNumberTable[2][0]); assertEquals("wrong line[2]", 8, lineNumberTable[2][1]); } finally { removeTempClass("A"); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3826deb7274f8b670a1e803be5c591bc377a58f3/ClassFileReaderTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1611, 22, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 18890, 82, 6, 397, 9506, 202, 6, 202, 202, 6494, 324, 273, 629, 9747, 82, 6, 397, 9506, 202, 6, 202, 202, 430, 261, 3767, 64, 82, 6, 397, 9506, 202, 6, 1082, 282, 747, 401, 70, 13, 288, 565, 202, 64, 82, 6, 397, 9506, 202, 6, 1082, 565, 202, 3163, 18, 659, 18, 8222, 5621, 64, 82, 6, 397, 9506, 202, 6, 1082, 282, 289, 64, 82, 6, 397, 9506, 202, 6, 202, 6280, 82, 6, 397, 9506, 202, 6, 1532, 31, 1082, 202, 11100, 1876, 10015, 12, 3168, 37, 16, 315, 37, 8863, 1082, 202, 3341, 18, 20416, 18, 78, 7510, 18, 3644, 18, 1367, 18, 45, 797, 812, 2514, 29728, 2514, 273, 2358, 18, 20416, 18, 78, 7510, 18, 3644, 18, 6364, 1733, 18, 2640, 1868, 797, 812, 2514, 12, 41, 2669, 67, 17229, 397, 1387, 18, 11287, 397, 315, 37, 18, 1106, 3113, 2358, 18, 20416, 18, 78, 7510, 18, 3644, 18, 1367, 18, 45, 797, 812, 2514, 18, 4685, 1769, 1082, 202, 3341, 18, 20416, 18, 78, 7510, 18, 3644, 18, 1367, 18, 45, 1305, 966, 8526, 707, 7655, 273, 29728, 2514, 18, 588, 1305, 7655, 5621, 1082, 202, 11231, 8867, 2932, 21530, 963, 3113, 576, 16, 707, 7655, 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, 1611, 22, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 18890, 82, 6, 397, 9506, 202, 6, 202, 202, 6494, 324, 273, 629, 9747, 82, 6, 397, 9506, 202, 6, 202, 202, 430, 261, 3767, 64, 82, 6, 397, 9506, 202, 6, 1082, 282, 747, 401, 70, 13, 288, 565, 202, 64, 82, 6, 397, 9506, 202, 6, 1082, 565, 202, 3163, 18, 659, 18, 8222, 5621, 64, 82, 6, 397, 9506, 202, 6, 1082, 282, 289, 64, 82, 6, 397, 9506, 202, 6, 202, 6280, 82, 2 ]
seqRenderer.getCursorPanel().setSeqSelection(start,end);
seqRenderer.getCursorPanel().setSeqSelection(start,end);
public void setSeqSelection(int start, int end){ seqRenderer.getCursorPanel().setSeqSelection(start,end); }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/d9d0489e31aded4497baec5c2432b358adc32f25/BrowserPane.java/buggy/src/org/biojava/spice/manypanel/BrowserPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6926, 6233, 12, 474, 787, 16, 509, 679, 15329, 4202, 3833, 6747, 18, 588, 6688, 5537, 7675, 542, 6926, 6233, 12, 1937, 16, 409, 1769, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6926, 6233, 12, 474, 787, 16, 509, 679, 15329, 4202, 3833, 6747, 18, 588, 6688, 5537, 7675, 542, 6926, 6233, 12, 1937, 16, 409, 1769, 6647, 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 ]
following.push(FOLLOW_retval_constraint_in_constraint1170);
following.push(FOLLOW_retval_constraint_in_constraint1199);
public PatternDescr constraint() throws RecognitionException { PatternDescr d; Token f=null; Token op=null; String lc = null; String rvc = null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:308:17: ( opt_eol f= ID opt_eol op= ('=='|'>'|'>='|'<'|'<='|'!=') opt_eol (lc= literal_constraint | rvc= retval_constraint ) opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:308:17: opt_eol f= ID opt_eol op= ('=='|'>'|'>='|'<'|'<='|'!=') opt_eol (lc= literal_constraint | rvc= retval_constraint ) opt_eol { following.push(FOLLOW_opt_eol_in_constraint1063); opt_eol(); following.pop(); f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1069); following.push(FOLLOW_opt_eol_in_constraint1071); opt_eol(); following.pop(); op=(Token)input.LT(1); if ( input.LA(1)==22||(input.LA(1)>=31 && input.LA(1)<=35) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1078); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1132); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:317:41: (lc= literal_constraint | rvc= retval_constraint ) int alt31=2; switch ( input.LA(1) ) { case STRING: alt31=1; break; case INT: alt31=1; break; case FLOAT: alt31=1; break; case -1: case EOL: case ID: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: alt31=2; break; default: NoViableAltException nvae = new NoViableAltException("317:41: (lc= literal_constraint | rvc= retval_constraint )", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:317:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1150); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:322:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1170); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); } break; } following.push(FOLLOW_opt_eol_in_constraint1191); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/59894e8a22b2183840bd9c2486282d6f4f6932d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 4954, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 514, 9109, 273, 446, 31, 3639, 514, 436, 4227, 273, 446, 31, 540, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 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, 4936, 19, 72, 1321, 18, 75, 30, 5082, 28, 30, 4033, 30, 261, 2153, 67, 30951, 284, 33, 1599, 2153, 67, 30951, 1061, 33, 7707, 18920, 16637, 1870, 16637, 34, 2218, 16637, 32, 11, 16637, 32, 2218, 16637, 5, 2218, 13, 2153, 67, 30951, 261, 17704, 33, 7158, 67, 13364, 571, 436, 4227, 33, 5221, 67, 13364, 262, 2153, 67, 30951, 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, 4936, 19, 72, 1321, 18, 75, 30, 5082, 28, 30, 4033, 30, 2153, 67, 30951, 284, 33, 1599, 2153, 67, 30951, 1061, 33, 7707, 18920, 16637, 1870, 16637, 34, 2218, 16637, 32, 11, 16637, 32, 2218, 16637, 5, 2218, 13, 2153, 67, 30951, 261, 17704, 33, 7158, 67, 13364, 571, 436, 4227, 33, 5221, 67, 13364, 262, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 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, 6830, 16198, 4954, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 514, 9109, 273, 446, 31, 3639, 514, 436, 4227, 273, 446, 31, 540, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 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, 4936, 19, 72, 1321, 18, 75, 30, 5082, 28, 30, 4033, 30, 261, 2153, 67, 30951, 284, 33, 1599, 2153, 67, 30951, 1061, 33, 7707, 18920, 16637, 1870, 16637, 34, 2218, 16637, 32, 11, 16637, 32, 2218, 16637, 2 ]
stopMeasuring(); EditorTestHelper.calmDown(500, 30000, 100); } });
} stopMeasuring(); EditorTestHelper.calmDown(500, 30000, 100); }
protected void runTest() throws CoreException { // Open both files outside the loop so as not to include // the initial time to open, just switching. IWorkbenchWindow window = openTestWindow(UIPerformanceTestSetup.PERSPECTIVE1); final IWorkbenchPage activePage = window.getActivePage(); final IFile file1 = getProject().getFile("1." + extension1); assertTrue(file1.exists()); final IFile file2 = getProject().getFile("1." + extension2); assertTrue(file2.exists()); IDE.openEditor(activePage, file1, true); IDE.openEditor(activePage, file2, true); processEvents(); EditorTestHelper.calmDown(500, 30000, 500); waitForBackgroundJobs(); exercise(new TestRunnable() { public void run() throws Exception { startMeasuring(); IDE.openEditor(activePage, file1, true); processEvents(); IDE.openEditor(activePage, file2, true); processEvents(); stopMeasuring(); EditorTestHelper.calmDown(500, 30000, 100); } }); commitMeasurements(); assertPerformance(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/516da67063ef0ab92c881ecbf51e88c207cae930/EditorSwitchTest.java/clean/tests/org.eclipse.ui.tests.performance/src/org/eclipse/ui/tests/performance/EditorSwitchTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1086, 4709, 1435, 1216, 30015, 288, 202, 202, 759, 3502, 3937, 1390, 8220, 326, 2798, 1427, 487, 486, 358, 2341, 202, 202, 759, 326, 2172, 813, 358, 1696, 16, 2537, 30882, 18, 202, 202, 45, 2421, 22144, 3829, 2742, 273, 1696, 4709, 3829, 12, 5370, 25024, 4709, 7365, 18, 3194, 23810, 1268, 5354, 21, 1769, 202, 202, 6385, 467, 2421, 22144, 1964, 2695, 1964, 273, 2742, 18, 588, 3896, 1964, 5621, 202, 202, 6385, 467, 812, 585, 21, 273, 11080, 7675, 29925, 2932, 21, 1199, 397, 2710, 21, 1769, 202, 202, 11231, 5510, 12, 768, 21, 18, 1808, 10663, 202, 202, 6385, 467, 812, 585, 22, 273, 11080, 7675, 29925, 2932, 21, 1199, 397, 2710, 22, 1769, 202, 202, 11231, 5510, 12, 768, 22, 18, 1808, 10663, 202, 202, 10385, 18, 3190, 6946, 12, 3535, 1964, 16, 585, 21, 16, 638, 1769, 202, 202, 10385, 18, 3190, 6946, 12, 3535, 1964, 16, 585, 22, 16, 638, 1769, 202, 202, 2567, 3783, 5621, 3639, 18451, 4709, 2276, 18, 771, 81, 4164, 12, 12483, 16, 890, 2787, 16, 6604, 1769, 3639, 10712, 8199, 7276, 5621, 7734, 24165, 12, 2704, 7766, 20013, 1435, 288, 5411, 1071, 918, 1086, 1435, 1216, 1185, 288, 18701, 787, 23177, 4017, 5621, 7734, 1599, 41, 18, 3190, 6946, 12, 3535, 1964, 16, 585, 21, 16, 638, 1769, 7734, 1207, 3783, 5621, 7734, 1599, 41, 18, 3190, 6946, 12, 3535, 1964, 16, 585, 22, 16, 638, 1769, 7734, 1207, 3783, 5621, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1086, 4709, 1435, 1216, 30015, 288, 202, 202, 759, 3502, 3937, 1390, 8220, 326, 2798, 1427, 487, 486, 358, 2341, 202, 202, 759, 326, 2172, 813, 358, 1696, 16, 2537, 30882, 18, 202, 202, 45, 2421, 22144, 3829, 2742, 273, 1696, 4709, 3829, 12, 5370, 25024, 4709, 7365, 18, 3194, 23810, 1268, 5354, 21, 1769, 202, 202, 6385, 467, 2421, 22144, 1964, 2695, 1964, 273, 2742, 18, 588, 3896, 1964, 5621, 202, 202, 6385, 467, 812, 585, 21, 273, 11080, 7675, 29925, 2932, 21, 1199, 397, 2710, 21, 1769, 202, 202, 11231, 5510, 12, 768, 21, 18, 1808, 10663, 202, 202, 6385, 467, 812, 585, 22, 273, 11080, 7675, 29925, 2932, 21, 1199, 397, 2710, 2 ]
return getClass().getName() + "[index=" + currentPosition + ", errorIndex=" + errorIndex + "]"; }
return getClass().getName() + "[index=" + currentPosition + ", errorIndex=" + errorIndex + "]"; }
public String toString() { return getClass().getName() + "[index=" + currentPosition //$NON-NLS-1$ + ", errorIndex=" + errorIndex + "]"; //$NON-NLS-1$ //$NON-NLS-2$ }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/019def355790934e1681619028e65dda09efed65/ParsePosition.java/buggy/modules/text/src/main/java/java/text/ParsePosition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 2900, 7675, 17994, 1435, 397, 5158, 1615, 1546, 397, 22356, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 15, 3104, 555, 1016, 1546, 397, 555, 1016, 397, 9870, 31, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 2900, 7675, 17994, 1435, 397, 5158, 1615, 1546, 397, 22356, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 15, 3104, 555, 1016, 1546, 397, 555, 1016, 397, 9870, 31, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 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 ]
} else if (critName.substring(0,4).equals("(IS)")) {
} else if (critName.startsWith("(IS)")) {
private void parseCrits(Mech mech, int loc) throws EntityLoadingException { // check for removed arm actuators if (!(mech instanceof QuadMech)) { if (loc == Mech.LOC_LARM || loc == Mech.LOC_RARM) { if (!critData[loc][3][0].equals("Hand Actuator")) { mech.setCritical(loc, 3, null); } if (!critData[loc][2][0].equals("Lower Arm Actuator")) { mech.setCritical(loc, 2, null); } } } // go thru file, add weapons for (int i = 0; i < mech.getNumberOfCriticals(loc); i++) { // if the slot's full already, skip it. if (mech.getCritical(loc, i) != null) { continue; } // parse out and add the critical String critName = critData[loc][i][0]; boolean rearMounted = true; if (critData[loc][i][1] == null || !isRearMounted[Integer.parseInt(critData[loc][i][1])]) { rearMounted = false; } boolean split = true; if (critData[loc][i][1] == null || !isSplit[Integer.parseInt(critData[loc][i][1])]) { split = false; } if (critName.indexOf("Engine") != -1) { mech.setCritical(loc,i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE)); continue; } if (critName.endsWith("[LRM]") || critName.endsWith("[SRM]")) { // This is a lame kludge for The Drawing Board, which // identifies which type of missle weapon an // Artemis IV system goes with. critName = critName.substring(0,14); } if (critName.endsWith("- Artemis IV")) { // Ugh, another lame kludge to allow for loading of // The Drawing Board's specially marked Artemis IV // missle ammo. The only real game difference is // c-bill cost, which we don't care about anyway. critName = critName.substring(0,critName.indexOf(" - Artemis IV")); } if (critName.endsWith("- Narc")) { // Yet another lame kludge to allow for loading of // The Drawing Board's specially marked Narc // missle ammo. critName = critName.substring(0,critName.indexOf(" - Narc")); } try { EquipmentType etype = EquipmentType.get(critName); if (etype == null) { String hashPrefix; if (critName.substring(0,3).equals("(C)")) { //equipment specifically marked as clan hashPrefix = "Clan "; critName = critName.substring(4); } else if (critName.substring(0,4).equals("(IS)")) { //equipment specifically marked as inner sphere hashPrefix = "IS "; critName = critName.substring(5); } else if (mech.isClan()) { //assume equipment is clan because mech is clan hashPrefix = "Clan "; } else { //assume equipment is inner sphere hashPrefix = "IS "; } etype = EquipmentType.get(hashPrefix + critName); } if (etype != null) { if (etype.isSpreadable()) { // do we already have one of these? Key on Type Mounted m = (Mounted)hSharedEquip.get(etype); if (m != null) { // use the existing one mech.addCritical(loc, new CriticalSlot(CriticalSlot.TYPE_EQUIPMENT, mech.getEquipmentNum(m), etype.isHittable())); continue; } else { m = mech.addEquipment(etype, loc, rearMounted); hSharedEquip.put(etype, m); } } else if (split) { // do we already have this one in this or an outer location? Mounted m = null; boolean bFound = false; for (int x = 0, n = vSplitWeapons.size(); x < n; x++) { m = (Mounted)vSplitWeapons.elementAt(x); int nLoc = m.getLocation(); if ((nLoc == loc || loc == Mech.getInnerLocation(nLoc)) && m.getType() == etype) { bFound = true; break; } } if (bFound) { m.setFoundCrits(m.getFoundCrits() + 1); if (m.getFoundCrits() >= etype.getCriticals(mech)) { vSplitWeapons.removeElement(m); } // give the most restrictive location for arcs m.setLocation(Mech.mostRestrictiveLoc(loc, m.getLocation())); } else { // make a new one m = new Mounted(mech, etype); m.setSplit(true); m.setFoundCrits(1); mech.addEquipment(m, loc, rearMounted); vSplitWeapons.addElement(m); } mech.addCritical(loc, new CriticalSlot(CriticalSlot.TYPE_EQUIPMENT, mech.getEquipmentNum(m), etype.isHittable())); } else { mech.addEquipment(etype, loc, rearMounted); } } else { if (!critName.equals("Empty")) { // Can't load this piece of equipment! mech.addFailedEquipment(critName); } } } catch (LocationFullException ex) { throw new EntityLoadingException(ex.getMessage()); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/bdb49c3d033847e36b70eee2ca45a5249edce866/TdbFile.java/clean/megamek/src/megamek/common/loaders/TdbFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 39, 583, 87, 12, 4667, 343, 1791, 343, 16, 509, 1515, 13, 1216, 3887, 10515, 503, 288, 3639, 368, 866, 364, 3723, 23563, 1328, 89, 3062, 3639, 309, 16051, 12, 3501, 343, 1276, 27258, 4667, 343, 3719, 288, 5411, 309, 261, 1829, 422, 7499, 343, 18, 29450, 67, 48, 26120, 747, 1515, 422, 7499, 343, 18, 29450, 67, 54, 26120, 13, 288, 7734, 309, 16051, 27826, 751, 63, 1829, 6362, 23, 6362, 20, 8009, 14963, 2932, 1144, 4603, 28764, 6, 3719, 288, 10792, 1791, 343, 18, 542, 30286, 12, 1829, 16, 890, 16, 446, 1769, 7734, 289, 7734, 309, 16051, 27826, 751, 63, 1829, 6362, 22, 6362, 20, 8009, 14963, 2932, 4070, 1201, 81, 4603, 28764, 6, 3719, 288, 10792, 1791, 343, 18, 542, 30286, 12, 1829, 16, 576, 16, 446, 1769, 7734, 289, 5411, 289, 3639, 289, 7734, 368, 1960, 286, 8653, 585, 16, 527, 732, 438, 7008, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1791, 343, 18, 588, 9226, 39, 583, 335, 1031, 12, 1829, 1769, 277, 27245, 288, 5411, 368, 309, 326, 4694, 1807, 1983, 1818, 16, 2488, 518, 18, 5411, 309, 261, 3501, 343, 18, 588, 30286, 12, 1829, 16, 277, 13, 480, 446, 13, 288, 7734, 1324, 31, 5411, 289, 13491, 368, 1109, 596, 471, 527, 326, 11239, 5411, 514, 7921, 461, 273, 7921, 751, 63, 1829, 6362, 77, 6362, 20, 15533, 5411, 1250, 283, 297, 8725, 329, 273, 638, 31, 5411, 309, 261, 27826, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 39, 583, 87, 12, 4667, 343, 1791, 343, 16, 509, 1515, 13, 1216, 3887, 10515, 503, 288, 3639, 368, 866, 364, 3723, 23563, 1328, 89, 3062, 3639, 309, 16051, 12, 3501, 343, 1276, 27258, 4667, 343, 3719, 288, 5411, 309, 261, 1829, 422, 7499, 343, 18, 29450, 67, 48, 26120, 747, 1515, 422, 7499, 343, 18, 29450, 67, 54, 26120, 13, 288, 7734, 309, 16051, 27826, 751, 63, 1829, 6362, 23, 6362, 20, 8009, 14963, 2932, 1144, 4603, 28764, 6, 3719, 288, 10792, 1791, 343, 18, 542, 30286, 12, 1829, 16, 890, 16, 446, 1769, 7734, 289, 7734, 309, 16051, 27826, 751, 63, 1829, 6362, 22, 6362, 20, 8009, 14963, 2932, 4070, 1201, 81, 4603, 2 ]
m_assertEnabled = flag;
m_assertEnabled= flag;
public void setEnableAssert(boolean flag) { m_assertEnabled = flag; }
50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 8317, 8213, 12, 6494, 2982, 13, 288, 565, 312, 67, 11231, 1526, 33, 2982, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 444, 8317, 8213, 12, 6494, 2982, 13, 288, 565, 312, 67, 11231, 1526, 33, 2982, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName); while (entity.parentEntity() != null) { entity = entity.parentEntity(); } entityName = entity.name(); Long pk = getNextPkValueForEntity(entityName); return new NSDictionary(new Object[] { pk}, new Object[] { "id"});
return primaryKeyDictionary(entityName);
public static NSDictionary primaryKeyDictionary(EOEnterpriseObject eo) { String entityName = eo.entityName(); EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName); while (entity.parentEntity() != null) { entity = entity.parentEntity(); } entityName = entity.name(); Long pk = getNextPkValueForEntity(entityName); return new NSDictionary(new Object[] { pk}, new Object[] { "id"}); }
46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/5845cd8e88765c0c123df4fb37ebb61684ecbca0/ERXLongPrimaryKeyFactory.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXLongPrimaryKeyFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 423, 9903, 3192, 8841, 10905, 12, 41, 51, 30699, 921, 425, 83, 13, 288, 3639, 514, 14868, 273, 425, 83, 18, 1096, 461, 5621, 3639, 512, 51, 1943, 1522, 273, 512, 51, 1488, 1114, 18, 1886, 1114, 7675, 1096, 7604, 12, 1096, 461, 1769, 3639, 1323, 261, 1096, 18, 2938, 1943, 1435, 480, 446, 13, 288, 5411, 1522, 273, 1522, 18, 2938, 1943, 5621, 3639, 289, 3639, 14868, 273, 1522, 18, 529, 5621, 3639, 3407, 2365, 273, 6927, 7789, 620, 1290, 1943, 12, 1096, 461, 1769, 3639, 327, 394, 423, 9903, 3192, 12, 2704, 1033, 8526, 288, 2365, 5779, 394, 1033, 8526, 288, 315, 350, 6, 22938, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 423, 9903, 3192, 8841, 10905, 12, 41, 51, 30699, 921, 425, 83, 13, 288, 3639, 514, 14868, 273, 425, 83, 18, 1096, 461, 5621, 3639, 512, 51, 1943, 1522, 273, 512, 51, 1488, 1114, 18, 1886, 1114, 7675, 1096, 7604, 12, 1096, 461, 1769, 3639, 1323, 261, 1096, 18, 2938, 1943, 1435, 480, 446, 13, 288, 5411, 1522, 273, 1522, 18, 2938, 1943, 5621, 3639, 289, 3639, 14868, 273, 1522, 18, 529, 5621, 3639, 3407, 2365, 273, 6927, 7789, 620, 1290, 1943, 12, 1096, 461, 1769, 3639, 327, 394, 423, 9903, 3192, 12, 2704, 1033, 8526, 288, 2365, 5779, 394, 1033, 8526, 288, 315, 350, 6, 22938, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100 ]
while(line.length() > 0 && line.charAt(0) == ' ')
while((line.length() > 0) && (line.charAt(0) == ' '))
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return false; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.getNodeUpdater().Update(); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit(); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && n.directTMCI == this) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return false; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String mimeType = DefaultMIMETypes.guessMIMEType(line); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: "+mimeType + "\r\n"); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: "+key.getInsertURI().toString(false)+"\r\n"); outsb.append("Request URI: "+key.getURI().toString(false)+"\r\n"); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI+"\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"+"\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+key.getURI().toString(false)+"testsite/"); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".length()); } while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to add peer to node by noderef in "+key+"\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); try{ n.config.get("node").getOption("name").setValue(key); Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } n.config.store(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for "+nodeIdentifier); } else { outsb.append("disable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for "+nodeIdentifier); } else { outsb.append("enable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for "+nodeIdentifier); } else { outsb.append("false for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for "+nodeIdentifier); } else { outsb.append("peer removal failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); return false; }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 638, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 638, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2189, 30, 13773, 1369, 1769, 3639, 309, 12, 332, 558, 18, 17514, 1190, 2932, 3264, 2773, 3719, 288, 5411, 368, 9363, 1240, 279, 498, 1024, 5411, 514, 498, 273, 980, 18, 28023, 2932, 3264, 2773, 18, 2469, 10663, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 20, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 21, 1769, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 856, 18, 2469, 1435, 17, 21, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 20, 16, 498, 18, 2469, 1435, 17, 22, 1769, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 653, 30, 13773, 856, 1769, 5411, 478, 2842, 278, 3098, 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, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 638, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 638, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 2 ]
public String getFilePath();
String getFilePath();
public String getFilePath();
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/26031e85ad2270d67f41e0dd1782eec8f3ff4d5b/ErrorSource.java/clean/org/gjt/sp/jedit/ErrorSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 22554, 5621, 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, 0, 0, 0, 0, 0, 0 ]
[ 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 22554, 5621, 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, -100, -100, -100, -100, -100, -100 ]
Messages.getString("MarkerView.19"), markerLimit == -1 ? 60 : 100);
MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100);
private void internalRefresh(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { int markerLimit = getMarkerLimit(); monitor .beginTask( Messages.getString("MarkerView.19"), markerLimit == -1 ? 60 : 100); //$NON-NLS-1$ haltTableUpdates(); IJobManager jobMan = Platform.getJobManager(); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); try { monitor.subTask(WAITING_FOR_WORKSPACE_CHANGES_TO_FINISH); jobMan.beginRule(root, monitor); if (monitor.isCanceled()) { return; } monitor.subTask(SEARCHING_FOR_MARKERS); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); MarkerList markerList = MarkerList.compute(getFilters(), subMonitor, true); if (monitor.isCanceled()) { return; } if (markerCountDirty) { monitor.subTask(REFRESHING_MARKER_COUNTS); totalMarkers = MarkerList.compute(getMarkerTypes()).length; markerCountDirty = false; } currentMarkers = markerList; } catch (CoreException e) { throw new InvocationTargetException(e); } finally { jobMan.endRule(root); } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. Collection markers = Arrays.asList(currentMarkers.toArray()); if (markerLimit != -1) { monitor.subTask(FILTERING_ON_MARKER_LIMIT); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); markers = SortUtil.getFirst(markers, getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; currentMarkers = new MarkerList(markers); } monitor.subTask(QUEUEING_VIEWER_UPDATES); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); setContents(markers, sub); if (monitor.isCanceled()) return; uiJob.schedule(); try { uiJob.join(); } catch (InterruptedException e) { uiJob.cancel(); monitor.done(); } finally { if (monitor.isCanceled()) { uiJob.cancel(); } } monitor.done(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9fd38ff5015f18d343d054773283a2bca6122227/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 474, 5373, 3039, 273, 23232, 264, 3039, 5621, 202, 202, 10259, 9506, 202, 18, 10086, 2174, 12, 25083, 202, 7078, 5058, 18, 7078, 1767, 67, 3657, 16, 5373, 3039, 422, 300, 21, 692, 4752, 294, 2130, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 76, 2390, 1388, 5121, 5621, 202, 202, 45, 2278, 1318, 1719, 5669, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 202, 202, 698, 288, 1082, 202, 10259, 18, 1717, 2174, 12, 19046, 1360, 67, 7473, 67, 10566, 6616, 67, 1792, 3388, 3991, 67, 4296, 67, 23259, 1769, 1082, 202, 4688, 5669, 18, 10086, 2175, 12, 3085, 16, 6438, 1769, 1082, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 10259, 18, 1717, 2174, 12, 17251, 1360, 67, 7473, 67, 12693, 11367, 1769, 1082, 202, 1676, 5491, 7187, 720, 7187, 273, 394, 2592, 5491, 7187, 12, 10259, 16, 1728, 1769, 1082, 202, 7078, 682, 5373, 682, 273, 14742, 682, 18, 9200, 12, 588, 5422, 9334, 6862, 202, 1717, 7187, 16, 638, 1769, 1082, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 261, 11145, 1380, 10785, 13, 288, 9506, 202, 10259, 18, 1717, 2174, 12, 10771, 14753, 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, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 474, 5373, 3039, 273, 23232, 264, 3039, 5621, 202, 202, 10259, 9506, 202, 18, 10086, 2174, 12, 25083, 202, 7078, 5058, 18, 7078, 1767, 67, 3657, 16, 5373, 3039, 422, 300, 21, 692, 4752, 294, 2130, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 76, 2390, 1388, 5121, 5621, 202, 202, 45, 2278, 1318, 1719, 5669, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 202, 202, 698, 288, 1082, 202, 10259, 18, 1717, 2174, 12, 19046, 1360, 67, 7473, 67, 10566, 2 ]
try { Reader in = new StringReader(source); return evaluateReader(scope, in, sourceName, lineno, securityDomain); } catch (IOException ioe) { throw new RuntimeException();
Script script = compileString(scope, source, sourceName, lineno, securityDomain); if (script != null) { return script.exec(this, scope); } else { return null;
public Object evaluateString(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) throws JavaScriptException { try { Reader in = new StringReader(source); return evaluateReader(scope, in, sourceName, lineno, securityDomain); } catch (IOException ioe) { // Should never occur because we just made the reader from a String throw new RuntimeException(); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8d78476dde863807579dcd20202decfcfcc9f7f1/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5956, 780, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 514, 28337, 16, 509, 7586, 16, 4766, 1033, 4373, 3748, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 775, 288, 5411, 5393, 316, 273, 394, 26227, 12, 3168, 1769, 5411, 327, 5956, 2514, 12, 4887, 16, 316, 16, 28337, 16, 7586, 16, 21394, 4373, 3748, 1769, 3639, 289, 3639, 1044, 261, 14106, 10847, 13, 288, 5411, 368, 9363, 5903, 3334, 2724, 732, 2537, 7165, 326, 2949, 628, 279, 514, 5411, 604, 394, 3235, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5956, 780, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 514, 28337, 16, 509, 7586, 16, 4766, 1033, 4373, 3748, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 775, 288, 5411, 5393, 316, 273, 394, 26227, 12, 3168, 1769, 5411, 327, 5956, 2514, 12, 4887, 16, 316, 16, 28337, 16, 7586, 16, 21394, 4373, 3748, 1769, 3639, 289, 3639, 1044, 261, 14106, 10847, 13, 288, 5411, 368, 9363, 5903, 3334, 2724, 732, 2537, 7165, 326, 2949, 628, 279, 514, 5411, 604, 394, 3235, 5621, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor()));
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, ar, creator.getParent().getName() + "." + creator.getColor()));
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); XMLDataSet dataSet = (XMLDataSet)first.getDataSet(); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } threeSelectionWindow.getContentPane().add(threeSelectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400)); }else{ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays+= 400; threeSelectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/906cf71a3fea265f6468ab784c9f06710a235bfb/VerticalSeismogramDisplay.java/buggy/src/edu/sc/seis/fissuresUtil/display/VerticalSeismogramDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 28019, 6233, 4236, 12, 6233, 11784, 15329, 202, 430, 12, 451, 992, 6233, 4236, 422, 446, 15329, 202, 565, 1194, 18, 4148, 2932, 23799, 890, 39, 4421, 2562, 8863, 202, 565, 8925, 6233, 3829, 273, 394, 804, 3219, 5621, 202, 565, 8925, 6233, 3829, 18, 542, 1225, 12, 16010, 16, 7409, 1769, 202, 565, 8925, 6233, 4236, 273, 394, 27394, 1761, 6228, 5553, 4236, 12, 11697, 30839, 16, 21188, 30839, 16, 333, 1769, 202, 565, 4498, 425, 273, 11784, 18, 588, 1761, 6228, 5553, 87, 7675, 9838, 5621, 202, 565, 2647, 809, 30855, 433, 273, 11784, 18, 588, 3061, 809, 5621, 202, 565, 14065, 1761, 6228, 5553, 1122, 273, 14015, 13676, 1761, 6228, 5553, 13, 73, 18, 4285, 10663, 202, 565, 3167, 13676, 14837, 273, 261, 4201, 13676, 13, 3645, 18, 588, 13676, 5621, 202, 565, 432, 1291, 809, 30855, 419, 273, 394, 432, 1291, 809, 30855, 12, 2704, 9874, 15312, 26895, 809, 12443, 12, 2042, 1761, 6228, 5553, 2828, 13, 3645, 18, 588, 1761, 6228, 5553, 1435, 3631, 17322, 1082, 282, 433, 18, 588, 950, 2655, 12, 3645, 18, 588, 1761, 6228, 5553, 1435, 3719, 1769, 202, 565, 11784, 18, 542, 4236, 12, 451, 992, 6233, 4236, 18, 1289, 4236, 12, 3645, 16, 433, 16, 11784, 18, 588, 3054, 7675, 17994, 1435, 397, 4585, 397, 11784, 18, 588, 2957, 1435, 10019, 202, 565, 419, 18, 8613, 26895, 25779, 12, 313, 1769, 202, 565, 1323, 12, 73, 18, 5332, 2134, 10756, 95, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 28019, 6233, 4236, 12, 6233, 11784, 15329, 202, 430, 12, 451, 992, 6233, 4236, 422, 446, 15329, 202, 565, 1194, 18, 4148, 2932, 23799, 890, 39, 4421, 2562, 8863, 202, 565, 8925, 6233, 3829, 273, 394, 804, 3219, 5621, 202, 565, 8925, 6233, 3829, 18, 542, 1225, 12, 16010, 16, 7409, 1769, 202, 565, 8925, 6233, 4236, 273, 394, 27394, 1761, 6228, 5553, 4236, 12, 11697, 30839, 16, 21188, 30839, 16, 333, 1769, 202, 565, 4498, 425, 273, 11784, 18, 588, 1761, 6228, 5553, 87, 7675, 9838, 5621, 202, 565, 2647, 809, 30855, 433, 273, 11784, 18, 588, 3061, 809, 5621, 202, 565, 14065, 1761, 6228, 5553, 1122, 273, 14015, 13676, 1761, 6228, 5553, 13, 2 ]
void innerUpdate(){
private synchronized void innerUpdate(){
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747, 711, 25931, 38, 821, 82, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 30, 563, 1546, 15, 2088, 15, 3113, 27079, 1891, 5042, 1546, 15, 291, 4965, 1891, 5042, 15, 3113, 711, 25931, 38, 821, 82, 1546, 15, 5332, 25931, 38, 821, 82, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 2211, 18, 9083, 4431, 8609, 4488, 2096, 273, 374, 31, 1082, 202, 2211, 18, 6385, 1564, 273, 638, 31, 202, 202, 97, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 2979, 310, 364, 24158, 498, 8863, 202, 202, 2211, 18, 4000, 5005, 28691, 12, 6625, 1769, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 17523, 12, 9083, 4431, 8609, 4488, 2096, 411, 890, 13, 288, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 28691, 3895, 30, 13773, 9083, 4431, 8609, 4488, 2096, 1769, 9506, 202, 430, 12, 2211, 18, 5332, 25931, 38, 821, 82, 13, 288, 6862, 202, 3328, 18, 1636, 12, 2211, 16, 315, 1986, 24158, 498, 711, 2118, 1392, 603, 326, 2483, 294, 9445, 3656, 17, 2725, 8863, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 698, 288, 6862, 202, 7048, 12, 6625, 14, 18088, 1769, 9506, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 6862, 202, 759, 8049, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747, 711, 25931, 38, 821, 82, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 30, 563, 1546, 15, 2088, 15, 3113, 27079, 1891, 5042, 1546, 15, 291, 4965, 1891, 5042, 15, 3113, 711, 25931, 38, 821, 82, 1546, 15, 5332, 25931, 38, 821, 82, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 2211, 18, 9083, 4431, 8609, 4488, 2096, 273, 374, 31, 1082, 202, 2211, 18, 6385, 1564, 273, 638, 31, 202, 202, 97, 9506, 202, 3163, 18, 2 ]
if (widths.length != columns) { throw new BadElementException("Wrong number of columns."); }
if (widths.length != columns) { throw new BadElementException("Wrong number of columns."); }
public void setWidths(float[] widths) throws BadElementException { if (widths.length != columns) { throw new BadElementException("Wrong number of columns."); } // The sum of all values is 100% float hundredPercent = 0; for (int i = 0; i < columns; i++) { hundredPercent += widths[i]; } // The different percentages are calculated float width; this.widths[columns - 1] = 100; for (int i = 0; i < columns - 1; i++) { width = (100.0f * widths[i]) / hundredPercent; this.widths[i] = width; this.widths[columns - 1] -= width; } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/913d133febf0c5fd6ac6f0b71398cf5fa320da91/Table.java/clean/src/com/lowagie/text/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20855, 87, 12, 5659, 8526, 15801, 13, 1216, 6107, 20826, 288, 3639, 309, 261, 17043, 18, 2469, 480, 2168, 13, 288, 5411, 604, 394, 6107, 20826, 2932, 13634, 1300, 434, 2168, 1199, 1769, 3639, 289, 3639, 368, 1021, 2142, 434, 777, 924, 353, 2130, 9, 3639, 1431, 366, 1074, 1118, 8410, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2168, 31, 277, 27245, 288, 5411, 366, 1074, 1118, 8410, 1011, 15801, 63, 77, 15533, 3639, 289, 3639, 368, 1021, 3775, 5551, 1023, 854, 8894, 3639, 1431, 1835, 31, 3639, 333, 18, 17043, 63, 5112, 300, 404, 65, 273, 2130, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2168, 300, 404, 31, 277, 27245, 288, 5411, 1835, 273, 261, 6625, 18, 20, 74, 380, 15801, 63, 77, 5717, 342, 366, 1074, 1118, 8410, 31, 5411, 333, 18, 17043, 63, 77, 65, 273, 1835, 31, 5411, 333, 18, 17043, 63, 5112, 300, 404, 65, 3947, 1835, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20855, 87, 12, 5659, 8526, 15801, 13, 1216, 6107, 20826, 288, 3639, 309, 261, 17043, 18, 2469, 480, 2168, 13, 288, 5411, 604, 394, 6107, 20826, 2932, 13634, 1300, 434, 2168, 1199, 1769, 3639, 289, 3639, 368, 1021, 2142, 434, 777, 924, 353, 2130, 9, 3639, 1431, 366, 1074, 1118, 8410, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2168, 31, 277, 27245, 288, 5411, 366, 1074, 1118, 8410, 1011, 15801, 63, 77, 15533, 3639, 289, 3639, 368, 1021, 3775, 5551, 1023, 854, 8894, 3639, 1431, 1835, 31, 3639, 333, 18, 17043, 63, 5112, 300, 404, 65, 273, 2130, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2168, 2 ]
double best = Double.MAX_VALUE;
public void estimateParameters(Tree originalTree, CategoricalDistribution observedStates1, CategoricalDistribution observedStates2, CommandRecord commandRec) { // if (observedStates1==null || observedStates2==null) // return; this.observedStates1 = observedStates1; this.observedStates2 = observedStates2; // Special treatment for constant states just isn't working out here if (observedStates1.getMaxState()>= 1) maxState[0] = observedStates1.getMaxState(); else maxState[0] = 1; if (observedStates2.getMaxState()>= 1) maxState[1] = observedStates2.getMaxState(); else maxState[1] = 1; allStates[0] = CategoricalState.span(0,maxState[0]); allStates[1] = CategoricalState.span(0,maxState[1]); double height = 0; double invHeight = MesquiteDouble.unassigned; if (scaleRescale){ //rescales tree to 1.0 height to help optimization, which takes longer with larger numbers MesquiteTree mTree = originalTree.cloneTree(); mTree.setAllUnassignedBranchLengths(1.0, false); height = mTree.tallestPathAboveNode(mTree.getRoot(), 1.0); // to adjust start point depending on how tall is tree if (height != 0){ invHeight = 1.0/height; mTree.scaleAllBranchLengths(invHeight, false); rescaleFixedParameters(height); } workingTree= mTree; } else workingTree = originalTree; Optimizer opt = new Optimizer(this); double best = Double.MAX_VALUE; // **** estParams is the matrix of trial values double estParams[]; // estjust saves the starting values for error reporting double backupEst[] = null; double [] b = null; double next; switch (modelType) { case MODEL8PARAM:{ // first try two versions of a 6-parameter model // no need to reallocate the two 6-p models everytime if (intermediate1 == null) intermediate1 = new PagelMatrixModel("",CategoricalState.class,MODEL6PARAMCONTINGENTCHANGEY); if (intermediate2 == null) intermediate2 = new PagelMatrixModel("",CategoricalState.class,MODEL6PARAMCONTINGENTCHANGEX); PagelMatrixModel model6_cy = intermediate1; PagelMatrixModel model6_cx = intermediate2; estParams = new double[8]; // first a model with changes in Y contingent on changes in X if (parametersFromSimplerModel == null || simplerModelType != MODEL6PARAMCONTINGENTCHANGEY){ model6_cy.setParametersFromSimplerModel(parametersFromSimplerModel,simplerModelType); model6_cy.estimateParameters(workingTree,observedStates1, observedStates2, commandRec); double[] m6_1Params = model6_cy.getParams(); for(int i=0;i<4;i++) estParams[i]=m6_1Params[i]; estParams[4]=m6_1Params[4]; estParams[5]=m6_1Params[0]; estParams[6]=m6_1Params[5]; estParams[7]=m6_1Params[2]; } else { for(int i=0;i<4;i++) estParams[i]=parametersFromSimplerModel[i]; estParams[4]=parametersFromSimplerModel[4]; estParams[5]=parametersFromSimplerModel[0]; estParams[6]=parametersFromSimplerModel[5]; estParams[7]=parametersFromSimplerModel[2]; } allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); // try optimizing from the contingentchangeY best parameters if (!acceptableResults(next, estParams)) { MesquiteMessage.println("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else { //shouldn't need to compare best with next here best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } // now the other 6-parameter model (changes in X contingent on Y) if (parametersFromSimplerModel == null || simplerModelType != MODEL6PARAMCONTINGENTCHANGEX){ model6_cx.setParametersFromSimplerModel(parametersFromSimplerModel,simplerModelType); model6_cx.estimateParameters(workingTree,observedStates1, observedStates2, commandRec); double[] m6_2Params = model6_cx.getParams(); for(int i=0;i<4;i++) estParams[i]=m6_2Params[i]; estParams[4]=m6_2Params[1]; estParams[5]=m6_2Params[4]; estParams[6]=m6_2Params[3]; estParams[7]=m6_2Params[5]; } else { for(int i=0;i<4;i++) estParams[i]=parametersFromSimplerModel[i]; estParams[4]=parametersFromSimplerModel[1]; estParams[5]=parametersFromSimplerModel[4]; estParams[6]=parametersFromSimplerModel[3]; estParams[7]=parametersFromSimplerModel[5]; } allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); // try optimizing from the contingentchangeX best parameters if (!acceptableResults(next, estParams)) { MesquiteMessage.println("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } //PETER: added these tick notifications to keep user informed of progress of search if (commandRec != null) commandRec.tick("8 parameter model preliminary -ln likelihood: " + MesquiteDouble.toString(best)); if (eightParameterExtraSearch.getValue() > 0) { double [] m6_cy_Params = model6_cy.getParams(); double [] m6_cx_Params = model6_cx.getParams(); for (int i = 0; i< eightParameterExtraSearch.getValue();i++){ for(int j=0;j<4;j++) estParams[j]=Math.abs((m6_cy_Params[j]+m6_cx_Params[j])/2 + (20.0*rng.nextGaussian())*(m6_cx_Params[j]-m6_cy_Params[j])); estParams[4]=Math.abs(1+20.0*rng.nextGaussian())*m6_cy_Params[4]; estParams[5]=Math.abs(1+20.0*rng.nextGaussian())*m6_cx_Params[4]; estParams[6]=Math.abs(1+20.0*rng.nextGaussian())*m6_cy_Params[5]; estParams[7]=Math.abs(1+20.0*rng.nextGaussian())*m6_cx_Params[5]; allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); // try optimizing from the contingentchangeX best parameters if (!acceptableResults(next, estParams)) { MesquiteMessage.warnProgrammer("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int m=0; m< estParams.length; m++) b[m] = estParams[m]; } if (commandRec != null) commandRec.tick("8 parameter model -ln likelihood after " + (i+1) + " searches: " + MesquiteDouble.toString(best)); } } break; } case MODEL6PARAMCONTINGENTCHANGEX: case MODEL6PARAMCONTINGENTCHANGEY: { estParams = new double[6]; if (parametersFromSimplerModel == null || simplerModelType != MODEL4PARAM) { PagelMatrixModel model4 = new PagelMatrixModel("",CategoricalState.class,MODEL4PARAM); model4.estimateParameters(workingTree,observedStates1, observedStates2, commandRec); double [] m4Params = model4.getParams(); for(int i=0;i<4;i++) estParams[i]=m4Params[i]; if (modelType == MODEL6PARAMCONTINGENTCHANGEX){ estParams[4]=m4Params[2]; estParams[5]=m4Params[3]; } else { estParams[4]=m4Params[0]; estParams[5]=m4Params[1]; } } else { // TODO need to get the parameters from the previous model for(int i=0;i<4;i++) estParams[i]=parametersFromSimplerModel[i]; if (modelType == MODEL6PARAMCONTINGENTCHANGEX){ estParams[4]=parametersFromSimplerModel[2]; estParams[5]=parametersFromSimplerModel[3]; } else { estParams[4]=parametersFromSimplerModel[0]; estParams[5]=parametersFromSimplerModel[1]; } } allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); // try optimizing from the contingentchangeX best parameters if (!acceptableResults(next, estParams)) { MesquiteMessage.println("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); //if (b == null) // b = DoubleArray.clone(estParams); //only do this to get b set to something... } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } break; } case MODEL4PARAM: { // for now, just use flip/flop, though we might try getting estimates from MODEL2PARAM in the future estParams = new double[4]; estParams[2] = FLIP_FLOP_HIGH; estParams[3] = FLIP_FLOP_HIGH; estParams[0] = FLIP_FLOP_HIGH; estParams[1] = FLIP_FLOP_HIGH; if (b == null) b = DoubleArray.clone(estParams); //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); //bundle); if (!acceptableResults(next, estParams)) { MesquiteMessage.warnProgrammer("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } estParams[0] = FLIP_FLOP_LOW; estParams[2] = FLIP_FLOP_LOW; // estParams[1] = FLIP_FLOP_HIGH; //forward estParams[3] = FLIP_FLOP_HIGH; params = DoubleArray.clone(estParams); allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); //bundle); if (!acceptableResults(next, estParams)) { MesquiteMessage.println("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } estParams[0] = FLIP_FLOP_HIGH; estParams[2] = FLIP_FLOP_HIGH; // estParams[1] = FLIP_FLOP_LOW; //forward estParams[3] = FLIP_FLOP_LOW; params = DoubleArray.clone(estParams); allowedEdgeHits = beginningAllowed; //backupEst = (double [])estParams.clone(); next = opt.optimize(estParams, null); //bundle); if (!acceptableResults(next, estParams)) { MesquiteMessage.println("Warning: NaN encountered in PagelMatrixModel optimization"); reportUnacceptableValues(next, estParams,backupEst); } else if (next<best) { best = next; if (b == null) b = DoubleArray.clone(estParams); else for (int i=0; i< estParams.length; i++) b[i] = estParams[i]; } if (commandRec != null) commandRec.tick("4 parameter model -ln likelihood: " + MesquiteDouble.toString(best)); break; } case MODEL2PARAM: { // NO-OP FOR NOW, the model exists, the framework for using it doesn't MkModel model2 = new MkModel("asymm helper", CategoricalState.class); //used to provide preliminary guess at rate MesquiteMessage.warnUser("The 2 parameter model isn't currently supported here"); break; } } // end switch (??) params = DoubleArray.clone(b); if (scaleRescale && height != 0){ //UNDO the scaling of the tree rescaleAllParameters(invHeight); workingTree = originalTree; // faster, less error prone than rescaling from mTree?? } //prepareMatrices(); }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/aacc13bbf8d15e888b91dfd878ab9207a7b2a8d6/PagelMatrixModel.java/buggy/trunk/Mesquite Project/Source/mesquite/correl/lib/PagelMatrixModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11108, 2402, 12, 2471, 2282, 2471, 16, 385, 14341, 9003, 12117, 7629, 21, 16, 385, 14341, 9003, 12117, 7629, 22, 16, 3498, 2115, 1296, 5650, 13, 288, 368, 565, 202, 430, 261, 30701, 7629, 21, 631, 2011, 747, 12117, 7629, 22, 631, 2011, 13, 368, 565, 202, 202, 2463, 31, 3639, 333, 18, 30701, 7629, 21, 273, 12117, 7629, 21, 31, 3639, 333, 18, 30701, 7629, 22, 273, 12117, 7629, 22, 31, 377, 202, 202, 759, 13409, 24266, 364, 5381, 5493, 2537, 5177, 1404, 5960, 596, 2674, 377, 202, 202, 430, 261, 30701, 7629, 21, 18, 588, 2747, 1119, 1435, 34, 33, 404, 13, 377, 1082, 202, 1896, 1119, 63, 20, 65, 273, 12117, 7629, 21, 18, 588, 2747, 1119, 5621, 377, 202, 202, 12107, 377, 1082, 202, 1896, 1119, 63, 20, 65, 273, 404, 31, 377, 202, 202, 430, 261, 30701, 7629, 22, 18, 588, 2747, 1119, 1435, 34, 33, 404, 13, 540, 202, 202, 1896, 1119, 63, 21, 65, 273, 12117, 7629, 22, 18, 588, 2747, 1119, 5621, 377, 202, 202, 12107, 377, 1082, 202, 1896, 1119, 63, 21, 65, 273, 404, 31, 202, 202, 454, 7629, 63, 20, 65, 273, 385, 14341, 1119, 18, 3969, 12, 20, 16, 1896, 1119, 63, 20, 19226, 202, 202, 454, 7629, 63, 21, 65, 273, 385, 14341, 1119, 18, 3969, 12, 20, 16, 1896, 1119, 63, 21, 19226, 202, 202, 9056, 2072, 273, 374, 31, 202, 202, 9056, 2198, 2686, 273, 490, 281, 372, 1137, 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, 11108, 2402, 12, 2471, 2282, 2471, 16, 385, 14341, 9003, 12117, 7629, 21, 16, 385, 14341, 9003, 12117, 7629, 22, 16, 3498, 2115, 1296, 5650, 13, 288, 368, 565, 202, 430, 261, 30701, 7629, 21, 631, 2011, 747, 12117, 7629, 22, 631, 2011, 13, 368, 565, 202, 202, 2463, 31, 3639, 333, 18, 30701, 7629, 21, 273, 12117, 7629, 21, 31, 3639, 333, 18, 30701, 7629, 22, 273, 12117, 7629, 22, 31, 377, 202, 202, 759, 13409, 24266, 364, 5381, 5493, 2537, 5177, 1404, 5960, 596, 2674, 377, 202, 202, 430, 261, 30701, 7629, 21, 18, 588, 2747, 1119, 1435, 34, 33, 404, 13, 377, 1082, 202, 1896, 1119, 63, 20, 65, 273, 12117, 7629, 21, 2 ]
* if (arguments instanceof TupleExpression) { TupleExpression * tupleExpression = (TupleExpression) arguments; int size = * tupleExpression.getExpressions().size(); if (size == 1) { * arguments = (Expression) * tupleExpression.getExpressions().get(0); } } */
* if (arguments instanceof TupleExpression) { TupleExpression * tupleExpression = (TupleExpression) arguments; int size = * tupleExpression.getExpressions().size(); if (size == 1) { * arguments = (Expression) * tupleExpression.getExpressions().get(0); } } */
public void visitMethodCallExpression(MethodCallExpression call) { this.leftHandExpression = false; Expression arguments = call.getArguments(); /* * if (arguments instanceof TupleExpression) { TupleExpression * tupleExpression = (TupleExpression) arguments; int size = * tupleExpression.getExpressions().size(); if (size == 0) { arguments = * ConstantExpression.EMPTY_ARRAY; } } */ if (MethodCallExpression.isSuperMethodCall(call)) { /** @todo handle method types! */ cv.visitVarInsn(ALOAD, 0); cv.visitVarInsn(ALOAD, 1); cv.visitMethodInsn(INVOKESPECIAL, internalBaseClassName, "<init>", "(Ljava/lang/Object;)V"); } else { String method = call.getMethod(); // are we a local variable if (isThisExpression(call.getObjectExpression()) && isFieldOrVariable(call.getMethod())) { /* * if (arguments instanceof TupleExpression) { TupleExpression * tupleExpression = (TupleExpression) arguments; int size = * tupleExpression.getExpressions().size(); if (size == 1) { * arguments = (Expression) * tupleExpression.getExpressions().get(0); } } */ // lets invoke the closure method visitVariableExpression(new VariableExpression(method)); arguments.visit(this); invokeClosureMethod.call(cv); } else { if (argumentsUseStack(arguments)) { int paramIdx = defineVariable(createVariableName("iterator"), "java.lang.Object", false).getIndex(); arguments.visit(this); cv.visitVarInsn(ASTORE, paramIdx); call.getObjectExpression().visit(this); cv.visitLdcInsn(method); cv.visitVarInsn(ALOAD, paramIdx); } else { call.getObjectExpression().visit(this); cv.visitLdcInsn(method); arguments.visit(this); } if (call.isSafe()) { invokeMethodSafeMethod.call(cv); } else { invokeMethodMethod.call(cv); } } } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/9aaf4fd018b1c47359ff4fc991a5bce4700a494b/ClassGenerator.java/clean/src/main/org/codehaus/groovy/classgen/ClassGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12592, 2300, 12, 12592, 2300, 745, 13, 288, 3639, 333, 18, 4482, 1144, 2300, 273, 629, 31, 3639, 5371, 1775, 273, 745, 18, 588, 4628, 5621, 3639, 1748, 1082, 380, 309, 261, 7099, 1276, 7257, 2300, 13, 288, 7257, 2300, 1082, 380, 3193, 2300, 273, 261, 9038, 2300, 13, 1775, 31, 509, 963, 273, 1082, 380, 3193, 2300, 18, 588, 8927, 7675, 1467, 5621, 309, 261, 1467, 422, 374, 13, 288, 1775, 273, 1082, 380, 10551, 2300, 18, 13625, 67, 8552, 31, 289, 289, 1082, 1195, 3639, 309, 261, 12592, 2300, 18, 291, 8051, 12592, 12, 1991, 3719, 288, 5411, 1783, 632, 9012, 1640, 707, 1953, 5, 1195, 5411, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 374, 1769, 5411, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 404, 1769, 5411, 8951, 18, 11658, 1305, 11796, 12, 706, 17691, 3991, 10106, 6365, 16, 2713, 2171, 3834, 16, 3532, 2738, 2984, 16, 7751, 21159, 19, 4936, 19, 921, 30943, 58, 8863, 3639, 289, 3639, 469, 288, 5411, 514, 707, 273, 745, 18, 588, 1305, 5621, 5411, 368, 854, 732, 279, 1191, 2190, 5411, 309, 261, 291, 2503, 2300, 12, 1991, 18, 588, 921, 2300, 10756, 597, 353, 974, 1162, 3092, 12, 1991, 18, 588, 1305, 1435, 3719, 288, 7734, 1748, 6862, 380, 309, 261, 7099, 1276, 7257, 2300, 13, 288, 7257, 2300, 6862, 380, 3193, 2300, 273, 261, 9038, 2300, 13, 1775, 31, 509, 963, 273, 6862, 380, 3193, 2300, 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, 3757, 12592, 2300, 12, 12592, 2300, 745, 13, 288, 3639, 333, 18, 4482, 1144, 2300, 273, 629, 31, 3639, 5371, 1775, 273, 745, 18, 588, 4628, 5621, 3639, 1748, 1082, 380, 309, 261, 7099, 1276, 7257, 2300, 13, 288, 7257, 2300, 1082, 380, 3193, 2300, 273, 261, 9038, 2300, 13, 1775, 31, 509, 963, 273, 1082, 380, 3193, 2300, 18, 588, 8927, 7675, 1467, 5621, 309, 261, 1467, 422, 374, 13, 288, 1775, 273, 1082, 380, 10551, 2300, 18, 13625, 67, 8552, 31, 289, 289, 1082, 1195, 3639, 309, 261, 12592, 2300, 18, 291, 8051, 12592, 12, 1991, 3719, 288, 5411, 1783, 632, 9012, 1640, 707, 1953, 5, 1195, 5411, 8951, 18, 11658, 1537, 11796, 12, 2 ]
reply.status = e.get_errno();
reply.status = e.getErrno();
public void close(DbDispatcher server, __dbc_close_msg args, __dbc_close_reply reply) { try { dbc.close(); dbc = null; if (isJoin) for(LocalIterator i = ((DbServer)server).cursor_list.iterator(); i.hasNext(); ) { RpcDbc rdbc = (RpcDbc)i.next(); // Unjoin cursors that were joined to create this if (rdbc != null && rdbc.timer == this) rdbc.timer = rdbc.orig_timer; } reply.status = 0; } catch(DbException e) { e.printStackTrace(DbServer.err); reply.status = e.get_errno(); } finally { server.delCursor(this); } }
9203 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9203/1765c2598bb92e59ff55807fab4076d1b5d838f2/RpcDbc.java/buggy/db/rpc_server/java/RpcDbc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 1746, 12, 4331, 6681, 1438, 16, 202, 202, 972, 9137, 67, 4412, 67, 3576, 833, 16, 1001, 9137, 67, 4412, 67, 10629, 4332, 13, 202, 95, 202, 202, 698, 288, 1082, 202, 9137, 18, 4412, 5621, 1082, 202, 9137, 273, 446, 31, 1082, 202, 430, 261, 291, 4572, 13, 9506, 202, 1884, 12, 2042, 3198, 277, 273, 14015, 4331, 2081, 13, 3567, 2934, 9216, 67, 1098, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 6862, 202, 11647, 4331, 71, 436, 9137, 273, 261, 11647, 4331, 71, 13, 77, 18, 4285, 5621, 6862, 202, 759, 1351, 5701, 25326, 1383, 716, 4591, 12114, 358, 752, 333, 6862, 202, 430, 261, 86, 9137, 480, 446, 597, 436, 9137, 18, 12542, 422, 333, 13, 25083, 202, 86, 9137, 18, 12542, 273, 436, 9137, 18, 4949, 67, 12542, 31, 9506, 202, 97, 1082, 202, 10629, 18, 2327, 273, 374, 31, 202, 202, 97, 1044, 12, 4331, 503, 425, 13, 288, 1082, 202, 73, 18, 1188, 6332, 12, 4331, 2081, 18, 370, 1769, 1082, 202, 10629, 18, 2327, 273, 425, 18, 588, 67, 19088, 5621, 202, 202, 97, 3095, 288, 1082, 202, 3567, 18, 3771, 6688, 12, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 1746, 12, 4331, 6681, 1438, 16, 202, 202, 972, 9137, 67, 4412, 67, 3576, 833, 16, 1001, 9137, 67, 4412, 67, 10629, 4332, 13, 202, 95, 202, 202, 698, 288, 1082, 202, 9137, 18, 4412, 5621, 1082, 202, 9137, 273, 446, 31, 1082, 202, 430, 261, 291, 4572, 13, 9506, 202, 1884, 12, 2042, 3198, 277, 273, 14015, 4331, 2081, 13, 3567, 2934, 9216, 67, 1098, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 6862, 202, 11647, 4331, 71, 436, 9137, 273, 261, 11647, 4331, 71, 13, 77, 18, 4285, 5621, 6862, 202, 759, 1351, 5701, 25326, 1383, 716, 4591, 12114, 358, 752, 333, 6862, 202, 430, 261, 86, 9137, 480, 446, 2 ]
if (!checkMyType(object) || !isSupportedType(transferData))
if (!checkMyType(object) /*|| !isSupportedType(transferData)*/ )
public void javaToNative(Object object, TransferData transferData) { if (!checkMyType(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA); } try { byte[] buffer = Base64.encodeBytes(((DragAndDropContainer) object).getXML().getBytes()).getBytes(); super.javaToNative(buffer, transferData); } catch (Exception e) { LogWriter.getInstance().logError(toString(), "Unexpected error trying to put a string onto the XML Transfer type: " + e.toString()); LogWriter.getInstance().logError(toString(), Const.getStackTracker(e)); return; } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/851f88ab74b60bd6b597c9c0cc98641ce8e7735c/XMLTransfer.java/clean/src/be/ibridge/kettle/core/XMLTransfer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2252, 774, 9220, 12, 921, 733, 16, 12279, 751, 7412, 751, 13, 565, 288, 3639, 309, 16051, 1893, 12062, 559, 12, 1612, 13, 1748, 20081, 401, 291, 7223, 559, 12, 13866, 751, 13, 5549, 262, 3639, 288, 5411, 463, 2908, 18, 1636, 12, 40, 2908, 18, 3589, 67, 9347, 67, 4883, 1769, 3639, 289, 3639, 775, 3639, 288, 5411, 1160, 8526, 1613, 273, 3360, 1105, 18, 3015, 2160, 12443, 12, 11728, 1876, 7544, 2170, 13, 733, 2934, 588, 4201, 7675, 588, 2160, 1435, 2934, 588, 2160, 5621, 5411, 2240, 18, 6290, 774, 9220, 12, 4106, 16, 7412, 751, 1769, 3639, 289, 3639, 1044, 261, 503, 425, 13, 3639, 288, 5411, 1827, 2289, 18, 588, 1442, 7675, 1330, 668, 12, 10492, 9334, 315, 7762, 555, 8374, 358, 1378, 279, 533, 10170, 326, 3167, 12279, 618, 30, 315, 397, 425, 18, 10492, 10663, 5411, 1827, 2289, 18, 588, 1442, 7675, 1330, 668, 12, 10492, 9334, 9333, 18, 588, 2624, 8135, 12, 73, 10019, 5411, 327, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2252, 774, 9220, 12, 921, 733, 16, 12279, 751, 7412, 751, 13, 565, 288, 3639, 309, 16051, 1893, 12062, 559, 12, 1612, 13, 1748, 20081, 401, 291, 7223, 559, 12, 13866, 751, 13, 5549, 262, 3639, 288, 5411, 463, 2908, 18, 1636, 12, 40, 2908, 18, 3589, 67, 9347, 67, 4883, 1769, 3639, 289, 3639, 775, 3639, 288, 5411, 1160, 8526, 1613, 273, 3360, 1105, 18, 3015, 2160, 12443, 12, 11728, 1876, 7544, 2170, 13, 733, 2934, 588, 4201, 7675, 588, 2160, 1435, 2934, 588, 2160, 5621, 5411, 2240, 18, 6290, 774, 9220, 12, 4106, 16, 7412, 751, 1769, 3639, 289, 3639, 1044, 261, 503, 425, 13, 3639, 288, 5411, 1827, 2289, 18, 588, 1442, 7675, 2 ]