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
int len = str.length();
public void writeChars(String str) { closeTag(); int len = str.length(); for (int i = 0; i < len; i++) writeChar(str.charAt(i)); prev = '-'; }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/0c78a8de94114e04a221fd41b5ad01c46e877ba1/XMLPrinter.java/buggy/gnu/xml/XMLPrinter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 7803, 12, 780, 609, 13, 225, 288, 565, 30798, 5621, 4202, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 562, 31, 225, 277, 27245, 1377, 1045, 2156, 12, 701, 18, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 7803, 12, 780, 609, 13, 225, 288, 565, 30798, 5621, 4202, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 562, 31, 225, 277, 27245, 1377, 1045, 2156, 12, 701, 18, 30...
BridgeContext ctx = new BridgeContext(userAgent);
protected void transcode(Document document, String uri, TranscoderOutput output) throws TranscoderException { if (!(document instanceof SVGOMDocument)) { throw new TranscoderException( Messages.formatMessage("notsvg", null)); } SVGDocument svgDoc = (SVGDocument)document; // set the alternate stylesheet if any if (hints.containsKey(KEY_ALTERNATE_STYLESHEET)) { String stylesheetName = (String)hints.get(KEY_ALTERNATE_STYLESHEET); ((SVGOMDocument)svgDoc).enableAlternateStyleSheet(stylesheetName); } SVGSVGElement root = svgDoc.getRootElement(); // initialize the SVG document with the appropriate context DefaultSVGContext svgCtx = new DefaultSVGContext(); svgCtx.setPixelToMM(userAgent.getPixelToMM()); ((SVGOMDocument)document).setSVGContext(svgCtx); // build the GVT tree GVTBuilder builder = new GVTBuilder(); ImageRendererFactory rendFactory = new ConcreteImageRendererFactory(); BridgeContext ctx = new BridgeContext(userAgent); // flag that indicates if the document is dynamic boolean isDynamic = (hints.containsKey(KEY_EXECUTE_ONLOAD) && ((Boolean)hints.get(KEY_EXECUTE_ONLOAD)).booleanValue() && BaseScriptingEnvironment.isDynamicDocument(svgDoc)); ctx.setDynamic(isDynamic); GraphicsNode gvtRoot; try { gvtRoot = builder.build(ctx, svgDoc); // dispatch an 'onload' event if needed if (ctx.isDynamic()) { BaseScriptingEnvironment se = new BaseScriptingEnvironment(ctx); se.loadScripts(); se.dispatchSVGLoadEvent(); } } catch (BridgeException ex) { throw new TranscoderException(ex); } // get the 'width' and 'height' attributes of the SVG document float docWidth = (float)ctx.getDocumentSize().getWidth(); float docHeight = (float)ctx.getDocumentSize().getHeight(); ctx = null; builder = null; // compute the image's width and height according the hints float imgWidth = -1; if (hints.containsKey(KEY_WIDTH)) { imgWidth = ((Float)hints.get(KEY_WIDTH)).floatValue(); } float imgHeight = -1; if (hints.containsKey(KEY_HEIGHT)) { imgHeight = ((Float)hints.get(KEY_HEIGHT)).floatValue(); } float width, height; if (imgWidth > 0 && imgHeight > 0) { width = imgWidth; height = imgHeight; } else if (imgHeight > 0) { width = (docWidth * imgHeight) / docHeight; height = imgHeight; } else if (imgWidth > 0) { width = imgWidth; height = (docHeight * imgWidth) / docWidth; } else { width = docWidth; height = docHeight; } // compute the preserveAspectRatio matrix AffineTransform Px; String ref = null; try { ref = new URL(uri).getRef(); } catch (MalformedURLException ex) { // nothing to do, catched previously } try { Px = ViewBox.getViewTransform(ref, root, width, height); } catch (BridgeException ex) { throw new TranscoderException(ex); } if (Px.isIdentity() && (width != docWidth || height != docHeight)) { // The document has no viewBox, we need to resize it by hand. // we want to keep the document size ratio float d = Math.max(docWidth, docHeight); float dd = Math.max(width, height); float scale = dd/d; Px = AffineTransform.getScaleInstance(scale, scale); } // take the AOI into account if any if (hints.containsKey(KEY_AOI)) { Rectangle2D aoi = (Rectangle2D)hints.get(KEY_AOI); // transform the AOI into the image's coordinate system aoi = Px.createTransformedShape(aoi).getBounds2D(); AffineTransform Mx = new AffineTransform(); double sx = width / aoi.getWidth(); double sy = height / aoi.getHeight(); Mx.scale(sx, sy); double tx = -aoi.getX(); double ty = -aoi.getY(); Mx.translate(tx, ty); // take the AOI transformation matrix into account // we apply first the preserveAspectRatio matrix Px.preConcatenate(Mx); } // prepare the image to be painted int w = (int)(width+0.5); int h = (int)(height+0.5); // paint the SVG document using the bridge package // create the appropriate renderer ImageRenderer renderer = rendFactory.createStaticImageRenderer(); renderer.updateOffScreen(w, h); renderer.setTransform(Px); renderer.setTree(gvtRoot); gvtRoot = null; // We're done with it... try { // now we are sure that the aoi is the image size Shape raoi = new Rectangle2D.Float(0, 0, width, height); // Warning: the renderer's AOI must be in user space renderer.repaint(Px.createInverse().createTransformedShape(raoi)); BufferedImage rend = renderer.getOffScreen(); renderer = null; // We're done with it... BufferedImage dest = createImage(w, h); Graphics2D g2d = GraphicsUtil.createGraphics(dest); if (hints.containsKey(KEY_BACKGROUND_COLOR)) { Paint bgcolor = (Paint)hints.get(KEY_BACKGROUND_COLOR); g2d.setComposite(AlphaComposite.SrcOver); g2d.setPaint(bgcolor); g2d.fillRect(0, 0, w, h); } if (rend != null) { // might be null if the svg document is empty g2d.drawRenderedImage(rend, new AffineTransform()); } g2d.dispose(); rend = null; // We're done with it... writeImage(dest, output); } catch (Exception ex) { throw new TranscoderException(ex); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/0e8fac772791a058755ef5ad1de71c14544b11bb/ImageTranscoder.java/clean/sources/org/apache/batik/transcoder/image/ImageTranscoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 906, 710, 12, 2519, 1668, 16, 11794, 514, 2003, 16, 11794, 2604, 3396, 1447, 876, 13, 5411, 1216, 2604, 3396, 503, 288, 3639, 309, 16051, 12, 5457, 1276, 11281, 1872, 2519, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 906, 710, 12, 2519, 1668, 16, 11794, 514, 2003, 16, 11794, 2604, 3396, 1447, 876, 13, 5411, 1216, 2604, 3396, 503, 288, 3639, 309, 16051, 12, 5457, 1276, 11281, 1872, 2519, 371...
assertEquals(3, names.length);
assertEquals(4, names.length);
public void testFunction() throws Exception { StringBuffer code = new StringBuffer(); code.append("void func(int x) { }"); code.append("void func2() { fu"); // C++ ASTCompletionNode node = getGPPCompletionNode(code.toString()); IASTName[] names = node.getNames(); // There are three names, one as an expression, one that isn't connected, one as a declaration assertEquals(3, names.length); // The expression points to our functions IBinding[] bindings = names[0].resolvePrefix(); // There should be two since they both start with fu assertEquals(2, bindings.length); assertEquals("func", ((IFunction)bindings[0]).getName()); assertEquals("func2", ((IFunction)bindings[1]).getName()); // The second name shouldn't be hooked up assertNull(names[1].getTranslationUnit()); // The declaration should point to nothing since there are no types bindings = names[2].resolvePrefix(); assertEquals(0, bindings.length); // C node = getGCCCompletionNode(code.toString()); names = node.getNames(); // There are two names, one as an expression, one as a declaration assertEquals(2, names.length); // The expression points to our functions bindings = sortBindings(names[0].resolvePrefix()); // There should be two since they both start with fu assertEquals(2, bindings.length); assertEquals("func", ((IFunction)bindings[0]).getName()); assertEquals("func2", ((IFunction)bindings[1]).getName()); // The declaration should point to nothing since there are no types bindings = names[1].resolvePrefix(); assertEquals(0, bindings.length); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/78f1bf90544259bc8541128f8a50137b3f49f862/BasicCompletionTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/prefix/BasicCompletionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2083, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 981, 273, 394, 6674, 5621, 202, 202, 710, 18, 6923, 2932, 6459, 1326, 12, 474, 619, 13, 288, 289, 8863, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2083, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 981, 273, 394, 6674, 5621, 202, 202, 710, 18, 6923, 2932, 6459, 1326, 12, 474, 619, 13, 288, 289, 8863, 202, 202, ...
try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) setTitleKey(string);
private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } try { setWrite(((Boolean) evalAttr("write", getWriteExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELHiddenTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELHiddenTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044,...
System.out.println("First time: "+ pi.toString()); inputInfoMap.put(name, pi); }
inputInfoMap.put(name, pi); }
public uk.ac.soton.itinnovation.mygrid.workflow.enactor.core.eventservice.TaskStateMessage doTask() { try { uk.ac.soton.itinnovation.mygrid.workflow.enactor.core.eventservice.TaskStateMessage result; //do any pre-processing here // Check all the inputs, find any cardinality mismatches. Map inputInfoMap = new HashMap(); GraphNode[] inputs = getParents(); System.out.println("Number of inputs: "+ inputs.length); for (int i = 0; i < inputs.length; i++) { if (inputs[i] instanceof PortTask) { PortTask pt = (PortTask)inputs[i]; Part p = pt.getData(); String name = p.getName(); Object value = p.getTypedValue(); System.out.println("PortTask Part name: " + name); System.out.println("PortTask Part type: "+ p.getType()); System.out.println("PortTask Part actualType: " + p.getTypedValue().getClass()); PartInfo pi = new PartInfo(p); System.out.println("First time: "+ pi.toString()); inputInfoMap.put(name, pi); } } // Get the output PortTask objects Map outputPortTaskMap = new HashMap(); GraphNode[] outputs = getChildren(); for (int i = 0; i < outputs.length; i++) { if (outputs[i] instanceof PortTask) { PortTask pt = (PortTask)outputs[i]; outputPortTaskMap.put(pt.getScuflPort().getName(),pt); } } InputSet is = new InputSet(); // This is the interesting bit, we need to build a list of // map objects where each map contains the set of named // inputs for a single invocation of the processor. We then // iterate over this list, configuring each instance of the // processor invocation, collecting the results into a similar // output map list. After all the invocations have completed // the ouput map list is used to populate the output port tasks // with the (potentially higher dimension) overall outputs. //... TODO - ADD PART ARRAYS TO INPUT SET HERE // Completely naive implementation that just puts the parts in as they // are without attempting to do any iteration at all for (Iterator i = inputInfoMap.keySet().iterator(); i.hasNext(); ) { PartInfo pi = (PartInfo)inputInfoMap.get(i.next()); int dim = pi.getDimension(); if(dim==0) is.addSinglePart(pi.getPart()); else if (dim>0){ //at present only support single dimension String Arrays //if this is a String Array and the associated input is a String //(distinguished by port syntactic type) //then want to iterate Part part = pi.getPart(); Port port = proc.locatePort(part.getName()); if(part.getType().equals("string[]") && port.getSyntacticType().equals("string")) { String[] strings = (String[]) part.getTypedValue(); Part[] prts = new Part[strings.length]; for(int x=0;x<strings.length;x++) { Part prt = new Part(-1,part.getName(),"string",strings[x]); System.out.println("Type of element:" + strings[x].getClass()); prts[x] = prt; } is.addOrthogonalArray(prts); } } else return new TaskStateMessage(getParentFlow().getID(), getID(), TaskStateMessage.FAILED,"Unsupported array type needed"); } List inputList = is.getCurrentState(); List outputList = new ArrayList(); // Iterate over all the maps in the input list for (int i = 0; i < inputList.size(); i++) { Map inputMap = (Map)inputList.get(i); // Invoke with the appropriate input map // Put result parts in the output map. Map outputMap = execute(inputMap); outputList.add(outputMap); } if(inputList.size()==0) { outputList.add(execute(new HashMap())); //for the exceptional case of no input parameters } // Check whether there was any iteration if (outputList.size() == 1) { Map outputMap = (Map)outputList.get(0); for (Iterator i = outputMap.keySet().iterator(); i.hasNext(); ) { Part p = (Part)outputMap.get(i.next()); // TODO - put parts in the appropriate port tasks for output PortTask pt = (PortTask)outputPortTaskMap.get(p.getName()); if(pt!=null) pt.setData(p); } } else { int outputSizes = outputList.size(); // Iterate over the different part names Map firstOutputRow = (Map)outputList.get(0); for (Iterator i = firstOutputRow.keySet().iterator(); i.hasNext(); ) { Part exemplarPart = (Part)firstOutputRow.get(i.next()); String partName = exemplarPart.getName(); // Add a '[]' to the part type String partType = exemplarPart.getType()+"[]"; // Assemble the actual data array by iterating over all // the rows Object[] partData = new Object[outputSizes]; for (int j = 0; j < outputSizes; j++) { // Populate the partData array from the data // in each output part. try { Map row = (Map)outputList.get(j); Part thePart = (Part)row.get(partName); Object data = thePart.getTypedValue(); partData[j] = data; } catch (Exception e) { // TODO - Return a fault code logger.error(e); return new TaskStateMessage(getParentFlow().getID(), getID(), TaskStateMessage.FAILED,"Unable to obtain part data"); } } // Now have an array populated with the appropriate data. // TODO - Create the Part object and put it into the appropriate output port task Part thePart = new Part(-1, partName, partType, partData); PortTask pt = (PortTask)outputPortTaskMap.get(thePart.getName()); if (pt!=null) { pt.setData(thePart); } } } return new TaskStateMessage(getParentFlow().getID(), getID(), TaskStateMessage.COMPLETE,"Task completed successfully"); //return result; } catch (TaskExecutionException ex) { logger.error(ex); return new TaskStateMessage(getParentFlow().getID(),getID(), TaskStateMessage.FAILED,ex.getMessage()); } catch (Exception ex){ ex.printStackTrace(); logger.error(ex); return new TaskStateMessage(getParentFlow().getID(), getID(), TaskStateMessage.FAILED, "Unrecognised dispatch failure for a task within the workflow."); } }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/ef27643ffd197e94670f0d1f447011b22d5ef47e/ProcessorTask.java/buggy/trunk/taverna1.0/src/uk/ac/soton/itinnovation/taverna/enactor/entities/ProcessorTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27178, 18, 1077, 18, 87, 352, 265, 18, 305, 267, 82, 1527, 367, 18, 81, 4338, 1691, 18, 13815, 18, 275, 3362, 18, 3644, 18, 2575, 3278, 18, 2174, 1119, 1079, 741, 2174, 1435, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27178, 18, 1077, 18, 87, 352, 265, 18, 305, 267, 82, 1527, 367, 18, 81, 4338, 1691, 18, 13815, 18, 275, 3362, 18, 3644, 18, 2575, 3278, 18, 2174, 1119, 1079, 741, 2174, 1435, 28...
public void paint(Context c, Box box) { //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block); BlockBox block = (BlockBox)box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle(c.getExtents()); if (block.relative) { paintRelative(c,block); } else if (block.fixed) { paintFixed(c,block); } else { paintNormal(c,block); } //u.p("here it's : " + c.getListCounter()); if(isListItem(c,box)) { paintListItem(c,box); } // move the origin down to account for the contents plus the margin, borders, and padding oldBounds.y = oldBounds.y + block.height; c.setExtents(oldBounds); if(c.debugDrawBoxes()) { GraphicsUtil.drawBox(c.getGraphics(),block,Color.red); } }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/buggy/src/java/org/joshy/html/BoxLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 84, 1598, 12, 1042, 71, 16, 3514, 2147, 15329, 759, 89, 18, 84, 2932, 3514, 3744, 18, 84, 1598, 6, 15, 2147, 1769, 759, 15, 2147, 18, 21336, 7675, 588, 18948, 1435, 9078, 2225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 84, 1598, 12, 1042, 71, 16, 3514, 2147, 15329, 759, 89, 18, 84, 2932, 3514, 3744, 18, 84, 1598, 6, 15, 2147, 1769, 759, 15, 2147, 18, 21336, 7675, 588, 18948, 1435, 9078, 2225, ...
case OPC_invokestatic :
case Opcodes.OPC_invokestatic :
final public void invoke(int opcode, int argsSize, int returnTypeSize, char[] declaringClass, char[] selector, char[] signature) { countLabels = 0; int argCount = argsSize; switch(opcode) { case OPC_invokeinterface : if (classFileOffset + 4 >= bCodeStream.length) { resizeByteArray(); } position +=3; bCodeStream[classFileOffset++] = OPC_invokeinterface; writeUnsignedShort(constantPool.literalIndexForMethod(declaringClass, selector, signature, true)); argCount++; bCodeStream[classFileOffset++] = (byte) argCount; bCodeStream[classFileOffset++] = 0; break; case OPC_invokevirtual : case OPC_invokespecial : if (classFileOffset + 2 >= bCodeStream.length) { resizeByteArray(); } position++; bCodeStream[classFileOffset++] = (byte) opcode; writeUnsignedShort(constantPool.literalIndexForMethod(declaringClass, selector, signature, false)); argCount++; break; case OPC_invokestatic : if (classFileOffset + 2 >= bCodeStream.length) { resizeByteArray(); } position++; bCodeStream[classFileOffset++] = OPC_invokestatic; writeUnsignedShort(constantPool.literalIndexForMethod(declaringClass, selector, signature, false)); } stackDepth += returnTypeSize - argCount; if (stackDepth > stackMax) { stackMax = stackDepth; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 4356, 12, 474, 11396, 16, 509, 833, 1225, 16, 509, 9424, 1225, 16, 1149, 8526, 3496, 14682, 16, 1149, 8526, 3451, 16, 1149, 8526, 3372, 13, 288, 202, 1883, 5888, 273, 374, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 4356, 12, 474, 11396, 16, 509, 833, 1225, 16, 509, 9424, 1225, 16, 1149, 8526, 3496, 14682, 16, 1149, 8526, 3451, 16, 1149, 8526, 3372, 13, 288, 202, 1883, 5888, 273, 374, 31...
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( bits.length > 0 ) { bits[bits.length-1] &= (0xff << padCount); } int padBits; int numBytes; if( removeTrailingZeroes ) { numBytes = bits.length; for( ; numBytes > 0; --numBytes) { if( bits[numBytes-1] != 0 ) { break; } } if( numBytes == 0 ) { padBits = 0; } else { for( padBits=0; padBits < 8; ++padBits ) { if( (bits[numBytes-1] & (1 << padBits)) != 0 ) { break; } } Assert._assert(padBits >=0 && padBits <= 7); } } else { padBits = padCount; numBytes = bits.length; } ASN1Header head = new ASN1Header(implicitTag, FORM, numBytes+1); head.encode(ostream); ostream.write(padBits); ostream.write(bits, 0, numBytes);
public void encode(OutputStream ostream) throws IOException { encode(TAG, ostream);
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { // force all unused bits to be zero, in support of DER standard. if( bits.length > 0 ) { bits[bits.length-1] &= (0xff << padCount); } int padBits; int numBytes; if( removeTrailingZeroes ) { // first pare off empty bytes numBytes = bits.length; for( ; numBytes > 0; --numBytes) { if( bits[numBytes-1] != 0 ) { break; } } // Now compute the number of unused bits. This includes any // trailing zeroes, whether they are significant or not. if( numBytes == 0 ) { padBits = 0; } else { for( padBits=0; padBits < 8; ++padBits ) { if( (bits[numBytes-1] & (1 << padBits)) != 0 ) { break; } } Assert._assert(padBits >=0 && padBits <= 7); } } else { // Don't remove trailing zeroes. Just write the bits out as-is. padBits = padCount; numBytes = bits.length; } ASN1Header head = new ASN1Header(implicitTag, FORM, numBytes+1); head.encode(ostream); ostream.write(padBits); ostream.write(bits, 0, numBytes); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/2cdff0bb4fc744fc5316a589a4ef7a2007c38a64/BIT_STRING.java/buggy/security/jss/org/mozilla/jss/asn1/BIT_STRING.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2017, 12, 1805, 10592, 1805, 16, 8962, 320, 3256, 13, 3639, 1216, 1860, 565, 288, 3639, 368, 2944, 777, 10197, 4125, 358, 506, 3634, 16, 316, 2865, 434, 21801, 4529, 18, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2017, 12, 1805, 10592, 1805, 16, 8962, 320, 3256, 13, 3639, 1216, 1860, 565, 288, 3639, 368, 2944, 777, 10197, 4125, 358, 506, 3634, 16, 316, 2865, 434, 21801, 4529, 18, 3639, ...
IdeEventQueue.getInstance().flushQueue();
public void startBlocking() { ApplicationManager.getApplication().assertIsDispatchThread(); LOG.assertTrue(!isRunning()); LOG.assertTrue(!myStoppedAlready); enterModality(); IdeEventQueue.getInstance().flushQueue(); IdeEventQueue.getInstance().pumpEventsForHierarchy(myDialog.myPanel, new Condition<AWTEvent>() { public boolean value(final AWTEvent object) { if (myShouldShowCancel && object instanceof KeyEvent && object.getID() == KeyEvent.KEY_PRESSED && ((KeyEvent)object).getKeyCode() == KeyEvent.VK_ESCAPE && ((KeyEvent)object).getModifiers() == 0) { SwingUtilities.invokeLater(new Runnable() { public void run() { ProgressWindow.this.cancel(); } }); } return myStared && !isRunning(); } }); exitModality(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4ff905aa4558837df355c6f1295fee2e9db0959e/ProgressWindow.java/clean/source/com/intellij/openapi/progress/util/ProgressWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 787, 8728, 1435, 288, 565, 4257, 1318, 18, 588, 3208, 7675, 11231, 2520, 5325, 3830, 5621, 565, 2018, 18, 11231, 5510, 12, 5, 291, 7051, 10663, 565, 2018, 18, 11231, 5510, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 8728, 1435, 288, 565, 4257, 1318, 18, 588, 3208, 7675, 11231, 2520, 5325, 3830, 5621, 565, 2018, 18, 11231, 5510, 12, 5, 291, 7051, 10663, 565, 2018, 18, 11231, 5510, 12, ...
for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { if (!neighboors[i].getFlag(CDKConstants.ISAROMATIC)) {
for (int i = 0; i < neighbours.length; i++) { if (neighbours[i].getSymbol().equals("C")) { if (!neighbours[i].getFlag(CDKConstants.ISAROMATIC)) {
private int getCarbonsCount(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighboors = ac.getConnectedAtoms(atom); int ccounter = 0; for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { if (!neighboors[i].getFlag(CDKConstants.ISAROMATIC)) { ccounter += 1; } } } return ccounter; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/11cd872c3dbcc51a117ad375706e7a5334b88daa/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1927, 6779, 7008, 1380, 12, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 3179, 13, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1927, 6779, 7008, 1380, 12, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 3179, 13, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, ...
recorder = getPageRecorder(pageName); recorderPageVersion = recorder.getVersion(); if (!pageVersion.equals(recorderPageVersion)) cycle.setAttribute(IApplicationService.ENCODED_PAGE_VERSION_ATTRIBUTE_NAME, pageVersion); page = cycle.getPage(pageName);
page = cycle.getPage(pageName);
private void serviceDirect(IRequestCycle cycle, ResponseOutputStream output) throws RequestCycleException, ServletException, IOException { String pageName; String componentPath; IResponseWriter writer; RequestContext context; String pageVersion; IPageRecorder recorder; String recorderPageVersion; IComponent component; Direct direct; String[] parameters = null; IPage page; IMonitor monitor; int pathInfoCount; int i; monitor = cycle.getMonitor(); // If the context is new on an action URL, then the session // truly expired and we want to redirect to the // timeout page to advise the user. context = cycle.getRequestContext(); pageName = context.getPathInfo(1); pageVersion = context.getPathInfo(2); componentPath = context.getPathInfo(3); if (monitor != null) monitor.serviceBegin("direct", pageName + "/" + componentPath); if (context.getSession().isNew()) throw new StaleSessionException(); recorder = getPageRecorder(pageName); recorderPageVersion = recorder.getVersion(); // Just because the encoded state doesn't match the current state is no reason to // just throw it out. Record (for the component's listener) the // encoded page state. If it is interested (most components that don't care about // dynamic page state don't care about perstant page state either), it can throw // the StaleLinkException or otherwise react or redirect. if (!pageVersion.equals(recorderPageVersion)) cycle.setAttribute(IApplicationService.ENCODED_PAGE_VERSION_ATTRIBUTE_NAME, pageVersion); page = cycle.getPage(pageName); // Allow the page to validate that the user is allowed to visit. This is simple // protected from malicious users who hack the URLs directly, or make inappropriate // use of the back button. page.validate(cycle); cycle.setPage(page); component = page.getNestedComponent(componentPath); try { direct = (Direct)component; } catch (ClassCastException e) { throw new RequestCycleException( "Component " + pageName + "/" + componentPath + " is not type Direct.", component, cycle, e); } pathInfoCount = context.getPathInfoCount(); // Get any parameters encoded in the URL. if (pathInfoCount > 4) { parameters = new String[pathInfoCount - 4]; for (i = 4; i < pathInfoCount; i++) parameters[i - 4] = context.getPathInfo(i); } direct.trigger(cycle, parameters); // Render the response. render(cycle, output); if (monitor != null) monitor.serviceEnd("direct"); }
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/4bd7cd7909fad566501d7131e586a05b82ae56ff/AbstractApplication.java/buggy/framework/src/com/primix/tapestry/app/AbstractApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1156, 5368, 12, 45, 691, 13279, 8589, 16, 2306, 4632, 876, 13, 202, 15069, 1567, 13279, 503, 16, 16517, 16, 1860, 202, 95, 202, 202, 780, 30398, 31, 202, 202, 780, 1794,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1156, 5368, 12, 45, 691, 13279, 8589, 16, 2306, 4632, 876, 13, 202, 15069, 1567, 13279, 503, 16, 16517, 16, 1860, 202, 95, 202, 202, 780, 30398, 31, 202, 202, 780, 1794,...
ZimbraLog.mailbox.info("setting contact count to " + stats.contacts + " (was " + mData.contacts + ") for mailbox " + mId);
ZimbraLog.mailbox.debug("setting contact count to " + stats.contacts + " (was " + mData.contacts + ") for mailbox " + mId);
private void loadFoldersAndTags() throws ServiceException { if (mFolderCache != null && mTagCache != null) return; ZimbraLog.cache.debug("Initializing folder and tag caches for mailbox " + getId()); try { Map<Integer, MailItem.UnderlyingData> folderData = (mFolderCache == null ? new HashMap<Integer, MailItem.UnderlyingData>() : null); Map<Integer, MailItem.UnderlyingData> tagData = (mTagCache == null ? new HashMap<Integer, MailItem.UnderlyingData>() : null); MailboxData stats = DbMailItem.getFoldersAndTags(this, folderData, tagData); if (stats != null) { if (mData.size != stats.size) { mCurrentChange.mDirty.recordModified(this, Change.MODIFIED_SIZE); ZimbraLog.mailbox.info("setting mailbox size to " + stats.size + " (was " + mData.size + ") for mailbox " + mId); mData.size = stats.size; } if (mData.contacts != stats.contacts) { ZimbraLog.mailbox.info("setting contact count to " + stats.contacts + " (was " + mData.contacts + ") for mailbox " + mId); mData.contacts = stats.contacts; } } if (folderData != null) { mFolderCache = new HashMap<Integer, Folder>(); // create the folder objects and, as a side-effect, populate the new cache for (MailItem.UnderlyingData ud : folderData.values()) MailItem.constructItem(this, ud); // establish the folder hierarchy for (Folder folder : mFolderCache.values()) { Folder parent = mFolderCache.get(folder.getParentId()); // FIXME: side effect of this is that parent is marked as dirty... if (parent != null) parent.addChild(folder); } } if (tagData != null) { mTagCache = new HashMap<Object, Tag>(); // create the tag objects and, as a side-effect, populate the new cache for (MailItem.UnderlyingData ud : tagData.values()) new Tag(this, ud); // flags don't change and thus can be reused in the new cache for (int i = 0; i < mFlags.length; i++) { if (mFlags[i] == null) continue; ZimbraLog.mailbox.debug(i + ": " + mFlags[i]); cache(mFlags[i]); } } } catch (ServiceException e) { mTagCache = null; mFolderCache = null; throw e; } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/b9cafee2f96c1684fb2de314f7a0fb90b0f0b0c2/Mailbox.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 14885, 1876, 3453, 1435, 1216, 16489, 288, 3639, 309, 261, 81, 3899, 1649, 480, 446, 597, 312, 1805, 1649, 480, 446, 13, 5411, 327, 31, 3639, 2285, 381, 15397, 1343, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 14885, 1876, 3453, 1435, 1216, 16489, 288, 3639, 309, 261, 81, 3899, 1649, 480, 446, 597, 312, 1805, 1649, 480, 446, 13, 5411, 327, 31, 3639, 2285, 381, 15397, 1343, 18, ...
scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) );
protected final double adjustVerticalDueToHorizontal( double dBlockY, double dBlockHeight, AllAxes aax ) throws ChartException, IllegalArgumentException { final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final AutoScale scX = axPH.getScale( ); final AutoScale scY = axPV.getScale( ); final int iXLabelLocation = axPH.getLabelPosition( ); final int iYLabelLocation = axPV.getLabelPosition( ); final int iXTitleLocation = axPH.getTitlePosition( ); final Label laXAxisTitle = axPH.getTitle( ); final Label laYAxisLabels = axPV.getLabel( ); final int iXTickStyle = axPH.getCombinedTickStyle( ); final IntersectionValue iv = axPH.getIntersectionValue( ); // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS AND // AXIS-PLOT SPACING double dXAxisLabelsThickness = scX.computeAxisLabelThickness( ids, axPH.getLabel( ), HORIZONTAL ); double dXAxisTitleThickness = 0; if ( laXAxisTitle.isVisible( ) ) { final String sPreviousValue = laXAxisTitle.getCaption( ).getValue( ); laXAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); // EXTERNALIZE try { dXAxisTitleThickness = computeBox( ids, iXTitleLocation, laXAxisTitle, 0, 0 ).getHeight( ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } finally { laXAxisTitle.getCaption( ).setValue( sPreviousValue ); // RESTORE } } double dY = getLocation( scY, iv ), dY1 = dY, dY2 = dY; // X-AXIS BAND // VERTICAL // CO-ORDINATES final boolean bTicksAbove = ( iXTickStyle & TICK_ABOVE ) == TICK_ABOVE; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final boolean bTicksBelow = ( iXTickStyle & TICK_BELOW ) == TICK_BELOW; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final double dAppliedXAxisPlotSpacing = ( iv.iType == IntersectionValue.MAX || iv.iType == IntersectionValue.MIN ) ? dXAxisPlotSpacing : 0; // COMPUTE VALUES FOR y1, y, y2 // y = VERTICAL LOCATION OF X-AXIS ALONG PLOT // y1 = UPPER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, SPACING) // y2 = LOWER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, SPACING) if ( iv.iType == IntersectionValue.MAX ) { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MIN' dY -= dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksAbove ) { dY1 -= TICK_SIZE; } if ( iXLabelLocation == ABOVE ) { dY1 -= dXAxisLabelsThickness; dY2 += Math.max( bTicksBelow ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } else if ( iXLabelLocation == BELOW ) { dY2 += Math.max( ( bTicksBelow ? TICK_SIZE : 0 ) + dXAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } // ENSURE THAT WE DON'T GO ABOVE THE UPPER PLOT BLOCK EDGE if ( dY1 < dBlockY ) { final double dDelta = ( dBlockY - dY1 ); dY1 = dBlockY; dY += dDelta; dY2 += dDelta; } double dDeltaY1 = dY - dY1; double dDeltaY2 = dY2 - dY; // COMPUTE THE X-AXIS BAND THICKNESS AND ADJUST Y2 FOR LABELS BELOW dXAxisLabelsThickness = 0; // REUSE VARIABLE if ( iXLabelLocation == ABOVE ) { // X-AXIS BAND IS (y1 -> y2) dXAxisLabelsThickness = dY2 - dY1; } else if ( iXLabelLocation == BELOW ) { // X-AXIS BAND IS (y1 -> (y+AxisPlotSpacing)) dY2 = ( dY + dAppliedXAxisPlotSpacing ); dXAxisLabelsThickness = dY2 - dY1; } // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END if ( dXAxisLabelsThickness > scY.getEndShift( ) ) { // REDUCE scY's ENDPOINT TO FIT THE X-AXIS AT THE TOP scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); double dStart = scY.getStart( ), dEnd = dY2 - scY.getEndShift( ); scY.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS // IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if (!scY.zoomOut( )) { break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } } dY -= insCA.getTop( ); dY1 = dY - dDeltaY1; dY2 = dY + dDeltaY2; axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } else if ( iv.iType == IntersectionValue.MIN ) { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MAX' dY += dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksBelow ) { dY2 += TICK_SIZE; } if ( iXLabelLocation == ABOVE ) { dY1 -= Math.max( ( bTicksAbove ? TICK_SIZE : 0 ) + dXAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } else if ( iXLabelLocation == BELOW ) { dY2 += dXAxisLabelsThickness; dY1 -= Math.max( bTicksAbove ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } // ENSURE THAT WE DON'T GO BELOW THE LOWER PLOT BLOCK EDGE if ( dY2 > dBlockY + dBlockHeight ) { final double dDelta = ( dY2 - ( dBlockY + dBlockHeight ) ); dY2 = dBlockY + dBlockHeight; dY -= dDelta; dY1 -= dDelta; } double dDeltaY1 = dY - dY1; double dDeltaY2 = dY2 - dY; // COMPUTE THE X-AXIS BAND THICKNESS AND ADJUST Y2 FOR LABELS BELOW dXAxisLabelsThickness = 0; // REUSE VARIABLE if ( iXLabelLocation == ABOVE ) { // X-AXIS BAND IS ((y+AxisPlotSpacing) -> y2) dY1 = ( dY - dAppliedXAxisPlotSpacing ); dXAxisLabelsThickness = dY2 - dY1; } else if ( iXLabelLocation == BELOW ) { // X-AXIS BAND IS (y1 -> y2) dXAxisLabelsThickness = dY2 - dY1; } // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // LOWER END if ( dXAxisLabelsThickness > scY.getStartShift( ) ) { // REDUCE scY's STARTPOINT TO FIT THE X-AXIS AT THE TOP scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE double dStart = dY1 + scY.getStartShift( ), dEnd = scY.getEnd( ); scY.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS // IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if (!scY.zoomOut( )) { break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } } // MOVE THE BAND DOWNWARDS BY INSETS.BOTTOM dY += insCA.getBottom( ); dY1 = dY - dDeltaY1; dY2 = dY + dDeltaY2; // SET THE AXIS TITLE's BOX TOP CO-ORDINATE axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } else { double dDeltaY1 = 0, dDeltaY2 = 0; if ( iXLabelLocation == ABOVE ) { dY1 -= ( bTicksAbove ? TICK_SIZE : 0 ) + dXAxisLabelsThickness; dY2 += ( bTicksBelow ? TICK_SIZE : 0 ); if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } dDeltaY1 = dY - dY1; dDeltaY2 = dY2 - dY; // CHECK IF UPPER EDGE OF X-AXIS BAND GOES ABOVE PLOT UPPER EDGE if ( dY1 < dBlockY ) { final Object[] oaMinMax = scY.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE TOP EDGE // OF THE X-AXIS LABELS WITH THE TOP EDGE OF THE PLOT AND/OR // ENSURE THAT THE END POINT OF THE Y-AXIS SCALE IS SUITABLY // POSITIONED do { // CANCEL OUT THE END LABEL SHIFT COMPUTATIONS FROM THE // Y-AXIS scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE scY.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. Y-AXIS // ENDPOINT double[] da = scY.getEndPoints( ); double dT_RI = dBlockY - dY1; // THRESHOLD - // REQUESTEDINTERSECTION double dAMin_AMax = da[0] - da[1]; double dAMin_RI = da[0] - dY; double dStart = da[0]; double dEnd = ( dT_RI / dAMin_RI ) * dAMin_AMax + da[1]; if ( dEnd < dBlockY ) { dEnd = dBlockY; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if (!scY.zoomOut( )) { bForceBreak = true; break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } } dY = getLocation( scY, iv ); dY1 = dY - dDeltaY1; // RE-CALCULATE X-AXIS BAND // UPPER // EDGE dY2 = dY + dDeltaY2; // REDUNDANT: RE-CALCULATE // X-AXIS // BAND LOWER EDGE } while ( Math.abs( dY1 - dBlockY ) > 1 && !bForceBreak ); } } else if ( iXLabelLocation == BELOW ) { dY1 -= ( bTicksAbove ? TICK_SIZE : 0 ); dY2 += ( bTicksBelow ? TICK_SIZE : 0 ) + dXAxisLabelsThickness; if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } dDeltaY1 = dY - dY1; dDeltaY2 = dY2 - dY; // CHECK IF LOWER EDGE OF X-AXIS BAND GOES BELOW PLOT LOWER EDGE if ( dY2 > dBlockY + dBlockHeight ) { final Object[] oaMinMax = scY.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE TOP EDGE // OF THE X-AXIS LABELS WITH THE TOP EDGE OF THE PLOT AND/OR // ENSURE THAT THE END POINT OF THE Y-AXIS SCALE IS SUITABLY // POSITIONED do { // CANCEL OUT THE END LABEL SHIFT COMPUTATIONS FROM THE // Y-AXIS scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE scY.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. Y-AXIS // ENDPOINT double[] da = scY.getEndPoints( ); double dX2_X1 = dY2 - ( dBlockY + dBlockHeight ); // THRESHOLD // - // REQUESTEDINTERSECTION double dAMin_AMax = da[0] - da[1]; double dX2_AMax = dY - da[1]; double dStart = da[0] - ( dX2_X1 / dX2_AMax ) * dAMin_AMax; double dEnd = da[1]; if ( dStart > dBlockY + dBlockHeight ) { dStart = dBlockY + dBlockHeight; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if (!scY.zoomOut( )) { bForceBreak = true; break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } } dY = getLocation( scY, iv ); dY2 = dY + dDeltaY2; // RE-CALCULATE X-AXIS BAND // LOWER // EDGE dY1 = dY - dDeltaY1; // RE-CALCULATE X-AXIS BAND // LOWER // EDGE } while ( Math.abs( dY2 - ( dBlockY + dBlockHeight ) ) > 1 && !bForceBreak ); } } axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } return dY; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/536b54a46b25aa99e427a2fbd8217e09108c905a/PlotWithAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWithAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 1645, 5765, 15704, 30023, 774, 14457, 12, 1645, 302, 1768, 61, 16, 1082, 202, 9056, 302, 1768, 2686, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1645, 5765, 15704, 30023, 774, 14457, 12, 1645, 302, 1768, 61, 16, 1082, 202, 9056, 302, 1768, 2686, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237...
int len; while ((len = deflater.deflate(buffer, 0, buffer.length)) > 0) { out.write(buffer, 0, len, false); }
while ((len = deflater.deflate(buffer, 0, buffer.length)) > 0) { out.write(buffer, 0, len, false); }
public Value gzdeflate(InputStream data, @Optional("6") int level) { try { Deflater deflater = new Deflater(level, true); TempBuffer buf = TempBuffer.allocate(); byte []buffer = buf.getBuffer(); boolean isFinished = false; TempStream out = new TempStream(); while (! isFinished) { while (! isFinished && deflater.needsInput()) { int len = data.read(buffer, 0, buffer.length); if (len > 0) { deflater.setInput(buffer, 0, len); } else { isFinished = true; deflater.finish(); } } int len; while ((len = deflater.deflate(buffer, 0, buffer.length)) > 0) { out.write(buffer, 0, len, false); } } deflater.end(); TempBuffer.free(buf); return new TempBufferStringValue(out.getHead()); } catch (Exception e) { throw QuercusModuleException.create(e); } }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/2b1a0abf1121df3ae1f19873d5372457b95c50be/ZlibModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/zlib/ZlibModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1445, 14136, 536, 20293, 12, 4348, 501, 16, 7682, 632, 6542, 2932, 26, 7923, 509, 1801, 13, 225, 288, 565, 775, 288, 1377, 1505, 2242, 2045, 1652, 29082, 273, 394, 1505, 2242, 2045,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1445, 14136, 536, 20293, 12, 4348, 501, 16, 7682, 632, 6542, 2932, 26, 7923, 509, 1801, 13, 225, 288, 565, 775, 288, 1377, 1505, 2242, 2045, 1652, 29082, 273, 394, 1505, 2242, 2045,...
/* FIXME: Currently this thread may block forever if it called from the event dispatch thread, so we only do this for FileDialog which only depends on a signal which is delivered in the Gtk thread. Remove this test when we add code to start another event dispatch thread. */ if ((Thread.currentThread () instanceof EventDispatchThread) && !(this instanceof FileDialog)) return;
/* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ()) { EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue(); eq2 = new EventQueue (); eq.push (eq2); }
show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* FIXME: Currently this thread may block forever if it called from the event dispatch thread, so we only do this for FileDialog which only depends on a signal which is delivered in the Gtk thread. Remove this test when we add code to start another event dispatch thread. */ if ((Thread.currentThread () instanceof EventDispatchThread) && !(this instanceof FileDialog)) return; try { blocked = true; wait (); blocked = false; } catch (InterruptedException e) { blocked = false; return; } } }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/ebc2b28b731d6c611104f023d2c8f0ca6396c1bf/Dialog.java/clean/libjava/java/awt/Dialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2405, 1435, 95, 225, 2240, 18, 4500, 5621, 225, 309, 261, 291, 20191, 10756, 565, 288, 1377, 368, 971, 1818, 12188, 261, 464, 14547, 13, 2537, 327, 1377, 309, 261, 23156, 13, 202, 2463, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2405, 1435, 95, 225, 2240, 18, 4500, 5621, 225, 309, 261, 291, 20191, 10756, 565, 288, 1377, 368, 971, 1818, 12188, 261, 464, 14547, 13, 2537, 327, 1377, 309, 261, 23156, 13, 202, 2463, 31, ...
for (int i = offset; i < length; )
for (int i = start; i < limit; )
public void disAssemble (ClassTypeWriter dst, int offset, int length) { boolean wide = false; for (int i = offset; i < length; ) { int oldpc = i++; int op = code[oldpc] & 0xff; String str = Integer.toString(oldpc); int printConstant = 0; int j = str.length(); while (++j <= 3) dst.print(' '); dst.print(str); dst.print(": "); // We do a rough binary partition of the opcodes. if (op < 120) { if (op < 87) { if (op < 3) print("nop;aconst_null;iconst_m1;", op, dst); else if (op < 9) { dst.print("iconst_"); dst.print(op-3); } else if (op < 16) // op >= 9 [lconst_0] && op <= 15 [dconst_1] { char typ; if (op < 11) { typ = 'l'; op -= 9; } else if (op < 14) { typ = 'f'; op -= 11; } else { typ = 'd'; op -= 14; } dst.print(typ); dst.print("const_"); dst.print(op); } else if (op < 21) { if (op < 18) // op >= 16 [bipush] && op <= 17 [sipush] { print("bipush ;sipush ;", op-16, dst); int constant; if (op == 16) constant = code[i++]; else { constant = (short) readUnsignedShort(i); i+=2;} dst.print(constant); } else // op >= 18 [ldc] && op <= 20 [ldc2_w] { printConstant = op == 18 ? 1 : 2; print("ldc;ldc_w;ldc2_w;", op-18, dst); } } else // op >= 21 && op < 87 { String load_or_store; if (op < 54) { load_or_store = "load"; } else { load_or_store = "store"; op -=(54-21); } int index; // -2 if array op; -1 if index follows if (op < 26) { index = -1; op -= 21; } else if (op < 46) { op -= 26; index = op % 4; op >>= 2; } else { index = -2; op -= 46; } dst.print("ilfdabcs".charAt(op)); if (index == -2) dst.write('a'); dst.print(load_or_store); if (index >= 0) { dst.write('_'); dst.print(index); } else if (index == -1) { if (wide) { index = readUnsignedShort(i); i += 2; } else { index = code[i] & 0xff; i++; } wide = false; dst.print(' '); dst.print(index); } } } else // op >= 87 && op < 120 { if (op < 96) print("pop;pop2;dup;dup_x1;dup_x2;dup2;dup2_x1;dup2_x2;swap;" , op-87, dst); else // op >= 96 [iadd] && op <= 119 [dneg] { dst.print("ilfda".charAt((op-96) % 4)); print("add;sub;mul;div;rem;neg;", (op-96)>>2, dst); } } } else // op >= 120 { if (op < 170) { if (op < 132) // op >= 120 [ishl] && op <= 131 [lxor] { dst.print((op & 1) == 0 ? 'i' : 'l'); print("shl;shr;ushr;and;or;xor;", (op-120)>>1, dst); } else if (op == 132) // iinc { int var_index; int constant; dst.print("iinc"); if (! wide) { var_index = 0xff & code[i++]; constant = code[i++]; } else { var_index = readUnsignedShort(i); i += 2; constant = (short) readUnsignedShort(i); i += 2; wide = false; } dst.print(' '); dst.print(var_index); dst.print(' '); dst.print(constant); } else if (op < 148) // op >= 133 [i2l] && op <= 147 [i2s] { dst.print("ilfdi".charAt((op-133) / 3)); dst.print('2'); dst.print("lfdifdildilfbcs".charAt(op-133)); } else if (op < 153) // op >= 148 [lcmp] && op <= 152 [dcmpg] print("lcmp;fcmpl;fcmpg;dcmpl;dcmpg;", op-148, dst); else if (op < 169) { if (op < 159) { dst.print("if"); print("eq;ne;lt;ge;gt;le;", op-153, dst); } else if (op < 167) { if (op < 165) { dst.print("if_icmp"); } else { dst.print("if_acmp"); op -= 165-159; } print("eq;ne;lt;ge;gt;le;", op-159, dst); } else print("goto;jsr;", op-167, dst); int delta = (short) readUnsignedShort(i); i += 2; dst.print(' '); dst.print(oldpc+delta); } else { int index; dst.print("ret "); if (wide) { index = readUnsignedShort(i); index += 2; } else { index = code[i] & 0xff; i++; } wide = false; dst.print(index); } } else { if (op < 172) // [tableswitch] or [lookupswitch] { i = (i + 3) & ~3; // skip 0-3 byte padding. int code_offset = readInt(i); i += 4; if (op == 170) { dst.print("tableswitch"); int low = readInt(i); i += 4; int high = readInt(i); i += 4; dst.print(" low: "); dst.print(low); dst.print(" high: "); dst.print(high); dst.print(" default: "); dst.print(oldpc+code_offset); for (; low <= high; low++) { code_offset = readInt(i); i += 4; dst.println(); dst.print(" "); dst.print(low); dst.print(": "); dst.print(oldpc + code_offset); } } else { dst.print("lookupswitch"); int npairs = readInt(i); i += 4; dst.print(" npairs: "); dst.print(npairs); dst.print(" default: "); dst.print(oldpc+code_offset); while (--npairs >= 0) { int match = readInt(i); i += 4; code_offset = readInt(i); i += 4; dst.println(); dst.print(" "); dst.print(match); dst.print(": "); dst.print(oldpc + code_offset); } } } else if (op < 178) // op >= 172 [ireturn] && op <= 177 [return] { if (op < 177) dst.print("ilfda".charAt(op-172)); dst.print("return"); } else if (op < 182) // op >= 178 [getstatic] && op <= 181 [putfield] { print("getstatic;putstatic;getfield;putfield;", op-178, dst); printConstant = 2; } else if (op < 185) // op >= 182 && op <= 185 [invoke*] { dst.print("invoke"); print("virtual;special;static;", op-182, dst); printConstant = 2; } else if (op == 185) // invokeinterface { dst.print("invokeinterface ("); int index = readUnsignedShort(i); i += 2; int args = 0xff & code[i]; i += 2; dst.print(args + " args)"); dst.printConstantOperand(index); } else if (op < 196) { print("186;new;newarray;anewarray;arraylength;athrow;checkcast;instanceof;monitorenter;monitorexit;", op-186, dst); if (op == 187 || op == 189 || op == 192 || op == 193) printConstant = 2; else if (op == 188) // newarray { int type = code[i++]; dst.print(' '); if (type >= 4 && type <= 11) print("boolean;char;float;double;byte;short;int;long;", type-4, dst); else dst.print(type); } } else if (op == 196) // wide { dst.print("wide"); wide = true; } else if (op == 197) { dst.print("multianewarray"); int index = readUnsignedShort(i); i += 2; dst.printConstantOperand(index); int dims = 0xff & code[i++]; dst.print(' '); dst.print(dims); } else if (op < 200) { print("ifnull;ifnonnull;", op-198, dst); int delta = (short) readUnsignedShort(i); i += 2; dst.print(' '); dst.print(oldpc+delta); } else if (op < 202) { print("goto_w;jsr_w;", op-200, dst); int delta = readInt(i); i += 4; dst.print(' '); dst.print(oldpc+delta); } else dst.print(op); } } if (printConstant > 0) { int index; if (printConstant == 1) index = 0xff & code[i++]; else { index = readUnsignedShort(i); i += 2; } dst.printConstantOperand(index); } dst.println(); } }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/50aae2053d3e7c936750da14a5887b2c333a54ab/CodeAttr.java/buggy/gnu/bytecode/CodeAttr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1015, 1463, 10045, 261, 18328, 2289, 3046, 16, 509, 1384, 16, 509, 769, 13, 225, 288, 565, 1250, 14812, 273, 629, 31, 565, 364, 261, 474, 277, 273, 787, 31, 225, 277, 411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1015, 1463, 10045, 261, 18328, 2289, 3046, 16, 509, 1384, 16, 509, 769, 13, 225, 288, 565, 1250, 14812, 273, 629, 31, 565, 364, 261, 474, 277, 273, 787, 31, 225, 277, 411, ...
return (GenericObject) myListIterator.next();
return (GenericObject) iterator.next();
protected GenericObject next() { if (myListIterator == null) { myListIterator = this.listIterator(0); } try { return (GenericObject) myListIterator.next(); } catch (NoSuchElementException ex) { myListIterator = null; return null; } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/0cf0af6bd3a566b6ef1db8ed90955fa3fc3baccc/GenericObjectList.java/clean/src/gov/nist/core/GenericObjectList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7928, 921, 1024, 1435, 288, 202, 202, 430, 261, 4811, 682, 3198, 422, 446, 13, 288, 1082, 202, 4811, 682, 3198, 273, 333, 18, 1098, 3198, 12, 20, 1769, 202, 202, 97, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7928, 921, 1024, 1435, 288, 202, 202, 430, 261, 4811, 682, 3198, 422, 446, 13, 288, 1082, 202, 4811, 682, 3198, 273, 333, 18, 1098, 3198, 12, 20, 1769, 202, 202, 97, 202, 2...
throw new TypeError(getRuntime(), "uninitialized Regexp");
throw getRuntime().newTypeError("uninitialized Regexp");
private void checkInitialized() { if (pattern == null) { throw new TypeError(getRuntime(), "uninitialized Regexp"); } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 11459, 1435, 288, 3639, 309, 261, 4951, 422, 446, 13, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 318, 13227, 17011, 8863, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 11459, 1435, 288, 3639, 309, 261, 4951, 422, 446, 13, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 318, 13227, 17011, 8863, 3639, 289, 565, 289, 2, -100, -100, -100, -1...
for (Iterator iter = this.componentRegistry.getComponentConnectors().iterator();iter.hasNext();) {
for (Iterator iter = this.registry.getComponentConnectors().iterator();iter.hasNext();) {
protected Set getInternalEndpoints() { Set answer = new HashSet(); for (Iterator iter = this.componentRegistry.getComponentConnectors().iterator();iter.hasNext();) { ComponentConnector cc = (ComponentConnector) iter.next(); answer.addAll(cc.getActiveEndpoints()); } return answer; }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/147052fceba4d3bb85729a9aef33f5d0245d2219/EndpointRegistry.java/clean/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1000, 16918, 10357, 1435, 288, 3639, 1000, 5803, 273, 394, 6847, 5621, 3639, 364, 261, 3198, 1400, 273, 333, 18, 9893, 18, 588, 1841, 7487, 87, 7675, 9838, 5621, 2165, 18, 5332, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 16918, 10357, 1435, 288, 3639, 1000, 5803, 273, 394, 6847, 5621, 3639, 364, 261, 3198, 1400, 273, 333, 18, 9893, 18, 588, 1841, 7487, 87, 7675, 9838, 5621, 2165, 18, 5332, 213...
copyActionPerformed(evt); }
copyActionPerformed(evt); }
public void actionPerformed(java.awt.event.ActionEvent evt) { copyActionPerformed(evt); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/47f15575ff1ed6af2f3bcf5291bed9664f7a82c5/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 6862, 202, 3530, 19449, 12, 73, 11734, 1769, 9506, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 6862, 202, 3530, 19449, 12, 73, 11734, 1769, 9506, 202, 97, 2, -100, -100, -100, -100, -100, -100...
public ToolEvent(Object source, InputSlot device, DoubleArray trafo) { this(source, device, null, trafo);
public ToolEvent(Object source, InputSlot device, AxisState axis) { this(source, device, axis, null);
public ToolEvent(Object source, InputSlot device, DoubleArray trafo) { this(source, device, null, trafo); }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/6ff1071e4fe0caa04893342861ae7a09d2cd1417/ToolEvent.java/buggy/src-tool/de/jreality/toolsystem/ToolEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13288, 1133, 12, 921, 1084, 16, 2741, 8764, 2346, 16, 3698, 1076, 1284, 617, 13, 288, 3639, 333, 12, 3168, 16, 2346, 16, 446, 16, 1284, 617, 1769, 565, 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, 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, 13288, 1133, 12, 921, 1084, 16, 2741, 8764, 2346, 16, 3698, 1076, 1284, 617, 13, 288, 3639, 333, 12, 3168, 16, 2346, 16, 446, 16, 1284, 617, 1769, 565, 289, 2, -100, -100, -100, ...
if (client.isMyTurn() && client.game.getPhase() != Game.PHASE_MOVEMENT) {
if (client.isMyTurn() && client.game.getPhase() != IGame.PHASE_MOVEMENT) {
public void gamePhaseChange(GamePhaseChangeEvent e) { // Are we ignoring events? if ( this.isIgnoringEvents() ) { return; } if (client.isMyTurn() && client.game.getPhase() != Game.PHASE_MOVEMENT) { endMyTurn(); } if (client.game.getPhase() == Game.PHASE_MOVEMENT) { setStatusBarText(Messages.getString("MovementDisplay.waitingForMovementPhase")); //$NON-NLS-1$ } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/f76b85e1165e7f2dc730b78b34cf2b925d97622d/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7920, 11406, 3043, 12, 12496, 11406, 20930, 425, 13, 288, 3639, 368, 12520, 732, 14398, 2641, 35, 3639, 309, 261, 333, 18, 291, 21702, 3783, 1435, 262, 288, 5411, 327, 31, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7920, 11406, 3043, 12, 12496, 11406, 20930, 425, 13, 288, 3639, 368, 12520, 732, 14398, 2641, 35, 3639, 309, 261, 333, 18, 291, 21702, 3783, 1435, 262, 288, 5411, 327, 31, 3639...
return RubyRegexp.newRegexp(runtime, unescapeString(stringPattern), 0);
return RubyRegexp.newRegexp(runtime, unescapeString(stringPattern), 0, null);
private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { isWhitespace = true; return RubyRegexp.newRegexp(runtime, "\\s+", 0); } if (args[0] instanceof RubyRegexp) { // Even if we have whitespace-only explicit regexp we do not // mark it as whitespace. Apparently, this is so ruby can // still get the do not ignore the front match behavior. return RubyRegexp.regexpValue(args[0]); } else { String stringPattern = RubyString.stringValue(args[0]).getValue(); if (stringPattern.equals(" ")) { isWhitespace = true; return RubyRegexp.newRegexp(runtime, "\\s+", 0); } else { return RubyRegexp.newRegexp(runtime, unescapeString(stringPattern), 0); } } }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/Split.java/buggy/src/org/jruby/util/Split.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 14621, 23420, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 23833, 273, 638, 31, 5411, 327, 19817, 14621, 18, 2704, 14621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 14621, 23420, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 23833, 273, 638, 31, 5411, 327, 19817, 14621, 18, 2704, 14621...
+ URLEncoder.encode(tb.getName(),
+ UIUtil.encodeBitstreamName(tb.getName(),
private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out .println("<td class=evenRowEvenCol><P><strong>Files in This Item:</strong></P>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<P>There are no files associated with this item.</P>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out .println("<table cellpadding=6><tr><th class=\"standard\">File</th>"); if (multiFile) { out.println("<th class=\"standard\">Description</th>"); } out .println("<th class=\"standard\">Size</th class=\"standard\"><th class=\"standard\">Format</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out .print("</td><td class=\"standard\"><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(URLEncoder.encode(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">View/Open</A></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<A TARGET=_blank HREF=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + URLEncoder.encode( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + URLEncoder.encode(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\"></A><BR>"); } } out.print(bsLink + "View/Open</A></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/3b6562bcedc661be2893bce0fd2902c9581bf940/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5...
HttpServletRequest request = ( HttpServletRequest ) runOptions
HttpServletRequest request = (HttpServletRequest) runOptions
public String runReport( IViewerReportDesignHandle design, String outputDocName, InputOptions runOptions, Map parameters ) throws ReportServiceException { IReportRunnable runnable; String reportDesignName = design.getFileName( ); HttpServletRequest request = ( HttpServletRequest ) runOptions .getOption( InputOptions.OPT_REQUEST ); Locale locale = ( Locale ) runOptions .getOption( InputOptions.OPT_LOCALE ); try { runnable = ReportEngineService.getInstance( ).openReportDesign( reportDesignName ); } catch ( EngineException e ) { throw new ReportServiceException( e.getLocalizedMessage( ) ); } Map parsedParams = getParsedParameters( design, runOptions, parameters ); try { ReportEngineService.getInstance( ).runReport( request, runnable, outputDocName, locale, ( HashMap ) parsedParams ); } catch ( RemoteException e ) { e.printStackTrace( ); throw new ReportServiceException( e.getLocalizedMessage( ) ); } return outputDocName; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4f2d0a24ff9ec8881defea107bb54374df18cb9c/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1086, 4820, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 780, 876, 1759, 461, 16, 2741, 1320, 1086, 1320, 16, 1635, 1472, 262, 1082, 202, 15069, 8706, 15133, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1086, 4820, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 780, 876, 1759, 461, 16, 2741, 1320, 1086, 1320, 16, 1635, 1472, 262, 1082, 202, 15069, 8706, 15133, 202...
return (AdjustmentListener[]) adjustmentListenerList.getListenerList();
return (AdjustmentListener[]) listenerList.getListeners(AdjustmentListener.class);
public AdjustmentListener[] getAdjustmentListeners() { return (AdjustmentListener[]) adjustmentListenerList.getListenerList(); }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JScrollBar.java/buggy/libjava/javax/swing/JScrollBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17720, 475, 2223, 8526, 336, 19985, 5583, 1435, 225, 288, 565, 327, 261, 19985, 2223, 63, 5717, 2991, 682, 18, 588, 5583, 12, 19985, 2223, 18, 1106, 1769, 225, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17720, 475, 2223, 8526, 336, 19985, 5583, 1435, 225, 288, 565, 327, 261, 19985, 2223, 63, 5717, 2991, 682, 18, 588, 5583, 12, 19985, 2223, 18, 1106, 1769, 225, 289, 2, -100, -100, ...
return (EReference) chartEClass.getEStructuralFeatures().get(12);
return (EReference) chartEClass.getEStructuralFeatures().get(11);
public EReference getChart_SampleData() { return (EReference) chartEClass.getEStructuralFeatures().get(12); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/ModelPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 2404, 336, 7984, 67, 8504, 751, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 4980, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 2499, 1769, 565, 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, 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, 512, 2404, 336, 7984, 67, 8504, 751, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 4980, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 2499, 1769, 565, 289, 2, -100, -100, -100, ...
EquipmentType.addType(createCLPROLRM5Ammo());
public static void initializeTypes() { // all level 1 ammo EquipmentType.addType(createISAC2Ammo()); EquipmentType.addType(createISAC5Ammo()); EquipmentType.addType(createISAC10Ammo()); EquipmentType.addType(createISAC20Ammo()); EquipmentType.addType(createISVehicleFlamerAmmo()); EquipmentType.addType(createISMGAmmo()); EquipmentType.addType(createISMGAmmoHalf()); EquipmentType.addType(createISLRM5Ammo()); EquipmentType.addType(createISLRM10Ammo()); EquipmentType.addType(createISLRM15Ammo()); EquipmentType.addType(createISLRM20Ammo()); EquipmentType.addType(createISSRM2Ammo()); EquipmentType.addType(createISSRM4Ammo()); EquipmentType.addType(createISSRM6Ammo()); // Start of Level2 Ammo EquipmentType.addType(createISSRM2InfernoAmmo()); EquipmentType.addType(createISSRM4InfernoAmmo()); EquipmentType.addType(createISSRM6InfernoAmmo()); EquipmentType.addType(createISSRM2FragAmmo()); EquipmentType.addType(createISSRM4FragAmmo()); EquipmentType.addType(createISSRM6FragAmmo()); EquipmentType.addType(createISLB2XAmmo()); EquipmentType.addType(createISLB5XAmmo()); EquipmentType.addType(createISLB10XAmmo()); EquipmentType.addType(createISLB20XAmmo()); EquipmentType.addType(createISLB2XClusterAmmo()); EquipmentType.addType(createISLB5XClusterAmmo()); EquipmentType.addType(createISLB10XClusterAmmo()); EquipmentType.addType(createISLB20XClusterAmmo()); EquipmentType.addType(createISUltra2Ammo()); EquipmentType.addType(createISUltra5Ammo()); EquipmentType.addType(createISUltra10Ammo()); EquipmentType.addType(createISUltra20Ammo()); EquipmentType.addType(createISRotary2Ammo()); EquipmentType.addType(createISRotary5Ammo()); EquipmentType.addType(createISPrecision2Ammo()); EquipmentType.addType(createISPrecision5Ammo()); EquipmentType.addType(createISPrecision10Ammo()); EquipmentType.addType(createISPrecision20Ammo()); EquipmentType.addType(createISArmorPiercing2Ammo()); EquipmentType.addType(createISArmorPiercing5Ammo()); EquipmentType.addType(createISArmorPiercing10Ammo()); EquipmentType.addType(createISArmorPiercing20Ammo()); EquipmentType.addType(createISFlechette2Ammo()); EquipmentType.addType(createISFlechette5Ammo()); EquipmentType.addType(createISFlechette10Ammo()); EquipmentType.addType(createISFlechette20Ammo()); EquipmentType.addType(createISGaussAmmo()); EquipmentType.addType(createISLTGaussAmmo()); EquipmentType.addType(createISHVGaussAmmo()); EquipmentType.addType(createISStreakSRM2Ammo()); EquipmentType.addType(createISStreakSRM4Ammo()); EquipmentType.addType(createISStreakSRM6Ammo()); EquipmentType.addType(createISMRM10Ammo()); EquipmentType.addType(createISMRM20Ammo()); EquipmentType.addType(createISMRM30Ammo()); EquipmentType.addType(createISMRM40Ammo()); EquipmentType.addType(createISAMSAmmo()); EquipmentType.addType(createISNarcAmmo()); EquipmentType.addType(createISNarcExplosiveAmmo()); EquipmentType.addType(createISFragLRM5Ammo()); EquipmentType.addType(createISFragLRM10Ammo()); EquipmentType.addType(createISFragLRM15Ammo()); EquipmentType.addType(createISFragLRM20Ammo()); EquipmentType.addType(createISThunderLRM5Ammo()); EquipmentType.addType(createISThunderLRM10Ammo()); EquipmentType.addType(createISThunderLRM15Ammo()); EquipmentType.addType(createISThunderLRM20Ammo()); EquipmentType.addType(createISThunderAugmentedLRM5Ammo()); EquipmentType.addType(createISThunderAugmentedLRM10Ammo()); EquipmentType.addType(createISThunderAugmentedLRM15Ammo()); EquipmentType.addType(createISThunderAugmentedLRM20Ammo()); EquipmentType.addType(createISThunderInfernoLRM5Ammo()); EquipmentType.addType(createISThunderInfernoLRM10Ammo()); EquipmentType.addType(createISThunderInfernoLRM15Ammo()); EquipmentType.addType(createISThunderInfernoLRM20Ammo()); EquipmentType.addType(createISThunderActiveLRM5Ammo()); EquipmentType.addType(createISThunderActiveLRM10Ammo()); EquipmentType.addType(createISThunderActiveLRM15Ammo()); EquipmentType.addType(createISThunderActiveLRM20Ammo()); EquipmentType.addType(createISThunderVibraLRM5Ammo()); EquipmentType.addType(createISThunderVibraLRM10Ammo()); EquipmentType.addType(createISThunderVibraLRM15Ammo()); EquipmentType.addType(createISThunderVibraLRM20Ammo()); EquipmentType.addType(createCLLB2XAmmo()); EquipmentType.addType(createCLLB5XAmmo()); EquipmentType.addType(createCLLB10XAmmo()); EquipmentType.addType(createCLLB20XAmmo()); EquipmentType.addType(createCLLB2XClusterAmmo()); EquipmentType.addType(createCLLB5XClusterAmmo()); EquipmentType.addType(createCLLB10XClusterAmmo()); EquipmentType.addType(createCLLB20XClusterAmmo()); EquipmentType.addType(createCLUltra2Ammo()); EquipmentType.addType(createCLUltra5Ammo()); EquipmentType.addType(createCLUltra10Ammo()); EquipmentType.addType(createCLUltra20Ammo()); EquipmentType.addType(createCLGaussAmmo()); EquipmentType.addType(createCLSRM2InfernoAmmo()); EquipmentType.addType(createCLSRM4InfernoAmmo()); EquipmentType.addType(createCLSRM6InfernoAmmo()); EquipmentType.addType(createCLSRM2FragAmmo()); EquipmentType.addType(createCLSRM4FragAmmo()); EquipmentType.addType(createCLSRM6FragAmmo()); EquipmentType.addType(createCLStreakSRM2Ammo()); EquipmentType.addType(createCLStreakSRM4Ammo()); EquipmentType.addType(createCLStreakSRM6Ammo()); EquipmentType.addType(createCLVehicleFlamerAmmo()); EquipmentType.addType(createCLMGAmmo()); EquipmentType.addType(createCLMGAmmoHalf()); EquipmentType.addType(createCLHeavyMGAmmo()); EquipmentType.addType(createCLHeavyMGAmmoHalf()); EquipmentType.addType(createCLLightMGAmmo()); EquipmentType.addType(createCLLightMGAmmoHalf()); EquipmentType.addType(createCLLRM5Ammo()); EquipmentType.addType(createCLLRM10Ammo()); EquipmentType.addType(createCLLRM15Ammo()); EquipmentType.addType(createCLLRM20Ammo()); EquipmentType.addType(createCLSRM2Ammo()); EquipmentType.addType(createCLSRM4Ammo()); EquipmentType.addType(createCLSRM6Ammo()); EquipmentType.addType(createCLAMSAmmo()); EquipmentType.addType(createCLNarcAmmo()); EquipmentType.addType(createCLNarcExplosiveAmmo()); EquipmentType.addType(createCLATM3Ammo()); EquipmentType.addType(createCLATM3ERAmmo()); EquipmentType.addType(createCLATM3HEAmmo()); EquipmentType.addType(createCLATM6Ammo()); EquipmentType.addType(createCLATM6ERAmmo()); EquipmentType.addType(createCLATM6HEAmmo()); EquipmentType.addType(createCLATM9Ammo()); EquipmentType.addType(createCLATM9ERAmmo()); EquipmentType.addType(createCLATM9HEAmmo()); EquipmentType.addType(createCLATM12Ammo()); EquipmentType.addType(createCLATM12ERAmmo()); EquipmentType.addType(createCLATM12HEAmmo()); EquipmentType.addType(createCLFragLRM5Ammo()); EquipmentType.addType(createCLFragLRM10Ammo()); EquipmentType.addType(createCLFragLRM15Ammo()); EquipmentType.addType(createCLFragLRM20Ammo()); EquipmentType.addType(createCLThunderLRM5Ammo()); EquipmentType.addType(createCLThunderLRM10Ammo()); EquipmentType.addType(createCLThunderLRM15Ammo()); EquipmentType.addType(createCLThunderLRM20Ammo()); EquipmentType.addType(createCLThunderAugmentedLRM5Ammo()); EquipmentType.addType(createCLThunderAugmentedLRM10Ammo()); EquipmentType.addType(createCLThunderAugmentedLRM15Ammo()); EquipmentType.addType(createCLThunderAugmentedLRM20Ammo()); EquipmentType.addType(createCLThunderInfernoLRM5Ammo()); EquipmentType.addType(createCLThunderInfernoLRM10Ammo()); EquipmentType.addType(createCLThunderInfernoLRM15Ammo()); EquipmentType.addType(createCLThunderInfernoLRM20Ammo()); EquipmentType.addType(createCLThunderActiveLRM5Ammo()); EquipmentType.addType(createCLThunderActiveLRM10Ammo()); EquipmentType.addType(createCLThunderActiveLRM15Ammo()); EquipmentType.addType(createCLThunderActiveLRM20Ammo()); EquipmentType.addType(createCLThunderVibraLRM5Ammo()); EquipmentType.addType(createCLThunderVibraLRM10Ammo()); EquipmentType.addType(createCLThunderVibraLRM15Ammo()); EquipmentType.addType(createCLThunderVibraLRM20Ammo()); // Start of BattleArmor ammo EquipmentType.addType( createBASRM2Ammo() ); EquipmentType.addType( createBASRM2OSAmmo() ); EquipmentType.addType( createBAInfernoSRMAmmo() ); EquipmentType.addType( createBAAdvancedSRM2Ammo() ); EquipmentType.addType( createBAMicroBombAmmo() ); EquipmentType.addType( createCLTorpedoLRM5Ammo() ); EquipmentType.addType( createFenrirSRM4Ammo() ); EquipmentType.addType( createBACompactNarcAmmo() ); EquipmentType.addType( createBAMineLauncherAmmo() ); EquipmentType.addType( createBALRM5Ammo() ); //Protomech ammo EquipmentType.addType(createCLPROSRM1Ammo()); EquipmentType.addType(createCLPROStreakSRM1Ammo()); EquipmentType.addType(createCLPROSRM2Ammo()); EquipmentType.addType(createCLPROStreakSRM2Ammo()); EquipmentType.addType(createCLPROSRM3Ammo()); EquipmentType.addType(createCLPROStreakSRM3Ammo()); EquipmentType.addType(createCLPROSRM4Ammo()); EquipmentType.addType(createCLPROStreakSRM4Ammo()); EquipmentType.addType(createCLPROSRM5Ammo()); EquipmentType.addType(createCLPROStreakSRM5Ammo()); EquipmentType.addType(createCLPROSRM6Ammo()); EquipmentType.addType(createCLPROStreakSRM6Ammo()); EquipmentType.addType(createCLPROLRM1Ammo()); EquipmentType.addType(createCLPROLRM2Ammo()); EquipmentType.addType(createCLPROLRM3Ammo()); EquipmentType.addType(createCLPROLRM4Ammo()); EquipmentType.addType(createCLPROLRM5Ammo()); EquipmentType.addType(createCLPROLRM6Ammo()); EquipmentType.addType(createCLPROLRM7Ammo()); EquipmentType.addType(createCLPROLRM8Ammo()); EquipmentType.addType(createCLPROLRM9Ammo()); EquipmentType.addType(createCLPROLRM10Ammo()); EquipmentType.addType(createCLPROLRM11Ammo()); EquipmentType.addType(createCLPROLRM12Ammo()); EquipmentType.addType(createCLPROLRM13Ammo()); EquipmentType.addType(createCLPROLRM14Ammo()); EquipmentType.addType(createCLPROLRM15Ammo()); EquipmentType.addType(createCLPROLRM16Ammo()); EquipmentType.addType(createCLPROLRM17Ammo()); EquipmentType.addType(createCLPROLRM18Ammo()); EquipmentType.addType(createCLPROLRM19Ammo()); EquipmentType.addType(createCLPROLRM20Ammo()); // cache types that share a launcher for loadout purposes for (Enumeration e = EquipmentType.getAllTypes(); e.hasMoreElements(); ) { EquipmentType et = (EquipmentType)e.nextElement(); if (! (et instanceof AmmoType)) { continue; } AmmoType at = (AmmoType)et; int nType = at.getAmmoType(); if (m_vaMunitions[nType] == null) { m_vaMunitions[nType] = new Vector(); } m_vaMunitions[nType].addElement(at); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/b1d0ea6e6c07ca159a081e27be6997b0b2d63d48/AmmoType.java/clean/megamek/src/megamek/common/AmmoType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 4046, 2016, 1435, 288, 3639, 368, 777, 1801, 404, 2125, 8683, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 2226, 22, 37, 7020, 83, 10663, 3639, 19008, 11568, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 2016, 1435, 288, 3639, 368, 777, 1801, 404, 2125, 8683, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 2226, 22, 37, 7020, 83, 10663, 3639, 19008, 11568, 55...
throw new CoreException( LauncherUtils .createErrorStatus( Messages.getString("ReportLaunchConfigurationDelegate.badFeatureSetup") ) ); } else
throw new CoreException( LauncherUtils.createErrorStatus( Messages.getString( "ReportLaunchConfigurationDelegate.badFeatureSetup" ) ) ); } else
private void validateFeatures( ) throws CoreException { IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ).getLocation( ); String lastSegment = installPath.lastSegment( ); boolean badStructure = lastSegment == null; if ( !badStructure ) { IPath featuresPath = installPath.removeLastSegments( 1 ).append( "features" ); //$NON-NLS-1$ badStructure = !lastSegment.equalsIgnoreCase( "plugins" ) //$NON-NLS-1$ || !featuresPath.toFile( ).exists( ); } if ( badStructure ) { throw new CoreException( LauncherUtils .createErrorStatus( Messages.getString("ReportLaunchConfigurationDelegate.badFeatureSetup") ) ); //$NON-NLS-1$ } else { ensureProductFilesExist( getProductPath( ) ); return; } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/93f83d28c012c9318e61bf947b01279cec0512a3/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1954, 8696, 12, 262, 1216, 30015, 202, 95, 202, 202, 45, 743, 3799, 743, 273, 453, 1639, 3773, 18, 588, 8241, 12, 262, 18, 588, 2375, 12, 262, 18, 588, 2735, 12, 11272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 8696, 12, 262, 1216, 30015, 202, 95, 202, 202, 45, 743, 3799, 743, 273, 453, 1639, 3773, 18, 588, 8241, 12, 262, 18, 588, 2375, 12, 262, 18, 588, 2735, 12, 11272...
public boolean parse(boolean complete) throws XNIException, IOException { // // reset and configure pipeline and set InputSource. if (fInputSource !=null) { try { fVersionDetector.reset(this); reset(); short version = fVersionDetector.determineDocVersion(fInputSource); if (version == Constants.XML_VERSION_1_1){ // XML 1.1 pipeline configureXML11Pipeline(); } // resets and sets the pipeline. fVersionDetector.startDocumentParsing((XMLEntityHandler)fScanner, version); fInputSource = null; } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } try { return fScanner.scanDocument(complete); } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } // parse(boolean):boolean
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/44d8a61f164c932e3dc2a95d99434a589c1eec56/XML11Configuration.java/clean/src/org/apache/xerces/parsers/XML11Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1109, 12, 6494, 3912, 13, 1216, 1139, 50, 45, 503, 16, 1860, 288, 7734, 368, 3639, 368, 2715, 471, 5068, 5873, 471, 444, 23699, 18, 3639, 309, 261, 74, 1210, 1830, 480, 2011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1109, 12, 6494, 3912, 13, 1216, 1139, 50, 45, 503, 16, 1860, 288, 7734, 368, 3639, 368, 2715, 471, 5068, 5873, 471, 444, 23699, 18, 3639, 309, 261, 74, 1210, 1830, 480, 2011...
public UTF8String(String s) throws CharConversionException { super(s);
public UTF8String(char[] chars) throws CharConversionException { super(chars);
public UTF8String(String s) throws CharConversionException { super(s); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3634d4d94b208431471fe506f413f97d460c7602/UTF8String.java/buggy/security/jss/org/mozilla/jss/asn1/UTF8String.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6380, 28, 780, 12, 780, 272, 13, 1216, 3703, 6814, 503, 288, 3639, 2240, 12, 87, 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, ...
[ 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6380, 28, 780, 12, 780, 272, 13, 1216, 3703, 6814, 503, 288, 3639, 2240, 12, 87, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (logger.isDebugEnabled())
if (logger.isDebugEnabled()) {
protected Collection getTasksWithoutPEs (Collection tasks) { Set tasksWithoutPEs = new HashSet(); for (Iterator iter = tasks.iterator(); iter.hasNext(); ) { Task task = (Task) iter.next(); if (task.getPlanElement() != null) { if (logger.isDebugEnabled()) logger.debug (getMyOrganization() + " - found task that already had a p.e. attached? : " + task.getUID() + " - so skipping it."); } else { tasksWithoutPEs.add (task); } } return tasksWithoutPEs; }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/70544843d760459a50542b13dba37f24805d5bdd/InventoryPlugin.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/InventoryPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2200, 336, 6685, 8073, 1423, 87, 261, 2532, 4592, 13, 288, 565, 1000, 4592, 8073, 1423, 87, 273, 394, 6847, 5621, 565, 364, 261, 3198, 1400, 273, 4592, 18, 9838, 5621, 1400, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 336, 6685, 8073, 1423, 87, 261, 2532, 4592, 13, 288, 565, 1000, 4592, 8073, 1423, 87, 273, 394, 6847, 5621, 565, 364, 261, 3198, 1400, 273, 4592, 18, 9838, 5621, 1400, 18, 5...
if(failonerror)
if(failonerror) {
protected void removeDir(File d) { String[] list = d.list(); if (list == null) list = new String[0]; for (int i = 0; i < list.length; i++) { String s = list[i]; File f = new File(d, s); if (f.isDirectory()) { removeDir(f); } else { log("Deleting " + f.getAbsolutePath(), verbosity); if (!f.delete()) { String message="Unable to delete file " + f.getAbsolutePath(); if(failonerror) throw new BuildException(message); else log(message, quiet ? Project.MSG_VERBOSE : Project.MSG_WARN); } } } log("Deleting directory " + d.getAbsolutePath(), verbosity); if (!d.delete()) { String message="Unable to delete directory " + dir.getAbsolutePath(); if(failonerror) throw new BuildException(message); else log(message, quiet ? Project.MSG_VERBOSE : Project.MSG_WARN); } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/130315b576401682fedfa9655c790b8380955177/Delete.java/buggy/src/main/org/apache/tools/ant/taskdefs/Delete.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1206, 1621, 12, 812, 302, 13, 288, 3639, 514, 8526, 666, 273, 302, 18, 1098, 5621, 3639, 309, 261, 1098, 422, 446, 13, 666, 273, 394, 514, 63, 20, 15533, 3639, 364, 261, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 1621, 12, 812, 302, 13, 288, 3639, 514, 8526, 666, 273, 302, 18, 1098, 5621, 3639, 309, 261, 1098, 422, 446, 13, 666, 273, 394, 514, 63, 20, 15533, 3639, 364, 261, 47...
deps.add(dep);
deps.add( dep );
public void assembleModelInheritance( Model child, Model parent ) { // Pom version if ( child.getModelVersion() == null ) { child.setModelVersion( parent.getModelVersion() ); } // Group id if ( child.getGroupId() == null ) { child.setGroupId( parent.getGroupId() ); } // artifactId if ( child.getArtifactId() == null ) { child.setArtifactId( parent.getArtifactId() ); } // name if ( child.getName() == null ) { child.setName( parent.getName() ); } // currentVersion if ( child.getVersion() == null ) { child.setVersion( parent.getVersion() ); } // inceptionYear if ( child.getInceptionYear() == null ) { child.setInceptionYear( parent.getInceptionYear() ); } // Name if ( child.getPackage() == null ) { child.setPackage( parent.getPackage() ); } // url if ( child.getUrl() == null ) { child.setUrl( parent.getUrl() ); } // ---------------------------------------------------------------------- // Distribution // ---------------------------------------------------------------------- if ( child.getDistributionManagement() == null ) { child.setDistributionManagement( parent.getDistributionManagement() ); } // issueManagement if ( child.getIssueManagement() == null ) { child.setIssueManagement( parent.getIssueManagement() ); } // Short description if ( child.getShortDescription() == null ) { child.setShortDescription( parent.getShortDescription() ); } // Short description if ( child.getDescription() == null ) { child.setDescription( parent.getDescription() ); } // Organization if ( child.getOrganization() == null ) { child.setOrganization( parent.getOrganization() ); } // Scm if ( parent.getScm() != null ) { Scm parentScm = parent.getScm(); Scm childScm = child.getScm(); if ( childScm == null ) { childScm = new Scm(); child.setScm( childScm ); } if ( StringUtils.isEmpty( childScm.getConnection() ) && !StringUtils.isEmpty( parentScm.getConnection() ) ) { childScm.setConnection( parentScm.getConnection() + "/" + child.getArtifactId() ); } if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) { childScm.setDeveloperConnection( parentScm.getDeveloperConnection() + "/" + child.getArtifactId() ); } if ( StringUtils.isEmpty( childScm.getUrl() ) ) { childScm.setUrl( parentScm.getUrl() ); } if ( parentScm.getBranches() != null ) { childScm.getBranches().addAll( parentScm.getBranches() ); } } // ciManagement if ( child.getCiManagement() == null ) { child.setCiManagement( parent.getCiManagement() ); } // developers if ( child.getDevelopers().size() == 0 ) { child.setDevelopers( parent.getDevelopers() ); } // developers if ( child.getContributors().size() == 0 ) { child.setContributors( parent.getContributors() ); } // mailingLists if ( child.getMailingLists().size() == 0 ) { child.setMailingLists( parent.getMailingLists() ); } // reports if ( child.getReports().size() == 0 ) { child.setReports( parent.getReports() ); } // Build if ( child.getBuild() == null ) { child.setBuild( parent.getBuild() ); } else { // The build has been set but we want to step in here and fill in // values // that have not been set by the child. if ( child.getBuild().getDirectory() == null ) { child.getBuild().setDirectory( parent.getBuild().getDirectory() ); } if ( child.getBuild().getSourceDirectory() == null ) { child.getBuild().setSourceDirectory( parent.getBuild().getSourceDirectory() ); } if ( child.getBuild().getUnitTestSourceDirectory() == null ) { child.getBuild().setUnitTestSourceDirectory( parent.getBuild().getUnitTestSourceDirectory() ); } if ( child.getBuild().getAspectSourceDirectory() == null ) { child.getBuild().setAspectSourceDirectory( parent.getBuild().getAspectSourceDirectory() ); } if ( child.getBuild().getOutput() == null ) { child.getBuild().setOutput( parent.getBuild().getOutput() ); } if ( child.getBuild().getTestOutput() == null ) { child.getBuild().setTestOutput( parent.getBuild().getTestOutput() ); } List resources = child.getBuild().getResources(); if ( resources == null || resources.isEmpty() ) { child.getBuild().setResources( parent.getBuild().getResources() ); } if ( child.getBuild().getUnitTest() == null ) { child.getBuild().setUnitTest( parent.getBuild().getUnitTest() ); } else { if ( child.getBuild().getUnitTest().getIncludes().size() == 0 ) { child.getBuild().getUnitTest().setIncludes( parent.getBuild().getUnitTest().getIncludes() ); } if ( child.getBuild().getUnitTest().getExcludes().size() == 0 ) { child.getBuild().getUnitTest().setExcludes( parent.getBuild().getUnitTest().getExcludes() ); } List testResources = child.getBuild().getUnitTest().getResources(); if ( testResources == null || testResources.isEmpty() ) { child.getBuild().getUnitTest().setResources( parent.getBuild().getUnitTest().getResources() ); } } } // Dependencies :: aggregate List dependencies = parent.getDependencies(); for ( Iterator iterator = dependencies.iterator(); iterator.hasNext(); ) { Dependency dependency = (Dependency) iterator.next(); child.addDependency( dependency ); } // PreGoals :: aggregate List preGoals = parent.getPreGoals(); for ( Iterator iterator = preGoals.iterator(); iterator.hasNext(); ) { PreGoal preGoal = (PreGoal) iterator.next(); child.addPreGoal( preGoal ); } // PostGoals :: aggregate List postGoals = parent.getPostGoals(); for ( Iterator iterator = postGoals.iterator(); iterator.hasNext(); ) { PostGoal postGoal = (PostGoal) iterator.next(); child.addPostGoal( postGoal ); } // Repositories :: aggregate List parentRepositories = parent.getRepositories(); List childRepositories = child.getRepositories(); for ( Iterator iterator = parentRepositories.iterator(); iterator.hasNext(); ) { Repository repository = (Repository) iterator.next(); if ( !childRepositories.contains( repository ) ) { child.addRepository( repository ); } } // Plugins :: aggregate List parentPlugins = parent.getPlugins(); List childPlugins = child.getPlugins(); for ( Iterator iterator = parentPlugins.iterator(); iterator.hasNext(); ) { Plugin plugin = (Plugin) iterator.next(); if ( !childPlugins.contains( plugin ) ) { child.addPlugin( plugin ); } } DependencyManagement parentDepMgmt = parent.getDependencyManagement(); DependencyManagement childDepMgmt = child.getDependencyManagement(); if(parentDepMgmt != null) { if(childDepMgmt == null) { child.setDependencyManagement(parentDepMgmt); } else { List parentDeps = parentDepMgmt.getDependencies(); Map mappedParentDeps = new TreeMap(); for ( Iterator it = parentDeps.iterator(); it.hasNext(); ) { Dependency dep = (Dependency) it.next(); mappedParentDeps.put(dep.getManagementKey(), dep); } List deps = new ArrayList(parentDeps); for ( Iterator it = childDepMgmt.getDependencies().iterator(); it.hasNext(); ) { Dependency dep = (Dependency) it.next(); if(!mappedParentDeps.containsKey(dep.getManagementKey())) { deps.add(dep); } } childDepMgmt.setDependencies(deps); } } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/2ce3a6cbde640081b1a8892e57498b24f5baa1ba/DefaultModelInheritanceAssembler.java/clean/maven-core/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19540, 1488, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 368, 453, 362, 1177, 3639, 309, 261, 1151, 18, 588, 1488, 1444, 1435, 422, 446, 262, 3639, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19540, 1488, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 368, 453, 362, 1177, 3639, 309, 261, 1151, 18, 588, 1488, 1444, 1435, 422, 446, 262, 3639, 288, 5411, ...
this(text, null);
this(null, null);
public JButton(String text) { this(text, null); }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/a2c27b4b7f5e40e3c628e2d02696215c612187ce/JButton.java/buggy/libjava/javax/swing/JButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28804, 12, 780, 977, 13, 565, 288, 202, 2211, 12, 2011, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28804, 12, 780, 977, 13, 565, 288, 202, 2211, 12, 2011, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pushExpressions(query.getRowExpressions()); visitListBand(list.getDetail()); popExpressions();
pushExpressions( query.getRowExpressions( ) ); visitListBand( list.getDetail( ) ); popExpressions( );
public void visitListItem(ListItemDesign list) { BaseQueryDefinition query = prepareVisit(list); if (query == null) { visitListBand(list.getHeader()); visitListBand(list.getFooter()); } else { pushExpressions(query.getBeforeExpressions()); visitListBand(list.getHeader()); popExpressions(); SlotHandle groupsSlot = ((ListHandle) list.getHandle()) .getGroups(); for (int i = 0; i < list.getGroupCount(); i++) { handleListGroup(list.getGroup(i), (GroupHandle) groupsSlot .get(i)); } if (list.getDetail().getContentCount() != 0) { query.setUsesDetails(true); } pushExpressions(query.getRowExpressions()); visitListBand(list.getDetail()); popExpressions(); pushExpressions(query.getAfterExpressions()); visitListBand(list.getFooter()); popExpressions(); } finishVisit(query); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 13575, 12, 13575, 15478, 666, 13, 288, 1082, 202, 2171, 1138, 1852, 843, 273, 2911, 10432, 12, 1098, 1769, 1082, 202, 430, 261, 2271, 422, 446, 13, 288, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 13575, 12, 13575, 15478, 666, 13, 288, 1082, 202, 2171, 1138, 1852, 843, 273, 2911, 10432, 12, 1098, 1769, 1082, 202, 430, 261, 2271, 422, 446, 13, 288, 9506, 202, ...
(verticalScrollBar != null)
(vsb != null)
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension viewportSize = viewport.getSize(); Dimension viewSize = viewport.getView().getSize(); int x1 = 0, x2 = 0, x3 = 0, x4 = 0; int y1 = 0, y2 = 0, y3 = 0, y4 = 0; x1 = scrollPaneBounds.x; y1 = scrollPaneBounds.y; x4 = scrollPaneBounds.x + scrollPaneBounds.width; y4 = scrollPaneBounds.y + scrollPaneBounds.height; if (columnHeader != null) y2 = columnHeader.getPreferredSize().height; else y2 = y1; if (rowHeader != null) x2 = rowHeader.getPreferredSize().width; else x2 = x1; int vsbPolicy = sc.getVerticalScrollBarPolicy(); int hsbPolicy = sc.getHorizontalScrollBarPolicy(); boolean showVsb = (verticalScrollBar != null) && ((vsbPolicy == VERTICAL_SCROLLBAR_ALWAYS) || (vsbPolicy == VERTICAL_SCROLLBAR_AS_NEEDED && viewSize.height > viewportSize.height)); boolean showHsb = (horizontalScrollBar != null) && ((hsbPolicy == HORIZONTAL_SCROLLBAR_ALWAYS) || (hsbPolicy == HORIZONTAL_SCROLLBAR_AS_NEEDED && viewSize.width > viewportSize.width)); if (showVsb) x3 = x4 - verticalScrollBar.getPreferredSize().width; else x3 = x4; if (showHsb) y3 = y4 - horizontalScrollBar.getPreferredSize().height; else y3 = y4; // now set the layout if (viewport != null) viewport.setBounds(new Rectangle(x2, y2, x3-x2, y3-y2)); if (columnHeader != null) columnHeader.setBounds(new Rectangle(x2, y1, x3-x2, y2-y1)); if (rowHeader != null) rowHeader.setBounds(new Rectangle(x1, y2, x2-x1, y3-y2)); if (showVsb) verticalScrollBar.setBounds(new Rectangle(x3, y2, x4-x3, y3-y2)); if (showHsb) horizontalScrollBar.setBounds(new Rectangle(x2, y3, x3-x2, y4-y3)); if (upperLeft != null) upperLeft.setBounds(new Rectangle(x1, y1, x2-x1, y2-y1)); if (upperRight != null) upperRight.setBounds(new Rectangle(x3, y1, x4-x3, y2-y1)); if (lowerLeft != null) lowerLeft.setBounds(new Rectangle(x1, y3, x2-x1, y4-y3)); if (lowerRight != null) lowerRight.setBounds(new Rectangle(x3, y3, x4-x3, y4-y3)); } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ScrollPaneLayout.java/clean/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3511, 2170, 12, 2170, 982, 13, 288, 565, 309, 261, 2938, 1276, 804, 26360, 13, 1377, 288, 3639, 804, 26360, 888, 273, 261, 46, 26360, 13, 982, 31, 3639, 3852, 261, 1017, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3511, 2170, 12, 2170, 982, 13, 288, 565, 309, 261, 2938, 1276, 804, 26360, 13, 1377, 288, 3639, 804, 26360, 888, 273, 261, 46, 26360, 13, 982, 31, 3639, 3852, 261, 1017, 18, ...
return (XmlTag)tag.add(newTag);
if (subTags.length == 0) { return (XmlTag)tag.add(newTag); } return (XmlTag)tag.addBefore(newTag, subTags[0]);
private XmlTag addEmptyTag(final String tagName, int index) throws IncorrectOperationException { final XmlTag tag = ensureTagExists(); final XmlTag[] subTags = tag.findSubTags(tagName); if (subTags.length < index) { index = subTags.length; } final boolean changing = myManager.setChanging(true); try { XmlTag newTag = createEmptyTag(tagName); if (index == 0) { return (XmlTag)tag.add(newTag); } return (XmlTag)tag.addAfter(newTag, subTags[index - 1]); } finally { myManager.setChanging(changing); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4747183c1401ba008dac6fcdbb1817c3093844b2/DomInvocationHandler.java/clean/source/com/intellij/util/xml/impl/DomInvocationHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5714, 1805, 527, 1921, 1805, 12, 6385, 514, 7196, 16, 509, 770, 13, 1216, 657, 6746, 10602, 288, 565, 727, 5714, 1805, 1047, 273, 3387, 1805, 4002, 5621, 565, 727, 5714, 1805, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5714, 1805, 527, 1921, 1805, 12, 6385, 514, 7196, 16, 509, 770, 13, 1216, 657, 6746, 10602, 288, 565, 727, 5714, 1805, 1047, 273, 3387, 1805, 4002, 5621, 565, 727, 5714, 1805, 8526,...
private static EjbJar unmarshalEjbJar(java.io.Reader reader)
private static EjbJar unmarshalEjbJar(java.io.Reader reader)
private static EjbJar unmarshalEjbJar(java.io.Reader reader) throws MarshalException, ValidationException { Unmarshaller unmarshaller = new Unmarshaller(org.openejb.alt.config.ejb11.EjbJar.class); unmarshaller.setEntityResolver(resolver); return (org.openejb.alt.config.ejb11.EjbJar)unmarshaller.unmarshal(reader); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/4f52760bc3704be4f698b6ed3a2b5ae33ca1fa83/EjbJarUtils.java/buggy/openejb1/modules/core/src/java/org/openejb/alt/config/EjbJarUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 512, 10649, 10813, 11401, 41, 10649, 10813, 12, 6290, 18, 1594, 18, 2514, 2949, 13, 377, 1216, 5884, 503, 16, 15614, 288, 3639, 1351, 27296, 17606, 264, 273, 394, 1351, 27296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 10649, 10813, 11401, 41, 10649, 10813, 12, 6290, 18, 1594, 18, 2514, 2949, 13, 377, 1216, 5884, 503, 16, 15614, 288, 3639, 1351, 27296, 17606, 264, 273, 394, 1351, 27296, ...
RowFixtureTest.class,
RowFixtureTest.class,
public static Test suite() { return TestSuiteMaker.makeSuite("fit", new Class[] { ParseTest.class, TypeAdapterTest.class, FitServerTest.class, FitMatcherTest.class, ColumnFixtureTest.class, RowFixtureTest.class, FixtureTest.class, ScientificDoubleTest.class, GracefulNamerTest.class, FixtureLoaderTest.class, FriendlyErrorTest.class, BindingTest.class, CountsTest.class }); }
48802 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48802/a3115ace5381f1f551bc6c0e5adc94c66efad0a9/AllTestSuite.java/buggy/src/fit/AllTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 202, 95, 202, 202, 2463, 7766, 13587, 12373, 18, 6540, 13587, 2932, 7216, 3113, 394, 1659, 8526, 288, 1082, 202, 3201, 4709, 18, 1106, 16, 1082, 202, 559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 202, 95, 202, 202, 2463, 7766, 13587, 12373, 18, 6540, 13587, 2932, 7216, 3113, 394, 1659, 8526, 288, 1082, 202, 3201, 4709, 18, 1106, 16, 1082, 202, 559...
r = new EndSubRecord( subRecordSid, adjustedSize, data, offset );
r = new EndSubRecord( in );
public static Record createSubRecord( short subRecordSid, short size, byte[] data, int offset ) { Record r = null; short adjustedSize = size; if ( size < 0 ) { adjustedSize = 0; } else if ( offset + size > data.length ) { adjustedSize = (short) ( data.length - offset ); if ( adjustedSize > 4 ) { adjustedSize -= 4; } } switch ( subRecordSid ) { case CommonObjectDataSubRecord.sid: r = new CommonObjectDataSubRecord( subRecordSid, adjustedSize, data, offset ); break; case GroupMarkerSubRecord.sid: r = new GroupMarkerSubRecord( subRecordSid, adjustedSize, data, offset ); break; case EndSubRecord.sid: r = new EndSubRecord( subRecordSid, adjustedSize, data, offset ); break; default: r = new UnknownRecord( subRecordSid, adjustedSize, data, offset ); } return r; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/ada69333b277a95ccfc608144b991cfd8d1a9d37/SubRecord.java/buggy/src/java/org/apache/poi/hssf/record/SubRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5059, 752, 1676, 2115, 12, 3025, 720, 2115, 11067, 16, 3025, 963, 16, 1160, 8526, 501, 16, 509, 1384, 262, 565, 288, 3639, 5059, 436, 273, 446, 31, 3639, 3025, 13940, 1225, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5059, 752, 1676, 2115, 12, 3025, 720, 2115, 11067, 16, 3025, 963, 16, 1160, 8526, 501, 16, 509, 1384, 262, 565, 288, 3639, 5059, 436, 273, 446, 31, 3639, 3025, 13940, 1225, 2...
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(BEGIN)) return true;
final private boolean jj_3R_17() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 4033, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16061, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 4033, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16061, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
locale, commandId);
locale);
static void remove( Map keyStrokeNodeByKeyStrokeMap, KeySequence keySequence, String contextId, String keyConfigurationId, int rank, String platform, String locale, String commandId) { Iterator iterator = keySequence.getKeyStrokes().iterator(); KeySequenceBindingNode keySequenceBindingNode = null; while (iterator.hasNext()) { keySequenceBindingNode = (KeySequenceBindingNode) keyStrokeNodeByKeyStrokeMap.get( iterator.next()); if (keySequenceBindingNode == null) return; keyStrokeNodeByKeyStrokeMap = keySequenceBindingNode.childKeyStrokeNodeByKeyStrokeMap; } keySequenceBindingNode.remove( contextId, keyConfigurationId, rank, platform, locale, commandId); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7519248a2a56aea7cb9f3f77a427f926eff7ef7e/KeySequenceBindingNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeySequenceBindingNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1206, 12, 202, 202, 863, 498, 14602, 907, 14560, 14602, 863, 16, 202, 202, 653, 4021, 498, 4021, 16, 202, 202, 780, 819, 548, 16, 202, 202, 780, 498, 1750, 548, 16, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 918, 1206, 12, 202, 202, 863, 498, 14602, 907, 14560, 14602, 863, 16, 202, 202, 653, 4021, 498, 4021, 16, 202, 202, 780, 819, 548, 16, 202, 202, 780, 498, 1750, 548, 16, 20...
Dimension dim = new Dimension(450, 300);
serverSideInterface = new JCheckBox("Generate an interface for skeleton", true); serverSideInterface.setEnabled(false); add(serverSideInterface); JSeparator allSep = new JSeparator(JSeparator.HORIZONTAL); add(allSep); all = new JRadioButton("Generate All"); generationType.add(all); all.addActionListener(this); add(all); Dimension dim = new Dimension(450, 350);
public SecondFrame() { SecondFrameLayout customLayout = new SecondFrameLayout(); setFont(new Font("Helvetica", Font.PLAIN, 12)); setLayout(customLayout); BevelBorder b = new BevelBorder(BevelBorder.LOWERED); setBorder(b); lblLangauge = new JLabel("Select the output language"); add(lblLangauge); cmbLan = new JComboBox(); cmbLan.addItem("java"); cmbLan.addItem("C#"); cmbLan.setToolTipText("Select the language of the generated code"); add(cmbLan); lblServiceName = new JLabel("Select ServiceName"); add(lblServiceName); cmbServiceName = new JComboBox(); add(cmbServiceName); cmbServiceName.setToolTipText("Select the name of the service that the code should be generated for"); cmbServiceName.addActionListener(this); lblportName = new JLabel("Select Port Name"); add(lblportName); cmbPortName = new JComboBox(); cmbPortName.setToolTipText("Select the port name that the code should be generated for"); add(cmbPortName); lblpackgeName = new JLabel("Select the package name"); add(lblpackgeName); txtPacakgeName = new JTextField("org.axis2"); txtPacakgeName.setToolTipText("Set the package name of the generated code"); add(txtPacakgeName); lbldbtype = new JLabel("Select Databinding type"); add(lbldbtype); cmbdbtype = new JComboBox(); cmbdbtype.addItem("adb"); cmbdbtype.addItem("xmlbeans"); cmbdbtype.addItem("none"); cmbdbtype.setToolTipText("Select the databinding framework to be used in the generation process"); add(cmbdbtype); chkTestCase = new JCheckBox("Generate Test Case", true); chkTestCase.setToolTipText("A test case will be generated if this is checked"); add(chkTestCase); lblClient = new JLabel("Client Side Options"); add(lblClient); buttonGroup = new ButtonGroup(); rdBoth = new JRadioButton("Generate both sync and async", true); buttonGroup.add(rdBoth); add(rdBoth); rdsyn = new JRadioButton("Generate sync only", false); buttonGroup.add(rdsyn); add(rdsyn); rdasync = new JRadioButton("Generate async only", false); buttonGroup.add(rdasync); add(rdasync); lblServer = new JLabel("Server Side Options"); add(lblServer); serverside = new JCheckBox("Generate server side ", true); add(serverside); serviceXML = new JCheckBox("Generate default service.xml", true); add(serviceXML); Dimension dim = new Dimension(450, 300); setSize(dim); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9d8b243488921dd415dc0169bcc72f4d0edc5cc5/SecondFrame.java/clean/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/SecondFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7631, 3219, 1435, 288, 3639, 7631, 3219, 3744, 1679, 3744, 273, 394, 7631, 3219, 3744, 5621, 3639, 20454, 12, 2704, 10063, 2932, 44, 292, 90, 7943, 69, 3113, 10063, 18, 26549, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7631, 3219, 1435, 288, 3639, 7631, 3219, 3744, 1679, 3744, 273, 394, 7631, 3219, 3744, 5621, 3639, 20454, 12, 2704, 10063, 2932, 44, 292, 90, 7943, 69, 3113, 10063, 18, 26549, 16, 2...
eNotify(new ENotificationImpl(this, Notification.SET, AttributePackage.GRADIENT__END_COLOR, newEndColor, newEndColor));
eNotify(new ENotificationImpl(this, Notification.SET, AttributePackage.GRADIENT__END_COLOR, newEndColor, newEndColor));
public void setEndColor(ColorDefinition newEndColor) { if (newEndColor != endColor) { NotificationChain msgs = null; if (endColor != null) msgs = ((InternalEObject)endColor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AttributePackage.GRADIENT__END_COLOR, null, msgs); if (newEndColor != null) msgs = ((InternalEObject)newEndColor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AttributePackage.GRADIENT__END_COLOR, null, msgs); msgs = basicSetEndColor(newEndColor, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AttributePackage.GRADIENT__END_COLOR, newEndColor, newEndColor)); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/GradientImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/GradientImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19743, 2957, 12, 2957, 1852, 394, 1638, 2957, 13, 565, 288, 3639, 309, 261, 2704, 1638, 2957, 480, 679, 2957, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19743, 2957, 12, 2957, 1852, 394, 1638, 2957, 13, 565, 288, 3639, 309, 261, 2704, 1638, 2957, 480, 679, 2957, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, ...
throw postgresql.Driver.notImplemented();
if (--current_row < 0) return false; this_row = (byte [][])rows.elementAt(current_row); return true;
public boolean previous() throws SQLException { throw postgresql.Driver.notImplemented(); }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/2ee522954d0d634d520e6f10454a8c63ef004a00/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2416, 1435, 1216, 6483, 565, 288, 202, 430, 261, 413, 2972, 67, 492, 411, 374, 13, 327, 629, 31, 333, 67, 492, 273, 261, 7229, 5378, 63, 5717, 3870, 18, 2956, 861, 12, 297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2416, 1435, 1216, 6483, 565, 288, 202, 430, 261, 413, 2972, 67, 492, 411, 374, 13, 327, 629, 31, 333, 67, 492, 273, 261, 7229, 5378, 63, 5717, 3870, 18, 2956, 861, 12, 297...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ChibaAdapter adapter = null; HttpSession session = request.getSession(true); XFormsSession xFormsSession = new XFormsSession(); if(LOGGER.isDebugEnabled()){ LOGGER.debug("--------------- new XForms session ---------------"); Enumeration keys = session.getAttributeNames(); if(keys.hasMoreElements()){ LOGGER.debug("--- existing keys in session --- "); while (keys.hasMoreElements()) { String s = (String) keys.nextElement(); LOGGER.debug("existing sessionkey: " + s + ":" + session.getAttribute(s)); } }else{ LOGGER.debug("--- no keys present in session ---"); } LOGGER.debug("created XFormsSession with key: " + xFormsSession.getKey()); } request.setCharacterEncoding("UTF-8"); try { // determine Form to load String formURI = getRequestURI(request) + request.getParameter(FORM_PARAM_NAME); if (formURI == null) { throw new IOException("Resource not found: " + formURI + " not found"); } String xslFile = request.getParameter(XSL_PARAM_NAME); String javascriptPresent = request.getParameter(JAVASCRIPT_PARAM_NAME); String actionURL = null; if (javascriptPresent != null){ //do AJAX FluxAdapter fluxAdapter = new FluxAdapter(); fluxAdapter.setSession(session); fluxAdapter.setXFormsSession(xFormsSession); adapter = fluxAdapter; actionURL = getActionURL(request, response,true); }else{ //do standard browser support without scripting adapter = new ServletAdapter(); actionURL = getActionURL(request, response,false); } //setup Adapter adapter = setupAdapter(adapter,xFormsSession.getKey(), formURI); setContextParams(request, adapter); storeCookies(request,adapter); adapter.init(); // todo: remove deprecated stuff, check for load/replace/message somehow if(load(adapter, response)) return; if(replaceAll(adapter, response)) return; response.setContentType(HTML_CONTENT_TYPE); Writer writer = response.getWriter(); UIGenerator uiGenerator = createUIGenerator(request, xFormsSession.getKey() , actionURL, xslFile, javascriptPresent); uiGenerator.setInputNode(adapter.getXForms()); uiGenerator.setOutput(writer); uiGenerator.generate(); //store adapter in session xFormsSession.setAdapter(adapter); //store UIGenerator in session xFormsSession.setUIGenerator(uiGenerator); session.setAttribute(xFormsSession.getKey(),xFormsSession); } catch (XFormsException e) { shutdown(adapter, session, e, response, request, xFormsSession.getKey()); }catch(URISyntaxException ue){ shutdown(adapter, session, ue, response, request, xFormsSession.getKey()); } }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/b89289721c6b3b8dd77f68503d4ac60835310b40/ChibaServlet.java/clean/yawl/build/yawlXForms/src/org/chiba/adapter/servlet/ChibaServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 23611, 12, 2940, 18572, 590, 16, 7682, 12446, 766, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 1680, 495, 69, 4216, 4516, 273, 446, 31, 3639, 26166, 1339, 273, 590, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 23611, 12, 2940, 18572, 590, 16, 7682, 12446, 766, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 1680, 495, 69, 4216, 4516, 273, 446, 31, 3639, 26166, 1339, 273, 590, 18, 588, ...
return type; }
return type; }
public String getEditorType() { return type;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e5eebf0c5be6e1c4679616a3a04105f084607014/EditorActionBars.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 336, 6946, 559, 1435, 288, 202, 2463, 618, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 336, 6946, 559, 1435, 288, 202, 2463, 618, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public void setOutputStream(OutputStream stream) { this.outputStream = stream; }
public void setOutputStream(OutputStream outputStream) { this.outputStream = outputStream; }
public void setOutputStream(OutputStream stream) { this.outputStream = stream; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamResult.java/buggy/core/src/classpath/javax/javax/xml/transform/stream/StreamResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4632, 12, 4632, 1407, 13, 288, 202, 202, 2211, 18, 2844, 1228, 273, 1407, 31, 202, 97, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 4632, 12, 4632, 1407, 13, 288, 202, 202, 2211, 18, 2844, 1228, 273, 1407, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
}
public Closure(Object delegate) { this.delegate = delegate; this.owner = delegate; Class closureClass = this.getClass(); while (true) { final Method methods[] = closureClass.getDeclaredMethods(); int i = 0; while (!methods[i].getName().equals("doCall") && ++i != methods.length) ; if (i < methods.length) { this.doCallMethod = methods[i]; break; } closureClass = closureClass.getSuperclass(); } AccessController.doPrivileged(new PrivilegedAction() { public Object run() { Closure.this.doCallMethod.setAccessible(true); return null; } }); this.parameterTypes = this.doCallMethod.getParameterTypes(); this.numberOfParameters = this.parameterTypes.length; if (this.numberOfParameters != 0) { this.supportsVarargs = this.parameterTypes[this.numberOfParameters - 1].equals(Object[].class); } else { this.supportsVarargs = false; } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/e0d068e0fc0c37bbabc7da5190c7da7d56ef43a8/Closure.java/buggy/src/main/groovy/lang/Closure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7255, 12, 921, 7152, 13, 288, 3639, 333, 18, 22216, 273, 7152, 31, 3639, 333, 18, 8443, 273, 7152, 31, 3639, 1659, 7213, 797, 273, 333, 18, 588, 797, 5621, 3639, 1323, 261, 3767, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7255, 12, 921, 7152, 13, 288, 3639, 333, 18, 22216, 273, 7152, 31, 3639, 333, 18, 8443, 273, 7152, 31, 3639, 1659, 7213, 797, 273, 333, 18, 588, 797, 5621, 3639, 1323, 261, 3767, ...
case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE : case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE : {
case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE: case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE: {
public static String convertToString(XPathResult xpathResult, boolean prettyPrint) { switch (xpathResult.getResultType()) { case XPathResult.NUMBER_TYPE : double d = xpathResult.getNumberValue(); return Double.toString(d); case XPathResult.STRING_TYPE : String s = xpathResult.getStringValue(); return s; case XPathResult.BOOLEAN_TYPE : boolean b = xpathResult.getBooleanValue(); return String.valueOf(b); case XPathResult.FIRST_ORDERED_NODE_TYPE : case XPathResult.ANY_UNORDERED_NODE_TYPE : { Node node = xpathResult.getSingleNodeValue(); return XmlUtil.toString(node, prettyPrint); } case XPathResult.ORDERED_NODE_ITERATOR_TYPE : case XPathResult.UNORDERED_NODE_ITERATOR_TYPE : { StringBuffer buf = new StringBuffer(512); Node node = xpathResult.iterateNext(); while (node != null) { buf.append(XmlUtil.toString(node, prettyPrint)); node = xpathResult.iterateNext(); } return buf.toString(); } case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE : case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE : { StringBuffer buf = new StringBuffer(512); int len = xpathResult.getSnapshotLength(); for (int i = 0; i < len; i++) { Node node = xpathResult.snapshotItem(i); buf.append(XmlUtil.toString(node, prettyPrint)); } return buf.toString(); } default: String msg = "Unknown xpathResult.type = " + xpathResult.getResultType(); throw new XPathException(XPathException.TYPE_ERR ,msg); } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/c3f6363095dc52f521dd8666c0cfc494bedffffd/XmlUtil.java/clean/src/main/mondrian/tui/XmlUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1765, 5808, 12, 14124, 1253, 6748, 1253, 16, 29159, 1250, 30410, 13, 288, 3639, 1620, 261, 18644, 1253, 18, 588, 1253, 559, 10756, 288, 3639, 648, 10172, 1253, 18, 9931, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1765, 5808, 12, 14124, 1253, 6748, 1253, 16, 29159, 1250, 30410, 13, 288, 3639, 1620, 261, 18644, 1253, 18, 588, 1253, 559, 10756, 288, 3639, 648, 10172, 1253, 18, 9931, 6...
logger.debug(ignoreMarker, "logging statement" + i, new Exception("test"));
logger.debug(ignoreMarker, "logging statement" + i, new Exception( "test"));
public static void main(String[] args) throws InterruptedException { Logger logger = (Logger) LoggerFactory.getLogger(ExceptionEvaluatorExample.class); LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); configurator.doConfigure(args[0]); for (int i = 0; i < 5; i++) { if (i == 3) { Marker ignoreMarker = MarkerFactory.getMarker("IGNORE"); logger.debug(ignoreMarker, "logging statement" + i, new Exception("test")); } else { logger.debug("logging statement" + i, new Exception("test")); } } StatusPrinter.print(lc); }
48827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48827/7177ff8f31734f293185997e0a81156f64bc26a6/ExceptionEvaluatorExample.java/buggy/logback-classic/examples/src/chapter5/ExceptionEvaluatorExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 7558, 288, 565, 4242, 1194, 273, 261, 3328, 13, 4242, 1733, 18, 588, 3328, 12, 503, 15876, 10908, 18, 1106, 1769, 565, 4242, 1042, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 7558, 288, 565, 4242, 1194, 273, 261, 3328, 13, 4242, 1733, 18, 588, 3328, 12, 503, 15876, 10908, 18, 1106, 1769, 565, 4242, 1042, 91...
suite.addTestSuite(RenderTaskTest.class);
suite.addTestSuite(Bug128854PrompttextTest.class);
public static Test suite() { TestSuite suite = new TestSuite( "Test for org.eclipse.birt.report.tests.engine"); //$JUnit-BEGIN$ suite.addTestSuite(DefaultStatusHandlerTest.class); suite.addTestSuite(EngineConfigTest.class); suite.addTestSuite(FORenderOptionTest.class); //suite.addTestSuite(HTMLActionHandlerTest.class); suite.addTestSuite(HTMLCompleteImageHandlerTest.class); suite.addTestSuite(HTMLEmitterConfigTest.class); suite.addTestSuite(HTMLRenderContextTest.class); suite.addTestSuite(HTMLRenderOptionTest.class); suite.addTestSuite(HTMLServerImageHandlerTest.class); suite.addTestSuite(RenderOptionBaseTest.class); suite.addTestSuite(ReportEngineTest.class); suite.addTestSuite(ReportParameterConverterTest.class); suite.addTestSuite(RunAndRenderTaskTest.class); //added 12/27 suite.addTestSuite(DataPreviewTaskTest.class); suite.addTestSuite(RunTaskTest.class); suite.addTestSuite(ReportDocumentTest.class); suite.addTestSuite(RenderTaskTest.class); //$JUnit-END$ return suite; }
58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/4ce90e0e2ebd55d11c8ab8cde2d2821c9b60b1b4/AllTests.java/buggy/plugins/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/AllTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 12, 9506, 202, 6, 4709, 364, 2358, 18, 20416, 18, 70, 2714, 18, 6006, 18, 16341, 18, 8944, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 12, 9506, 202, 6, 4709, 364, 2358, 18, 20416, 18, 70, 2714, 18, 6006, 18, 16341, 18, 8944, 88...
continue;
private static String[] processCommandLine(String[] args) throws Exception { EnvironmentInfo.allArgs = args; int[] configArgs = new int[100]; configArgs[0] = -1; // need to initialize the first element to something that could not be an index. int configArgIndex = 0; for (int i = 0; i < args.length; i++) { boolean found = false; // check for args without parameters (i.e., a flag arg) // check if debug should be enabled for the entire platform // If this is the last arg or there is a following arg (i.e., arg+1 has a leading -), // simply enable debug. Otherwise, assume that that the following arg is // actually the filename of an options file. This will be processed below. if (args[i].equalsIgnoreCase(DEBUG) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_DEBUG, ""); //$NON-NLS-1$ debug = true; found = true; } // check if development mode should be enabled for the entire platform // If this is the last arg or there is a following arg (i.e., arg+1 has a leading -), // simply enable development mode. Otherwise, assume that that the following arg is // actually some additional development time class path entries. This will be processed below. if (args[i].equalsIgnoreCase(DEV) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_DEV, ""); //$NON-NLS-1$ found = true; continue; } // look for the initialization arg if (args[i].equalsIgnoreCase(INITIALIZE)) { initialize = true; found = true; } // look for the consoleLog flag if (args[i].equalsIgnoreCase(CONSOLE_LOG)) { System.getProperties().put(PROP_CONSOLE_LOG, "true"); //$NON-NLS-1$ found = true; } // look for the console with no port. if (args[i].equalsIgnoreCase(CONSOLE) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_CONSOLE, ""); //$NON-NLS-1$ found = true; continue; } if (found) { configArgs[configArgIndex++] = i; continue; } // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) { //$NON-NLS-1$ continue; } String arg = args[++i]; // look for the console and port. if (args[i - 1].equalsIgnoreCase(CONSOLE)) { System.getProperties().put(PROP_CONSOLE, arg); found = true; continue; } // look for the configuration location . if (args[i - 1].equalsIgnoreCase(CONFIGURATION)) { System.getProperties().put(LocationManager.PROP_CONFIG_AREA, arg); found = true; continue; } // look for the data location for this instance. if (args[i - 1].equalsIgnoreCase(DATA)) { System.getProperties().put(LocationManager.PROP_INSTANCE_AREA, arg); found = true; continue; } // look for the user location for this instance. if (args[i - 1].equalsIgnoreCase(USER)) { System.getProperties().put(LocationManager.PROP_USER_AREA, arg); found = true; continue; } // look for the development mode and class path entries. if (args[i - 1].equalsIgnoreCase(DEV)) { System.getProperties().put(PROP_DEV, arg); found = true; continue; } // look for the debug mode and option file location. if (args[i - 1].equalsIgnoreCase(DEBUG)) { System.getProperties().put(PROP_DEBUG, arg); debug = true; found = true; continue; } // look for the window system. if (args[i - 1].equalsIgnoreCase(WS)) { System.getProperties().put(PROP_WS, arg); found = true; } // look for the operating system if (args[i - 1].equalsIgnoreCase(OS)) { System.getProperties().put(PROP_OS, arg); found = true; } // look for the system architecture if (args[i - 1].equalsIgnoreCase(ARCH)) { System.getProperties().put(PROP_ARCH, arg); found = true; } // look for the nationality/language if (args[i - 1].equalsIgnoreCase(NL)) { System.getProperties().put(PROP_NL, arg); found = true; } // done checking for args. Remember where an arg was found if (found) { configArgs[configArgIndex++] = i - 1; configArgs[configArgIndex++] = i; } } // remove all the arguments consumed by this argument parsing if (configArgIndex == 0) { EnvironmentInfo.frameworkArgs = new String[0]; EnvironmentInfo.appArgs = args; return args; } EnvironmentInfo.appArgs = new String[args.length - configArgIndex]; EnvironmentInfo.frameworkArgs = new String[configArgIndex]; configArgIndex = 0; int j = 0; int k = 0; for (int i = 0; i < args.length; i++) { if (i == configArgs[configArgIndex]) { EnvironmentInfo.frameworkArgs[k++] = args[i]; configArgIndex++; } else EnvironmentInfo.appArgs[j++] = args[i]; } return EnvironmentInfo.appArgs; }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/ff23d0a76b3dcf5b1305d0b0e0e89bb68829fbec/EclipseStarter.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 8526, 1207, 21391, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 5494, 966, 18, 454, 2615, 273, 833, 31, 202, 202, 474, 8526, 642, 2615, 273, 394, 509, 63, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 8526, 1207, 21391, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 5494, 966, 18, 454, 2615, 273, 833, 31, 202, 202, 474, 8526, 642, 2615, 273, 394, 509, 63, 6...
CmsResource res = readResource(resourceName, CmsResourceFilter.IGNORE_EXPIRATION);
CmsResource res = readResource(resourceName, CmsResourceFilter.ALL);
public void chacc(String resourceName, String principalType, String principalName, int allowedPermissions, int deniedPermissions, int flags) throws CmsException { CmsResource res = readResource(resourceName, CmsResourceFilter.IGNORE_EXPIRATION); CmsAccessControlEntry acEntry = null; I_CmsPrincipal principal = null; if (I_CmsPrincipal.C_PRINCIPAL_GROUP.equalsIgnoreCase(principalType)) { principal = readGroup(principalName); acEntry = new CmsAccessControlEntry(res.getResourceId(), principal.getId(), allowedPermissions, deniedPermissions, flags); acEntry.setFlags(I_CmsConstants.C_ACCESSFLAGS_GROUP); } else if (I_CmsPrincipal.C_PRINCIPAL_USER.equalsIgnoreCase(principalType)) { principal = readUser(principalName); acEntry = new CmsAccessControlEntry(res.getResourceId(), principal.getId(), allowedPermissions, deniedPermissions, flags); acEntry.setFlags(I_CmsConstants.C_ACCESSFLAGS_USER); } m_driverManager.writeAccessControlEntry(m_context, res, acEntry); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/68aedaa3c01c741c9805c6fede5b6e13b059cef4/CmsObject.java/clean/src/org/opencms/file/CmsObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 462, 8981, 12, 780, 9546, 16, 514, 8897, 559, 16, 514, 8897, 461, 16, 509, 2935, 6521, 16, 509, 15338, 6521, 16, 509, 2943, 13, 1216, 11228, 288, 3639, 7630, 400, 273, 22159,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 462, 8981, 12, 780, 9546, 16, 514, 8897, 559, 16, 514, 8897, 461, 16, 509, 2935, 6521, 16, 509, 15338, 6521, 16, 509, 2943, 13, 1216, 11228, 288, 3639, 7630, 400, 273, 22159,...
Util.writeMPI(p,out); Util.writeMPI(q,out); Util.writeMPI(g,out);
Util.writeMPI(p, out); Util.writeMPI(q, out); Util.writeMPI(g, out);
public void writeForWire(OutputStream out) throws IOException { Util.writeMPI(p,out); Util.writeMPI(q,out); Util.writeMPI(g,out); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/0400e73e7503ab43211657c44d8448afd6346cce/DSAGroup.java/buggy/src/freenet/crypt/DSAGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1290, 15249, 12, 4632, 596, 13, 1216, 1860, 288, 3639, 3564, 18, 2626, 49, 1102, 12, 84, 16, 659, 1769, 3639, 3564, 18, 2626, 49, 1102, 12, 85, 16, 659, 1769, 3639, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1290, 15249, 12, 4632, 596, 13, 1216, 1860, 288, 3639, 3564, 18, 2626, 49, 1102, 12, 84, 16, 659, 1769, 3639, 3564, 18, 2626, 49, 1102, 12, 85, 16, 659, 1769, 3639, 3...
args = setupArgs(runtime, tc, exceptionNodes);
args = setupArgs(context, exceptionNodes, self);
private boolean isRescueHandled(RubyException currentException, ListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getClass("StandardError")); } ThreadContext tc = getThreadContext(); tc.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(runtime, tc, exceptionNodes); } finally { tc.endCallArgs(); } for (int i = 0; i < args.length; i++) { if (! args[i].isKindOf(runtime.getClass("Module"))) { throw runtime.newTypeError("class or module required for rescue clause"); } if (args[i].callMethod("===", currentException).isTrue()) return true; } return false; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/6e15491217631472c05c6928672f9c7064a978b3/EvaluationState.java/clean/src/org/jruby/evaluator/EvaluationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 607, 8007, 23186, 12, 54, 10340, 503, 783, 503, 16, 987, 907, 1520, 3205, 13, 288, 3639, 309, 261, 4064, 3205, 422, 446, 13, 288, 5411, 327, 783, 503, 18, 291, 5677, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 607, 8007, 23186, 12, 54, 10340, 503, 783, 503, 16, 987, 907, 1520, 3205, 13, 288, 3639, 309, 261, 4064, 3205, 422, 446, 13, 288, 5411, 327, 783, 503, 18, 291, 5677, ...
final long timeout,
protected void sendCommunityRequest(final String communityName, final int requestType, final Entity entity, final ModificationItem[] attrMods, final long timeout, final CommunityResponseListener crl) { if (log.isDebugEnabled()) { log.debug(agentName + ": sendCommunityRequest: " + " community=" + communityName + " type=" + requestType + " entity=" + entity + " attrMods=" + attrMods + " timeout=" + timeout); } FindCommunityCallback fmcb = new FindCommunityCallback() { public void execute(String managerName) { if (log.isDebugEnabled()) { log.debug(agentName + ": sendCommunityRequest: " + " community=" + communityName + " manager=" + managerName); } if (managerName != null) { if (managerName.equals(agentName)) { // is this agent manager? CommunityResponse resp = communityManager.processRequest(agentName, communityName, requestType, entity, attrMods); Set listeners = Collections.singleton(crl); handleResponse(communityName, resp, listeners); } else { // Send request to remote manager agent MessageAddress managerAddr = MessageAddress.getMessageAddress(managerName); Request req = new RequestImpl(agentId, // source managerAddr, // target communityName, requestType, entity, attrMods, getUID(), crl); myBlackboardClient.publish(req, BlackboardClient.ADD); } } else { handleResponse(communityName, new CommunityResponseImpl(CommunityResponse.TIMEOUT, null), Collections.singleton(crl)); } } }; findCommunity(communityName, fmcb, timeout); }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/d15772ee503470dc15063061ac9e455f86663be3/DefaultCommunityServiceImpl.java/buggy/community/src/org/cougaar/community/DefaultCommunityServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1366, 12136, 13352, 691, 12, 6385, 514, 19833, 461, 16, 4766, 1377, 727, 509, 27179, 16, 4766, 1377, 727, 3887, 1522, 16, 4766, 1377, 727, 3431, 1480, 1180, 8526, 1604, 1739, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1366, 12136, 13352, 691, 12, 6385, 514, 19833, 461, 16, 4766, 1377, 727, 509, 27179, 16, 4766, 1377, 727, 3887, 1522, 16, 4766, 1377, 727, 3431, 1480, 1180, 8526, 1604, 1739, 8...
for (int j = 0; j < LEFT_MARGIN + 4; j++, sb.append(' '))
for (int j = 0; j < LEFT_MARGIN + 3; j++, sb.append(' '))
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return b1 == b2 ? f1.getName().compareTo(f2.getName()) : b1 & !b2 ? -1 : 1; } }); StringBuilder sb = new StringBuilder(); Date lastModified = new Date(); for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.exists()) { sb.setLength(0); lastModified.setTime(f.lastModified()); if (f.isFile()) { String ln = String.valueOf(f.length()); int cnt = LEFT_MARGIN - ln.length(); for (int j = 0; j < cnt; j++, sb.append(' ')) ; sb.append(ln); sb.append("B "); sb.append(df.format(lastModified)); sb.append(" "); sb.append(f.getName()); } else { for (int j = 0; j < LEFT_MARGIN + 4; j++, sb.append(' ')) ; sb.append(df.format(lastModified)); sb.append(" ["); sb.append(f.getName()); sb.append(']'); } out.println(sb.toString()); } } out.println(); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e05eb361be2477c496a6c281a82f52392e5d9f7d/DirCommand.java/clean/fs/src/fs/org/jnode/fs/command/DirCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 682, 12, 812, 8526, 666, 16, 21677, 596, 13, 288, 3639, 309, 261, 1098, 480, 446, 13, 288, 5411, 5647, 18, 3804, 12, 1098, 16, 394, 13359, 32, 812, 34, 1435, 288, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 682, 12, 812, 8526, 666, 16, 21677, 596, 13, 288, 3639, 309, 261, 1098, 480, 446, 13, 288, 5411, 5647, 18, 3804, 12, 1098, 16, 394, 13359, 32, 812, 34, 1435, 288, 773...
} else if ( MasterPageHandle.ORIENTATION_PROP.equals( property ) ) {
} else if (MasterPageHandle.ORIENTATION_PROP.equals(property)) {
public static IChoiceSet getDEChoiceSet( String property ) { String unitKey = DesignChoiceConstants.CHOICE_UNITS; if ( AttributeConstant.BACKGROUND_COLOR.equals( property ) ) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if ( AttributeConstant.FONT_COLOR.equals( property ) ) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if ( AttributeConstant.FONT_SIZE.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FONT_SIZE; } else if ( AttributeConstant.FONT_FAMILY.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FONT_FAMILY; } else if ( AttributeConstant.TEXT_FORMAT.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_TEXT_CONTENT_TYPE; } else if ( AttributeConstant.BORDER_STYLE.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_LINE_STYLE; } else if ( AttributeConstant.BORDER_WIDTH.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_LINE_WIDTH; } else if ( SortKey.DIRECTION_MEMBER.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_SORT_DIRECTION; } else if ( FilterCondition.OPERATOR_MEMBER.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FILTER_OPERATOR; } else if ( StyleHandle.VERTICAL_ALIGN_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_VERTICAL_ALIGN; } else if ( StyleHandle.TEXT_ALIGN_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_TEXT_ALIGN; } else if ( MasterPageHandle.ORIENTATION_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION; } else if ( MasterPageHandle.TYPE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE; } else if ( GroupHandle.INTERVAL_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_INTERVAL; } else if ( StyleHandle.PAGE_BREAK_BEFORE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if ( StyleHandle.PAGE_BREAK_AFTER_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if ( StyleHandle.PAGE_BREAK_INSIDE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE; } return DesignEngine.getMetaDataDictionary( ).getChoiceSet( unitKey ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4d78f7686771fae0403ed68a06a850b0f45d97fa/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 10538, 694, 336, 1639, 10538, 694, 12, 514, 1272, 262, 202, 95, 202, 202, 780, 2836, 653, 273, 29703, 10538, 2918, 18, 22213, 11774, 67, 24325, 31, 202, 202, 430, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 10538, 694, 336, 1639, 10538, 694, 12, 514, 1272, 262, 202, 95, 202, 202, 780, 2836, 653, 273, 29703, 10538, 2918, 18, 22213, 11774, 67, 24325, 31, 202, 202, 430, 26...
private boolean attributeIsTrue (XMLElement element, String name) { String value = element.getAttribute (name, "").toUpperCase (); if (value.equals ("YES")) { return (true); } else if (value.equals ("TRUE")) { return (true); } else if (value.equals ("ON")) { return (true); } else if (value.equals ("1")) { return (true); } return (false); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/df53b17757bee3d8fd6a9cb585cb425bb91e3213/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1566, 2520, 5510, 261, 15223, 930, 16, 4766, 282, 514, 377, 508, 13, 225, 288, 565, 514, 460, 273, 930, 18, 588, 1499, 261, 529, 16, 1408, 2934, 869, 8915, 261, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1566, 2520, 5510, 261, 15223, 930, 16, 4766, 282, 514, 377, 508, 13, 225, 288, 565, 514, 460, 273, 930, 18, 588, 1499, 261, 529, 16, 1408, 2934, 869, 8915, 261, 1769, 3639, ...
bits[0] = (byte)base; BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString());
BigInteger bigBase = BigInteger.valueOf(base);
public static String JS_dtobasestr(int base, double d) { char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int pInt; /* index to the beginning of the integer part of the string */ int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */// JS_ASSERT(base >= 2 && base <= 36); buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; d = -d; } /* Check for Infinity and NaN */ if (Double.isNaN(d)) return "NaN"; else if (Double.isInfinite(d)) return "Infinity"; /* Output the integer part of d with the digits in reverse order. */ pInt = p; di = (int)d; BigInteger b = new BigInteger(byteValue((long)di)); String intDigits = b.toString(base); intDigits.getChars(0, intDigits.length(), buffer, p); p += intDigits.length(); df = d - di; if (df != 0.0) { /* We have a fraction. */ byte bits[] = new byte[8]; buffer[p++] = '.'; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int e = d2b(df, bits); b = new BigInteger(bits);// JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */// JS_ASSERT(-s2 < e); bits = new byte[1]; bits[0] = 1; BigInteger mlo = new BigInteger(bits); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; bits[0] = 1<<Log2P; mhi = new BigInteger(bits); } b = b.shiftLeft(e + s2); bits[0] = 1; BigInteger s = new BigInteger(bits); s = s.shiftLeft(s2); /* At this point we have the following: * s = 2^s2; * 1 > df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ bits[0] = (byte)base; // s'ok since base < 36 BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString()); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; }// JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); } return new String(buffer, 0, p); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/be6d0c85ffa6f2cc645c0516ebad8777e902b1af/DToA.java/buggy/src/org/mozilla/javascript/DToA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 6756, 67, 72, 869, 18602, 313, 12, 474, 1026, 16, 1645, 302, 13, 565, 288, 3639, 1149, 8526, 1613, 31, 4202, 1748, 1021, 876, 533, 1195, 3639, 509, 293, 31, 9079, 1748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 6756, 67, 72, 869, 18602, 313, 12, 474, 1026, 16, 1645, 302, 13, 565, 288, 3639, 1149, 8526, 1613, 31, 4202, 1748, 1021, 876, 533, 1195, 3639, 509, 293, 31, 9079, 1748, ...
serializeByPullStream(element,omOutput,false);
serializeByPullStream(element, omOutput, false);
public static void serializeByPullStream(OMElement element, org.apache.axis2.om.impl.OMOutputImpl omOutput) throws XMLStreamException { serializeByPullStream(element,omOutput,false); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/16f711a34461099dbab830bbb3e33fe202dc57ec/OMSerializerUtil.java/buggy/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 4472, 858, 9629, 1228, 12, 51, 12310, 930, 16, 2358, 18, 19211, 18, 4890, 22, 18, 362, 18, 11299, 18, 1872, 1447, 2828, 8068, 1447, 13, 1216, 21526, 288, 3639, 4472, 858...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 4472, 858, 9629, 1228, 12, 51, 12310, 930, 16, 2358, 18, 19211, 18, 4890, 22, 18, 362, 18, 11299, 18, 1872, 1447, 2828, 8068, 1447, 13, 1216, 21526, 288, 3639, 4472, 858...
public KerberosServer(KdcConfiguration config, ServiceRegistry registry, PrincipalStore store)
public KerberosServer(KdcConfiguration config, IoAcceptor acceptor, PrincipalStore store)
public KerberosServer(KdcConfiguration config, ServiceRegistry registry, PrincipalStore store) { this.config = config; this.registry = registry; this.store = store; String name = config.getName(); int port = config.getPort(); try { handler = new KerberosProtocolHandler( new KdcConfiguration(), this.store ); udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler ); log.debug( name + " listening on port " + port ); } catch ( IOException ioe ) { log.error( ioe.getMessage(), ioe ); } }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/af28aaf613d2cf3bdf90712d96c589640090b9c9/KerberosServer.java/buggy/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KerberosServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1475, 24704, 2081, 12, 47, 7201, 1750, 642, 16, 10495, 5933, 280, 2791, 280, 16, 17010, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1475, 24704, 2081, 12, 47, 7201, 1750, 642, 16, 10495, 5933, 280, 2791, 280, 16, 17010, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023...
public void closePage() { //os.println("% procDict and colorMap dictionaries"); os.println("end end restore showpage"); if (isMultiPage()) os.println("%%PageTrailer"); }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/PSGraphics2D.java/clean/freehep-graphicsio-ps/src/main/java/org/freehep/graphicsio/ps/PSGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1964, 1435, 288, 3639, 368, 538, 18, 8222, 27188, 5418, 5014, 471, 2036, 863, 16176, 8863, 3639, 1140, 18, 8222, 2932, 409, 679, 5217, 2405, 2433, 8863, 3639, 309, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1964, 1435, 288, 3639, 368, 538, 18, 8222, 27188, 5418, 5014, 471, 2036, 863, 16176, 8863, 3639, 1140, 18, 8222, 2932, 409, 679, 5217, 2405, 2433, 8863, 3639, 309, 261, 2...
if(cntx != null){
if (cntx != null) {
public void getnewBugAttributes(NewBugModel nbm, boolean getProd) throws Exception { BufferedReader in = null; try { // create a new input stream for getting the bug String prodname = URLEncoder.encode(nbm.getProduct(), "UTF-8"); String url = bugzillaUrl + "/enter_bug.cgi"; // use the proper url if we dont know the product yet if(!getProd) url += "?product=" + prodname + "&"; else url += "?"; // add the password and username to the url so that bugzilla logs us in /* * The UnsupportedEncodingException exception for * URLEncoder.encode() should not be thrown, since every * implementation of the Java platform is required to support * the standard charset "UTF-8" */ url += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferencePage.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferencePage.getPassword(), "UTF-8"); URL bugUrl = new URL(url); URLConnection cntx = BugzillaPlugin.getDefault().getUrlConnection(bugUrl); if(cntx != null){ InputStream input = cntx.getInputStream(); if(input != null) { in = new BufferedReader(new InputStreamReader(input)); new NewBugParser(in).parseBugAttributes(nbm, getProd); } } } catch(Exception e) { if ( e instanceof KeyManagementException || e instanceof NoSuchAlgorithmException || e instanceof IOException ){ if(MessageDialog.openQuestion(null, "Bugzilla Connect Error", "Unable to connect to Bugzilla server.\n" + "Bug report will be created offline and saved for submission later.")){ nbm.setConnected(false); getProdConfigAttributes(nbm); } else throw new Exception("Bug report will not be created."); } else throw e; } finally { try{ if(in != null) in.close(); }catch(IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID,IStatus.ERROR,"Problem closing the stream", e)); } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/de4b42dba8b1b8b770b413f9f9d24bdc30fccd38/BugzillaRepository.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 336, 2704, 19865, 2498, 12, 1908, 19865, 1488, 4264, 81, 16, 1250, 3570, 72, 13, 1216, 1185, 202, 95, 202, 202, 17947, 2514, 316, 273, 446, 31, 202, 202, 698, 3196, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 336, 2704, 19865, 2498, 12, 1908, 19865, 1488, 4264, 81, 16, 1250, 3570, 72, 13, 1216, 1185, 202, 95, 202, 202, 17947, 2514, 316, 273, 446, 31, 202, 202, 698, 3196, 202, ...
if(null != msg)
if (null != msg)
public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException { try { transformer.getResultTreeHandler().flushPending(); XPathContext liaison = ((XPathContext)transformer.getXPathContext()); ExtensionsTable etable = liaison.getExtensionsTable(); ExtensionHandler nsh = etable.get(m_extns); // We're seeing this extension namespace used for the first time. Try to // autodeclare it as a java namespace. if (null == nsh) { nsh = etable.makeJavaNamespace(m_extns); etable.addExtensionNamespace(m_extns, nsh); } nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), sourceNode.getOwnerDocument(), sourceNode, mode, this); } catch(Exception e) { // System.out.println(e); // e.printStackTrace(); String msg = e.getMessage(); if(null != msg) { if(msg.startsWith("Stopping after fatal error:")) { msg = msg.substring("Stopping after fatal error:".length()); } transformer.getMsgMgr().message(XSLMessages.createMessage(XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{msg}), false); //"Call to extension element failed: "+msg); // e.printStackTrace(); // System.exit(-1); } // transformer.message(msg); isAvailable = false; for (ElemTemplateElement child = m_firstChild; child != null; child = child.m_nextSibling) { if(child.getXSLToken() == Constants.ELEMNAME_FALLBACK) { try { transformer.pushElemTemplateElement(child, sourceNode); child.execute(transformer, sourceNode, mode); } finally { transformer.popElemTemplateElement(); } } } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemExtensionCall.java/clean/src/org/apache/xalan/templates/ElemExtensionCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 12, 8319, 2828, 8360, 16, 15604, 2029, 26799, 16, 8227, 16723, 1965, 13, 565, 1216, 14366, 225, 288, 565, 775, 565, 288, 1377, 8360, 18, 588, 1253, 2471, 1503, 7675, 1133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 8319, 2828, 8360, 16, 15604, 2029, 26799, 16, 8227, 16723, 1965, 13, 565, 1216, 14366, 225, 288, 565, 775, 565, 288, 1377, 8360, 18, 588, 1253, 2471, 1503, 7675, 1133...
public void end( ) throws SAXException { super.end( ); IncludedLibrary includeLibrary = (IncludedLibrary) struct; // Use file name without path and suffix as default namespace. if ( StringUtil.isBlank( includeLibrary.getNamespace( ) ) ) { String fileName = StringUtil.extractFileName( includeLibrary .getFileName( ) ); includeLibrary.setNamespace( fileName ); } String namespace = includeLibrary.getNamespace( ); if ( isDuplicateNamespace( namespace ) ) { LibraryException ex = new LibraryException( handler.module, new String[]{namespace}, LibraryException.DESIGN_EXCEPTION_DUPLICATE_LIBRARY_NAMESPACE ); handler.getErrorHandler( ).semanticError( ex ); return; } // the library has already been included. URL url = handler.module.findResource( includeLibrary.getFileName(), IResourceLocator.LIBRARY ); if ( url != null && handler.module.getLibraryByLocation( url.toString( ) ) != null ) { LibraryException ex = new LibraryException( handler.module, new String[]{url.toString( )}, LibraryException.DESIGN_EXCEPTION_LIBRARY_ALREADY_INCLUDED ); handler.getErrorHandler().semanticWarning( ex ); return; } if ( handler.module instanceof Library && ( (Library) handler.module ) .isRecursiveNamespace( includeLibrary .getNamespace( ) ) ) { LibraryException ex = new LibraryException( handler.module, new String[]{namespace}, LibraryException.DESIGN_EXCEPTION_LIBRARY_INCLUDED_RECURSIVELY ); handler.getErrorHandler( ).semanticError( ex ); return; } handler.module.loadLibrarySilently( includeLibrary ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7ef4314eeac72a8bf6cec13289f0b3b948bfa028/IncludedLibrariesStructureListState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/IncludedLibrariesStructureListState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 6459, 409, 1435, 15069, 55, 2501, 503, 202, 202, 95, 1082, 202, 9565, 18, 409, 5621, 1082, 202, 19323, 9313, 6702, 9313, 28657, 19323, 9313, 13, 1697, 31, 1082, 202, 759, 3727,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 6459, 409, 1435, 15069, 55, 2501, 503, 202, 202, 95, 1082, 202, 9565, 18, 409, 5621, 1082, 202, 19323, 9313, 6702, 9313, 28657, 19323, 9313, 13, 1697, 31, 1082, 202, 759, 3727,...
if(departmentID != null && unit.getType() != null && unit.getType().equals(UnitType.DEPARTMENT)){ department = (IDepartment) suportePersistente.getIPersistentObject().readByOID(Department.class, departmentID);
if (departmentID != null && unit.getType() != null && unit.getType().equals(UnitType.DEPARTMENT)) { department = (IDepartment) suportePersistente.getIPersistentObject().readByOID( Department.class, departmentID);
private void setDepartment(Integer departmentID, ISuportePersistente suportePersistente, IUnit unit) throws ExcepcaoPersistencia { IDepartment department = null; if(departmentID != null && unit.getType() != null && unit.getType().equals(UnitType.DEPARTMENT)){ department = (IDepartment) suportePersistente.getIPersistentObject().readByOID(Department.class, departmentID); unit.setDepartment(department); }// else if(departmentID == null && unit.getDepartment() != null){// unit.removeDepartment();// } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3a1a68ba706e5c6b1fa93deb780b0876ecf1d59d/CreateNewUnit.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/manager/organizationalStructureManagement/CreateNewUnit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 30358, 12, 4522, 443, 15750, 734, 16, 467, 3088, 499, 73, 11906, 73, 1169, 499, 73, 11906, 73, 16, 467, 2802, 2836, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 288, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 30358, 12, 4522, 443, 15750, 734, 16, 467, 3088, 499, 73, 11906, 73, 1169, 499, 73, 11906, 73, 16, 467, 2802, 2836, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 288, 3...
if ( dYAxisLabelsThickness > scX.getStartShift( ) ) { dStart = dX2 - scX.getStartShift( );
if ( scX.getDirection( ) == BACKWARD ) { if ( dYAxisLabelsThickness > scX.getEndShift( ) ) { dEnd = dX2 - scX.getEndShift( ); } else { dEnd = scX.getEnd( ); } dStart = scX.getStart( );
protected final double adjustHorizontal( double dBlockX, double dBlockWidth, AllAxes aax ) throws ChartException, IllegalArgumentException { final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final AutoScale scX = axPH.getScale( ); final AutoScale scY = axPV.getScale( ); final int iXLabelLocation = axPH.getLabelPosition( ); final int iYLabelLocation = axPV.getLabelPosition( ); final int iYTitleLocation = axPV.getTitlePosition( ); final Label laXAxisLabels = axPH.getLabel( ); final Label laYAxisLabels = axPV.getLabel( ); final Label laYAxisTitle = axPV.getTitle( ); final int iYTickStyle = axPV.getCombinedTickStyle( ); final IntersectionValue iv = axPV.getIntersectionValue( ); // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS AND // AXIS-PLOT SPACING final boolean bTicksLeft = ( iYTickStyle & TICK_LEFT ) == TICK_LEFT; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final boolean bTicksRight = ( iYTickStyle & TICK_RIGHT ) == TICK_RIGHT; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final double dAppliedYAxisPlotSpacing = ( iv.iType == IntersectionValue.MAX || iv.iType == IntersectionValue.MIN ) ? dYAxisPlotSpacing : 0; // UPDATE Y-AXIS ENDPOINTS DUE TO AXIS LABEL SHIFTS double dStart = scY.getStart( ), dEnd = scY.getEnd( ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if (!scY.zoomOut( )) { break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } double dYAxisLabelsThickness = scY.computeAxisLabelThickness( ids, axPV.getLabel( ), VERTICAL ); double dYAxisTitleThickness = 0; if ( laYAxisTitle.isVisible( ) ) { final String sPreviousValue = laYAxisTitle.getCaption( ).getValue( ); laYAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); try { dYAxisTitleThickness = computeBox( ids, iYTitleLocation, laYAxisTitle, 0, 0 ).getWidth( ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } finally { laYAxisTitle.getCaption( ).setValue( sPreviousValue ); } } double dX = getLocation( scX, iv ), dX1 = dX, dX2 = dX; // Y-AXIS BAND // HORIZONTAL // CO-ORDINATES // COMPUTE VALUES FOR x1, x, x2 // x = HORIZONTAL LOCATION OF Y-AXIS ALONG PLOT // x1 = LEFT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TITLE, TICKS & // SPACING) // x2 = RIGHT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TITLE, TICKS & // SPACING) if ( iv.iType == IntersectionValue.MIN ) // LEFT { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MAX' dX -= dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksLeft ) { dX1 -= TICK_SIZE; } if ( iYLabelLocation == LEFT ) { dX1 -= dYAxisLabelsThickness; dX2 += Math.max( // IF LABELS ARE LEFT, THEN RIGHT SPACING IS // MAX(RT_TICK_SIZE, HORZ_SPACING) bTicksRight ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( iYLabelLocation == RIGHT ) { dX2 += Math.max( // IF LABELS ARE RIGHT, THEN RIGHT SPACING // IS // MAX(RT_TICK_SIZE+AXIS_LBL_THCKNESS, // HORZ_SPACING) ( bTicksRight ? TICK_SIZE : 0 ) + dYAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } else if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } // ENSURE THAT WE DON'T GO BEHIND THE LEFT PLOT BLOCK EDGE if ( dX1 < dBlockX ) { final double dDelta = ( dBlockX - dX1 ); dX1 = dBlockX; dX += dDelta; dX2 += dDelta; } final double dDeltaX1 = dX - dX1; final double dDeltaX2 = dX2 - dX; // COMPUTE THE Y-AXIS BAND THICKNESS AND ADJUST X2 FOR LABELS BELOW if ( iYLabelLocation == RIGHT ) { // Y-AXIS BAND IS (x1 -> (x+AxisPlotSpacing)) dX2 = ( dX + dAppliedYAxisPlotSpacing ); } dYAxisLabelsThickness = dX2 - dX1; // REUSE VARIABLE // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END scX.computeAxisStartEndShifts( ids, laXAxisLabels, HORIZONTAL, iXLabelLocation, aax ); if ( dYAxisLabelsThickness > scX.getStartShift( ) ) { // REDUCE scX's STARTPOINT TO FIT THE Y-AXIS ON THE LEFT dStart = dX2 - scX.getStartShift( ); } else { dStart = scX.getStart( ); } dEnd = scX.getEnd( ); scX.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS IF // OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } // MOVE THE Y-AXIS TO THE LEFT EDGE OF THE PLOT IF SLACK SPACE // EXISTS if ( dYAxisLabelsThickness < scX.getStartShift( ) ) { dX = scX.getStart( ) - ( dX2 - dX ); } dX -= insCA.getLeft( ); dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } else if ( iv.iType == IntersectionValue.MAX ) // RIGHT { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MIN' dX += dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksRight ) { dX2 += TICK_SIZE; } if ( iYLabelLocation == RIGHT ) { dX2 += dYAxisLabelsThickness; dX1 -= Math.max( bTicksLeft ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( iYLabelLocation == LEFT ) { dX1 -= Math.max( ( bTicksLeft ? TICK_SIZE : 0 ) + dYAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } else if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } // ENSURE THAT WE DON'T GO AHEAD OF THE RIGHT PLOT BLOCK EDGE if ( dX2 > dBlockX + dBlockWidth ) { final double dDelta = dX2 - ( dBlockX + dBlockWidth ); dX2 = dBlockX + dBlockWidth; dX -= dDelta; dX1 -= dDelta; } final double dDeltaX1 = dX - dX1; final double dDeltaX2 = dX2 - dX; // COMPUTE THE Y-AXIS BAND THICKNESS AND ADJUST X1 IF Y-AXIS LABELS // ARE ON THE LEFT if ( iYLabelLocation == LEFT ) { // Y-AXIS BAND IS ((x-AxisPlotSpacing) -> x2) dX1 = ( dX - dAppliedYAxisPlotSpacing ); } dYAxisLabelsThickness = dX2 - dX1; // REUSE VARIABLE // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END scX.computeAxisStartEndShifts( ids, laXAxisLabels, HORIZONTAL, iXLabelLocation, aax ); if ( dYAxisLabelsThickness > scX.getEndShift( ) ) { // REDUCE scX's ENDPOINT TO FIT THE Y-AXIS ON THE RIGHT dEnd = dX1 + scX.getEndShift( ); } else { dEnd = scX.getEnd( ); } dStart = scX.getStart( ); scX.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS IF // OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } // MOVE THE Y-AXIS TO THE LEFT EDGE OF THE PLOT IF SLACK SPACE // EXISTS if ( dYAxisLabelsThickness < scX.getEndShift( ) ) { dX = scX.getEnd( ) - ( dX1 - dX ); } dX += insCA.getRight( ); dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } else { double dDeltaX1 = 0, dDeltaX2 = 0; if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } else if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } if ( iYLabelLocation == LEFT ) { dX1 -= ( bTicksLeft ? TICK_SIZE : 0 ) + dYAxisLabelsThickness; dX2 += ( bTicksRight ? TICK_SIZE : 0 ); dDeltaX1 = dX - dX1; dDeltaX2 = dX2 - dX; // CHECK IF LEFT EDGE OF Y-AXIS BAND GOES BEHIND THE PLOT LEFT // EDGE if ( dX1 < dBlockX ) { final Object[] oaMinMax = scX.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE LEFT EDGE // OF THE Y-AXIS LABELS WITH THE LEFT EDGE OF THE PLOT // AND/OR // ENSURE THAT THE START POINT OF THE X-AXIS SCALE IS // SUITABLY POSITIONED // computeTicks(g2d, fm, iXLabelLocation, iXRotation, // HORIZONTAL, scX.dStart, scX.dEnd, scX, true); do { // CANCEL OUT THE ENDPOINT LABEL SHIFT COMPUTATIONS FROM // THE X-AXIS scX.setEndPoints( scX.getStart( ) - scX.getStartShift( ), scX.getEnd( ) + scX.getEndShift( ) ); // RESTORE scX.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. X-AXIS // STARTPOINT double[] da = scX.getEndPoints( ); double dT_RI = dBlockX - dX1; // THRESHOLD - // REQUESTEDINTERSECTION double dAMin_AMax = da[1] - da[0]; double dAMax_RI = da[1] - dX; double dDelta = ( dT_RI / dAMax_RI ) * dAMin_AMax; dStart = da[0] + dDelta; dEnd = da[1]; if ( dStart < dBlockX ) { dStart = dBlockX; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { bForceBreak = true; break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } dX = getLocation( scX, iv ); dX1 = dX - dDeltaX1; // RE-CALCULATE X-AXIS BAND LEFT // EDGE } while ( Math.abs( dX1 - dBlockX ) > 1 && !bForceBreak ); } else { // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR dStart = scX.getStart( ); dEnd = scX.getEnd( ); scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } dX = getLocation( scX, iv ); } dX1 = dX - dDeltaX1; dX2 = dX + dDeltaX2; } else if ( iYLabelLocation == RIGHT ) { dX2 += ( bTicksRight ? TICK_SIZE : 0 ) + dYAxisLabelsThickness; dX1 -= ( bTicksLeft ? TICK_SIZE : 0 ); dDeltaX1 = dX - dX1; dDeltaX2 = dX2 - dX; // CHECK IF RIGHT EDGE OF Y-AXIS BAND GOES BEHIND THE PLOT RIGHT // EDGE if ( dX2 > dBlockX + dBlockWidth ) { final Object[] oaMinMax = scX.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE RIGHT EDGE // OF THE Y-AXIS LABELS WITH THE RIGHT EDGE OF THE PLOT // AND/OR // ENSURE THAT THE START POINT OF THE X-AXIS SCALE IS // SUITABLY POSITIONED do { // CANCEL OUT THE ENDPOINT LABEL SHIFT COMPUTATIONS FROM // THE X-AXIS scX.setEndPoints( scX.getStart( ) - scX.getStartShift( ), scX.getEnd( ) + scX.getEndShift( ) ); // RESTORE scX.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. X-AXIS // ENDPOINT double[] da = scX.getEndPoints( ); double dT_RI = dX2 - ( dBlockX + dBlockWidth ); // THRESHOLD // - // REQUESTEDINTERSECTION double dAMin_AMax = da[1] - da[0]; double dAMin_RI = dX - da[0]; double dDelta = ( dT_RI / dAMin_RI ) * dAMin_AMax; dEnd = da[1] - dDelta; dStart = da[0]; if ( dEnd > dBlockX + dBlockWidth ) { dEnd = dBlockX + dBlockWidth; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { bForceBreak = true; break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } } dX = getLocation( scX, iv ); dX2 = dX + dDeltaX2; // RE-CALCULATE X-AXIS BAND // RIGHT // EDGE } while ( Math.abs( dX2 - ( dBlockX + dBlockWidth ) ) > 1 && !bForceBreak ); } else { // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR dStart = scX.getStart( ); dEnd = scX.getEnd( ); scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if (!scX.zoomOut( )) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } dX = getLocation( scX, iv ); } dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; } axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } return dX; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/536b54a46b25aa99e427a2fbd8217e09108c905a/PlotWithAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWithAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 1645, 5765, 14457, 12, 1645, 302, 1768, 60, 16, 1645, 302, 1768, 2384, 16, 1082, 202, 1595, 26494, 279, 651, 262, 1216, 14804, 503, 16, 2754, 202, 95, 202, 202, 6385, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1645, 5765, 14457, 12, 1645, 302, 1768, 60, 16, 1645, 302, 1768, 2384, 16, 1082, 202, 1595, 26494, 279, 651, 262, 1216, 14804, 503, 16, 2754, 202, 95, 202, 202, 6385, 69...
if (broadcast) {
if (this.shouldBeAcquaintance(remoteService)) { this.register(remoteService); try { remoteService.register((P2PService) this.stubOnThis); } catch (Exception e) { logger.debug("Trouble with registering remote peer", e); this.acquaintanceManager.remove(remoteService); } } else if (broadcast) {
public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) { if (uuid != null) { logger.debug("Exploring message received with #" + uuid); ttl--; } boolean broadcast; try { broadcast = broadcaster(ttl, uuid, remoteService); } catch (P2POldMessageException e) { return; } if (broadcast) { // Forwarding the message if (uuid == null) { logger.debug("Generating uuid for exploring message"); uuid = generateUuid(); } try { this.acquaintances.exploring(ttl, uuid, remoteService); logger.debug("Broadcast exploring message with #" + uuid); } catch (ExceptionListException e) { // nothing to do } } // Method code --------------------------------------------------------- // This should be register if (this.shouldBeAcquaintance(remoteService)) { this.register(remoteService); remoteService.register((P2PService) this.stubOnThis); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/0aad9a60aca347dacfc0f0039dbbb1671d89cbc5/P2PService.java/buggy/src/org/objectweb/proactive/p2p/service/P2PService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 1194, 18, 4148, 2932, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 1194, 18, 4148, 2932, 424...
if(digitsFound[1]>0)
doubleResult=(double)longResult; if(digitsFound[1]==0)
public double toDouble() { int end = m_length+m_start; if(0 == end) return Double.NaN; int start = m_start; FastStringBuffer fsb = fsb(); long longResult=0; boolean isNegative=false; boolean trailingSpace=false; int[] digitsFound={0,0}; // intpart,fracpart int digitType=0; // Index to which kind of digit we're accumulating double doubleResult=0; // Scan past leading whitespace characters while(start< end && XMLCharacterRecognizer.isWhiteSpace( fsb.charAt(start) ) ) ++start; if (start < end && fsb.charAt(start) == '-') { isNegative=true; start++; } // parse the string from left to right converting as an integer. for (int i = start; i < end; i++) { char c = fsb.charAt(i); if(XMLCharacterRecognizer.isWhiteSpace(c)) { trailingSpace=true; break; // Trailing whitespace is ignored } else if(trailingSpace) return Double.NaN; // Nonspace after space is poorly formed switch(c) { case '.': if(digitType==0) digitType=1; else return Double.NaN; // Second period is error break; case '0': // NOT Unicode isDigit(); ASCII digits _only_ case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': // We have a potential overflow issue that we need // to guard against. See Bugzilla 5346. // // %REVIEW% Is it possible that we should be accepting _some_ // of the bits of the new digit, but not all of them? long newResult = longResult * 10 + (c - '0'); if(newResult>0) { longResult=newResult; ++digitsFound[digitType]; // Remember scaling } else { --digitsFound[1]; // Just scale up by 10, later } break; default: return Double.NaN; // Nonnumeric is error } } if(0 ==digitsFound[0]&& 0==digitsFound[1]) return Double.NaN; // Convert from scaled integer to floating point. This will come close. // There's an alternative solution involving Double.longBitsToDouble // followed by a combined renormalize/scale operation... but I honestly // think the more straightforward solution comes out to just about // the same thing. long scale=1; // AFAIK, java doesn't have an easier 10^n operation if(digitsFound[1]>0) // Normal fractional-part processing { for(int i=digitsFound[1];i>0;--i) scale*=10; doubleResult=((double)longResult)/scale; } else // Case where int-part overflow exceeds frac-part length { for(int i=digitsFound[1];i<0;++i) scale*=10; doubleResult=((double)longResult)*scale; } if(isNegative) doubleResult *= -1; return doubleResult; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f6285a9f152710ee8e34a4cb1b5a7fccd23d1a6d/XStringForFSB.java/clean/src/org/apache/xpath/objects/XStringForFSB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 358, 5265, 1435, 225, 288, 565, 509, 679, 273, 312, 67, 2469, 15, 81, 67, 1937, 31, 565, 309, 12, 20, 422, 679, 13, 1377, 327, 3698, 18, 21172, 31, 565, 509, 787, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 358, 5265, 1435, 225, 288, 565, 509, 679, 273, 312, 67, 2469, 15, 81, 67, 1937, 31, 565, 309, 12, 20, 422, 679, 13, 1377, 327, 3698, 18, 21172, 31, 565, 509, 787, 273, 3...
}else if (atom.getChemicalGroupConstant()==4){
}else if (atomChemGroupConstant==4){
public AtomType findMatchingAtomType(AtomContainer atomContainer, Atom atomInterface) throws CDKException { org.openscience.cdk.Atom atom = (org.openscience.cdk.Atom)atomInterface; //System.out.println("****** Configure MMFF94 AtomType via findMatching ******"); //System.out.print(" Symbol:" + atom.getSymbol() +" HoseCode>" + atom.getSphericalMatcher() + " "); logger.debug(" Symbol:" + atom.getSymbol() +" HoseCode>" + atom.getSphericalMatcher() + " "); try { factory = AtomTypeFactory.getInstance("org/openscience/cdk/config/data/mmff94_atomtypes.xml"); } catch (Exception ex1) { logger.error(ex1.getMessage()); logger.debug(ex1); } if (atom instanceof PseudoAtom) { return factory.getAtomTypes("DU")[0]; } Pattern p1 = null; Pattern p2 = null; String ID = ""; boolean atomTypeFlag = false; Matcher mat1=null; Matcher mat2=null; double tmpMaxBondOrder = 0; maxBondOrder = atomContainer.getMaximumBondOrder(atom); for (int j = 0; j < atomTypeIds.length; j++){ tmpMaxBondOrder = factory.getAtomType(atomTypeIds[j]).getMaxBondOrder(); logger.debug(j + "ATOM TYPE "+ tmpMaxBondOrder + " " +factory.getAtomType(atomTypeIds[j]).getSphericalMatcher()); p1 =Pattern.compile(factory.getAtomType(atomTypeIds[j]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()) { ID = atomTypeIds[j]; if (atomTypeIds[j].equals("C")) { if (atom.getChemicalGroupConstant()!=-1) {//in Ring if (maxBondOrder == 1){ if (atom.getRingSize() == 3) { ID = atomTypeIds[9];//sp3 3mem rings }else if (atom.getRingSize() == 4) { ID = atomTypeIds[8];//sp3 4mem rings } }else{//sp2 p1 =Pattern.compile(factory.getAtomType(atomTypeIds[13]).getSphericalMatcher());//C5B mat1 = p1.matcher(atom.getSphericalMatcher()); p2 =Pattern.compile(factory.getAtomType(atomTypeIds[12]).getSphericalMatcher());//C5A mat2 = p2.matcher(atom.getSphericalMatcher()); if (mat1.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[13]; }else if (mat2.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[12]; }else if (atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5) { ID = atomTypeIds[14];//C5 in het 5 ring }else if (atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[11];//Car in benzene, pyroll } } }else{//not in Ring p1 = Pattern.compile(factory.getAtomType(atomTypeIds[66]).getSphericalMatcher());//S=C mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[66];//S=C } } } else if (atomTypeIds[j].equals("Csp2")) { if (atom.getChemicalGroupConstant()%2==0 & atom.getRingSize()==4 & !atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[10];//CE4R } } else if (atomTypeIds[j].equals("C=")) { if (atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[12];//C5A } } else if (atomTypeIds[j].equals("N")) { //Amid p1 = Pattern.compile(factory.getAtomType(atomTypeIds[48]).getSphericalMatcher());//NC=0 mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() & atom.getChemicalGroupConstant()==-1) { ID = atomTypeIds[48];//NC=O } //nsp3 oxide p1 = Pattern.compile(factory.getAtomType(atomTypeIds[44]).getSphericalMatcher());//sp3 n-oxide mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && maxBondOrder==tmpMaxBondOrder){ ID = atomTypeIds[44]; } //ring sytems p1 = Pattern.compile(factory.getAtomType(atomTypeIds[56]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (atom.getChemicalGroupConstant()==10){ ID = atomTypeIds[56]; }else if (atom.getChemicalGroupConstant()==4){ ID = atomTypeIds[57]; }else if (atom.getChemicalGroupConstant()%2==0 & atom.getRingSize()==5 & atom.getFlag(CDKConstants.ISAROMATIC)){ ID=atomTypeIds[64]; } //Nsp2-Oxides p1 = Pattern.compile(factory.getAtomType(atomTypeIds[61]).getSphericalMatcher());//npox mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && maxBondOrder==tmpMaxBondOrder){ ID=atomTypeIds[43]; } if (atom.getFlag(CDKConstants.ISAROMATIC)){ if(mat1.matches()&& atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[61]; }else if(mat1.matches()&& atom.getRingSize()==5){ ID = atomTypeIds[62]; } } //NC#N p1 = Pattern.compile(factory.getAtomType(atomTypeIds[45]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[45]; } }else if (atomTypeIds[j].equals("N=C")) { //n beta heteroaromatic ring p1 = Pattern.compile(factory.getAtomType(atomTypeIds[59]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (atom.getChemicalGroupConstant()!=-1) { if (mat1.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[59];//N5A }else if(atom.getChemicalGroupConstant()==10){//NPYD ID = atomTypeIds[56]; }else if(atom.getChemicalGroupConstant()==4){//NPYL ID = atomTypeIds[57]; } } //N2OX p1 = Pattern.compile(factory.getAtomType(atomTypeIds[43]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ if (atom.getChemicalGroupConstant()==10){ ID = atomTypeIds[61];//npox }else if (atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[62];//n5ox }else { ID = atomTypeIds[43];//n2ox } } }else if (atomTypeIds[j].equals("N2OX")){ //NO3 p1 = Pattern.compile(factory.getAtomType(atomTypeIds[46]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && atom.getChemicalGroupConstant()==-1){ ID = atomTypeIds[46];//NO3 } if (atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[61];//NPOX }else if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[62];//N5OX } }else if (atomTypeIds[j].equals("=N=") || atomTypeIds[j].equals("NAZT")){ if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[59];//aromatic N5A } }else if (atomTypeIds[j].equals("N+=")){ if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[63];//n5+ }else if (atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[58];//npd+ } }else if (atomTypeIds[j].equals("O")){ if (atom.getChemicalGroupConstant()==6){ ID = atomTypeIds[35];//Oar } }else if (atomTypeIds[j].equals("HO")){ p1 = Pattern.compile(factory.getAtomType(atomTypeIds[21]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[21];//HOCC } p1 = Pattern.compile(factory.getAtomType(atomTypeIds[18]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[18];//HOCO } }else if (atomTypeIds[j].equals("P")){ p1 = Pattern.compile(factory.getAtomType(atomTypeIds[75]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[75];//-P=C } }else if (atomTypeIds[j].equals("S")){ if (atom.getRingSize()==5 && atom.getFlag(CDKConstants.ISAROMATIC)){ ID = atomTypeIds[72];//Sthiophen } }else if (atomTypeIds[j].equals("HC")){ p1 = Pattern.compile(factory.getAtomType("HP").getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = "HP"; } } atomTypeFlag = true; // System.out.println(" MATCH AtomTypeID:"+j+ " " + ID); logger.debug(" MATCH AtomTypeID:"+j+ " " + ID); break; }//IF }//for end if (atomTypeFlag) { atomTypeFlag = false; return factory.getAtomType(ID); } else { //System.out.println("NoSuchAtomTypeException: Atom is unkown with Symbol:" + atom.getSymbol() + " does not MATCH AtomType. HoseCode:" + atom.getSphericalMatcher()); return factory.getAtomType("DU"); } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/53b7038bf76a67276cd51466afb62126fb362c25/MMFF94AtomTypeMatcher.java/buggy/src/org/openscience/cdk/atomtype/MMFF94AtomTypeMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7149, 559, 1104, 9517, 3641, 559, 12, 3641, 2170, 22487, 16, 7149, 3179, 1358, 13, 1216, 24570, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 3179, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7149, 559, 1104, 9517, 3641, 559, 12, 3641, 2170, 22487, 16, 7149, 3179, 1358, 13, 1216, 24570, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 3179, 273, 26...
public synchronized void reportProgress(float p, String state, Phase newPhase) {
public synchronized void reportProgress(float p, String state, TaskStatus.Phase newPhase) {
public synchronized void reportProgress(float p, String state, Phase newPhase) { LOG.info(task.getTaskId()+" "+p+"% "+state); this.progress = p; this.runstate = TaskStatus.State.RUNNING; this.lastProgressReport = System.currentTimeMillis(); Phase oldPhase = taskStatus.getPhase() ; if( oldPhase != newPhase ){ // sort phase started if( newPhase == Phase.SORT ){ this.taskStatus.setShuffleFinishTime(System.currentTimeMillis()); }else if( newPhase == Phase.REDUCE){ this.taskStatus.setSortFinishTime(System.currentTimeMillis()); } } this.taskStatus.setStateString(state); }
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/1e24384b1f84e52afdfd79649a51a55574be4905/TaskTracker.java/clean/src/java/org/apache/hadoop/mapred/TaskTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 2605, 5491, 12, 5659, 293, 16, 514, 919, 16, 29628, 18, 11406, 394, 11406, 13, 288, 5411, 2018, 18, 1376, 12, 4146, 18, 588, 30182, 1435, 9078, 13773, 84, 9078, 9, 1377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 2605, 5491, 12, 5659, 293, 16, 514, 919, 16, 29628, 18, 11406, 394, 11406, 13, 288, 5411, 2018, 18, 1376, 12, 4146, 18, 588, 30182, 1435, 9078, 13773, 84, 9078, 9, 1377...
item.processMouseEvent(e, path, manager);
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicRadioButtonMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 761, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, 761, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, 1071, 1726, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 761, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, 761, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, 1071, 1726, 18, 2567, 9186, 1133, 12, 73, 16, 589, 16, 3301, 1769, ...
public void visitL2F(L2F obj) { handleNormalInstruction(obj); }
public void visitL2F(L2F obj) { handleNormalInstruction(obj); }
public void visitL2F(L2F obj) { handleNormalInstruction(obj); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/AbstractFrameModelingVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 48, 22, 42, 12, 48, 22, 42, 1081, 13, 288, 1640, 5506, 11983, 12, 2603, 1769, 289, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 48, 22, 42, 12, 48, 22, 42, 1081, 13, 288, 1640, 5506, 11983, 12, 2603, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (checkSelf) check(n++ < occupiedCount);
if (checkSelf) { if (n >= occupiedCount) Context.codeBug(); ++n; }
private int findIndex(int key) { int[] keys = this.keys; if (keys != null) { int fraction = key * A; int index = fraction >>> (32 - power); int entry = keys[index]; if (entry == key) { return index; } if (entry != EMPTY) { // Search in table after first failed attempt int mask = (1 << power) - 1; int step = tableLookupStep(fraction, mask, power); int n = 0; do { if (checkSelf) check(n++ < occupiedCount); index = (index + step) & mask; entry = keys[index]; if (entry == key) { return index; } } while (entry != EMPTY); } } return -1; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/de58157289d28d4203108b78218d0d6b32c0e7aa/UintMap.java/buggy/js/rhino/src/org/mozilla/javascript/UintMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1104, 1016, 12, 474, 498, 13, 288, 3639, 509, 8526, 1311, 273, 333, 18, 2452, 31, 3639, 309, 261, 2452, 480, 446, 13, 288, 5411, 509, 8330, 273, 498, 380, 432, 31, 5411, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 1016, 12, 474, 498, 13, 288, 3639, 509, 8526, 1311, 273, 333, 18, 2452, 31, 3639, 309, 261, 2452, 480, 446, 13, 288, 5411, 509, 8330, 273, 498, 380, 432, 31, 5411, 50...
private HighlightInfo processLocalVariable(PsiLocalVariable variable, final List<IntentionAction> options) {
private HighlightInfo processLocalVariable(PsiLocalVariable variable, final List<IntentionAction> options, final String displayName) {
private HighlightInfo processLocalVariable(PsiLocalVariable variable, final List<IntentionAction> options) { PsiIdentifier identifier = variable.getNameIdentifier(); if (!myRefCountHolder.isReferenced(variable)) { String message = MessageFormat.format(LOCAL_VARIABLE_IS_NOT_USED, identifier.getText()); HighlightInfo highlightInfo = createUnusedSymbolInfo(identifier, message); QuickFixAction.registerQuickFixAction(highlightInfo, new RemoveUnusedVariableFix(variable), options); return highlightInfo; } boolean referenced = myRefCountHolder.isReferencedForRead(variable); if (!referenced) { String message = MessageFormat.format(LOCAL_VARIABLE_IS_NOT_USED_FOR_READING, identifier.getText()); HighlightInfo highlightInfo = createUnusedSymbolInfo(identifier, message); QuickFixAction.registerQuickFixAction(highlightInfo, new RemoveUnusedVariableFix(variable), options); return highlightInfo; } if (!variable.hasInitializer()) { referenced = myRefCountHolder.isReferencedForWrite(variable); if (!referenced) { String message = MessageFormat.format(LOCAL_VARIABLE_IS_NOT_ASSIGNED, identifier.getText()); final HighlightInfo unusedSymbolInfo = createUnusedSymbolInfo(identifier, message); QuickFixAction.registerQuickFixAction(unusedSymbolInfo, new EmptyIntentionAction(HighlightDisplayKey.getDisplayNameByKey(HighlightDisplayKey.UNUSED_SYMBOL), options), options); return unusedSymbolInfo; } } return null; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/PostHighlightingPass.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 31386, 966, 1207, 2042, 3092, 12, 52, 7722, 2042, 3092, 2190, 16, 727, 987, 32, 1702, 5054, 1803, 34, 702, 16, 727, 514, 16218, 13, 288, 565, 453, 7722, 3004, 2756, 273, 2190, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 31386, 966, 1207, 2042, 3092, 12, 52, 7722, 2042, 3092, 2190, 16, 727, 987, 32, 1702, 5054, 1803, 34, 702, 16, 727, 514, 16218, 13, 288, 565, 453, 7722, 3004, 2756, 273, 2190, 18,...
public final static void finalizeAll () { int cursor = 0; while (cursor < candidateEnd) { Address cand = candidate.get(cursor); candidate.set(cursor, Address.zero()); addLive(cand.toObjectReference()); cursor++; } compactCandidates(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/Finalizer.java/clean/MMTk/src/org/mmtk/utility/Finalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 760, 918, 12409, 1595, 1832, 288, 565, 509, 3347, 273, 374, 31, 565, 1323, 261, 9216, 411, 5500, 1638, 13, 288, 1377, 5267, 15350, 273, 5500, 18, 588, 12, 9216, 1769, 1377, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 12409, 1595, 1832, 288, 565, 509, 3347, 273, 374, 31, 565, 1323, 261, 9216, 411, 5500, 1638, 13, 288, 1377, 5267, 15350, 273, 5500, 18, 588, 12, 9216, 1769, 1377, 5...
short htl = m.getShort(DMT.HTL);
boolean handleRouted(Message m) { Logger.minor(this, "handleRouted("+m+")"); if(m.getSource() != null && (!(m.getSource() instanceof NodePeer))) { Logger.error(this, "Routed message but source "+m.getSource()+" not a NodePeer!"); return true; } long id = m.getLong(DMT.UID); Long lid = new Long(id); RoutedContext ctx = new RoutedContext(m); routedContexts.put(lid, ctx); NodePeer pn = (NodePeer) (m.getSource()); short htl = m.getShort(DMT.HTL); if(pn != null) htl = pn.decrementHTL(htl); // pn == null => originated locally, keep full htl double target = m.getDouble(DMT.TARGET_LOCATION); Logger.minor(this, "id "+id+" from "+pn+" htl "+htl+" target "+target); if(node.lm.getLocation().getValue() == target) { Logger.minor(this, "Dispatching "+m.getSpec()+" on "+node.portNumber); // Handle locally // Message type specific processing dispatchRoutedMessage(m, id); return true; } else if(htl == 0) { Message reject = DMT.createFNPRoutedRejected(id); if(pn != null) pn.sendAsync(reject); return true; } else { return forward(m, id, pn, htl, target, ctx); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/67ffc74c653c146c3327643dba419ef696af844a/NodeDispatcher.java/buggy/src/freenet/node/NodeDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 1640, 4583, 329, 12, 1079, 312, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 4110, 4583, 329, 2932, 15, 81, 9078, 2225, 1769, 3639, 309, 12, 81, 18, 588, 1830, 1435, 480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1640, 4583, 329, 12, 1079, 312, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 4110, 4583, 329, 2932, 15, 81, 9078, 2225, 1769, 3639, 309, 12, 81, 18, 588, 1830, 1435, 480, ...
graphics.drawText( num, textLocation );
if (canDrawNumber(num, textLocation, graphics)) { graphics.drawText( num, textLocation ); }
protected void paintFigure( Graphics graphics ) { //set /* * @TODO:Pratik maybe you can break this method into a few methods. that * might make it a little easier to read and understand. plus, * sub-classes could customize certain parts. */ setIntervalForPaint( ); double dotsPerUnit = getDPU( ); Rectangle clip = transposer.t( graphics.getClip( Rectangle.SINGLETON ) ); Rectangle figClientArea = transposer.t( getClientArea( ) ); // Use the x and width of the client area, but the y and height of the // clip as the // bounds of the area which is to be repainted. This will increase // performance as the // entire ruler will not be repainted everytime. Rectangle clippedBounds = clip; clippedBounds.x = figClientArea.x; clippedBounds.width = figClientArea.width - BORDER_WIDTH; // Paint the background if ( isOpaque( ) ) { graphics.fillRectangle( transposer.t( clippedBounds ) ); } /* * A major mark is one that goes all the way from the left edge to the * right edge of a ruler and for which a number is displayed. Determine * the minimum number of pixels that are to be left between major marks. * This will, in turn, help determine how many units are to be displayed * per major mark. A major mark should have at least enough pixels to * display the text and its padding. We take into the consideration the * max of text's width and height so that for horizontal and vertical * rulers that are of the same height, the number of units per major * mark is the same. */ int unitsPerMajorMark = (int) ( minPixelsBetweenMajorMarks / dotsPerUnit ); //unitsPerMajorMark = 20; if ( minPixelsBetweenMajorMarks % dotsPerUnit != 0.0 ) { unitsPerMajorMark++; } if ( interval > 0 ) { /* * If the client specified how many units are to be displayed per * major mark, use that. If, however, showing that many units * wouldn't leave enough room for the text, than take its smallest * multiple that would leave enough room. */ int intervalMultiple = interval; while ( intervalMultiple < unitsPerMajorMark ) { intervalMultiple += interval; } unitsPerMajorMark = intervalMultiple; } else if ( unitsPerMajorMark != 1 && unitsPerMajorMark % 2 != 0 ) { // if the number of units per major mark is calculated dynamically, // ensure that // it is an even number. unitsPerMajorMark++; } /* * divsPerMajorMark indicates the number of divisions that a major mark * should be divided into. for eg., a value of 2 would mean that a major * mark would be shown as having two parts. that means that there would * be a marker showing the beginning and end of the major marker and * another right in the middle. */ int divsPerMajorMark; if ( divisions > 0 && dotsPerUnit * unitsPerMajorMark / divisions >= minPixelsBetweenMarks ) { /* * If the client has specified the number of divisions per major * mark, use that unless it would cause the minimum space between * marks to be less than minPixelsBetweenMarks */ divsPerMajorMark = divisions; } else { /* * If the client hasn't specified the number of divisions per major * mark or the one that the client has specified is invalid, then * calculate it dynamically. This algorithm will try to display 10 * divisions per CM, and 16 per INCH. However, if that puts the * marks too close together (i.e., the space between them is less * than minPixelsBetweenMarks), then it keeps decreasing the number * of divisions by a factor of 2 until there is enough space between * them. */ divsPerMajorMark = 2; if ( getUnit( ) == RulerProvider.UNIT_CENTIMETERS ) { divsPerMajorMark = 10; } else if ( getUnit( ) == RulerProvider.UNIT_INCHES ) { divsPerMajorMark = 8; } //divsPerMajorMark = getPerMajorMark(getUnit()); while ( dotsPerUnit * unitsPerMajorMark / divsPerMajorMark < minPixelsBetweenMarks ) { divsPerMajorMark /= 2; if ( divsPerMajorMark == 0 ) { break; } } // This should never happen unless the client has specified a // minPixelsBetweenMarks that is larger than // minPixelsBetweenMajorMarks (which // is calculated using the text's size -- size of the largest number // to be // displayed). if ( divsPerMajorMark == 0 ) { divsPerMajorMark = 1; } } /* * mediumMarkerDivNum is used to determine which mark (line drawn to * indicate a point on the ruler) in a major mark will be of medium * size. If its value is 1 then every mark will be of medium size. If * its value is 5, then every 5th mark will be of medium size (the rest * being of small size). */ int mediumMarkerDivNum = 1; switch ( divsPerMajorMark ) { case 20 : case 10 : case 5 : mediumMarkerDivNum = 5; break; case 16 : case 8 : mediumMarkerDivNum = 4; break; case 4 : mediumMarkerDivNum = 2; break; case 2 : mediumMarkerDivNum = 1; } Rectangle leftRect = transposer.t( getScaleLeftSpace( ) ); int leftMargin = leftRect.y; /* * dotsPerDivision = number of pixels between each mark = number of * pixels in a division */ double dotsPerDivision = dotsPerUnit * unitsPerMajorMark / divsPerMajorMark; /* * startMark is the division/mark from which we are going to start * painting. It should be the last major mark (one for which a number is * displayed) that is before the top of the clip rectangle. */ int startMark = (int) ( ( clippedBounds.y - leftMargin ) / ( dotsPerUnit * unitsPerMajorMark ) ) * divsPerMajorMark; if ( clippedBounds.y < 0 ) { // -2 / 10 = 0, not -1. so, if the top of the clip is negative, we // need to move // the startMark back by a whole major mark. startMark -= divsPerMajorMark; } // endMark is the first non-visible mark (doesn't have to be a major // mark) that is // beyond the end of the clip region int endMark = (int) ( ( ( clippedBounds.y + clippedBounds.height - leftMargin ) / dotsPerDivision ) ) + 1; int leading = FigureUtilities.getFontMetrics( getFont( ) ).getLeading( ); Rectangle forbiddenZone = new Rectangle( ); for ( int div = startMark; div <= endMark; div++ ) { // y is the vertical position of the mark if ( leftRect.bottom( ) <= clippedBounds.bottom( ) ) { //continue; } int y = (int) ( div * dotsPerDivision ); if ( div % divsPerMajorMark == 0 ) { String num = "" + ( div / divsPerMajorMark ) * unitsPerMajorMark; //$NON-NLS-1$ if ( isHorizontal( ) ) { Dimension numSize = FigureUtilities.getStringExtents( num, getFont( ) ); /* * FigureUtilities is increasing the width reported by GC by * 1, so we remove it here. Also, if the actual width (the * one reported by the GC) is even, we want to increase it * by 1. This will ensure that when marks marks are erased * because they are too close to the number, they are erased * from both sides of that number. */ if ( numSize.width % 2 == 0 ) { numSize.width--; } Point textLocation = new Point( y - ( numSize.width / 2 ) + leftMargin, clippedBounds.x + textMargin - leading ); forbiddenZone.setLocation( textLocation ); forbiddenZone.setSize( numSize ); forbiddenZone.expand( 1, 1 ); graphics.fillRectangle( forbiddenZone ); // Uncomment the following line of code if you want to see a // line at // the exact position of the major mark // graphics.drawLine(y, clippedBounds.x, y, clippedBounds.x // + clippedBounds.width); graphics.drawText( num, textLocation ); } else { Image numImage = ImageUtilities.createRotatedImageOfString( num, getFont( ), getForegroundColor( ), getBackgroundColor( ) ); Point textLocation = new Point( clippedBounds.x + textMargin, y - ( numImage.getBounds( ).height / 2 ) + leftMargin ); forbiddenZone.setLocation( textLocation ); forbiddenZone.setSize( numImage.getBounds( ).width, numImage.getBounds( ).height ); forbiddenZone .expand( 1, 1 + ( numImage.getBounds( ).height % 2 == 0 ? 1 : 0 ) ); graphics.fillRectangle( forbiddenZone ); graphics.drawImage( numImage, textLocation ); numImage.dispose( ); } } else if ( ( div % divsPerMajorMark ) % mediumMarkerDivNum == 0 ) { // this is a medium mark, so its length should be longer than // the small marks Point start = transposer .t( new Point( ( clippedBounds.getRight( ).x - mediumMarkWidth ) / 2, y + leftMargin ) ); Point end = transposer.t( new Point( ( ( clippedBounds .getRight( ).x - mediumMarkWidth ) / 2 ) + mediumMarkWidth, y + leftMargin ) ); if ( !forbiddenZone.contains( start ) ) { graphics.drawLine( start, end ); } } else { // small mark Point start = transposer .t( new Point( ( clippedBounds.getRight( ).x - smallMarkWidth ) / 2, y + leftMargin ) ); Point end = transposer.t( new Point( ( ( clippedBounds .getRight( ).x - smallMarkWidth ) / 2 ) + smallMarkWidth, y + leftMargin ) ); if ( !forbiddenZone.contains( start ) ) { graphics.drawLine( start, end ); } } } // paint the border clippedBounds.expand( BORDER_WIDTH, 0 ); graphics.setForegroundColor( ColorConstants.buttonDarker ); graphics.drawLine( transposer.t( clippedBounds.getTopRight( ) .translate( -1, -1 ) ), transposer.t( clippedBounds .getBottomRight( ).translate( -1, -1 ) ) ); Color c = Display.getCurrent( ).getSystemColor( SWT.COLOR_WIDGET_BACKGROUND ); graphics.setBackgroundColor( ReportColorConstants.greyFillColor ); graphics.setBackgroundColor( c ); Rectangle rect = new Rectangle( 0, 0, clippedBounds.height, leftMargin - 2 ); rect = transposer.t( rect ); graphics.fillRectangle( rect ); graphics.fillRectangle( getEndRect( graphics .getClip( Rectangle.SINGLETON ) ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1d4448192d33ea4dc6baf2cac6a0170f1e0cf45a/EditorRulerFigure.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerFigure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 12574, 42, 15906, 12, 16830, 17313, 262, 202, 95, 202, 202, 759, 542, 202, 202, 20308, 1082, 380, 632, 6241, 30, 2050, 270, 1766, 6944, 1846, 848, 898, 333, 707, 1368, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 12574, 42, 15906, 12, 16830, 17313, 262, 202, 95, 202, 202, 759, 542, 202, 202, 20308, 1082, 380, 632, 6241, 30, 2050, 270, 1766, 6944, 1846, 848, 898, 333, 707, 1368, 2...
return 0;
checkIndex (parameterIndex, Types.SMALLINT, "Short"); if (result == null) return 0; return (short)((Integer)result).intValue ();
public short getShort(int parameterIndex) throws SQLException { return 0; }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/12a28d12bb14686ecb43f1e36af51b33715d1cd3/CallableStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3025, 13157, 12, 474, 25412, 13, 1216, 6483, 202, 95, 202, 202, 2463, 374, 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,...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3025, 13157, 12, 474, 25412, 13, 1216, 6483, 202, 95, 202, 202, 2463, 374, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
boolean equals = true; equals &= (defined == castedObject.defined); equals &= Util.equals(description, castedObject.description); equals &= Util.equals(id, castedObject.id); equals &= Util.equals(name, castedObject.name); equals &= Util.equals(parentId, castedObject.parentId);
public final boolean equals(final Object object) { if (!(object instanceof Scheme)) return false; final Scheme castedObject = (Scheme) object; boolean equals = true; equals &= (defined == castedObject.defined); equals &= Util.equals(description, castedObject.description); equals &= Util.equals(id, castedObject.id); equals &= Util.equals(name, castedObject.name); equals &= Util.equals(parentId, castedObject.parentId); return equals; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cef2351fdf4797f8d26b1aa6517e5c35fb71b923/Scheme.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/Scheme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 1606, 12, 6385, 1033, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 10714, 3719, 5411, 327, 629, 31, 3639, 727, 10714, 4812, 23016, 273, 261, 9321, 13, 733, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 1606, 12, 6385, 1033, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 10714, 3719, 5411, 327, 629, 31, 3639, 727, 10714, 4812, 23016, 273, 261, 9321, 13, 733, 31, 3639, ...
queuedToSendN2NTMExtraPeerDataFileNumbers.addElement(new Integer(fileNumber));
queuedToSendN2NTMExtraPeerDataFileNumbers.add(new Integer(fileNumber));
public void queueN2NTM(SimpleFieldSet fs) { int fileNumber = writeNewExtraPeerDataFile( fs, Node.EXTRA_PEER_DATA_TYPE_QUEUED_TO_SEND_N2NTM); synchronized(queuedToSendN2NTMExtraPeerDataFileNumbers) { queuedToSendN2NTMExtraPeerDataFileNumbers.addElement(new Integer(fileNumber)); } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/976db464c8ad70abbf8ef1748f36c14b76a449b5/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2389, 50, 22, 1784, 49, 12, 5784, 974, 694, 2662, 13, 288, 202, 202, 474, 585, 1854, 273, 1045, 1908, 7800, 6813, 751, 812, 12, 2662, 16, 2029, 18, 22639, 67, 1423, 654...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2389, 50, 22, 1784, 49, 12, 5784, 974, 694, 2662, 13, 288, 202, 202, 474, 585, 1854, 273, 1045, 1908, 7800, 6813, 751, 812, 12, 2662, 16, 2029, 18, 22639, 67, 1423, 654...
s.setChildItem(Signal.PREDICATE, a);
s.setChild(Signal.PREDICATE, a);
protected void mouseClicked(Signal s) throws Exception { java.lang.System.out.println("\n\n\n\n\n mouseClicked \n\n\n\n\n"); if (s != null) { MouseModel m = (MouseModel) s.getChildItem(Signal.OBJECT); if (m != null) { // Language. s.setChildItem(Signal.LANGUAGE, Signal.NEURO_LANGUAGE); Item i = getItem((Space) m.getChildItem(MouseModel.POINTER_POSITION)); if (i != null) { // Subject. // Determine the system which belongs to the clicked window. //?? s.setChildItem(Signal.SUBJECT, system belonging to the clicked window); // Predicate. String a = (String) i.getChildItem(Item.ACTION); s.setChildItem(Signal.PREDICATE, a); // Sender object. // Determine the active console to identify the user. //?? s.setChildItem(Signal.SENDER_OBJECT, USER); } else { throw new Exception("Could not react on mouse clicked action. The graphic item is null."); } } else { throw new Exception("Could not react on mouse clicked action. The mouse model is null."); } } else { throw new Exception("Could not react on mouse clicked action. The signal is null."); } }
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/9ea22ccfd933137bb2df841c826a929612a47b55/Controller.java/clean/trunk/src/core/cybop/core/system/block/Controller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7644, 27633, 12, 11208, 272, 13, 1216, 1185, 288, 3639, 2252, 18, 4936, 18, 3163, 18, 659, 18, 8222, 31458, 82, 64, 82, 64, 82, 64, 82, 64, 82, 7644, 27633, 521, 82, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7644, 27633, 12, 11208, 272, 13, 1216, 1185, 288, 3639, 2252, 18, 4936, 18, 3163, 18, 659, 18, 8222, 31458, 82, 64, 82, 64, 82, 64, 82, 64, 82, 7644, 27633, 521, 82, 64, ...
592, 549, 356, 436, 472, 278, 385, 445, 79, 472, 437, 492, 63, 386, 666, 71, 492, 492, 445, 671, 448, 449, 670, 260, 261, 674, 676, 69, 472, 307, 308, 549, 61, 446, 210, 635, 450, 688, 445, 269, 422, 445, 464, 459, 64, 217, 190, 423, 424, 701, 356, 356, 203, 549, 411, 537, 445, 67, 234, 65,
592, 549, 356, 309, 472, 278, 385, 445, 79, 472, 432, 492, 433, 386, 666, 436, 492, 492, 428, 671, 456, 457, 670, 357, 358, 674, 676, 69, 472, 434, 445, 549, 448, 449, 210, 635, 437, 688, 445, 269, 422, 445, 446, 459, 64, 217, 190, 423, 424, 701, 356, 356, 203, 549, 411, 450, 445, 67, 234, 65,
private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 300, 190, 190, 591, 281, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 601, 552, 234, 234, 216, 283, 284, 190, 732, 617, 274, 356, 249, 342, 461, 652, 265, 782, 466, 109, 109, 551, 442, 673, 675, 291, 275, 696, 698, 109, 253, 492, 362, 442, 190, 660, 661, 337, 62, 588, 221, 215, 218, 617, 762, 435, 783, 217, 786, 766, 492, 469, 382, 217, 606, 353, 441, 244, 60, 363, 247, 248, 216, 337, 308, 253, 109, 444, 256, 285, 79, 79, 110, 110, 353, 216, 79, 210, 210, 210, 492, 89, 225, 210, 210, 354, 387, 210, 235, 235, 295, 492, 235, 261, 210, 455, 487, 70, 492, 492, 221, 492, 492, 492, 455, 109, 649, 363, 363, 463, 71, 217, 470, 308, 253, 79, 210, 210, 338, 279, 87, 210, 269, 598, 217, 247, 442, 61, 487, 89, 89, 535, 392, 343, 492, 656, 393, 366, 394, 492, 344, 230, 264, 492, 338, 82, 492, 387, 262, 533, 492, 492, 494, 782, 456, 457, 458, 360, 279, 297, 447, 361, 273, 456, 457, 84, 657, 564, 87, 87, 441, 291, 230, 210, 492, 79, 684, 438, 576, 440, 190, 55, 856, 494, 234, 234, 284, 492, 492, 653, 716, 335, 492, 82, 82, 345, 691, 234, 69, 234, 234, 278, 264, 40, 239, 441, 239, 420, 492, 237, 771, 237, 237, 84, 84, 64, 352, 372, 69, 441, 240, 439, 240, 240, 373, 369, 423, 579, 67, 394, 65, 814, 265, 346, 40, 64, 441, 217, 673, 675, 828, 830, 348, 831, 363, 347, 472, 221, 67, 376, 65, 492, 340, 397, 398, 387, 481, 492, 481, 341, 377, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 536, 379, 210, 210, 380, 455, 550, 234, 389, 471, 524, 527, 492, 234, 476, 396, 406, 538, 531, 492, 531, 402, 307, 308, 210, 872, 210, 210, 363, 235, 265, 235, 417, 518, 234, 403, 79, 388, 617, 802, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 89, 387, 234, 524, 589, 538, 364, 61, 597, 234, 518, 642, 721, 429, 456, 457, 594, 234, 492, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 87, 390, 622, 634, 518, 399, 614, 564, 637, 638, 639, 632, 363, 624, 203, 543, 406, 234, 841, 492, 234, 426, 839, 234, 273, 82, 825, 454, 190, 835, 234, 273, 407, 210, 518, 410, 210, 210, 269, 210, 79, 279, 482, 210, 482, 84, 492, 61, 428, 600, 600, 511, 516, 492, 522, 523, 518, 627, 472, 69, 210, 79, 210, 278, 628, 269, 309, 264, 432, 79, 278, 617, 433, 492, 79, 473, 64, 434, 210, 549, 855, 792, 79, 269, 79, 492, 687, 367, 423, 67, 492, 65, 492, 210, 368, 423, 511, 516, 269, 617, 670, 582, 234, 307, 308, 210, 40, 40, 472, 590, 861, 592, 549, 356, 436, 472, 278, 385, 445, 79, 472, 437, 492, 63, 386, 666, 71, 492, 492, 445, 671, 448, 449, 670, 260, 261, 674, 676, 69, 472, 307, 308, 549, 61, 446, 210, 635, 450, 688, 445, 269, 422, 445, 464, 459, 64, 217, 190, 423, 424, 701, 356, 356, 203, 549, 411, 537, 445, 67, 234, 65, 400, 837, 362, 362, 94, 94, 190, 401, 362, 451, 94, 94, 94, 94, 459, 468, 234, 94, 94, 455, 234, 94, 454, 682, 234, 357, 358, 683, 94, 540, 430, 242, 459, 579, 243, 234, 583, 431, 596, 76, 608, 78, 76, 492, 78, 709, 579, 692, 744, 94, 94, 94, 778, 454, 394, 94, 454, 618, 614, 76, 752, 78, 562, 563, 210, 79, 229, 758, 760, 492, 492, 454, 630, 763, 765, 631, 81, 636, 456, 457, 460, 309, 640, 768, 234, 79, 293, 294, 641, 472, 725, 473, 492, 654, 234, 452, 662, 833, 663, 79, 668, 672, 453, 813, 834, 669, 815, 94, 679, 94, 324, 680, 685, 160, 326, 327, 686, 758, 760, 763, 689, 693, 695, 273, 109, 234, 705, 210, 74, 697, 759, 761, 234, 87, 455, 699, 764, 234, 234, 700, 83, 83, 111, 111, 810, 702, 83, 706, 712, 809, 210, 713, 226, 210, 714, 740, 492, 717, 609, 715, 811, 492, 160, 492, 773, 492, 720, 737, 738, 109, 79, 80, 821, 455, 234, 423, 718, 225, 79, 232, 79, 79, 210, 210, 278, 83, 724, 727, 210, 280, 86, 278, 794, 456, 457, 462, 473, 746, 153, 356, 733, 821, 735, 234, 736, 755, 600, 756, 757, 845, 739, 745, 87, 234, 492, 84, 84, 234, 279, 743, 767, 84, 788, 774, 94, 94, 79, 228, 280, 210, 775, 779, 456, 457, 465, 822, 85, 796, 86, 86, 234, 79, 79, 79, 795, 83, 94, 153, 94, 94, 88, 797, 234, 793, 234, 807, 816, 817, 94, 413, 84, 415, 418, 818, 820, 94, 518, 819, 799, 800, 801, 473, 234, 827, 234, 868, 832, 76, 472, 78, 473, 829, 234, 847, 85, 85, 234, 210, 842, 843, 849, 79, 79, 852, 873, 492, 492, 492, 88, 88, 853, 854, 492, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 871, 875, 877, 163, 476, 824, 493, 84, 91, 91, 112, 112, 112, 492, 91, 472, 481, 473, 279, 483, 230, 493, 472, 483, 473, 483, 836, 472, 485, 473, 485, 94, 75, 79, 94, 94, 254, 94, 94, 487, 487, 94, 210, 76, 79, 78, 472, 269, 473, 273, 82, 79, 163, 91, 494, 728, 273, 282, 94, 94, 94, 549, 492, 299, 115, 734, 302, 303, 304, 305, 306, 863, 94, 826, 83, 188, 94, 89, 864, 280, 94, 83, 94, 92, 92, 874, 148, 690, 83, 92, 754, 94, 339, 88, 160, 351, 282, 160, 160, 160, 862, 423, 421, 94, 481, 784, 492, 785, 423, 301, 492, 492, 0, 91, 780, 0, 0, 94, 0, 0, 418, 0, 83, 83, 0, 0, 83, 418, 92, 82, 391, 83, 160, 0, 86, 148, 0, 160, 160, 160, 160, 0, 0, 94, 279, 481, 0, 473, 208, 208, 208, 279, 0, 0, 381, 280, 84, 560, 561, 562, 563, 0, 0, 84, 0, 250, 0, 803, 0, 482, 805, 806, 88, 76, 83, 280, 270, 0, 0, 153, 85, 0, 153, 153, 153, 0, 6, 267, 92, 391, 391, 391, 0, 476, 88, 83, 6, 473, 0, 0, 0, 84, 0, 0, 473, 417, 84, 0, 83, 473, 482, 0, 417, 381, 381, 381, 83, 153, 83, 0, 472, 0, 153, 153, 153, 153, 0, 6, 473, 481, 0, 0, 555, 94, 94, 556, 557, 558, 0, 77, 0, 0, 77, 476, 359, 6, 0, 0, 0, 84, 476, 848, 850, 83, 94, 472, 0, 279, 0, 77, 0, 0, 91, 0, 279, 0, 0, 83, 94, 91, 84, 0, 0, 0, 476, 560, 561, 562, 563, 0, 0, 0, 0, 84, 0, 0, 865, 866, 0, 476, 0, 84, 870, 84, 482, 0, 94, 163, 0, 0, 163, 163, 163, 0, 0, 0, 0, 91, 0, 878, 0, 6, 91, 0, 0, 131, 0, 880, 280, 94, 882, 0, 94, 419, 884, 280, 747, 748, 84, 749, 419, 83, 0, 41, 42, 163, 0, 92, 0, 94, 163, 163, 163, 163, 92, 0, 83, 94, 0, 94, 94, 94, 94, 0, 0, 91, 282, 94, 0, 0, 0, 208, 208, 0, 131, 0, 481, 481, 481, 0, 83, 0, 481, 481, 0, 481, 91, 0, 0, 0, 148, 0, 92, 148, 148, 148, 309, 92, 0, 91, 83, 404, 405, 0, 280, 94, 0, 91, 94, 91, 0, 280, 322, 323, 83, 78, 420, 0, 84, 472, 94, 94, 94, 420, 0, 324, 0, 325, 148, 326, 327, 328, 329, 148, 148, 148, 148, 0, 0, 0, 92, 482, 482, 482, 91, 0, 0, 482, 482, 0, 482, 208, 208, 208, 208, 84, 477, 478, 6, 6, 6, 92, 473, 0, 6, 6, 94, 6, 0, 472, 94, 94, 0, 0, 92, 84, 472, 0, 0, 270, 0, 472, 92, 0, 92, 83, 751, 77, 476, 84, 0, 94, 226, 83, 309, 83, 83, 84, 0, 0, 472, 0, 79, 0, 0, 79, 270, 0, 77, 0, 322, 323, 0, 0, 575, 581, 530, 0, 534, 92, 553, 0, 79, 324, 270, 94, 0, 326, 327, 328, 329, 0, 0, 0, 94, 0, 94, 789, 476, 270, 0, 83, 0, 94, 0, 476, 0, 577, 0, 0, 472, 0, 278, 0, 0, 476, 83, 83, 83, 0, 84, 91, 0, 267, 530, 309, 77, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 0, 623, 0, 0, 0, 0, 81, 74, 270, 81, 74, 324, 91, 0, 0, 326, 327, 328, 329, 0, 0, 0, 80, 83, 83, 80, 81, 74, 644, 790, 0, 616, 0, 84, 644, 0, 131, 0, 0, 131, 131, 131, 80, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 75, 273, 423, 75, 659, 659, 659, 422, 0, 0, 667, 0, 86, 473, 422, 0, 0, 279, 92, 131, 75, 667, 667, 83, 131, 131, 131, 131, 91, 0, 0, 0, 92, 0, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 0, 0, 0, 280, 0, 0, 0, 0, 208, 0, 0, 677, 0, 0, 0, 0, 473, 84, 0, 95, 0, 0, 0, 473, 0, 0, 0, 0, 473, 0, 704, 0, 708, 791, 581, 0, 0, 91, 0, 0, 0, 0, 581, 0, 86, 0, 0, 473, 0, 0, 0, 84, 91, 91, 91, 79, 92, 0, 85, 476, 0, 0, 84, 0, 92, 0, 92, 92, 95, 84, 0, 208, 0, 0, 0, 0, 0, 0, 719, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 726, 742, 0, 0, 729, 0, 91, 91, 730, 0, 278, 0, 0, 476, 0, 0, 92, 278, 0, 613, 476, 0, 473, 0, 34, 472, 412, 91, 0, 0, 0, 92, 92, 92, 0, 0, 412, 659, 79, 0, 0, 85, 34, 0, 476, 0, 81, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 80, 0, 0, 0, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 0, 412, 0, 412, 0, 0, 0, 667, 667, 75, 0, 273, 423, 0, 0, 0, 92, 0, 273, 423, 0, 0, 34, 644, 0, 0, 0, 279, 0, 0, 616, 412, 0, 412, 279, 0, 616, 0, 555, 81, 74, 556, 557, 558, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 80, 132, 132, 132, 0, 280, 92, 0, 415, 0, 412, 0, 280, 92, 581, 0, 0, 823, 415, 0, 0, 559, 0, 0, 421, 0, 560, 561, 562, 563, 0, 421, 0, 75, 0, 0, 132, 0, 0, 0, 0, 132, 132, 132, 132, 0, 838, 0, 0, 415, 270, 0, 415, 0, 0, 0, 846, 309, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 0, 415, 0, 415, 0, 322, 323, 253, 95, 0, 581, 95, 95, 95, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 613, 332, 616, 333, 415, 0, 415, 412, 0, 34, 34, 34, 0, 0, 412, 34, 34, 0, 34, 95, 876, 0, 879, 0, 95, 95, 95, 95, 0, 0, 616, 0, 0, 334, 883, 0, 0, 0, 415, 0, 34, 34, 34, 34, 34, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 334, 469, 0, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 96, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 0, 469, 469, 469, 469, 469, 469, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 96, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 0, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 472, 470, 470, 470, 470, 470, 470, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 472, 0, 472, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 96, 96, 96, 0, 0, 0, 0, 473, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 473, 473, 0, 86, 0, 473, 415, 0, 0, 0, 0, 96, 0, 0, 0, 0, 96, 96, 96, 96, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 473, 0, 473, 322, 323, 0, 0, 0, 0, 0, 608, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 334, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 655, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 334, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 473, 473, 473, 473, 473, 473, 0, 0, 0, 476, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 324, 476, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 274, 322, 323, 0, 0, 0, 0, 0, 0, 0, 274, 0, 0, 476, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 508, 509, 0, 0, 510, 274, 0, 0, 274, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 274, 274, 168, 0, 0, 274, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 678, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 274, 185, 274, 186, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 0, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 477, 471, 471, 471, 471, 471, 471, 0, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 477, 477, 0, 9, 10, 477, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 477, 0, 477, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 478, 0, 104, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 753, 0, 478, 0, 0, 54, 55, 56, 57, 58, 59, 513, 514, 0, 0, 515, 478, 478, 0, 0, 0, 478, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 478, 0, 478, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 0, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 350, 475, 475, 475, 475, 475, 475, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 0, 350, 350, 9, 10, 0, 350, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 350, 0, 350, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 492, 104, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 0, 54, 55, 56, 57, 58, 59, 520, 509, 0, 0, 521, 0, 492, 492, 0, 0, 0, 492, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 492, 0, 492, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 278, 251, 251, 251, 251, 251, 251, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 547, 514, 0, 0, 548, 0, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 278, 166, 167, 278, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 278, 0, 278, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 286, 169, 170, 171, 172, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 286, 0, 0, 286, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 286, 286, 168, 0, 0, 286, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 286, 185, 286, 186, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, }; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b1293eda8454686e846e2a9837b348e2983bb423/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
public double getBondLength() { return this.bondLength; }
public double getBondLength() { return this.bondLength; }
public double getBondLength() { return this.bondLength; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b7597d09b03980486670c72a7289affda9ea694b/Renderer2DModel.java/buggy/src/org/openscience/cdk/renderer/Renderer2DModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 29585, 1782, 1435, 288, 565, 327, 333, 18, 26425, 1782, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 29585, 1782, 1435, 288, 565, 327, 333, 18, 26425, 1782, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (collectionClass == null) return;
if( collectionClass == null ) { return; }
private void suggestNamesForCollectionInheritors(final PsiType type, final VariableKind variableKind, List<String> suggestions) { if (!(type instanceof PsiClassType)) return; PsiClassType classType = (PsiClassType)type; PsiClassType.ClassResolveResult resolved = classType.resolveGenerics(); if (resolved.getElement() == null) return; final PsiManager manager = PsiManager.getInstance(myProject); final PsiClass collectionClass = manager.findClass("java.util.Collection", resolved.getElement().getResolveScope()); if (collectionClass == null) return; if (InheritanceUtil.isInheritorOrSelf(resolved.getElement(), collectionClass, true)) { final PsiSubstitutor substitutor; if (!manager.areElementsEquivalent(resolved.getElement(), collectionClass)) { substitutor = TypeConversionUtil.getClassSubstitutor(collectionClass, resolved.getElement(), PsiSubstitutor.EMPTY); } else { substitutor = PsiSubstitutor.EMPTY; } PsiTypeParameterList typeParameterList = collectionClass.getTypeParameterList(); if (typeParameterList == null) return; PsiTypeParameter[] typeParameters = typeParameterList.getTypeParameters(); if (typeParameters.length == 0) return; PsiType componentTypeParameter = substitutor.substitute(typeParameters[0]); if (componentTypeParameter instanceof PsiClassType) { PsiClass componentClass = ((PsiClassType)componentTypeParameter).resolve(); if (componentClass instanceof PsiTypeParameter) { if (collectionClass.getManager().areElementsEquivalent(((PsiTypeParameter)componentClass).getOwner(), resolved.getElement())) { PsiType componentType = resolved.getSubstitutor().substitute((PsiTypeParameter)componentClass); if (componentType == null) return; String typeName = normalizeTypeName(getTypeName(componentType)); if (typeName != null) { suggestions.addAll(Arrays.asList(getSuggestionsByName(typeName, variableKind, true))); } } } } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/c0acc0d23c610efb640c80212199ae2ad36ce3ac/CodeStyleManagerImpl.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 19816, 1557, 1290, 2532, 14216, 1383, 12, 6385, 453, 7722, 559, 618, 16, 4766, 10402, 727, 7110, 5677, 2190, 5677, 16, 4766, 10402, 987, 32, 780, 34, 17969, 13, 288, 565, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 19816, 1557, 1290, 2532, 14216, 1383, 12, 6385, 453, 7722, 559, 618, 16, 4766, 10402, 727, 7110, 5677, 2190, 5677, 16, 4766, 10402, 987, 32, 780, 34, 17969, 13, 288, 565, 309, ...
JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing()))
synchronized(this) { ArrayList swap = workRepaintOrder; workRepaintOrder = repaintOrder; repaintOrder = swap; HashMap swap2 = workDirtyComponents; workDirtyComponents = dirtyComponents; dirtyComponents = swap2; } for (Iterator i = workRepaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); Rectangle damaged = (Rectangle) workDirtyComponents.get(comp); if (damaged == null || damaged.isEmpty())
public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; Rectangle damaged = getDirtyRegion(comp); if (damaged.width == 0 || damaged.height == 0) continue; JRootPane root = comp.getRootPane(); // If the component has no root, no repainting will occur. if (root == null) continue; Rectangle rootDamage = SwingUtilities.convertRectangle(comp, damaged, root); if (! roots.containsKey(root)) { roots.put(root, rootDamage); } else { roots.put(root, ((Rectangle)roots.get(root)).union(rootDamage)); } } dirtyComponents.clear(); // step 2: paint those roots Iterator i = roots.entrySet().iterator(); while(i.hasNext()) { Map.Entry ent = (Map.Entry) i.next(); JRootPane root = (JRootPane) ent.getKey(); Rectangle rect = (Rectangle) ent.getValue(); root.paintImmediately(rect); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 10785, 17344, 1435, 225, 288, 565, 368, 2235, 404, 30, 6892, 596, 12876, 471, 4604, 1694, 10903, 302, 301, 410, 565, 4317, 12876, 273, 394, 4317, 5621, 565, 364, 261, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 10785, 17344, 1435, 225, 288, 565, 368, 2235, 404, 30, 6892, 596, 12876, 471, 4604, 1694, 10903, 302, 301, 410, 565, 4317, 12876, 273, 394, 4317, 5621, 565, 364, 261, 21...
private void parseDescriptor()
private void parseDescriptor(JarFile jarFile, ComponentTagHandler handler)
private void parseDescriptor() { ZipEntry entry = jarFile.getEntry(CarResources.DEPLOYMENT_DESCRIPTOR); SAXParser parser = null; InputStream is = null; if ( entry == null ) // should never happen return; try { is = jarFile.getInputStream( entry ); parser = SAXParserFactory.newInstance().newSAXParser(); } catch( ZipException ze ) { log.debug( "The zip entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " has an invalid format. Details: " + ze ); } catch( IOException ioe ) { log.debug( "Unable to read entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + ". Details: " + ioe ); } catch( SecurityException se ) { log.debug( "Unable to read entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " because some entries are incorrectly signed. " + "Details: " + se ); } catch( FactoryConfigurationError fce ) { log.debug( "Unable to read entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " because a parser factory could not be created." + " Details: " + fce ); } catch( ParserConfigurationException pce ) { log.debug( "Unable to read entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " because a parser could not be created." + " Details: " + pce ); } catch( SAXException sxe ) { log.debug( "Unable to read entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " because a parser could not be created." + " Details: " + sxe ); } try { // can throw SAXException, IOException parser.parse( is, this ); } catch( RuntimeException re ) { log.debug( "Unable to completely parse entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + " because a fatal parser error occurred. " + "Details: " + re.getMessage() ); } catch( IOException ioe ) { log.debug( "Unable to completely parse entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + ". Details: " + ioe ); } catch( SAXException sxe ) { log.debug( "Unable to completely parse entry " + CarResources.DEPLOYMENT_DESCRIPTOR + " in " + jarFile.getName() + ". Details: " + sxe ); } finally { try { if(is != null) is.close(); } catch (IOException ioe) { log.error( "::Unable to close inputStream " + ioe); } } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/848c89bee6057ceb5a835b528ef0941a2c98b9d3/DescriptorHandler.java/clean/source/org/jasig/portal/car/DescriptorHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 3187, 12, 10813, 812, 22588, 16, 5435, 1805, 1503, 1838, 13, 565, 288, 3639, 23652, 1241, 273, 22588, 18, 588, 1622, 12, 16321, 3805, 18, 1639, 22971, 3212, 67, 1639, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3187, 12, 10813, 812, 22588, 16, 5435, 1805, 1503, 1838, 13, 565, 288, 3639, 23652, 1241, 273, 22588, 18, 588, 1622, 12, 16321, 3805, 18, 1639, 22971, 3212, 67, 1639, 276...
IMylarContextNode node = getNode(element);
IMylarElement node = getNode(element);
public Color decorateForeground(Object element) { IMylarContextNode node = getNode(element); if (element instanceof MylarContextEdge) { return MylarUiPlugin.getDefault().getColorMap().RELATIONSHIP; } else if (node != null) { UiUtil.getForegroundForElement(node); } return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f5bfb4859762da1543c326b182b2de34d0d94c08/InterestDecorator.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/ui/InterestDecorator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 15752, 23206, 12, 921, 930, 13, 288, 3639, 6246, 93, 7901, 1046, 756, 273, 5973, 12, 2956, 1769, 3639, 309, 261, 2956, 1276, 8005, 7901, 1042, 6098, 13, 288, 5411, 327, 8005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5563, 15752, 23206, 12, 921, 930, 13, 288, 3639, 6246, 93, 7901, 1046, 756, 273, 5973, 12, 2956, 1769, 3639, 309, 261, 2956, 1276, 8005, 7901, 1042, 6098, 13, 288, 5411, 327, 8005, ...
}
}
public void shutDown(CmsModule module) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_MODULE_SHUTDOWN_2, module.getName(), this.getClass().getName())); } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f12328204dd4cd4c2d95d0595fb352cd0e93c475/A_CmsModuleAction.java/clean/src/org/opencms/module/A_CmsModuleAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9171, 4164, 12, 4747, 3120, 1605, 13, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 5411, 2018, 18, 4148, 12, 5058, 18, 588, 7675, 856, 12, 5058, 18, 4842, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9171, 4164, 12, 4747, 3120, 1605, 13, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 5411, 2018, 18, 4148, 12, 5058, 18, 588, 7675, 856, 12, 5058, 18, 4842, 67, ...
return super.toString()+":"+file.getPath();
return super.toString()+ ':' +file.getPath();
public synchronized String toString() { return super.toString()+":"+file.getPath(); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FileBucket.java/buggy/src/freenet/support/io/FileBucket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 514, 1762, 1435, 288, 202, 202, 2463, 2240, 18, 10492, 1435, 9078, 2773, 15, 768, 18, 588, 743, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 514, 1762, 1435, 288, 202, 202, 2463, 2240, 18, 10492, 1435, 9078, 2773, 15, 768, 18, 588, 743, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public synchronized void maybeUpdate(){ try{ if(isFetching || !isRunning || !isUpdatable()) return; }catch (PrivkeyHasBeenBlownException e){ Logger.error(this, "The auto-updating Private key has been blown!"); node.exit();
public void maybeUpdate(){ synchronized(this) { try{ if(isFetching || (!isRunning) || (!isUpdatable())) return; }catch (PrivkeyHasBeenBlownException e){ Logger.error(this, "The auto-updating Private key has been blown!"); System.err.println("The auto-updating Private key has been blown!"); node.exit(); } isRunning=false;
public synchronized void maybeUpdate(){ try{ if(isFetching || !isRunning || !isUpdatable()) return; }catch (PrivkeyHasBeenBlownException e){ // how to handle it ? a new UserAlert or an imediate exit? Logger.error(this, "The auto-updating Private key has been blown!"); node.exit(); } isRunning=false; //TODO maybe a UpdateInProgress alert ? Logger.normal(this,"Starting the update process"); System.err.println("Starting the update process: found the update, now fetching it.");// We fetch it try{ if(cg==null||cg.isCancelled()){ cg = new ClientGetter(this, node.chkFetchScheduler, node.sskFetchScheduler, URI.setSuggestedEdition(availableVersion), ctx, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, this, new ArrayBucket()); } cg.start(); isFetching = true; }catch (Exception e) { Logger.error(this, "Error while starting the fetching"); } }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/f5879e8e5feca05677fbe9ad67569953b02d80c0/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 6944, 1891, 1435, 95, 202, 202, 698, 95, 1082, 202, 430, 12, 291, 30806, 747, 401, 291, 7051, 747, 401, 291, 1211, 3404, 429, 10756, 327, 31, 202, 202, 97, 14683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 6944, 1891, 1435, 95, 202, 202, 698, 95, 1082, 202, 430, 12, 291, 30806, 747, 401, 291, 7051, 747, 401, 291, 1211, 3404, 429, 10756, 327, 31, 202, 202, 97, 14683, ...
/** * Report title. */
protected void __init( HttpServletRequest request ) throws Exception { if ( ParameterAccessor.isGetImageOperator( request ) ) { return; } this.category = "BIRT"; //$NON-NLS-1$ this.masterPageContent = ParameterAccessor .isMasterPageContent( request ); this.isDesigner = ParameterAccessor.isDesigner( request ); this.bookmark = ParameterAccessor.getBookmark( request ); this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) ); this.reportDocumentName = ParameterAccessor.getReportDocument( request ); this.reportDesignName = ParameterAccessor.getReport( request ); /** * Determine the report design and doc 's timestamp */ processReport( request ); /** * Report title. */ String title = null; // if ( this.reportRunnable != null ) // { // title = ( String ) this.reportRunnable.getProperty( "title" ); // //$NON-NLS-1$ // } if ( title == null || title.trim( ).length( ) <= 0 ) { title = BirtResources.getString( "birt.viewer.title" ); //$NON-NLS-1$ } this.reportTitle = ParameterAccessor.htmlEncode( title ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/181bda39d9bbe2882e743df6ffb38bdcd05b7389/ViewerAttributeBean.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 2738, 12, 9984, 590, 262, 1216, 1185, 202, 95, 202, 202, 430, 261, 5498, 8235, 18, 291, 967, 2040, 5592, 12, 590, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 2738, 12, 9984, 590, 262, 1216, 1185, 202, 95, 202, 202, 430, 261, 5498, 8235, 18, 291, 967, 2040, 5592, 12, 590, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 20...
if (method.getVisibility().is(visibility)) {
if (method.getVisibility().is(visibility) && method.isUndefined() == false) {
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = RubyArray.newArray(getRuntime()); Map kernelMethods = getRuntime().getClasses().getKernelModule().getMethods(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { // kernel methods do not get printed out (but why?). if (p.getMethods() == kernelMethods) { continue; } for (Iterator iter = p.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); if (method.getVisibility().is(visibility)) { RubyString name = RubyString.newString(getRuntime(), (String) entry.getKey()); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/111ffceb6641644db641863784ba47cc459fef17/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510...
protected void processActionEvent(ActionEvent event) {
processActionEvent(ActionEvent event) {
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/MenuItem.java/clean/core/src/classpath/java/java/awt/MenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 1803, 1133, 12, 1803, 1133, 871, 13, 288, 202, 202, 430, 261, 1128, 67, 16072, 480, 446, 13, 1082, 202, 1128, 67, 16072, 18, 1128, 13889, 12, 2575, 1769, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 1803, 1133, 12, 1803, 1133, 871, 13, 288, 202, 202, 430, 261, 1128, 67, 16072, 480, 446, 13, 1082, 202, 1128, 67, 16072, 18, 1128, 13889, 12, 2575, 1769, 202, 97, ...
protected final int superPageHeaderSize() throws InlinePragma {
protected final int superPageHeaderSize() throws InlinePragma {
protected final int superPageHeaderSize() throws InlinePragma { return Treadmill.headerSize(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/LargeObjectLocal.java/clean/MMTk/src/org/mmtk/policy/LargeObjectLocal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 509, 2240, 1964, 1864, 1225, 1435, 565, 1216, 16355, 2050, 9454, 288, 565, 327, 399, 896, 81, 737, 18, 3374, 1225, 5621, 225, 289, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 509, 2240, 1964, 1864, 1225, 1435, 565, 1216, 16355, 2050, 9454, 288, 565, 327, 399, 896, 81, 737, 18, 3374, 1225, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
org.apache.xalan.utils.QName[] attributeSetsNames=((org.apache.xalan.templates.ElemUse)ete).getUseAttributeSets();
org.apache.xml.utils.QName[] attributeSetsNames=((org.apache.xalan.templates.ElemUse)ete).getUseAttributeSets();
void compileUseAttrSet(ElemTemplateElement ete,StringBuffer body,Vector interpretVector) { ++uniqueVarSuffix; // Maintain unique variable naming body.append( "if(transformer.S_DEBUG)\n" +" transformer.getTraceManager().fireTraceEvent(sourceNode, mode, this);\n" ); // expand ElemUse.applyAttrSets(transformer, getStylesheetComposed(), // ele.getUseAttributeSets(), sourceNode, mode); // ***** DOES THIS CAST NEED TO BE CHECKED? org.apache.xalan.utils.QName[] attributeSetsNames=((org.apache.xalan.templates.ElemUse)ete).getUseAttributeSets(); if(null != attributeSetsNames) { org.apache.xalan.templates.StylesheetComposed stylesheet=ete.getStylesheetComposed(); int nNames = attributeSetsNames.length; for(int i = 0; i < nNames; i++) { org.apache.xalan.utils.QName qname = attributeSetsNames[i]; Vector attrSets = stylesheet.getAttributeSetComposed(qname); int nSets = attrSets.size(); for(int k = 0; k < nSets; k++) { ElemAttributeSet attrSet = (ElemAttributeSet)attrSets.elementAt(k); // expand ElemAttributeSet.execute(transformer, sourceNode, mode); if(attrSetStack.contains(attrSet)) { // TODO: ***** WHAT'S THE RIGHT WAY TO REPORT THIS ERROR? String errmsg="TEMPLATE COMPILATION ERROR: ATTRIBUTE SET RECURSION SUPPRESSED in "+attrSet.getName().getLocalPart(); /**/System.err.println(errmsg); /**/body.append("// ***** "+errmsg+" *****/\n"); /**/return; //throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{attrSet.getName().getLocalPart()})); //"xsl:attribute-set '"+m_qname.m_localpart+ } attrSetStack.push(attrSet); // Recurse, since attrsets can reference attrsets compileUseAttrSet(attrSet,body,interpretVector); ElemAttribute attr = (ElemAttribute)attrSet.getFirstChild(); while(null != attr) { compileElemTemplateElement(attr,body,interpretVector); attr = (ElemAttribute)attr.getNextSibling(); } attrSetStack.pop(); } } } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/d4f9ef1128e471c78e8cc97f9a11f7021597682b/CompilingStylesheetHandler.java/buggy/src/org/apache/xalan/processor/CompilingStylesheetHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4074, 3727, 3843, 694, 12, 7498, 2283, 1046, 3393, 73, 16, 780, 1892, 1417, 16, 5018, 10634, 5018, 13, 225, 288, 565, 965, 6270, 1537, 5791, 31, 368, 490, 1598, 530, 3089, 2190, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4074, 3727, 3843, 694, 12, 7498, 2283, 1046, 3393, 73, 16, 780, 1892, 1417, 16, 5018, 10634, 5018, 13, 225, 288, 565, 965, 6270, 1537, 5791, 31, 368, 490, 1598, 530, 3089, 2190, 14...
rs = stmt.executeQuery("select s, i from #t0009");
rs = stmt.executeQuery("select s, i from #t0009");
public void testPreparedStatement0009() throws Exception { Connection cx = getConnection(); dropTable("#t0009"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0009 " + " (i integer not null, " + " s char(10) not null) "); cx.setAutoCommit(false); PreparedStatement pStmt = cx.prepareStatement( "insert into #t0009 values (?, ?)"); int rowsToAdd = 8; final String theString = "abcdefghijklmnopqrstuvwxyz"; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.rollback(); stmt = cx.createStatement(); ResultSet rs = stmt.executeQuery("select s, i from #t0009"); assertNotNull(rs); count = 0; while (rs.next()) { count++; assertTrue(rs.getString(1).trim().length() == rs.getInt(2)); } assertTrue(count == 0); cx.commit(); rowsToAdd = 6; count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.commit(); rs = stmt.executeQuery("select s, i from #t0009"); count = 0; while (rs.next()) { count++; assertTrue(rs.getString(1).trim().length() == rs.getInt(2)); } assertTrue(count == rowsToAdd); cx.commit(); cx.setAutoCommit(true); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/7df6dc0065b654cd4e2b156461e0394d01dd13aa/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 3784, 29, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 3784, 29, 8863, 202, 202, 3406, 3480, 273, 949...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 3784, 29, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 3784, 29, 8863, 202, 202, 3406, 3480, 273, 949...