rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
public Message getContents() { try{ //unsecure the message Message m = unsecure(); //check tags if (m == null) return null; //TrustSet[] ts = getTrustSets(); if (set == null) return m; checkInVerbs(m); incomingTrust(m, set); if(!incomingMessageAction(m, set[0])) return null; if(!incomingAgentAction(m)) return null; return m; }catch(Exception e){ e.printStackTrace(); return null; } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/dc9fd5855e50eaadd5520fad9ce9335764830777/SecurityAspect.java/buggy/securityservices/src/com/nai/security/crypto/SecurityAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1079, 588, 6323, 1435, 95, 698, 95, 202, 759, 318, 8869, 451, 351, 615, 202, 49, 403, 346, 351, 33, 318, 8869, 5621, 202, 759, 1893, 4156, 202, 430, 12, 81, 631, 2011, 13, 2463, 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, 1071, 1079, 588, 6323, 1435, 95, 698, 95, 202, 759, 318, 8869, 451, 351, 615, 202, 49, 403, 346, 351, 33, 318, 8869, 5621, 202, 759, 1893, 4156, 202, 430, 12, 81, 631, 2011, 13, 2463, 2011...
int trueGOTO = acquireLabel(); int skip = acquireLabel(); addByteCode(ByteCode.IFNE, trueGOTO); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean",
int trueGOTO = cfw.acquireLabel(); int skip = cfw.acquireLabel(); cfw.add(ByteCode.IFNE, trueGOTO); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean",
private void visitRelOp(Node node, Node child) { /* this is the version that returns an Object result */ int type = node.getType(); if (type == Token.INSTANCEOF || type == Token.IN) { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); aload(variableObjectLocal); addScriptRuntimeInvoke( (type == Token.INSTANCEOF) ? "instanceOf" : "in", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Z"); int trueGOTO = acquireLabel(); int skip = acquireLabel(); addByteCode(ByteCode.IFNE, trueGOTO); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, skip); markLabel(trueGOTO); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); markLabel(skip); classFile.adjustStackTop(-1); // only have 1 of true/false return; } int childNumberFlag = node.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); int trueGOTO = acquireLabel(); int skip = acquireLabel(); genSimpleCompare(type, trueGOTO, -1); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, skip); markLabel(trueGOTO); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); markLabel(skip); classFile.adjustStackTop(-1); // only have 1 of true/false } else { String routine = (type == Token.LT || type == Token.GT) ? "cmp_LTB" : "cmp_LEB"; generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); if (childNumberFlag == -1) { if (type == Token.GE || type == Token.GT) { addByteCode(ByteCode.SWAP); } addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Boolean;"); } else { boolean doubleThenObject = (childNumberFlag == Node.LEFT); if (type == Token.GE || type == Token.GT) { if (doubleThenObject) { addByteCode(ByteCode.DUP_X2); addByteCode(ByteCode.POP); doubleThenObject = false; } else { addByteCode(ByteCode.DUP2_X1); addByteCode(ByteCode.POP2); doubleThenObject = true; } } if (doubleThenObject) addOptRuntimeInvoke(routine, "(DLjava/lang/Object;" +")Ljava/lang/Boolean;"); else addOptRuntimeInvoke(routine, "(Ljava/lang/Object;D" +")Ljava/lang/Boolean;"); } } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 1971, 3817, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 5411, 333, 353, 326, 1177, 716, 1135, 392, 1033, 563, 3639, 1195, 3639, 509, 618, 273, 756, 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, 3238, 918, 3757, 1971, 3817, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 5411, 333, 353, 326, 1177, 716, 1135, 392, 1033, 563, 3639, 1195, 3639, 509, 618, 273, 756, 18, 588,...
exitItemActionPerformed(evt);
loadBugsItemActionPerformed(evt);
public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/bfac8e5d8f17a0b21ee7e9c537cbd566ab4eff83/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 1262, 31559, 1180, 19449, 12, 73, 11734, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 1262, 31559, 1180, 19449, 12, 73, 11734, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, ...
LOG.info"insertReferences stage 7");
LOG.info("insertReferences stage 7");
public void insertReferences() throws Exception { LOG.info"insertReferences stage 1"); insertReferences(Transcript.class, Exon.class, RankedRelation.class, "exons"); LOG.info"insertReferences stage 2"); insertReferences(Gene.class, Transcript.class, SimpleRelation.class, "transcripts"); LOG.info"insertReferences stage 3"); insertReferences(Chromosome.class, "subjects", Location.class, "subject", Exon.class, "chromosome"); LOG.info"insertReferences stage 4"); insertReferences(Chromosome.class, "subjects", Location.class, "subject", ChromosomeBand.class, "chromosome"); LOG.info"insertReferences stage 5"); insertReferences(Gene.class, "subjects", SimpleRelation.class, "subject", Transcript.class, "gene"); LOG.info"insertReferences stage 6"); insertReferences(Gene.class, "transcripts", Transcript.class, "exons", Exon.class, "gene"); LOG.info"insertReferences stage 7"); insertReferences(Chromosome.class, "exons", Exon.class, "gene", Gene.class, "chromosome"); LOG.info"insertReferences stage 8"); insertReferences(Chromosome.class, "exons", Exon.class, "transcripts", Transcript.class, "chromosome"); ObjectStore os = osw.getObjectStore(); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info"insertReferences stage 9"); insertReferences(Gene.class, Orthologue.class, "subjects", "orthologues"); LOG.info"insertReferences stage 10"); insertReferences(Protein.class, ProteinInteraction.class, "subjects", "interactions"); LOG.info"insertReferences stage 11"); insertReferences(Protein.class, ProteinInteraction.class, "objects", "interactions"); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info"insertReferences stage 12"); insertGeneAnnotationReferences(); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info"insertReferences stage 13"); insertReferences(Gene.class, GOTerm.class, "GOTerms"); LOG.info"insertReferences stage 14"); insertReferences(Gene.class, Phenotype.class, "phenotypes"); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/27fdba9686fc148eb8308ab576225fd312f71870/CreateReferences.java/buggy/flymine/model/genomic/src/java/org/flymine/postprocess/CreateReferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2243, 8221, 1435, 1216, 1185, 288, 3639, 2018, 18, 1376, 6, 6387, 8221, 6009, 404, 8863, 3639, 2243, 8221, 12, 1429, 9118, 18, 1106, 16, 1312, 265, 18, 1106, 16, 534, 2304, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2243, 8221, 1435, 1216, 1185, 288, 3639, 2018, 18, 1376, 6, 6387, 8221, 6009, 404, 8863, 3639, 2243, 8221, 12, 1429, 9118, 18, 1106, 16, 1312, 265, 18, 1106, 16, 534, 2304, 3...
g.drawString(title, textRect.x, textRect.y + metrics.getAscent());
g.drawString(title, textRect.x, textRect.y + ascent);
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, textRect); return; } int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (tabPane.isEnabled() && tabPane.isEnabledAt(tabIndex)) { Color fg = tabPane.getForegroundAt(tabIndex); if (isSelected && (fg instanceof UIResource)) { Color selectionForeground = UIManager.getColor("TabbedPane.selectionForeground"); if (selectionForeground != null) fg = selectionForeground; } g.setColor(fg); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent()); else g.drawString(title, textRect.x, textRect.y + metrics.getAscent()); } else { Color bg = tabPane.getBackgroundAt(tabIndex); g.setColor(bg.brighter()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y); else g.drawString(title, textRect.x, textRect.y); g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 12574, 1528, 12, 17558, 314, 16, 509, 3246, 12420, 16, 10063, 3512, 16, 21821, 10063, 5653, 4309, 16, 509, 3246, 1016, 16, 514, 2077, 16, 21821, 13264, 977, 6120, 16, 1250, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 1528, 12, 17558, 314, 16, 509, 3246, 12420, 16, 10063, 3512, 16, 21821, 10063, 5653, 4309, 16, 509, 3246, 1016, 16, 514, 2077, 16, 21821, 13264, 977, 6120, 16, 1250, 209...
int row)
int row, JComponent label, JComponent editor)
private void addDeleteButton(PropertySheet sheet, ConfigContext ctx, ConfigElement elm, PropertyDefinition propDef, int row) { ClassLoader loader = getClass().getClassLoader(); Icon remove_icon = new ImageIcon(loader.getResource(IMG_ROOT + "/Delete16.gif")); JButton remove_button = new JButton(); remove_button.setIcon(remove_icon); remove_button.setMargin(new Insets(0,0,0,0)); remove_button.setBorderPainted(false); remove_button.setFocusPainted(false); remove_button.setContentAreaFilled(false); // Verify that the property is variable. if(propDef.isVariable()) { remove_button.setEnabled(true); final String temp_string = propDef.getToken(); final ConfigContext temp_ctx = ctx; final ConfigElement temp_elm = elm; remove_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { Component source = (Component) evt.getSource(); PropertyComponent temp = (PropertyComponent) source.getParent(); TableLayout tl = (TableLayout)temp.getLayout(); // Get the row that this panel is in. TableLayoutConstraints tlc = tl.getConstraints(source); int row = tlc.row1; // Calculate the property index on the fly bsaed on our row. int value_index = row - PropertySheet.VAR_LIST_VALUE_START_ROW; temp_elm.removeProperty(temp_string, value_index, temp_ctx); temp.remove(source); tl.deleteRow(row); temp.revalidate(); temp.repaint(); } }); } else { remove_button.setEnabled(false); } TableLayoutConstraints c4 = new TableLayoutConstraints(PropertySheet.DELETE_ICON_COLUMN, row, PropertySheet.DELETE_ICON_COLUMN, row, TableLayout.LEFT, TableLayout.TOP); sheet.add(remove_button, c4); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/090dfca5422f89f0e546b1baee31cefa924edb16/PropertySheetFactory.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/PropertySheetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 527, 2613, 3616, 12, 1396, 8229, 6202, 16, 1903, 1042, 1103, 16, 27573, 1903, 1046, 12531, 16, 4276, 1852, 2270, 3262, 16, 27573, 509, 1027, 16, 29058, 1433, 16, 29058, 4858, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 527, 2613, 3616, 12, 1396, 8229, 6202, 16, 1903, 1042, 1103, 16, 27573, 1903, 1046, 12531, 16, 4276, 1852, 2270, 3262, 16, 27573, 509, 1027, 16, 29058, 1433, 16, 29058, 4858, 1...
return this;
public Component findComponentAt(int x, int y) { if (! contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We don't do the contains() check right away because // findComponentAt would redundantly do it first thing. if (component[i] instanceof Container) { Container k = (Container) component[i]; Component r = k.findComponentAt(x2, y2); if (r != null) return r; } else if (component[i].contains(x2, y2)) return component[i]; } return this; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/47b8a95e33f15f8f7f754a990349584fe4134b05/Container.java/clean/libjava/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 1104, 1841, 861, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 16051, 1914, 12, 92, 16, 677, 3719, 1377, 327, 446, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 1104, 1841, 861, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 16051, 1914, 12, 92, 16, 677, 3719, 1377, 327, 446, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, ...
uploadBar.addTitleText(getCurrentResourcePath());
uploadBar.addTitleText(getCurrentResourceVirtualPath());
public void initializeContent() { Boolean useUserHomeFolder = (Boolean) this.getAttributes().get("useUserHomeFolder"); if (useUserHomeFolder != null && useUserHomeFolder.booleanValue()) { try { rootFolder = super.getIWSlideSession().getUserHomeFolder(); } catch (RemoteException e) { e.printStackTrace(); } } String startFolder = (String) this.getAttributes().get("startFolder"); if (rootFolder == null) { rootFolder = (String) this.getAttributes().get("rootFolder"); } String iconTheme = (String) this.getAttributes().get("iconTheme");// rootFolder ="/files/shared"; WFBlock listBlock = new WFBlock(); WFTitlebar tb = new WFTitlebar(); tb.addTitleText(getBundle().getLocalizedText("document_list")); tb.addTitleText(" ("); tb.addTitleText(getCurrentResourcePath());// tb.addTitleText("WebDAVListBean.virtualWebDAVPath", true);// tb.addTitleText("WebDAVListBean.webDAVPath", true); tb.addTitleText(")"); listBlock.setToolbarEmbeddedInTitlebar(true); listBlock.setTitlebar(tb); listBlock.setToolbar(getToolbar()); WebDAVList list = new WebDAVList(); list.setId(getId()+"_list"); list.setRendered(renderWebDAVList); list.setStartFolder(startFolder); list.setRootFolder(rootFolder); list.setIconTheme(iconTheme); listBlock.add(list); WFBlock detailsBlock = new WFBlock(); WFTitlebar detailsBar = new WFTitlebar(); detailsBar.addTitleText(getBundle().getLocalizedText("document_details")); detailsBar.addTitleText(" ("); detailsBar.addTitleText(getCurrentResourcePath()); detailsBar.addTitleText(")"); detailsBlock.setTitlebar(detailsBar); detailsBlock.setToolbar(getToolbar()); WebDAVFileDetails details = new WebDAVFileDetails(); details.setRendered(renderWebDAVFileDetails); details.setId(getId()+"_details"); detailsBlock.add(details); WFBlock previewBlock = new WFBlock(); WFTitlebar previewBar = new WFTitlebar(); previewBar.addTitleText(getBundle().getLocalizedText("document_details")); previewBar.addTitleText(" ("); previewBar.addTitleText(getCurrentResourcePath()); previewBar.addTitleText(")"); previewBlock.setTitlebar(previewBar); previewBlock.setToolbar(getToolbar()); WebDAVFileDetails details2 = new WebDAVFileDetails(); details2.setRendered(renderWebDAVFilePreview); details2.setId(getId()+"_details"); details2.setDetailed(false); WebDAVFilePreview preview = new WebDAVFilePreview(); preview.setRendered(renderWebDAVFilePreview); preview.setId(getId()+"_preview"); previewBlock.add(details2); WFBlock folderBlock = new WFBlock(); WFTitlebar folderBar = new WFTitlebar(); folderBar.addTitleText(getBundle().getLocalizedText("create_a_folder")); folderBar.addTitleText(" ("); folderBar.addTitleText(getCurrentResourcePath()); folderBar.addTitleText(")"); folderBlock.setTitlebar(folderBar); folderBlock.setToolbar(new WFToolbar()); WebDAVFolderCreation folder = new WebDAVFolderCreation(); folder.setRendered(renderWebDAVNewFolder); folder.setId(getId()+"_folder"); folderBlock.add(folder); WFBlock uploadBlock = new WFBlock(); WFTitlebar uploadBar = new WFTitlebar(); uploadBar.addTitleText(getBundle().getLocalizedText("upload")); uploadBar.addTitleText(" ("); uploadBar.addTitleText(getCurrentResourcePath()); uploadBar.addTitleText(")"); uploadBlock.setTitlebar(uploadBar); uploadBlock.setToolbar(new WFToolbar()); WebDAVUpload upload = new WebDAVUpload();// upload.setRendered(renderWebDAVUpload); upload.setId(getId()+"_upload"); uploadBlock.add(upload); WFBlock deleteBlock = new WFBlock(); WFTitlebar deleteBar = new WFTitlebar(); deleteBar.addTitleText(getBundle().getLocalizedText("delete")); deleteBar.addTitleText(" ("); deleteBar.addTitleText(getCurrentResourcePath()); deleteBar.addTitleText(")"); deleteBlock.setTitlebar(deleteBar); deleteBlock.setToolbar(new WFToolbar()); WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter(); deleter.setRendered(renderWebDAVDeleter); deleter.setId(getId()+"_deleter"); deleteBlock.add(deleter);// getFacets().put(BAR, bar);// getChildren().add(bar);// super.setToolbar(bar); WFBlock permissionsBlock = new WFBlock(); WFTitlebar permissionsBar = new WFTitlebar(); permissionsBar.addTitleText(getBundle().getLocalizedText("permissions")); permissionsBar.addTitleText(" ("); permissionsBar.addTitleText(getCurrentResourcePath()); permissionsBar.addTitleText(")"); permissionsBlock.setTitlebar(permissionsBar); permissionsBlock.setToolbar(getToolbar()); WebDAVFilePermissions permissions = new WebDAVFilePermissions(); permissions.setRendered(renderWebDAVFilePermissions); permissions.setId(getId()+"_permissions"); permissionsBlock.add(permissions); getFacets().put(LIST, listBlock); getFacets().put(FILE_DETAILS, detailsBlock); getFacets().put(FILE_DETAILS_LESS, previewBlock); getFacets().put(PREVIEW, preview); getFacets().put(PERMISSIONS, permissionsBlock); getFacets().put(NEW_FOLDER, folderBlock); getFacets().put(UPLOAD, uploadBlock); getFacets().put(DELETE, deleteBlock); // getChildren().add(list);// getChildren().add(details);// System.out.println("tmp Eiki"); }
10078 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10078/6d5a7057367994ed7445f723c11b62bc2358503b/ContentViewer.java/buggy/src/java/com/idega/content/presentation/ContentViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 1350, 1435, 288, 1082, 202, 5507, 999, 1299, 8684, 3899, 273, 261, 5507, 13, 333, 18, 588, 2498, 7675, 588, 2932, 1202, 1299, 8684, 3899, 8863, 202, 202, 430, 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, 225, 202, 482, 918, 4046, 1350, 1435, 288, 1082, 202, 5507, 999, 1299, 8684, 3899, 273, 261, 5507, 13, 333, 18, 588, 2498, 7675, 588, 2932, 1202, 1299, 8684, 3899, 8863, 202, 202, 430, 261, ...
if (parent instanceof ToDoList) { return getGoals().elementAt(index);
if (parent instanceof ToDoList) { return getGoals().elementAt(index); } if (parent instanceof Goal) { Goal g = (Goal) parent; java.util.Enumeration itemEnum = Designer.TheDesigner.getToDoList().elements(); while (itemEnum.hasMoreElements()) { ToDoItem item = (ToDoItem) itemEnum.nextElement(); if (item.getPoster().supports(g)) { if (index == 0) return item; index--; } } } throw new IndexOutOfBoundsException("getChild shouldnt get here GoListToGoalsToItems");
public Object getChild(Object parent, int index) { if (parent instanceof ToDoList) { return getGoals().elementAt(index); } if (parent instanceof Goal) { Goal g = (Goal) parent; java.util.Enumeration itemEnum = Designer.TheDesigner.getToDoList().elements(); while (itemEnum.hasMoreElements()) { ToDoItem item = (ToDoItem) itemEnum.nextElement(); if (item.getPoster().supports(g)) { if (index == 0) return item; index--; } } } throw new IndexOutOfBoundsException("getChild shouldnt get here GoListToGoalsToItems"); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoListToGoalsToItems.java/clean/src_new/org/argouml/cognitive/ui/GoListToGoalsToItems.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8154, 12, 921, 982, 16, 509, 770, 13, 288, 565, 309, 261, 2938, 1276, 2974, 3244, 682, 13, 288, 1377, 327, 336, 5741, 1031, 7675, 2956, 861, 12, 1615, 1769, 565, 289, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8154, 12, 921, 982, 16, 509, 770, 13, 288, 565, 309, 261, 2938, 1276, 2974, 3244, 682, 13, 288, 1377, 327, 336, 5741, 1031, 7675, 2956, 861, 12, 1615, 1769, 565, 289, 565, ...
assertTrue("unexpected bytecode sequence", actualOutput.indexOf(expectedOutput) != -1);
if (index == -1) { assertEquals("Wrong contents", expectedOutput, actualOutput); }
public void test044() { this.runConformTest( new String[] { "X.java", "public class X {\n" + " public static void main(String[] args) {\n" + " args.clone(); \n"+ " System.out.println(\"SUCCESS\");\n" + " }\n" + "}\n", }, "SUCCESS"); ClassFileBytesDisassembler disassembler = ToolFactory.createDefaultClassFileBytesDisassembler(); String actualOutput = null; try { byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(new File(OUTPUT_DIR + File.separator +"X.class")); actualOutput = disassembler.disassemble( classFileBytes, "\n", ClassFileBytesDisassembler.DETAILED); } catch (org.eclipse.jdt.core.util.ClassFormatException e) { assertTrue("ClassFormatException", false); } catch (IOException e) { assertTrue("IOException", false); } String expectedOutput = " 1 invokevirtual [Ljava/lang/String;.clone()Ljava/lang/Object; [21]\n"; if (actualOutput.indexOf(expectedOutput) == -1) { System.out.println(org.eclipse.jdt.core.tests.util.Util.displayString(actualOutput, 2)); } assertTrue("unexpected bytecode sequence", actualOutput.indexOf(expectedOutput) != -1);}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e9ca95978aca2a442bfecfb8ac281f372092486a/Compliance_1_4.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1842, 3028, 24, 1435, 288, 202, 2211, 18, 2681, 442, 687, 4709, 12, 202, 202, 2704, 514, 8526, 288, 1082, 202, 6, 60, 18, 6290, 3113, 1082, 202, 6, 482, 667, 1139, 18890, 82, 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, 1071, 918, 1842, 3028, 24, 1435, 288, 202, 2211, 18, 2681, 442, 687, 4709, 12, 202, 202, 2704, 514, 8526, 288, 1082, 202, 6, 60, 18, 6290, 3113, 1082, 202, 6, 482, 667, 1139, 18890, 82, 6,...
ev.getMessage().pushInt(ev.getMessage().popInt()+1);
if (!(ev instanceof UpdateEvent)) { ev.getMessage().pushInt(ev.getMessage().popInt()+1); }
private void storeUnconfirmed(Peer peer, SendableEvent ev) { // updates peer counter ev.getMessage().pushInt(ev.getMessage().popInt()+1); peer.unconfirmed_msgs.addLast(ev); }
47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/48f1bf072e6b08cbfb87a9ce9a6d10de431198e6/NakFifoMulticastSession.java/buggy/trunk/appia/src/org/continuent/appia/protocols/nakfifo/multicast/NakFifoMulticastSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1707, 984, 21606, 12, 6813, 4261, 16, 2479, 429, 1133, 2113, 13, 288, 565, 368, 4533, 4261, 3895, 282, 309, 16051, 12, 14965, 1276, 2315, 1133, 3719, 288, 225, 2113, 18, 24906,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 984, 21606, 12, 6813, 4261, 16, 2479, 429, 1133, 2113, 13, 288, 565, 368, 4533, 4261, 3895, 282, 309, 16051, 12, 14965, 1276, 2315, 1133, 3719, 288, 225, 2113, 18, 24906,...
myTree.getModel().addTreeModelListener(new TreeModelListener() {
final TreeModel treeModel = myTree.getModel(); final TreeModelListener treeModelListener = new TreeModelListener() {
public BreakpointPanel(BreakpointPropertiesPanel propertiesPanel, final BreakpointPanelAction[] actions, String breakpointCategory, String displayName, String helpId) { myPropertiesPanel = propertiesPanel; myActions = actions; myBreakpointCategory = breakpointCategory; myDisplayName = displayName; myHelpID = helpId; myTable = new BreakpointTable(); myTree = new BreakpointTree(); myTablePlace.setLayout(new CardLayout()); myTablePlace.add(ScrollPaneFactory.createScrollPane(myTable), TABLE_VIEW); myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { updateCurrentBreakpointPropertiesPanel(); } }); myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { updateCurrentBreakpointPropertiesPanel(); } }); myTable.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { if (e.getType() == TableModelEvent.UPDATE) { updateCurrentBreakpointPropertiesPanel(); } } }); myTree.getModel().addTreeModelListener(new TreeModelListener() { public void treeNodesChanged(TreeModelEvent e) { } public void treeNodesInserted(TreeModelEvent e) { } public void treeNodesRemoved(TreeModelEvent e) { } public void treeStructureChanged(TreeModelEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { ensureSelectionExists(); updateButtons(); } }); } }); myPropertiesPanelPlace.setLayout(new CardLayout()); final JPanel stubPanel = new JPanel(); stubPanel.setMinimumSize(myPropertiesPanel.getPanel().getMinimumSize()); myPropertiesPanelPlace.add(stubPanel, PROPERTIES_STUB); myPropertiesPanelPlace.add(myPropertiesPanel.getPanel(), PROPERTIES_DATA); myBreakPointsPanel.setBorder(IdeBorderFactory.createEmptyBorder(6, 6, 0, 6)); myButtonsPanel.setLayout(new GridBagLayout()); for (int idx = 0; idx < actions.length; idx++) { final BreakpointPanelAction action = actions[idx]; action.setPanel(this); final AbstractButton button = action.isStateAction()? new JCheckBox(action.getName()) : new JButton(action.getName()); action.setButton(button); button.addActionListener(action); final double weighty = (idx == actions.length - 1) ? 1.0 : 0.0; myButtonsPanel.add(button, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, weighty, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 2, 2, 2), 0, 0)); } myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { updateButtons(); } }); myTable.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { myEventDispatcher.getMulticaster().breakpointsChanged(); } }); myTablePlace.add(ScrollPaneFactory.createScrollPane(myTree), TREE_VIEW); updateCurrentBreakpointPropertiesPanel(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/9216a2d40fc88ed8cfd52eb569b99031cb108e4c/BreakpointPanel.java/clean/source/com/intellij/debugger/ui/breakpoints/BreakpointPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17030, 1153, 5537, 12, 20552, 2297, 5537, 1790, 5537, 16, 727, 17030, 1153, 5537, 1803, 8526, 4209, 16, 514, 18820, 4457, 16, 514, 16218, 16, 514, 2809, 548, 13, 288, 565, 3399, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17030, 1153, 5537, 12, 20552, 2297, 5537, 1790, 5537, 16, 727, 17030, 1153, 5537, 1803, 8526, 4209, 16, 514, 18820, 4457, 16, 514, 16218, 16, 514, 2809, 548, 13, 288, 565, 3399, 229...
}
} c_encoding = conf.getString("defaultContentEncoding", "ISO-8859-1"); /* try { if (!java.nio.charset.Charset.isSupported(c_encoding)) { c_encoding = "ISO-8859-1"; } } catch (Exception e) { c_encoding = "ISO-8859-1"; } */
public OpenCms(Configurations conf) throws Exception { CmsObject cms = null; // Save the configuration setConfiguration(conf); // invoke the ResourceBroker via the initalizer try { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] logging started"); String jdkinfo = System.getProperty("java.vm.name") + " "; jdkinfo += System.getProperty("java.vm.version") + " "; jdkinfo += System.getProperty("java.vm.info") + " "; jdkinfo += System.getProperty("java.vm.vendor") + " "; A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] JDK Info: " + jdkinfo); String osinfo = System.getProperty("os.name") + " "; osinfo += System.getProperty("os.version") + " "; osinfo += System.getProperty("os.arch") + " "; A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] OS Info: " + osinfo); A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] file.encoding: " + System.getProperty("file.encoding")); } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] creating first cms-object"); } cms = new CmsObject(); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initializing the main resource-broker"); } m_sessionFailover = conf.getBoolean("sessionfailover.enabled", false); // init the rb via the manager with the configuration // and init the cms-object with the rb. c_rb = CmsRbManager.init(conf); printCopyrightInformation(cms); // initalize the Hashtable with all available mimetypes if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] read mime types"); } m_mt = c_rb.readMimeTypes(null, null); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] found " + m_mt.size() + " mime-type entrys"); } // Check, if the HTTP streaming should be enabled m_streaming = conf.getBoolean("httpstreaming.enabled", true); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] HTTP streaming " + (m_streaming?"en":"dis") + "abled. "); } // if the System property opencms.disableScheduler is set to true, don't start scheduling if(!new Boolean(System.getProperty("opencms.disableScheduler")).booleanValue()) { // now initialise the OpenCms scheduler to launch cronjobs m_table = new CmsCronTable(c_rb.readCronTable(null, null)); m_scheduler = new CmsCronScheduler(this, m_table); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] initializing CmsCronScheduler... DONE"); } } else { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] CmsCronScheduler is disabled!"); } } } catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } throw e; } // try to initialize the launchers. try { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initialize launchers..."); } m_launcherManager = new CmsLauncherManager(this); } catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } } // get the password validating class c_passwordValidatingClass = conf.getString("passwordvalidatingclass", "com.opencms.util.PasswordValidtation"); // Check, if the element cache should be enabled m_enableElementCache = conf.getBoolean("elementcache.enabled", false); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] element cache " + (m_enableElementCache?"en":"dis") + "abled. "); } if(m_enableElementCache) { try { c_elementCache = new CmsElementCache(conf.getInteger("elementcache.uri", 10000), conf.getInteger("elementcache.elements", 50000), conf.getInteger("elementcache.variants", 100)); }catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } } c_variantDeps = new Hashtable(); c_elementCache.getElementLocator().setExternDependencies(c_variantDeps); } // now for the link replacement rules there are up to three rulesets for export online and offline try{ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initializing link replace rules."); } String[] staticUrlPrefix = new String[4]; staticUrlPrefix[0]=Utils.replace(conf.getString(C_URL_PREFIX_EXPORT, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[1]=Utils.replace(conf.getString(C_URL_PREFIX_HTTP, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[2]=Utils.replace(conf.getString(C_URL_PREFIX_HTTPS, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[3]=Utils.replace(conf.getString(C_URL_PREFIX_SERVERNAME, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); c_exportProperties.setUrlPrefixArray(staticUrlPrefix); // to get the right rulesets we need the default value for the export property String exportDefault = conf.getString("staticexport.default.export", "true"); c_exportProperties.setExportDefaultValue(exportDefault); String export = conf.getString("linkrules."+exportDefault+".export"); String[] linkRulesExport; if(export != null && !"".equals(export)){ linkRulesExport = conf.getStringArray("ruleset."+export); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesExport.length; i++) { linkRulesExport[i] = Utils.replace(linkRulesExport[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesExport(linkRulesExport); } String online = conf.getString("linkrules."+exportDefault+".online"); String[] linkRulesOnline; if(online != null && !"".equals(online)){ linkRulesOnline = conf.getStringArray("ruleset."+online); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesOnline.length; i++) { linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesOnline(linkRulesOnline); } String offline = conf.getString("linkrules."+exportDefault+".offline"); String[] linkRulesOffline; if(offline != null && !"".equals(offline)){ linkRulesOffline = conf.getStringArray("ruleset."+offline); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesOffline.length; i++) { linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesOffline(linkRulesOffline); } String extern = conf.getString("linkrules."+exportDefault+".extern"); String[] linkRulesExtern; if(extern != null && !"".equals(extern)){ linkRulesExtern = conf.getStringArray("ruleset."+extern); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesExtern.length; i++) { linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesExtern(linkRulesExtern); } c_exportProperties.setStartRule(null); // temporary out of order: conf.getString("exportfirstrule"); Vector staticExportStart=new Vector(); staticExportStart.add("/"); c_exportProperties.setStartPoints(staticExportStart); // at last the target for the export c_exportProperties.setExportPath( com.opencms.boot.CmsBase.getAbsoluteWebPath(CmsBase.getAbsoluteWebPath(conf.getString(C_STATICEXPORT_PATH)))); // should the links in static export be relative? c_exportProperties.setExportRelativeLinks(conf.getBoolean("relativelinks_in_export", false)); // is the static export enabled? String activCheck = conf.getString("staticexport.enabled", "false"); c_exportProperties.setStaticExportEnabledValue(activCheck); if("true".equalsIgnoreCase(activCheck)){ c_exportProperties.setStaticExportEnabled(true); }else{ c_exportProperties.setStaticExportEnabled(false); } if(c_exportProperties.isStaticExportEnabled()){ // we have to generate the dynamic rulessets createDynamicLinkRules(); }else{ if("false_ssl".equalsIgnoreCase(activCheck)){ // no static esport, but we need the dynamic rules for setting the protokoll to https c_exportProperties.setLinkRulesOffline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); c_exportProperties.setLinkRulesOnline(new String[]{"*dynamicRules*", "s#^#" + staticUrlPrefix[1] + "#"}); // and we have to change the standart export prefix to stay in opencms c_exportProperties.getUrlPrefixArray()[0] = staticUrlPrefix[1]; // if we need them we should create them createDynamicLinkRules(); }else{ // no static export. We need online and offline rules to stay in OpenCms. // we generate them with the url_prefix_http so the user can still configure // the servletpath. c_exportProperties.setLinkRulesOffline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); c_exportProperties.setLinkRulesOnline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); } } }catch(Exception e){ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] Exception initializing link rules: " + e.toString()); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/5c27bc595df503fc5e3629ec92d99ba38b58a0e9/OpenCms.java/buggy/src/com/opencms/core/OpenCms.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10319, 12, 9698, 2195, 13, 1216, 1185, 288, 3639, 14371, 6166, 273, 446, 31, 3639, 368, 7074, 326, 1664, 3639, 444, 1750, 12, 3923, 1769, 7734, 368, 4356, 326, 2591, 11194, 3970, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10319, 12, 9698, 2195, 13, 1216, 1185, 288, 3639, 14371, 6166, 273, 446, 31, 3639, 368, 7074, 326, 1664, 3639, 444, 1750, 12, 3923, 1769, 7734, 368, 4356, 326, 2591, 11194, 3970, 32...
public int[] finish() {
public int[] finish() throws VM_PragmaInterruptible {
public int[] finish() { if ((gcMapInformation != null) && (lastGCMapEntry < gcMapInformation.length - 1)) { resizeMapInformation(lastGCMapEntry + 1); } return gcMapInformation; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a259eee8ff750bfcf6596f83ad8ce6c1bcc7286d/VM_OptGCMap.java/clean/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptGCMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8526, 4076, 1435, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 309, 14015, 13241, 863, 5369, 480, 446, 13, 597, 225, 202, 12, 2722, 15396, 863, 1622, 411, 8859, 863, 5369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8526, 4076, 1435, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 309, 14015, 13241, 863, 5369, 480, 446, 13, 597, 225, 202, 12, 2722, 15396, 863, 1622, 411, 8859, 863, 5369...
public XSCMValidator getContentModel(XSComplexTypeDecl typeDecl) { // for complex type with empty or simple content, // there is no content model validator short contentType = typeDecl.getContentType(); if (contentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE || contentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) { return null; } XSParticleDecl particle = (XSParticleDecl)typeDecl.getParticle(); // if the content is element only or mixed, but no particle // is defined, return the empty content model if (particle == null) return fEmptyCM; // if the content model contains "all" model group, // we create an "all" content model, otherwise a DFA content model XSCMValidator cmValidator = null; if (particle.fType == XSParticleDecl.PARTICLE_MODELGROUP && ((XSModelGroupImpl)particle.fValue).fCompositor == XSModelGroupImpl.MODELGROUP_ALL) { cmValidator = createAllCM(particle); } else { cmValidator = createDFACM(particle); } // if the validator returned is null, it means there is nothing in // the content model, so we return the empty content model. if (cmValidator == null) cmValidator = fEmptyCM; return cmValidator; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/e65c5ac35572e7128402faf30f4127f7dfae653b/CMBuilder.java/clean/src/org/apache/xerces/impl/xs/models/CMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 2312, 49, 5126, 5154, 1488, 12, 60, 55, 12795, 559, 3456, 618, 3456, 13, 288, 3639, 368, 364, 7233, 618, 598, 1008, 578, 4143, 913, 16, 3639, 368, 1915, 353, 1158, 913, 938,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 2312, 49, 5126, 5154, 1488, 12, 60, 55, 12795, 559, 3456, 618, 3456, 13, 288, 3639, 368, 364, 7233, 618, 598, 1008, 578, 4143, 913, 16, 3639, 368, 1915, 353, 1158, 913, 938,...
sb.append(" not found in ").append((win == null? "sent" : "received")).append(" msgs. ");
sb.append(" not found in ").append((amISender? "sent" : "received")).append(" msgs. ");
void handleXmitReq(Address xmit_requester, long first_seqno, long last_seqno, Address original_sender) { Message m, tmp; LinkedList list; long size=0, marker=first_seqno, len; NakReceiverWindow win=null; if(log.isTraceEnabled()) { StringBuffer sb=new StringBuffer(); sb.append(local_addr).append(": received xmit request from ").append(xmit_requester).append(" for "); sb.append(original_sender).append(" [").append(first_seqno).append(" - ").append(last_seqno).append("]"); log.trace(sb.toString()); } if(first_seqno > last_seqno) { if(log.isErrorEnabled()) log.error("first_seqno (" + first_seqno + ") > last_seqno (" + last_seqno + "): not able to retransmit"); return; } if(!local_addr.equals(original_sender)) { // retransmit from received messages table win=(NakReceiverWindow)received_msgs.get(original_sender); } else { // retransmit from sent messages table } list=new LinkedList(); for(long i=first_seqno; i <= last_seqno; i++) { if(win != null) m=win.get(i); else m=(Message)sent_msgs.get(new Long(i)); // no need to synchronize if(m == null) { if(log.isErrorEnabled()) { StringBuffer sb=new StringBuffer(); sb.append("(requester=").append(xmit_requester).append(", local_addr=").append(this.local_addr); sb.append(") message ").append(original_sender).append("::").append(i); sb.append(" not found in ").append((win == null? "sent" : "received")).append(" msgs. "); if(win != null) { sb.append("Received messages: ").append(win.toString()); } else { sb.append("Sent messages: ").append(printSentMsgs()); } log.error(sb.toString()); } continue; } len=m.size(); size+=len; if(size > max_xmit_size && list.size() > 0) { // changed from >= to > (yaron-r, bug #943709) // yaronr: added &&listSize()>0 since protocols between FRAG and NAKACK add headers, and message exceeds size. // size has reached max_xmit_size. go ahead and send message (excluding the current message) if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + (i - 1) + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, i - 1); marker=i; list.clear(); // fixed Dec 15 2003 (bela, patch from Joel Dice (dicej)), see explanantion under // bug report #854887 size=len; } if(Global.copy) { tmp=m.copy(); } else { tmp=m; } tmp.setDest(xmit_requester); tmp.setSrc(local_addr); list.add(tmp); } if(list.size() > 0) { if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + last_seqno + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, last_seqno); list.clear(); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/b85e2de5b1f645881680c96fb57e604eb54bd500/NAKACK.java/clean/src/org/jgroups/protocols/pbcast/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 60, 1938, 6113, 12, 1887, 619, 1938, 67, 26192, 16, 1525, 1122, 67, 5436, 2135, 16, 1525, 1142, 67, 5436, 2135, 16, 5267, 2282, 67, 15330, 13, 288, 3639, 2350, 312, 16, 1853,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 60, 1938, 6113, 12, 1887, 619, 1938, 67, 26192, 16, 1525, 1122, 67, 5436, 2135, 16, 1525, 1142, 67, 5436, 2135, 16, 5267, 2282, 67, 15330, 13, 288, 3639, 2350, 312, 16, 1853,...
"org.eclipse.ui.tests.menus.enabledWorld", null, null,
"org.eclipse.ui.tests.menus.updateWorld", null, null,
public void addMenuContribution() { IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); MenuDataCacheEntry cache = new MenuDataCacheEntry(menuService, "menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions"); ItemData item = new ItemData("org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null, null); cache.add(item); MenuData submenu = new MenuData("org.eclipse.ui.tests.menus.menuX21", null, "Menu X21", null, null); cache.add(submenu); item = new ItemData("org.eclipse.ui.tests.menus.itemX22", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X22", null, null); submenu.add(item); item = new ItemData("org.eclipse.ui.tests.menus.itemX23", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X23", null, null); submenu.add(item); item = new ItemData("org.eclipse.ui.tests.menus.itemX24", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X24", null, null); cache.add(item); menuService.addCacheForURI(cache); cache = new MenuDataCacheEntry(menuService, "toolbar:org.eclipse.ui.tests.api.MenuTestHarness"); item = new ItemData("org.eclipse.ui.tests.menus.itemX25", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X25", null, null); cache.add(item); WidgetData widget = new WidgetData( "org.eclipse.ui.tests.menus.itemX26", null) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.menus.WidgetData#createWidget() */ public AbstractWorkbenchWidget createWidget() { return new TextWidget(); } }; cache.add(widget); menuService.addCacheForURI(cache); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/eb25ee5d930a4b5ff226192cb94888744934b0a1/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 4599, 442, 4027, 1435, 288, 202, 202, 3445, 2104, 1179, 3824, 1179, 273, 261, 3445, 2104, 1179, 13, 11810, 5370, 18, 588, 2421, 22144, 1435, 9506, 202, 18, 588, 1179, 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, 377, 1071, 918, 527, 4599, 442, 4027, 1435, 288, 202, 202, 3445, 2104, 1179, 3824, 1179, 273, 261, 3445, 2104, 1179, 13, 11810, 5370, 18, 588, 2421, 22144, 1435, 9506, 202, 18, 588, 1179, 12, ...
leafparser, am.ispolymorphic, am.ismappable);
leafparser, am == null? false : am.ispolymorphic, am == null? false : am.ismappable);
public void startElement(String tagname, AttributeList attrlist) throws SAXException { try { // an element has started, and we must start to construct an object to put // it in. // The object on top of the ParseContext stack represents the parent object // of this object. ParseContext beingparsed = getSaxingObject(); if (beingparsed.isleaf) { throw new SAXParseException("Received open tag " + tagname + " for leaf tag " + beingparsed.parentsetter.tagname, locator); } SAXAccessMethodHash tagmethods = beingparsed.ma.tagmethods; // Firstly we will look into its AccessMethodHash to see if the tagname we // have just seen // has been registered by the class of the parent object. SAXAccessMethod am = tagmethods.get(tagname); Class newobjclass = null; // for some reason, idiot compiler cannot // analyse that this is set if (am == null) { // if we failed to find a registered method for this tag name try { // attempt to look up the class name now so that the forthcoming // if statement can be nicely ordered if (tagname.indexOf(':') == -1 && tagname.indexOf('.') != -1) newobjclass = Class.forName(tagname); } catch (Exception e) { } // exception simply indicates that the tag name is not a class if (tagmethods.get("*") != null && newobjclass != null) { // if the parent is polymorphic, and class name lookup succeeded, do // nothing. // Note, this is REALLY blank! newobjtype will be set in the try // above. } else if (beingparsed.object instanceof GenericSAX) { // but the parent is generic newobjclass = GenericSAXImpl.class; // Child of generic will always be // generic. } else { // the parent is not generic throw new SAXParseException("Unexpected tag '" + tagname + "' found while parsing child of" + (beingparsed.object == null ? " null object" : " object of " + beingparsed.object.getClass()), locator); } } // end if no registered method else { String typeattrname = Constants.TYPE_ATTRIBUTE_NAME; // QQQQQ genericise this somehow. String typeattrvalue = attrlist.getValue(typeattrname); if (am.ispolymorphic && typeattrvalue != null) { newobjclass = mappingcontext.classnamemanager .findClazz(typeattrvalue); if (newobjclass == null) { newobjclass = ClassGetter.forName(typeattrvalue); } if (newobjclass == null) { throw new SAXParseException("Polymorphic tag " + tagname + " has \"type\" attribute with value " + typeattrvalue + " which cannot be resolved to a class ", locator); } } else { newobjclass = am.clazz; } } if (Logger.passDebugLevel(Logger.DEBUG_EXTRA_INFO)) { Logger.println("ELEMENT CLASS determined to be " + newobjclass); } // if the parent is DeSAXalizable and we can find a unique non-null object // already present at this position, use it rather than creating a new // one. // do not do this for leaves, since they will be replaced anyway, and in // any // case the existing object represents the leaf's class. Object oldobj = null; // enumerations and non-getters are out - we could never write to them. // if it is a leaf type it is out, UNLESS it is a multiple in which case // it // is denumerable. It is ALSO out if it is "exact" since the class author // presumably has provided a precise "add" method he wants us to use. if (am.canGet() && !am.isenumonly && (am.ismultiple || !leafparser.isLeafType(am.clazz)) && !am.isexactsetter) { oldobj = am.getChildObject(beingparsed.object); if (oldobj != null) { // Logger.println("Acquired old object " + oldobj + " from parent " // + beingparsed.object + " of class " + am.clazz, // Logger.DEBUG_EXTRA_INFO); } } pushObject(newobjclass, oldobj, am); ParseContext newcontext = getSaxingObject(); if (am.ismappable) { newcontext.mapkey = attrlist.getValue(Constants.KEY_ATTRIBUTE_NAME); newcontext.objectpeer = am.getChildObject(beingparsed.object); } if (!newcontext.isleaf) { tryBlastAttrs(attrlist, newcontext.ma.attrmethods, newcontext.object, leafparser, am.ispolymorphic, am.ismappable); } } catch (Exception e) { if (e instanceof SAXParseException) { throw ((SAXParseException) e); } else { throw UniversalRuntimeException.accumulate(e, "Error parsing at " + renderLocator(locator)); } } }
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/ff2e2ceb7507fb479b347ad1125c24936c492bcd/SAXalizer.java/buggy/rsf-core/ponderutilcore/src/uk/org/ponder/saxalizer/SAXalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13591, 12, 780, 25586, 16, 3601, 682, 1604, 1098, 13, 1377, 1216, 14366, 288, 565, 775, 288, 1377, 368, 392, 930, 711, 5746, 16, 471, 732, 1297, 787, 358, 4872, 392, 733, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 12, 780, 25586, 16, 3601, 682, 1604, 1098, 13, 1377, 1216, 14366, 288, 565, 775, 288, 1377, 368, 392, 930, 711, 5746, 16, 471, 732, 1297, 787, 358, 4872, 392, 733, 358...
{
{
public Element find2(String name) { LinkNode temp = curr; curr = head; while (curr !=null) { if (curr.getElement().getAttribute("name").equals(name)) { Element found = curr.getElement(); curr = temp; return found; } this.getNext(); } curr = temp; return null; }
660 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/660/406c3b5506279f8f62251239c2d4c9d797e9e91c/LinkedList.java/buggy/ui/java-gui/LinkedList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 1104, 22, 12, 780, 508, 13, 202, 95, 202, 202, 2098, 907, 1906, 273, 4306, 31, 202, 202, 17016, 273, 910, 31, 202, 202, 17523, 261, 17016, 480, 2011, 13, 202, 202, 95,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 1104, 22, 12, 780, 508, 13, 202, 95, 202, 202, 2098, 907, 1906, 273, 4306, 31, 202, 202, 17016, 273, 910, 31, 202, 202, 17523, 261, 17016, 480, 2011, 13, 202, 202, 95,...
processModules( archiver, assembly.getModules(), assembly.isIncludeBaseDirectory() );
processModules( archiver, assembly.getModuleSets(), assembly.isIncludeBaseDirectory() );
protected File createArchive( Archiver archiver, Assembly assembly, String filename ) throws ArchiverException, IOException, MojoExecutionException, MojoFailureException, XmlPullParserException, RepositoryAssemblyException, InvalidRepositoryException { processRepositories( archiver, assembly.getRepositories(), assembly.isIncludeBaseDirectory() ); processDependencySets( archiver, assembly.getDependencySets(), assembly.isIncludeBaseDirectory() ); processModules( archiver, assembly.getModules(), assembly.isIncludeBaseDirectory() ); processFileSets( archiver, assembly.getFileSets(), assembly.isIncludeBaseDirectory() ); processFileList( archiver, assembly.getFiles(), assembly.isIncludeBaseDirectory() ); componentsXmlFilter.addToArchive( archiver ); File destFile = new File( outputDirectory, filename ); if ( archiver instanceof JarArchiver ) { // TODO: I'd really prefer to rewrite MavenArchiver as either a separate manifest creation utility (and to // create an include pom.properties etc into another archiver), or an implementation of an archiver // (the first is preferable). MavenArchiver mavenArchiver = new MavenArchiver(); if ( archive != null ) { try { Manifest manifest = null; File manifestFile = archive.getManifestFile(); if ( manifestFile != null ) { try { manifest = new Manifest( new FileReader( manifestFile ) ); } catch ( FileNotFoundException e ) { throw new MojoFailureException( "Manifest not found: " + e.getMessage() ); } catch ( IOException e ) { throw new MojoExecutionException( "Error processing manifest: " + e.getMessage(), e ); } } else { manifest = mavenArchiver.getManifest( project, archive.getManifest() ); } if ( manifest != null ) { JarArchiver jarArchiver = (JarArchiver) archiver; jarArchiver.addConfiguredManifest( manifest ); } } catch ( ManifestException e ) { throw new MojoExecutionException( "Error creating manifest: " + e.getMessage(), e ); } catch ( DependencyResolutionRequiredException e ) { throw new MojoExecutionException( "Dependencies were not resolved: " + e.getMessage(), e ); } } } archiver.setDestFile( destFile ); archiver.createArchive(); return destFile; }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/49d0fb39446408686654104fcf34901fb830796a/AbstractAssemblyMojo.java/buggy/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/AbstractAssemblyMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 752, 7465, 12, 16959, 1667, 6637, 1667, 16, 2970, 11534, 19931, 16, 514, 1544, 262, 3639, 1216, 16959, 1667, 503, 16, 1860, 16, 18780, 16, 15931, 14389, 16, 5714, 9629, 25746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 752, 7465, 12, 16959, 1667, 6637, 1667, 16, 2970, 11534, 19931, 16, 514, 1544, 262, 3639, 1216, 16959, 1667, 503, 16, 1860, 16, 18780, 16, 15931, 14389, 16, 5714, 9629, 25746, ...
option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain"+extras, "Click here");
option.addChild("a", "href", basePath + key.toString() + "?type=text/plain"+extras, "Click here");
public static void handleDownload(ToadletContext context, Bucket data, BucketFactory bucketFactory, String mimeType, String requestedMimeType, String forceString, boolean forceDownload, String basePath, FreenetURI key, String extras, String referrer) throws ToadletContextClosedException, IOException { if(requestedMimeType != null) { if(mimeType == null || !requestedMimeType.equals(mimeType)) { if(extras == null) extras = ""; extras = extras + "&type=" + requestedMimeType; } mimeType = requestedMimeType; } long now = System.currentTimeMillis(); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } try { if((!force) && (!forceDownload)) { FilterOutput fo = ContentFilter.filter(data, bucketFactory, mimeType, new URI(basePath + URLEncoder.encode(key.toString(false))), null); data = fo.data; mimeType = fo.type; if(horribleEvilHack(data) && !(mimeType.startsWith("application/rss+xml"))) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content (RSS)"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", "RSS feed may be dangerous"); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "Freenet has detected that the file you are trying to fetch might be RSS. "+ "RSS cannot be properly filtered by Freenet, and may contain web-bugs (inline images etc which may "+ "expose your IP address to a malicious site author and therefore break your anonymity). "+ "Firefox 2.0 and Internet Explorer 7.0 will open the file as RSS even though its content type is \""+HTMLEncoder.encode(mimeType)+"\"."); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain&force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("%", " to open the file as plain text (this <b>may be dangerous</b> if you are running IE7 or FF2)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here"); option.addChild("%", " to try to force your browser to download the file to disk (<b>this may also be dangerous if you run Firefox 2.0.0 (2.0.1 should fix this)</b>)."); if(!mimeType.startsWith("text/plain")) { option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("#", " to open the file as " + mimeType); option.addChild("%", " (<b>this may also be dangerous</b>)."); } option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=application/xml+rss&force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("%", " to open the file as RSS (<b>this is dangerous if the site author is malicious</b>)."); if(referrer != null) { option = optionList.addChild("li"); option.addChild("a", "href", referrer, "Click here"); option.addChild("#", " to go back to the referring page."); } option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); return; } } if (forceDownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + '"'); context.sendReplyHeaders(200, "OK", headers, "application/x-msdownload", data.size()); context.writeData(data); } else { // Send the data, intact context.sendReplyHeaders(200, "OK", new MultiValueTable(), mimeType, data.size()); context.writeData(data); } } catch (URISyntaxException use1) { /* shouldn't happen */ use1.printStackTrace(); Logger.error(FProxyToadlet.class, "could not create URI", use1); } catch (UnsafeContentTypeException e) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", e.getRawTitle()); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild(e.getHTMLExplanation()); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain"+extras, "Click here"); option.addChild("#", " to open the file as plain text (this should not be dangerous but it may be garbled)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here"); option.addChild("#", " to force your browser to download the file to disk."); option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("#", " to open the file as " + mimeType + '.'); if(referrer != null) { option = optionList.addChild("li"); option.addChild("a", "href", referrer, "Click here"); option.addChild("#", " to go back to the referring page."); } option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/1c876261ab73159d57a26624667ec7bf7acd15b8/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString());
public void goBack() { String uri = manager.getBack(); view.setDocument(uri);
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString()); updateButtons(); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserPanel.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1960, 2711, 1435, 5411, 1216, 1185, 288, 3639, 1365, 18, 8189, 18, 3240, 8351, 5621, 3639, 1476, 18, 542, 2519, 12, 3085, 18, 8189, 18, 588, 3935, 2519, 9334, 880, 18, 10492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1960, 2711, 1435, 5411, 1216, 1185, 288, 3639, 1365, 18, 8189, 18, 3240, 8351, 5621, 3639, 1476, 18, 542, 2519, 12, 3085, 18, 8189, 18, 588, 3935, 2519, 9334, 880, 18, 10492, ...
history.save(memento);
if (history != null) history.save(memento);
protected void storeDialog(IDialogSettings settings) { settings.put(SHOW_STATUS_LINE, toggleStatusLineAction.isChecked()); XMLMemento memento = XMLMemento.createWriteRoot(HISTORY_SETTINGS); history.save(memento); StringWriter writer = new StringWriter(); try { memento.save(writer); settings.put(HISTORY_SETTINGS, writer.getBuffer().toString()); } catch (IOException e) { // Simply don't store the settings WorkbenchPlugin.log(e); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1663bf19893c50fb6c66f6e2fee4bc87c54134c3/FilteredItemsSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1707, 6353, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 16677, 67, 8608, 67, 5997, 16, 10486, 1482, 1670, 1803, 18, 291, 11454, 10663, 202, 202, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 6353, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 16677, 67, 8608, 67, 5997, 16, 10486, 1482, 1670, 1803, 18, 291, 11454, 10663, 202, 202, 420...
setBinaryStream(((Blob) value).getBinaryStream());
if (value instanceof FBBlob) setBlob((FBBlob)value); else setBinaryStream(((Blob) value).getBinaryStream(), (int)((Blob)value).length());
void setObject(Object value) throws SQLException { /* throw (SQLException)createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); */ if (value == null) { setNull(true); return; } if (value instanceof InputStream) { setBinaryStream((InputStream) value); } else if (value instanceof BigDecimal) { setBigDecimal((BigDecimal) value); } else if (value instanceof Blob) { setBinaryStream(((Blob) value).getBinaryStream()); } else if (value instanceof Boolean) { setBoolean(((Boolean) value).booleanValue()); } else if (value instanceof Byte) { setByte(((Byte) value).byteValue()); } else if (value instanceof byte[]) { setBytes((byte[]) value); } else if (value instanceof Date) { setDate((Date) value); } else if (value instanceof Double) { setDouble(((Double) value).doubleValue()); } else if (value instanceof Float) { setFloat(((Float) value).floatValue()); } else if (value instanceof Integer) { setInteger(((Integer) value).intValue()); } else if (value instanceof Long) { setLong(((Long) value).longValue()); } else if (value instanceof Short) { setShort(((Short) value).shortValue()); } else if (value instanceof String) { setString((String) value); } else if (value instanceof Time) { setTime((Time) value); } else if (value instanceof Timestamp) { setTimestamp((Timestamp) value); } else { throw (SQLException) createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/0e421973c2ccc32dad59dc9dfb8faebabd131d31/FBField.java/buggy/src/org/firebirdsql/jdbc/FBField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20530, 12, 921, 460, 13, 1216, 6483, 288, 3639, 1748, 3639, 604, 261, 23116, 13, 2640, 503, 12, 5411, 12166, 67, 2248, 5757, 67, 3589, 2934, 5935, 382, 6332, 5621, 3639, 1195, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20530, 12, 921, 460, 13, 1216, 6483, 288, 3639, 1748, 3639, 604, 261, 23116, 13, 2640, 503, 12, 5411, 12166, 67, 2248, 5757, 67, 3589, 2934, 5935, 382, 6332, 5621, 3639, 1195, 3639, ...
boolean isDocument = false;
boolean isDocument = false;
public boolean isDocument(Publication publication, String url) throws DocumentBuildException { boolean isDocument = false; String publicationURI = url.substring(("/" + publication.getId()).length()); if (publicationURI.startsWith("/")) { publicationURI = publicationURI.substring(1); int slashIndex = publicationURI.indexOf("/"); if (slashIndex > -1) { String documentUri = publicationURI.substring(slashIndex); if (documentUri.startsWith("/")) { isDocument = true; } } } return isDocument; }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/ce03aa06b18685f3d94e53f500bcc2daa50b1059/DefaultDocumentBuilder.java/buggy/src/java/org/apache/lenya/cms/publication/DefaultDocumentBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 2519, 12, 4782, 367, 20574, 16, 514, 880, 13, 1216, 4319, 3116, 503, 288, 3639, 1250, 353, 2519, 273, 629, 31, 3639, 514, 20574, 3098, 273, 880, 18, 28023, 12, 2932, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 2519, 12, 4782, 367, 20574, 16, 514, 880, 13, 1216, 4319, 3116, 503, 288, 3639, 1250, 353, 2519, 273, 629, 31, 3639, 514, 20574, 3098, 273, 880, 18, 28023, 12, 2932, 48...
public org.quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { org.quickfix.field.ContractSettlMonth value = new org.quickfix.field.ContractSettlMonth();
public quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { quickfix.field.ContractSettlMonth value = new quickfix.field.ContractSettlMonth();
public org.quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { org.quickfix.field.ContractSettlMonth value = new org.quickfix.field.ContractSettlMonth(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, 336, 8924, 694, 6172, 5445, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, 336, 8924, 694, 6172, 5445, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, ...
if (document != null) { JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); IDocumentPartitioner partitioner= tools.createDocumentPartitioner(); document.setDocumentPartitioner(partitioner); partitioner.connect(document); }
initializeDocument(document);
protected IDocument createDocument(Object element) throws CoreException { IDocument document= super.createDocument(element); if (document != null) { JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); IDocumentPartitioner partitioner= tools.createDocumentPartitioner(); document.setDocumentPartitioner(partitioner); partitioner.connect(document); } return document; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4ef95e667e1de12964fc8631fca3272081c17097/CompilationUnitDocumentProvider.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1599, 504, 650, 27569, 12, 921, 930, 13, 1216, 30015, 288, 202, 202, 734, 504, 650, 1668, 33, 2240, 18, 2640, 2519, 12, 2956, 1769, 202, 202, 430, 261, 5457, 480, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1599, 504, 650, 27569, 12, 921, 930, 13, 1216, 30015, 288, 202, 202, 734, 504, 650, 1668, 33, 2240, 18, 2640, 2519, 12, 2956, 1769, 202, 202, 430, 261, 5457, 480, 446, 13, ...
refreshBottomArea( ); DataDefinitionTextManager.getInstance( ).refreshAll( );
public void run( ) { Query query = ( (Query) ( (SeriesDefinition) ChartUIUtil.getBaseSeriesDefinitions( getChartModel( ) ) .get( 0 ) ).getDesignTimeSeries( ) .getDataDefinition( ) .get( 0 ) ); manageColorAndQuery( query ); refreshBottomArea( ); // Refresh all data definition text DataDefinitionTextManager.getInstance( ).refreshAll( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ee7f46f4c99fefba65a0acb1d1f4be2f89a57d3c/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 12, 262, 202, 202, 95, 1082, 202, 1138, 843, 273, 261, 261, 1138, 13, 261, 261, 6485, 1852, 13, 14804, 5370, 1304, 18, 588, 2171, 6485, 7130, 12, 336, 7984, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 12, 262, 202, 202, 95, 1082, 202, 1138, 843, 273, 261, 261, 1138, 13, 261, 261, 6485, 1852, 13, 14804, 5370, 1304, 18, 588, 2171, 6485, 7130, 12, 336, 7984, 1488, ...
} else if (i == 2) {
} else if (i == 2) {
public void initializeFields() { PhoneType[] phoneTypes = null; try { phoneTypes = (PhoneType[]) com.idega.core.contact.data.PhoneTypeBMPBean.getStaticInstance(PhoneType.class).findAll(); } catch (SQLException ex) { ex.printStackTrace(); } if (phoneTypes != null) { if (phoneTypes.length > 0) { IWContext iwc = IWContext.getInstance(); IWResourceBundle iwrb = getResourceBundle(iwc); for (int i = 0; i < phoneTypes.length; i++) { String n = phoneTypes[i].getName(); if (n != null) { String l = iwrb.getLocalizedString("grp_phone_" + n,n); phoneTypes[i].setName(l); } } } } homePhoneField = new TextInput(homePhoneFieldName); homePhoneField.setLength(24); workPhoneField = new TextInput(workPhoneFieldName); workPhoneField.setLength(24); mobilePhoneField = new TextInput(mobilePhoneFieldName); mobilePhoneField.setLength(24); faxPhoneField = new TextInput(faxPhoneFieldName); faxPhoneField.setLength(24); homepageField = new TextInput(homepageFieldName); homepageField.setLength(24); homePhoneMenu = new DropdownMenu(phoneTypes, homePhoneMenuName); workPhoneMenu = new DropdownMenu(phoneTypes, workPhoneMenuName); mobilePhoneMenu = new DropdownMenu(phoneTypes, mobilePhoneMenuName); faxPhoneMenu = new DropdownMenu(phoneTypes, faxPhoneMenuName); for (int i = 0; i < phoneTypes.length; i++) { if (i == 0) { homePhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 1) { workPhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 2) { mobilePhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 3) { faxPhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } } emailField = new TextInput(emailFieldName); emailField.setLength(24); }
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/3d3a9f8444e1b2e2c1c4c7d5e71a685e7f0aa419/GroupOfficeContactTab.java/buggy/src/java/is/idega/idegaweb/member/presentation/GroupOfficeContactTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 2314, 1435, 288, 202, 202, 9451, 559, 8526, 7353, 2016, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 10540, 2016, 273, 261, 9451, 559, 63, 5717, 532, 18, 831, 15833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 2314, 1435, 288, 202, 202, 9451, 559, 8526, 7353, 2016, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 10540, 2016, 273, 261, 9451, 559, 63, 5717, 532, 18, 831, 15833...
public void showError(String pErrorMessage, String pTitle) { final String errorMessage = pErrorMessage; final String title = pTitle; Runnable runMe = new Runnable() { public void run() { JOptionPane.showMessageDialog(PreviewContentPanel.this, errorMessage, title, JOptionPane.ERROR_MESSAGE); } }; if (! SwingUtilities.isEventDispatchThread()) { try { SwingUtilities.invokeAndWait(runMe); } catch (Exception e) { } } else { runMe.run(); } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/PreviewContentPanel.java/buggy/src/net/suberic/pooka/gui/PreviewContentPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2405, 668, 12, 780, 293, 14935, 16, 514, 293, 4247, 13, 288, 565, 727, 514, 9324, 273, 293, 14935, 31, 565, 727, 514, 2077, 273, 293, 4247, 31, 3639, 10254, 1086, 4667, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2405, 668, 12, 780, 293, 14935, 16, 514, 293, 4247, 13, 288, 565, 727, 514, 9324, 273, 293, 14935, 31, 565, 727, 514, 2077, 273, 293, 4247, 31, 3639, 10254, 1086, 4667, 273, ...
} else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; }
} else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; }
public void updateRotationMatrix() { if (oldEmit.equals(worldEmit)) return; float upDotEmit = upVector.dot(worldEmit); if (((double) FastMath.abs(upDotEmit)) > 1.0d - FastMath.DBL_EPSILON) { absUpVector.x = upVector.x <= 0.0f ? -upVector.x : upVector.x; absUpVector.y = upVector.y <= 0.0f ? -upVector.y : upVector.y; absUpVector.z = upVector.z <= 0.0f ? -upVector.z : upVector.z; if (absUpVector.x < absUpVector.y) { if (absUpVector.x < absUpVector.z) { absUpVector.x = 1.0f; absUpVector.y = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; } } else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; } absUpVector.subtract(upVector, abUpMinUp); absUpVector.subtract(worldEmit, upXemit); float f4 = 2.0f / abUpMinUp.dot(abUpMinUp); float f6 = 2.0f / upXemit.dot(upXemit); float f8 = f4 * f6 * abUpMinUp.dot(upXemit); float af1[] = { abUpMinUp.x, abUpMinUp.y, abUpMinUp.z }; float af2[] = { upXemit.x, upXemit.y, upXemit.z }; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { matData[i][j] = (-f4 * af1[i] * af1[j] - f6 * af2[i] * af2[j]) + f8 * af2[i] * af1[j]; } matData[i][i]++; } } else { upVector.cross(worldEmit, upXemit); float f2 = 1.0f / (1.0f + upDotEmit); float f5 = f2 * upXemit.x; float f7 = f2 * upXemit.z; float f9 = f5 * upXemit.y; float f10 = f5 * upXemit.z; float f11 = f7 * upXemit.y; matData[0][0] = upDotEmit + f5 * upXemit.x; matData[0][1] = f9 - upXemit.z; matData[0][2] = f10 + upXemit.y; matData[1][0] = f9 + upXemit.z; matData[1][1] = upDotEmit + f2 * upXemit.y * upXemit.y; matData[1][2] = f11 - upXemit.x; matData[2][0] = f10 - upXemit.y; matData[2][1] = f11 + upXemit.x; matData[2][2] = upDotEmit + f7 * upXemit.z; } rotMatrix.set(matData); oldEmit.set(worldEmit); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/1ab8bb9043a0f2de6664e88a56dd1c779ede45fc/ParticleManager.java/buggy/src/com/jmex/effects/ParticleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 14032, 4635, 1435, 288, 3639, 309, 261, 1673, 17982, 18, 14963, 12, 18179, 17982, 3719, 5411, 327, 31, 3639, 1431, 731, 10412, 17982, 273, 731, 5018, 18, 9811, 12, 18179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 14032, 4635, 1435, 288, 3639, 309, 261, 1673, 17982, 18, 14963, 12, 18179, 17982, 3719, 5411, 327, 31, 3639, 1431, 731, 10412, 17982, 273, 731, 5018, 18, 9811, 12, 18179, ...
ITypeInfo[] elementsFound= findClassElementsInProject(); if(foundInList(getNewClassName(), getContainerPath(linkedResourceGroupForHeader), elementsFound)){
ITypeInfo[] elementsFound = findClassElementsInProject(); QualifiedTypeName typeName = new QualifiedTypeName(getNewClassName()); if (foundInList(elementsFound, typeName)) {
protected IStatus classNameChanged() { StatusInfo status= new StatusInfo(); String className= getNewClassName(); // must not be empty if (className.length() == 0) { status.setError(NewWizardMessages.getString("NewClassWizardPage.error.EnterClassName")); //$NON-NLS-1$ return status; } if (className.indexOf("::") != -1) { //$NON-NLS-1$ status.setError(NewWizardMessages.getString("NewClassWizardPage.error.QualifiedName")); //$NON-NLS-1$ return status; } IStatus val= CConventions.validateClassName(className); if (val.getSeverity() == IStatus.ERROR) { status.setError(NewWizardMessages.getFormattedString("NewClassWizardPage.error.InvalidClassName", val.getMessage())); //$NON-NLS-1$ return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(NewWizardMessages.getFormattedString("NewClassWizardPage.warning.ClassNameDiscouraged", val.getMessage())); //$NON-NLS-1$ // continue checking } // must not exist ITypeInfo[] elementsFound= findClassElementsInProject(); if(foundInList(getNewClassName(), getContainerPath(linkedResourceGroupForHeader), elementsFound)){ status.setWarning(NewWizardMessages.getString("NewClassWizardPage.error.ClassNameExists")); //$NON-NLS-1$ } return status; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4e8200ae9323c0c926edcaa99231065f59f88763/NewClassWizardPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 2658, 5033, 1435, 288, 202, 202, 1482, 966, 1267, 33, 394, 2685, 966, 5621, 202, 202, 780, 2658, 33, 12654, 3834, 5621, 202, 202, 759, 1297, 486, 506, 1008, 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, 467, 1482, 2658, 5033, 1435, 288, 202, 202, 1482, 966, 1267, 33, 394, 2685, 966, 5621, 202, 202, 780, 2658, 33, 12654, 3834, 5621, 202, 202, 759, 1297, 486, 506, 1008, 202, 2...
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate();
public quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { quickfix.field.UnderlyingRedemptionDate value = new quickfix.field.UnderlyingRedemptionDate();
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 19117, 375, 1626, 10833, 765, 6291, 426, 19117, 375, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 19117, 375, 1626, 10833, 765, 6291, 426, 19117, 375, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18...
public void createControl( Composite parent ) { container = new Composite(parent , SWT.NONE); GridLayout layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; container.setLayout( layout ); title = new TabbedPropertyTitle( container, FormWidgetFactory.getInstance( ) ); title.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Composite viewerContainer = new Composite(container , SWT.NONE); layout = new GridLayout(); layout.marginWidth = 10; layout.marginHeight = 3; viewerContainer.setLayout( layout ); viewerContainer.setLayoutData( new GridData( GridData.FILL_BOTH ) ); viewer = new TreeViewer( viewerContainer, SWT.FULL_SELECTION ); tableTree = viewer.getTree( ); tableTree.setLayoutData( new GridData( GridData.FILL_BOTH ) ); tableTree.setHeaderVisible( true ); tableTree.setLinesVisible( true ); // configure the columns addColumns( ); contentProvider = new ReportPropertySheetContentProvider( ); viewer.setContentProvider( contentProvider ); labelProvider = new ReportPropertySheetLabelProvider( ); viewer.setLabelProvider( labelProvider ); viewer.setColumnProperties( new String[]{ COLUMN_TITLE_PROPERTY, COLUMN_TITLE_VALUE } ); AlphabeticallyViewSorter sorter = new AlphabeticallyViewSorter( ); sorter.setAscending( true ); viewer.setSorter( sorter ); hookControl( ); // create a new table tree editor tableTreeEditor = new TreeEditor( tableTree ); // create the editor listener createEditorListener( ); handleGlobalAction( ); // suport the mediator SessionHandleAdapter.getInstance( ).getMediator( ).addColleague( this ); expandToDefaultLevel( ); FormWidgetFactory.getInstance( ).paintFormStyle( parent ); FormWidgetFactory.getInstance( ).adapt( parent ); IWorkbenchPage page = getSite( ).getPage( ); handleSelectionChanged( page.getSelection( )); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4a02c746af9cd43e31a2b882cd63c484ba236fc1/ReportPropertySheetPage.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/views/property/ReportPropertySheetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 3782, 273, 394, 14728, 12, 2938, 269, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 3782, 273, 394, 14728, 12, 2938, 269, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621...
private void handleMousePressed(Point p)
private void handleMousePressed(Point p, int clickCount)
private void handleMousePressed(Point p) { Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) (i.next()); s = roi.getShape(); if (s.contains(p)) { currentROI = roi; currentShape = s; Rectangle r = s.getBounds(); xControl = r.x; yControl = r.y; view.setIndexSelected(roi.getIndex()); } } }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvasMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvasMng.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 9186, 24624, 12, 2148, 293, 16, 509, 4682, 1380, 13, 565, 288, 3639, 4498, 277, 273, 666, 1457, 45, 18, 9838, 5621, 3639, 6525, 45, 8500, 25017, 31, 3639, 12383, 272, 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, 1640, 9186, 24624, 12, 2148, 293, 16, 509, 4682, 1380, 13, 565, 288, 3639, 4498, 277, 273, 666, 1457, 45, 18, 9838, 5621, 3639, 6525, 45, 8500, 25017, 31, 3639, 12383, 272, 3...
public void test2() throws Exception { List<FruitShell> fsList = doFirstPart("fruit2.xml"); assertNotNull(fsList); assertEquals(2, fsList.size()); FruitShell fs0 = fsList.get(0); assertNotNull(fs0); assertEquals("fs0", fs0.getName()); Fruit fruit0 = fs0.fruitFactory.buildFruit(); assertTrue(fruit0 instanceof Fruit); assertEquals("blue", fruit0.getName()); FruitShell fs1 = fsList.get(1); assertNotNull(fs1); assertEquals("fs1", fs1.getName()); Fruit fruit1 = fs1.fruitFactory.buildFruit(); assertTrue(fruit1 instanceof WeightytFruit); assertEquals("orange", fruit1.getName()); assertEquals(1.2, ((WeightytFruit) fruit1).getWeight()); }
47463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47463/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/buggy/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 22, 1435, 1216, 1185, 288, 565, 987, 32, 7167, 14945, 13220, 34, 2662, 682, 273, 741, 3759, 1988, 2932, 4840, 14945, 22, 18, 2902, 8863, 565, 25395, 12, 2556, 682, 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, 282, 1071, 918, 1842, 22, 1435, 1216, 1185, 288, 565, 987, 32, 7167, 14945, 13220, 34, 2662, 682, 273, 741, 3759, 1988, 2932, 4840, 14945, 22, 18, 2902, 8863, 565, 25395, 12, 2556, 682, 1769, ...
void stopPropagation(boolean state) { this.stopPropagation = state;
public void stopPropagation() { this.stopPropagation = true;
void stopPropagation(boolean state) { this.stopPropagation = state; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/627e6cd1c12277b018c3ff91e86c873731a52b59/AbstractEvent.java/buggy/sources/org/apache/batik/dom/events/AbstractEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20459, 12, 6494, 919, 13, 288, 202, 2211, 18, 5681, 14225, 273, 919, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 918, 20459, 12, 6494, 919, 13, 288, 202, 2211, 18, 5681, 14225, 273, 919, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
}
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultProps.containsKey("width") || !defaultProps.containsKey("height")) // set the initialize size this.setSize(screen.getPreferredSize()); else { this.setSize(Integer.parseInt((String)defaultProps.get("width")), Integer.parseInt((String)defaultProps.get("height")) ); } addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { /** @todo check for popup trigger on linux * */// if (e.isPopupTrigger()) { // using SwingUtilities because popuptrigger does not work on linux if (SwingUtilities.isRightMouseButton(e)) { doPopup(e); } } public void mouseReleased(MouseEvent e) {// System.out.println("Mouse Released"); } public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } } }); addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent e) { processVTKeyTyped(e); } public void keyPressed(KeyEvent ke) { processVTKeyPressed(ke); } public void keyReleased(KeyEvent e) { processVTKeyReleased(e); } }); keyMap = new KeyMapper(); keyMap.init(); /** * this is taken out right now look at the method for description */// initKeyBindings(); macros = new Macronizer(); macros.init(); keyPad.addActionListener(this); if (getStringProperty("keypad").equals("Yes")) keyPad.setVisible(true); else keyPad.setVisible(false); // Warning do not change the the order of the adding of keypad and // the screen. This will cause resizing problems because it will // resize the screen first and during the resize we need to calculate // the bouding area based on the height of the keyPad. // See resizeMe() and getDrawingBounds() this.add(keyPad,BorderLayout.SOUTH); this.add(s,BorderLayout.CENTER); setRubberBand(new TNRubberBand(this)); this.requestFocus(); jumpEvent = new SessionJumpEvent(this); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/650986e6eb0fece971661bdcea0d1a0d40676ae7/Gui5250.java/clean/src/org/tn5250j/Gui5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20515, 2570, 1435, 1216, 1185, 225, 288, 1377, 333, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 759, 1377, 333, 18, 542, 3817, 14886, 12, 5743, 1769, 1377, 444, 5265, 17947, 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, 3238, 918, 20515, 2570, 1435, 1216, 1185, 225, 288, 1377, 333, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 759, 1377, 333, 18, 542, 3817, 14886, 12, 5743, 1769, 1377, 444, 5265, 17947, 12, ...
return isResolvedStatus(getAttribute(ATTR_STATUS).getValue());
Attribute status = getAttribute(ATTR_STATUS); return status != null && isResolvedStatus(getAttribute(ATTR_STATUS).getValue());
public boolean isResolved() { return isResolvedStatus(getAttribute(ATTR_STATUS).getValue()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/062e1efc08ff9110c1a8eb70d27bdf23193b179f/BugReport.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12793, 1435, 288, 202, 202, 2463, 353, 12793, 1482, 12, 588, 1499, 12, 12043, 67, 8608, 2934, 24805, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12793, 1435, 288, 202, 202, 2463, 353, 12793, 1482, 12, 588, 1499, 12, 12043, 67, 8608, 2934, 24805, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100...
PropertySheetFactory.instance().makeSheet(elt, start_color);
PropertySheetFactory.instance().makeSheet(getContext(), elt, start_color);
public void valueChanged(TreeSelectionEvent evt) { // Get the selected node. DefaultMutableTreeNode node = (DefaultMutableTreeNode)mElementTree.getLastSelectedPathComponent(); if(null == node) { emptyPropertySheet(); return; } // Get the value of the UserObject attached to the node. Object value = node.getUserObject(); if (value == null || !(value instanceof ConfigElement)) { System.out.println("Selecting a node that is not a ConfigElement"); emptyPropertySheet(); // Empty the help information getHelpPane().setText(""); return; } Color start_color = UIManager.getColor("Tree.selectionBackground"); if ( null == start_color ) { start_color = new Color(160, 160, 180); System.out.println("Could not get the color " + "'Tree.selectionBackground' from the " + "UIManager."); } // Create a new PropertySheet for the given ConfigElement. ConfigElement elt = (ConfigElement)value; if (null != mElementPropSheet) { mElementPropSheet.finalize(); } ConfigDefinition def = elt.getDefinition(); mElementTypeLabel.setText(def.getName() + " <" + def.getToken() + ">"); mElementPropSheet = PropertySheetFactory.instance().makeSheet(elt, start_color); mElementPropSheetScrollPane.getViewport().removeAll(); mElementPropSheetScrollPane.getViewport().add(mElementPropSheet, null); // Display the help information about the selected configuration element. getHelpPane().setText(elt.getDefinition().getHelp()); }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/1927f1b650bf98254028c2adf8417da657bdfa00/ConfigContextEditor.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/ConfigContextEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 6324, 13, 5411, 288, 9079, 368, 968, 326, 3170, 756, 18, 9079, 2989, 19536, 12513, 756, 273, 5375, 261, 1868, 19536, 12513, 13, 81, 1046, 2471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 6324, 13, 5411, 288, 9079, 368, 968, 326, 3170, 756, 18, 9079, 2989, 19536, 12513, 756, 273, 5375, 261, 1868, 19536, 12513, 13, 81, 1046, 2471...
init(rawSql_,
init(rawSql_,
public Procedure( String rawSql_, String sqlProcedureName_, ParameterListItem[] parameterList_, Tds tds_) throws SQLException { init(rawSql_, sqlProcedureName_, parameterList_, tds_); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/94e0726b04f349bc8a5ee29394cce902177ab087/Procedure.java/clean/src/main/net/sourceforge/jtds/jdbc/Procedure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 26639, 12, 1377, 514, 2868, 1831, 5101, 67, 16, 1377, 514, 2868, 1847, 17213, 461, 67, 16, 1377, 5498, 13575, 8526, 1569, 682, 67, 16, 1377, 399, 2377, 1171, 268, 2377, 67, 13, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 26639, 12, 1377, 514, 2868, 1831, 5101, 67, 16, 1377, 514, 2868, 1847, 17213, 461, 67, 16, 1377, 5498, 13575, 8526, 1569, 682, 67, 16, 1377, 399, 2377, 1171, 268, 2377, 67, 13, 13...
assertEquals( v.getName(), "x");
assertEquals( v.getName(), "x");
public void testMultipleDeclaratorsVariable() throws Exception { Iterator declarations = parse( "class A { }; A x, y, z;").getDeclarations(); IASTClassSpecifier classA = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)declarations.next()).getTypeSpecifier(); IASTVariable v = (IASTVariable)declarations.next(); assertEquals( v.getName(), "x"); assertEquals( ((IASTSimpleTypeSpecifier)v.getAbstractDeclaration().getTypeSpecifier()).getTypeSpecifier(), classA ); assertEquals( callback.getReferences().size(), 3 ); Iterator i = callback.getReferences().iterator(); while( i.hasNext() ) assertEquals( ((IASTReference)i.next()).getReferencedElement(), classA ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8438, 3456, 297, 3062, 3092, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 1106, 432, 288, 289, 31, 432, 619, 16, 677, 16, 998, 4868, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8438, 3456, 297, 3062, 3092, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 1106, 432, 288, 289, 31, 432, 619, 16, 677, 16, 998, 4868, 2934, ...
public static Long createLong(String val) { return Long.valueOf(val);
public static Long createLong(String str) { if (str == null) { return null; } return Long.valueOf(str);
public static Long createLong(String val) { return Long.valueOf(val); }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/af6aba957f4dc4d19d5f295172b4ddc941ca1681/NumberUtils.java/buggy/src/java/org/apache/commons/lang/math/NumberUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3407, 752, 3708, 12, 780, 1244, 13, 288, 3639, 327, 3407, 18, 1132, 951, 12, 1125, 1769, 565, 289, 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, 377, 1071, 760, 3407, 752, 3708, 12, 780, 1244, 13, 288, 3639, 327, 3407, 18, 1132, 951, 12, 1125, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( "local-repo".equals( repo.getKey() ) )
for ( Iterator repos = config.getRepositories().iterator(); repos.hasNext(); )
public void testLoadValidMavenProxyConfiguration() throws ValidationException, IOException { File confFile = new File( "src/test/conf/maven-proxy-complete.conf" ); config.loadMavenProxyConfiguration( confFile ); assertTrue( config.getRepositoryCachePath().endsWith( "target" ) ); assertEquals( "Count repositories", 4, config.getRepositories().size() ); for ( Iterator repos = config.getRepositories().iterator(); repos.hasNext(); ) { ProxyRepository repo = (ProxyRepository) repos.next(); if ( "local-repo".equals( repo.getKey() ) ) { assertEquals( "file:///./src/test/remote-repo1", repo.getUrl() ); } else if ( "www-ibiblio-org".equals( repo.getKey() ) ) { assertEquals( "http://www.ibiblio.org/maven2", repo.getUrl() ); } else if ( "dist-codehaus-org".equals( repo.getKey() ) ) { assertEquals( "http://dist.codehaus.org", repo.getUrl() ); } else if ( "private-example-com".equals( repo.getKey() ) ) { assertEquals( "http://private.example.com/internal", repo.getUrl() ); } } }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/20dc1f7654b459eb30e524fbfdc5cf2b0e1a1a29/ProxyConfigurationTest.java/buggy/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/ProxyConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2563, 1556, 49, 7638, 3886, 1750, 1435, 3639, 1216, 15614, 16, 1860, 565, 288, 3639, 1387, 2195, 812, 273, 394, 1387, 12, 315, 4816, 19, 3813, 19, 3923, 19, 81, 7638, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2563, 1556, 49, 7638, 3886, 1750, 1435, 3639, 1216, 15614, 16, 1860, 565, 288, 3639, 1387, 2195, 812, 273, 394, 1387, 12, 315, 4816, 19, 3813, 19, 3923, 19, 81, 7638, 1...
this.maxTempLength = maxTempLength;
this.maxTempLength = ctx.maxTempLength;
public SplitFetcher(Metadata metadata, long maxTempLength, ArchiveContext archiveContext, FetcherContext ctx) throws MetadataParseException { actx = archiveContext; fctx = ctx; overrideLength = metadata.dataLength; this.maxTempLength = maxTempLength; splitfileType = metadata.getSplitfileType(); splitfileDataBlocks = metadata.getSplitfileDataKeys(); splitfileCheckBlocks = metadata.getSplitfileCheckKeys(); splitUseLengths = metadata.splitUseLengths; if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT) { // Don't need to do much - just fetch everything and piece it together. blocksPerSegment = -1; checkBlocksPerSegment = -1; segmentCount = 1; } else if(splitfileType == Metadata.SPLITFILE_ONION_STANDARD) { blocksPerSegment = 128; checkBlocksPerSegment = 64; segmentCount = (splitfileDataBlocks.length / blocksPerSegment) + (splitfileDataBlocks.length % blocksPerSegment == 0 ? 0 : 1); // Onion, 128/192. // Will be segmented. } else throw new MetadataParseException("Unknown splitfile format: "+splitfileType); segments = new Segment[segmentCount]; // initially null on all entries if(segmentCount == 1) { segments[0] = new Segment(splitfileType, splitfileDataBlocks, splitfileCheckBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } else { int dataBlocksPtr = 0; int checkBlocksPtr = 0; for(int i=0;i<segments.length;i++) { // Create a segment. Give it its keys. int copyDataBlocks = Math.min(splitfileDataBlocks.length - dataBlocksPtr, blocksPerSegment); int copyCheckBlocks = Math.min(splitfileCheckBlocks.length - checkBlocksPtr, checkBlocksPerSegment); FreenetURI[] dataBlocks = new FreenetURI[copyDataBlocks]; FreenetURI[] checkBlocks = new FreenetURI[copyCheckBlocks]; if(copyDataBlocks > 0) System.arraycopy(splitfileDataBlocks, dataBlocksPtr, dataBlocks, 0, copyDataBlocks); if(copyCheckBlocks > 0) System.arraycopy(splitfileCheckBlocks, checkBlocksPtr, checkBlocks, 0, copyCheckBlocks); dataBlocksPtr += copyDataBlocks; checkBlocksPtr += copyCheckBlocks; segments[i] = new Segment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } } unstartedSegments = segments; unstartedSegmentsCount = segments.length; }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/6409afdcb2a1c16496544e23537bea624c517930/SplitFetcher.java/clean/src/freenet/client/SplitFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5385, 16855, 12, 2277, 1982, 16, 1525, 943, 7185, 1782, 16, 13124, 1042, 5052, 1042, 16, 8065, 264, 1042, 1103, 13, 1216, 6912, 13047, 288, 202, 202, 621, 92, 273, 5052, 1042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5385, 16855, 12, 2277, 1982, 16, 1525, 943, 7185, 1782, 16, 13124, 1042, 5052, 1042, 16, 8065, 264, 1042, 1103, 13, 1216, 6912, 13047, 288, 202, 202, 621, 92, 273, 5052, 1042, ...
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) {
public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclusive) {
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startOffset = lastPosition.getEndOffset(); } else { startLine = startPosition.getEndLine(); startOffset = startPosition.getEndOffset(); } return new SourcePosition(filename, startLine, endLine, startOffset, source.getOffset()); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b1293eda8454686e846e2a9837b348e2983bb423/SourcePositionFactory.java/clean/src/org/jruby/lexer/yacc/SourcePositionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 23549, 16, 1250, 13562, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 23549, 16, 1250, 13562, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 56...
if ((!needsDataCopy && !emittingPrimitiveArrayCritical) || (needsDataCopy && emittingPrimitiveArrayCritical)) { continue; }
protected void emitBodyVariablePostCallCleanup(PrintWriter writer) { // Release primitive arrays and temporary UTF8 strings if necessary for (int i = 0; i < binding.getNumArguments(); i++) { JavaType javaArgType = binding.getJavaArgumentType(i); if (javaArgType.isJNIEnv() || binding.isArgumentThisPointer(i)) { continue; } if (javaArgType.isArray()) { String convName = pointerConversionArgumentName(i); // Release array if (EMIT_NULL_CHECKS) { writer.print(" if ("); writer.print(binding.getArgumentName(i)); writer.println(" != NULL) {"); } // clean up the case where the array elements are of a type that needed // a data copy operation to convert from the java memory model to the // C memory model (e.g., int[][], String[], etc) // // FIXME: should factor out this whole block of code into a separate // method for clarity and maintenance purposes Class subArrayElementJavaType = javaArgType.getJavaClass().getComponentType(); boolean needsDataCopy = subArrayElementJavaType.isArray() || subArrayElementJavaType == java.lang.String.class; if (needsDataCopy) { Type cArgType = binding.getCArgumentType(i); String cArgTypeName = cArgType.getName(); if (cArgType.toString().indexOf("const") == -1) { // FIXME: handle any cleanup from treatment of non-const args, // assuming they were treated differently in // emitBodyVariablePreCallSetup() (see the similar section in that // method for details). throw new RuntimeException( "Cannot clean up copied data for ptr-to-ptr arg type \"" + cArgType + "\": support for cleaning up non-const ptr-to-ptr types not implemented."); } writer.println(" /* Clean up " + convName + "_copy */"); String arrayLenName = "_arrayLen" + convName; // free each element PointerType cArgPtrType = cArgType.asPointer(); if (cArgPtrType == null) { throw new RuntimeException( "Could not copy data for type \"" + cArgType + "\"; currently only pointer types supported."); } PointerType cArgElementType = cArgPtrType.getTargetType().asPointer(); // process each element in the array writer.println(" for (_copyIndex = 0; _copyIndex < " + arrayLenName +"; ++_copyIndex) {"); // get each array element writer.println(" /* free each element of " +convName +"_copy */"); String subArrayElementJNITypeString = jniType(subArrayElementJavaType); writer.print(" _tmpObj = ("); writer.print(subArrayElementJNITypeString); writer.print(") (*env)->GetObjectArrayElement(env, "); writer.print(binding.getArgumentName(i)); writer.println(", _copyIndex);"); if (subArrayElementJNITypeString == "jstring") { writer.print(" (*env)->ReleaseStringUTFChars(env, "); writer.print("(jstring) _tmpObj"); writer.print(", "); writer.print(convName+"_copy[_copyIndex]"); writer.println(");"); } else { // FIXME: free up stuff here if (true) throw new RuntimeException( "Cannot yet handle type \"" + cArgType.getName() + "\"; need to add support for cleaning up copied ptr-to-ptr-to-primitiveType subarrays"); } writer.println(" }"); // free the main array writer.print(" free("); writer.print(convName+"_copy"); writer.println(");"); writer.println(); } // end of cleaning up copied data writer.print(" (*env)->ReleasePrimitiveArrayCritical(env, "); writer.print(binding.getArgumentName(i)); writer.print(", "); writer.print(convName); writer.println(", JNI_ABORT);"); if (EMIT_NULL_CHECKS) { writer.println(" }"); } } else if (javaArgType.isString()) { if (EMIT_NULL_CHECKS) { writer.print(" if ("); writer.print(binding.getArgumentName(i)); writer.println(" != NULL) {"); } writer.print(" (*env)->ReleaseStringUTFChars(env, "); writer.print(binding.getArgumentName(i)); writer.print(", _UTF8"); writer.print(binding.getArgumentName(i)); writer.println(");"); if (EMIT_NULL_CHECKS) { writer.println(" }"); } } else if (javaArgType.isArrayOfCompoundTypeWrappers()) { // FIXME throw new RuntimeException("Outgoing arrays of StructAccessors not yet implemented"); } } }
47702 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47702/9512c9fa62ece3960472b6ab2cd6ce5244da8501/CMethodBindingEmitter.java/buggy/src/net/java/games/gluegen/CMethodBindingEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 14015, 5, 20600, 751, 2951, 597, 401, 18356, 1787, 9840, 1076, 30286, 13, 747, 261, 20600, 751, 2951, 225, 597, 3626, 1787, 9840, 1076, 30286, 3719, 288, 1324, 31, 289, 225, 309, 14015, 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, 309, 14015, 5, 20600, 751, 2951, 597, 401, 18356, 1787, 9840, 1076, 30286, 13, 747, 261, 20600, 751, 2951, 225, 597, 3626, 1787, 9840, 1076, 30286, 3719, 288, 1324, 31, 289, 225, 309, 14015, 5...
monitorWrap.beginTask("", finalEditors.size()); Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitorWrap, 1)); if (monitorWrap.isCanceled()) break; }
String editorID = ref.getId(); EditorDescriptor desc = null; if (editorID != null) { IEditorRegistry reg = WorkbenchPlugin.getDefault().getEditorRegistry(); desc = (EditorDescriptor) reg.findEditor(editorID); } if (desc == null) { WorkbenchPlugin.log("Unable to restore editor - no editor descriptor for id: " + editorID); result[0] = unableToCreateEditor(ref, null); return; } try { String workbookID = ref.getMemento().getString(IWorkbenchConstants.TAG_WORKBOOK); editorPresentation.setActiveEditorWorkbookFromID(workbookID); openInternalEditor(ref, desc, editorInput, false); ref.getPane().createChildControl(); } catch (PartInitException e) { WorkbenchPlugin.log("Exception creating editor: " + e.getMessage()); result[0] = unableToCreateEditor(ref, e); } }
public void run(IProgressMonitor monitor) {// try { // @issue reference to workspace to run runnable IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor);// ResourcesPlugin.getWorkspace().run(workspaceOp, monitorWrap);//--------- This code was in the IWorkspaceRunnable above monitorWrap.beginTask("", finalEditors.size()); //$NON-NLS-1$ Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitorWrap, 1)); if (monitorWrap.isCanceled()) break; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/17aa81cc73d60228cd30d63ff1128126ea3c026a/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 6862, 202, 45, 5491, 7187, 6438, 2964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 6862, 202, 45, 5491, 7187, 6438, 2964, ...
float start = cb.getInputStart(); float end = cb.getInputEnd(); if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart()));
cb.setInputStart(new Float(sf.getInputStart()));
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); StatsFactory sf = new StatsFactory(); int w = 0; List<Channel> channels = pixels.getChannels(); for (Channel channel : channels) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Without it, we have to assume that the order in // which the channel bindings was created matches up with the order // of the channels linked to the pixels set. ChannelBinding cb = cbs.get(w); double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax(); //Test sf.computeLocationStats(pixels, buf, planeDef, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb.setNoiseReduction(Boolean.TRUE); float start = cb.getInputStart(); float end = cb.getInputEnd(); //TODO: find a better way. if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart())); cb.setInputEnd(new Float(sf.getInputEnd())); w++; } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3671, 2735, 4195, 12, 18079, 8948, 16, 4766, 2398, 987, 32, 2909, 5250, 34, 276, 2038, 16, 4766, 2398, 3008, 8806, 3262, 11017, 3262, 16, 26070, 1892, 1681, 13, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3671, 2735, 4195, 12, 18079, 8948, 16, 4766, 2398, 987, 32, 2909, 5250, 34, 276, 2038, 16, 4766, 2398, 3008, 8806, 3262, 11017, 3262, 16, 26070, 1892, 1681, 13, 565, 288, ...
protected static void appendMethod_getJdoComplex(DeploymentInfo di, StringBuffer source){ newLine(source); newLine(source);tab(source,1); // public Complex getJdoComplex(Object primaryKey){ source.append("public Complex getJdoComplex(Object primaryKey){"); if(di.getPrimaryKeyField()==null){// key is complex // CustomerPK key = (CustomerPK)primaryKey; newLine(source); tab(source,2); source.append(di.getPrimaryKeyClass().getName()); source.append(" key = ("); source.append(di.getPrimaryKeyClass().getName()); source.append(")primaryKey;"); // Object args = new Object[2]; newLine(source); tab(source, 2); // only fields that are shared between the key and bean are considered primary key fields java.lang.reflect.Field [] keyFields = di.getPrimaryKeyClass().getFields(); java.lang.reflect.Field [] beanFields = di.getBeanClass().getFields(); java.util.Vector commonFields = new java.util.Vector(); for(int i = 0; i < keyFields.length; i++){ java.lang.reflect.Field keyField = keyFields[i]; for(int x = 0; x < beanFields.length; x++){ java.lang.reflect.Field beanField = beanFields[x]; if(keyField.getClass()== beanField.getClass() && keyField.getName().equals(beanField.getName())){ commonFields.add(keyField); } } } source.append("Object [] args = new Object["); source.append(commonFields.size()); source.append("];"); // args[1] = new java.util.Integer(key.id); // args[2] = key.date; for(int i = 0; i < commonFields.size(); i++){ newLine(source); tab(source,2); source.append("args["); source.append(i); source.append("] = "); boolean wrappered = applyWrapper(source, (java.lang.reflect.Field)commonFields.elementAt(i)); source.append("key."+((java.lang.reflect.Field)commonFields.elementAt(i)).getName()); if(wrappered)source.append(")"); source.append(';'); } // return new Complex(args.length, args); newLine(source); tab(source, 2); source.append("return new Complex(args.length, args);"); }else{ // make complex for simply key newLine(source); tab(source, 2); source.append("return new Complex(primaryKey);"); } // } newLine(source);tab(source,1); source.append('}'); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/3672264daeda35528fc1545391d5f3b38764b0ff/KeyGeneratorFactory.java/buggy/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/KeyGeneratorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 714, 1305, 67, 588, 46, 2896, 12795, 12, 6733, 966, 4314, 16, 6674, 1084, 15329, 3639, 8093, 12, 3168, 1769, 3639, 8093, 12, 3168, 1769, 7032, 12, 3168, 16, 21, 1769, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 714, 1305, 67, 588, 46, 2896, 12795, 12, 6733, 966, 4314, 16, 6674, 1084, 15329, 3639, 8093, 12, 3168, 1769, 3639, 8093, 12, 3168, 1769, 7032, 12, 3168, 16, 21, 1769, 77...
public void widgetSelected(SelectionEvent e) { boolean isTcp = fTCPButton.getSelection(); fHostPort.setEnabled(isTcp); fHostText.setEnabled(isTcp); updateLaunchConfigurationDialog(); }
public void widgetSelected( SelectionEvent evt ) { handleGDBButtonSelected(); updateLaunchConfigurationDialog(); }
public void widgetSelected(SelectionEvent e) { boolean isTcp = fTCPButton.getSelection(); fHostPort.setEnabled(isTcp); fHostText.setEnabled(isTcp); updateLaunchConfigurationDialog(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8a0a4cb7100a63323faab9f3204cd0747864dfa6/GDBServerDebuggerPage.java/buggy/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 6494, 353, 27591, 273, 284, 13891, 3616, 18, 588, 6233, 5621, 9506, 202, 74, 16688, 18, 542, 1526, 12, 291, 27591, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 6494, 353, 27591, 273, 284, 13891, 3616, 18, 588, 6233, 5621, 9506, 202, 74, 16688, 18, 542, 1526, 12, 291, 27591, 1...
System.setProperty("org.mule.disable.server.connections", "true");
System.setProperty(MuleProperties.DISABLE_SERVER_CONNECTIONS, "true");
public void setUp() throws Exception { System.setProperty("org.mule.disable.server.connections", "false"); if(MuleManager.isInstanciated()) MuleManager.getInstance().dispose(); MuleXmlConfigurationBuilder builder = new MuleXmlConfigurationBuilder(); builder.configure("test-client-mule-config-remote-http.xml"); System.setProperty("org.mule.disable.server.connections", "true"); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/cee4ebadb530002b617eed215bdd6b399f29760e/MuleClientRemotingHttpTestCase.java/clean/mule-extras/client/src/test/java/org/mule/extras/client/MuleClientRemotingHttpTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 542, 1396, 2932, 3341, 18, 81, 725, 18, 8394, 18, 3567, 18, 13313, 3113, 315, 5743, 8863, 3639, 309, 12, 49, 725, 1318, 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, 1071, 918, 24292, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 542, 1396, 2932, 3341, 18, 81, 725, 18, 8394, 18, 3567, 18, 13313, 3113, 315, 5743, 8863, 3639, 309, 12, 49, 725, 1318, 18,...
out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast);
out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast);
private void sendnetscapeReadinessParameters(PlanServiceContext psc, PrintStream out) { Iterator itSet, itDOs; int ii, jj, kk; HashMap sendData = getAssetAV3s (psc); if (sendData == null) { sendData = getRollUpData(psc); if (sendData == null) { out.println (ReadinessAssessorPspUtil.NUMMAINTAINED + "=0"); return; } } Set maintainedItems = sendData.keySet(); out.println (ReadinessAssessorPspUtil.NUMMAINTAINED + "=" + maintainedItems.size()); for (itSet = maintainedItems.iterator(), ii=1; itSet.hasNext(); ii ++ ) {// MaintainedItem maint = (MaintainedItem) itSet.next(); String maint = (String) itSet.next();// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getItemIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getTypeIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getNomenclature() + "'>"); out.println (ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + "=" + maint); HashMap itemBuckets = (HashMap) sendData.get(maint); Set directObjects = itemBuckets.keySet(); out.println (ReadinessAssessorPspUtil.NUMDIRECTOBJS + ii + "=" + directObjects.size()); for (itDOs = directObjects.iterator(), jj=1; itDOs.hasNext(); jj ++) {// Asset ast = (Asset) itDOs.next(); String ast = (String) itDOs.next(); out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast); ArrayList arList = (ArrayList) itemBuckets.get(ast); out.println (ReadinessAssessorPspUtil.NUMASPECTITEMS + ii + "_" + jj + "=" + arList.size()); for (kk = 0; kk < arList.size(); kk ++) { AspectValue[] avs = (AspectValue[]) arList.get(kk); // right now we just pass the readiness value and the end time out.println (ReadinessAssessorPspUtil.READINESSPARAM + ii + "_" + jj + "_" + (kk + 1) + "=" + avs[2].getValue()); out.println (ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + "=" + toYYYYMMDD (avs[1].longValue()));// out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + " VALUE='" + (avs[1].longValue() / 1000) + "'>" ); } } } // Create the parameter for the number of book titles in the inventory// out.println("<PARAM NAME=columns VALUE='" + overviewList.size() + "'>"); }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/66cbbfcc24b4b0ed473ee80cfd37d73e7e78f870/PSP_ReadinessAssessor.java/clean/glm/src/org/cougaar/domain/mlm/ui/readiness/PSP_ReadinessAssessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1366, 2758, 12476, 1994, 6336, 2402, 12, 5365, 1179, 1042, 293, 1017, 16, 21677, 596, 13, 202, 95, 565, 4498, 518, 694, 16, 518, 3191, 87, 31, 565, 509, 6072, 16, 10684,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 2758, 12476, 1994, 6336, 2402, 12, 5365, 1179, 1042, 293, 1017, 16, 21677, 596, 13, 202, 95, 565, 4498, 518, 694, 16, 518, 3191, 87, 31, 565, 509, 6072, 16, 10684,...
public void run() {
public void run(Event event) {
public void run() { if (activeEditor != null) { activeEditor.performCut(); return; } if (cutAction != null) { cutAction.run(); return; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/46b0e2037bdbaada2694fe129d030344fb248c8d/CellEditorActionHandler.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/CellEditorActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 430, 261, 3535, 6946, 480, 446, 13, 288, 9506, 202, 3535, 6946, 18, 16092, 15812, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 430, 261, 3535, 6946, 480, 446, 13, 288, 9506, 202, 3535, 6946, 18, 16092, 15812, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 2...
return this;
removeToken(destCurs); XmlCursor srcCurs = newValue.newCursor(); if (srcCurs.currentTokenType().isStartdoc()) { srcCurs.toFirstContentToken(); } moveSrcToDest(srcCurs, destCurs, false); if (!destCurs.toPrevSibling()) { destCurs.toPrevToken(); } destCurs.setBookmark(new XScriptAnnotation(destCurs)); destCurs.toEndToken(); destCurs.toNextToken(); srcCurs.dispose();
XML replace(long index, Object xml) { XMLList xlChildToReplace = (XMLList)child(index); if (xlChildToReplace.length() > 0) { // One exists an that index XML childToReplace = (XML)xlChildToReplace.item(0); insertChildAfter(childToReplace, xml); removeChild(index); } return this; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/00faaf6ab861a6de03237a069177c81877d5f73d/XML.java/buggy/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3167, 1453, 12, 5748, 770, 16, 1033, 2025, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18402, 1763, 774, 5729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3167, 1453, 12, 5748, 770, 16, 1033, 2025, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18402, 1763, 774, 5729, ...
log.debug("Value for JXPathFilter is not set : true by default");
if (logger.isDebugEnabled()) { logger.debug("Value for JXPathFilter is not set : true by default"); }
public boolean accept(Object obj) { if (obj == null) return false; if (expression == null) { log.warn("Expression for JXPathFilter is not set"); return false; } if (value == null) { log.debug("Value for JXPathFilter is not set : true by default"); value = Boolean.TRUE.toString(); } boolean res = false; try { Object o = null; if(obj instanceof String) { Document doc=DocumentHelper.parseText((String)obj); o =doc.valueOf(expression); } else { JXPathContext context = JXPathContext.newContext(obj); o =context.getValue(expression); } log.debug("JXPathFilter Expression result='" + o + "' - Expected value='" + value + "'"); if(o!=null) res = value.equals(o.toString()); else { res=false; log.warn("JXPathFilter Expression result is null (" + expression + ")"); } } catch (Exception e) { log.warn("JXPathFilter cannot evaluate expression (" + expression + ") :" + e.getMessage(), e); } log.debug("JXPathFilter accept object : " + res); return res; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/17eba43612aad5f5e74f27cd5b4bc714405b28ee/JXPathFilter.java/buggy/mule/src/java/org/mule/routing/filters/xml/JXPathFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2791, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 8692, 422, 446, 13, 288, 1082, 202, 1330, 18, 8935,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2791, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 8692, 422, 446, 13, 288, 1082, 202, 1330, 18, 8935,...
public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule549); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule555); following.push(FOLLOW_word_in_rule559); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule561); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:17: ( rule_attributes[rule] )? int alt16=2; switch ( input.LA(1) ) { case 30: case 32: alt16=1; break; case EOL: case 15: case 22: case 33: case 34: case 35: case 36: case 37: case 38: alt16=1; break; case 29: alt16=1; break; case 31: alt16=1; break; case 27: alt16=1; break; default: NoViableAltException nvae = new NoViableAltException("350:17: ( rule_attributes[rule] )?", 16, 0, input); throw nvae; } switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule572); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule582); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:17: ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==EOL||LA23_0==15||LA23_0==29||LA23_0==31 ) { alt23=1; } else if ( LA23_0==27 ) { alt23=1; } else { NoViableAltException nvae = new NoViableAltException("353:17: ( (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )? )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt19=2; int LA19_0 = input.LA(1); if ( LA19_0==29 ) { alt19=1; } else if ( LA19_0==EOL||LA19_0==15||LA19_0==27||LA19_0==31 ) { alt19=2; } else { NoViableAltException nvae = new NoViableAltException("353:18: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,29,FOLLOW_29_in_rule591); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ( ':' )? int alt17=2; int LA17_0 = input.LA(1); if ( LA17_0==30 ) { int LA17_1 = input.LA(2); if ( !( expander != null ) ) { alt17=1; } else if ( expander != null ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 1, input); throw nvae; } } else if ( (LA17_0>=EOL && LA17_0<=29)||(LA17_0>=31 && LA17_0<=56) ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ':' { match(input,30,FOLLOW_30_in_rule593); } break; } following.push(FOLLOW_opt_eol_in_rule596); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt18=2; switch ( input.LA(1) ) { case 21: int LA18_1 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 1, input); throw nvae; } break; case EOL: int LA18_2 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 2, input); throw nvae; } break; case 15: int LA18_3 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 3, input); throw nvae; } break; case 31: int LA18_4 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 4, input); throw nvae; } break; case 27: int LA18_5 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 5, input); throw nvae; } break; case 53: int LA18_6 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 6, input); throw nvae; } break; case 54: int LA18_7 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 7, input); throw nvae; } break; case 55: int LA18_8 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 8, input); throw nvae; } break; case ID: int LA18_9 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 9, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt18=1; break; default: NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:359:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule614); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:360:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule623); normal_lhs_block(lhs); following.pop(); } break; } } break; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:17: ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==EOL||LA22_0==15||LA22_0==31 ) { alt22=1; } else if ( LA22_0==27 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("364:17: ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:19: opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* { following.push(FOLLOW_opt_eol_in_rule646); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,31,FOLLOW_31_in_rule650); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==30 ) { alt20=1; } else if ( (LA20_0>=EOL && LA20_0<=29)||(LA20_0>=31 && LA20_0<=56) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("364:38: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ':' { match(input,30,FOLLOW_30_in_rule652); } break; } following.push(FOLLOW_opt_eol_in_rule656); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:17: ( options {greedy=false; } : any= . )* loop21: do { int alt21=2; int LA21_0 = input.LA(1); if ( LA21_0==27 ) { alt21=2; } else if ( (LA21_0>=EOL && LA21_0<=26)||(LA21_0>=28 && LA21_0<=56) ) { alt21=1; } switch (alt21) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop21; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence, loc.getLine() ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } } break; } } break; } match(input,27,FOLLOW_27_in_rule695); following.push(FOLLOW_opt_eol_in_rule697); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 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, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
" 7 getstatic java/lang/System.out Ljava/io/PrintStream; [21]\n" +
" 7 getstatic java.lang.System.out : java.io.PrintStream [21]\n" +
public void test023() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " int i = 6;\n" + " if (i\n" + " > 0) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; String expectedOutput = " // Method descriptor #15 ([Ljava/lang/String;)V\n" + " // Stack: 2, Locals: 2\n" + " public static void main(String[] args);\n" + " 0 bipush 6\n" + " 2 istore_1 [i]\n" + " 3 iload_1 [i]\n" + " 4 ifle 14\n" + " 7 getstatic java/lang/System.out Ljava/io/PrintStream; [21]\n" + " 10 iload_1 [i]\n" + " 11 invokevirtual java/io/PrintStream.println(I)V [27]\n" + " 14 return\n" + " Line numbers:\n" + " [pc: 0, line: 3]\n" + " [pc: 3, line: 4]\n" + " [pc: 7, line: 6]\n" + " [pc: 14, line: 8]\n" + " Local variable table:\n" + " [pc: 0, pc: 15] local: args index: 0 type: [Ljava/lang/String;\n" + " [pc: 3, pc: 15] local: i index: 1 type: I\n"; checkClassFile("A", source, expectedOutput); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e9ca95978aca2a442bfecfb8ac281f372092486a/ClassFileReaderTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3103, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3103, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1...
if (jj_3R_15()) jj_scanpos = xsp;
if (jj_3R_17()) jj_scanpos = xsp;
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_16()) jj_scanpos = xsp; else 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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, 67, 26, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 26, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684, ...
ExpiryStrategy expiryStrategy = new ExpiryStrategy(timeOut, precision);
ExpiryStrategy expiryStrategy = new ExpiryStrategy(TIME_OUT, PRECISION);
public final void init(Properties properties) throws IllegalStateException, Throwable { // Check and set state synchronized (_stateLock) { if (_state != UNINITIALIZED) { throw new IllegalStateException("This API is not uninitialized anymore."); } _state = INITIALIZING; } // Store the settings if (properties == null) { _initSettings = new Properties(); } else { _initSettings = (Properties) properties.clone(); } _initSettingsReader = new PropertiesPropertyReader(_initSettings); // TODO: Check if this API is session-based at all // XXX: Allow configuration of session ID type ? _sessionIDType = new BasicSessionID(this); _sessionIDGenerator = _sessionIDType.getGenerator(); // TODO: Configure time-out and precision using init settings // XXX: Configure time-out and precision at runtime ? final long timeOut = 30L * 1000L; // 30 seconds final long precision = 2L * 1000L; // 2 seconds ExpiryStrategy expiryStrategy = new ExpiryStrategy(timeOut, precision); // TODO: Configure initial queue size and max queue wait time using init // settings final int initialQueueSize = 89; final long maxQueueWaitTime = 15000L; // 15 seconds _sessionsByID = new ExpiryFolder(expiryStrategy, initialQueueSize, maxQueueWaitTime); // Let the subclass perform initialization boolean succeeded = false; try { initImpl(properties); succeeded = true; // Set the state } finally { synchronized (_stateLock) { if (!succeeded) { _state = UNINITIALIZED; } else { _state = INITIALIZED; } } } // XXX: Initialize all instances here somewhere ? }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/b5b8691691060376957e26909fc0de88b5a802fb/API.java/buggy/src/java-server-framework/org/xins/server/API.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1208, 12, 2297, 1790, 13, 282, 1216, 5477, 16, 4206, 288, 1377, 368, 2073, 471, 444, 919, 1377, 3852, 261, 67, 2019, 2531, 13, 288, 540, 309, 261, 67, 2019, 480, 5019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1208, 12, 2297, 1790, 13, 282, 1216, 5477, 16, 4206, 288, 1377, 368, 2073, 471, 444, 919, 1377, 3852, 261, 67, 2019, 2531, 13, 288, 540, 309, 261, 67, 2019, 480, 5019, ...
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1681); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:17: (fb= ID opt_eol ':' opt_eol )? int alt49=2; alt49 = dfa49.predict(input); switch (alt49) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1689); following.push(FOLLOW_opt_eol_in_constraint1691); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1693); following.push(FOLLOW_opt_eol_in_constraint1695); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1705); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1715); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt51=2; int LA51_0 = input.LA(1); if ( (LA51_0>=40 && LA51_0<=47) ) { alt51=1; } else if ( LA51_0==EOL||LA51_0==15||(LA51_0>=22 && LA51_0<=23) ) { alt51=2; } else { NoViableAltException nvae = new NoViableAltException("692:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1723); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1795); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt50=4; switch ( input.LA(1) ) { case ID: int LA50_1 = input.LA(2); if ( LA50_1==49 ) { alt50=2; } else if ( LA50_1==EOL||LA50_1==15||(LA50_1>=22 && LA50_1<=23) ) { alt50=1; } else { NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 48: alt50=3; break; case 21: alt50=4; break; default: NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1813); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:709:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1838); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1870); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:722:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1890); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1923); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 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, 377, 1071, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31,...
new Integer(numW), new Integer(numT), omePixel, new Boolean(!little), dimOrder, null);
new Integer(numW), new Integer(numT), new Integer(pixelType), new Boolean(!little), dimOrder, null);
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); // read in the image header data header = new byte[1024]; in.read(header); int endian = DataTools.bytesToShort(header, 96, 2, true); little = endian == LITTLE_ENDIAN; numImages = DataTools.bytesToInt(header, 8, 4, little); int extSize = DataTools.bytesToInt(header, 92, 4, little); extHeader = new byte[extSize]; in.read(extHeader); width = DataTools.bytesToInt(header, 0, 4, little); height = DataTools.bytesToInt(header, 4, 4, little); Integer xSize = new Integer(width); Integer ySize = new Integer(height); metadata.put("ImageWidth", xSize); metadata.put("ImageHeight", ySize); metadata.put("NumberOfImages", new Integer(DataTools.bytesToInt(header, 8, 4, little))); int pixelType = DataTools.bytesToInt(header, 12, 4, little); String pixel; String omePixel; switch (pixelType) { case 0: pixel = "8 bit unsigned integer"; omePixel = "Uint8"; bytesPerPixel = 1; break; case 1: pixel = "16 bit signed integer"; omePixel = "int16"; bytesPerPixel = 2; break; case 2: pixel = "32 bit floating point"; omePixel = "float"; bytesPerPixel = 4; break; case 3: pixel = "32 bit complex"; omePixel = "Uint32"; bytesPerPixel = 4; break; case 4: pixel = "64 bit complex"; omePixel = "float"; bytesPerPixel = 8; break; case 6: pixel = "16 bit unsigned integer"; omePixel = "Uint16"; bytesPerPixel = 2; break; default: pixel = "unknown"; omePixel = "Uint8"; bytesPerPixel = 1; } metadata.put("PixelType", pixel); metadata.put("Sub-image starting point (X)", new Integer( DataTools.bytesToInt(header, 16, 4, little))); metadata.put("Sub-image starting point (Y)", new Integer( DataTools.bytesToInt(header, 20, 4, little))); metadata.put("Sub-image starting point (Z)", new Integer( DataTools.bytesToInt(header, 24, 4, little))); metadata.put("Pixel sampling size (X)", new Integer( DataTools.bytesToInt(header, 28, 4, little))); metadata.put("Pixel sampling size (Y)", new Integer( DataTools.bytesToInt(header, 32, 4, little))); metadata.put("Pixel sampling size (Z)", new Integer( DataTools.bytesToInt(header, 36, 4, little))); metadata.put("X element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 40, 4, little)))); metadata.put("Y element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 44, 4, little)))); metadata.put("Z element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 48, 4, little)))); metadata.put("X axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 52, 4, little)))); metadata.put("Y axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 56, 4, little)))); metadata.put("Z axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 60, 4, little)))); metadata.put("Column axis sequence", new Integer( DataTools.bytesToInt(header, 64, 4, little))); metadata.put("Row axis sequence", new Integer( DataTools.bytesToInt(header, 68, 4, little))); metadata.put("Section axis sequence", new Integer( DataTools.bytesToInt(header, 72, 4, little))); Float wave1Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 76, 4, little))); metadata.put("Wavelength 1 min. intensity", wave1Min); Float wave1Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 80, 4, little))); metadata.put("Wavelength 1 max. intensity", wave1Max); metadata.put("Wavelength 1 mean intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 84, 4, little)))); metadata.put("Space group number", new Integer( DataTools.bytesToInt(header, 88, 4, little))); metadata.put("Number of Sub-resolution sets", new Integer( DataTools.bytesToInt(header, 132, 2, little))); metadata.put("Z axis reduction quotient", new Integer( DataTools.bytesToInt(header, 134, 2, little))); Float wave2Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 136, 4, little))); metadata.put("Wavelength 2 min. intensity", wave2Min); Float wave2Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 140, 4, little))); metadata.put("Wavelength 2 max. intensity", wave2Max); Float wave3Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 144, 4, little))); metadata.put("Wavelength 3 min. intensity", wave3Min); Float wave3Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 148, 4, little))); metadata.put("Wavelength 3 max. intensity", wave3Max); Float wave4Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 152, 4, little))); metadata.put("Wavelength 4 min. intensity", wave4Min); Float wave4Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 156, 4, little))); metadata.put("Wavelength 4 max. intensity", wave4Max); int type = DataTools.bytesToShort(header, 160, 2, little); String imageType; switch (type) { case 0: imageType = "normal"; break; case 1: imageType = "Tilt-series"; break; case 2: imageType = "Stereo tilt-series"; break; case 3: imageType = "Averaged images"; break; case 4: imageType = "Averaged stereo pairs"; break; default: imageType = "unknown"; } metadata.put("Image Type", imageType); metadata.put("Lens ID Number", new Integer(DataTools.bytesToShort( header, 162, 2, little))); Float wave5Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 172, 4, little))); metadata.put("Wavelength 5 min. intensity", wave5Min); Float wave5Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 176, 4, little))); metadata.put("Wavelength 5 max. intensity", wave5Max); numT = DataTools.bytesToShort(header, 180, 2, little); metadata.put("Number of timepoints", new Integer(numT)); int sequence = DataTools.bytesToInt(header, 182, 4, little); String imageSequence; String dimOrder; switch (sequence) { case 0: imageSequence = "ZTW"; dimOrder = "XYZTC"; break; case 1: imageSequence = "WZT"; dimOrder = "XYCZT"; break; case 2: imageSequence = "ZWT"; dimOrder = "XYZCT"; break; default: imageSequence = "unknown"; dimOrder = "XYZTC"; } metadata.put("Image sequence", imageSequence); metadata.put("X axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 184, 4, little)))); metadata.put("Y axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 188, 4, little)))); metadata.put("Z axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 192, 4, little)))); numW = DataTools.bytesToShort(header, 196, 2, little); metadata.put("Number of wavelengths", new Integer(numW)); numZ = numImages / (numW * numT); metadata.put("Number of focal planes", new Integer(numZ)); metadata.put("Wavelength 1 (in nm)", new Integer(DataTools.bytesToShort( header, 198, 2, little))); metadata.put("Wavelength 2 (in nm)", new Integer(DataTools.bytesToShort( header, 200, 2, little))); metadata.put("Wavelength 3 (in nm)", new Integer(DataTools.bytesToShort( header, 202, 2, little))); metadata.put("Wavelength 4 (in nm)", new Integer(DataTools.bytesToShort( header, 204, 2, little))); metadata.put("Wavelength 5 (in nm)", new Integer(DataTools.bytesToShort( header, 206, 2, little))); metadata.put("X origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 208, 4, little)))); metadata.put("Y origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 212, 4, little)))); metadata.put("Z origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 216, 4, little)))); order = dimOrder; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); String title; for (int i=1; i<=10; i++) { // Make sure that "null" characters are stripped out title = new String(header, 224 + 80*(i-1), 80).replaceAll("\0", ""); metadata.put("Title " + i, title); } sizeX[0] = width; sizeY[0] = height; sizeZ[0] = numZ; sizeC[0] = numW; sizeT[0] = numT; currentOrder[0] = order; // ----- The Extended Header data handler begins here ------ numIntsPerSection = DataTools.bytesToInt(header, 128, 2, little); numFloatsPerSection = DataTools.bytesToInt(header, 130, 2, little); setOffsetInfo(sequence, numZ, numW, numT); extHdrFields = new DVExtHdrFields[numZ][numW][numT]; store.setPixels(new Integer(width), new Integer(height), new Integer(numZ), new Integer(numW), new Integer(numT), omePixel, new Boolean(!little), dimOrder, null); store.setDimensions( (Float) metadata.get("X element length (in um)"), (Float) metadata.get("Y element length (in um)"), (Float) metadata.get("Z element length (in um)"), null, null, null); String description = (String) metadata.get("Title 1"); description = description.length() == 0? null : description; store.setImage(id, null, description, null); // Run through every timeslice, for each wavelength, for each z section // and fill in the Extended Header information array for that image for (int z = 0; z < numZ; z++) { for (int t = 0; t < numT; t++) { for (int w = 0; w < numW; w++) { extHdrFields[z][w][t] = new DVExtHdrFields(getTotalOffset(z, w, t), numIntsPerSection, extHeader, little); store.setPlaneInfo(z, w, t, new Float(extHdrFields[z][w][t].getTimeStampSeconds()), new Float(extHdrFields[z][w][t].getExpTime()), null); } } } for (int w=0; w<numW; w++) { store.setLogicalChannel(w, "happypuppy", new Float(extHdrFields[0][w][0].getNdFilter()), (Integer) metadata.get("Wavelength " + (w+1) + " (in nm)"), new Integer((int) extHdrFields[0][w][0].getExFilter()), "Monochrome", "Wide-field", null); } store.setStageLabel("ome", new Float(extHdrFields[0][0][0].getStageXCoord()), new Float(extHdrFields[0][0][0].getStageYCoord()), new Float(extHdrFields[0][0][0].getStageZCoord()), null); if (numW > 0) { store.setChannelGlobalMinMax(0, new Double(wave1Min.floatValue()), new Double(wave1Max.floatValue()), null); } if (numW > 1) { store.setChannelGlobalMinMax(1, new Double(wave2Min.floatValue()), new Double(wave2Max.floatValue()), null); } if (numW > 2) { store.setChannelGlobalMinMax(2, new Double(wave3Min.floatValue()), new Double(wave3Max.floatValue()), null); } if (numW > 3) { store.setChannelGlobalMinMax(3, new Double(wave4Min.floatValue()), new Double(wave4Max.floatValue()), null); } if (numW > 4) { store.setChannelGlobalMinMax(4, new Double(wave5Min.floatValue()), new Double(wave5Max.floatValue()), null); } store.setDefaultDisplaySettings(null); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f900d398818eefec3108ce2138214e42901a0aa0/DeltavisionReader.java/clean/loci/formats/in/DeltavisionReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 368, 855, 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, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 368, 855, 31...
break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue()));
exception = args[0].callMethod("exception"); } else { if (!args[0].respondsTo("exception")) { throw runtime.newTypeError("exception class/object expected");
public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); IRuby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; RaiseException re = null; switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { re = new RaiseException(runtime, runtime.getClass("RuntimeError"), "", false); } else { re = new RaiseException((RubyException) defaultException); } break; case 1 : if (args[0] instanceof RubyException) { re = new RaiseException((RubyException) args[0]); } else if (args[0] instanceof RubyClass) { re = new RaiseException(RubyException.newInstance(args[0], new IRubyObject[0])); } else { re = new RaiseException(RubyException.newInstance(runtime.getClass("RuntimeError"), args)); } break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue())); } break; case 3: if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; excptn = new RubyException(runtime, ((RubyClass)args[0]), string.getValue()); excptn.set_backtrace(args[2]); re = new RaiseException(excptn); } break; default : re = runtime.newArgumentError("wrong number of arguments"); } // Insert exception to be raised into global var and current thread runtime.getGlobalVariables().set("$!", re.getException()); throw re; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/db72794764bda58903c87df9b567f1f843bea69c/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1002, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 368, 9852, 225, 4582, 648, 316, 22155, 3639, 368, 10665, 18, 1893, 1379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 1002, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 368, 9852, 225, 4582, 648, 316, 22155, 3639, 368, 10665, 18, 1893, 1379, ...
ManagedReferenceImpl<?> ref = context.findReference(object);
ManagedReferenceImpl ref = context.findReference(object);
public void markForUpdate(ManagedObject object) { try { if (object == null) { throw new NullPointerException("The object must not be null"); } else if (!(object instanceof Serializable)) { throw new IllegalArgumentException( "The object must be serializable"); } Context context = getContext(); ManagedReferenceImpl<?> ref = context.findReference(object); if (ref != null) { ref.markForUpdate(); } logger.log( Level.FINEST, "markForUpdate object:{0} returns", object); } catch (RuntimeException e) { logger.logThrow( Level.FINEST, "markForUpdate object:{0} throws", e, object); throw e; } }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/468fd904132fe7f543e7cd90eed49c63132c4835/DataServiceImpl.java/clean/src/server/j2se/com/sun/sgs/impl/service/data/DataServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2267, 28431, 12, 10055, 921, 733, 13, 288, 202, 698, 288, 202, 565, 309, 261, 1612, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 733, 1297, 486, 506, 446, 8863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2267, 28431, 12, 10055, 921, 733, 13, 288, 202, 698, 288, 202, 565, 309, 261, 1612, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 733, 1297, 486, 506, 446, 8863...
settings.put(TAG_WORKING_SET, workingSet.getName());
settings.putString(TAG_WORKING_SET, workingSet.getName());
protected void saveFilterSettings(IDialogSettings settings) { settings.put(TAG_ENABLED, enabled); settings.put(TAG_ON_RESOURCE, onResource); String markerTypeIds = ""; //$NON-NLS-1$ List includedTypes = new ArrayList(); addAllSubTypes(includedTypes); for (int i = 0; i < includedTypes.size(); i++) { MarkerType markerType = (MarkerType) includedTypes.get(i); markerTypeIds += markerType.getId() + TAG_TYPES_DELIMITER; if (selectedTypes.contains(markerType)) { markerTypeIds += SELECTED_TRUE + TAG_TYPES_DELIMITER; } else { markerTypeIds += SELECTED_FALSE + TAG_TYPES_DELIMITER; } } settings.put(TAG_SELECTION_STATUS, markerTypeIds); if (workingSet != null) settings.put(TAG_WORKING_SET, workingSet.getName()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1923, 1586, 2628, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 7927, 67, 13560, 16, 3696, 1769, 202, 202, 4272, 18, 458, 12, 7927, 67, 673, 67, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 1586, 2628, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 7927, 67, 13560, 16, 3696, 1769, 202, 202, 4272, 18, 458, 12, 7927, 67, 673, 67, 113...
throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ.");
throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ.");
public float top() { throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ."); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/a0af9c5b3d998f470766ca142d2707e69eeb09ad/Table.java/buggy/src/com/lowagie/text/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 1760, 1435, 288, 202, 12849, 394, 13172, 2932, 10796, 434, 279, 3555, 848, 1404, 506, 8894, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 289, 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, 0, 0, 0, 0, 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, 1431, 1760, 1435, 288, 202, 12849, 394, 13172, 2932, 10796, 434, 279, 3555, 848, 1404, 506, 8894, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -1...
if (name == SchemaNames.COMPLEXTYPE) {
if (name == SchemaNames.COMPLEX_TYPE) {
public void startElement(String name, AttributeList atts) throws SAXException { if (skipAll) return; String rawName = name; //-- handle namespaces processNamespaces(atts); String namespace = null; int idx = name.indexOf(':'); if (idx >= 0 ) { String prefix = name.substring(0,idx); name = name.substring(idx+1); namespace = (String)namespaces.get(prefix); } else namespace = defaultNS; //-- backward compatibility, we'll need to //-- remove this at some point if ((!foundSchemaDef) && (idx < 0)) { if (defaultNS == null) { defaultNS = XSD_NAMESPACE; namespace = XSD_NAMESPACE; System.out.println("No namespace declaration has been " + "found for " + name); System.out.print(" * assuming default namespace of "); System.out.println(XSD_NAMESPACE); } } //-- end of backward compatibility //-- check namespace if (!XSD_NAMESPACE.equals(namespace)) { throw new SAXException(rawName + " has not been declared in the XML Schema namespace"); } //-- Do delagation if necessary if (unmarshaller != null) { unmarshaller.startElement(name, atts); ++depth; return; } //-- use VM internal String of name name = name.intern(); if (name == SchemaNames.SCHEMA) { if (foundSchemaDef) illegalElement(name); foundSchemaDef = true; init(atts); return; } //-- <type> if (name == SchemaNames.COMPLEXTYPE) { unmarshaller = new ComplextypeUnmarshaller(_schema, atts, _resolver); } //-- <element> else if (name == SchemaNames.ELEMENT) { unmarshaller = new ElementUnmarshaller(_schema, atts, _resolver); } //-- <simpletype> else if (name == SchemaNames.SIMPLETYPE) { unmarshaller = new SimpletypeUnmarshaller(_schema, atts, _resolver); } else { //-- we should throw a new Exception here //-- but since we don't support everything //-- yet, simply add an UnknownDef object System.out.print(name); System.out.print(" elements are either currently unsupported "); System.out.println("or not valid schema elements."); unmarshaller = new UnknownUnmarshaller(name); } unmarshaller.setDocumentLocator(getDocumentLocator()); } //-- startElement
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/645016a08156f47432a267a68c15e02eb64e52a4/SchemaUnmarshaller.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/reader/SchemaUnmarshaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 508, 16, 3601, 682, 15687, 13, 3639, 1216, 14366, 565, 288, 7734, 309, 261, 7457, 1595, 13, 327, 31, 7734, 514, 1831, 461, 273, 508, 31, 7734, 368, 413, 1640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 12, 780, 508, 16, 3601, 682, 15687, 13, 3639, 1216, 14366, 565, 288, 7734, 309, 261, 7457, 1595, 13, 327, 31, 7734, 514, 1831, 461, 273, 508, 31, 7734, 368, 413, 1640,...
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/b1293eda8454686e846e2a9837b348e2983bb423/Colon3Node.java/clean/src/org/jruby/ast/Colon3Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue());
List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue());
public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 4833, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 2966, 2171,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 4833, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 2966, 2171,...
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp, int daysLater, int monthsLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), 1, 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.add(Calendar.MONTH, monthsLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp;
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp) { return getMonthStart(stamp, 0, 0);
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp, int daysLater, int monthsLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), 1, 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.add(Calendar.MONTH, monthsLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp; }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/07e943f1ef268e9980fb09761e307d3ec5b92005/UtilDateTime.java/buggy/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2252, 18, 4669, 18, 4921, 19627, 1685, 12, 6290, 18, 4669, 18, 4921, 14429, 16, 509, 4681, 20607, 16, 509, 8846, 20607, 13, 288, 3639, 5542, 1906, 3005, 273, 5542, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2252, 18, 4669, 18, 4921, 19627, 1685, 12, 6290, 18, 4669, 18, 4921, 14429, 16, 509, 4681, 20607, 16, 509, 8846, 20607, 13, 288, 3639, 5542, 1906, 3005, 273, 5542, 18, 588, 1...
if ( url == null ) return getFileDirectory( filePath );
public static URL getDirectory( String filePath ) { URL url = null; try { url = new URL( convertFileNameToURLString( filePath ) ); } catch ( MalformedURLException e ) { } // follows the file protocol if ( url == null ) return getFileDirectory( filePath ); if ( FILE_SCHEMA.equalsIgnoreCase( url.getProtocol( ) ) ) return getFileDirectory( url.getPath( ) ); // rather then the file protocol return getNetDirectory( url ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/22165bd0e5b8e6eae1e5acbdf5a7377ab1882684/URIUtil.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1976, 19831, 12, 514, 4612, 262, 202, 95, 202, 202, 1785, 880, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 718, 273, 394, 1976, 12, 1765, 4771, 774, 1785, 780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1976, 19831, 12, 514, 4612, 262, 202, 95, 202, 202, 1785, 880, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 718, 273, 394, 1976, 12, 1765, 4771, 774, 1785, 780...
log().debug("Setting attribute: "+this+".["+inst+"] = '"+val+"'");
log().info("Setting attribute: "+this+".["+inst+"] = '"+val+"'");
public void storeResult(CollectionSet collectionSet, SNMPCollectorEntry entry, SnmpObjId base, SnmpInstId inst, SnmpValue val) { log().debug("Setting attribute: "+this+".["+inst+"] = '"+val+"'"); CollectionResource resource = null; if(this.getAlias().equals("ifAlias")) { resource = m_resourceType.findAliasedResource(inst, val.toString()); } else { resource = m_resourceType.findResource(inst); } if (resource == null) { collectionSet.notifyIfNotFound(this, base, inst, val); } else { resource.setAttributeValue(this, val); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/598c2fc286eabd1d4244fd55331652deb2abc7ff/AttributeType.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/collectd/AttributeType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 1253, 12, 2532, 694, 1849, 694, 16, 14204, 4566, 7134, 1622, 1241, 16, 18961, 1291, 2675, 548, 1026, 16, 18961, 1291, 10773, 548, 1804, 16, 18961, 1291, 620, 1244, 13, 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, 918, 1707, 1253, 12, 2532, 694, 1849, 694, 16, 14204, 4566, 7134, 1622, 1241, 16, 18961, 1291, 2675, 548, 1026, 16, 18961, 1291, 10773, 548, 1804, 16, 18961, 1291, 620, 1244, 13, 28...
public ObjectStreamField (String name, Class type)
ObjectStreamField (Field field)
public ObjectStreamField (String name, Class type) { this (name, type, false); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectStreamField.java/buggy/libjava/java/io/ObjectStreamField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 1228, 974, 261, 974, 652, 13, 225, 288, 565, 333, 261, 529, 16, 618, 16, 629, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 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, 282, 1033, 1228, 974, 261, 974, 652, 13, 225, 288, 565, 333, 261, 529, 16, 618, 16, 629, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
" WHERE " + IN_THIS_MAILBOX_AND + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
public static void resolveSharedIndex(Mailbox mbox, PendingDelete info) throws ServiceException { if (info.sharedIndex == null || info.sharedIndex.isEmpty()) return; Connection conn = mbox.getOperationConnection(); PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement("SELECT index_id FROM " + getMailItemTableName(mbox) + " WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex)); int attr = 1; if (DebugConfig.enableMailboxGroup) stmt.setInt(attr++, mbox.getId()); for (int id : info.sharedIndex) stmt.setInt(attr++, id); rs = stmt.executeQuery(); while (rs.next()) info.sharedIndex.remove(rs.getInt(1)); info.indexIds.addAll(info.sharedIndex); info.sharedIndex.clear(); } catch (SQLException e) { throw ServiceException.FAILURE("resolving shared index entries: " + info.rootId, e); } finally { DbPool.closeResults(rs); DbPool.closeStatement(stmt); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/11456441310e0540258d44573fd6f6a3306616ea/DbMailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2245, 7887, 1016, 12, 30239, 312, 2147, 16, 16034, 2613, 1123, 13, 1216, 16489, 288, 3639, 309, 261, 1376, 18, 11574, 1016, 422, 446, 747, 1123, 18, 11574, 1016, 18, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2245, 7887, 1016, 12, 30239, 312, 2147, 16, 16034, 2613, 1123, 13, 1216, 16489, 288, 3639, 309, 261, 1376, 18, 11574, 1016, 422, 446, 747, 1123, 18, 11574, 1016, 18, 291, ...
argcls[i] = name.getClass();
argcls[i] = name.getClass();
public int callMember(String appletID, String name, StringBuffer value, java.util.List args) { Object [] objs = getObjectField(appletID, name); if(objs == null) return JError; try { Main.debug("callMember: " + name); Object obj; Class c = objs[0].getClass(); String type; Class [] argcls = new Class[args.size()]; for (int i = 0; i < args.size(); i++) argcls[i] = name.getClass(); // String for now Method m = findMethod(c, (String) objs[1], argcls); Object [] argobj = new Object[args.size()]; for (int i = 0; i < args.size(); i++) argobj[i] = args.get(i); //for now Object retval = m.invoke(objs[0], argobj); if (retval == null) return JVoid; // void return getTypedValue(retval, value); } catch (Exception e) { Main.debug("callMember throwed exception: " + e.toString()); e.printStackTrace(); } return JError; }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/78f14736dea83c836b3fc5b8a0e71bc6bce07272/KJASAppletContext.java/clean/khtml/java/org/kde/kjas/server/KJASAppletContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 745, 4419, 12, 780, 21853, 734, 16, 514, 508, 16, 6674, 460, 16, 2252, 18, 1367, 18, 682, 833, 13, 565, 288, 3639, 1033, 5378, 12721, 273, 6455, 974, 12, 438, 1469, 734, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 745, 4419, 12, 780, 21853, 734, 16, 514, 508, 16, 6674, 460, 16, 2252, 18, 1367, 18, 682, 833, 13, 565, 288, 3639, 1033, 5378, 12721, 273, 6455, 974, 12, 438, 1469, 734, 16...
if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+")");
if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+ ')');
public void findOldLogFiles() { int slashIndex = baseFilename.lastIndexOf(File.separatorChar); File dir; String prefix; if(slashIndex == -1) { dir = new File(System.getProperty("user.dir")); prefix = baseFilename.toLowerCase(); } else { dir = new File(baseFilename.substring(0, slashIndex)); prefix = baseFilename.substring(slashIndex+1).toLowerCase(); } File[] files = dir.listFiles(); if(files == null) return; java.util.Arrays.sort(files); long lastStartTime = -1; File oldFile = null; previousFile.delete(); latestFile.renameTo(previousFile); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); for(int i=0;i<files.length;i++) { File f = files[i]; String name = f.getName(); if(name.toLowerCase().startsWith(prefix)) { if(name.equals(previousFile.getName()) || name.equals(latestFile.getName())) { continue; } if(!name.endsWith(".log.gz")) { if(logMINOR) Logger.minor(this, "Does not end in .log.gz: "+name); f.delete(); continue; } else { name = name.substring(0, name.length()-".log.gz".length()); } name = name.substring(prefix.length()); if((name.length() == 0) || (name.charAt(0) != '-')) { if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+")"); f.delete(); continue; } else name = name.substring(1); String[] tokens = name.split("-"); int[] nums = new int[tokens.length]; for(int j=0;j<tokens.length;j++) { try { nums[j] = Integer.parseInt(tokens[j]); } catch (NumberFormatException e) { Logger.normal(this, "Could not parse: "+tokens[j]+" into number from "+name); // Broken f.delete(); continue; } } // First field: version if(nums[0] != Version.buildNumber()) { if(logMINOR) Logger.minor(this, "Deleting old log from build "+nums[0]+", current="+Version.buildNumber()); // Logs that old are useless f.delete(); continue; } GregorianCalendar gc = new GregorianCalendar(); if(nums.length > 1) gc.set(Calendar.YEAR, nums[1]); if(nums.length > 2) gc.set(Calendar.MONTH, nums[2]-1); if(nums.length > 3) gc.set(Calendar.DAY_OF_MONTH, nums[3]); if(nums.length > 4) gc.set(Calendar.HOUR_OF_DAY, nums[4]); if(nums.length > 5) gc.set(Calendar.MINUTE, nums[5]); gc.set(Calendar.SECOND, 0); gc.set(Calendar.MILLISECOND, 0); long startTime = gc.getTimeInMillis(); if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, startTime, l); synchronized(logFiles) { logFiles.addLast(olf); } synchronized(trimOldLogFilesLock) { oldLogFilesDiskSpaceUsage += l; } } lastStartTime = startTime; oldFile = f; } else { // Nothing to do with us Logger.normal(this, "Unknown file: "+name+" in the log directory"); } } if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, System.currentTimeMillis(), l); synchronized(logFiles) { logFiles.addLast(olf); } synchronized(trimOldLogFilesLock) { oldLogFilesDiskSpaceUsage += l; } } trimOldLogFiles(); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FileLoggerHook.java/buggy/src/freenet/support/FileLoggerHook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 16...
c.setLayout( layout );
c.setLayout( layout );
SForm createTemplateExample() { SForm c = new SForm(); try { java.net.URL templateURL = getClass().getResource("/wingset/TemplateExample.thtml"); if( templateURL == null ){ c.add(new SLabel("Sorry, can't find TemplateExample.thtml. Are you using a JAR-File?")); return c; } // you can of course directly give files here. STemplateLayout layout = new STemplateLayout( templateURL ); c.setLayout( layout ); } catch ( java.io.IOException except ) { except.printStackTrace(); } c.add(new SLabel ((new java.util.Date()).toString()), "theLabel"); c.add(new SButton ("Button"), "TESTBUTTON"); c.add(new STextField (), "NAME"); c.add(new STextField (), "VORNAME"); c.add(new TreeExample(), "BAUM"); return c; }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/ebd6930dd9efb2a999e05f9084a09053efc0db36/TemplateExample.java/clean/wings/demo/wingset/TemplateExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 348, 1204, 752, 2283, 10908, 1435, 288, 3639, 348, 1204, 276, 273, 394, 348, 1204, 5621, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 7675, 588, 1420, 2932, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 348, 1204, 752, 2283, 10908, 1435, 288, 3639, 348, 1204, 276, 273, 394, 348, 1204, 5621, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 7675, 588, 1420, 2932, 19, ...
return name;
return name;
public java.lang.String getName() { return name;}
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/4c34db578b77ba3c1f4c891c4e5bc40fe5d7a231/EntityGroupImpl.java/clean/source/org/jasig/portal/groups/EntityGroupImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2252, 18, 4936, 18, 780, 1723, 1435, 288, 202, 2463, 508, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2252, 18, 4936, 18, 780, 1723, 1435, 288, 202, 2463, 508, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ClassLoader loader = getAntFile().getClassLoader().getClassloader();
URL[] urls = ClassEntry.EMPTY_URL_ARRAY;
private void loadClass(final String classname) { ClassLoader loader = getAntFile().getClassLoader().getClassloader(); final String classpath = getClassPath(); if (classpath != null) { try { final URL[] urls; if (classpath.indexOf(':') < 0) { urls = new URL[]{new URL("file://" + classpath)}; } else { final List<URL> urlList = new ArrayList<URL>(); for (String url : classpath.split(":")) { urlList.add(new URL("file://" + url)); } urls = urlList.toArray(new URL[urlList.size()]); } loader = new URLClassLoader(urls, loader); } catch (MalformedURLException e) { // ignore } } Class clazz; try { if (loader == null) { clazz = Class.forName(classname); } else { clazz = loader.loadClass(classname); } } catch (Exception e) { clazz = null; } final String name = getDefinedName(); final String uri = getUri(); final AntTypeId id = (uri == null) ? new AntTypeId(name) : new AntTypeId(name, uri); if (clazz == null) { myNewDefinition = null; } else { myNewDefinition = (AntTypeDefinitionImpl)AntFileImpl.createTypeDefinition(id, clazz, Task.class.isAssignableFrom(clazz)); } if (myNewDefinition != null) { myNewDefinition.setDefiningElement(this); final AntStructuredElement parent = getAntParent(); if (parent != null) { parent.registerCustomType(myNewDefinition); } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/ceb24b80c5261dedf3a8aa851dd19772f3bdd70c/AntTypeDefImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntTypeDefImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 16038, 12, 6385, 514, 7479, 13, 288, 565, 1976, 8526, 6903, 273, 1659, 1622, 18, 13625, 67, 1785, 67, 8552, 31, 565, 727, 514, 10006, 273, 2900, 743, 5621, 565, 309, 261, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16038, 12, 6385, 514, 7479, 13, 288, 565, 1976, 8526, 6903, 273, 1659, 1622, 18, 13625, 67, 1785, 67, 8552, 31, 565, 727, 514, 10006, 273, 2900, 743, 5621, 565, 309, 261, 263...
this.registerVariant(variant);
registerVariant(variant);
private void initVariantsInFieldScope() { {// completion in initializer final CompletionVariant variant = new CompletionVariant(new AfterElementFilter(new TextFilter("="))); variant.includeScopeClass(PsiVariable.class, false); variant.addCompletionFilterOnElement(new OrFilter( new ClassFilter(PsiVariable.class, false), new ExcludeDeclaredFilter(new ClassFilter(PsiVariable.class)) )); this.registerVariant(variant); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3314476891c70f6e28a00beba3f4835933188dec/JavaCompletionData.java/clean/codeInsight/impl/com/intellij/codeInsight/completion/JavaCompletionData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 21165, 382, 974, 3876, 1435, 288, 565, 288, 759, 8364, 316, 12562, 1377, 727, 20735, 9356, 5437, 273, 394, 20735, 9356, 12, 2704, 7360, 1046, 1586, 12, 2704, 3867, 1586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 21165, 382, 974, 3876, 1435, 288, 565, 288, 759, 8364, 316, 12562, 1377, 727, 20735, 9356, 5437, 273, 394, 20735, 9356, 12, 2704, 7360, 1046, 1586, 12, 2704, 3867, 1586, ...
if (jj_3R_21()) return true;
if (jj_3R_23()) return true;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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, 67, 2499, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2499, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684...
return "default";
return "attack";
public static String getLongCombatOptionName( String action ) { if ( action == null || action.length() == 0 ) return "default"; if ( action.equals( "custom" ) || action.equals( "delevel" ) || action.equals( "default" ) || action.startsWith( "abort" ) || action.startsWith( "attack" ) || action.startsWith( "run" ) ) return action; else if ( action.startsWith( "item" ) ) return "item " + ((String) TradeableItemDatabase.getMatchingNames( action.substring(4).trim() ).get(0)).toLowerCase(); else if ( action.startsWith( "skill" ) ) { String potentialSkill = KoLmafiaCLI.getCombatSkillName( action.substring(5).trim() ).toLowerCase(); if ( potentialSkill != null ) return "skill " + potentialSkill; } // Well, it's either a standard skill, or it's an item, // or it's something you need to lookup in the tables. String potentialSkill = KoLmafiaCLI.getCombatSkillName( action ); if ( potentialSkill != null ) return "skill " + potentialSkill.toLowerCase(); int itemID = action.equals( "" ) ? -1 : KoLmafiaCLI.getFirstMatchingItemID( TradeableItemDatabase.getMatchingNames( action ) ); if ( itemID != -1 ) return "item " + TradeableItemDatabase.getItemName( itemID ).toLowerCase(); return "attack"; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/a650e856112055897821459dd0ced956ce3edc51/CombatSettings.java/buggy/src/net/sourceforge/kolmafia/CombatSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 11105, 11328, 270, 1895, 461, 12, 514, 1301, 262, 202, 95, 202, 202, 430, 261, 1301, 422, 446, 747, 1301, 18, 2469, 1435, 422, 374, 262, 1082, 202, 2463, 315, 1886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 11105, 11328, 270, 1895, 461, 12, 514, 1301, 262, 202, 95, 202, 202, 430, 261, 1301, 422, 446, 747, 1301, 18, 2469, 1435, 422, 374, 262, 1082, 202, 2463, 315, 1886, ...
public void copyFile(CmsRequestContext context, String source, String destination, boolean lockCopy, boolean copyAsLink, int copyMode) throws CmsException { String destinationFileName = null; String destinationFolderName = null; CmsResource newResource = null; Map newResourceProps = null; if (destination.endsWith("/")) { copyFolder(context, source, destination, lockCopy, copyAsLink, false); return; } // validate the destination path/filename validFilename(destination.replace('/', 'a')); // extract the destination folder and filename destinationFolderName = destination.substring(0, destination.lastIndexOf("/") + 1); destinationFileName = destination.substring(destination.lastIndexOf("/") + 1, destination.length()); // read the source file and destination parent folder CmsFile sourceFile = readFile(context, source, false); CmsFolder destinationFolder = readFolder(context, destinationFolderName); // check the link mode to see if this resource has to be copied as a link. // only check this if the override flag "copyAsLink" is not set. if (!copyAsLink) { // if we have the copy mode "copy as link, set the override flag to true if (copyMode==I_CmsConstants.C_COPY_AS_LINK) { copyAsLink=true; } // if the mode is "preservre links", we have to check the link counter if (copyMode==I_CmsConstants.C_COPY_PRESERVE_LINK) { if (sourceFile.getLinkCount()>1) { copyAsLink=true; } } } // checks, if the type is valid, i.e. the user can copy files of this type // we can't utilize the access guard to do this, since it needs a resource to check if (!isAdmin(context) && (sourceFile.getType() == CmsResourceTypeXMLTemplate.C_RESOURCE_TYPE_ID || sourceFile.getType() == CmsResourceTypeJsp.C_RESOURCE_TYPE_ID)) { throw new CmsSecurityException("[" + this.getClass().getName() + "] copyFile() " + source, CmsSecurityException.C_SECURITY_NO_PERMISSIONS); } // check if the user has read access to the source file and write access to the destination folder checkPermissions(context, sourceFile, I_CmsConstants.C_READ_ACCESS); checkPermissions(context, destinationFolder, I_CmsConstants.C_WRITE_ACCESS); // read the source properties newResourceProps = readProperties(context, source, null, false); if (copyAsLink) { // create a copy of the source file in the destination parent folder newResource = createVfsLink(context, destination, source, newResourceProps, false); } else { // create a new resource in the destination folder // check the resource flags int flags = sourceFile.getFlags(); if (sourceFile.isLabeled()) { // reset "labeled" link flag flags &= ~I_CmsConstants.C_RESOURCEFLAG_LABELLINK; } // create the file newResource = m_vfsDriver.createFile(context.currentUser(), context.currentProject(), destinationFileName, flags, destinationFolder.getId(), sourceFile.getContents(), getResourceType(sourceFile.getType())); // copy the properties writeProperties(context, destination, newResourceProps); // copy the access control entries ListIterator aceList = m_userDriver.getAccessControlEntries(context.currentProject(), sourceFile.getResourceAceId(), false).listIterator(); while (aceList.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry) aceList.next(); m_userDriver.createAccessControlEntry(context.currentProject(), newResource.getResourceAceId(), ace.getPrincipal(), ace.getPermissions().getAllowedPermissions(), ace.getPermissions().getDeniedPermissions(), ace.getFlags()); } m_vfsDriver.updateResourceState(context.currentProject(),newResource,C_UPDATE_ALL); touch(context,destination,sourceFile.getDateLastModified(),sourceFile.getUserLastModified()); if (lockCopy) { lockResource(context, destination); } } clearAccessControlListCache(); m_accessCache.clear(); clearResourceCache(); List modifiedResources = (List) new ArrayList(); modifiedResources.add(sourceFile); modifiedResources.add(newResource); modifiedResources.add(destinationFolder); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCES_MODIFIED, Collections.singletonMap("resources", modifiedResources))); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/e32e986189f4d8353adaddc338780dc5f8a073fc/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26955, 12, 4747, 21426, 819, 16, 514, 1084, 16, 514, 2929, 16, 1250, 2176, 2951, 16, 1250, 1610, 1463, 2098, 16, 509, 1610, 2309, 13, 1216, 11228, 288, 3639, 514, 2929, 4771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26955, 12, 4747, 21426, 819, 16, 514, 1084, 16, 514, 2929, 16, 1250, 2176, 2951, 16, 1250, 1610, 1463, 2098, 16, 509, 1610, 2309, 13, 1216, 11228, 288, 3639, 514, 2929, 4771, ...
CustomAttributesNode caNode = new CustomAttributesNode(cloneEle);
caNode = new CustomAttributesNode(cloneEle); r.exec("import org.openmicroscopy.xml.CustomAttributesNode"); r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node");
public void setupTabs() { //make sure all old gui stuff is tossed when this called twice. //also clear our TablePanel lists tabPanelList = new Vector(); panelList = new Vector(); panelsWithID = new Vector(); addItems = new Vector(); tabPane.removeAll(); try {thisOmeNode = new OMENode();} catch(Exception e) {e.printStackTrace();} //use the list acquired from Template.xml to form the initial tabs Element[] tabList = tParse.getTabs(); for(int i = 0;i< tabList.length;i++) { String thisName = tabList[i].getAttribute("Name"); if(thisName.length() == 0) thisName = tabList[i].getAttribute("XMLName"); //make a TabPanel Object that represents the panel //that displays data for a node TabPanel tPanel = new TabPanel(tabList[i]); OMEXMLNode n = null; String unknownName = tabList[i].getAttribute("XMLName"); try { //reflect api gets around large switch statements ReflectedUniverse r = new ReflectedUniverse(); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); r.setVar("parent", thisOmeNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } else { r.exec("import org.openmicroscopy.xml.CustomAttributesNode"); r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); Element currentCA = DOMUtil.getChildElement("CustomAttributes", thisOmeNode.getDOMElement()); if (currentCA != null) { CustomAttributesNode caNode = new CustomAttributesNode(currentCA); r.setVar("parent", caNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } else { Element cloneEle = DOMUtil.createChild(thisOmeNode.getDOMElement(),"CustomAttributes"); CustomAttributesNode caNode = new CustomAttributesNode(cloneEle); r.setVar("parent", caNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } } } catch (Exception exc) { System.out.println(exc.toString()); } tPanel.oNode = n; //set the field oNode in TabPanel to reflect the structure of the xml //document being formed //do all the good stuff to flesh out the TabPanel's gui with the tables //and assorted stuff renderTab(tPanel); //set up a scrollpane to hold the TabPanel in case it's too large to fit JScrollPane scrollPane = new JScrollPane(tPanel); scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); String desc = tabList[i].getAttribute("Description"); if (desc.length() == 0) tabPane.addTab(thisName, null, scrollPane, null); else tabPane.addTab(thisName, null, scrollPane, desc); int keyNumber = getKey(i+1); if(keyNumber !=0 ) tabPane.setMnemonicAt(i, keyNumber); } //Makes sure that the external references do not mirror the internal ones //since there should be no intersection between the two sets for (int j = 0;j<panelsWithID.size();j++) { TablePanel tempTP = (TablePanel) panelsWithID.get(j); String tryID = "(External) " + tempTP.id; if(addItems.indexOf(tryID) >= 0) addItems.remove(tryID); } //this part sets up the refTable's comboBox editor to have choices //corresponding to every TablePanel that has a valid ID attribute for (int i = 0;i<panelList.size();i++) { TablePanel p = (TablePanel) panelList.get(i); p.setEditor(); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/a60dbd5cd0a0533936e40182c2bc013406b191b7/MetadataPane.java/buggy/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3875, 17348, 1435, 288, 565, 368, 6540, 3071, 777, 1592, 13238, 10769, 353, 358, 87, 730, 1347, 333, 2566, 13605, 18, 565, 368, 31144, 2424, 3134, 3555, 5537, 6035, 565, 3246, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 17348, 1435, 288, 565, 368, 6540, 3071, 777, 1592, 13238, 10769, 353, 358, 87, 730, 1347, 333, 2566, 13605, 18, 565, 368, 31144, 2424, 3134, 3555, 5537, 6035, 565, 3246, ...
ReportScriptExecutor.handleAfterCloseDoc( reportDesign, executionContext );
protected void closeReportDocument( ) { ReportDesignHandle reportDesign = executionContext.getDesign( ); ReportScriptExecutor.handleBeforeCloseDoc( reportDesign, executionContext ); reportDoc.close( ); ReportScriptExecutor.handleAfterCloseDoc( reportDesign, executionContext ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c0422a1db84842d1e332663c3d4c7e2a8109aca8/RenderTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1746, 4820, 2519, 12, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 4605, 1759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 4820, 2519, 12, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 4605, 1759...
public void testPreviousMemberAfterModuleMember() {
public final void testPreviousMemberAfterModuleMember() {
public void testPreviousMemberAfterModuleMember() { assertPreviousMemberCorrect(EMPTY_CLASS_IN_MODULE, 8, "Blue"); }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/615094576784f8eacf0891411a5b25d98778892b/TestRubyParser.java/clean/src/org/jedit/ruby/test/TestRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 8351, 4419, 4436, 3120, 4419, 1435, 288, 3639, 1815, 8351, 4419, 16147, 12, 13625, 67, 5237, 67, 706, 67, 12194, 16, 1725, 16, 315, 27986, 8863, 565, 289, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 8351, 4419, 4436, 3120, 4419, 1435, 288, 3639, 1815, 8351, 4419, 16147, 12, 13625, 67, 5237, 67, 706, 67, 12194, 16, 1725, 16, 315, 27986, 8863, 565, 289, 2, -100, ...
while( la(offset).isA(Token.NEWLINE) ) {
while( la(offset).isA(Types.NEWLINE) ) {
public boolean atEnd( boolean ignoringWhitespace ) { try { int offset = 1; if( ignoringWhitespace ) { try { while( la(offset).isA(Token.NEWLINE) ) { offset++; } } catch( Exception e ) {} } if( la(offset) == null ) { return true; } } catch( Exception e ) {} return false; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/64e65829fa69dec52d9653087f9d6e65e59b9028/AbstractTokenStream.java/clean/src/main/org/codehaus/groovy/syntax/AbstractTokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 622, 1638, 12, 1250, 14398, 9431, 262, 288, 3639, 775, 288, 5411, 509, 1384, 273, 404, 31, 5411, 309, 12, 14398, 9431, 262, 288, 7734, 775, 288, 10792, 1323, 12, 7125, 12, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 622, 1638, 12, 1250, 14398, 9431, 262, 288, 3639, 775, 288, 5411, 509, 1384, 273, 404, 31, 5411, 309, 12, 14398, 9431, 262, 288, 7734, 775, 288, 10792, 1323, 12, 7125, 12, 3...
_t = __t147;
_t = __t148;
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST numericExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST plus = null; org.exist.xquery.parser.XQueryAST minus = null; org.exist.xquery.parser.XQueryAST uminus = null; org.exist.xquery.parser.XQueryAST uplus = null; org.exist.xquery.parser.XQueryAST div = null; org.exist.xquery.parser.XQueryAST idiv = null; org.exist.xquery.parser.XQueryAST mod = null; org.exist.xquery.parser.XQueryAST mult = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t142 = _t; plus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t142; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); op.setASTNode(plus); path.addPath(op); step= op; break; } case MINUS: { AST __t143 = _t; minus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t143; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); op.setASTNode(minus); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t144 = _t; uminus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t144; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.setASTNode(uminus); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t145 = _t; uplus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t145; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.setASTNode(uplus); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t146 = _t; div = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t146; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); op.setASTNode(div); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t147 = _t; idiv = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t147; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); op.setASTNode(idiv); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t148 = _t; mod = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); op.setASTNode(mod); path.addPath(op); step= op; break; } case STAR: { AST __t149 = _t; mult = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); op.setASTNode(mult); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
return (i != null) ? i.shortValue() : (-1);
if (i != null) return i.shortValue(); try { return Short.parseShort(s); } catch (Exception e) { return (-1); }
static short classValue(String s) { Short i = (Short) classes.get(s.toUpperCase()); return (i != null) ? i.shortValue() : (-1);}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/8a9755345c9c34f1168b16166d8283223ef1777e/dns.java/clean/org/xbill/DNS/dns.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3025, 667, 620, 12, 780, 272, 13, 288, 202, 4897, 277, 273, 261, 4897, 13, 3318, 18, 588, 12, 87, 18, 869, 8915, 10663, 202, 2463, 261, 77, 480, 446, 13, 692, 277, 18, 6620, 620, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3025, 667, 620, 12, 780, 272, 13, 288, 202, 4897, 277, 273, 261, 4897, 13, 3318, 18, 588, 12, 87, 18, 869, 8915, 10663, 202, 2463, 261, 77, 480, 446, 13, 692, 277, 18, 6620, 620, 14...
for(int i = 0 ; i < selectedRows.length;i++) { FCPTransferQuery query = (FCPTransferQuery)queries.get(selectedRows[i]); if(query == null) continue; if(e.getSource() == removeItem) { query.stop(core.getQueueManager()); core.getQueueManager().remove(query); tableModel.removeQuery(query); } if(e.getSource() == cancelItem) { query.stop(core.getQueueManager()); } if(e.getSource() == delayItem) { if(query.isRunning() && !query.isFinished()) { query.pause(core.getQueueManager()); core.getQueueManager().moveFromRunningToPendingQueue(query); } } if(e.getSource() == forceRestartItem) { query.stop(core.getQueueManager()); if(query.getMaxAttempt() >= 0) query.setAttempt(0); query.start(core.getQueueManager()); } if(e.getSource() == copyKeysItem) { if(query.getFileKey() != null && !query.getFileKey().equals("")) keys = keys + query.getFileKey() + "\n"; } if(e.getSource() == downloadItem && dir != null) { query.saveFileTo(dir.getPath()); } } /* for i in selectedRows */ if(e.getSource() == copyKeysItem) { StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, this); }
Thread action = new Thread(new ActionReplier(e, queries)); action.start();
public void actionPerformed(ActionEvent e) { Toolkit tk = Toolkit.getDefaultToolkit(); String keys = ""; File dir = null; if(e.getSource() == downloadItem) { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle(I18n.getMessage("thaw.common.downloadLocally")); fileChooser.setDirectoryOnly(true); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); dir = fileChooser.askOneFile(); } for(int i = 0 ; i < selectedRows.length;i++) { FCPTransferQuery query = (FCPTransferQuery)queries.get(selectedRows[i]); if(query == null) continue; if(e.getSource() == removeItem) { query.stop(core.getQueueManager()); core.getQueueManager().remove(query); tableModel.removeQuery(query); } if(e.getSource() == cancelItem) { query.stop(core.getQueueManager()); } if(e.getSource() == delayItem) { if(query.isRunning() && !query.isFinished()) { query.pause(core.getQueueManager()); core.getQueueManager().moveFromRunningToPendingQueue(query); } } if(e.getSource() == forceRestartItem) { query.stop(core.getQueueManager()); if(query.getMaxAttempt() >= 0) query.setAttempt(0); query.start(core.getQueueManager()); } if(e.getSource() == copyKeysItem) { if(query.getFileKey() != null && !query.getFileKey().equals("")) keys = keys + query.getFileKey() + "\n"; } if(e.getSource() == downloadItem && dir != null) { query.saveFileTo(dir.getPath()); } } /* for i in selectedRows */ if(e.getSource() == copyKeysItem) { StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, this); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/a466f4a11cc5e69663bebf2d5f14aa3b26ff73b6/QueuePanel.java/clean/src/thaw/plugins/queueWatcher/QueuePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 6364, 8691, 13030, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 5621, 202, 202, 780, 1311, 273, 1408, 31, 202, 202, 812, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 6364, 8691, 13030, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 5621, 202, 202, 780, 1311, 273, 1408, 31, 202, 202, 812, 15...
/* if (field == null) System.err.println("Unknown field: " + className + "." + fieldName); */
private void handleLoad(FieldInstruction obj) { consumeStack(obj); Type type = obj.getType(getCPG()); if (type.getSignature().equals(STRING_SIGNATURE)) { try { String className = obj.getClassName(getCPG()); String fieldName = obj.getName(getCPG()); Field field = edu.umd.cs.daveho.ba.Lookup.findField(className, fieldName);/* if (field == null) System.err.println("Unknown field: " + className + "." + fieldName);*/ if (field != null) { // If the field is final, we'll assume that the String value // is static. if (field.isFinal()) pushValue(staticStringTypeInstance); else pushValue(type); return; } } catch (ClassNotFoundException ex) { lookupFailureCallback.reportMissingClass(ex); } } pushValue(type); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/e65bb5a3d8daebc2d098ab03f10aab577289c426/FindRefComparison.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1640, 2563, 12, 974, 11983, 1081, 13, 288, 1082, 202, 21224, 2624, 12, 2603, 1769, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1082, 202, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1640, 2563, 12, 974, 11983, 1081, 13, 288, 1082, 202, 21224, 2624, 12, 2603, 1769, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1082, 202, 43...
String[] current_permissions = imcref.sqlProcedure( "GetUserPermissionSet " + meta_id + ", " + user.getUserId() ); int user_set_id = Integer.parseInt( current_permissions[0] ); int user_perm_set = Integer.parseInt( current_permissions[1] ); int currentdoc_perms = Integer.parseInt( current_permissions[2] );
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader( "Host" ); IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface( req ); String start_url = imcref.getStartUrl(); String servlet_url = Utility.getDomainPref( "servlet_url", host ); imcode.server.user.UserDomainObject user; // Check if user logged on if( (user = Check.userLoggedOn( req, res, start_url )) == null ) { return; } int meta_id = Integer.parseInt( req.getParameter( "meta_id" ) ); int set_id = Integer.parseInt( req.getParameter( "set_id" ) ); res.setContentType( "text/html" ); Writer out = res.getWriter(); if( !imcref.checkDocAdminRights( meta_id, user, 4 ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if( output != null ) { out.write( output ); } return; } String[] perms = req.getParameterValues( "permissions" ); String[] perms_ex = req.getParameterValues( "permissions_ex" ); int permissions = 0; String newstr = ""; // Check if this is the permissions for new documents, or for this one. if( req.getParameter( "new" ) != null ) { newstr = "New"; } if( req.getParameter( "ok" ) != null ) { // User pressed ok. // Here i fetch the current users set-id and the document-permissions for this document (Whether set-id 1 is more privileged than set-id 2.) String[] current_permissions = imcref.sqlProcedure( "GetUserPermissionSet " + meta_id + ", " + user.getUserId() ); int user_set_id = Integer.parseInt( current_permissions[0] ); int user_perm_set = Integer.parseInt( current_permissions[1] ); int currentdoc_perms = Integer.parseInt( current_permissions[2] ); // I'll make a hashmap to store the users extended permissions in. // The hashmap will map permission_ids to hashsets containing permission_data. HashMap perm_ex_data_map = new HashMap(); // Get an array containing perm_id, perm_data, perm_id, perm_data, and so on. String[] user_permission_data = imcref.sqlProcedure( "GetUserPermissionSetEx " + meta_id + ", " + user.getUserId() ); for( int i = 0; i < user_permission_data.length; i += 2 ) { // Check if the map contains a set for this permission_id HashSet temp_set = (HashSet)perm_ex_data_map.get( user_permission_data[i] ); if( temp_set == null ) { // If not, add it. temp_set = new HashSet(); perm_ex_data_map.put( user_permission_data[i], temp_set ); } // put the permission_data in the set. temp_set.add( user_permission_data[i + 1] ); } // Delete all extended permissions for this permissionset. imcref.sqlUpdateProcedure( "Delete" + newstr + "DocPermissionSetEx " + meta_id + "," + set_id ); // Read checkboxes and OR the values into an int, which is stored in the db. for( int i = 0; perms != null && i < perms.length; ++i ) { int perm = Integer.parseInt( perms[i] ); if( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 && (user_perm_set & perm) != 0 // and the user has this permission himself && (currentdoc_perms & 1) != 0// and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { permissions |= perm; } } imcref.sqlUpdateProcedure( "Set" + newstr + "DocPermissionSet " + meta_id + "," + set_id + "," + permissions ); // Read the select-lists for the new extended permissions, and store the values in the db. for( int i = 0; perms_ex != null && i < perms_ex.length; ++i ) { // We have an array of all extended permissions, // in the form permission_value. I.e. 8_1, 524288_5, and so on. String perm_ex_str = perms_ex[i]; int us_index = perm_ex_str.indexOf( "_" ); // Get the permission... String perm_str = perm_ex_str.substring( 0, us_index ); // ...and the value for the permission. String value_str = perm_ex_str.substring( us_index + 1 ); int perm = Integer.parseInt( perm_str ); int value = Integer.parseInt( value_str ); HashSet temp_set = null; if( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 // And the user has this particular extended permission. // Get the hashset for the permission_id from the map, and check if it contains the value. && ((temp_set = (HashSet)perm_ex_data_map.get( perm_str )) != null ? temp_set.contains( value_str ) : false) && (currentdoc_perms & 1) != 0// and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { imcref.sqlUpdateProcedure( "Set" + newstr + "DocPermissionSetEx " + meta_id + "," + set_id + "," + perm + "," + value ); } } } user.put( "flags", new Integer( 4 ) ); String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if( output != null ) { out.write( output ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/8a7363878045cb2ba3378fbfa016c5cfcbe37a1a/SavePermissions.java/clean/servlets/SavePermissions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 1111, 18, 588, 1864, 12, 315, 2594, 6, 11272, 3639, 6246, 39, 18348, 709, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 1111, 18, 588, 1864, 12, 315, 2594, 6, 11272, 3639, 6246, 39, 18348, 709, 71...
edge(this, p, q);
edge(this, p, q, FlowGraph.EDGE_KEY_OTHER);
public void edge(Term p, Term q) { edge(this, p, q); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/6b451d89c6b7f26e1faab51969d8a5f36f4e377e/CFGBuilder.java/buggy/src/polyglot/visit/CFGBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3591, 12, 4065, 293, 16, 6820, 1043, 13, 288, 1377, 3591, 12, 2211, 16, 293, 16, 1043, 16, 9473, 4137, 18, 27732, 67, 3297, 67, 23940, 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, 918, 3591, 12, 4065, 293, 16, 6820, 1043, 13, 288, 1377, 3591, 12, 2211, 16, 293, 16, 1043, 16, 9473, 4137, 18, 27732, 67, 3297, 67, 23940, 1769, 565, 289, 2, -100, -100, -100, ...
public TimeInput(){ this("timeinput"); }
public TimeInput() { this("timeinput"); }
public TimeInput(){ this("timeinput");}
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/890a3a73f35d6bd9e81389413213c32d77f01b9d/TimeInput.java/buggy/src/java/com/idega/presentation/ui/TimeInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2647, 1210, 1435, 95, 202, 2211, 2932, 957, 2630, 8863, 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, ...
[ 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, 2647, 1210, 1435, 95, 202, 2211, 2932, 957, 2630, 8863, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public int getLevelImpl() { // if inside a method call's params, this could be part of // an expression, so get the previous line's start if (getParent() instanceof MethodCallHandler) { MethodCallHandler container = ((MethodCallHandler) getParent()) .findContainingMethodCall(this); if (container != null) { if (areOnSameLine(container.getMainAst(), getMainAst())) { return container.getLevel(); } else { return container.getLevel() + getIndentCheck().getIndentationAmount(); } } // if we get here, we are the child of the left hand side (name // side) of a method call with no "containing" call, use // the first non-method callparent ExpressionHandler p = getParent(); while (p instanceof MethodCallHandler) { p = p.getParent(); } return p.suggestedChildLevel(this); } // if our expression isn't first on the line, just use the start // of the line LineSet lines = new LineSet(); findSubtreeLines(lines, (DetailAST) getMainAst().getFirstChild(), true); int firstCol = lines.firstLineCol(); int lineStart = getLineStart(getFirstAst(getMainAst())); if (lineStart != firstCol) { return lineStart; } else { return super.getLevelImpl(); } }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/a4d63db21d57ab53aff8a467f89df3867518ab91/MethodCallHandler.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/MethodCallHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 17236, 2828, 1435, 565, 288, 3639, 368, 309, 4832, 279, 707, 745, 1807, 859, 16, 333, 3377, 506, 1087, 434, 540, 368, 392, 2652, 16, 1427, 336, 326, 2416, 980, 1807, 787, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 17236, 2828, 1435, 565, 288, 3639, 368, 309, 4832, 279, 707, 745, 1807, 859, 16, 333, 3377, 506, 1087, 434, 540, 368, 392, 2652, 16, 1427, 336, 326, 2416, 980, 1807, 787, 363...
getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2;
for(int k=0; k<2; k++) { vtxIndexArr[k] = indexCoord[i]; getVertexData(indexCoord[i++], pnts[k]); }
boolean intersect(PickShape pickShape, PickInfo.IntersectionInfo iInfo, int flags, Point3d iPnt) { Point3d pnts[] = new Point3d[2]; double sdist[] = new double[1]; double minDist = Double.MAX_VALUE; double x = 0, y = 0, z = 0; int count = 0; int minICount = 0; int i = ((vertexFormat & GeometryArray.BY_REFERENCE) == 0 ? initialVertexIndex : initialCoordIndex); pnts[0] = new Point3d(); pnts[1] = new Point3d(); switch (pickShape.getPickType()) { case PickShape.PICKRAY: PickRay pickRay= (PickRay) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectLineAndRay(pnts[0], pnts[1], pickRay.origin, pickRay.direction, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKSEGMENT: PickSegment pickSegment = (PickSegment) pickShape; Vector3d dir = new Vector3d(pickSegment.end.x - pickSegment.start.x, pickSegment.end.y - pickSegment.start.y, pickSegment.end.z - pickSegment.start.z); while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectLineAndRay(pnts[0], pnts[1], pickSegment.start, dir, sdist, iPnt) && (sdist[0] <= 1.0)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGBOX: BoundingBox bbox = (BoundingBox) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingBox(pnts, bbox, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGSPHERE: BoundingSphere bsphere = (BoundingSphere) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingSphere(pnts, bsphere, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGPOLYTOPE: BoundingPolytope bpolytope = (BoundingPolytope) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingPolytope(pnts, bpolytope, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKCYLINDER: PickCylinder pickCylinder= (PickCylinder) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectCylinder(pnts, pickCylinder, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKCONE: PickCone pickCone= (PickCone) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectCone(pnts, pickCone, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKPOINT: // Should not happen since API already check for this throw new IllegalArgumentException(J3dI18N.getString("IndexedLineArrayRetained0")); default: throw new RuntimeException ("PickShape not supported for intersection"); } if (minDist < Double.MAX_VALUE) { assert(minICount >=2); int[] vertexIndices = iInfo.getVertexIndices(); if (vertexIndices == null) { vertexIndices = new int[2]; iInfo.setVertexIndices(vertexIndices); } vertexIndices[0] = minICount - 2; vertexIndices[1] = minICount - 1; iPnt.x = x; iPnt.y = y; iPnt.z = z; return true; } return false; }
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/4ec3ff600b963c703688876ac5b7f5f22e76f3e2/IndexedLineArrayRetained.java/buggy/src/classes/share/javax/media/j3d/IndexedLineArrayRetained.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 9136, 12, 17968, 8500, 6002, 8500, 16, 23038, 966, 18, 23634, 966, 277, 966, 16, 225, 509, 2943, 16, 4686, 23, 72, 277, 52, 496, 13, 288, 3639, 4686, 23, 72, 293, 27932, 8526, 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, 1250, 9136, 12, 17968, 8500, 6002, 8500, 16, 23038, 966, 18, 23634, 966, 277, 966, 16, 225, 509, 2943, 16, 4686, 23, 72, 277, 52, 496, 13, 288, 3639, 4686, 23, 72, 293, 27932, 8526, 2...
context ); System.out.println("continue processing"); } catch ( Exception e ) {
context ); System.out.println( "continue processing" ); } catch ( Exception e ) {
private Rule getContinueProcessing() throws IntrospectionException, InvalidRuleException { final Rule rule = new Rule( "continueProcessng" ); // ----------- // context : Context( state == Context.CHECK_DONE ) // ----------- Column contextColumn = new Column( 0, contextType, "context" ); contextColumn.addConstraint( getLiteralConstraint( contextColumn, "state", new Integer( Context.CHECK_DONE ), this.integerEqualEvaluator ) ); rule.addPattern( contextColumn ); final Declaration contextDeclaration = rule.getDeclaration( "context" ); // ------------ // context.setName( Context.ASSIGN_SEATS ); // ------------ Consequence consequence = new Consequence() { public void invoke(Activation activation) throws ConsequenceException { try { Rule rule = activation.getRule(); Tuple tuple = activation.getTuple(); KnowledgeHelper drools = new DefaultKnowledgeHelper( rule, tuple ); Context context = (Context) tuple.get( contextDeclaration ); context.setState( Context.ASSIGN_SEATS ); drools.modifyObject( tuple.getFactHandleForDeclaration( contextDeclaration ), context ); System.out.println("continue processing"); } catch ( Exception e ) { throw new ConsequenceException( e ); } } }; rule.setConsequence( consequence ); return rule; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afb42145aeb0d228a638628582631975db4bb473/MannersTest.java/clean/drools-core/src/test/java/org/drools/examples/manners/MannersTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6781, 336, 12378, 7798, 1435, 1216, 3094, 26362, 503, 16, 21821, 1962, 2175, 503, 288, 3639, 727, 6781, 1720, 273, 394, 6781, 12, 315, 17143, 2227, 3368, 6, 11272, 3639, 368, 300, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 336, 12378, 7798, 1435, 1216, 3094, 26362, 503, 16, 21821, 1962, 2175, 503, 288, 3639, 727, 6781, 1720, 273, 394, 6781, 12, 315, 17143, 2227, 3368, 6, 11272, 3639, 368, 300, 1...
void insertData(CharacterData node, int index, String insert) { //node.setNodeValue( // node.getNodeValue().substring(0,index) // +insert+node.getNodeValue().substring(index)); fInsertNode = node; node.insertData( index, insert); fInsertNode = null; //informInsertedText(node, index, insert.length()); }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/743bceae33ff6174a8458ccb866c0c7203cc8859/RangeImpl.java/clean/src/org/apache/xerces/dom/RangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 918, 2243, 751, 12, 7069, 751, 756, 16, 509, 770, 16, 514, 2243, 13, 288, 225, 368, 2159, 18, 542, 907, 620, 12, 225, 368, 756, 18, 588, 907, 620, 7675, 28023, 12, 20, 16, 1615, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2243, 751, 12, 7069, 751, 756, 16, 509, 770, 16, 514, 2243, 13, 288, 225, 368, 2159, 18, 542, 907, 620, 12, 225, 368, 756, 18, 588, 907, 620, 7675, 28023, 12, 20, 16, 1615, 13,...
public void run() { I_CmsReport report = getReport(); try { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DELETE_THREAD_STARTED_0)); } Iterator j = m_moduleNames.iterator(); while (j.hasNext()) { String moduleName = (String)j.next(); moduleName = moduleName.replace('\\', '/'); CmsProject project = null; Locale userLocale = getCms().getRequestContext().getLocale(); // create a Project to delete the module. project = getCms().createProject(Messages.get().key( userLocale, Messages.GUI_DELETE_MODULE_PROJECT_NAME_0, null), Messages.get().key(userLocale, Messages.GUI_DELETE_MODULE_PROJECT_DESC_1, new Object[] {moduleName}), OpenCms.getDefaultUsers() .getGroupAdministrators(), OpenCms.getDefaultUsers().getGroupAdministrators(), I_CmsConstants.C_PROJECT_TYPE_TEMPORARY); getCms().getRequestContext().setCurrentProject(project); report.print( Messages.get().container(Messages.RPT_DELETE_MODULE_BEGIN_0), I_CmsReport.C_FORMAT_HEADLINE); report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_HTML_ITAG_1, moduleName), I_CmsReport.C_FORMAT_HEADLINE); // copy the resources to the project List projectFiles = OpenCms.getModuleManager().getModule(moduleName).getResources(); for (int i = 0; i < projectFiles.size(); i++) { try { getCms().copyResourceToProject((String)projectFiles.get(i)); } catch (CmsException e) { // may happen if the resource has already been deleted LOG.error(Messages.get().key(Messages.LOG_MOVE_RESOURCE_FAILED_1, projectFiles.get(i)), e); report.println(e); } } // now delete the module OpenCms.getModuleManager().deleteModule(getCms(), moduleName, m_replaceMode, report); report.println( Messages.get().container(Messages.RPT_PUBLISH_PROJECT_BEGIN_0), I_CmsReport.C_FORMAT_HEADLINE); // now unlock and publish the project getCms().unlockProject(project.getId()); getCms().publishProject(report); report.println( Messages.get().container(Messages.RPT_PUBLISH_PROJECT_END_0), I_CmsReport.C_FORMAT_HEADLINE); report.println( Messages.get().container(Messages.RPT_DELETE_MODULE_END_0), I_CmsReport.C_FORMAT_HEADLINE); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DELETE_THREAD_FINISHED_0)); } } } catch (Exception e) { report.println(e); LOG.error(Messages.get().key(Messages.LOG_MODULE_DELETE_FAILED_1, m_moduleNames), e); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8e5ec1587622bcff5ef3c95201cc74d091b0a04c/CmsModuleDeleteThread.java/clean/src/org/opencms/workplace/threads/CmsModuleDeleteThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 467, 67, 25702, 2605, 273, 22452, 5621, 3639, 775, 288, 5411, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 7734, 2018, 18, 4148, 12, 5058, 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, 1071, 918, 1086, 1435, 288, 3639, 467, 67, 25702, 2605, 273, 22452, 5621, 3639, 775, 288, 5411, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 7734, 2018, 18, 4148, 12, 5058, 18, 588, ...
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradingSessionStatus.java/clean/src/java/src/quickfix/fix42/TradingSessionStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...