rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
setFault(e); | recordFault(e); | public void execute() { assertNotCompleted(); try { getRoot().addProvider(getEnvironment()); } catch (RuntimeException e) { setFault(e); } completed(); } | 54391 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54391/52d2a82216944228ebf430509d3a9d3a63ef37b5/RegisterProvider.java/clean/trunk/src/hjb/jms/cmd/RegisterProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
288,
3639,
1815,
1248,
9556,
5621,
3639,
775,
288,
5411,
7656,
7675,
1289,
2249,
12,
588,
5494,
10663,
3639,
289,
1044,
261,
11949,
425,
13,
288,
5411,
1409,
7083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
288,
3639,
1815,
1248,
9556,
5621,
3639,
775,
288,
5411,
7656,
7675,
1289,
2249,
12,
588,
5494,
10663,
3639,
289,
1044,
261,
11949,
425,
13,
288,
5411,
1409,
7083,
... |
a = new LnSensorAddress("LS130"); | a = new LnSensorAddress("LS131"); | public void testLnSensorAddressBDL16Mode() { LnSensorAddress a; a = new LnSensorAddress("LS130"); Assert.assertTrue(a.getLowBits() == 65); Assert.assertTrue(a.getHighBits() == 0); Assert.assertTrue(a.getASBit() == 0x00); Assert.assertTrue(a.isValid()); a = new LnSensorAddress("LS257"); Assert.assertTrue(a.getLowBits() == 0); Assert.assertTrue(a.getHighBits() == 1); assertEquals("AS bit from LS257", 0x20, a.getASBit()); Assert.assertTrue(a.isValid()); } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/460600d1132418dbf7438c5f5739b8ab01d868a5/LnSensorAddressTest.java/clean/test/jmri/jmrix/loconet/LnSensorAddressTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13780,
22294,
1887,
38,
8914,
2313,
2309,
1435,
288,
377,
202,
13780,
22294,
1887,
279,
31,
3639,
279,
273,
394,
511,
82,
22294,
1887,
2932,
3045,
29315,
8863,
3639,
5452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13780,
22294,
1887,
38,
8914,
2313,
2309,
1435,
288,
377,
202,
13780,
22294,
1887,
279,
31,
3639,
279,
273,
394,
511,
82,
22294,
1887,
2932,
3045,
29315,
8863,
3639,
5452,
... |
boolean visible= false; | boolean visible = false; | public void gotoMatchingBracket() { ISourceViewer sourceViewer= getSourceViewer(); IDocument document= sourceViewer.getDocument(); if (document == null) return; IRegion selection= getSignedSelection(sourceViewer); int selectionLength= Math.abs(selection.getLength()); if (selectionLength > 1) { setStatusLineErrorMessage(CEditorMessages.getString("GotoMatchingBracket.error.invalidSelection")); //$NON-NLS-1$ sourceViewer.getTextWidget().getDisplay().beep(); return; } // #26314 int sourceCaretOffset= selection.getOffset() + selection.getLength(); if (isSurroundedByBrackets(document, sourceCaretOffset)) sourceCaretOffset -= selection.getLength(); IRegion region= fBracketMatcher.match(document, sourceCaretOffset); if (region == null) { setStatusLineErrorMessage(CEditorMessages.getString("GotoMatchingBracket.error.noMatchingBracket")); //$NON-NLS-1$ sourceViewer.getTextWidget().getDisplay().beep(); return; } int offset= region.getOffset(); int length= region.getLength(); if (length < 1) return; int anchor= fBracketMatcher.getAnchor(); // http://dev.eclipse.org/bugs/show_bug.cgi?id=34195 int targetOffset= (ICharacterPairMatcher.RIGHT == anchor) ? offset + 1: offset + length; boolean visible= false; if (sourceViewer instanceof ITextViewerExtension5) { ITextViewerExtension5 extension= (ITextViewerExtension5) sourceViewer; visible= (extension.modelOffset2WidgetOffset(targetOffset) > -1); } else { IRegion visibleRegion= sourceViewer.getVisibleRegion(); // http://dev.eclipse.org/bugs/show_bug.cgi?id=34195 visible= (targetOffset >= visibleRegion.getOffset() && targetOffset <= visibleRegion.getOffset() + visibleRegion.getLength()); } if (!visible) { setStatusLineErrorMessage(CEditorMessages.getString("GotoMatchingBracket.error.bracketOutsideSelectedElement")); //$NON-NLS-1$ sourceViewer.getTextWidget().getDisplay().beep(); return; } if (selection.getLength() < 0) targetOffset -= selection.getLength(); sourceViewer.setSelectedRange(targetOffset, selection.getLength()); sourceViewer.revealRange(targetOffset, selection.getLength()); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0482b3954404fd528d629e737114a70d018a10db/CEditor.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2897,
9517,
11450,
1435,
288,
9506,
202,
45,
1830,
18415,
1084,
18415,
33,
7889,
18415,
5621,
202,
202,
734,
504,
650,
1668,
33,
1084,
18415,
18,
588,
2519,
5621,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2897,
9517,
11450,
1435,
288,
9506,
202,
45,
1830,
18415,
1084,
18415,
33,
7889,
18415,
5621,
202,
202,
734,
504,
650,
1668,
33,
1084,
18415,
18,
588,
2519,
5621,
202,
202,... |
return elementMap != null; } | return elementMap != null; } | protected boolean usingElementMap() { return elementMap != null; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1450,
1046,
863,
1435,
288,
3639,
327,
930,
863,
480,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1450,
1046,
863,
1435,
288,
3639,
327,
930,
863,
480,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (recommended != blockBox.recommendedWidth) { | if (recommended != Integer.MAX_VALUE && recommended != blockBox.recommendedWidth) { | protected void setupBlock() { int recommended = getContextWidth(); BlockFlow bf = getBlockFlow(); int borderCorrection = bf.getInsets().getWidth() + bf.getLeftMargin() + bf.getRightMargin(); if (recommended >= 0) recommended = Math.max(0, recommended - borderCorrection); if (recommended != blockBox.recommendedWidth) { blockInvalid = true; blockBox.setWidth(Math.max(0, recommended)); blockBox.setRecommendedWidth(recommended); } if (blockInvalid) blockBox.height = 0;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/dfae9beabb0b65d610d2248ca5860992782d8c48/BlockFlowLayout.java/buggy/org.eclipse.draw2d/src/org/eclipse/draw2d/text/BlockFlowLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
3875,
1768,
1435,
288,
202,
474,
14553,
273,
6474,
2384,
5621,
202,
1768,
5249,
16222,
273,
11902,
5249,
5621,
202,
474,
5795,
20884,
273,
16222,
18,
588,
382,
4424,
7675,
588,
2384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
3875,
1768,
1435,
288,
202,
474,
14553,
273,
6474,
2384,
5621,
202,
1768,
5249,
16222,
273,
11902,
5249,
5621,
202,
474,
5795,
20884,
273,
16222,
18,
588,
382,
4424,
7675,
588,
2384,
... |
protected String handleImage(IImage image, Object context, String prefix, boolean needMap) | protected String handleImage( IImage image, Object context, String prefix, boolean needMap ) | protected String handleImage(IImage image, Object context, String prefix, boolean needMap) { String mapID = null; if(needMap) { mapID = getImageMapID(image); if(map.containsKey(mapID)) { return (String)map.get(mapID); } } String ret = null; if (context != null && (context instanceof HTMLRenderContext)) { HTMLRenderContext myContext = (HTMLRenderContext) context; String imageURL = myContext.getBaseImageURL(); String imageDir = myContext.getImageDirectory(); if(imageURL==null || imageURL.length()==0 || imageDir==null || imageDir.length()==0) { log.log(Level.SEVERE, "imageURL or ImageDIR is not set!"); //$NON-NLS-1$ return null; } String fileName; File file; synchronized (HTMLCompleteImageHandler.class) { String extension = image.getExtension(); if(extension!=null && extension.length()>0) { fileName = createUniqueFileName(imageDir, prefix, extension); //$NON-NLS-1$ } else { fileName = createUniqueFileName(imageDir, prefix); } file = new File(imageDir, fileName); //$NON-NLS-1$ try { image.writeImage(file); } catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); } } //servlet mode if(imageURL.indexOf("?")>0) //$NON-NLS-1$ { ret = imageURL + fileName; } else if(imageURL.endsWith("/")) //$NON-NLS-1$ { ret = imageURL + fileName; } else { ret = imageURL + "/" + fileName; //$NON-NLS-1$ } if(needMap) { map.put(mapID, ret); } } return ret; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1d8d582eae226915b0af0dada3168441cc0fb0a2/HTMLServerImageHandler.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLServerImageHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
... |
public abstract Enumeration getDevastatedEntities(); | public abstract Enumeration<Entity> getDevastatedEntities(); | public abstract Enumeration getDevastatedEntities(); | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/146b09124def37ab63c0bb3069d6ef9e2de68334/IGame.java/buggy/megamek/src/megamek/common/IGame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
13864,
336,
8870,
689,
690,
8108,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
13864,
336,
8870,
689,
690,
8108,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pdom.getDB().putInt(record + NUM_PARAMS, params.length); | db.putInt(record + NUM_PARAMS, params.length); | public PDOMCPPFunction(PDOM pdom, PDOMNode parent, IASTName name) throws CoreException { super(pdom, parent, name); IASTNode parentNode = name.getParent(); if (parentNode instanceof ICPPASTFunctionDeclarator) { ICPPASTFunctionDeclarator funcDecl = (ICPPASTFunctionDeclarator)parentNode; IASTParameterDeclaration[] params = funcDecl.getParameters(); pdom.getDB().putInt(record + NUM_PARAMS, params.length); for (int i = 0; i < params.length; ++i) { ICPPASTParameterDeclaration param = (ICPPASTParameterDeclaration)params[i]; IASTName paramName = param.getDeclarator().getName(); IBinding binding = paramName.resolveBinding(); if (!(binding instanceof ICPPParameter)) continue; ICPPParameter paramBinding = (ICPPParameter)binding; setFirstParameter(new PDOMCPPParameter(pdom, this, paramName, paramBinding)); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4c2b2120e49bda069e08a1cb69fb67723aedcb28/PDOMCPPFunction.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
453,
8168,
4258,
52,
2083,
12,
52,
8168,
4863,
362,
16,
453,
8168,
907,
982,
16,
467,
9053,
461,
508,
13,
1216,
30015,
288,
202,
202,
9565,
12,
84,
9859,
16,
982,
16,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
8168,
4258,
52,
2083,
12,
52,
8168,
4863,
362,
16,
453,
8168,
907,
982,
16,
467,
9053,
461,
508,
13,
1216,
30015,
288,
202,
202,
9565,
12,
84,
9859,
16,
982,
16,
508,
... |
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); impl = factory.newDocumentBuilder().getDOMImplementation(); | protected void setUp() throws ParserConfigurationException { DocType type = new DocType("test"); Element root = new Element("test"); xomDocument = new Document(root); xomDocument.insertChild(type, 0); xomDocument.insertChild(new ProcessingInstruction( "xml-stylesheet", "href=\"file.css\" type=\"text/css\""), 1); xomDocument.insertChild(new Comment(" test "), 2); xomDocument.appendChild(new Comment("epilog")); root.addNamespaceDeclaration("xlink", "http://www.w3.org/TR/1999/xlink"); root.appendChild("Hello dear\r\n"); Element em = new Element("em"); root.appendChild(em); em.addAttribute(new Attribute("id", "p1")); em.addNamespaceDeclaration("none", "http://www.example.com"); em.appendChild("very important"); Element span = new Element("span"); root.appendChild(span); span.addAttribute(new Attribute("xlink:type", "http://www.w3.org/TR/1999/xlink", "simple")); span.appendChild("here's the link"); root.appendChild("\r\n"); Element empty = new Element("empty"); root.appendChild(empty); empty.addAttribute(new Attribute("xom:temp", "http://xom.nu/", "Just to see if this can handle namespaced attributes")); root.appendChild("\r\n"); Element svg = new Element("svg:svg", "http://www.w3.org/TR/2000/svg"); root.appendChild(svg); Element text = new Element("svg:text", "http://www.w3.org/TR/2000/svg"); svg.appendChild(text); text.appendChild("text in a namespace"); root.appendChild("\r\n"); svg = new Element("svg", "http://www.w3.org/TR/2000/svg"); root.appendChild(svg); text = new Element("text", "http://www.w3.org/TR/2000/svg"); svg.appendChild(text); text.appendChild("text in a namespace"); Reader reader = new StringReader(source); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); impl = factory.newDocumentBuilder().getDOMImplementation(); InputSource inso = new InputSource(reader); DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance(); fac.setNamespaceAware(true); DocumentBuilder parser = fac.newDocumentBuilder(); try { domDocument = parser.parse(inso); } catch (Exception ex) { // shouldn't happen from known good doc throw new RuntimeException("Ooops!"); } } | 8327 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8327/a7645c3cfbd1aebde66b7ea76907e8680001db67/DOMConverterTest.java/buggy/src/nu/xom/tests/DOMConverterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
6783,
10737,
288,
15604,
3521,
559,
618,
273,
394,
3521,
559,
2932,
3813,
8863,
3639,
3010,
1365,
273,
394,
3010,
2932,
3813,
8863,
5375,
619,
362,
2519,
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,
377,
4750,
918,
24292,
1435,
1216,
6783,
10737,
288,
15604,
3521,
559,
618,
273,
394,
3521,
559,
2932,
3813,
8863,
3639,
3010,
1365,
273,
394,
3010,
2932,
3813,
8863,
5375,
619,
362,
2519,
273,
... | |
return "???UNKWOWN???"; | return "???UNKNOWN???"; | private static String getArchiveServer( String uri ) { if ( StringUtils.isEmpty( uri ) ) { return "???UNKWOWN???"; } int at = uri.indexOf( "//" ); int from = uri.indexOf( "/", at >= 0 ? ( uri.lastIndexOf( "/", at - 1 ) >= 0 ? 0 : at + 2 ) : 0 ); return uri.substring( at + 2, from ); } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/4e7dca56c654536bfea833805cd0ee0b512c182f/MailingListsReport.java/clean/maven-plugins/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
336,
7465,
2081,
12,
514,
2003,
262,
565,
288,
3639,
309,
261,
5778,
18,
291,
1921,
12,
2003,
262,
262,
3639,
288,
5411,
327,
315,
14646,
35,
14737,
14646,
7225,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
336,
7465,
2081,
12,
514,
2003,
262,
565,
288,
3639,
309,
261,
5778,
18,
291,
1921,
12,
2003,
262,
262,
3639,
288,
5411,
327,
315,
14646,
35,
14737,
14646,
7225,
31,
363... |
if (jj_3R_188()) return true; | if (jj_3R_92()) return true; | final private boolean jj_3R_151() { if (jj_3R_188()) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
25807,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9975,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
25807,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9975,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-... |
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { | private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { | private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { Iterator it = entries.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entry.getValue(), pw); pw.println(); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/buggy/core/src/classpath/java/java/util/jar/Manifest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1045,
67,
22032,
5557,
67,
11657,
12,
863,
3222,
16,
14071,
8772,
13,
1216,
15644,
503,
288,
202,
202,
3198,
518,
273,
3222,
18,
4099,
694,
7675,
9838,
5621,
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,
1152,
760,
918,
1045,
67,
22032,
5557,
67,
11657,
12,
863,
3222,
16,
14071,
8772,
13,
1216,
15644,
503,
288,
202,
202,
3198,
518,
273,
3222,
18,
4099,
694,
7675,
9838,
5621,
202,
2... |
if (savingsPerformance != null) savingsPerformance.setSavings(this); | private void setSavingsPerformance( SavingsPerformanceEntity savingsPerformance) { if (savingsPerformance != null) savingsPerformance.setSavings(this); this.savingsPerformance = savingsPerformance; } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/5c0bb14312743b82b30fec5c29e95392503e7c25/SavingsBO.java/buggy/mifos/src/org/mifos/application/accounts/savings/business/SavingsBO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13928,
27497,
25024,
12,
1082,
202,
55,
27497,
25024,
1943,
4087,
899,
25024,
13,
288,
202,
202,
430,
261,
87,
27497,
25024,
480,
446,
13,
1082,
202,
87,
27497,
25024,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13928,
27497,
25024,
12,
1082,
202,
55,
27497,
25024,
1943,
4087,
899,
25024,
13,
288,
202,
202,
430,
261,
87,
27497,
25024,
480,
446,
13,
1082,
202,
87,
27497,
25024,
18,... | |
steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, call, null)); steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, assExp, null)); | steadyLoop.addStatement(new JExpressionStatement(null, call, null)); steadyLoop.addStatement(new JExpressionStatement(null, assExp, null)); | public void addDRAMCommand(boolean read, int stage, int bytes, OffChipBuffer buffer, boolean presynched) { assert bytes > 0 : "trying to generate a dram command of size 0"; parent.setComputes(); String functName = "raw_streaming_dram_request_" + (read ? "read" : "write") + (presynched ? "_presynched" : ""); String bufferName; if (stage < 2) bufferName = buffer.getIdent(true); else bufferName = buffer.getIdent(false); //the args for the streaming dram command //cachelines that are needed assert bytes % RawChip.cacheLineBytes == 0 : "transfer size for dram must be a multiple of cache line size"; int cacheLines = bytes / RawChip.cacheLineBytes; JExpression[] args = {new JFieldAccessExpression(null, new JThisExpression(null), bufferName), new JIntLiteral(1), new JIntLiteral(cacheLines)}; //the dram command JMethodCallExpression call = new JMethodCallExpression(null, functName, args); //send over the address JFieldAccessExpression dynNetSend = new JFieldAccessExpression(null, new JThisExpression(null), Util.CGNOINTVAR); JFieldAccessExpression bufAccess = new JFieldAccessExpression(null, new JThisExpression(null), bufferName); JAssignmentExpression assExp = new JAssignmentExpression(null, dynNetSend, bufAccess); SpaceTimeBackend.println("Adding DRAM Command to " + parent + " " + buffer + " " + cacheLines); //add the statements to the appropriate stage if (stage < 3) { initBlock.addStatement(new JExpressionStatement(null, call, null)); initBlock.addStatement(new JExpressionStatement(null, assExp, null)); } else { steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, call, null)); steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, assExp, null)); } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/2b8b7e06aba4ff02b18122a576834ec85b41941f/ComputeCodeStore.java/buggy/streams/src/at/dms/kjc/spacetime/ComputeCodeStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6331,
2192,
2189,
12,
6494,
855,
16,
509,
6009,
16,
9506,
4202,
509,
1731,
16,
15837,
782,
625,
1892,
1613,
16,
1250,
4075,
878,
2049,
13,
377,
288,
202,
11231,
1731,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6331,
2192,
2189,
12,
6494,
855,
16,
509,
6009,
16,
9506,
4202,
509,
1731,
16,
15837,
782,
625,
1892,
1613,
16,
1250,
4075,
878,
2049,
13,
377,
288,
202,
11231,
1731,
40... |
private void __builtin_unsigned_int() { //unsigned int ICASTSimpleDeclSpecifier parmSds = new CASTSimpleDeclSpecifier(); parmSds.setType(IASTSimpleDeclSpecifier.t_int); parmSds.setUnsigned(true); IType c_unsigned_int = new CQualifierType(parmSds); IType cpp_unsigned_int = new CPPBasicType(IBasicType.t_int, CPPBasicType.IS_UNSIGNED); //int __builtin_ffs(unsigned int x) IBinding temp = null; IFunctionType functionType = null; IParameter[] theParms = new IParameter[1]; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_int); IType returnType = new CBasicType(sds); IType[] parms = new IType[1]; parms[0] = c_unsigned_int; functionType = new CFunctionType(returnType, parms); theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_FFS, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_int, 0 ); IType[] parms = new IType[1]; parms[0] = cpp_unsigned_int; functionType = new CPPFunctionType(returnType, parms); theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_FFS, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_clz(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CLZ, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CLZ, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_ctz(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CTZ, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CTZ, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_popcount(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_POPCOUNT, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_POPCOUNT, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_parity(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_PARITY, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_PARITY, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/GCCBuiltinSymbolProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
972,
24553,
67,
22297,
67,
474,
1435,
95,
202,
202,
759,
22297,
474,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
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,
1152,
6459,
972,
24553,
67,
22297,
67,
474,
1435,
95,
202,
202,
759,
22297,
474,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621... | ||
print(" "+ClusterExecutionCode.rawMain+"__"+selfID+"();\n"); | { Iterator i = sends_to.iterator(); while (i.hasNext()) { SIRStream stream = (SIRStream)i.next(); int fromID = selfID; int toID = NodeEnumerator.getSIROperatorId(stream); print("\n streamit.scheduler2.constrained.Scheduler cscheduler = new streamit.scheduler2.constrained.Scheduler(ClusterBackend.topStreamIter); streamit.scheduler2.iriter.Iterator firstIter = IterFactory.createIter((SIRStream)NodeEnumerator.getNode(selfID)); streamit.scheduler2.iriter.Iterator lastIter = IterFactory.createIter(stream); streamit.scheduler2.SDEPData sdep; try { sdep = cscheduler.computeSDEP(firstIter, lastIter); int srcInit = sdep.getNumSrcInitPhases(); int srcSteady = sdep.getNumSrcSteadyPhases(); int dstInit = sdep.getNumDstInitPhases(); int dstSteady = sdep.getNumDstSteadyPhases(); String sdepname = "sdep_"+fromID+"_"+toID; print(" "+sdepname+" = new sdep("+ srcInit+","+dstInit+","+ srcSteady+","+dstSteady+");\n"); for (int y = 0; y < dstInit + dstSteady + 1; y++) { print(" "+sdepname+"->setDst2SrcDependency("+y+","+sdep.getSrcPhase4DstPhase(y)+");\n"); } } catch (streamit.scheduler2.constrained.NoPathException ex) { } } } print("\n "+ClusterExecutionCode.rawMain+"__"+selfID+"();\n"); | public void visitFilter(SIRFilter self, SIRFilterIter iter) { selfID = NodeEnumerator.getSIROperatorId(self); SIRPortal outgoing[] = SIRPortal.getPortalsWithSender(self); SIRPortal incoming[] = SIRPortal.getPortalsWithReceiver(self); HashSet sends_to = new HashSet(); HashSet receives_from = new HashSet(); for (int t = 0; t < outgoing.length; t++) { SIRStream[] receivers = outgoing[t].getReceivers(); for (int i = 0; i < receivers.length; i++) { sends_to.add(receivers[i]); } } for (int t = 0; t < incoming.length; t++) { SIRPortalSender[] senders = incoming[t].getSenders(); for (int i = 0; i < senders.length; i++) { receives_from.add(senders[i].getStream()); } } /* { Iterator i = sends_to.iterator(); while (i.hasNext()) { print("// sends to "+NodeEnumerator.getSIROperatorId((SIRStream)i.next())+"\n"); } } { Iterator i = receives_from.iterator(); while (i.hasNext()) { print("// receives from "+NodeEnumerator.getSIROperatorId((SIRStream)i.next())+"\n"); } } print("\n"); */ //System.out.print("filter.equals(self): "+(filter.equals(self))+"\n"); //Entry point of the visitor print("#include <stdlib.h>\n"); print("#include <unistd.h>\n"); print("#include <math.h>\n\n"); //if there are structures in the code, include //the structure definition header files //if (RawBackend.structures.length > 0) // print("#include \"structs.h\"\n"); p.print("#include <init_instance.h>\n"); p.print("#include <mysocket.h>\n"); p.print("#include <peek_stream.h>\n"); p.print("#include <timer.h>\n"); p.print("\n"); p.print("extern int __number_of_iterations;\n"); ////////////////////////////////////////////// // Declare Filter Fields //Visit fields declared in the filter class JFieldDeclaration[] fields = self.getFields(); for (int i = 0; i < fields.length; i++) fields[i].accept(this); print("\n"); ////////////////////////////////////////////// // Declare Socket Variables //declare input/output socket variables NetStream in = RegisterStreams.getFilterInStream(self); NetStream out = RegisterStreams.getFilterOutStream(self); if (in != null) { print("peek_stream<"+self.getInputType().toString()+"> *"+in.name()+"in;\n"); } if (out != null) { print("mysocket *"+out.name()+"out;\n"); } { Iterator i = sends_to.iterator(); while (i.hasNext()) { print("mysocket *__msg_sock_"+selfID+"_"+NodeEnumerator.getSIROperatorId((SIRStream)i.next())+"out;\n"); } } { Iterator i = receives_from.iterator(); while (i.hasNext()) { print("mysocket *__msg_sock_"+NodeEnumerator.getSIROperatorId((SIRStream)i.next())+"_"+selfID+"in;\n"); } } ////////////////////////////////////////////// // Declare_Sockets Method print("\nvoid __declare_sockets_"+selfID+"() {\n"); if (in != null) { print(" init_instance::add_incoming("+in.getSource()+","+in.getDest()+");\n"); } if (out != null) { print(" init_instance::add_outgoing("+out.getSource()+","+out.getDest()+",lookup_ip(init_instance::get_node_name("+out.getDest()+")));\n"); } { Iterator i = sends_to.iterator(); while (i.hasNext()) { int dst = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" init_instance::add_outgoing("+(-selfID-1)+","+(-dst-1)+",lookup_ip(init_instance::get_node_name("+dst+")));\n"); } } { Iterator i = receives_from.iterator(); while (i.hasNext()) { int src = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" init_instance::add_incoming("+(-src-1)+","+(-selfID-1)+");\n"); } } print("}\n"); ////////////////////////////////////////////// // Method Declarations //visit methods of filter, print the declaration first declOnly = true; JMethodDeclaration[] methods = self.getMethods(); for (int i =0; i < methods.length; i++) { methods[i].accept(this); } print("\n"); ////////////////////////////////////////////// // Method Bodies //now print the functions with body declOnly = false; for (int i =0; i < methods.length; i++) { methods[i].accept(this); } ////////////////////////////////////////////// // Handle Message Method print("\nvoid handle_message_"+selfID+"(mysocket *sock) {\n"); print(" int index = sock->read_int();\n"); print(" printf(\"Message receieved! thread: "+selfID+", index: %d\\n\", index);\n"); SIRPortal[] portals = SIRPortal.getPortalsWithReceiver(self); /* there should be only one portal or none */ if (portals.length == 1) { CClass pclass = portals[0].getPortalType().getCClass(); CMethod pmethods[] = pclass.getMethods(); for (int i = 0 ; i < pmethods.length; i++) { CMethod portal_method = pmethods[i]; CType portal_method_params[] = portal_method.getParameters(); String method_name = portal_method.getIdent(); int length = method_name.length(); if (!method_name.startsWith("<") && !method_name.endsWith(">")) { print(" if (index == "+i+") {\n"); for (int t = 0; t < methods.length; t++) { String thread_method_name = methods[t].getName(); if (thread_method_name.startsWith(method_name) && thread_method_name.charAt(length) == '_' && thread_method_name.charAt(length + 1) == '_') { int param_count = methods[t].getParameters().length; for (int a = 0; a < param_count; a++) { if (portal_method_params[a].toString().equals("int")) { print(" int p"+a+" = sock->read_int();\n"); } if (portal_method_params[a].toString().equals("float")) { print(" float p"+a+" = sock->read_float();\n"); } } print(" "+thread_method_name+"__"+selfID+"("); for (int a = 0; a < param_count; a++) { if (a > 0) print(", "); print("p"+a); } print(");\n"); } } print(" }\n"); } } } print("}\n"); ////////////////////////////////////////////// // The Run Method //now the run function print("\nvoid run_"+selfID+"() {\n"); print(" int i;\n"); if (in != null) { print(" "+in.name()+"in = new peek_stream<"+self.getInputType().toString()+">(new mysocket(init_instance::get_incoming_socket("+in.getSource()+","+in.getDest()+")));\n"); } if (out != null) { print(" "+out.name()+"out = new mysocket(init_instance::get_outgoing_socket("+out.getSource()+","+out.getDest()+"));\n"); } { Iterator i = sends_to.iterator(); while (i.hasNext()) { int dst = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" __msg_sock_"+selfID+"_"+dst+"out = new mysocket(init_instance::get_outgoing_socket("+(-selfID-1)+","+(-dst-1)+"));\n"); } } { Iterator i = receives_from.iterator(); while (i.hasNext()) { int src = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" __msg_sock_"+src+"_"+selfID+"in = new mysocket(init_instance::get_incoming_socket("+(-src-1)+","+(-selfID-1)+"));\n"); } } print(" "+ClusterExecutionCode.rawMain+"__"+selfID+"();\n"); /* print(" "+self.getInit().getName()+"__"+selfID+"();\n"); if (out == null) print(" timer t;\n"); if (out == null) print(" t.start();\n"); print(" for (i = 0; i < __number_of_iterations; i++) { \n"); { Iterator i = receives_from.iterator(); while (i.hasNext()) { int src = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" if (__msg_sock_"+src+"_"+selfID+"in->data_available()) {\n handle_message_"+selfID+"(__msg_sock_"+src+"_"+selfID+"in);\n }\n"); } } print(" "+self.getWork().getName()+"__"+selfID+"();\n"); print(" } \n"); if (out == null) print(" t.stop();\n"); if (out == null) print(" t.output(stderr);\n"); */ print(" sleep(3); // so that sockets dont get closed\n"); print("}\n"); createFile(selfID); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/aaad33d80d61c1b2709e9a2281ca713b9590c418/FlatIRToCluster.java/clean/streams/src/at/dms/kjc/cluster/FlatIRToCluster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1586,
12,
2320,
54,
1586,
365,
16,
9506,
565,
5705,
54,
1586,
2360,
1400,
13,
288,
202,
2890,
734,
273,
2029,
3572,
7385,
18,
588,
2320,
1457,
457,
639,
548,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1586,
12,
2320,
54,
1586,
365,
16,
9506,
565,
5705,
54,
1586,
2360,
1400,
13,
288,
202,
2890,
734,
273,
2029,
3572,
7385,
18,
588,
2320,
1457,
457,
639,
548,
12,
2890,
... |
PeerNode next = node.peers.closerPeer(pn, ctx.routedTo, target, pn == null); | PeerNode next = node.peers.closerPeer(pn, ctx.routedTo, target, true); | private boolean forward(Message m, long id, PeerNode pn, short htl, double target, RoutedContext ctx) { Logger.minor(this, "Should forward"); // Forward m = preForward(m, htl); while(true) { PeerNode next = node.peers.closerPeer(pn, ctx.routedTo, target, pn == null); Logger.minor(this, "Next: "+next+" message: "+m); if(next != null) { Logger.minor(this, "Forwarding "+m.getSpec()+" to "+next.getPeer().getPort()); ctx.addSent(next); try { next.sendAsync(m, null); } catch (NotConnectedException e) { continue; } } else { Logger.minor(this, "Reached dead end for "+m.getSpec()+" on "+node.portNumber); // Reached a dead end... Message reject = DMT.createFNPRoutedRejected(id, htl); if(pn != null) try { pn.sendAsync(reject, null); } catch (NotConnectedException e) { Logger.error(this, "Cannot send reject message back to source "+pn); return true; } } return true; } } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/1f477f2c2fc4d16e27b069d0ef2683e3b258e83a/NodeDispatcher.java/clean/src/freenet/node/NodeDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
5104,
12,
1079,
312,
16,
1525,
612,
16,
10669,
907,
11059,
16,
3025,
366,
6172,
16,
1645,
1018,
16,
7271,
329,
1042,
1103,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
5104,
12,
1079,
312,
16,
1525,
612,
16,
10669,
907,
11059,
16,
3025,
366,
6172,
16,
1645,
1018,
16,
7271,
329,
1042,
1103,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,... |
settings.setField(decisioningColumn+i, new SimpleString(selectedValues[i].toString())); | decisioningColumns+=","+selectedValues[i].toString(); | public ISettings getSettings() { //TODO umiescic z pol settingsy dla doJob() settings.setField("table", new SimpleString(jListTable.getSelectedValue().toString())); settings.setField("decisionedColumn", new SimpleString(jListDecisioned.getSelectedValue().toString())); String decisioningColumn = new String("decisioningColumn"); Object [] selectedValues = jListDecisioning.getSelectedValues(); for (int i=0; i<selectedValues.length; i++) { settings.setField(decisioningColumn+i, new SimpleString(selectedValues[i].toString())); } ITreeManager trm = dataEngine.getTreeManager(); int tableSize = 0; int firstIndex = 0; int lastIndex = 0; try { tableSize= trm.getTableSize(listTable[actualTable].toString()); } catch (PlatformException e1) { e1.printStackTrace(); } lastIndex = Integer.parseInt(this.jTextFieldRangeTo.getText()); firstIndex = Integer.parseInt(this.jTextFieldRangeFrom.getText()); if (lastIndex > tableSize) settings.setField("lastIndex", new SimpleInteger(tableSize)); else settings.setField("lastIndex", new SimpleInteger(lastIndex)); if (firstIndex < 1) settings.setField("firstIndex", new SimpleInteger(1)); else settings.setField("firstIndex", new SimpleInteger(firstIndex)); return settings; } | 12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/2d72fc5190154e352aa97d42b2a9ae22b47307fe/TreeDataLoaderSettingsPanel.java/buggy/salomon/plugins/DataTreeLoader/src/pl/capitol/tree/plugins/dataloader/panels/TreeDataLoaderSettingsPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2628,
18283,
1435,
288,
202,
202,
759,
6241,
9570,
606,
71,
335,
998,
2952,
1947,
93,
8910,
69,
741,
2278,
1435,
202,
202,
4272,
18,
542,
974,
2932,
2121,
3113,
394,
4477... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2628,
18283,
1435,
288,
202,
202,
759,
6241,
9570,
606,
71,
335,
998,
2952,
1947,
93,
8910,
69,
741,
2278,
1435,
202,
202,
4272,
18,
542,
974,
2932,
2121,
3113,
394,
4477... |
-1, -1, -1, -1, 290, 291, -1, 293, 294, 295, | 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, | private static final short[] yyCheck3() { return new short[] { -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 333, 334, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, 93, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, 93, 94, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, 326, 62, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 38, -1, 338, 41, -1, -1, 44, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 37, 38, -1, 93, 94, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, 60, 41, 62, 63, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 94, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 60, -1, 62, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 318, 319, 320, 321, 322, 323, 324, 93, 94, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, 94, -1, 96, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 58, 59, 60, -1, 62, 63, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, -1, 125, -1, -1, 343, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, 0, -1, 327, -1, -1, -1, 331, 332, 333, 334, 10, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 41, -1, -1, 44, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, -1, 93, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 125, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, -1, -1, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 93, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, 125, -1, 41, -1, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, 338, 41, -1, -1, 44, 343, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 338, 41, -1, -1, 44, 343, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 41, -1, -1, 44, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 125, -1, 281, 282, -1, -1, -1, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 262, 263, 264, 343, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, 125, -1, -1, -1, 93, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, 125, -1, -1, 10, 93, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 91, -1, -1, 94, 290, 291, -1, 293, 294, 295, 296, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, 124, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 343, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 290, 291, 281, 293, 294, 295, 296, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, 338, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 0, 47, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 124, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 91, -1, 0, 94, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, 41, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, 124, 125, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 125, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 0, -1, 338, 93, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 318, 319, 320, 321, 322, 323, 324, 325, -1, 327, 328, -1, -1, -1, 125, 333, 334, -1, 290, 291, 41, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 337, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 290, 291, -1, 293, 294, 295, 296, 297, 281, 0, 125, -1, -1, -1, -1, -1, -1, 290, 291, 10, 293, 294, 295, 296, 297, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, 60, 61, 62, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 0, -1, 290, 291, -1, 293, 294, 295, 296, 297, 10, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, 91, 290, 291, 94, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 124, 125, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 336, -1, -1, 339, 340, 341, 342, -1, 126, -1, 346, 347, 348, 349, 350, 351, 33, -1, 290, 291, 356, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, 59, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, }; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... |
public org.quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { org.quickfix.field.StrikePrice value = new org.quickfix.field.StrikePrice(); | public quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { quickfix.field.StrikePrice value = new quickfix.field.StrikePrice(); | public org.quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { org.quickfix.field.StrikePrice value = new org.quickfix.field.StrikePrice(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/buggy/src/java/src/quickfix/fix43/SecurityStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
5147,
24017,
2547,
5147,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
5147,
460,
273,
394,
2358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
5147,
24017,
2547,
5147,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
5147,
460,
273,
394,
2358,... |
return realThis(thisObj, f).js_toString(cx, args); | return realThis(thisObj, f).js_toString(cx, scope, args); | public Object execMethod(int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (0 <= prototypeIdShift) { switch (methodId - prototypeIdShift) { case Id_constructor: return jsConstructor(cx, scope, args); case Id_toString: return realThis(thisObj, f).js_toString(cx, args); case Id_exec: throw Context.reportRuntimeError1( "msg.cant.call.indirect", "exec"); case Id_compile: return realThis(thisObj, f). js_compile(cx, ScriptRuntime.toString(args, 0)); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/37375e32cf16d65268effed2bfea1cc25d1c3dcf/NativeScript.java/buggy/js/rhino/src/org/mozilla/javascript/NativeScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
474,
707,
548,
16,
3124,
2083,
284,
16,
1772,
9494,
16,
11794,
22780,
2146,
16,
22780,
15261,
16,
11794,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
474,
707,
548,
16,
3124,
2083,
284,
16,
1772,
9494,
16,
11794,
22780,
2146,
16,
22780,
15261,
16,
11794,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,... |
long userID = res.getLong(1); | final long userID = res.getLong(1); | public long anonymousLogin(long agentID, Connection dbConnection) throws InternalEVerlageError { PreparedStatement pstmt = null; ResultSet res = null; try { pstmt = dbConnection.prepareStatement(this.pHandler.getProperty("getNextSystemUserSeq", this)); res = pstmt.executeQuery(); if (!res.next()) { throw new InternalEVerlageError("no sequence for SystemUser found"); } long userID = res.getLong(1); pstmt.close(); pstmt = null; res.close(); res = null; pstmt = dbConnection.prepareStatement(this.pHandler.getProperty("insertSystemUser", this)); int l = 1; pstmt.setLong(l++, userID); // userID pstmt.setLong(l++, new Date().getTime()); //registration Date pstmt.setLong(l++, agentID); // agentID pstmt.setLong(l++, -1); // number of results pstmt.setLong(l++, 0); // timeout pstmt.setBoolean(l, false); // frozen pstmt.executeUpdate(); pstmt.close(); pstmt = null; l = 1; pstmt = dbConnection.prepareStatement(this.pHandler.getProperty("insertSingleUser", this)); pstmt.setLong(l++, userID); //userID pstmt.setString(l++, null); //login pstmt.setString(l++, null); //password pstmt.setString(l++, null); //email pstmt.setString(l++, null); //lastName pstmt.setString(l++, null); //firstName pstmt.setString(l++, null); // title pstmt.setBoolean(l++, true); //isGuest pstmt.setBoolean(l++, true); //isLoggedIn pstmt.executeUpdate(); pstmt.close(); pstmt = null; CAGlobal.log.info("anonymous login finished"); return userID; } catch (SQLException e) { CAGlobal.log.error(e); throw new InternalEVerlageError(e); } finally { try { if (pstmt != null) { pstmt.close(); pstmt = null; } } catch (Exception e) { } try { if (res != null) { res.close(); res = null; } } catch (Exception e) { } } } | 10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/517c419a280ade3ff4e699d8592b7a5636bf7aad/LocalUserManager.java/clean/everlage/src/de/everlage/ca/userManager/core/LocalUserManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
13236,
5358,
12,
5748,
4040,
734,
16,
4050,
1319,
1952,
13,
1216,
3186,
41,
3945,
80,
410,
668,
288,
202,
202,
29325,
293,
10589,
273,
446,
31,
202,
202,
13198,
400,
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,
225,
202,
482,
1525,
13236,
5358,
12,
5748,
4040,
734,
16,
4050,
1319,
1952,
13,
1216,
3186,
41,
3945,
80,
410,
668,
288,
202,
202,
29325,
293,
10589,
273,
446,
31,
202,
202,
13198,
400,
273... |
IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col); | IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col); | public void testBug84228() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void f( int m, int c[m][m] ); \n"); //$NON-NLS-1$ buffer.append("void f( int m, int c[m][m] ){ \n"); //$NON-NLS-1$ buffer.append(" int x; \n"); //$NON-NLS-1$ buffer.append(" { int x = x; } \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col); assertEquals(col.size(), 13); IParameter m = (IParameter) col.getName(3).resolveBinding(); IVariable x3 = (IVariable) col.getName(12).resolveBinding(); IVariable x2 = (IVariable) col.getName(11).resolveBinding(); IVariable x1 = (IVariable) col.getName(10).resolveBinding(); assertSame(x2, x3); assertNotSame(x1, x2); assertInstances(col, m, 6); assertInstances(col, x1, 1); assertInstances(col, x2, 2); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
19865,
5193,
3787,
28,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
12,
509,
312,
16,
509,
276,
63,
81,
6362,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
19865,
5193,
3787,
28,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
12,
509,
312,
16,
509,
276,
63,
81,
6362,
8... |
sql = "SET IMPLICIT_TRANSACTIONS OFF"; | sql.append("SET IMPLICIT_TRANSACTIONS OFF"); | synchronized public void setAutoCommit(boolean autoCommit) throws SQLException { checkOpen(); checkLocal("setAutoCommit"); if (!this.autoCommit) { // If we're in manual commit mode the spec requires that we commit // the transaction when setAutoCommit() is called commit(); } if (this.autoCommit == autoCommit) { // If we don't need to change the current auto commit mode, don't // submit a request return; } String sql; if (serverType == Driver.SYBASE) { if (autoCommit) { sql = "SET CHAINED OFF"; } else { sql = "SET CHAINED ON"; } } else { if (autoCommit) { sql = "SET IMPLICIT_TRANSACTIONS OFF"; } else { sql = "SET IMPLICIT_TRANSACTIONS ON"; } } baseTds.submitSQL(sql); this.autoCommit = autoCommit; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/a7013967f309892a96bc9dc9726faf4f4708f077/ConnectionJDBC2.java/buggy/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
1071,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
866,
2042,
2932,
542,
4965,
5580,
8863,
3639,
309,
16051,
2211,
18,
6079,
5580,
13,
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,
3852,
1071,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
866,
2042,
2932,
542,
4965,
5580,
8863,
3639,
309,
16051,
2211,
18,
6079,
5580,
13,
2... |
public void addNumericQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String validationType = request.getParameter("validationType"); String min = request.getParameter("min"); String max = request.getParameter("max"); String total = request.getParameter("total"); String questionText = request.getParameter("questionTxt"); Object obj = session.getAttribute("answers"); ArrayList<String> answers = null; if(obj instanceof PersistentList){ Iterator iter = ((PersistentList) obj).iterator(); answers = new ArrayList<String>(); while(iter.hasNext()){ answers.add((String) iter.next()); } } else answers = (ArrayList<String>) session.getAttribute("answers"); // now parse different params depending on the type NumberListQuestion question = new NumberListQuestion(answers.size()); question.setDescription(questionText); question.setSection(section); question.setTitle(name); question.setItems(answers); if(validationType.equals("individual")){ question.setMin(Integer.parseInt(min)); question.setMax(Integer.parseInt(max)); } else if (validationType.equals("total")){ question.setTotal(Integer.parseInt(total)); } question.setImage(image); question.setValidationType(validationType); List<Question> quests = section.getQuestions(); quests.add(question); section.setQuestions(quests); session.setAttribute("currentSection", section); session.removeAttribute("answers"); } | 54385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54385/1987aafdf9f6e92293bee44cf33ba906d200af2c/SurveyWebComponent.java/buggy/survey/src/java/ar/com/survey/web/component/SurveyWebComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
9902,
11665,
774,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
9902,
11665,
774,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
5... | ||
if (fFilteredList == null) return fFilter; else return fFilteredList.getFilter(); | if (fFilteredList == null) { return fFilter; } else { return fFilteredList.getFilter(); } | public String getFilter() { if (fFilteredList == null) return fFilter; else return fFilteredList.getFilter(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/AbstractElementListSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
12267,
1435,
288,
3639,
309,
261,
74,
14478,
682,
422,
446,
13,
5411,
327,
284,
1586,
31,
3639,
469,
5411,
327,
284,
14478,
682,
18,
588,
1586,
5621,
565,
289,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
12267,
1435,
288,
3639,
309,
261,
74,
14478,
682,
422,
446,
13,
5411,
327,
284,
1586,
31,
3639,
469,
5411,
327,
284,
14478,
682,
18,
588,
1586,
5621,
565,
289,
2,
-100,
-100,... |
if ((filter == null) || (locales == null)) { | if ((available == null) || (defaults == null)) { | public Locale getBestMatchingLocale(Locale requestedLocale, List locales, Collection filter) { if ((filter == null) || (locales == null)) { return null; } Locale result = null; int max = -1; for (int i = -1; i < locales.size(); i++) { Locale locale = (i < 0) ? requestedLocale : (Locale)locales.get(i); if (locale != null) { for (Iterator j = filter.iterator(); j.hasNext();) { int m = match(locale, (Locale)j.next()); if (m > max) { max = m; result = locale; } } } } if (max < 0) { return null; } return new Locale(result.getLanguage(), (max > 1) ? result.getCountry() : "", (max > 2) ? result.getVariant() : ""); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/80a08702c750450b00493cf8797caa41b4eca16b/CmsLocaleManager.java/clean/src/org/opencms/i18n/CmsLocaleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6458,
28782,
9517,
3916,
12,
3916,
3764,
3916,
16,
987,
6922,
16,
2200,
1034,
13,
288,
3639,
309,
14015,
5699,
422,
446,
13,
747,
261,
7606,
422,
446,
3719,
288,
5411,
327,
446,
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,
6458,
28782,
9517,
3916,
12,
3916,
3764,
3916,
16,
987,
6922,
16,
2200,
1034,
13,
288,
3639,
309,
14015,
5699,
422,
446,
13,
747,
261,
7606,
422,
446,
3719,
288,
5411,
327,
446,
3... |
this.status.mapProgress += (progressDelta / maps.length); | this.status.setMapProgress((float) (this.status.mapProgress() + progressDelta / maps.length)); | public synchronized void updateTaskStatus(TaskInProgress tip, TaskStatus status, JobTrackerMetrics metrics) { double oldProgress = tip.getProgress(); // save old progress boolean wasRunning = tip.isRunning(); boolean wasComplete = tip.isComplete(); boolean change = tip.updateStatus(status); if (change) { if (status.getRunState() == TaskStatus.SUCCEEDED) { completedTask(tip, status, metrics); } else if (status.getRunState() == TaskStatus.FAILED) { // Tell the job to fail the relevant task failedTask(tip, status.getTaskId(), status, status.getTaskTracker(), wasRunning, wasComplete); } } // // Update JobInProgress status // LOG.debug("Taking progress for " + tip.getTIPId() + " from " + oldProgress + " to " + tip.getProgress()); double progressDelta = tip.getProgress() - oldProgress; if (tip.isMapTask()) { if (maps.length == 0) { this.status.setMapProgress(1.0f); } else { this.status.mapProgress += (progressDelta / maps.length); } } else { if (reduces.length == 0) { this.status.setReduceProgress(1.0f); } else { this.status.reduceProgress += (progressDelta / reduces.length); } } } | 49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/38326245188b0de6dc75d1c182b4f1b706107d10/JobInProgress.java/clean/src/java/org/apache/hadoop/mapred/JobInProgress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
2174,
1482,
12,
2174,
13434,
9529,
16,
4766,
9079,
29628,
1267,
16,
4766,
2868,
3956,
8135,
5653,
4309,
13,
288,
3639,
1645,
1592,
5491,
273,
9529,
18,
588,
5491,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
2174,
1482,
12,
2174,
13434,
9529,
16,
4766,
9079,
29628,
1267,
16,
4766,
2868,
3956,
8135,
5653,
4309,
13,
288,
3639,
1645,
1592,
5491,
273,
9529,
18,
588,
5491,
5... |
data.db.commit(); | if (!meta.isAutoCommit()) { data.db.commit(); } | public void dispose(StepMetaInterface smi, StepDataInterface sdi) { meta = (DBProcMeta)smi; data = (DBProcData)sdi; try { data.db.commit(); } catch(KettleDatabaseException e) { logError(Messages.getString("DBProc.Log.CommitError")+e.getMessage()); } data.db.disconnect(); super.dispose(smi, sdi); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/5f5ade1bf3753d72f56fc0d1b9aac12d8fbd80f2/DBProc.java/clean/src/be/ibridge/kettle/trans/step/dbproc/DBProc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
202,
95,
202,
565,
2191,
273,
261,
2290,
15417,
2781,
13,
4808,
77,
31,
202,
565,
501,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
202,
95,
202,
565,
2191,
273,
261,
2290,
15417,
2781,
13,
4808,
77,
31,
202,
565,
501,
273,
2... |
public void testSeldirs() { ModifiedSelector s = (ModifiedSelector)getSelector(); try { makeBed(); StringBuffer sbTrue = new StringBuffer(); StringBuffer sbFalse = new StringBuffer(); for (int i=0; i<filenames.length; i++) { if (files[i].isDirectory()) { sbTrue.append("T"); sbFalse.append("F"); } else { sbTrue.append("T"); sbFalse.append("T"); } } s.setSeldirs(true); performTests(s, sbTrue.toString()); s.getCache().delete(); s.setSeldirs(false); performTests(s, sbFalse.toString()); s.getCache().delete(); } finally { cleanupBed(); if (s!=null) s.getCache().delete(); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/590844e775f322377fe9d9dbb7137ed465d625d9/ModifiedSelectorTest.java/buggy/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
55,
488,
10539,
1435,
95,
4575,
19277,
28657,
4575,
4320,
13,
588,
4320,
5621,
698,
95,
6540,
38,
329,
5621,
780,
13699,
70,
5510,
33,
2704,
780,
1892,
5621,
780,
13699,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
55,
488,
10539,
1435,
95,
4575,
19277,
28657,
4575,
4320,
13,
588,
4320,
5621,
698,
95,
6540,
38,
329,
5621,
780,
13699,
70,
5510,
33,
2704,
780,
1892,
5621,
780,
13699,
70,
... | ||
public void run(IProgressMonitor monitor) { | protected IStatus run(IProgressMonitor monitor) { final MultiStatus status = new MultiStatus( PlatformUI.PLUGIN_ID, 0, IDEWorkbenchMessages.getString("GlobalBuildAction.buildProblems"), null); | public void run(IProgressMonitor monitor) { monitor.beginTask("", 1); //$NON-NLS-1$ // Fix for bug 31768 - Don't provide a task name in beginTask // as it will be appended to each subTask message. Need to // call setTaskName as its the only was to assure the task name is // set in the monitor (see bug 31824) monitor.setTaskName(getOperationMessage()); try { ResourcesPlugin.getWorkspace().build(buildType, new SubProgressMonitor(monitor,1)); } catch (CoreException e) { status.add(e.getStatus()); } finally { monitor.done(); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/95973f860ff3af2402d44fc73e1c17a0708ed1a8/GlobalBuildAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
10259,
18,
10086,
2174,
2932,
3113,
404,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
12139,
364,
7934,
890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
10259,
18,
10086,
2174,
2932,
3113,
404,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
12139,
364,
7934,
890... |
GrouperLog.debug(LOG, s, msg + ": not visible"); | public static Group findByName(GrouperSession s, String name) throws GroupNotFoundException { GrouperSession.validate(s); Group g = _findByName(name); g.setSession(s); try { PrivilegeResolver.getInstance().canVIEW(s, g, s.getSubject()); return g; } catch (InsufficientPrivilegeException eIP) { // Ignore } throw new GroupNotFoundException(E_GNF + " by name: " + name); } // public static Group findByName(s, name) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/473d91a4aab6bcc7ec60568e2da0e57ed98d0cbb/GroupFinder.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/GroupFinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3756,
264,
1343,
18,
4148,
12,
4842,
16,
272,
16,
1234,
397,
6398,
486,
6021,
8863,
3756,
264,
1343,
18,
4148,
12,
4842,
16,
272,
16,
1234,
397,
6398,
486,
6021,
8863,
1071,
1114,
264,
1343,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3756,
264,
1343,
18,
4148,
12,
4842,
16,
272,
16,
1234,
397,
6398,
486,
6021,
8863,
3756,
264,
1343,
18,
4148,
12,
4842,
16,
272,
16,
1234,
397,
6398,
486,
6021,
8863,
1071,
1114,
264,
1343,... | |
String name = jConstant.getName(); if (_constants.get(name) != null) { String err = "duplicate name found: " + name; throw new IllegalArgumentException(err); } _constants.put(name, jConstant); } | String name = jConstant.getName(); if (_constants.get(name) != null) { String err = "duplicate name found: " + name; throw new IllegalArgumentException(err); } _constants.put(name, jConstant); } | public void addConstant(JEnumConstant jConstant) throws IllegalArgumentException { if (jConstant == null) { throw new IllegalArgumentException("Enum fields cannot be null"); } String name = jConstant.getName(); if (_constants.get(name) != null) { String err = "duplicate name found: " + name; throw new IllegalArgumentException(err); } _constants.put(name, jConstant); } //-- addConstant | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JEnum.java/clean/castor/trunk/src/main/java/org/exolab/javasource/JEnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6902,
12,
46,
3572,
6902,
525,
6902,
13,
202,
202,
15069,
2754,
225,
202,
95,
202,
202,
430,
261,
78,
6902,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6902,
12,
46,
3572,
6902,
525,
6902,
13,
202,
202,
15069,
2754,
225,
202,
95,
202,
202,
430,
261,
78,
6902,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
3... |
protected void translateBioEntity(Item srcItem, Item tgtItem) throws ObjectStoreException { Item gene = new Item(); Item vector = new Item(); Item synonym = new Item(); String s = null; String identifier = null; if (srcItem.hasReference("type")) { Item item = ItemHelper.convert(srcItemReader.getItemById( srcItem.getReference("type").getRefId())); if (item.hasAttribute("value")) { s = item.getAttribute("value").getValue(); if (s.equals("genomic_DNA")) { tgtItem.setClassName(tgtNs + "NuclearDNA"); } else if (s.equals("cDNA_clone")) { tgtItem.setClassName(tgtNs + "CDNAClone"); } else if (s.equals("vector")) { tgtItem.setClassName(tgtNs + "Vector"); } else { tgtItem = null; } } } // prefetch done if (srcItem.hasCollection("sequenceDatabases")) { ReferenceList rl = srcItem.getCollection("sequenceDatabases"); identifier = null; List geneList = new ArrayList(); List emblList = new ArrayList(); for (Iterator i = rl.getRefIds().iterator(); i.hasNext(); ) { Item dbEntryItem = ItemHelper.convert(srcItemReader. getItemById((String) i.next())); if (dbEntryItem.hasReference("database")) { Item dbItem = ItemHelper.convert(srcItemReader.getItemById( (String) dbEntryItem.getReference("database").getRefId())); String synonymSourceId = dbItem.getIdentifier(); if (dbItem.hasAttribute("name")) { String dbName = dbItem.getAttribute("name").getValue(); String organismDbId = dbEntryItem.getAttribute("accession").getValue(); if (dbName.equals("flybase") && organismDbId.startsWith("FBgn")) { gene = createGene(tgtNs + "Gene", "", dbEntryItem.getIdentifier(), organismDbId); geneList.add(dbItem.getIdentifier()); // } else if (dbName.equals("flybase") // && organismDbId.startsWith("FBmc")) { // tgtItem.addAttribute(new Attribute("organismDbId", organismDbId)); } else if (dbName.equals("embl") && dbEntryItem.hasAttribute("accession")) { String accession = dbEntryItem.getAttribute("accession").getValue(); //make sure synonym only create once for same accession if (!synonymAccession.contains(accession)) { emblList.add(dbEntryItem.getIdentifier()); synonym = createSynonym(dbEntryItem, synonymSourceId, srcItem.getIdentifier()); synonymAccession.add(accession); //Set synonymMap.put(dbEntryItem.getIdentifier(), synonym); synonymAccessionMap.put(accession, synonym); } // result.add(synonym); } else { //getDatabaseRef(); } } } } if (!geneList.isEmpty()) { geneSet.add(gene); gene2BioEntity.put(gene.getIdentifier(), srcItem.getIdentifier()); } if (!emblList.isEmpty()) { ReferenceList synonymEmblRl = new ReferenceList("synonyms", emblList); tgtItem.addCollection(synonymEmblRl); } } if (tgtItem != null) { bioEntitySet.add(tgtItem); } } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/11c0a0dafffa8a659e33f87e48d1369008f567a2/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4204,
38,
1594,
1943,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
565,
1216,
1033,
21151,
288,
565,
4342,
7529,
273,
394,
4342,
5621,
565,
4342,
3806,
273,
394,
4342,
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,
282,
4750,
918,
4204,
38,
1594,
1943,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
565,
1216,
1033,
21151,
288,
565,
4342,
7529,
273,
394,
4342,
5621,
565,
4342,
3806,
273,
394,
4342,
5621... | ||
return e.apply(sourcef, lineNof, columnNof, funcBodyf, paramNamesf, argumentsf); | return e.apply(funcBodyf, paramNamesf, argumentsf); | public Object apply(String lang, String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) throws BSFException { final BSFEngine e = loadScriptingEngine(lang); final String sourcef = source; final int lineNof = lineNo, columnNof = columnNo; final Object funcBodyf = funcBody; final Vector paramNamesf = paramNames; final Vector argumentsf = arguments; Object result = null; try { final Object resultf = AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Exception { return e.apply(sourcef, lineNof, columnNof, funcBodyf, paramNamesf, argumentsf); } }); result = resultf; } catch (PrivilegedActionException prive) { throw (BSFException) prive.getException(); } return result; } | 50120 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50120/0e0a92725e39ed3115b66601c360ede7b4c6fa5c/BSFManager.java/buggy/src/org/apache/bsf/BSFManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2230,
12,
780,
3303,
16,
13491,
514,
1084,
16,
13491,
509,
980,
2279,
16,
13491,
509,
1057,
2279,
16,
13491,
1033,
1326,
2250,
16,
13491,
5589,
579,
1557,
16,
13491,
5589,
177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2230,
12,
780,
3303,
16,
13491,
514,
1084,
16,
13491,
509,
980,
2279,
16,
13491,
509,
1057,
2279,
16,
13491,
1033,
1326,
2250,
16,
13491,
5589,
579,
1557,
16,
13491,
5589,
177... |
public ACL(String path) throws AFSException | private ACL() | public ACL(String path) throws AFSException { int numberPositiveEntries = 0; int numberNegativeEntries = 0; ACL.Entry aclEntry; String buffer; this.path = path; StringTokenizer st = new StringTokenizer(getACLString(path), "\n\t"); buffer = st.nextToken(); numberPositiveEntries = new Integer(buffer).intValue(); positiveEntries = new ACL.Entry[numberPositiveEntries]; buffer = st.nextToken(); numberNegativeEntries = new Integer(buffer).intValue(); negativeEntries = new ACL.Entry[numberNegativeEntries]; for(int i = 0; i < numberPositiveEntries; i++) { aclEntry = new ACL.Entry(); aclEntry.setUser(st.nextToken()); aclEntry.setPermissions(new Integer(st.nextToken()).intValue()); positiveEntries[i] = aclEntry; } for(int i = 0; i < numberNegativeEntries; i++) { aclEntry = new ACL.Entry(); aclEntry.setUser(st.nextToken()); aclEntry.setPermissions(new Integer(st.nextToken()).intValue()); negativeEntries[i] = aclEntry; } } | 46627 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46627/af1a0ea039223063b582cb44e55a4b58d1ec2836/ACL.java/buggy/src/JAVA/classes/org/openafs/jafs/ACL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
10098,
1435,
225,
288,
565,
509,
1300,
14900,
5400,
273,
374,
31,
565,
509,
1300,
14959,
5400,
273,
374,
31,
565,
10098,
18,
1622,
7895,
1622,
31,
565,
514,
1613,
31,
565,
333,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
10098,
1435,
225,
288,
565,
509,
1300,
14900,
5400,
273,
374,
31,
565,
509,
1300,
14959,
5400,
273,
374,
31,
565,
10098,
18,
1622,
7895,
1622,
31,
565,
514,
1613,
31,
565,
333,
18... |
IDE.openEditor( page, file, IDETemplateEditor.ID,true ); | IEditorPart editorPart = IDE.openEditor( page, file, IDETemplateEditor.ID,true ); setReportSettings(((IDEReportEditor)editorPart).getModel()); editorPart.doSave(null); | private void doFinish( IPath containerName, String fileName, InputStream stream, IProgressMonitor monitor ) throws CoreException { // create a sample file monitor.beginTask( CREATING + fileName, 2 ); IResource resource = (IContainer) ResourcesPlugin.getWorkspace( ) .getRoot( ) .findMember( containerName ); IContainer container = null; if ( resource == null || !resource.exists( ) || !( resource instanceof IContainer ) ) { // create folder if not exist IFolder folder = createFolderHandle( containerName ); UIUtil.createFolder( folder, monitor ); container = folder; } else { container = (IContainer) resource; } final IFile file = container.getFile( new Path( fileName ) ); try { if ( file.exists( ) ) { file.setContents( stream, true, true, monitor ); } else { file.create( stream, true, monitor ); } stream.close( ); } catch ( IOException e ) { } monitor.worked( 1 ); monitor.setTaskName( OPENING_FILE_FOR_EDITING ); getShell( ).getDisplay( ).asyncExec( new Runnable( ) { public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IDE.openEditor( page, file, IDETemplateEditor.ID,true ); BasicNewProjectResourceWizard.updatePerspective( getConfigElement() ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } ); monitor.worked( 1 ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3e0d05ef79eee05e482cd34050fc3688a513255c/NewTemplateWizard.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewTemplateWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
20408,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
1082,
202,
45,
5491,
7187,
6438,
262,
1216,
30015,
202,
95,
202,
202,
759,
752,
279,
3296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
20408,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
1082,
202,
45,
5491,
7187,
6438,
262,
1216,
30015,
202,
95,
202,
202,
759,
752,
279,
3296,... |
public static IReportElementInstance getInstance( IElement element, ExecutionContext context ) { if ( element == null ) return null; // No row data available if ( element instanceof CellContent ) return new CellInstance( ( CellContent ) element, null, context ); if ( element instanceof DataContent ) return new DataItemInstance( ( DataContent ) element, context ); if ( element instanceof ImageContent ) return new ImageInstance( ( ImageContent ) element, context ); if ( element instanceof LabelContent ) return new LabelInstance( ( LabelContent ) element, context ); if ( element instanceof ContainerContent ) return new ListInstance( ( ContainerContent ) element, context ); // No row data available if ( element instanceof RowContent ) return new RowInstance( ( RowContent ) element, null, context ); if ( element instanceof TableContent ) { Object genBy = ( ( TableContent ) element ).getGenerateBy( ); if ( genBy instanceof TableItemDesign ) return new TableInstance( ( TableContent ) element, context ); else if ( genBy instanceof GridItemDesign ) return new GridInstance( ( TableContent ) element, context ); } if ( element instanceof TextContent ) return new TextItemInstance( ( TextContent ) element, context ); if ( element instanceof ForeignContent ) { ForeignContent fc = ( ForeignContent ) element; if ( IForeignContent.HTML_TYPE.equals( fc.getRawType( ) ) || IForeignContent.TEXT_TYPE.equals( fc.getRawType( ) ) || IForeignContent.TEMPLATE_TYPE.equals( fc.getRawType( ) ) ) return new TextItemInstance( fc, context ); } if ( element instanceof TableBandContent ) { return getInstance( element.getParent( ), context ); } return null; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c332d326b9697aa0e37846b9b0c7fd09f3641e6f/ElementUtil.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ElementUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
4820,
1046,
1442,
3694,
12,
467,
1046,
930,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
430,
261,
930,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
4820,
1046,
1442,
3694,
12,
467,
1046,
930,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
430,
261,
930,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
20... | ||
Node root = getCommonAncestorContainer(); | public void surroundContents(Node newParent) throws DOMException, RangeException { if (newParent==null) return; int type = newParent.getNodeType(); if (fDocument.errorChecking) { if (fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if (type == Node.ATTRIBUTE_NODE || type == Node.ENTITY_NODE || type == Node.NOTATION_NODE || type == Node.DOCUMENT_TYPE_NODE || type == Node.DOCUMENT_NODE || type == Node.DOCUMENT_FRAGMENT_NODE) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } } Node root = getCommonAncestorContainer(); Node realStart = fStartContainer; Node realEnd = fEndContainer; if (fStartContainer.getNodeType() == Node.TEXT_NODE) { realStart = fStartContainer.getParentNode(); } if (fEndContainer.getNodeType() == Node.TEXT_NODE) { realEnd = fEndContainer.getParentNode(); } if (realStart != realEnd) { throw new RangeExceptionImpl( RangeException.BAD_BOUNDARYPOINTS_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "BAD_BOUNDARYPOINTS_ERR", null)); } DocumentFragment frag = extractContents(); insertNode(newParent); newParent.appendChild(frag); selectNode(newParent); } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/03e9355e790d7a38acf7df1c786f6e96dcfcec27/RangeImpl.java/buggy/src/org/apache/xerces/dom/RangeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5056,
2260,
6323,
12,
907,
24818,
13,
3639,
1216,
4703,
503,
16,
8086,
503,
565,
288,
3639,
309,
261,
2704,
3054,
631,
2011,
13,
327,
31,
3639,
509,
618,
273,
24818,
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,
5056,
2260,
6323,
12,
907,
24818,
13,
3639,
1216,
4703,
503,
16,
8086,
503,
565,
288,
3639,
309,
261,
2704,
3054,
631,
2011,
13,
327,
31,
3639,
509,
618,
273,
24818,
18,
588,... | |
String prop = controller.getCmsObject().readPropertyObject( controller.getCmsObject().getRequestContext().getUri(), m_property, true).getValue(); | String prop = cms.readPropertyObject(cms.getRequestContext().getUri(), m_property, true).getValue(); | public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); ServletResponse res = pageContext.getResponse(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); String target = null; // Try to find out what to do if (m_target != null) { // Option 1: target is set with "page" or "file" parameter target = m_target + getSuffix(); } else if (m_property != null) { // Option 2: target is set with "property" parameter if (DEBUG) { System.err.println("IncludeTag: property=" + m_property); } try { String prop = controller.getCmsObject().readPropertyObject( controller.getCmsObject().getRequestContext().getUri(), m_property, true).getValue(); if (DEBUG) { System.err.println("IncludeTag: property=" + m_property + " is " + prop); } if (prop != null) { target = prop + getSuffix(); } } catch (Exception e) { // target will be null } } else if (m_attribute != null) { // Option 3: target is set in "attribute" parameter try { String attr = (String)req.getAttribute(m_attribute); if (attr != null) { target = attr + getSuffix(); } } catch (Exception e) { // target will be null } } else { // Option 4: target might be set in body String body = null; if (getBodyContent() != null) { body = getBodyContent().getString(); if ((body != null) && (!"".equals(body.trim()))) { // target IS set in body target = body + getSuffix(); } // else target is not set at all, default will be used } } // now perform the include action includeTagAction(pageContext, target, m_element, m_editable, m_parameterMap, req, res); // must call release here manually to make sure m_parameterMap is cleared release(); } return EVAL_PAGE; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ddc56fc5c5eded06965e63995ea01e3e542bccd5/CmsJspTagInclude.java/clean/src/org/opencms/jsp/CmsJspTagInclude.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
288,
3639,
26470,
1111,
273,
21442,
18,
588,
691,
5621,
3639,
7971,
1064,
400,
273,
21442,
18,
588,
1064,
5621,
3639,
368,
1220,
903,
3712,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
25633,
1435,
1216,
27485,
288,
3639,
26470,
1111,
273,
21442,
18,
588,
691,
5621,
3639,
7971,
1064,
400,
273,
21442,
18,
588,
1064,
5621,
3639,
368,
1220,
903,
3712,
506,
... |
else return Peer.getHostName(overrideIPAddress); | else return overrideIPAddress.toString(); | public String get() { if(overrideIPAddress == null) return ""; else return Peer.getHostName(overrideIPAddress); } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
514,
336,
1435,
288,
9506,
202,
430,
12,
10601,
22507,
422,
446,
13,
327,
1408,
31,
9506,
202,
12107,
327,
10669,
18,
588,
20946,
12,
10601,
22507,
1769,
1082,
202,
97,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
514,
336,
1435,
288,
9506,
202,
430,
12,
10601,
22507,
422,
446,
13,
327,
1408,
31,
9506,
202,
12107,
327,
10669,
18,
588,
20946,
12,
10601,
22507,
1769,
1082,
202,
97,
2,
-1... |
return jjMoveStringLiteralDfa1_0(0x4000000L); | return jjMoveStringLiteralDfa1_0(0x20000000L); | private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 33: jjmatchedKind = 41; return jjMoveStringLiteralDfa1_0(0x10000000000L); case 35: jjmatchedKind = 15; return jjMoveStringLiteralDfa1_0(0x5000L); case 37: return jjStopAtPos(0, 32); case 38: return jjMoveStringLiteralDfa1_0(0x200000000L); case 40: return jjStopAtPos(0, 5); case 42: return jjStopAtPos(0, 30); case 43: return jjStopAtPos(0, 29); case 44: return jjStopAtPos(0, 3); case 45: return jjStartNfaWithStates_0(0, 28, 31); case 46: return jjMoveStringLiteralDfa1_0(0x10L); case 47: return jjStopAtPos(0, 31); case 60: jjmatchedKind = 35; return jjMoveStringLiteralDfa1_0(0x1000000000L); case 61: jjmatchedKind = 42; return jjMoveStringLiteralDfa1_0(0x8000000000L); case 62: jjmatchedKind = 37; return jjMoveStringLiteralDfa1_0(0x4000000000L); case 91: return jjStopAtPos(0, 1); case 93: return jjStopAtPos(0, 2); case 102: return jjMoveStringLiteralDfa1_0(0x4000000L); case 116: return jjMoveStringLiteralDfa1_0(0x2000000L); case 124: return jjMoveStringLiteralDfa1_0(0x400000000L); default : return jjMoveNfa_0(0, 0); }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
20170,
31,
540,
327,
10684,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
20170,
31,
540,
327,
10684,
76... |
c.setTimeZone(TimeZone.getTimeZone(ITracRepository.TIME_ZONE)); | c.setTimeZone(TimeZone.getTimeZone(ITracClient.TIME_ZONE)); | private Date parseTracDate(int seconds) { Calendar c = Calendar.getInstance(); c.setTimeZone(TimeZone.getTimeZone(ITracRepository.TIME_ZONE)); c.setTimeInMillis(seconds * 1000l); return c.getTime(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/71be506b72eef5cb8ebb44a55e030008a4a9866e/TracTicket.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/model/TracTicket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2167,
1109,
1609,
71,
1626,
12,
474,
3974,
13,
288,
202,
202,
7335,
276,
273,
5542,
18,
588,
1442,
5621,
202,
202,
71,
18,
542,
16760,
12,
16760,
18,
588,
16760,
12,
1285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2167,
1109,
1609,
71,
1626,
12,
474,
3974,
13,
288,
202,
202,
7335,
276,
273,
5542,
18,
588,
1442,
5621,
202,
202,
71,
18,
542,
16760,
12,
16760,
18,
588,
16760,
12,
1285,
... |
return new Long(file.lastModified()); | return file.exists() ? Boolean.TRUE : Boolean.FALSE; | public Object run() { return new Long(file.lastModified()); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/8dc8f02aab3c0365988625943861dc45226d4ba8/SecureAction.java/buggy/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/framework/util/SecureAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
1086,
1435,
288,
9506,
202,
2463,
394,
3407,
12,
768,
18,
2722,
4575,
10663,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
1033,
1086,
1435,
288,
9506,
202,
2463,
394,
3407,
12,
768,
18,
2722,
4575,
10663,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
final Item item = VirtualStack.createStack(type); | final Item item = ifac.createStack(type); | final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack.push(item); } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
918,
1817,
1595,
12,
559,
2624,
268,
3772,
13,
288,
202,
202,
430,
14015,
88,
3772,
480,
446,
13,
597,
401,
88,
3772,
18,
291,
1921,
10756,
288,
1082,
202,
6385,
509,
963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6385,
918,
1817,
1595,
12,
559,
2624,
268,
3772,
13,
288,
202,
202,
430,
14015,
88,
3772,
480,
446,
13,
597,
401,
88,
3772,
18,
291,
1921,
10756,
288,
1082,
202,
6385,
509,
963,
... |
public void testUpgradeRevision3952ToCurrent() throws Exception { if (!isDBTestEnabled()) { return; } String newCreate = m_installer.m_create_sql; URL sql = getClass().getResource("/create.sql-revision-3952"); assertNotNull("Could not find create.sql", sql); m_installer.m_create_sql = sql.getFile(); // First pass. m_installer.createSequences(); m_installer.createTables(); m_installer.m_create_sql = newCreate; // Second pass. m_installer.createSequences(); m_installer.createTables(); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/9c0a59382d378a750edf84524762ab71e335b4b3/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10784,
7939,
5520,
9401,
774,
3935,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
7734,
514,
394,
1684,
273,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10784,
7939,
5520,
9401,
774,
3935,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
7734,
514,
394,
1684,
273,
312,
... | ||
EquinoxRegistryStrategy registryStrategy = new EquinoxRegistryStrategy(theStorageDir, configuration.isReadOnly(), registryKey); defaultRegistry = RegistryFactory.createRegistry(registryStrategy, registryKey); | EquinoxRegistryStrategy registryStrategy = new EquinoxRegistryStrategy(theStorageDir, configuration.isReadOnly(), masterRegistryKey); defaultRegistry = RegistryFactory.createRegistry(registryStrategy, masterRegistryKey, userRegistryKey); | public void startRegistry() throws CoreException { // see if the customer suppressed the creation of default registry String property = bundleContext.getProperty(IRegistryConstants.PROP_DEFAULT_REGISTRY); if (property != null && property.equalsIgnoreCase("false")) return; Location configuration = OSGIUtils.getDefault().getConfigurationLocation(); File theStorageDir = new File(configuration.getURL().getPath() + '/' + STORAGE_DIR); EquinoxRegistryStrategy registryStrategy = new EquinoxRegistryStrategy(theStorageDir, configuration.isReadOnly(), registryKey); defaultRegistry = RegistryFactory.createRegistry(registryStrategy, registryKey); registryRegistration = Activator.getContext().registerService(IExtensionRegistry.class.getName(), defaultRegistry, new Hashtable()); defaultProvider = new RegistryProviderOSGI(); // Set the registry provider and specify this as a default registry: RegistryFactory.setRegistryProvider(defaultProvider); } | 13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/eb88d1be51216bbe291ecaf48f22a3faf77c1e8e/Activator.java/buggy/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/osgi/Activator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
4243,
1435,
1216,
30015,
288,
202,
202,
759,
2621,
309,
326,
6666,
24448,
326,
6710,
434,
805,
4023,
202,
202,
780,
1272,
273,
3440,
1042,
18,
588,
1396,
12,
45,
424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
4243,
1435,
1216,
30015,
288,
202,
202,
759,
2621,
309,
326,
6666,
24448,
326,
6710,
434,
805,
4023,
202,
202,
780,
1272,
273,
3440,
1042,
18,
588,
1396,
12,
45,
424... |
AST tmp2461_AST_in = (AST)_t; | AST tmp2462_AST_in = (AST)_t; | public final void grant_rev_opt(AST _t) throws RecognitionException { AST grant_rev_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t2306 = _t; AST tmp2453_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVILEGES: { AST tmp2454_AST_in = (AST)_t; match(_t,PRIVILEGES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2306; _t = _t.getNextSibling(); break; } case DELETE_KW: case INSERT: case SELECT: case UPDATE: case COMMA: { { int _cnt2314=0; _loop2314: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { AST tmp2455_AST_in = (AST)_t; match(_t,SELECT); _t = _t.getNextSibling(); break; } case INSERT: { AST tmp2456_AST_in = (AST)_t; match(_t,INSERT); _t = _t.getNextSibling(); break; } case DELETE_KW: { AST tmp2457_AST_in = (AST)_t; match(_t,DELETE_KW); _t = _t.getNextSibling(); break; } case UPDATE: { AST __t2309 = _t; AST tmp2458_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t2311 = _t; AST tmp2459_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp2460_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2313: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2461_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop2313; } } while (true); } AST tmp2462_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2311; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2309; _t = _t.getNextSibling(); break; } case COMMA: { AST tmp2463_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); break; } default: { if ( _cnt2314>=1 ) { break _loop2314; } else {throw new NoViableAltException(_t);} } } _cnt2314++; } while (true); } break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
7936,
67,
9083,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7936,
67,
9083,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
7936,
67,
9083,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7936,
67,
9083,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... |
public Object[] locateServices(String arg0) { return null; | public Object[] locateServices(String name) { DependencyManager dm = getDependencyManager(name); if (dm == null || dm.m_boundServicesRefs.isEmpty()) { return null; } Object[] services = new Object[dm.m_boundServicesRefs.size()]; Iterator it = dm.m_boundServicesRefs.iterator(); for (int i=0; i < services.length && it.hasNext(); i++) { ServiceReference ref = (ServiceReference) it.next(); services[i] = getBundleContext().getService(ref); } return services; | public Object[] locateServices(String arg0) { // TODO implement this method return null; } | 45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/7483bae42b120c39323b1e478f57e7f5df9fabdc/ComponentManagerImpl.java/buggy/scr/src/main/java/org/apache/felix/scr/ComponentManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
1033,
8526,
10627,
5676,
12,
780,
1501,
20,
13,
288,
377,
202,
202,
759,
2660,
2348,
333,
707,
377,
202,
202,
2463,
446,
31,
377,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
1033,
8526,
10627,
5676,
12,
780,
1501,
20,
13,
288,
377,
202,
202,
759,
2660,
2348,
333,
707,
377,
202,
202,
2463,
446,
31,
377,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
finally | int lineCount = offsetMgr.getLineCount(); if(lineCount - 1 == lineIndex) offsetMgr.setFirstInvalidLineContext(-1); else if(nextLineRequested) offsetMgr.setFirstInvalidLineContext(lineIndex + 1); else if(firstInvalidLineContext == -1) /* do nothing */; else | public void markTokens(int lineIndex, TokenHandler tokenHandler) { Segment seg; if(SwingUtilities.isEventDispatchThread()) seg = this.seg; else seg = new Segment(); try { writeLock(); if(lineIndex < 0 || lineIndex >= offsetMgr.getLineCount()) throw new ArrayIndexOutOfBoundsException(lineIndex); int firstInvalidLineContext = offsetMgr.getFirstInvalidLineContext(); int start; if(textMode || firstInvalidLineContext == -1) { start = lineIndex; } else { start = Math.min(firstInvalidLineContext, lineIndex); } if(Debug.TOKEN_MARKER_DEBUG) Log.log(Log.DEBUG,this,"tokenize from " + start + " to " + lineIndex); for(int i = start; i <= lineIndex; i++) { getLineText(i,seg); TokenMarker.LineContext context = offsetMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; String oldSpanEndSubst; if(context == null) { //System.err.println(i + ": null context"); oldRule = null; oldRules = null; oldSpanEndSubst = null; } else { oldRule = context.inRule; oldRules = context.rules; oldSpanEndSubst = (context.parent != null ? context.parent.spanEndSubst : null); } TokenMarker.LineContext prevContext = ( (i == 0 || textMode) ? null : offsetMgr.getLineContext(i - 1) ); context = tokenMarker.markTokens(prevContext, (i == lineIndex ? tokenHandler : DummyTokenHandler.INSTANCE),seg); offsetMgr.setLineContext(i,context); // Could incorrectly be set to 'false' with // recursive delegates, where the chaining might // have changed but not the rule set in question (?) if(oldRule != context.inRule) { nextLineRequested = true; } else if(oldRules != context.rules) { nextLineRequested = true; } else if(!MiscUtilities.objectsEqual(oldSpanEndSubst, context.spanEndSubst)) { nextLineRequested = true; } } int lineCount = offsetMgr.getLineCount(); if(lineCount - 1 == lineIndex) offsetMgr.setFirstInvalidLineContext(-1); else if(nextLineRequested) offsetMgr.setFirstInvalidLineContext(lineIndex + 1); else { offsetMgr.setFirstInvalidLineContext(Math.max( firstInvalidLineContext,lineIndex + 1)); } } finally { writeUnlock(); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3bc1f67dd057b99582568bdd58cb868f91f12b76/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2267,
5157,
12,
474,
980,
1016,
16,
3155,
1503,
1147,
1503,
13,
202,
95,
202,
202,
4131,
2291,
31,
202,
202,
430,
12,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2267,
5157,
12,
474,
980,
1016,
16,
3155,
1503,
1147,
1503,
13,
202,
95,
202,
202,
4131,
2291,
31,
202,
202,
430,
12,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
... |
HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + "." + configName); | HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + '.' + configName); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { SubConfig[] sc = config.getConfigs(); Arrays.sort(sc); boolean advancedEnabled = core.isAdvancedDarknetEnabled(); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet Node Configuration of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); contentNode.addChild(core.alerts.createSummary()); if(advancedEnabled){ HTMLNode navigationBar = ctx.getPageMaker().getInfobox("navbar", "Configuration Navigation"); HTMLNode navigationContent = ctx.getPageMaker().getContentNode(navigationBar).addChild("ul"); for(int i=0; i<sc.length;i++){ navigationContent.addChild("li").addChild("a", "href", "#"+sc[i].getPrefix(), sc[i].getPrefix()); } contentNode.addChild(navigationBar); } HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-normal"); infobox.addChild("div", "class", "infobox-header", "Freenet node configuration"); HTMLNode configNode = infobox.addChild("div", "class", "infobox-content"); HTMLNode formNode = configNode.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); formNode.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); for(int i=0; i<sc.length;i++){ short displayedConfigElements = 0; Option[] o = sc[i].getOptions(); HTMLNode configGroupUlNode = new HTMLNode("ul", "class", "config"); for(int j=0; j<o.length; j++){ if(! (!advancedEnabled && o[j].isExpert())){ displayedConfigElements++; String configName = o[j].getName(); HTMLNode configItemNode = configGroupUlNode.addChild("li"); configItemNode.addChild("span", "class", "configshortdesc", o[j].getShortDesc()); HTMLNode configItemValueNode = configItemNode.addChild("span", "class", "config"); if(o[j].getValueString() == null){ Logger.error(this, sc[i].getPrefix() + configName + "has returned null from config!);"); continue; } if(o[j].getValueString().equals("true") || o[j].getValueString().equals("false")){ HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + "." + configName); if(o[j].getValueString().equals("true")){ selectNode.addChild("option", new String[] { "value", "selected" }, new String[] { "true", "selected" }, "true"); selectNode.addChild("option", "value", "false", "false"); }else{ selectNode.addChild("option", "value", "true", "true"); selectNode.addChild("option", new String[] { "value", "selected" }, new String[] { "false", "selected" }, "false"); } }else{ configItemValueNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o[j].getShortDesc(), sc[i].getPrefix() + "." + configName, o[j].getValueString() }); } configItemNode.addChild("span", "class", "configlongdesc", o[j].getLongDesc()); } } if(displayedConfigElements>0) { formNode.addChild("div", "class", "configprefix", sc[i].getPrefix()); formNode.addChild("a", "name", sc[i].getPrefix()); formNode.addChild(configGroupUlNode); } } formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Apply" }); formNode.addChild("input", new String[] { "type", "value" }, new String[] { "reset", "Reset" }); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ConfigToadlet.java/clean/src/freenet/clients/http/ConfigToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
... |
Object key = stream.readObject(); | E key = (E)stream.readObject(); | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int length = stream.readInt(); float loadFactor = stream.readFloat(); backingMap = createBackingMap(length, loadFactor); int elementCount = stream.readInt(); for (int i = elementCount; --i >= 0;) { Object key = stream.readObject(); backingMap.put(key, this); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/514f355cab57dc0370fb319b8d7159248bd0934c/HashSet.java/buggy/modules/luni/src/main/java/java/util/HashSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
17362,
12,
921,
4348,
1407,
13,
1216,
1860,
16,
1082,
202,
797,
3990,
288,
202,
202,
3256,
18,
1886,
1994,
921,
5621,
202,
202,
474,
769,
273,
1407,
18,
896,
1702,
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,
1152,
918,
17362,
12,
921,
4348,
1407,
13,
1216,
1860,
16,
1082,
202,
797,
3990,
288,
202,
202,
3256,
18,
1886,
1994,
921,
5621,
202,
202,
474,
769,
273,
1407,
18,
896,
1702,
5621,... |
OpenFile(JSDebugger db, Scriptable scope, String fileName) { | OpenFile(Main db, Scriptable scope, String fileName) { | OpenFile(JSDebugger db, Scriptable scope, String fileName) { this.scope = scope; this.fileName = fileName; this.db = db; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/38e685a5a4f910f10f0cfff50348254cb452f08d/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
25284,
12,
6479,
24113,
1319,
16,
22780,
2146,
16,
514,
3968,
13,
288,
202,
2211,
18,
4887,
273,
2146,
31,
202,
2211,
18,
17812,
273,
3968,
31,
202,
2211,
18,
1966,
273,
1319,
31,
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,
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,
25284,
12,
6479,
24113,
1319,
16,
22780,
2146,
16,
514,
3968,
13,
288,
202,
2211,
18,
4887,
273,
2146,
31,
202,
2211,
18,
17812,
273,
3968,
31,
202,
2211,
18,
1966,
273,
1319,
31,
565,
... |
{ return PG_USER; } | { return PG_USER; } | public String getUserName() throws SQLException { return PG_USER; } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/64973bfd2fca3a7c6badcc77d939c73f79b8f6bc/Connection.java/buggy/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
30456,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
22116,
67,
4714,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
30456,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
22116,
67,
4714,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
avgFit /= Config.populationSize; avgNodes /= Config.populationSize; | evoStats.avgFit /= Config.populationSize; evoStats.avgNodes /= Config.populationSize; | public void eval() { Tree bestThisGen = population.get(0); double avgFit = 0; double avgNodes = 0; for (Tree t : population) { fitness.calculate(t); avgFit += t.fitness; avgNodes += t.nSubNodes; if (t.fitness > bestThisGen.fitness) { bestThisGen = t; } } avgFit /= Config.populationSize; avgNodes /= Config.populationSize; evoStats.bestTreeChanged = false; if (bestThisGen.fitness > evoStats.bestSoFar.fitness) { evoStats.bestSoFar = (Tree)bestThisGen.deepClone(-1); evoStats.bestTreeChanged = true; } /* This is done here to ensure that evoStats fields are not modified until * the next gen is fully evaluated. This is to give time for other methods to * read the fields. * TODO: This is clearly not the best solution */ evoStats.avgFit = avgFit; evoStats.avgNodes = avgNodes; evoStats.generation = generation; evoStats.bestFitThisGen = bestThisGen.fitness; } | 12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/93e1059fee231dc3da4c28dcf6d58b5daad78ee9/Evolution.java/buggy/src/gpalta/core/Evolution.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5302,
1435,
565,
288,
3639,
4902,
3796,
2503,
7642,
273,
11209,
18,
588,
12,
20,
1769,
3639,
1645,
11152,
14219,
273,
374,
31,
3639,
1645,
11152,
3205,
273,
374,
31,
7734,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5302,
1435,
565,
288,
3639,
4902,
3796,
2503,
7642,
273,
11209,
18,
588,
12,
20,
1769,
3639,
1645,
11152,
14219,
273,
374,
31,
3639,
1645,
11152,
3205,
273,
374,
31,
7734,
364,... |
return getName() + " " + getOID(); | return getName() + " " + getObject(); | public String toString() { return getName() + " " + getOID(); } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/aa917d9730b075c22b50c9c9b74ff04fb373d38b/ObjectEvent.java/clean/archive/proto/src/com/arsdigita/persistence/proto/ObjectEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
1723,
1435,
397,
315,
315,
397,
6455,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
1723,
1435,
397,
315,
315,
397,
6455,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
binding.setJavaReturnType(JavaType.createForClass(java.lang.String.class)); | binding.setJavaReturnType(javaType(java.lang.String.class)); | private MethodBinding bindFunction(FunctionSymbol sym, JavaType containingType, Type containingCType) { MethodBinding binding = new MethodBinding(sym, containingType, containingCType); if (cfg.returnsString(binding.getName())) { PointerType prt = sym.getReturnType().asPointer(); if (prt == null || prt.getTargetType().asInt() == null || prt.getTargetType().getSize() != 1) { throw new RuntimeException( "Cannot apply ReturnsString configuration directive to \"" + sym + "\". ReturnsString requires native method to have return type \"char *\""); } binding.setJavaReturnType(JavaType.createForClass(java.lang.String.class)); } else { binding.setJavaReturnType(typeToJavaType(sym.getReturnType(), false)); } // List of the indices of the arguments in this function that should be // converted from byte[] to String List stringArgIndices = cfg.stringArguments(binding.getName()); for (int i = 0; i < sym.getNumArguments(); i++) { Type cArgType = sym.getArgumentType(i); JavaType mappedType = typeToJavaType(cArgType, true); //System.out.println("C arg type -> \"" + cArgType + "\"" ); //System.out.println(" Java -> \"" + mappedType + "\"" ); // Take into account any ArgumentIsString configuration directives that apply if (stringArgIndices != null && stringArgIndices.contains(new Integer(i))) { //System.out.println("Forcing conversion of " + binding.getName() + " arg #" + i + " from byte[] to String "); if (mappedType.isCVoidPointerType() || mappedType.isCCharPointerType() || (mappedType.isArray() && mappedType.getJavaClass() == ArrayTypes.byteArrayArrayClass)) { // convert mapped type from void* and byte[] to String, or byte[][] to String[] if (mappedType.getJavaClass() == ArrayTypes.byteArrayArrayClass) { mappedType = javaType(ArrayTypes.stringArrayClass); } else { mappedType = javaType(String.class); } } else { throw new RuntimeException( "Cannot apply ArgumentIsString configuration directive to " + "argument " + i + " of \"" + sym + "\": argument type is not " + "a \"void*\", \"char *\", or \"char**\" equivalent"); } } binding.addJavaArgumentType(mappedType); //System.out.println("During binding of [" + sym + "], added mapping from C type: " + cArgType + " to Java type: " + mappedType); } //System.err.println("---> " + binding); //System.err.println(" ---> " + binding.getCSymbol()); return binding; } | 53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/4b93bb531605fa082bdad6452d3e6a51cbb15bed/JavaEmitter.java/clean/src/net/java/games/gluegen/JavaEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2985,
5250,
1993,
2083,
12,
2083,
5335,
5382,
16,
19694,
5110,
559,
4191,
559,
16,
19694,
1412,
4191,
39,
559,
13,
288,
565,
2985,
5250,
5085,
273,
394,
2985,
5250,
12,
8117,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2985,
5250,
1993,
2083,
12,
2083,
5335,
5382,
16,
19694,
5110,
559,
4191,
559,
16,
19694,
1412,
4191,
39,
559,
13,
288,
565,
2985,
5250,
5085,
273,
394,
2985,
5250,
12,
8117,
16,
... |
addListenerObject(listener); } | addListenerObject(listener); } | public void addPropertyChangeListener(IPropertyChangeListener listener) { addListenerObject(listener); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14324,
15744,
12,
45,
1396,
15744,
2991,
13,
288,
3639,
12087,
921,
12,
12757,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14324,
15744,
12,
45,
1396,
15744,
2991,
13,
288,
3639,
12087,
921,
12,
12757,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (project.equals(selectedProject)) | if (project.equals(selectedProject)) { | private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (resource != null) return isEnclosed(resource); } else if (onResource == ON_ANY_IN_SAME_CONTAINER) { IProject project = resource.getProject(); if (project == null) { return false; } for (int i = 0; i < focusResource.length; i++) { IProject selectedProject = focusResource[i].getProject(); if (selectedProject == null) { continue; } if (project.equals(selectedProject)) return true; } } else if (onResource == ON_SELECTED_ONLY) { for (int i = 0; i < focusResource.length; i++) { if (resource.equals(focusResource[i])) return true; } } else if (onResource == ON_SELECTED_AND_CHILDREN) { for (int i = 0; i < focusResource.length; i++) { IResource parentResource = resource; while (parentResource != null) { if (parentResource.equals(focusResource[i])) return true; parentResource = parentResource.getParent(); } } } return false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/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,
1152,
1250,
2027,
858,
6233,
12,
25845,
7078,
5373,
13,
288,
202,
202,
430,
261,
265,
1420,
422,
6229,
67,
15409,
747,
5373,
422,
446,
13,
1082,
202,
2463,
638,
31,
202,
202,
430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
2027,
858,
6233,
12,
25845,
7078,
5373,
13,
288,
202,
202,
430,
261,
265,
1420,
422,
6229,
67,
15409,
747,
5373,
422,
446,
13,
1082,
202,
2463,
638,
31,
202,
202,
430,
... |
ensureEnoughBuffer(2); | ensureEnoughBuffer(pos + 2); | public void writeChar(int v){ ensureEnoughBuffer(2); buf[pos++]=(byte) (v>>>8); buf[pos++]=(byte) (v>>>0); } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/c636b3798f368ebfdd6fed7839e24f2072746e51/DataByteArrayOutputStream.java/buggy/activemq-core/src/main/java/org/apache/activemq/util/DataByteArrayOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
2156,
12,
474,
331,
15329,
3639,
3387,
664,
4966,
1892,
12,
917,
397,
576,
1769,
3639,
1681,
63,
917,
9904,
65,
28657,
7229,
13,
261,
90,
23012,
28,
1769,
3639,
1681,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
2156,
12,
474,
331,
15329,
3639,
3387,
664,
4966,
1892,
12,
917,
397,
576,
1769,
3639,
1681,
63,
917,
9904,
65,
28657,
7229,
13,
261,
90,
23012,
28,
1769,
3639,
1681,
6... |
if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); hits -= wr.amsShotDown; | if (wr.amsShotDownTotal > 0) { for (int i=0; i < wr.amsShotDown.length; i++) { int shotDown = Math.min(wr.amsShotDown[i], hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown[i]).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); } hits -= wr.amsShotDownTotal; phaseReport.append("\n "); if (hits < 1) { phaseReport.append("AMS shoots down all incoming missiles!"); } else { phaseReport.append(hits); if (1 == hits) { phaseReport.append(" missile gets through."); } else { phaseReport.append(" missiles get through."); }; }; | private void resolveWeaponAttack(WeaponResult wr, int lastEntityId) { final Entity ae = game.getEntity(wr.waa.getEntityId()); final Targetable target = game.getTarget(wr.waa.getTargetType(), wr.waa.getTargetId()); Entity entityTarget = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { entityTarget = (Entity)target; } final Mounted weapon = ae.getEquipment(wr.waa.getWeaponId()); final WeaponType wtype = (WeaponType)weapon.getType(); final boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); // 2002-09-16 Infantry weapons have unlimited ammo. final boolean usesAmmo = wtype.getAmmoType() != AmmoType.T_NA && wtype.getAmmoType() != AmmoType.T_BA_MG && wtype.getAmmoType() != AmmoType.T_BA_SMALL_LASER && !isWeaponInfantry; final Mounted ammo = usesAmmo ? weapon.getLinked() : null; final AmmoType atype = ammo == null ? null : (AmmoType)ammo.getType(); Infantry platoon = null; final boolean isBattleArmorAttack = wtype.hasFlag(WeaponType.F_BATTLEARMOR); ToHitData toHit = wr.toHit; boolean bInferno = (usesAmmo && atype.getMunitionType() == AmmoType.M_INFERNO); boolean bFragmentation = (usesAmmo && atype.getMunitionType() == AmmoType.M_FRAGMENTATION); boolean bFlechette = (usesAmmo && atype.getMunitionType() == AmmoType.M_FLECHETTE); if (!bInferno) { // also check for inferno infantry bInferno = (isWeaponInfantry && wtype.hasFlag(WeaponType.F_INFERNO)); } final boolean targetInBuilding = Compute.isInBuilding( game, entityTarget ); // Which building takes the damage? Building bldg = game.board.getBuildingAt( target.getPosition() ); if (lastEntityId != ae.getId()) { phaseReport.append("\nWeapons fire for " ).append( ae.getDisplayName() ).append( "\n"); } // Swarming infantry can stop during any weapons phase after start. if ( Infantry.STOP_SWARM.equals( wtype.getInternalName() ) ) { // ... but only as their *only* attack action. if ( toHit.getValue() == ToHitData.IMPOSSIBLE ) { phaseReport.append( "Swarm attack can not be ended (" + toHit.getDesc() ).append( ")\n" ); return; } else { phaseReport.append( "Swarm attack ended.\n" ); // Only apply the "stop swarm 'attack'" to the swarmed Mek. if ( ae.getSwarmTargetId() != target.getTargetId() ) { Entity other = game.getEntity( ae.getSwarmTargetId() ); other.setSwarmAttackerId( Entity.NONE ); } else { entityTarget.setSwarmAttackerId( Entity.NONE ); } ae.setSwarmTargetId( Entity.NONE ); return; } } // Report weapon attack and its to-hit value. phaseReport.append(" " ).append( wtype.getName() ).append( " at " ).append( target.getDisplayName()); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the shot is impossible (" ).append( toHit.getDesc() ).append( ")\n"); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) { phaseReport.append(", the shot is an automatic miss (" ).append( toHit.getDesc() ).append( "), "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the shot is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); } else { phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); } // if firing an HGR unbraced, schedule a PSR if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY && ae.mpUsed > 0) { // the mod is weight-based int nMod; if (ae.getWeight() <= Mech.WEIGHT_LIGHT) { nMod = 2; } else if (ae.getWeight() <= Mech.WEIGHT_MEDIUM) { nMod = 1; } else if (ae.getWeight() <= Mech.WEIGHT_HEAVY) { nMod = 0; } else { nMod = -1; } PilotingRollData psr = new PilotingRollData(ae.getId(), nMod, "fired HeavyGauss unbraced"); psr.setCumulative(false); // about the only time we set this flag game.addPSR(psr); } // dice have been rolled, thanks phaseReport.append("rolls " ).append( wr.roll ).append( " : "); // check for AC jams int nShots = weapon.howManyShots(); if (nShots > 1) { int jamCheck = 0; if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) { jamCheck = 2; } else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) { if (nShots == 2) { jamCheck = 2; } else if (nShots == 4) { jamCheck = 3; } else if (nShots == 6) { jamCheck = 4; } } if (jamCheck > 0 && wr.roll <= jamCheck) { phaseReport.append("misses AND THE AUTOCANNON JAMS.\n"); weapon.setJammed(true); // ultras are destroyed by jamming if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA) { weapon.setHit(true); } return; } } // do we hit? boolean bMissed = wr.roll < toHit.getValue(); // special case minefield delivery, no damage and scatters if misses. if (target.getTargetType() == Targetable.TYPE_MINEFIELD_DELIVER) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append( "hits the intended hex " ) .append( coords.getBoardNum() ) .append( "\n" ); } else { coords = Compute.scatter(coords); if ( game.board.contains(coords) ) { phaseReport.append("misses and scatters to hex " ) .append( coords.getBoardNum() ) .append( "\n" ); } else { phaseReport.append("misses and scatters off the board\n"); return; } } // Handle the thunder munitions. if (atype.getMunitionType() == AmmoType.M_THUNDER_AUGMENTED) { deliverThunderAugMinefield( coords, ae.getOwner().getId(), atype.getRackSize() ); } else if (atype.getMunitionType() == AmmoType.M_THUNDER) { deliverThunderMinefield( coords, ae.getOwner().getId(), atype.getRackSize() ); } else if (atype.getMunitionType() == AmmoType.M_THUNDER_INFERNO) deliverThunderInfernoMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); else if (atype.getMunitionType() == AmmoType.M_THUNDER_VIBRABOMB) deliverThunderVibraMinefield(coords, ae.getOwner().getId(), atype.getRackSize(), wr.waa.getOtherAttackInfo()); else if (atype.getMunitionType() == AmmoType.M_THUNDER_ACTIVE) deliverThunderActiveMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); //else //{ //...This is an error, but I'll just ignore it for now. //} return; } if (bMissed) { // Report the miss. if ( wtype.getAmmoType() == AmmoType.T_SRM_STREAK ) { phaseReport.append( "fails to achieve lock.\n" ); } else { phaseReport.append("misses.\n"); } // Report any AMS action. if (wr.amsShotDown > 0) { phaseReport.append( "\tAMS activates, firing " ) .append( wr.amsShotDown ) .append( " shot(s).\n" ); } // Figure out the maximum number of missile hits. // TODO: handle this in a different place. int maxMissiles = 0; if ( usesAmmo ) { maxMissiles = wtype.getRackSize(); if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { maxMissiles *= 2; } if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; maxMissiles *= platoon.getShootingStrength(); } } // If the AMS shot down *all* incoming missiles, if // the shot is an automatic failure, or if it's from // a Streak rack, then Infernos can't ignite the hex // and any building is safe from damage. if ( (usesAmmo && wr.amsShotDown >= maxMissiles) || toHit.getValue() == TargetRoll.AUTOMATIC_FAIL || wtype.getAmmoType() == AmmoType.T_SRM_STREAK ) { return; } // Shots that miss an entity can set fires. // Infernos always set fires. Otherwise // Buildings can't be accidentally ignited, // and some weapons can't ignite fires. if ( entityTarget != null && ( bInferno || ( bldg == null && wtype.getFireTN() != TargetRoll.IMPOSSIBLE ) ) ) { tryIgniteHex(target.getPosition(), bInferno, 11); } // BMRr, pg. 51: "All shots that were aimed at a target inside // a building and miss do full damage to the building instead." if ( !targetInBuilding ) { return; } } // special case NARC hits. No damage, but a beacon is appended if (!bMissed && wtype.getAmmoType() == AmmoType.T_NARC && atype.getMunitionType() != AmmoType.M_NARC_EX) { if (wr.amsShotDown > 0) { phaseReport.append("would hit, but...\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots and destroying the pod.\n"); } else if (entityTarget == null) { phaseReport.append("hits, but doesn't do anything.\n"); } else { entityTarget.setNarcedBy(ae.getOwner().getTeam()); phaseReport.append("hits. Pod attached.\n"); } return; } // attempt to clear minefield by LRM/MRM fire. if (!bMissed && target.getTargetType() == Targetable.TYPE_MINEFIELD_CLEAR) { int clearAttempt = Compute.d6(2); if (clearAttempt >= Minefield.CLEAR_NUMBER_WEAPON) { phaseReport.append("\n\thits and clears it.\n"); Coords coords = target.getPosition(); Enumeration minefields = game.getMinefields(coords).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); removeMinefield(mf); } } else { phaseReport.append("\n\thits, but fails to clear it.\n"); } return; } // yeech. handle damage. . different weapons do this in very different ways int hits = 1, nCluster = 1, nSalvoBonus = 0; int nDamPerHit = wtype.getDamage(); boolean bSalvo = false; // ecm check is heavy, so only do it once boolean bCheckedECM = false; boolean bECMAffected = false; boolean bMekStealthActive = false; String sSalvoType = " shot(s) "; boolean bAllShotsHit = false; // All shots fired by a Streak SRM weapon, during // a Mech Swarm hit, or at an adjacent building. if ( wtype.getAmmoType() == AmmoType.T_SRM_STREAK || wtype.getAmmoType() == AmmoType.T_NARC || ae.getSwarmTargetId() == wr.waa.getTargetId() || ( ( target.getTargetType() == Targetable.TYPE_BLDG_IGNITE || target.getTargetType() == Targetable.TYPE_BUILDING ) && ae.getPosition().distance( target.getPosition() ) <= 1 ) ) { bAllShotsHit = true; } // Mek swarms attach the attacker to the target. if ( !bMissed && Infantry.SWARM_MEK.equals( wtype.getInternalName() ) ) { // Is the target already swarmed? if ( Entity.NONE != entityTarget.getSwarmAttackerId() ) { phaseReport.append( "succeds, but the defender is " ); phaseReport.append( "already swarmed by another unit.\n" ); } // Did the target get destroyed by weapons fire? else if ( entityTarget.isDoomed() || entityTarget.isDestroyed() || entityTarget.getCrew().isDead() ) { phaseReport.append( "succeds, but the defender was " ); phaseReport.append( "destroyed by weapons fire.\n" ); } else { phaseReport.append( "succeeds! Defender swarmed.\n" ); ae.setSwarmTargetId( wr.waa.getTargetId() ); entityTarget.setSwarmAttackerId( wr.waa.getEntityId() ); } return; } // Magnetic Mine Launchers roll number of hits on battle armor // hits table but use # mines firing instead of men shooting. else if ( wtype.getInternalName().equals(BattleArmor.MINE_LAUNCHER) ) { hits = nShots; if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } bSalvo = true; sSalvoType = " mine(s) "; } // Other battle armor attacks use # of men firing to determine hits. // Each hit can be in a new location. The damage per shot comes from // the "racksize". else if ( isBattleArmorAttack ) { bSalvo = true; platoon = (Infantry) ae; nCluster = 1; nDamPerHit = wtype.getRackSize(); hits = platoon.getShootingStrength(); // All attacks during Mek Swarms hit; all // others use the Battle Armor hits table. if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } // Handle Inferno SRM squads. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } // Infantry damage depends on # men left in platoon. else if (isWeaponInfantry) { bSalvo = true; platoon = (Infantry)ae; nCluster = 5; nDamPerHit = 1; hits = platoon.getDamage(platoon.getShootingStrength()); // Handle Inferno SRM infantry. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } else if (wtype.getDamage() == WeaponType.DAMAGE_MISSILE || wtype.hasFlag(WeaponType.F_MISSILE_HITS) ) { bSalvo = true; // Weapons with ammo type T_BA_MG or T_BA_SMALL_LASER // don't have an atype object. if ( wtype.getAmmoType() == AmmoType.T_BA_MG || wtype.getAmmoType() == AmmoType.T_BA_SMALL_LASER ) { nDamPerHit = Math.abs( wtype.getAmmoType() ); } else { sSalvoType = " missile(s) "; nDamPerHit = atype.getDamagePerShot(); } if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_MRM || wtype.getAmmoType() == AmmoType.T_ATM ) { nCluster = 5; } // calculate # of missiles hitting if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_SRM || wtype.getAmmoType() == AmmoType.T_ATM ) { // check for artemis, else check for narc Mounted mLinker = weapon.getLinkedBy(); if ( wtype.getAmmoType() == AmmoType.T_ATM || ( mLinker != null && mLinker.getType() instanceof MiscType && !mLinker.isDestroyed() && !mLinker.isMissing() && !mLinker.isBreached() && mLinker.getType().hasFlag(MiscType.F_ARTEMIS) ) ) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } // also no artemis for IDF if (!bECMAffected&& !bMekStealthActive && (!weapon.getType().hasModes() || !weapon.curMode().equals("Indirect"))) { nSalvoBonus += 2; } } else if (entityTarget != null && entityTarget.isNarcedBy(ae.getOwner().getTeam())) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } if (!bECMAffected && !bMekStealthActive) { nSalvoBonus += 2; } } } // If dealing with Inferno rounds set damage to zero and reset // all salvo bonuses (cannot mix with other special munitions). if (bInferno) { nDamPerHit = 0; nSalvoBonus = 0; sSalvoType = " inferno missile(s) "; bSalvo = false; } // If dealing with fragmentation missiles, // it does double damage to infantry... if (bFragmentation) { sSalvoType = " fragmentation missile(s) "; } // Large MRM missile racks roll twice. // MRM missiles never recieve hit bonuses. if ( wtype.getRackSize() == 30 || wtype.getRackSize() == 40 ) { hits = Compute.missilesHit(wtype.getRackSize() / 2) + Compute.missilesHit(wtype.getRackSize() / 2); } // Battle Armor units multiply their racksize by the number // of men shooting and they can't get missile hit bonuses. else if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; int temp = wtype.getRackSize() * platoon.getShootingStrength(); // Do all shots hit? if ( bAllShotsHit ) { hits = temp; } else { // Account for more than 20 missles hitting. hits = 0; while ( temp > 20 ) { hits += Compute.missilesHit( 20 ); temp -= 20; } hits += Compute.missilesHit( temp ); } // End not-all-shots-hit } // If all shots hit, use the full racksize. else if ( bAllShotsHit ) { hits = wtype.getRackSize(); } // In all other circumstances, roll for hits. else { hits = Compute.missilesHit(wtype.getRackSize(), nSalvoBonus); } // Advanced SRM's only hit with even numbers of missles. if ( null != atype && atype.getAmmoType() == AmmoType.T_SRM_ADVANCED ) { hits = 2 * (int) Math.floor( (1.0 + (float) hits) / 2.0); } } else if (atype != null && atype.getMunitionType() == AmmoType.M_CLUSTER) { // Cluster shots break into single point clusters. bSalvo = true; hits = wtype.getRackSize(); if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } nDamPerHit = 1; } else if (nShots > 1) { // this should handle multiple attacks from ultra and rotary ACs bSalvo = true; hits = nShots; if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } } else if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY) { // HGR does range-dependent damage int nRange = ae.getPosition().distance(target.getPosition()); if (nRange <= wtype.getShortRange()) { nDamPerHit = 25; } else if (nRange <= wtype.getMediumRange()) { nDamPerHit = 20; } else { nDamPerHit = 10; } } // Some weapons double the number of hits scored. if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { hits *= 2; } // We've calculated how many hits. At this point, any missed // shots damage the building instead of the target. if ( bMissed ) { if ( targetInBuilding && bldg != null ) { // Reduce the number of hits by AMS hits. if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\tAMS shoots down ") .append(shotDown).append(" missile(s).\n"); hits -= wr.amsShotDown; } // Is the building hit by Inferno rounds? if ( bInferno && hits > 0 ) { // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Is there a fire in the hex already? if ( h.contains( Terrain.FIRE ) ) { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds added to hex " ) .append( c.getBoardNum() ) .append( ".\n" ); } else { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds start fire in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); } // Damage the building in one big lump. else { // Only report if damage was done to the building. int toBldg = hits * nDamPerHit; if ( toBldg > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } } // End rounds-hit } // End missed-target-in-building return; } // End missed-target // The building shields all units from a certain amount of damage. // The amount is based upon the building's CF at the phase's start. int bldgAbsorbs = 0; if ( targetInBuilding && bldg != null ) { bldgAbsorbs = (int) Math.ceil( bldg.getPhaseCF() / 10.0 ); } // All attacks (except from infantry weapons) // during Mek Swarms hit the same location. if ( !isWeaponInfantry && ae.getSwarmTargetId() == wr.waa.getTargetId() ) { nCluster = hits; } // Battle Armor MGs do one die of damage per hit to PBI. if ( wtype.getAmmoType() == AmmoType.T_BA_MG && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { // ASSUMPTION: Building walls protect infantry from BA MGs. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * hits; phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } nDamPerHit = Compute.d6(hits); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( "and " ); hits = 1; } // Mech and Vehicle MGs do *DICE* of damage to PBI. else if (atype != null && atype.hasFlag(AmmoType.F_MG) && !isWeaponInfantry && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { int dice = wtype.getDamage(); // A building may absorb the entire shot. if ( nDamPerHit <= bldgAbsorbs ) { int toBldg = nDamPerHit * hits; int curCF = bldg.getCurrentCF(); curCF = Math.min( curCF, toBldg ); bldg.setCurrentCF( curCF ); if ( bSalvo ) { phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n" ); } else{ phaseReport.append( "hits,\n" ); } phaseReport.append( " but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } // If a building absorbs partial damage, reduce the dice of damage. else if ( bldgAbsorbs > 0 ) { dice -= bldgAbsorbs; } nDamPerHit = Compute.d6( dice ); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( ".\n" ); bSalvo = true; // If a building absorbed partial damage, report it now // instead of later and then clear the variable. if ( bldgAbsorbs > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, bldgAbsorbs ) ); bldgAbsorbs = 0; } } // Report the number of hits. Infernos have their own reporting else if (bSalvo && !bInferno) { phaseReport.append( hits ).append( sSalvoType ).append( "hit" ) .append( toHit.getTableDesc() ); if (bECMAffected) { phaseReport.append(" (ECM prevents bonus)"); } else if (bMekStealthActive) { phaseReport.append(" (active Stealth prevents bonus)"); } if (nSalvoBonus > 0) { phaseReport.append(" (w/ +") .append(nSalvoBonus) .append(" bonus)"); } phaseReport.append("."); if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); hits -= wr.amsShotDown; } } // convert the ATM missile damages to LRM type 5 point cluster damage // done here after AMS has been performed if (wtype.getAmmoType() == AmmoType.T_ATM) { hits = nDamPerHit * hits; nDamPerHit = 1; } // Make sure the player knows when his attack causes no damage. if ( hits == 0 ) { phaseReport.append( "attack deals zero damage.\n" ); } // for each cluster of hits, do a chunk of damage while (hits > 0) { int nDamage; // If the attack was with inferno rounds then // do heat and fire instead of damage. if ( bInferno ) { // AMS can shoot down infernos, too. if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); hits -= wr.amsShotDown; if ( hits <= 0 ) { continue; } } // targeting a hex for ignition if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles.\n" ); // Unless there a fire in the hex already, start one. Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); return; } // Targeting an entity if (entityTarget != null ) { entityTarget.infernos.add( InfernoTracker.STANDARD_ROUND, hits ); phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles." ); phaseReport.append("\n " ) .append( target.getDisplayName() ) .append( " now on fire for ") .append( entityTarget.infernos.getTurnsLeftToBurn() ) .append(" turns.\n"); // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Unless there a fire in the hex already, start one. if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); return; } } // End is-inferno // targeting a hex for igniting if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { if ( !bSalvo ) { phaseReport.append("hits!"); } // We handle Inferno rounds above. int tn = wtype.getFireTN(); if (tn != TargetRoll.IMPOSSIBLE) { if ( bldg != null ) { tn += bldg.getType() - 1; } phaseReport.append( "\n" ); tryIgniteHex( target.getPosition(), bInferno, tn, true ); } return; } // targeting a hex for clearing if (target.getTargetType() == Targetable.TYPE_HEX_CLEAR) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append("hits!"); } if (ae instanceof Infantry) { phaseReport.append("\n But infantry cannot try to clear hexes!\n"); return; } phaseReport.append(" Terrain takes " ).append( nDamage ).append( " damage.\n"); // Any clear attempt can result in accidental ignition, even // weapons that can't normally start fires. that's weird. // Buildings can't be accidentally ignited. if ( bldg != null && tryIgniteHex(target.getPosition(), bInferno, 9) ) { return; } int tn = 14 - nDamage; tryClearHex(target.getPosition(), tn); return; } // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n " ) .append( damageBuilding( bldg, nDamage ) ) .append( "\n" ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, nDamage ); // And we're done! return; } // Battle Armor squads equipped with fire protection // gear automatically avoid flaming death. if ( wtype.hasFlag(WeaponType.F_FLAMER) && target instanceof BattleArmor ) { for ( Enumeration iter = entityTarget.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.FIRE_PROTECTION.equals (equip.getInternalName()) ) { if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n However, " ) .append(target.getDisplayName() ) .append( " has fire protection gear so no damage is done.\n" ); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * Math.min( bldgAbsorbs, hits ); phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } return; } } } // End target-may-be-immune // Flamers do heat to mechs instead damage if the option is // available and the mode is set. if ( entityTarget != null && (entityTarget instanceof Mech) && wtype.hasFlag(WeaponType.F_FLAMER) && game.getOptions().booleanOption("flamer_heat") && wtype.hasModes() && weapon.curMode().equals("Heat") ) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append("\n Target gains ").append(nDamage).append(" more heat during heat phase."); entityTarget.heatBuildup += nDamage; hits = 0; } else if (entityTarget != null) { HitData hit = entityTarget.rollHitLocation(toHit.getHitTable(), toHit.getSideTable(), wr.waa.getAimedLocation(), wr.waa.getAimingMode()); // If a leg attacks hit a leg that isn't // there, then hit the other leg. if ( wtype.getInternalName().equals("LegAttack") && entityTarget.getInternal(hit) <= 0 ) { if ( hit.getLocation() == Mech.LOC_RLEG ) { hit = new HitData( Mech.LOC_LLEG ); } else { hit = new HitData( Mech.LOC_RLEG ); } } // Mine Launchers automatically hit the // CT of a Mech or the front of a Tank. if ( wtype.getInternalName() .equals(BattleArmor.MINE_LAUNCHER) ) { if ( target instanceof Mech ) { hit = new HitData( Mech.LOC_CT ); } else { // te instanceof Tank hit = new HitData( Tank.LOC_FRONT ); } } // Each hit in the salvo get's its own hit location. if (!bSalvo) { phaseReport.append("hits" ).append( toHit.getTableDesc() ).append( " " ). append( entityTarget.getLocationAbbr(hit)); if (hit.hitAimedLocation()) { phaseReport.append("(hit aimed location)"); } } // Special weapons do criticals instead of damage. if ( nDamPerHit == WeaponType.DAMAGE_SPECIAL ) { // Do criticals. String specialDamage = criticalEntity( entityTarget, hit.getLocation() ); // Replace "no effect" results with 4 points of damage. if ( specialDamage.endsWith(" no effect.") ) { // ASSUMPTION: buildings CAN'T absorb *this* damage. specialDamage = damageEntity(entityTarget, hit, 4); } else { specialDamage = "\n" + specialDamage; } // Report the result phaseReport.append( specialDamage ); } else { // Resolve damage normally. nDamage = nDamPerHit * Math.min(nCluster, hits); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = Math.min( bldgAbsorbs, nDamage ); nDamage -= toBldg; phaseReport.append( "\n " ) .append( damageBuilding( bldg, toBldg ) ); } // A building may absorb the entire shot. if ( nDamage == 0 ) { phaseReport.append( "\n " ) .append( entityTarget.getDisplayName() ) .append( " suffers no damage." ); } else if (bFragmentation) { // If it's a frag missile... phaseReport.append ( damageEntity(entityTarget, hit, nDamage, false, 1) ); } else if (bFlechette) { // If it's a frag missile... phaseReport.append ( damageEntity(entityTarget, hit, nDamage, false, 2) ); } else { if ((atype != null) && (atype.getMunitionType() == AmmoType.M_ARMOR_PIERCING)) hit.makeArmorPiercing(atype); phaseReport.append ( damageEntity(entityTarget, hit, nDamage) ); } } hits -= nCluster; } } // Handle the next cluster. phaseReport.append("\n"); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/0d0e6434c44a4c503fad202e6773e820e9cb1fef/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
91,
86,
18,
91,
7598,
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,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
91,
86,
18,
91,
7598,
18,
588... |
public PrinterThread (char[] sc, Font font, int cols, int rows, | public PrinterThread (Screen5250 scr, Font font, int cols, int rows, | public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2301,
2761,
3830,
261,
7956,
25,
26520,
11991,
16,
10063,
3512,
16,
509,
5347,
16,
509,
2595,
16,
21821,
5563,
2036,
24923,
16,
1250,
358,
1868,
12149,
16,
3877,
24138,
13,
288,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2301,
2761,
3830,
261,
7956,
25,
26520,
11991,
16,
10063,
3512,
16,
509,
5347,
16,
509,
2595,
16,
21821,
5563,
2036,
24923,
16,
1250,
358,
1868,
12149,
16,
3877,
24138,
13,
288,
137... |
public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); } | public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); } | public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/7798138390a306a202dcec9bde45928dae2e852e/IterNode.java/clean/org/jruby/nodes/IterNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
12,
907,
7413,
277,
7413,
13,
202,
202,
95,
202,
202,
77,
7413,
18,
11658,
2360,
907,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
12,
907,
7413,
277,
7413,
13,
202,
202,
95,
202,
202,
77,
7413,
18,
11658,
2360,
907,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
void notationDecl (String name, String ids []) | void notationDecl(String name, String publicId, String systemId, String baseUri) | void notationDecl (String name, String ids []) throws SAXException { try { dtdHandler.notationDecl (name, ids [0], (resolveAll && ids [1] != null) ? absolutize (ids [2], ids [1], true) : ids [1]); } catch (IOException e) { // "can't happen" throw new SAXParseException (e.getMessage (), this, e); } } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/buggy/libjava/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
12155,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
16,
514,
23418,
13,
565,
1216,
14366,
565,
288,
202,
698,
288,
202,
565,
3681,
72,
1503,
18,
1819,
3456,
261,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12155,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
16,
514,
23418,
13,
565,
1216,
14366,
565,
288,
202,
698,
288,
202,
565,
3681,
72,
1503,
18,
1819,
3456,
261,
529,
... |
throws Exception { | throws Exception { | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // if it's an HTTP GET, simply forward to jsp if (request.getMethod().equalsIgnoreCase("get")) { return mapping.findForward("failure"); } else { // run validation rules on this form ActionMessages errors = form.validate(mapping, request); if (!errors.isEmpty()) { saveErrors(request, errors); return mapping.findForward("failure"); } } if (log.isDebugEnabled()) { log.debug("registering user..."); } if (isCancelled(request)) { return new ActionForward("/"); } ActionMessages errors = new ActionMessages(); UserForm userForm = (UserForm) form; User user = (User) convert(form); String algorithm = (String) getConfiguration().get(Constants.ENC_ALGORITHM); // Set the default user role on this new user user.addRole(Constants.USER_ROLE); try { if (algorithm == null) { // should only happen for test case log.debug("assuming testcase, setting algorigthm to 'SHA'"); algorithm = "SHA"; } user.setPassword(StringUtil.encodePassword(user.getPassword(), algorithm)); UserManager mgr = (UserManager) getBean("userManager"); user = mgr.saveUser(user); // Set cookies for auto-magical login ;-) String loginCookie = mgr.createLoginCookie(user.getUsername()); RequestUtil.setCookie(response, Constants.LOGIN_COOKIE, loginCookie, request.getContextPath()); } catch (Exception e) { if ((e.getMessage() != null) && (e.getMessage().indexOf("Duplicate entry") != -1)) { // user already exists! log.warn("User already exists: " + e.getMessage()); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.existing.user", userForm.getUsername(), userForm.getEmail())); saveErrors(request, errors); return mapping.getInputForward(); } e.printStackTrace(); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.general")); while (e != null) { // catch duplicate entry exceptions String msg = e.getMessage(); if ((msg.indexOf("Duplicate entry") != -1) || (msg.indexOf("could not insert") != -1)) { log.warn("User already exists: " + e.getMessage()); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.existing.user", userForm.getUsername(), userForm.getEmail())); break; } errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.detail", e.getMessage())); e = (Exception) e.getCause(); } saveErrors(request, errors); return mapping.getInputForward(); } ActionMessages messages = new ActionMessages(); MessageResources resources = getResources(request); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("user.registered", userForm.getUsername())); HttpSession session = request.getSession(); session.setAttribute(Globals.MESSAGE_KEY, messages); session.setAttribute(Constants.REGISTERED, Boolean.TRUE); // Send user an e-mail if (log.isDebugEnabled()) { log.debug("Sending user '" + userForm.getUsername() + "' an account information e-mail"); } StringBuffer msg = new StringBuffer(); msg.append(resources.getMessage("signup.email.message")); msg.append("\n\n" + resources.getMessage("userFormEx.username")); msg.append(": " + userForm.getUsername() + "\n"); msg.append(resources.getMessage("userFormEx.password") + ": "); msg.append(userForm.getPassword()); msg.append("\n\nLogin at: " + RequestUtils.serverURL(request) + request.getContextPath()); String subject = resources.getMessage("signup.email.subject"); try { // From,to,cc,subject,content MailSender.sendTextMessage(Constants.DEFAULT_FROM, userForm.getEmail(), null, subject, msg.toString()); } catch (MessagingException me) { log.warn("Failed to send Account Information e-mail"); } return mapping.findForward("success"); } | 30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/10d3011a1dc50c28c3ee81e16f6a4905ca15fdd0/SignupAction.java/clean/src/web/org/appfuse/webapp/action/SignupAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
5411,
1216,
1185,
288,
540,
368,
309,
518,
1807,
392,
2239,
4978,
16,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
5411,
1216,
1185,
288,
540,
368,
309,
518,
1807,
392,
2239,
4978,
16,
8... |
if (actionL.equals("send") || actionL.equals("put")) { | if (actionL.equals("send") || actionL.equals("put")) { | public int getAction() { String actionL = getValue().toLowerCase(Locale.US); if (actionL.equals("send") || actionL.equals("put")) { return SEND_FILES; } else if (actionL.equals("recv") || actionL.equals("get")) { return GET_FILES; } else if (actionL.equals("del") || actionL.equals("delete")) { return DEL_FILES; } else if (actionL.equals("list")) { return LIST_FILES; } else if (actionL.equals("chmod")) { return CHMOD; } else if (actionL.equals("mkdir")) { return MK_DIR; } else if (actionL.equals("rmdir")) { return RM_DIR; } return SEND_FILES; } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6ee5317ca34e43ca1d62e890dcf034eb44cca649/FTP.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
12473,
1435,
288,
5411,
514,
1301,
48,
273,
2366,
7675,
869,
5630,
12,
3916,
18,
3378,
1769,
5411,
309,
261,
1128,
48,
18,
14963,
2932,
4661,
7923,
747,
7734,
1301,
48,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
12473,
1435,
288,
5411,
514,
1301,
48,
273,
2366,
7675,
869,
5630,
12,
3916,
18,
3378,
1769,
5411,
309,
261,
1128,
48,
18,
14963,
2932,
4661,
7923,
747,
7734,
1301,
48,
18,
1... |
cbWrap = new Button(cmpContent, SWT.CHECK); GridData gdCBWrap = new GridData(GridData.FILL_HORIZONTAL); gdCBWrap.horizontalSpan = 2; gdCBWrap.heightHint = 20; cbWrap.setLayoutData(gdCBWrap); cbWrap.addSelectionListener(this); cbWrap.setText(Messages.getString("FontDefinitionDialog.Lbl.Wrap")); cbWrap.setSelection(fdCurrent.isWordWrap()); | cbWrap = new Button( cmpContent, SWT.CHECK ); GridData gdCBWrap = new GridData( GridData.FILL_HORIZONTAL ); gdCBWrap.horizontalSpan = 2; gdCBWrap.heightHint = 20; cbWrap.setLayoutData( gdCBWrap ); cbWrap.addSelectionListener( this ); cbWrap.setText( Messages.getString( "FontDefinitionDialog.Lbl.Wrap" ) ); cbWrap.setSelection( fdCurrent.isSetWordWrap( ) && fdCurrent.isWordWrap( ) ); | private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.numColumns = 9; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); Label lblFont = new Label(cmpContent, SWT.NONE); GridData gdLFont = new GridData(); gdLFont.heightHint = 22; lblFont.setLayoutData(gdLFont); lblFont.setText(Messages.getString("FontDefinitionDialog.Lbl.Font")); //$NON-NLS-1$ cmbFontNames = new Combo(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBFontNames = new GridData(GridData.FILL_HORIZONTAL); gdCMBFontNames.horizontalSpan = 8; cmbFontNames.setLayoutData(gdCMBFontNames); cmbFontNames.addSelectionListener(this); Label lblSize = new Label(cmpContent, SWT.NONE); GridData gdLSize = new GridData(); gdLSize.heightHint = 22; lblSize.setLayoutData(gdLSize); lblSize.setText(Messages.getString("FontDefinitionDialog.Lbl.Size")); //$NON-NLS-1$ iscFontSizes = new IntegerSpinControl(cmpContent, SWT.NONE, (int) fdCurrent.getSize()); GridData gdISCFontSizes = new GridData(GridData.FILL_HORIZONTAL); gdISCFontSizes.horizontalSpan = 3; iscFontSizes.setLayoutData(gdISCFontSizes); iscFontSizes.setMinimum(MIN_FONT_SIZE); iscFontSizes.setMaximum(MAX_FONT_SIZE); iscFontSizes.addListener(this); Label lblForeground = new Label(cmpContent, SWT.NONE); GridData gdLForeground = new GridData(); gdLForeground.horizontalSpan = 2; lblForeground.setLayoutData(gdLForeground); lblForeground.setText(Messages.getString("FontDefinitionDialog.Lbl.Color")); //$NON-NLS-1$ fccColor = new FillChooserComposite(cmpContent, SWT.NONE, cdCurrent, false, false); GridData gdFCCColor = new GridData(GridData.FILL_HORIZONTAL); gdFCCColor.horizontalSpan = 3; fccColor.setLayoutData(gdFCCColor); fccColor.addListener(this); Label lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData(); gdLStyle.heightHint = 22; lblStyle.setLayoutData(gdLStyle); lblStyle.setText(Messages.getString("FontDefinitionDialog.Lbl.Style")); //$NON-NLS-1$ btnBold = new Button(cmpContent, SWT.TOGGLE); GridData gdBBold = new GridData(GridData.FILL_HORIZONTAL); btnBold.setLayoutData(gdBBold); btnBold.setImage(UIHelper.getImage("icons/obj16/fnt_style_bold.gif")); //$NON-NLS-1$ btnBold.addSelectionListener(this); btnBold.setSelection(fdCurrent.isBold()); btnItalic = new Button(cmpContent, SWT.TOGGLE); GridData gdBItalic = new GridData(GridData.FILL_HORIZONTAL); btnItalic.setLayoutData(gdBItalic); btnItalic.setImage(UIHelper.getImage("icons/obj16/fnt_style_italic.gif")); //$NON-NLS-1$ btnItalic.addSelectionListener(this); btnItalic.setSelection(fdCurrent.isItalic()); btnUnderline = new Button(cmpContent, SWT.TOGGLE); GridData gdBUnderline = new GridData(GridData.FILL_HORIZONTAL); btnUnderline.setLayoutData(gdBUnderline); btnUnderline.setImage(UIHelper.getImage("icons/obj16/fnt_style_underline.gif")); //$NON-NLS-1$ btnUnderline.addSelectionListener(this); btnUnderline.setSelection(fdCurrent.isUnderline()); Label lblFormat = new Label(cmpContent, SWT.NONE); GridData gdLFormat = new GridData(GridData.VERTICAL_ALIGN_FILL); gdLFormat.horizontalSpan = 2; gdLFormat.verticalSpan = 2; lblFormat.setLayoutData(gdLFormat); lblFormat.setText(Messages.getString("FontDefinitionDialog.Lbl.Format")); //$NON-NLS-1$ cbStrikethru = new Button(cmpContent, SWT.CHECK); GridData gdCBStrikethru = new GridData(GridData.FILL_HORIZONTAL); gdCBStrikethru.horizontalSpan = 2; gdCBStrikethru.heightHint = 20; cbStrikethru.setLayoutData(gdCBStrikethru); cbStrikethru.addSelectionListener(this); cbStrikethru.setText(Messages.getString("FontDefinitionDialog.Lbl.Strikethrough")); //$NON-NLS-1$ cbStrikethru.setSelection(fdCurrent.isStrikethrough()); Label lblDummy1 = new Label(cmpContent, SWT.NONE); GridData gdLDummy1 = new GridData(); gdLDummy1.horizontalSpan = 6; lblDummy1.setLayoutData(gdLDummy1); cbWrap = new Button(cmpContent, SWT.CHECK); GridData gdCBWrap = new GridData(GridData.FILL_HORIZONTAL); gdCBWrap.horizontalSpan = 2; gdCBWrap.heightHint = 20; cbWrap.setLayoutData(gdCBWrap); cbWrap.addSelectionListener(this); cbWrap.setText(Messages.getString("FontDefinitionDialog.Lbl.Wrap")); //$NON-NLS-1$ cbWrap.setSelection(fdCurrent.isWordWrap()); createRotationPanel(); createAlignmentPanel(); FillLayout flPreview = new FillLayout(); flPreview.marginHeight = 2; flPreview.marginWidth = 3; grpPreview = new Group(cmpContent, SWT.NONE); grpPreview.setText(Messages.getString("FontDefinitionDialog.Lbl.Preview")); //$NON-NLS-1$ GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 9; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(flPreview); fcPreview = new FontCanvas(grpPreview, SWT.NONE, fdCurrent, cdCurrent, true, true, true); createButtonPanel(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/24a5facd06b9834d9092d18b6e634919abd5a8d1/FontDefinitionDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
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,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
... |
new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime(); | new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime(); | public void testFormatCVSDateGMTPlusZero() { TimeZone.setDefault(TimeZone.getTimeZone("GMT+0:00")); Date mayEighteenSixPM2001 = new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime(); assertEquals( "2001-05-18 18:00:00 GMT", CVS.formatCVSDate(mayEighteenSixPM2001)); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/cc8d12515d217c4869991501dda487dca6f6add8/CVSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1630,
39,
14640,
1626,
25315,
13207,
7170,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
25315,
15,
20,
30,
713,
7923,
1769,
3639,
2167,
2026,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1630,
39,
14640,
1626,
25315,
13207,
7170,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
25315,
15,
20,
30,
713,
7923,
1769,
3639,
2167,
2026,
4... |
for(int i = 0; i < methods.length; i++){ final PsiMethod testMethod = methods[i]; | for(final PsiMethod testMethod : methods){ | public boolean satisfiedBy(PsiElement element){ if(!(element instanceof PsiMethodCallExpression)){ return false; } if(ErrorUtil.containsError(element)){ return false; } final PsiMethodCallExpression expression = (PsiMethodCallExpression) element; if(expression.getArgumentList() == null){ return false; } // do it only when there is just one argument. final PsiExpressionList argumentList = expression.getArgumentList(); final PsiExpression[] args = argumentList.getExpressions(); if(args.length != 1){ return false; } final PsiReferenceExpression methodExpression = expression.getMethodExpression(); final PsiExpression qualifier = methodExpression.getQualifierExpression(); // make sure that there is a caller and a caller if(qualifier == null){ return false; } final String methodName = methodExpression.getReferenceName(); // the logic is... // if the argument takes a method of the same name with the caller as parameter // then we can switch the argument and the caller. final PsiType callerType = qualifier.getType(); final PsiType argumentType = args[0].getType(); if(argumentType == null || !(argumentType instanceof PsiClassType)){ return false; } if(callerType == null || !(callerType instanceof PsiClassType)){ return false; } final PsiClass argumentClass = ((PsiClassType) argumentType).resolve(); if(argumentClass == null){ return false; } final PsiMethod[] methods = argumentClass.findMethodsByName(methodName, true); for(int i = 0; i < methods.length; i++){ final PsiMethod testMethod = methods[i]; final String testMethodName = testMethod.getName(); if(testMethodName.equals(methodName)){ final PsiParameterList parameterList = testMethod.getParameterList(); final PsiParameter[] parameters = parameterList.getParameters(); if(parameters.length == 1){ final PsiParameter parameter = parameters[0]; final PsiType type = parameter.getType(); if(!(type == null || !type.isAssignableFrom(callerType))){ return true; } } } } return false; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/FlipCommutativeMethodCallPredicate.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/commutative/FlipCommutativeMethodCallPredicate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
12592,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304,
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,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
12592,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304,
18,
... |
getSubstring().getChars(0,str.length(),chars,0); | getSubstring().getChars(0, str.length(), chars, 0); | public int getAdvance(Context ctx, int x) { Font font = getFont(); String str = getSubstring(); str = str.substring(0,x); //u.p("substring = " + str); char[] chars = new char[str.length()]; getSubstring().getChars(0,str.length(),chars,0); FontMetrics fm = ctx.getGraphics().getFontMetrics(font); //u.p("getting advance: " + x + " chars = " + chars); return fm.charsWidth(chars,0,x); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/e65470765b9501b251ba6faf1734b383bb9b1578/InlineBox.java/clean/src/java/org/xhtmlrenderer/render/InlineBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
1871,
5882,
12,
1042,
1103,
16,
509,
619,
13,
288,
3639,
10063,
3512,
273,
18776,
5621,
3639,
514,
609,
273,
7040,
1080,
5621,
3639,
609,
273,
609,
18,
28023,
12,
20,
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,
336,
1871,
5882,
12,
1042,
1103,
16,
509,
619,
13,
288,
3639,
10063,
3512,
273,
18776,
5621,
3639,
514,
609,
273,
7040,
1080,
5621,
3639,
609,
273,
609,
18,
28023,
12,
20,
16... |
cssDictionary.put( Style.BACKGROUND_IMAGE_PROP, | cssDictionary.put( IStyleModel.BACKGROUND_IMAGE_PROP, | private static void populateCSSDictionary( ) { cssDictionary.put( Style.BACKGROUND_ATTACHMENT_PROP, DesignSchemaConstants.BACKGROUND_ATTACHMENT_ATTRIB ); cssDictionary.put( Style.BACKGROUND_COLOR_PROP, DesignSchemaConstants.BACKGROUND_COLOR_ATTRIB ); cssDictionary.put( Style.BACKGROUND_IMAGE_PROP, DesignSchemaConstants.BACKGROUND_IMAGE_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_X_PROP, DesignSchemaConstants.BACKGROUND_POSITION_X_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_Y_PROP, DesignSchemaConstants.BACKGROUND_POSITION_Y_ATTRIB ); cssDictionary.put( Style.BACKGROUND_REPEAT_PROP, DesignSchemaConstants.BACKGROUND_REPEAT_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_COLOR_PROP, DesignSchemaConstants.BORDER_BOTTOM_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_COLOR_PROP, DesignSchemaConstants.BORDER_LEFT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_STYLE_PROP, DesignSchemaConstants.BORDER_LEFT_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_COLOR_PROP, DesignSchemaConstants.BORDER_RIGHT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_COLOR_PROP, DesignSchemaConstants.BORDER_TOP_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_STYLE_PROP, DesignSchemaConstants.BORDER_TOP_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_WIDTH_PROP, DesignSchemaConstants.BORDER_TOP_WIDTH_ATTRIB ); cssDictionary.put( Style.CAN_SHRINK_PROP, DesignSchemaConstants.CAN_SHRINK_ATTRIB ); cssDictionary .put( Style.COLOR_PROP, DesignSchemaConstants.COLOR_ATTRIB ); cssDictionary.put( Style.DISPLAY_PROP, DesignSchemaConstants.SECTION_DISPLAY_ATTRIB ); cssDictionary.put( Style.FONT_FAMILY_PROP, DesignSchemaConstants.FONT_FAMILY_ATTRIB ); cssDictionary.put( Style.FONT_SIZE_PROP, DesignSchemaConstants.FONT_SIZE_ATTRIB ); cssDictionary.put( Style.FONT_STYLE_PROP, DesignSchemaConstants.FONT_STYLE_ATTRIB ); cssDictionary.put( Style.FONT_VARIANT_PROP, DesignSchemaConstants.FONT_VARIANT_ATTRIB ); cssDictionary.put( Style.FONT_WEIGHT_PROP, DesignSchemaConstants.FONT_WEIGHT_ATTRIB ); cssDictionary.put( Style.LETTER_SPACING_PROP, DesignSchemaConstants.TEXT_LETTER_SPACING_ATTRIB ); cssDictionary.put( Style.LINE_HEIGHT_PROP, DesignSchemaConstants.TEXT_LINE_HEIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_BOTTOM_PROP, DesignSchemaConstants.MARGIN_BOTTOM_ATTRIB ); cssDictionary.put( Style.MARGIN_LEFT_PROP, DesignSchemaConstants.MARGIN_LEFT_ATTRIB ); cssDictionary.put( Style.MARGIN_RIGHT_PROP, DesignSchemaConstants.MARGIN_RIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_TOP_PROP, DesignSchemaConstants.MARGIN_TOP_ATTRIB ); cssDictionary.put( Style.ORPHANS_PROP, DesignSchemaConstants.TEXT_ORPHANS_ATTRIB ); cssDictionary.put( Style.PADDING_BOTTOM_PROP, DesignSchemaConstants.PADDING_BOTTOM_ATTRIB ); cssDictionary.put( Style.PADDING_LEFT_PROP, DesignSchemaConstants.PADDING_LEFT_ATTRIB ); cssDictionary.put( Style.PADDING_RIGHT_PROP, DesignSchemaConstants.PADDING_RIGHT_ATTRIB ); cssDictionary.put( Style.PADDING_TOP_PROP, DesignSchemaConstants.PADDING_TOP_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_AFTER_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_AFTER_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_BEFORE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_BEFORE_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_INSIDE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_INSIDE_ATTRIB ); cssDictionary.put( Style.SHOW_IF_BLANK_PROP, DesignSchemaConstants.SECTION_SHOW_LF_BLANK_ATTRIB ); cssDictionary.put( Style.TEXT_ALIGN_PROP, DesignSchemaConstants.TEXT_ALIGN_ATTRIB ); cssDictionary.put( Style.TEXT_INDENT_PROP, DesignSchemaConstants.TEXT_INDENT_ATTRIB ); cssDictionary.put( Style.TEXT_LINE_THROUGH_PROP, DesignSchemaConstants.TEXT_LINE_THROUGH_ATTRIB ); cssDictionary.put( Style.TEXT_OVERLINE_PROP, DesignSchemaConstants.TEXT_OVERLINE_ATTRIB ); cssDictionary.put( Style.TEXT_TRANSFORM_PROP, DesignSchemaConstants.TEXT_TRANSFORM_ATTRIB ); cssDictionary.put( Style.TEXT_UNDERLINE_PROP, DesignSchemaConstants.TEXT_UNDERLINE_ATTRIB ); cssDictionary.put( Style.VERTICAL_ALIGN_PROP, DesignSchemaConstants.TEXT_VERTICAL_ALIGN_ATTRIB ); cssDictionary.put( Style.WHITE_SPACE_PROP, DesignSchemaConstants.TEXT_WHITE_SPACE_ATTRIB ); cssDictionary.put( Style.WIDOWS_PROP, DesignSchemaConstants.TEXT_WIDOWS_ATTRIB ); cssDictionary.put( Style.WORD_SPACING_PROP, DesignSchemaConstants.TEXT_WORD_SPACING_ATTRIB ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/Style.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/Style.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2... |
if (jj_3R_324()) return true; | Token xsp; xsp = jj_scanpos; if (jj_3R_324()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(RPAREN)) return true; | final private boolean jj_3R_284() { if (jj_scan_token(THROWS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_324()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2455,
28402,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2455,
28402,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
3... |
form.resetEvent(); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access and set request parameters */ if (!form.getUserAuth().isAlertUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ form.initFields(); form.setEvent(null); form.assignAlertEvent(true); form.assignAddingEvent(true); form.resetEvent(); return "continue"; } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/4583c936e771c0e3d32d0cbcb448b26a13b84aeb/PEInitAddAlertAction.java/buggy/calendar3/webadmin/src/org/bedework/webadmin/event/PEInitAddAlertAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
741,
1803,
12,
2940,
18572,
590,
16,
7682,
605,
91,
2157,
8451,
16,
7682,
16628,
1803,
1204,
646,
13,
1216,
4206,
288,
565,
1783,
2073,
2006,
471,
444,
590,
1472,
377,
1195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
741,
1803,
12,
2940,
18572,
590,
16,
7682,
605,
91,
2157,
8451,
16,
7682,
16628,
1803,
1204,
646,
13,
1216,
4206,
288,
565,
1783,
2073,
2006,
471,
444,
590,
1472,
377,
1195,
... | |
servlet.log("session.getValue(" + name + ")=" + result); | servlet.log("session.getAttribute(" + name + ")=" + result); | public Object getSessionAttribute(String name) { Object result; result = getSession().getValue(name); if (debugEnabled) servlet.log("session.getValue(" + name + ")=" + result); return result; } | 4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/0c76cd10144815f421952677208922499ef2ccfe/RequestContext.java/buggy/examples/Vlib/src/com/primix/servlet/RequestContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
7183,
1499,
12,
780,
508,
13,
202,
95,
202,
202,
921,
563,
31,
202,
202,
2088,
273,
7183,
7675,
24805,
12,
529,
1769,
202,
202,
430,
261,
4148,
1526,
13,
1082,
202,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
7183,
1499,
12,
780,
508,
13,
202,
95,
202,
202,
921,
563,
31,
202,
202,
2088,
273,
7183,
7675,
24805,
12,
529,
1769,
202,
202,
430,
261,
4148,
1526,
13,
1082,
202,
23... |
throws ClassNotFoundException { Iterator i = instructions.iterator(); Set methods = new HashSet(); while (i.hasNext()) { InvokeInstruction element = (InvokeInstruction) i.next(); MethodGen m = this.findMethod(element, pool); Method method = new Method(m); if (inspecter.inspect(m)) { methods.add(m); } else { limitsMethods.add(method); } } return methods; } | throws ClassNotFoundException { Iterator i = instructions.iterator(); Set methods = new HashSet(); while (i.hasNext()) { InvokeInstruction element = (InvokeInstruction) i.next(); MethodGen m = this.findMethod(element, pool); Method method = new Method(m); if (inspecter.inspect(m)) { methods.add(m); } else { limitsMethods.add(method); } } return methods; } | private Set analyseInvokeInstruction(Set instructions, ConstantPoolGen pool) throws ClassNotFoundException { Iterator i = instructions.iterator(); Set methods = new HashSet(); while (i.hasNext()) { InvokeInstruction element = (InvokeInstruction) i.next(); MethodGen m = this.findMethod(element, pool); Method method = new Method(m); if (inspecter.inspect(m)) { methods.add(m); } else { limitsMethods.add(method); } } return methods; } | 10293 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10293/a5e434e769b7467432c6134c2cdd36630e3ee5ae/Analyser.java/clean/src/java/net/java/dev/jminimizer/Analyser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
31087,
10969,
11983,
12,
694,
12509,
16,
10551,
2864,
7642,
2845,
13,
1082,
202,
15069,
10403,
288,
202,
202,
3198,
277,
273,
12509,
18,
9838,
5621,
202,
202,
694,
2590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
31087,
10969,
11983,
12,
694,
12509,
16,
10551,
2864,
7642,
2845,
13,
1082,
202,
15069,
10403,
288,
202,
202,
3198,
277,
273,
12509,
18,
9838,
5621,
202,
202,
694,
2590,
... |
return repository.getUrl(); | return getText(object); | public String getColumnText(Object object, int index) { if (object instanceof TaskRepository) { TaskRepository repository = (TaskRepository) object; if (repository.getRepositoryLabel() != null && repository.getRepositoryLabel().length() > 0) { return repository.getRepositoryLabel(); } else { return repository.getUrl(); } } else if (object instanceof AbstractRepositoryConnector) { return ((AbstractRepositoryConnector) object).getLabel(); } else { return getText(object); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/34cde3f36a3e427f31cd8468c7f0e099fe3c4e91/TaskRepositoryLabelProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoryLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6716,
1528,
12,
921,
733,
16,
509,
770,
13,
288,
202,
202,
430,
261,
1612,
1276,
3837,
3305,
13,
288,
1082,
202,
2174,
3305,
3352,
273,
261,
2174,
3305,
13,
733,
31,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6716,
1528,
12,
921,
733,
16,
509,
770,
13,
288,
202,
202,
430,
261,
1612,
1276,
3837,
3305,
13,
288,
1082,
202,
2174,
3305,
3352,
273,
261,
2174,
3305,
13,
733,
31,
10... |
public ActionForward prepareEditObjectives(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { ISiteComponent objectivesComponent = new InfoCurriculum(); Integer objectCode = getObjectCode(request); String curricularCourseCodeString = request.getParameter("curricularCourseCode"); Integer curricularCourseCode = new Integer(curricularCourseCodeString); request.setAttribute("curricularCourseCode", curricularCourseCode); try { readSiteView(request, objectivesComponent, null, curricularCourseCode, null); } catch (FenixActionException e1) { throw e1; } HttpSession session = request.getSession(false); UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); // Filter if the cteacher is responsibles for the execution course Object args[] = { userView.getUtilizador(), objectCode, curricularCourseCode }; Boolean isResponsible = null; try { isResponsible = (Boolean) ServiceManagerServiceFactory.executeService(null, "TeacherResponsibleByExecutionCourse", args); } catch (FenixServiceException e) { e.printStackTrace(); throw new FenixActionException(e); } if (isResponsible.booleanValue() == false) { ActionErrors errors = new ActionErrors(); errors.add("notAuthorized", new ActionError("error.exception.notAuthorized2")); saveErrors(request, errors); return mapping.findForward("notAuthorized"); } TeacherAdministrationSiteView siteView = (TeacherAdministrationSiteView) request .getAttribute("siteView"); if (siteView.getComponent() != null) { DynaActionForm objectivesForm = (DynaActionForm) form; objectivesForm.set("generalObjectives", ((InfoCurriculum) siteView.getComponent()) .getGeneralObjectives()); objectivesForm.set("generalObjectivesEn", ((InfoCurriculum) siteView.getComponent()) .getGeneralObjectivesEn()); objectivesForm.set("operacionalObjectives", ((InfoCurriculum) siteView.getComponent()) .getOperacionalObjectives()); objectivesForm.set("operacionalObjectivesEn", ((InfoCurriculum) siteView.getComponent()) .getOperacionalObjectivesEn()); } return mapping.findForward("editObjectives"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4666,
921,
3606,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
2911,
4666,
921,
3606,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
158... | ||
int shift = superIds.length; Object[] ids = new Object[shift + N]; | int superLength = superIds.length; Object[] ids = new Object[N + superLength]; | public Object[] getIds() { Object[] superIds = super.getIds(); if (dense == null) { return superIds; } int N = dense.length; long currentLength = length; if (N > currentLength) { N = (int)currentLength; } if (N == 0) { return superIds; } int shift = superIds.length; Object[] ids = new Object[shift + N]; // Make a copy of dense to be immune to removing // of array elems from other thread when calculating presentCount System.arraycopy(dense, 0, ids, shift, N); int presentCount = 0; for (int i = 0; i != N; ++i) { // Replace existing elements by their indexes if (ids[shift + i] != NOT_FOUND) { ids[shift + presentCount] = new Integer(i); ++presentCount; } } if (presentCount != N) { // dense contains deleted elems, need to shrink the result Object[] tmp = new Object[shift + presentCount]; System.arraycopy(ids, shift, tmp, shift, presentCount); ids = tmp; } System.arraycopy(superIds, 0, ids, 0, shift); return ids; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/83ea5840cf72a3d4ae310c739dd72f5afb7f8633/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8526,
2634,
87,
1435,
565,
288,
3639,
1033,
8526,
2240,
2673,
273,
2240,
18,
588,
2673,
5621,
3639,
309,
261,
25942,
422,
446,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8526,
2634,
87,
1435,
565,
288,
3639,
1033,
8526,
2240,
2673,
273,
2240,
18,
588,
2673,
5621,
3639,
309,
261,
25942,
422,
446,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
... |
ctorTypes[i] = ctors[i].getParameterTypes(); | ctors[i] = new MemberBox(constructors[i]); | private void reflectCtors() { ctors = cl.getConstructors(); int N = ctors.length; ctorTypes = new Class[N][]; for (int i = 0; i != N; ++i) { ctorTypes[i] = ctors[i].getParameterTypes(); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3037,
39,
88,
1383,
1435,
565,
288,
3639,
5691,
1383,
273,
927,
18,
588,
29590,
5621,
3639,
509,
423,
273,
5691,
1383,
18,
2469,
31,
3639,
15120,
2016,
273,
394,
1659,
63,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3037,
39,
88,
1383,
1435,
565,
288,
3639,
5691,
1383,
273,
927,
18,
588,
29590,
5621,
3639,
509,
423,
273,
5691,
1383,
18,
2469,
31,
3639,
15120,
2016,
273,
394,
1659,
63,
50... |
} catch(Exception e) {} | } catch(Exception e) { } finally { ec.unlock(); } | public WOComponent pingAction() { WOComponent result = null; try{ EOUtilities.rawRowsForSQL(pingEditingContext(), "bug", "select count(*) from PRIORITY"); result=pageWithName("ERXSuccess"); } catch(Exception e) {} return result; } | 22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/a8f1495dff9fbd49d7378b2716c8774c4b27141d/DirectAction.java/clean/Common/Applications/BugTracker/Sources/er/bugtracker/DirectAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
51,
1841,
10087,
1803,
1435,
288,
3639,
678,
51,
1841,
563,
273,
446,
31,
3639,
775,
95,
5411,
512,
51,
11864,
18,
1899,
4300,
1290,
3997,
12,
1382,
28029,
1042,
9334,
4766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
51,
1841,
10087,
1803,
1435,
288,
3639,
678,
51,
1841,
563,
273,
446,
31,
3639,
775,
95,
5411,
512,
51,
11864,
18,
1899,
4300,
1290,
3997,
12,
1382,
28029,
1042,
9334,
4766,
... |
group.addLabelPair("Ausfhrungstag", control.getAusfhrungSuch()); | group.addLabelPair("Ausfhrungstag", control.getAusfuehrungSuch()); | public void bind() throws Exception { GUI.getView().setTitle("Liste der Zusatzabbuchungen"); final ZusatzabbuchungControl control = new ZusatzabbuchungControl(this); LabelGroup group = new LabelGroup(getParent(), "Ausfhrungstag"); group.addLabelPair("Ausfhrungstag", control.getAusfhrungSuch()); ButtonArea buttons = new ButtonArea(this.getParent(), 2); buttons.addButton("<< Zurck", new BackAction()); control.getZusatzabbuchungsList().paint(this.getParent()); } | 54394 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54394/d9f683a71a74e516f731993780f0b2a36c0ea964/ZusatzabbuchunglisteView.java/buggy/jverein/src/de/jost_net/JVerein/gui/view/ZusatzabbuchunglisteView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1993,
1435,
1216,
1185,
225,
288,
565,
10978,
18,
588,
1767,
7675,
542,
4247,
2932,
682,
73,
4854,
2285,
407,
270,
94,
19364,
2648,
318,
4507,
8863,
565,
727,
2285,
407,
270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1993,
1435,
1216,
1185,
225,
288,
565,
10978,
18,
588,
1767,
7675,
542,
4247,
2932,
682,
73,
4854,
2285,
407,
270,
94,
19364,
2648,
318,
4507,
8863,
565,
727,
2285,
407,
270,
... |
System.getProperties().put(PROP_NL, arg); | FrameworkProperties.setProperty(PROP_NL, arg); | private static String[] processCommandLine(String[] args) throws Exception { EclipseEnvironmentInfo.setAllArgs(args); if (args.length == 0) { EclipseEnvironmentInfo.setFrameworkArgs(args); EclipseEnvironmentInfo.setAllArgs(args); return args; } int[] configArgs = new int[args.length]; configArgs[0] = -1; // need to initialize the first element to something that could not be an index. int configArgIndex = 0; for (int i = 0; i < args.length; i++) { boolean found = false; // check for args without parameters (i.e., a flag arg) // check if debug should be enabled for the entire platform // If this is the last arg or there is a following arg (i.e., arg+1 has a leading -), // simply enable debug. Otherwise, assume that that the following arg is // actually the filename of an options file. This will be processed below. if (args[i].equalsIgnoreCase(DEBUG) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_DEBUG, ""); //$NON-NLS-1$ debug = true; found = true; } // check if development mode should be enabled for the entire platform // If this is the last arg or there is a following arg (i.e., arg+1 has a leading -), // simply enable development mode. Otherwise, assume that that the following arg is // actually some additional development time class path entries. This will be processed below. if (args[i].equalsIgnoreCase(DEV) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_DEV, ""); //$NON-NLS-1$ found = true; } // look for the initialization arg if (args[i].equalsIgnoreCase(INITIALIZE)) { initialize = true; found = true; } // look for the clean flag. if (args[i].equalsIgnoreCase(CLEAN)) { System.getProperties().put(PROP_CLEAN, "true"); //$NON-NLS-1$ found = true; } // look for the consoleLog flag if (args[i].equalsIgnoreCase(CONSOLE_LOG)) { System.getProperties().put(PROP_CONSOLE_LOG, "true"); //$NON-NLS-1$ found = true; } // look for the console with no port. if (args[i].equalsIgnoreCase(CONSOLE) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$ System.getProperties().put(PROP_CONSOLE, ""); //$NON-NLS-1$ found = true; } if (args[i].equalsIgnoreCase(NOEXIT)) { System.getProperties().put(PROP_NOSHUTDOWN, "true"); //$NON-NLS-1$ found = true; } if (found) { configArgs[configArgIndex++] = i; continue; } // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) { //$NON-NLS-1$ continue; } String arg = args[++i]; // look for the console and port. if (args[i - 1].equalsIgnoreCase(CONSOLE)) { System.getProperties().put(PROP_CONSOLE, arg); found = true; } // look for the configuration location . if (args[i - 1].equalsIgnoreCase(CONFIGURATION)) { System.getProperties().put(LocationManager.PROP_CONFIG_AREA, arg); found = true; } // look for the data location for this instance. if (args[i - 1].equalsIgnoreCase(DATA)) { System.getProperties().put(LocationManager.PROP_INSTANCE_AREA, arg); found = true; } // look for the user location for this instance. if (args[i - 1].equalsIgnoreCase(USER)) { System.getProperties().put(LocationManager.PROP_USER_AREA, arg); found = true; } // look for the development mode and class path entries. if (args[i - 1].equalsIgnoreCase(DEV)) { System.getProperties().put(PROP_DEV, arg); found = true; } // look for the debug mode and option file location. if (args[i - 1].equalsIgnoreCase(DEBUG)) { System.getProperties().put(PROP_DEBUG, arg); debug = true; found = true; } // look for the window system. if (args[i - 1].equalsIgnoreCase(WS)) { System.getProperties().put(PROP_WS, arg); found = true; } // look for the operating system if (args[i - 1].equalsIgnoreCase(OS)) { System.getProperties().put(PROP_OS, arg); found = true; } // look for the system architecture if (args[i - 1].equalsIgnoreCase(ARCH)) { System.getProperties().put(PROP_ARCH, arg); found = true; } // look for the nationality/language if (args[i - 1].equalsIgnoreCase(NL)) { System.getProperties().put(PROP_NL, arg); found = true; } // done checking for args. Remember where an arg was found if (found) { configArgs[configArgIndex++] = i - 1; configArgs[configArgIndex++] = i; } } // remove all the arguments consumed by this argument parsing if (configArgIndex == 0) { EclipseEnvironmentInfo.setFrameworkArgs(new String[0]); EclipseEnvironmentInfo.setAppArgs(args); return args; } String[] appArgs = new String[args.length - configArgIndex]; String[] frameworkArgs = new String[configArgIndex]; configArgIndex = 0; int j = 0; int k = 0; for (int i = 0; i < args.length; i++) { if (i == configArgs[configArgIndex]) { frameworkArgs[k++] = args[i]; configArgIndex++; } else appArgs[j++] = args[i]; } EclipseEnvironmentInfo.setFrameworkArgs(frameworkArgs); EclipseEnvironmentInfo.setAppArgs(appArgs); return appArgs; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/795e339493dd76d146d62fd4fd2526e831c650bd/EclipseStarter.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
8526,
1207,
21391,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
23057,
10472,
5494,
966,
18,
542,
1595,
2615,
12,
1968,
1769,
202,
202,
430,
261,
1968,
18,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
8526,
1207,
21391,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
23057,
10472,
5494,
966,
18,
542,
1595,
2615,
12,
1968,
1769,
202,
202,
430,
261,
1968,
18,
24... |
public void completedCreate(UTF8 src) { creates.remove(src); | public boolean completedCreate(UTF8 src) { return creates.remove(src); | public void completedCreate(UTF8 src) { creates.remove(src); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/e4001be4fd1b3b0ad74ce38168cf0c691b251e62/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
5951,
1684,
12,
5159,
28,
1705,
13,
288,
5411,
3414,
18,
4479,
12,
4816,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
5951,
1684,
12,
5159,
28,
1705,
13,
288,
5411,
3414,
18,
4479,
12,
4816,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Gene gFromDB = (Gene) daoGene.findByOfficalName("testmygene").iterator().next(); | Gene gFromDB = (Gene) daoGene.findByOfficalSymbol("testmygene").iterator().next(); | public void testSetCandidateGene() { cg = CandidateGene.Factory.newInstance(); cg.setRank(new Integer(1)); Gene gFromDB = (Gene) daoGene.findByOfficalName("testmygene").iterator().next(); cg.setGene(gFromDB); daoCG.create(cg); assertTrue(cg.getGene().equals(gFromDB)); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/13c10cece5df0d3063d85fb5434c61ffd8ab8eec/CandidateGeneDaoImplTest.java/buggy/test/edu/columbia/gemma/sequence/gene/CandidateGeneDaoImplTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
694,
11910,
24442,
1435,
288,
202,
21114,
565,
14947,
273,
385,
8824,
24442,
18,
1733,
18,
2704,
1442,
5621,
202,
565,
14947,
18,
542,
12925,
12,
2704,
2144,
12,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
694,
11910,
24442,
1435,
288,
202,
21114,
565,
14947,
273,
385,
8824,
24442,
18,
1733,
18,
2704,
1442,
5621,
202,
565,
14947,
18,
542,
12925,
12,
2704,
2144,
12,
21,
... |
RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } | RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } | public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
780,
2900,
529,
1435,
288,
202,
202,
54,
10340,
780,
589,
273,
446,
31,
202,
202,
54,
10340,
3120,
7138,
3120,
273,
333,
31,
202,
202,
17523,
261,
6731,
3120,
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,
225,
202,
482,
19817,
780,
2900,
529,
1435,
288,
202,
202,
54,
10340,
780,
589,
273,
446,
31,
202,
202,
54,
10340,
3120,
7138,
3120,
273,
333,
31,
202,
202,
17523,
261,
6731,
3120,
18,
291,
... |
protected List getColumn(EList list, String feature) { | protected List getColumn(Object[] list, String feature) { | protected List getColumn(EList list, String feature) { List result = new ArrayList(); if (list == null || list.size() == 0) return result; EStructuralFeature sf = ((EObject) list.get(0)).eClass() .getEStructuralFeature(feature); for (Iterator iter = list.iterator(); iter.hasNext();) { EObject o = (EObject) iter.next(); result.add(o.eGet(sf)); } return result; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1530c33800c89b3fbc6a32b79c9729ecf7967272/ReadOnlyComboScenarios.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/binding/scenarios/ReadOnlyComboScenarios.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
6716,
12,
41,
682,
666,
16,
514,
2572,
13,
288,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
430,
261,
1098,
422,
446,
747,
666,
18,
1467,
1435,
422,
374,
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,
987,
6716,
12,
41,
682,
666,
16,
514,
2572,
13,
288,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
430,
261,
1098,
422,
446,
747,
666,
18,
1467,
1435,
422,
374,
13,
... |
rsaParams = new RSAParameterSpec(512, BigInteger.valueOf(3)); kpg.initialize(rsaParams); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof RSAPublicKey); rsaPubKey = (RSAPublicKey) keyPair.getPublic(); System.out.println("Generated 512-bit RSA KeyPair with public exponent=3!"); System.out.println("Modulus: "+rsaPubKey.getModulus()); System.out.println("Exponent: "+rsaPubKey.getPublicExponent()); | System.out.println("Generating 512-bit RSA KeyPair with public exponent=3!"); for (int cntr=0; cntr<5; cntr++ ) { try { rsaParams = new RSAParameterSpec(512, BigInteger.valueOf(3)); kpg.initialize(rsaParams); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof RSAPublicKey); rsaPubKey = (RSAPublicKey) keyPair.getPublic(); System.out.println("Generated 512-bit RSA KeyPair with public exponent=3!"); System.out.println("Modulus: "+rsaPubKey.getModulus()); System.out.println("Exponent: "+rsaPubKey.getPublicExponent()); break; } catch (org.mozilla.jss.crypto.TokenRuntimeException TRExRSA512Exp3) { if (cntr==5) { System.out.println("Generation of 512-bit RSA KeyPair with public exponent=3 Failed\n"); TRExRSA512Exp3.printStackTrace(); } } } | public static void main(String[] args) { try { CryptoManager manager; java.security.KeyPair keyPair; Base64OutputStream base64; if(args.length != 2) { System.err.println("Usage: java org.mozilla.jss.pkcs11." + "TestKeyGen <dbdir> <pwfile>"); System.exit(1); } CryptoManager.initialize(args[0]); manager = CryptoManager.getInstance(); manager.setPasswordCallback( new FilePasswordCallback(args[1]) ); java.util.Enumeration tokens = manager.getTokensSupportingAlgorithm(KeyPairAlgorithm.RSA); System.out.println("The following tokens support RSA keygen:"); while(tokens.hasMoreElements()) { System.out.println("\t"+ ((CryptoToken)tokens.nextElement()).getName() ); } tokens = manager.getTokensSupportingAlgorithm(KeyPairAlgorithm.DSA); System.out.println("The following tokens support DSA keygen:"); while(tokens.hasMoreElements()) { System.out.println("\t"+ ((CryptoToken)tokens.nextElement()).getName() ); } RSAPublicKey rsaPubKey; DSAPublicKey dsaPubKey; DSAParams dsaParams; RSAParameterSpec rsaParams; java.security.KeyPairGenerator kpg = java.security.KeyPairGenerator.getInstance("RSA", "Mozilla-JSS"); // 512-bit RSA with default exponent kpg.initialize(512); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof RSAPublicKey); rsaPubKey = (RSAPublicKey) keyPair.getPublic(); System.out.println("Generated 512-bit RSA KeyPair!"); System.out.println("Modulus: "+rsaPubKey.getModulus()); System.out.println("Exponent: "+rsaPubKey.getPublicExponent()); // 1024-bit RSA with default exponent kpg.initialize(1024); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof RSAPublicKey); rsaPubKey = (RSAPublicKey) keyPair.getPublic(); System.out.println("Generated 1024-bit RSA KeyPair!"); System.out.println("Modulus: "+rsaPubKey.getModulus()); System.out.println("Exponent: "+rsaPubKey.getPublicExponent()); // 512-bit RSA with exponent = 3 rsaParams = new RSAParameterSpec(512, BigInteger.valueOf(3)); kpg.initialize(rsaParams); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof RSAPublicKey); rsaPubKey = (RSAPublicKey) keyPair.getPublic(); System.out.println("Generated 512-bit RSA KeyPair with public exponent=3!"); System.out.println("Modulus: "+rsaPubKey.getModulus()); System.out.println("Exponent: "+rsaPubKey.getPublicExponent()); // 512-bit DSA kpg = java.security.KeyPairGenerator.getInstance("DSA", "Mozilla-JSS"); kpg.initialize(512); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof DSAPublicKey); dsaPubKey = (DSAPublicKey) keyPair.getPublic(); System.out.println("Generated 512-bit DSA KeyPair!"); dsaParams = dsaPubKey.getParams(); System.out.println("P: "+dsaParams.getP()); System.out.println("Q: "+dsaParams.getQ()); System.out.println("G: "+dsaParams.getG()); System.out.println("Y: "+dsaPubKey.getY()); // 1024-bit DSA, passing in PQG params kpg.initialize(PK11KeyPairGenerator.PQG1024); keyPair = kpg.genKeyPair(); Assert._assert( keyPair.getPublic() instanceof DSAPublicKey); dsaPubKey = (DSAPublicKey) keyPair.getPublic(); System.out.println("Generated 1024-bit DSA KeyPair with PQG params!"); dsaParams = dsaPubKey.getParams(); System.out.println("P: "+dsaParams.getP()); System.out.println("Q: "+dsaParams.getQ()); System.out.println("G: "+dsaParams.getG()); System.out.println("Y: "+dsaPubKey.getY()); System.out.println("TestKeyGen passed"); System.exit(0); } catch (Exception e) { e.printStackTrace(); System.exit(1); } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e5e6b59c1971f64da1015487204096f609f36441/TestKeyGen.java/buggy/security/jss/org/mozilla/jss/tests/TestKeyGen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
1377,
775,
288,
3639,
15629,
1318,
3301,
31,
3639,
2252,
18,
7462,
18,
15099,
31527,
31,
3639,
3360,
1105,
4632,
1026,
1105,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
1377,
775,
288,
3639,
15629,
1318,
3301,
31,
3639,
2252,
18,
7462,
18,
15099,
31527,
31,
3639,
3360,
1105,
4632,
1026,
1105,
31,
3639,
... |
if (c instanceof ConstantInteger) pushByConstant(new Integer(((ConstantInteger) c).getBytes())); else if (c instanceof ConstantFloat) pushByConstant(new Float(((ConstantInteger) c).getBytes())); else if (c instanceof ConstantString) { int s = ((ConstantString) c).getStringIndex(); pushByConstant(getStringFromIndex(dbc, s)); } else throw new UnsupportedOperationException("Constant type not expected" ); | pushByConstant(dbc, c); break; case INSTANCEOF: pop(); pushBySignature("I"); | public void sawOpcode(DismantleBytecode dbc, int seen) { int register; LocalVariableTable lvt; LocalVariable lv; JavaClass cls; String signature = null; Method m = null; try { //Currently some of this ops should check the tos to look for literals, and do better logic //But that's not done now. switch (seen) { case ALOAD: register = dbc.getRegisterOperand(); m = dbc.getMethod(); lvt = m.getLocalVariableTable(); if (lvt != null) { lv = lvt.getLocalVariable(register); signature = lv.getSignature(); } pushBySignature(signature); break; case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: register = seen - ALOAD_0; m = dbc.getMethod(); lvt = m.getLocalVariableTable(); if (lvt != null) { lv = lvt.getLocalVariable(register); signature = lv.getSignature(); } pushBySignature(signature); break; case GETSTATIC: pushBySignature(dbc.getSigConstantOperand()); break; case LDC: Constant c = dbc.getConstantRefOperand(); if (c instanceof ConstantInteger) pushByConstant(new Integer(((ConstantInteger) c).getBytes())); else if (c instanceof ConstantFloat) pushByConstant(new Float(((ConstantInteger) c).getBytes())); else if (c instanceof ConstantString) { int s = ((ConstantString) c).getStringIndex(); pushByConstant(getStringFromIndex(dbc, s)); } else throw new UnsupportedOperationException("Constant type not expected" ); break; case ASTORE: case ASTORE_0: case ASTORE_1: case ASTORE_2: case ASTORE_3: case DRETURN: case DSTORE: case DSTORE_0: case DSTORE_1: case DSTORE_2: case DSTORE_3: case FRETURN: case FSTORE: case FSTORE_0: case FSTORE_1: case FSTORE_2: case FSTORE_3: case IFEQ: case IFNE: case IFLT: case IFLE: case IFGT: case IFGE: case IFNONNULL: case IFNULL: case IRETURN: case ISTORE: case ISTORE_0: case ISTORE_1: case ISTORE_2: case ISTORE_3: case LRETURN: case LSTORE: case LSTORE_0: case LSTORE_1: case LSTORE_2: case LSTORE_3: case MONITORENTER: case MONITOREXIT: case POP: case PUTSTATIC: pop(); break; case IF_ACMPEQ: case IF_ACMPNE: case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPLE: case IF_ICMPGT: case IF_ICMPGE: case POP2: case PUTFIELD: pop(); pop(); break; case DUP: Item i = pop(); push(i); push(i); break; case ATHROW: case CHECKCAST: case GOTO: case GOTO_W: case NOP: case RET: case RETURN: break; case SWAP: Item i1 = pop(); Item i2 = pop(); push(i2); push(i1); break; case INVOKEVIRTUAL: case INVOKESPECIAL: case INVOKESTATIC: signature = dbc.getSigConstantOperand(); Type[] argTypes = Type.getArgumentTypes(signature); pop(argTypes.length); pushBySignature(Type.getReturnType(signature).getSignature()); break; default: throw new UnsupportedOperationException("OpCode not supported yet" ); } } catch (Exception e) { //If an error occurs, we clear the stack. one of two things will occur. Either the client will expect more stack //items than really exist, and so they're condition check will fail, or the stack will resync with the code. //But hopefully not false positives stack.clear(); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/1cb0da19ff45109b9abd56a0b82880c137292559/OpcodeStack.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
482,
918,
19821,
22808,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
474,
1744,
31,
3196,
202,
2042,
3092,
1388,
5362,
88,
31,
3196,
202,
2042,
3092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
482,
918,
19821,
22808,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
474,
1744,
31,
3196,
202,
2042,
3092,
1388,
5362,
88,
31,
3196,
202,
2042,
3092... |
String hostPort = urlPath.substring( 0, indexSlash ); int indexColon = hostPort.indexOf( ":" ); | hostPort = urlPath.substring( 0, indexSlash ); } | private void parseUrl( String url ) { String protocol = null; if ( url.startsWith( "file" ) ) { protocol = "file://"; } else if ( url.startsWith( "https" ) ) { protocol = "https://"; } else if ( url.startsWith( "http" ) ) { protocol = "http://"; } else if ( url.startsWith( "svn+ssh" ) ) { protocol = "svn+ssh://"; } else if ( url.startsWith( "svn" ) ) { protocol = "svn://"; } String urlPath = url.substring( protocol.length() ); int indexAt = urlPath.indexOf( "@" ); if ( indexAt > 0 && !"svn+ssh://".equals( protocol ) ) { setUser( urlPath.substring( 0, indexAt ) ); urlPath = urlPath.substring( indexAt + 1 ); this.url = protocol + urlPath; } else { this.url = protocol + urlPath; } if ( !"file://".equals( protocol ) ) { int indexSlash = urlPath.indexOf( "/" ); if ( indexSlash > 0 ) { String hostPort = urlPath.substring( 0, indexSlash ); int indexColon = hostPort.indexOf( ":" ); if ( indexColon > 0 ) { setHost( hostPort.substring( 0, indexColon ) ); setPort( Integer.parseInt( hostPort.substring( indexColon + 1 ) ) ); } } } } | 48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/9928fe9919a4d8549d2532a0959f6d00440b1147/SvnScmProviderRepository.java/buggy/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svn-commons/src/main/java/org/apache/maven/scm/provider/svn/repository/SvnScmProviderRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1489,
12,
514,
880,
262,
565,
288,
3639,
514,
1771,
273,
446,
31,
3639,
309,
261,
880,
18,
17514,
1190,
12,
315,
768,
6,
262,
262,
3639,
288,
5411,
1771,
273,
315,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1489,
12,
514,
880,
262,
565,
288,
3639,
514,
1771,
273,
446,
31,
3639,
309,
261,
880,
18,
17514,
1190,
12,
315,
768,
6,
262,
262,
3639,
288,
5411,
1771,
273,
315,
76... |
&& ( (DesignElementHandle) model ).getSemanticErrors( ) .size( ) > 0 ) | && ( (DesignElementHandle) model ).getSemanticErrors( ).size( ) > 0 ) | public Image getNodeIcon( Object model ) { Image icon = null; String iconName = getIconName( model ); if ( model instanceof DesignElementHandle && ( (DesignElementHandle) model ).getSemanticErrors( ) .size( ) > 0 ) { return ReportPlatformUIImages.getImage( ISharedImages.IMG_OBJS_ERROR_TSK ); } if ( iconName != null ) {//if the getIconName is defined icon = ReportPlatformUIImages.getImage( iconName ); } if ( icon == null ) { if ( model instanceof DesignElementHandle ) { icon = ReportPlatformUIImages.getImage( model ); } } return icon; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ef5ae7afe30c799c67dccab5a4b954bfe70590a3/DefaultNodeProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/DefaultNodeProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
5973,
5554,
12,
1033,
938,
262,
202,
95,
202,
202,
2040,
4126,
273,
446,
31,
202,
202,
780,
4126,
461,
273,
21724,
461,
12,
938,
11272,
202,
202,
430,
261,
938,
1276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3421,
5973,
5554,
12,
1033,
938,
262,
202,
95,
202,
202,
2040,
4126,
273,
446,
31,
202,
202,
780,
4126,
461,
273,
21724,
461,
12,
938,
11272,
202,
202,
430,
261,
938,
1276,
... |
ChannelHandler addRoute(JID node, RoutableChannelHandler destination); | void addRoute(JID node, RoutableChannelHandler destination); | ChannelHandler addRoute(JID node, RoutableChannelHandler destination); | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/7661e3598f5b4abe8912fc2131a1d6fd01b665a6/RoutingTable.java/buggy/src/java/org/jivesoftware/messenger/RoutingTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5307,
1503,
27469,
12,
46,
734,
756,
16,
7271,
429,
2909,
1503,
2929,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5307,
1503,
27469,
12,
46,
734,
756,
16,
7271,
429,
2909,
1503,
2929,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; | if (m.group(2) != null) { Debug.msg(3, "Pattern2: " + m.group(2).trim()); String line2 = m.group(2).trim(); split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; } split = zipcity.split(" ", 2); if (split.length > 1) { zipcode = split[0].trim(); city = split[1].trim(); } else { city = split[0].trim(); } String[] splitNames, splitAddress, splitPostCodeCity; splitAddress = m.group(2).trim().split(",* "); Debug.msg(splitAddress[0]); splitPostCodeCity = splitAddress[1].split(" ", 2); | public static Person lookupDasOertliche(String number) { if (number.equals("")) { return null; } Debug.msg("Looking up " + number + "..."); URL url = null; URLConnection urlConn; DataOutputStream printout; String data = ""; Person newPerson; String urlstr = "http://www.dasoertliche.de/DB4Web/es/oetb2suche/home.htm?main=Antwort&s=2&kw_invers=" + number; try { url = new URL(urlstr); if (url != null) { URLConnection con; try { con = url.openConnection(); String header = ""; String charSet = ""; for (int i = 0;; i++) { String headerName = con.getHeaderFieldKey(i); String headerValue = con.getHeaderField(i); if (headerName == null && headerValue == null) { // No more headers break; } if ("content-type".equalsIgnoreCase(headerName)) { String[] split = headerValue.split(" ", 2); for (int j = 0; j < split.length; j++) { split[j] = split[j].replaceAll(";", ""); if (split[j].toLowerCase().startsWith( "charset=")) { String[] charsetSplit = split[j].split("="); charSet = charsetSplit[1]; } } } header += headerName + ": " + headerValue + " | "; } Debug.msg("Header of dasoertliche.de: " + header); Debug.msg("CHARSET : " + charSet); // Get response data BufferedReader d; if (charSet.equals("")) { d = new BufferedReader(new InputStreamReader(con .getInputStream(), "ISO-8859-1")); } else { d = new BufferedReader(new InputStreamReader(con .getInputStream(), charSet)); } int i = 0; String str = ""; while ((i < 700) && (null != ((str = d.readLine())))) { data += str; i++; } d.close(); Debug.msg("DasOertliche Webpage: " + data); Pattern p = Pattern .compile("<a class=\"blb\" href=\"[^\"]*\">([^<]*)</a><br>([^<]*)</td>"); Matcher m = p.matcher(data); if (m.find()) { Debug.msg(3, "Pattern1: " + m.group(1).trim()); Debug.msg(3, "Pattern2: " + m.group(2).trim()); String line1 = m.group(1).trim(); String line2 = m.group(2).trim(); String[] split = line1.split(" ", 2); String firstname = "", lastname = "", company = "", address = "", zipcode = "", city = ""; lastname = split[0]; if (split.length > 1) { firstname = " " + split[1]; Debug.msg("*" + firstname + "*" + firstname.indexOf(" ")); if ((firstname.indexOf(" ") > -1) && (firstname.indexOf(" u.") == -1)) { company = firstname.substring( firstname.indexOf(" ")).trim(); firstname = firstname.substring(0, firstname.indexOf(" ")).trim(); } else { firstname = firstname.replaceAll(" u. ", " und "); } } firstname = firstname.trim(); split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; } split = zipcity.split(" ", 2); if (split.length > 1) { zipcode = split[0].trim(); city = split[1].trim(); } else { city = split[0].trim(); } String[] splitNames, splitAddress, splitPostCodeCity; splitAddress = m.group(2).trim().split(",* "); Debug.msg(splitAddress[0]); splitPostCodeCity = splitAddress[1].split(" ", 2); Debug.msg("Firstname: " + firstname); Debug.msg("Lastname: " + lastname); Debug.msg("Company: " + company); Debug.msg("Address: " + address); Debug.msg("ZipCode: " + zipcode); Debug.msg("City: " + city); newPerson = new Person(firstname, company, lastname, address, zipcode, city, ""); if (company.length() > 0) { newPerson.addNumber(number, "business"); } else { newPerson.addNumber(number, "home"); } return newPerson; } } catch (IOException e1) { Debug.err("Error while retrieving " + urlstr); } } } catch (MalformedURLException e) { Debug.err("URL invalid: " + urlstr); } newPerson = new Person(); newPerson.addNumber(number, "home"); return newPerson; } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/6cc294115c1306b4b81b7357595c0d50eba7a1fa/ReverseLookup.java/clean/jfritz/src/de/moonflower/jfritz/utils/ReverseLookup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
11573,
3689,
40,
345,
51,
1051,
80,
335,
580,
12,
780,
1300,
13,
288,
202,
202,
430,
261,
2696,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11573,
3689,
40,
345,
51,
1051,
80,
335,
580,
12,
780,
1300,
13,
288,
202,
202,
430,
261,
2696,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
... |
private void runRemote(PrintStream out) throws SVNException { String srcPath = getCommandLine().getURL(0); String destPath = getCommandLine().getURL(1); String message = (String) getCommandLine().getArgumentValue(SVNArgument.MESSAGE); String root = PathUtil.getCommonRoot(new String[] {destPath, srcPath}); SVNRepository repository = createRepository(root); long revNumber = -1; String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION); if (revStr != null) { try { revNumber = Long.parseLong(revStr); } catch (NumberFormatException e) { revNumber = -1; } } if (revNumber < 0) { revNumber = repository.getLatestRevision(); } String deletePath = srcPath.substring(root.length()); destPath = destPath.substring(root.length()); deletePath = PathUtil.removeLeadingSlash(deletePath); destPath = PathUtil.removeLeadingSlash(destPath); destPath = PathUtil.decode(destPath); deletePath = PathUtil.decode(deletePath); ISVNEditor editor = repository.getCommitEditor(message, null); try { editor.openRoot(-1); DebugLog.log("adding: " + destPath + " from " + deletePath); editor.addDir(destPath, deletePath, revNumber); editor.closeDir(); DebugLog.log("deleting: " + deletePath + " at " + revNumber); editor.deleteEntry(deletePath, revNumber); editor.closeDir(); SVNCommitInfo info = editor.closeEdit(); out.println(); out.println("Committed revision " + info.getNewRevision() + "."); } catch (SVNException e) { if (editor != null) { try { editor.abortEdit(); } catch (SVNException inner) {} } throw e; } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/361abb3f2b60edf9d7118d2818fa082a63ad66ca/MoveCommand.java/buggy/javasvn/src/org/tmatesoft/svn/cli/command/MoveCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
5169,
12,
5108,
1228,
596,
13,
1216,
29537,
50,
503,
288,
3639,
514,
19497,
273,
12856,
1670,
7675,
588,
1785,
12,
20,
1769,
3639,
514,
22459,
273,
12856,
1670,
7675... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
5169,
12,
5108,
1228,
596,
13,
1216,
29537,
50,
503,
288,
3639,
514,
19497,
273,
12856,
1670,
7675,
588,
1785,
12,
20,
1769,
3639,
514,
22459,
273,
12856,
1670,
7675... | ||
String sourceName = props.getProperty ("_datasource"); | sourceName = props.getProperty ("_datasource"); | public synchronized void update () { table = props.getProperty ("_tablename"); idgen = props.getProperty ("_idgen"); // see if there is a field which specifies the prototype of objects, if different prototypes // can be stored in this table prototypeField = props.getProperty ("_prototypefield"); // see if this prototype extends (inherits from) any other prototype extendsProto = props.getProperty ("_extends"); String sourceName = props.getProperty ("_datasource"); if (sourceName != null) { source = app.getDbSource (sourceName); if (source == null) { // what we really want to do here is mark the DbMapping as invalid, so no data can be saved to it. throw new RuntimeException ("DbSource \""+sourceName+"\" not found for prototype "+typename); } } // id field must not be null, default is "id" idField = props.getProperty ("_id", "id"); nameField = props.getProperty ("_name"); protoField = props.getProperty ("_prototype"); String parentMapping = props.getProperty ("_parent"); if (parentMapping != null) { // comma-separated list of properties to be used as parent StringTokenizer st = new StringTokenizer (parentMapping, ",;"); parent = new ParentInfo[st.countTokens()]; for (int i=0; i<parent.length; i++) parent[i] = new ParentInfo (st.nextToken().trim()); } else parent = null; lastTypeChange = props.lastModified (); // set the cached schema & keydef to null so it's rebuilt the next time around schema = null; keydef = null; } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/94e086dfd8ee87fe852ada98e72c926f5ca470b1/DbMapping.java/clean/src/helma/objectmodel/DbMapping.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
1832,
288,
202,
2121,
273,
3458,
18,
588,
1396,
7566,
67,
7032,
14724,
8863,
202,
350,
4507,
273,
3458,
18,
588,
1396,
7566,
67,
350,
4507,
8863,
202,
759,
2621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1089,
1832,
288,
202,
2121,
273,
3458,
18,
588,
1396,
7566,
67,
7032,
14724,
8863,
202,
350,
4507,
273,
3458,
18,
588,
1396,
7566,
67,
350,
4507,
8863,
202,
759,
2621,
... |
addTestSuite(BeansObservablesTest.class); addTestSuite(IdentityConverterTest.class); | addTestSuite(DetailObservableValueTest.class); addTestSuite(DetailObservableValueTest.class); | public BindingTestSuite() { //org.eclipse.core.tests.databinding.beans addTestSuite(BeansObservablesTest.class); // org.eclipse.jface.internal.databinding.provisional.conversion addTestSuite(IdentityConverterTest.class); // org.eclipse.jface.internal.databinding.provisional.factories addTestSuite(DefaultBindSupportFactoryBooleanPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryBytePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryDoublePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryFloatPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryIntTest.class); addTestSuite(DefaultBindSupportFactoryLongPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryShortPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryTest.class); // org.eclipse.jface.internal.databinding.provisional.validation addTestSuite(ObjectToPrimitiveValidatorTest.class); // org.eclipse.jface.tests.databinding addTestSuite(BindSpecTests.class); addTestSuite(ComputedValueTest.class); addTestSuite(DatabindingContextTest.class); addTestSuite(IDiffsTest.class); addTestSuite(ObservableTest.class); addTestSuite(RandomAccessListIteratorTest.class); // org.eclipse.jface.tests.databinding.mask addTestSuite(EditMaskLexerAndTokenTest.class); addTestSuite(EditMaskParserTest.class); //org.eclipse.jface.tests.databinding.observable addTestSuite(ThreadRealmTest.class); // org.eclipse.jface.tests.databinding.observable.value addTestSuite(WritableValueTest.class); // org.eclipse.jface.tests.databinding.scenarios addTest(BindingScenariosTestSuite.suite()); //The files in this package are in the above test suite //org.eclipse.jface.tests.databinding.swt//FIXME addTestSuite(AbstractGetAndSetSelectionObservableCollectionTest.class);//FIXME addTestSuite(AutoSelectTableViewerCollectionExtendedTest.class); //FIXME addTestSuite(AutoSelectTableViewerCollectionTest.class);//FIXME addTestSuite(CComboObservableCollectionTest.class);//FIXME addTestSuite(ComboObservableCollectionTest.class);//FIXME addTestSuite(CopyOfAutoSelectTableViewerCollectionExtendedTest.class);//FIXME addTestSuite(ListObservableCollectionTest.class);//FIXME addTestSuite(ObservableCollectionViewerTest.class);//FIXME addTestSuite(TableViewerObservableCollectionTest.class); addTestSuite(TextObservableValueTests.class); //org.eclipse.jface.tests.databinding.views addTestSuite(ObservableMapLabelProviderTest.class); addTestSuite(ObservableSetContentProviderTest.class); //org.eclipse.jface.tests.examples.model addTestSuite(PersonTests.class); //org.eclipse.jface.tests.internal.databinding.internal addTestSuite(ListBindingTest.class); addTestSuite(ValueBindingTest.class); //org.eclipse.jface.tests.internal.databinding.internal.observable addTestSuite(UnmodifiableObservableListTest.class); //org.eclipse.jface.tests.internal.databinding.internal.viewers addTestSuite(SelectionProviderSingleSelectionObservableValueTest.class);//FIXME addTestSuite(SVOCWLTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.observable addTestSuite(AbstractObservableTest.class); addTestSuite(ObservablesTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.viewers addTestSuite(SelectionObservableValueTest.class); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/BindingTestSuite.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindingTestSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15689,
4709,
13587,
1435,
288,
377,
202,
759,
3341,
18,
20416,
18,
3644,
18,
16341,
18,
3404,
378,
728,
310,
18,
2196,
634,
377,
202,
1289,
4709,
13587,
12,
14495,
26199,
1538,
4709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15689,
4709,
13587,
1435,
288,
377,
202,
759,
3341,
18,
20416,
18,
3644,
18,
16341,
18,
3404,
378,
728,
310,
18,
2196,
634,
377,
202,
1289,
4709,
13587,
12,
14495,
26199,
1538,
4709... |
if (tuple.isAdd() || tuple.isChange()) { addRelationships(relay, | addRelationships(localRelationships, | private void localProviderUpdate(EnvelopeTuple tuple, ServiceContractRelay relay) { // ServiceContract contract = relay.getServiceContract(); // ServiceRequest request = relay.getServiceRequest(); Asset provider = logplan.findAsset(relay.getProvider()); if (provider == null) { logger.error(self + ": unable to process ServiceContractRelay - " + relay.getUID() + " provider - " + relay.getProvider() + " - is not local to this agent."); return; } else if (provider == relay.getProvider()) { logger.error(self + ": Assets in ServiceContractRelay must be " + " clones. ServiceContractRelay - " + relay.getUID() + " - references assets in the log plan."); return; } Asset client = relay.getClient(); Asset localClient = logplan.findAsset(client); if (localClient == null) { client = ldmf.cloneInstance(client); if (related(client)){ ((HasRelationships)client).setRelationshipSchedule(ldmf.newRelationshipSchedule((HasRelationships)client)); } } else { client = localClient; if (localClient == relay.getClient()) { logger.error(self + ": Assets in ServiceContractRelay must be " + " clones. ServiceContractRelay - " + relay.getUID() + " - references assets in the log plan."); } } if (related(provider) && related(client)) { if (tuple.isChange() || tuple.isRemove()) { removeExistingRelationships(relay, (HasRelationships) provider, (HasRelationships) client); } if (tuple.isAdd() || tuple.isChange()) { addRelationships(relay, (HasRelationships) provider, (HasRelationships) client); } } Collection changes = new ArrayList(); changes.add(new RelationshipSchedule.RelationshipScheduleChangeReport()); if (logger.isInfoEnabled()) logger.info(self + ": PubChanged an OrgAsset: " + provider); rootplan.change(provider, changes); // change this to root plan if (localClient == null) { rootplan.add(client); } else { changes.clear(); changes.add(new RelationshipSchedule.RelationshipScheduleChangeReport()); if (logger.isInfoEnabled()) logger.info(self + ": PubChanged an OrgAsset: " + client); rootplan.change(client, changes); } // Clear client and provider relationship, role, and available schedules to ensure // that there are no references to other organizations. clearSchedule(relay.getClient()); clearSchedule(relay.getProvider()); } | 14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/d1ebbe49959b25a9767480286eb72bfea3e37fd8/ServiceContractLP.java/clean/servicediscovery/src/org/cougaar/servicediscovery/lp/ServiceContractLP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1191,
2249,
1891,
12,
10862,
9038,
3193,
16,
1956,
8924,
27186,
18874,
13,
288,
282,
368,
1956,
8924,
6835,
273,
18874,
18,
588,
1179,
8924,
5621,
282,
368,
1956,
691,
590,
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,
3238,
918,
1191,
2249,
1891,
12,
10862,
9038,
3193,
16,
1956,
8924,
27186,
18874,
13,
288,
282,
368,
1956,
8924,
6835,
273,
18874,
18,
588,
1179,
8924,
5621,
282,
368,
1956,
691,
590,
273... |
case LayoutPackage.LABEL_BLOCK__CHILDREN : return children != null && !children.isEmpty( ); case LayoutPackage.LABEL_BLOCK__BOUNDS : | case LayoutPackage.LABEL_BLOCK__CHILDREN: return children != null && !children.isEmpty(); case LayoutPackage.LABEL_BLOCK__BOUNDS: | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LABEL_BLOCK__CHILDREN : return children != null && !children.isEmpty( ); case LayoutPackage.LABEL_BLOCK__BOUNDS : return bounds != null; case LayoutPackage.LABEL_BLOCK__ANCHOR : return isSetAnchor( ); case LayoutPackage.LABEL_BLOCK__STRETCH : return isSetStretch( ); case LayoutPackage.LABEL_BLOCK__INSETS : return insets != null; case LayoutPackage.LABEL_BLOCK__ROW : return isSetRow( ); case LayoutPackage.LABEL_BLOCK__COLUMN : return isSetColumn( ); case LayoutPackage.LABEL_BLOCK__ROWSPAN : return isSetRowspan( ); case LayoutPackage.LABEL_BLOCK__COLUMNSPAN : return isSetColumnspan( ); case LayoutPackage.LABEL_BLOCK__MIN_SIZE : return minSize != null; case LayoutPackage.LABEL_BLOCK__OUTLINE : return outline != null; case LayoutPackage.LABEL_BLOCK__BACKGROUND : return background != null; case LayoutPackage.LABEL_BLOCK__VISIBLE : return isSetVisible( ); case LayoutPackage.LABEL_BLOCK__TRIGGERS : return triggers != null && !triggers.isEmpty( ); case LayoutPackage.LABEL_BLOCK__LABEL : return label != null; } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdab78403751f288b76844a99f50b999c34fb491/LabelBlockImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
22... |
buf.append("id=\"").append(getPacketID()).append("\" "); | buf.append(" id=\"").append(getPacketID()).append("\""); | public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<presence "); if (getPacketID() != null) { buf.append("id=\"").append(getPacketID()).append("\" "); } if (getTo() != null) { buf.append("to=\"").append(getTo()).append("\" "); } if (getFrom() != null) { buf.append("from=\"").append(getFrom()).append("\" "); } if (type != Type.AVAILABLE) { buf.append("type=\"").append(type).append("\""); } buf.append(">"); if (status != null) { buf.append("<status>").append(status).append("</status>"); } if (priority != -1) { buf.append("<priority>").append(priority).append("</priority>"); } if (mode != null) { buf.append("<show>").append(mode).append("</show>"); } buf.append("</presence>"); return buf.toString(); } | 47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/83016425cf33220261684027681b5d65707655b1/Presence.java/clean/source/org/jivesoftware/smack/packet/Presence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
30028,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
21731,
315,
1769,
3639,
309,
261,
588,
6667,
734,
1435,
480,
446,
13,
288,
5411,
1681,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
30028,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
21731,
315,
1769,
3639,
309,
261,
588,
6667,
734,
1435,
480,
446,
13,
288,
5411,
1681,... |
Element dispatchRequest(Element request, Map context, ZimbraContext lc) { SoapProtocol soapProto = lc.getResponseProtocol(); if (request == null) return soapProto.soapFault(ServiceException.INVALID_REQUEST("no document specified", null)); DocumentHandler handler = mDispatcher.getHandler(request); if (handler == null) return soapProto.soapFault(ServiceException.UNKNOWN_DOCUMENT(request.getQualifiedName(), null)); if (RedoLogProvider.getInstance().isSlave() && !handler.isReadOnly()) return soapProto.soapFault(ServiceException.NON_READONLY_OPERATION_DENIED()); if (!Config.userServicesEnabled() && !(handler instanceof AdminDocumentHandler)) return soapProto.soapFault(ServiceException.TEMPORARILY_UNAVAILABLE()); boolean needsAuth = handler.needsAuth(context); boolean needsAdminAuth = handler.needsAdminAuth(context); if (needsAuth || needsAdminAuth) { AuthToken at = lc != null ? lc.getAuthToken() : null; if (at == null) return soapProto.soapFault(ServiceException.AUTH_REQUIRED()); if (needsAdminAuth && !at.isAdmin()) return soapProto.soapFault(ServiceException.PERM_DENIED("need admin token")); // Make sure that the account is active and has not been deleted // since the last request try { Account account = DocumentHandler.getRequestedAccount(lc); if (!account.getAccountStatus().equals(Provisioning.ACCOUNT_STATUS_ACTIVE)) return soapProto.soapFault(ServiceException.AUTH_EXPIRED()); } catch (ServiceException ex) { return soapProto.soapFault(ex); } } Element response; try { // first, try to proxy the request if necessary response = handler.proxyIfNecessary(request, context); // if no proxy, execute the request locally if (response == null) response = handler.handle(request, context); // fault in a session for this handler after executing the command handler.getSession(context); } catch (ServiceException e) { response = soapProto.soapFault(e); if (mLog.isDebugEnabled()) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); pw.close(); mLog.debug("handler exception " + sw.toString()); } } catch (Throwable e) { // FIXME: temp hack by tim b/c dogfood not generating stack traces e.printStackTrace(); // TODO: better exception stack traces during develope? response = soapProto.soapFault(ServiceException.FAILURE(e.toString(), e)); if (e instanceof OutOfMemoryError) Zimbra.halt("handler exception", e); if (mLog.isWarnEnabled()) mLog.warn("handler exception ", e); } return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4db9271e94d4e9aeb2ef0e15c30aa4a5fd18f7e9/SoapEngine.java/buggy/ZimbraServer/src/java/com/zimbra/soap/SoapEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
3435,
691,
12,
1046,
590,
16,
1635,
819,
16,
2285,
381,
15397,
1042,
9109,
13,
288,
3639,
21789,
5752,
9930,
6262,
273,
9109,
18,
588,
1064,
5752,
5621,
3639,
309,
261,
2293,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
3435,
691,
12,
1046,
590,
16,
1635,
819,
16,
2285,
381,
15397,
1042,
9109,
13,
288,
3639,
21789,
5752,
9930,
6262,
273,
9109,
18,
588,
1064,
5752,
5621,
3639,
309,
261,
2293,
422,
... | ||
IToken cvModifier = null; | IToken [] cvModifiers = new IToken[2]; int numCVModifiers = 0; | protected Declarator declarator( IDeclaratorOwner owner, IASTScope scope, SimpleDeclarationStrategy strategy, CompletionKind kind ) throws EndOfFileException, BacktrackException { Declarator d = null; DeclarationWrapper sdw = owner.getDeclarationWrapper(); overallLoop : do { d = new Declarator(owner); consumePointerOperators(d); if (LT(1) == IToken.tLPAREN) { consume(); declarator(d, scope, strategy, kind ); consume(IToken.tRPAREN); } else consumeTemplatedOperatorName(d, kind); for (;;) { switch (LT(1)) { case IToken.tLPAREN : boolean failed = false; IASTScope parameterScope = astFactory.getDeclaratorScope( scope, d.getNameDuple() ); // temporary fix for initializer/function declaration ambiguity if ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE ) { if( LT(2) == IToken.tIDENTIFIER ) { IToken newMark = mark(); consume( IToken.tLPAREN ); try { try { if( ! astFactory.queryIsTypeName( parameterScope, name(parameterScope, CompletionKind.TYPE_REFERENCE, Key.EMPTY ) ) ) failed = true; } catch (Exception e) { logException( "declarator:queryIsTypeName", e ); //$NON-NLS-1$ throw backtrack; } } catch( BacktrackException b ) { failed = true; } backup( newMark ); } } if( ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE && !failed) || ! queryLookaheadCapability(3) ) { // parameterDeclarationClause d.setIsFunction(true); // TODO need to create a temporary scope object here consume(IToken.tLPAREN); setCompletionValues( scope, CompletionKind.ARGUMENT_TYPE, Key.DECL_SPECIFIER_SEQUENCE ); boolean seenParameter = false; parameterDeclarationLoop : for (;;) { switch (LT(1)) { case IToken.tRPAREN : consume(); setCompletionValues( parameterScope, CompletionKind.NO_SUCH_KIND, KeywordSets.Key.FUNCTION_MODIFIER ); break parameterDeclarationLoop; case IToken.tELLIPSIS : consume(); d.setIsVarArgs( true ); break; case IToken.tCOMMA : consume(); setCompletionValues( parameterScope, CompletionKind.ARGUMENT_TYPE, Key.DECL_SPECIFIER_SEQUENCE ); seenParameter = false; break; default : if (seenParameter) throw backtrack; parameterDeclaration(d, parameterScope); seenParameter = true; } } } if (LT(1) == IToken.tCOLON || LT(1) == IToken.t_try ) break overallLoop; IToken beforeCVModifier = mark(); IToken cvModifier = null; IToken afterCVModifier = beforeCVModifier; // const-volatile // 2 options: either this is a marker for the method, // or it might be the beginning of old K&R style parameter declaration, see // void getenv(name) const char * name; {} // This will be determined further below if (LT(1) == IToken.t_const || LT(1) == IToken.t_volatile) { cvModifier = consume(); afterCVModifier = mark(); } //check for throws clause here List exceptionSpecIds = null; if (LT(1) == IToken.t_throw) { exceptionSpecIds = new ArrayList(); consume(); // throw consume(IToken.tLPAREN); // ( boolean done = false; IASTTypeId duple = null; while (!done) { switch (LT(1)) { case IToken.tRPAREN : consume(); done = true; break; case IToken.tCOMMA : consume(); break; default : String image = LA(1).getImage(); try { duple = typeId(scope, false, CompletionKind.EXCEPTION_REFERENCE ); exceptionSpecIds.add(duple); } catch (BacktrackException e) { failParse(); TraceUtil.outputTrace( log, "Unexpected Token =", null, image, null, null ); //$NON-NLS-1$ consume(); // eat this token anyway continue; } break; } } if (exceptionSpecIds != null) try { d.setExceptionSpecification( astFactory .createExceptionSpecification( d.getDeclarationWrapper().getScope(), exceptionSpecIds)); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "declarator:createExceptionSpecification", e ); //$NON-NLS-1$ throw backtrack; } } // check for optional pure virtual if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER && LA(2).getImage().equals("0")) //$NON-NLS-1$ { consume(IToken.tASSIGN); consume(IToken.tINTEGER); d.setPureVirtual(true); } if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) { // There were C++-specific clauses after const/volatile modifier // Then it is a marker for the method if (cvModifier != null) { if (cvModifier.getType() == IToken.t_const) d.setConst(true); if (cvModifier.getType() == IToken.t_volatile) d.setVolatile(true); } afterCVModifier = mark(); // In this case (method) we can't expect K&R parameter declarations, // but we'll check anyway, for errorhandling } break; case IToken.tLBRACKET : consumeArrayModifiers(d, sdw.getScope()); continue; case IToken.tCOLON : consume(IToken.tCOLON); IASTExpression exp = constantExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, Key.EXPRESSION ); d.setBitFieldExpression(exp); default : break; } break; } if (LA(1).getType() != IToken.tIDENTIFIER) break; } while (true); if (d.getOwner() instanceof IDeclarator) ((Declarator)d.getOwner()).setOwnedDeclarator(d); return d; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c59044d3ac5019cc32477a8f56859ef5e9b682e6/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16110,
5880,
3496,
5880,
12,
3639,
1599,
557,
80,
5880,
5541,
3410,
16,
467,
9053,
3876,
2146,
16,
4477,
6094,
4525,
6252,
16,
20735,
5677,
3846,
262,
3639,
1216,
4403,
951,
812,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16110,
5880,
3496,
5880,
12,
3639,
1599,
557,
80,
5880,
5541,
3410,
16,
467,
9053,
3876,
2146,
16,
4477,
6094,
4525,
6252,
16,
20735,
5677,
3846,
262,
3639,
1216,
4403,
951,
812,
50... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.