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 |
|---|---|---|---|---|---|---|
verifyAnticipated(2000); | verifyAnticipated(20000); | public void testReparentCausesStatusChange() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2); MockInterface node1Iface = m_network.getInterface(1, "192.168.1.1"); MockInterface reparentedIface = m_network.getInterface(1, "192.168.1.2"); MockInterface node2Iface = m_network.getInterface(2, "192.168.1.3"); // // Plan to bring down both nodes except the reparented interface // the node owning the interface should be up while the other is down // after reparenting we should got the old owner go down while the other // comes up. // anticipateDown(node2); anticipateDown(node1Iface); // bring down both nodes but bring iface back up node1.bringDown(); node2.bringDown(); reparentedIface.bringUp(); Event reparentEvent = MockUtil.createReparentEvent("Test", "192.168.1.2", 1, 2); startDaemons(); verifyAnticipated(2000); resetAnticipated(); // FIXME: should I expect this to send new events saying that the old // node is now down and the new node is now up? YES I SHOULD // after moving the interface we expect node down on node1 and node up // on node2; // anticipateNodeDown(node1); // anticipateNodeUp(node2); m_db.reparentInterface(reparentedIface.getIpAddr(), reparentedIface.getNodeId(), node2.getNodeId()); reparentedIface.moveTo(node2); m_eventMgr.sendEventToListeners(reparentEvent); verifyAnticipated(2000); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/63ea02f21c3a123dc08712837e512664c4c6c32e/PollerTest.java/clean/src/services/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
426,
2938,
39,
9608,
1482,
3043,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
426,
2938,
39,
9608,
1482,
3043,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
... |
showSystemMenu(folder.getTabFolder().getSystemMenuLocation(), getSite().getSelectedPart()); | public void showSystemMenu() { } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a44e3679b294ff539fce71b7e835499b2c444fa7/TabbedStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/newapi/TabbedStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2405,
3163,
4599,
12,
5609,
18,
588,
5661,
3899,
7675,
588,
3163,
4599,
2735,
9334,
11021,
7675,
588,
7416,
1988,
10663,
2405,
3163,
4599,
12,
5609,
18,
588,
5661,
3899,
7675,
588,
3163,
4599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2405,
3163,
4599,
12,
5609,
18,
588,
5661,
3899,
7675,
588,
3163,
4599,
2735,
9334,
11021,
7675,
588,
7416,
1988,
10663,
2405,
3163,
4599,
12,
5609,
18,
588,
5661,
3899,
7675,
588,
3163,
4599,
... | |
log("Reading filters from " + filtersFile, Project.MSG_VERBOSE ); | log("Reading filters from " + filtersFile, Project.MSG_VERBOSE); | public void readFiltersFromFile(File filtersFile) throws BuildException { if (isReference()) { throw tooManyAttributes(); } if (filtersFile.isFile()) { log("Reading filters from " + filtersFile, Project.MSG_VERBOSE ); FileInputStream in = null; try { Properties props = new Properties(); in = new FileInputStream(filtersFile); props.load(in); Enumeration enum = props.propertyNames(); Vector filters = getFilters(); while (enum.hasMoreElements()) { String strPropName = (String) enum.nextElement(); String strValue = props.getProperty(strPropName); filters.addElement(new Filter(strPropName, strValue)); } } catch (Exception e) { throw new BuildException( "Could not read filters from file: " + filtersFile ); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/FilterSet.java/buggy/src/main/org/apache/tools/ant/types/FilterSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
5422,
13087,
12,
812,
3415,
812,
13,
1216,
18463,
288,
3639,
309,
261,
291,
2404,
10756,
288,
5411,
604,
4885,
5594,
2498,
5621,
3639,
289,
3639,
309,
261,
6348,
812,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
5422,
13087,
12,
812,
3415,
812,
13,
1216,
18463,
288,
3639,
309,
261,
291,
2404,
10756,
288,
5411,
604,
4885,
5594,
2498,
5621,
3639,
289,
3639,
309,
261,
6348,
812,
18,
... |
Integer key = new Integer(field); Set values = (Set) fieldValues.get(key); if (values == null) { values = new HashSet(); fieldValues.put(key, values); } values.add(value); } | Integer key = new Integer(field); Set values = (Set) fieldValues.get(key); if (values == null) { values = new HashSet(); fieldValues.put(key, values); } values.add(value); } | private void addFieldValue(int field, String value) { Integer key = new Integer(field); Set values = (Set) fieldValues.get(key); if (values == null) { values = new HashSet(); fieldValues.put(key, values); } values.add(value); } | 52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/bc5f21c5a32614ef5c419366046d5f643c6e93ff/DataDictionary.java/clean/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11742,
620,
12,
474,
652,
16,
514,
460,
13,
288,
3639,
2144,
498,
273,
394,
2144,
12,
1518,
1769,
3639,
1000,
924,
273,
261,
694,
13,
24976,
18,
588,
12,
856,
1769,
3639,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11742,
620,
12,
474,
652,
16,
514,
460,
13,
288,
3639,
2144,
498,
273,
394,
2144,
12,
1518,
1769,
3639,
1000,
924,
273,
261,
694,
13,
24976,
18,
588,
12,
856,
1769,
3639,
3... |
final Color borderColor = new Color(titleArea.getDisplay(),ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener(){ public void paintControl(PaintEvent e){ | final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { | private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. titleArea = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 2; layout.marginWidth = 2; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; layout.numColumns = 2; // Get the background color for the title area Display display = parent.getDisplay(); Color background = JFaceColors.getBannerBackground(display); final Color foreground = JFaceColors.getBannerForeground(display); GridData layoutData = new GridData(GridData.FILL_BOTH); titleArea.setLayout(layout); titleArea.setLayoutData(layoutData); titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(),ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener(){ public void paintControl(PaintEvent e){ e.gc.setForeground(borderColor); Rectangle bounds = titleArea.getClientArea(); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle(bounds); } }); // Add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); if (errorMsgAreaBackground != null) errorMsgAreaBackground.dispose(); borderColor.dispose(); } }); // Message label messageLabel = new CLabel(titleArea, SWT.LEFT); JFaceColors.setColors(messageLabel, foreground, background); messageLabel.setText(" "); //$NON-NLS-1$ messageLabel.setFont(JFaceResources.getBannerFont()); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (JFaceResources.BANNER_FONT.equals(event.getProperty())) updateMessage(); if (JFaceResources.DIALOG_FONT.equals(event.getProperty())) { updateMessage(); Font dialogFont = JFaceResources.getDialogFont(); tree.setFont(dialogFont); Control[] children = ((Composite) buttonBar).getChildren(); for (int i = 0; i < children.length; i++) children[i].setFont(dialogFont); } } }; messageLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); GridData gd = new GridData(GridData.FILL_BOTH); messageLabel.setLayoutData(gd); // Title image titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(background); titleImage.setImage(JFaceResources.getImage(PREF_DLG_TITLE_IMG)); gd = new GridData(); gd.horizontalAlignment = GridData.END; titleImage.setLayoutData(gd); return titleArea; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0a89689d9b30b50ef4ada7d54613cf836432c498/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
... |
expectedTable.addCell("Node 1", "Critical", "element/node.jsp?node=null"); | expectedTable.addCell("Node 1", "Critical", "element/node.jsp?node=1"); | public void runTestCreateStatus() { expectEverything(); expect(m_monitoredServiceDao.findByApplication(m_application1)).andReturn(m_applicationServices1); replayEverything(); SimpleWebTable table = m_service.createStatusTable(m_locationDefinition1.getName(), m_application1.getName()); verifyEverything(); //System.out.print(table.toString()); SimpleWebTable expectedTable = new SimpleWebTable(); expectedTable.setTitle("Distributed poller view for Application 1 from Raleigh location"); expectedTable.addColumn("Node", "simpleWebTableHeader"); expectedTable.addColumn("Monitor", "simpleWebTableHeader"); expectedTable.addColumn("Service", "simpleWebTableHeader"); expectedTable.addColumn("Status", "simpleWebTableHeader"); expectedTable.addColumn("Response", "simpleWebTableHeader"); expectedTable.newRow(); expectedTable.addCell("Node 1", "Normal", "element/node.jsp?node=null"); expectedTable.addCell("Raleigh-1", ""); expectedTable.addCell("HTTP", "", "element/service.jsp?ifserviceid=null"); expectedTable.addCell("Up", "bright"); expectedTable.addCell("", ""); expectedTable.newRow(); expectedTable.addCell("Node 1", "Critical", "element/node.jsp?node=null"); expectedTable.addCell("Raleigh-1", ""); expectedTable.addCell("HTTPS", "", "element/service.jsp?ifserviceid=null"); expectedTable.addCell("Unknown", "bright"); expectedTable.addCell("No status recorded for this service from this location", ""); assertTableEquals(expectedTable, table); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/6c59a7e3b2f1ad843e281c2374851ebf421fe074/DefaultDistributedStatusServiceTest.java/buggy/opennms-webapp/src/test/java/org/opennms/web/svclayer/support/DefaultDistributedStatusServiceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1684,
1482,
1435,
288,
3639,
4489,
21465,
4274,
5621,
7734,
4489,
12,
81,
67,
2586,
20425,
1179,
11412,
18,
4720,
858,
3208,
12,
81,
67,
3685,
21,
13,
2934,
464,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1684,
1482,
1435,
288,
3639,
4489,
21465,
4274,
5621,
7734,
4489,
12,
81,
67,
2586,
20425,
1179,
11412,
18,
4720,
858,
3208,
12,
81,
67,
3685,
21,
13,
2934,
464,
... |
public void visitCALOAD(CALOAD obj) { pushValue(Type.CHAR); } | public void visitCALOAD(CALOAD obj) { consumeStack(obj); pushValue(Type.CHAR); } | public void visitCALOAD(CALOAD obj) { pushValue(Type.CHAR); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b75aa9fb6d1d4ee62fc08bb62f57dc88de7f092d/TypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/TypeFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
7913,
51,
1880,
12,
7913,
51,
1880,
1081,
13,
9506,
202,
95,
1817,
620,
12,
559,
18,
7305,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
7913,
51,
1880,
12,
7913,
51,
1880,
1081,
13,
9506,
202,
95,
1817,
620,
12,
559,
18,
7305,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
final CodeSource source = resource.getCodeSource(); | final CodeSource source = resource.getCodeSource(); | protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFoundException(className + " not found in " + urls); // Try to read the class data, create the CodeSource, Package and // construct the class (and watch out for those nasty IOExceptions) try { byte[] data; InputStream in = resource.getInputStream(); try { int length = resource.getLength(); if (length != -1) { // We know the length of the data. // Just try to read it in all at once data = new byte[length]; int pos = 0; while (length - pos > 0) { int len = in.read(data, pos, length - pos); if (len == -1) throw new EOFException("Not enough data reading from: " + in); pos += len; } } else { // We don't know the data length. // Have to read it in chunks. ByteArrayOutputStream out = new ByteArrayOutputStream(4096); byte[] b = new byte[4096]; int l = 0; while (l != -1) { l = in.read(b); if (l != -1) out.write(b, 0, l); } data = out.toByteArray(); } } finally { in.close(); } final byte[] classData = data; // Now get the CodeSource final CodeSource source = resource.getCodeSource(); // Find out package name String packageName = null; int lastDot = className.lastIndexOf('.'); if (lastDot != -1) packageName = className.substring(0, lastDot); if (packageName != null && getPackage(packageName) == null) { // define the package Manifest manifest = resource.loader.getManifest(); if (manifest == null) definePackage(packageName, null, null, null, null, null, null, null); else definePackage(packageName, manifest, resource.loader.baseURL); } // And finally construct the class! SecurityManager sm = System.getSecurityManager(); if (sm != null && securityContext != null) { return (Class)AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return defineClass(className, classData, 0, classData.length, source); } }, securityContext); } else return defineClass(className, classData, 0, classData.length, source); } catch (IOException ioe) { throw new ClassNotFoundException(className, ioe); } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/c7beb2e15aab929442532def7adc6eca7478246d/URLClassLoader.java/clean/java/net/URLClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1659,
1104,
797,
12,
6385,
514,
2658,
13,
565,
1216,
10403,
225,
288,
565,
368,
12526,
775,
358,
1104,
326,
1058,
635,
326,
261,
287,
10329,
13,
1967,
508,
565,
514,
9546,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1659,
1104,
797,
12,
6385,
514,
2658,
13,
565,
1216,
10403,
225,
288,
565,
368,
12526,
775,
358,
1104,
326,
1058,
635,
326,
261,
287,
10329,
13,
1967,
508,
565,
514,
9546,
273,
26... |
public WindowPeer createEmbeddedWindow (int window_id, int width, int height); | public EmbeddedWindowPeer createEmbeddedWindow (EmbeddedWindow w); | public WindowPeer createEmbeddedWindow (int window_id, int width, int height); | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/c3d201dee6a1d42270bf2d1388faf42a4a5da8c4/EmbeddedWindowSupport.java/buggy/libjava/gnu/java/awt/EmbeddedWindowSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6076,
6813,
752,
14980,
3829,
261,
474,
2742,
67,
350,
16,
25083,
225,
509,
1835,
16,
509,
2072,
1769,
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,
282,
1071,
6076,
6813,
752,
14980,
3829,
261,
474,
2742,
67,
350,
16,
25083,
225,
509,
1835,
16,
509,
2072,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
protected DRDAResultSet(ResultSet rs) throws SQLException | protected DRDAResultSet() | protected DRDAResultSet(ResultSet rs) throws SQLException { setResultSet(rs); state = NOT_OPENED; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/82c7dde0566c7b457f3906cdc8bd5062ecdaa09d/DRDAResultSet.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
16801,
9793,
13198,
12,
13198,
3597,
13,
1216,
6483,
202,
95,
202,
202,
542,
13198,
12,
5453,
1769,
202,
202,
2019,
273,
4269,
67,
11437,
2056,
31,
202,
97,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
16801,
9793,
13198,
12,
13198,
3597,
13,
1216,
6483,
202,
95,
202,
202,
542,
13198,
12,
5453,
1769,
202,
202,
2019,
273,
4269,
67,
11437,
2056,
31,
202,
97,
2,
-100,
-100,
-1... |
catch(IllegalMonitorStateException ex) { throw ex; } | public Object peek() throws QueueClosedException { Object retval=null; synchronized(mutex) { while(l.size() == 0) { if(closed) throw new QueueClosedException(); try { mutex.wait(); } catch(IllegalMonitorStateException ex) { throw ex; } catch(InterruptedException ex) { } } if(closed) throw new QueueClosedException(); try { retval=l.getFirst(); } catch(NoSuchElementException ex) { if(log.isErrorEnabled()) log.error("retval == null, size()=" + l.size()); return null; } } if(retval == endMarker) { close(false); // mark queue as closed throw new QueueClosedException(); } return retval; } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/4071daaa0d7c1c82cdc06c63ce8b9cfb7b0eff8c/LinkedListQueue.java/buggy/src/org/jgroups/util/LinkedListQueue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8032,
1435,
1216,
7530,
7395,
503,
288,
3639,
1033,
5221,
33,
2011,
31,
3639,
3852,
12,
29946,
13,
288,
5411,
1323,
12,
80,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8032,
1435,
1216,
7530,
7395,
503,
288,
3639,
1033,
5221,
33,
2011,
31,
3639,
3852,
12,
29946,
13,
288,
5411,
1323,
12,
80,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,... | |
int tend = getLastNonSkippedChild(c,box); | int tend = getLastNonSkippedChild(c, box); | public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getPersistentBFC() != null) c.pushBFC(box.getPersistentBFC()); c.translate(box.x, box.y); c.getGraphics().translate(box.x, box.y); if (box.getPersistentBFC() != null) { c.pushBFC(new BlockFormattingContext(box.getPersistentBFC())); } //XRLog.render(Level.WARNING, "using default renderer paintChildren for " + box.getClass().getPropertyName()); //TODO: work out how images and other replaced content really should be handled if (box.component != null) { //HACK: the positions during layout are still not perfect, reset here - tobe 2005-01-07 //TODO: fix the translates during layout to handle this directly instead Point origin = c.getOriginOffset(); box.component.setLocation((int) origin.getX(), (int) origin.getY()); if (!c.isInteractive()) { box.component.paint(c.getGraphics()); } } else { int start = 0; int end = box.getChildCount()-1; if(ALTERNATE_CLIP_DAMAGE) { if(box.getChildCount() > 10) { int tstart = getFirstNonSkippedChild(c,box); Uu.p("first non skip = " + tstart); if(tstart != -1) { start = tstart; } int tend = getLastNonSkippedChild(c,box); Uu.p("last non skip = " + tend); if(tend != -1) { end = tend; } } } for (int i = start; i <= end; i++) { LinkedList inlineBorders = null; Box child = (Box) box.getChild(i); if (!(child instanceof AnonymousBlockBox)) { //save inline borders and reconstitute them inlineBorders = (LinkedList) c.getInlineBorders().clone(); c.getInlineBorders().clear(); } paintChild(c, child, restyle); if (!(child instanceof AnonymousBlockBox)) { c.getInlineBorders().addAll(inlineBorders); } } } if (box.getPersistentBFC() != null) { c.popBFC(); } c.translate(-box.x, -box.y); c.getGraphics().translate(-box.x, -box.y); //if (box.getPersistentBFC() != null) c.popBFC(); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/c96efe21dd32b0a4f0420c8495d49144792cbc9d/BlockRendering.java/clean/src/java/org/xhtmlrenderer/render/BlockRendering.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
1768,
1042,
12,
1042,
276,
16,
8549,
3919,
16,
1250,
3127,
1362,
13,
288,
3639,
368,
430,
261,
2147,
18,
588,
11906,
38,
4488,
1435,
480,
446,
13,
276,
18,
6206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
1768,
1042,
12,
1042,
276,
16,
8549,
3919,
16,
1250,
3127,
1362,
13,
288,
3639,
368,
430,
261,
2147,
18,
588,
11906,
38,
4488,
1435,
480,
446,
13,
276,
18,
6206,
... |
} | public void run() { in = null; out = null; try { in = new BufferedReader(new InputStreamReader(input)); out = new PrintWriter(output, true); } catch(Exception e) { debug.error("Can't run console input", e); return; } // Wait 2 seconds to allow things to finish. XXX - hack - better way? try { Thread.sleep(1000); } catch(Exception e) { ; } // Print out the welcome message out.println("\n\nEvent Packager v2.0"); out.println("Copyright (c) 2002: The Trustees of Columbia University " + "in the\nCity of New York. All Rights Reserved."); out.println("Type HELP for console help."); // Actually listen for requests now String command = null; while(true) { out.print("> "); out.flush(); try { command = in.readLine(); } catch(Exception e) { debug.error("Could not read console input", e); break; } // Now try to determine if the command is important if(command == null) { // Bad out.println("Warning: null encountered, shutting down input"); break; } else if(command.trim().length() == 0) { // ignore - it's whitespace } // Help else if(isCommand(command, "help")) { out.println("-------------------\n" + "Available commands:\n"+ "- HELP: produces this output\n"+ "- INJECTSTRING: injects a \"quoted string\" into EP for testing\n" + "- INJECTXML: injects \"quoted XML\" into EP for testing\n" + "- INJECTSIENA: injects a Siena notification; use\n" + " {\"a1\"=(valuetype)\"data\", ...} as the parameter; supported\n" + " valuetypes include String, boolean, double, or long. If\n" + " valuetype is not specified, String is assumed\n" + "- SHUTDOWN: shuts down the Event Packager cleanly\n" + "-------------------"); } // Shutdown else if(isCommand(command, "shutdown")) { ep.shutdown(); break; } // Inject(String|XML) else if(isCommand(command, "injectstring") || isCommand(command, "injectxml")) { // Grab the actual string from the input StringTokenizer tok = new StringTokenizer(command, "\""); String data = null; try { tok.nextToken(); // Ignore the stuff outside data = tok.nextToken(); } catch(Exception e) { out.println("Invalid format for injecting a string"); continue; } // Encapsulate it into a StringEvent... StringEvent se = new StringEvent(getName(), data); // ...and then either ship it or convert it to DOMEvent if(isCommand(command, "injectstring")) { debug.debug("Injecting " + se); ep.injectEvent(se); } else { // XML DOMEvent de = (DOMEvent)se.convertEvent("DOMEvent"); if(de == null) { out.println("Failed in parsing XML"); continue; } debug.debug("Injecting " + de); ep.injectEvent(de); } } // InjectSiena else if(isCommand(command, "injectsiena")) { StringTokenizer tok = new StringTokenizer(command, "\""); Notification n = new Notification(); String attribute = null, rawValueType = null, valueType = null, data = null; while(tok.hasMoreTokens()) { try { attribute = tok.nextToken(); rawValueType = tok.nextToken(); // Parse rawValueType. Handle situations where there are NO // tokens left for the rawValueType, i.e., there's no valueType. StringTokenizer tok2 = new StringTokenizer(rawValueType, "()"); if(tok2.hasMoreTokens()) tok2.nextToken(); // Skip = valueType = (tok2.hasMoreTokens()) ? tok2.nextToken() : null; // Parse data data = tok.nextToken(); } catch(Exception e) { out.println("Parse error in InjectSiena: " + e); break; } // Now add to the notification if(valueType == null || valueType.equalsIgnoreCase("String")) { n.putAttribute(attribute, data); } else if(valueType.equalsIgnoreCase("boolean")) { n.putAttribute(attribute, Boolean.valueOf(data).booleanValue()); } else if(valueType.equalsIgnoreCase("double")) { n.putAttribute(attribute, Double.parseDouble(data)); } else if(valueType.equalsIgnoreCase("long")) { n.putAttribute(attribute, Integer.parseInt(data)); } else { out.println("Invalid value type \"" + valueType + "\", try again"); break; } // Now publish the notification ep.injectEvent(new SienaEvent(getName(), n)); } } // Invalid else { // If we're in ep-shutdown, let bygones be bygones if(ep.inShutdown()) break; else out.println("Invalid command; please try again, or try HELP."); } } } | 14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/ffd9cd0cae35aa4f37241c8ed2c0d00426d7289e/ConsoleInput.java/clean/ep/input/ConsoleInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
316,
273,
446,
31,
565,
596,
273,
446,
31,
3639,
775,
288,
1377,
316,
273,
394,
10633,
12,
2704,
15322,
12,
2630,
10019,
1377,
596,
273,
394,
14071,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
316,
273,
446,
31,
565,
596,
273,
446,
31,
3639,
775,
288,
1377,
316,
273,
394,
10633,
12,
2704,
15322,
12,
2630,
10019,
1377,
596,
273,
394,
14071,
12,... | |
throws NotImplementedException | public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
10451,
6233,
1380,
1435,
540,
288,
1377,
327,
374,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
10451,
6233,
1380,
1435,
540,
288,
1377,
327,
374,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
public int getMinTileX() { | public int getMinTileX() { | public int getMinTileX() { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BufferedImage.java/clean/core/src/classpath/java/java/awt/image/BufferedImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9555,
9337,
60,
1435,
288,
202,
202,
2463,
374,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9555,
9337,
60,
1435,
288,
202,
202,
2463,
374,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result = 2; | return 2; | public static int getConversionWeight(Object fromObj, Class to) { int fromCode = getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to != Boolean.TYPE) { result = 1 + getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to.isInstance(fromObj)) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else if (to != Boolean.TYPE) { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (to.isArray()) { if (fromObj instanceof NativeArray) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. result = 1; } } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to == ScriptRuntime.DateClass) { if (fromObj instanceof NativeDate) { // This is a native date to java date conversion result = 1; } } else if (to.isPrimitive() || to != Boolean.TYPE) { result = 3 + getSizeRank(to); } break; } return result; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/11eddf0c611b2537267e99835d22096964c80528/NativeJavaObject.java/buggy/src/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31... |
"a.alarmID as alarmID" +clause); | "a.alarmID as alarmID " +clause); | public AlarmMappingQuery(DataSource ds, String clause) { super(ds, "SELECT " + "a.eventUei as eventUei, " + "a.dpName as dpName, " + "a.nodeID as nodeID, " + "a.ipaddr as ipaddr, " + "a.serviceID as serviceID, " + "a.reductionKey as reductionKey, " + "a.alarmType as alarmType, " + "a.counter as counter, " + "a.severity as severity, " + "a.lastEventID as lastEventID, " + "a.firstEventTime as firstEventTime, " + "a.lastEventTime as lastEventTime, " + "a.description as description, " + "a.logMsg as logMsg, " + "a.operInstruct as operInstruct, " + "a.tticketID as tticketID, " + "a.tticketState as tticketState, " + "a.mouseOverText as mouseOverText, " + "a.suppressedUntil as suppressedUntil, " + "a.suppressedUser as suppressedUser, " + "a.suppressedTime as suppressedTime, " + "a.alarmAckUser as alarmAckUser, " + "a.alarmAckTime as alarmAckTime, " + "a.clearUei as clearUei, " + "a.alarmID as alarmID" +clause); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/bf0f4e4be3a381bb06f5e87e9095dbff5664ee04/AlarmMappingQuery.java/clean/opennms-model/src/main/java/org/opennms/netmgt/dao/jdbc/alarm/AlarmMappingQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2262,
4610,
3233,
1138,
12,
8597,
3780,
16,
514,
6591,
13,
288,
3639,
2240,
12,
2377,
16,
315,
4803,
315,
397,
1850,
202,
202,
6,
69,
18,
2575,
57,
73,
77,
487,
871,
57,
73,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2262,
4610,
3233,
1138,
12,
8597,
3780,
16,
514,
6591,
13,
288,
3639,
2240,
12,
2377,
16,
315,
4803,
315,
397,
1850,
202,
202,
6,
69,
18,
2575,
57,
73,
77,
487,
871,
57,
73,
7... |
null, | private void verify (Node node, boolean verifyNames, boolean xml11Version){ int type = node.getNodeType(); boolean wellformed; switch (type) { case Node.DOCUMENT_NODE:{ break; } case Node.DOCUMENT_TYPE_NODE:{ break; } case Node.ELEMENT_NODE:{ if (verifyNames){ if((features & NAMESPACES) != 0){ wellformed = CoreDocumentImpl.isValidQName(node.getPrefix() , node.getLocalName(), xml11Version) ; } else{ wellformed = CoreDocumentImpl.isXMLName(node.getNodeName() , xml11Version); } if (!wellformed){ if (!wellformed){ if (fErrorHandler != null) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "wf-invalid-character-in-node-name", new Object[]{"Element", node.getNodeName()}); DOMNormalizer.reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR, null, "wf-invalid-character-in-node-name"); } } } } AttributeMap attributes = (node.hasAttributes()) ? (AttributeMap) node.getAttributes() : null; if (attributes != null) { for (int i = 0; i < attributes.getLength(); ++i) { Attr attr = (Attr) attributes.item(i); DOMNormalizer.isAttrValueWF( fErrorHandler, fError, fLocator, attributes,(AttrImpl) attr, attr.getValue(), xml11Version); if (verifyNames) { wellformed = CoreDocumentImpl.isXMLName( node.getNodeName(), xml11Version); if (!wellformed) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "wf-invalid-character-in-node-name", new Object[] { "Attr", node.getNodeName()}); DOMNormalizer.reportDOMError( fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR, null, "wf-invalid-character-in-node-name"); } } } } break; } case Node.COMMENT_NODE: { // only verify well-formness if comments included in the tree if ((features & COMMENTS) != 0) DOMNormalizer.isCommentWF(fErrorHandler, fError, fLocator, ((Comment)node).getData(), xml11Version); break; } case Node.ENTITY_REFERENCE_NODE: { // only if entity is preserved in the tree if (verifyNames && (features & ENTITIES) != 0){ CoreDocumentImpl.isXMLName(node.getNodeName() , xml11Version); } break; } case Node.CDATA_SECTION_NODE: { // verify content DOMNormalizer.isXMLCharWF(fErrorHandler, fError, fLocator, node.getNodeValue(), xml11Version); // the ]]> string will be checked during serialization break; } case Node.TEXT_NODE:{ DOMNormalizer.isXMLCharWF(fErrorHandler, fError, fLocator, node.getNodeValue(), xml11Version); break; } case Node.PROCESSING_INSTRUCTION_NODE:{ ProcessingInstruction pinode = (ProcessingInstruction)node ; String target = pinode.getTarget(); if (verifyNames) { if (xml11Version) { wellformed = XML11Char.isXML11ValidName(target); } else { wellformed = XMLChar.isValidName(target); } if (!wellformed) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "wf-invalid-character-in-node-name", new Object[] { "Element", node.getNodeName()}); DOMNormalizer.reportDOMError( fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR, null, "wf-invalid-character-in-node-name"); } } DOMNormalizer.isXMLCharWF(fErrorHandler, fError, fLocator, pinode.getData(), xml11Version); break; } } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/82adaadf3e9c9c7705874891d284dfa5ac18d582/DOMSerializerImpl.java/clean/src/org/apache/xml/serialize/DOMSerializerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3929,
261,
907,
756,
16,
1250,
3929,
1557,
16,
1250,
2025,
2499,
1444,
15329,
3639,
509,
618,
273,
756,
18,
588,
15101,
5621,
3639,
1250,
5492,
7312,
31,
3639,
1620,
261,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
261,
907,
756,
16,
1250,
3929,
1557,
16,
1250,
2025,
2499,
1444,
15329,
3639,
509,
618,
273,
756,
18,
588,
15101,
5621,
3639,
1250,
5492,
7312,
31,
3639,
1620,
261,
723,
... | |
private static boolean testAndClearMark(ObjectReference object) throws InlinePragma { | private static boolean testAndClearMark(ObjectReference object) throws InlinePragma { | private static boolean testAndClearMark(ObjectReference object) throws InlinePragma { Word oldValue; do { oldValue = ObjectModel.prepareAvailableBits(object); Word markBit = oldValue.and(GC_MARK_BIT_MASK); if (markBit.isZero()) return false; } while (!ObjectModel.attemptAvailableBits(object, oldValue, oldValue.and(GC_MARK_BIT_MASK.not()))); return true; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/MarkCompactSpace.java/buggy/MMTk/src/org/mmtk/policy/MarkCompactSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
1842,
1876,
9094,
3882,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
31,
565,
741,
288,
1377,
11144,
273,
1033,
1488,
18,
9366,
5268,
6495,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
1842,
1876,
9094,
3882,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
31,
565,
741,
288,
1377,
11144,
273,
1033,
1488,
18,
9366,
5268,
6495,
12... |
if (ok) { | } if (ok) { | double classifyInstanceLeaveOneOut(Instance instance, double [] instA) throws Exception { hashKey thekey; double [] tempDist; double [] normDist; thekey = new hashKey(instA); if (m_classIsNominal) { // if this one is not in the table if ((tempDist = (double [])m_entries.get(thekey)) == null) { System.out.println("Shouldnt get here!"); System.exit(1); } else { normDist = new double [tempDist.length]; System.arraycopy(tempDist,0,normDist,0,tempDist.length); normDist[(int)instance.classValue()] -= instance.weight(); // update the table // first check to see if the class counts are all zero now boolean ok = false; for (int i=0;i<normDist.length;i++) if (!Utils.eq(normDist[i],0.0)) { ok = true; break; } if (ok) { Utils.normalize(normDist); return Utils.maxIndex(normDist); } else return m_majority; } return Utils.maxIndex(tempDist); } else { // see if this one is already in the table if ((tempDist = (double[])m_entries.get(thekey)) != null) { normDist = new double [tempDist.length]; System.arraycopy(tempDist,0,normDist,0,tempDist.length); normDist[0] -= (instance.classValue() * instance.weight()); normDist[1] -= instance.weight(); if (Utils.eq(normDist[1],0.0)) return m_majority; else return (normDist[0] / normDist[1]); } else { System.out.println("Shouldnt get here"); System.exit(1); } } // shouldn't get here return 0.0; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/cda0e11a5a37e91d026594d506cc5433742c7b77/DecisionTable.java/clean/weka/classifiers/rules/DecisionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1645,
19974,
1442,
21300,
3335,
1182,
12,
1442,
791,
16,
1645,
5378,
1804,
37,
13,
4202,
1216,
1185,
225,
288,
565,
29623,
326,
856,
31,
565,
1645,
5378,
1906,
5133,
31,
565,
1645,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
19974,
1442,
21300,
3335,
1182,
12,
1442,
791,
16,
1645,
5378,
1804,
37,
13,
4202,
1216,
1185,
225,
288,
565,
29623,
326,
856,
31,
565,
1645,
5378,
1906,
5133,
31,
565,
1645,
5378,
... |
EditorCell_Error noRefCell = EditorCell_Error.create(context, node, ""); | EditorCell_Error noRefCell = EditorCell_Error.create(context, node, "<no link>"); | public EditorCell createLinkReferenceCellinternal(EditorContext context, SNode node) { SNode effectiveNode = null; effectiveNode = node.getReferent("link"); LinkDeclaration linkDeclaration = SModelUtil.getLinkDeclaration(node, "link", context.getOperationContext().getScope()); SReference reference = node.getReference("link"); if(reference != null && !(reference.isResolved())) { EditorCell_Error noRefCell = EditorCell_Error.create(context, node, null); noRefCell.setText(BadReferenceTextProvider.getBadReferenceText(reference)); noRefCell.setEditable(true); noRefCell.setDrawBrackets(false); noRefCell.setBracketsColor(Color.black); noRefCell.putUserObject(EditorCell.METAINFO_LINK_DECLARATION, linkDeclaration); noRefCell.putUserObject(EditorCell.METAINFO_SOURCE_NODE, node); noRefCell.setAction(EditorCellAction.DELETE, new CellAction_Empty()); noRefCell.setSubstituteInfo(new DefaultReferenceSubstituteInfo(node, linkDeclaration, context)); noRefCell.putUserObject(EditorCell.CELL_ID, "1138063854038"); noRefCell.putUserObject(EditorCell.ROLE, "link"); return noRefCell; } if(effectiveNode == null) { { EditorCell_Error noRefCell = EditorCell_Error.create(context, node, ""); noRefCell.setEditable(true); noRefCell.setDrawBrackets(false); noRefCell.setBracketsColor(Color.black); noRefCell.putUserObject(EditorCell.METAINFO_LINK_DECLARATION, linkDeclaration); noRefCell.putUserObject(EditorCell.METAINFO_SOURCE_NODE, node); noRefCell.setAction(EditorCellAction.DELETE, new CellAction_Empty()); noRefCell.setSubstituteInfo(new DefaultReferenceSubstituteInfo(node, linkDeclaration, context)); noRefCell.putUserObject(EditorCell.CELL_ID, "1138063854038"); noRefCell.setLayoutConstraint(""); noRefCell.putUserObject(EditorCell.ROLE, "link"); return noRefCell; } } AbstractCellProvider inlineComponent = new SLinkTargetAccess_Editor_link_InlineComponent(effectiveNode); EditorCell editorCell = inlineComponent.createEditorCell(context); EditorUtil.setSemanticNodeToCells(editorCell, node); editorCell.setLayoutConstraint(""); editorCell.setSelectable(true); editorCell.setDrawBorder(false); editorCell.setDrawBrackets(false); editorCell.setBracketsColor(Color.black); editorCell.putUserObject(EditorCell.METAINFO_LINK_DECLARATION, linkDeclaration); editorCell.putUserObject(EditorCell.METAINFO_SOURCE_NODE, node); editorCell.putUserObject(EditorCell.ROLE, "link"); editorCell.setAction(EditorCellAction.DELETE, new CellAction_Empty()); editorCell.setSubstituteInfo(new DefaultReferenceSubstituteInfo(node, linkDeclaration, context)); return editorCell; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/85c26c7bc8c610037ae198e46166d3ad7842ad13/SLinkTargetAccess_Editor.java/clean/source_gen/jetbrains/mps/bootstrap/smodelLanguage/editor/SLinkTargetAccess_Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18451,
4020,
752,
2098,
2404,
4020,
7236,
12,
6946,
1042,
819,
16,
348,
907,
756,
13,
288,
565,
348,
907,
11448,
907,
273,
446,
31,
565,
11448,
907,
273,
756,
18,
588,
426,
3518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18451,
4020,
752,
2098,
2404,
4020,
7236,
12,
6946,
1042,
819,
16,
348,
907,
756,
13,
288,
565,
348,
907,
11448,
907,
273,
446,
31,
565,
11448,
907,
273,
756,
18,
588,
426,
3518,
... |
buf.append(minutes + "M"); | buf.append(minutes).append('M'); | public String toString() { StringBuffer buf = new StringBuffer(); if (signum < 0) { buf.append('-'); } buf.append('P'); if (years != null) { buf.append(years + "Y"); } if (months != null) { buf.append(months + "M"); } if (days != null) { buf.append(days + "D"); } if (hours != null || minutes != null || seconds != null) { buf.append('T'); if (hours != null) { buf.append(hours + "H"); } if (minutes != null) { buf.append(minutes + "M"); } if (seconds != null) { buf.append(toString(seconds) + "S"); } } return buf.toString(); } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b414bd5a51a69161c61ffcd585bdb76ec3eff180/DurationImpl.java/clean/src/org/apache/xerces/jaxp/datatype/DurationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
309,
261,
2977,
379,
411,
374,
13,
288,
5411,
1681,
18,
6923,
2668,
6627,
1769,
3639,
289,
3639,
1681,
18,
6923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1762,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
309,
261,
2977,
379,
411,
374,
13,
288,
5411,
1681,
18,
6923,
2668,
6627,
1769,
3639,
289,
3639,
1681,
18,
6923,
... |
requestLine = casing.dequeueRequest(); | private Object firstLine(ByteBuffer data) throws ParseException { if (!clientSide) { requestLine = casing.dequeueRequest(); return statusLine = statusLine(data); } else { return requestLine = requestLine(data); } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/858eacdb9a813cb806a97a3e3ee503ae037263dc/HttpParser.java/clean/tran/http/main/com/metavize/tran/http/HttpParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
24415,
12,
12242,
501,
13,
1216,
10616,
565,
288,
3639,
309,
16051,
2625,
8895,
13,
288,
15604,
327,
1267,
1670,
273,
1267,
1670,
12,
892,
1769,
3639,
289,
469,
288,
5411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
24415,
12,
12242,
501,
13,
1216,
10616,
565,
288,
3639,
309,
16051,
2625,
8895,
13,
288,
15604,
327,
1267,
1670,
273,
1267,
1670,
12,
892,
1769,
3639,
289,
469,
288,
5411,
327... | |
if (appClientRadioButton.getSelection()) return getAppClientNode(); if (connectorRadioButton != null && connectorRadioButton.getSelection()) return getConnectorNode(); if (ejbRadioButton != null && ejbRadioButton.getSelection()) return getEjbNode(); if (webRadioButton != null && webRadioButton.getSelection()) return getWebNode(); return null; } | if (appClientRadioButton.getSelection()) return getAppClientNode(); if (connectorRadioButton != null && connectorRadioButton.getSelection()) return getConnectorNode(); if (ejbRadioButton != null && ejbRadioButton.getSelection()) return getEjbNode(); if (webRadioButton != null && webRadioButton.getSelection()) return getWebNode(); return null; } | private GenericWizardNode getWizardNodeFromSelection() { if (appClientRadioButton.getSelection()) return getAppClientNode(); if (connectorRadioButton != null && connectorRadioButton.getSelection()) return getConnectorNode(); if (ejbRadioButton != null && ejbRadioButton.getSelection()) return getEjbNode(); if (webRadioButton != null && webRadioButton.getSelection()) return getWebNode(); return null; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/00f6a4d44cf71e0497aeeae1b2008a2226b5439d/NewJ2EEComponentSelectionPage.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/NewJ2EEComponentSelectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
7928,
27130,
907,
13876,
13412,
907,
1265,
6233,
1435,
288,
202,
202,
430,
261,
2910,
1227,
19984,
3616,
18,
588,
6233,
10756,
1082,
202,
2463,
13697,
1227,
907,
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,
1152,
7928,
27130,
907,
13876,
13412,
907,
1265,
6233,
1435,
288,
202,
202,
430,
261,
2910,
1227,
19984,
3616,
18,
588,
6233,
10756,
1082,
202,
2463,
13697,
1227,
907,
5621,
202,
202,
... |
assertEquals("{" + SystemUtils.LINE_SEPARATOR + "foo=bar" + SystemUtils.LINE_SEPARATOR + "foozle=doozle" + SystemUtils.LINE_SEPARATOR + "}", PropertiesHelper.propertiesToString(props, true)); | assertEquals("{" + SystemUtils.LINE_SEPARATOR + "foo=bar" + SystemUtils.LINE_SEPARATOR + "foozle=doozle" + SystemUtils.LINE_SEPARATOR + "}", PropertiesHelper .propertiesToString(props, true)); | public void testMapTwoElements() throws Exception { Map props = CollectionUtil.mapWithKeysAndValues(HashMap.class, new Object[]{"foo", "foozle"}, new Object[]{"bar", "doozle"}); assertEquals("{foo=bar, foozle=doozle}", PropertiesHelper.propertiesToString(props, false)); assertEquals("{" + SystemUtils.LINE_SEPARATOR + "foo=bar" + SystemUtils.LINE_SEPARATOR + "foozle=doozle" + SystemUtils.LINE_SEPARATOR + "}", PropertiesHelper.propertiesToString(props, true)); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/5c7badd7924d8f30223c81136f63117d913be921/PropertiesHelperTestCase.java/clean/src/test/java/org/mule/test/util/PropertiesHelperTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
863,
11710,
3471,
1435,
1216,
1185,
565,
288,
377,
202,
863,
3458,
273,
2200,
1304,
18,
1458,
1190,
2396,
1876,
1972,
12,
8658,
18,
1106,
16,
377,
1082,
202,
2704,
1033,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
863,
11710,
3471,
1435,
1216,
1185,
565,
288,
377,
202,
863,
3458,
273,
2200,
1304,
18,
1458,
1190,
2396,
1876,
1972,
12,
8658,
18,
1106,
16,
377,
1082,
202,
2704,
1033,
... |
if (!(dm instanceof MClassifier)) return NO_PROBLEM; MClassifier cls = (MClassifier) dm; Vector namesSeen = new Vector(); Collection assocEnds = cls.getAssociationEnds(); if (assocEnds == null) return NO_PROBLEM; Iterator enum = assocEnds.iterator(); while (enum.hasNext()) { MAssociationEnd myAe = (MAssociationEnd) enum.next(); MAssociation asc = (MAssociation) myAe.getAssociation(); if (asc == null) continue; Collection conns = asc.getConnections(); if (asc instanceof MAssociationRole) conns = ((MAssociationRole)asc).getConnections(); if (conns == null) continue; Iterator enum2 = conns.iterator(); while (enum2.hasNext()) { MAssociationEnd ae = (MAssociationEnd) enum2.next(); if (ae.getType() == cls) continue; String aeName = ae.getName(); if ("".equals(aeName)) continue; String aeNameStr = aeName; if (aeNameStr.length() == 0) continue; if (namesSeen.contains(aeNameStr)) return PROBLEM_FOUND; namesSeen.addElement(aeNameStr); } | boolean problem = NO_PROBLEM; if (ModelFacade.isAClassifier(dm)) { Collection col = CoreHelper.getHelper().getAssociations(dm); List names = new ArrayList(); Iterator it = col.iterator(); String name = null; while (it.hasNext()) { name = ModelFacade.getName(it.next()); if (name == null || name.equals("")) continue; if (names.contains(name)) { problem = PROBLEM_FOUND; break; } } } return problem; | public boolean predicate2(Object dm, Designer dsgr) { if (!(dm instanceof MClassifier)) return NO_PROBLEM; MClassifier cls = (MClassifier) dm; Vector namesSeen = new Vector(); Collection assocEnds = cls.getAssociationEnds(); if (assocEnds == null) return NO_PROBLEM; Iterator enum = assocEnds.iterator(); // warn about inheritied name conflicts, different critic? while (enum.hasNext()) { MAssociationEnd myAe = (MAssociationEnd) enum.next(); MAssociation asc = (MAssociation) myAe.getAssociation(); if (asc == null) continue; Collection conns = asc.getConnections(); if (asc instanceof MAssociationRole) conns = ((MAssociationRole)asc).getConnections(); if (conns == null) continue; Iterator enum2 = conns.iterator(); while (enum2.hasNext()) { MAssociationEnd ae = (MAssociationEnd) enum2.next(); if (ae.getType() == cls) continue; String aeName = ae.getName(); if ("".equals(aeName)) continue; String aeNameStr = aeName; if (aeNameStr.length() == 0) continue; if (namesSeen.contains(aeNameStr)) return PROBLEM_FOUND; namesSeen.addElement(aeNameStr); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/9eda3ebb05b231fea6a868e0ddf77960398b16cb/CrOppEndConflict.java/clean/src_new/org/argouml/uml/cognitive/critics/CrOppEndConflict.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
5641,
22,
12,
921,
9113,
16,
29703,
264,
302,
1055,
86,
13,
288,
565,
309,
16051,
12,
10956,
1276,
490,
13860,
3719,
327,
3741,
67,
3373,
38,
26817,
31,
565,
490,
13860,
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,
282,
1071,
1250,
5641,
22,
12,
921,
9113,
16,
29703,
264,
302,
1055,
86,
13,
288,
565,
309,
16051,
12,
10956,
1276,
490,
13860,
3719,
327,
3741,
67,
3373,
38,
26817,
31,
565,
490,
13860,
202... |
case 412 : | case 407 : | protected void consumeRule(int act) { switch ( act ) { case 29 : // System.out.println("Type ::= PrimitiveType"); consumePrimitiveType(); break ; case 43 : // System.out.println("ReferenceType ::= ClassOrInterfaceType"); consumeReferenceType(); break ; case 52 : // System.out.println("QualifiedName ::= Name DOT SimpleName"); consumeQualifiedName(); break ; case 53 : // System.out.println("CompilationUnit ::= EnterCompilationUnit PackageDeclarationopt ImportDeclarationsopt"); consumeCompilationUnit(); break ; case 54 : // System.out.println("EnterCompilationUnit ::="); consumeEnterCompilationUnit(); break ; case 67 : // System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN LBRACE"); consumeCatchHeader(); break ; case 69 : // System.out.println("ImportDeclarations ::= ImportDeclarations ImportDeclaration"); consumeImportDeclarations(); break ; case 71 : // System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); consumeTypeDeclarations(); break ; case 72 : // System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); consumePackageDeclaration(); break ; case 73 : // System.out.println("PackageDeclarationName ::= package Name"); consumePackageDeclarationName(); break ; case 76 : // System.out.println("SingleTypeImportDeclaration ::= SingleTypeImportDeclarationName SEMICOLON"); consumeSingleTypeImportDeclaration(); break ; case 77 : // System.out.println("SingleTypeImportDeclarationName ::= import Name"); consumeSingleTypeImportDeclarationName(); break ; case 78 : // System.out.println("TypeImportOnDemandDeclaration ::= TypeImportOnDemandDeclarationName SEMICOLON"); consumeTypeImportOnDemandDeclaration(); break ; case 79 : // System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT MULTIPLY"); consumeTypeImportOnDemandDeclarationName(); break ; case 82 : // System.out.println("TypeDeclaration ::= SEMICOLON"); consumeEmptyTypeDeclaration(); break ; case 96 : // System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); consumeClassDeclaration(); break ; case 97 : // System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt"); consumeClassHeader(); break ; case 98 : // System.out.println("ClassHeaderName ::= Modifiersopt class Identifier"); consumeClassHeaderName(); break ; case 99 : // System.out.println("ClassHeaderExtends ::= extends ClassType"); consumeClassHeaderExtends(); break ; case 100 : // System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); consumeClassHeaderImplements(); break ; case 102 : // System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType"); consumeInterfaceTypeList(); break ; case 103 : // System.out.println("InterfaceType ::= ClassOrInterfaceType"); consumeInterfaceType(); break ; case 106 : // System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration"); consumeClassBodyDeclarations(); break ; case 110 : // System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); consumeClassBodyDeclaration(); break ; case 111 : // System.out.println("Diet ::="); consumeDiet(); break ; case 112 : // System.out.println("Initializer ::= Diet NestedMethod Block"); consumeClassBodyDeclaration(); break ; case 119 : // System.out.println("ClassMemberDeclaration ::= SEMICOLON"); consumeEmptyClassMemberDeclaration(); break ; case 120 : // System.out.println("FieldDeclaration ::= Modifiersopt Type VariableDeclarators SEMICOLON"); consumeFieldDeclaration(); break ; case 122 : // System.out.println("VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator"); consumeVariableDeclarators(); break ; case 125 : // System.out.println("EnterVariable ::="); consumeEnterVariable(); break ; case 126 : // System.out.println("ExitVariableWithInitialization ::="); consumeExitVariableWithInitialization(); break ; case 127 : // System.out.println("ExitVariableWithoutInitialization ::="); consumeExitVariableWithoutInitialization(); break ; case 128 : // System.out.println("ForceNoDiet ::="); consumeForceNoDiet(); break ; case 129 : // System.out.println("RestoreDiet ::="); consumeRestoreDiet(); break ; case 134 : // System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); // set to true to consume a method with a body consumeMethodDeclaration(true); break ; case 135 : // System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); // set to false to consume a method without body consumeMethodDeclaration(false); break ; case 136 : // System.out.println("MethodHeader ::= MethodHeaderName MethodHeaderParameters MethodHeaderExtendedDims"); consumeMethodHeader(); break ; case 137 : // System.out.println("MethodPushModifiersHeader ::= MethodPushModifiersHeaderName MethodHeaderParameters"); consumeMethodHeader(); break ; case 138 : // System.out.println("MethodPushModifiersHeaderName ::= Modifiers Type PushModifiers Identifier LPAREN"); consumeMethodPushModifiersHeaderName(); break ; case 139 : // System.out.println("MethodPushModifiersHeaderName ::= Type PushModifiers Identifier LPAREN"); consumeMethodPushModifiersHeaderName(); break ; case 140 : // System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); consumeMethodHeaderName(); break ; case 141 : // System.out.println("MethodHeaderParameters ::= FormalParameterListopt RPAREN"); consumeMethodHeaderParameters(); break ; case 142 : // System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); consumeMethodHeaderExtendedDims(); break ; case 143 : // System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); consumeMethodHeaderThrowsClause(); break ; case 144 : // System.out.println("ConstructorHeader ::= ConstructorHeaderName MethodHeaderParameters..."); consumeConstructorHeader(); break ; case 145 : // System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); consumeConstructorHeaderName(); break ; case 147 : // System.out.println("FormalParameterList ::= FormalParameterList COMMA FormalParameter"); consumeFormalParameterList(); break ; case 148 : // System.out.println("FormalParameter ::= Modifiersopt Type VariableDeclaratorId"); // the boolean is used to know if the modifiers should be reset consumeFormalParameter(); break ; case 150 : // System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); consumeClassTypeList(); break ; case 151 : // System.out.println("ClassTypeElt ::= ClassType"); consumeClassTypeElt(); break ; case 152 : // System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt RBRACE"); consumeMethodBody(); break ; case 153 : // System.out.println("NestedMethod ::="); consumeNestedMethod(); break ; case 154 : // System.out.println("StaticInitializer ::= StaticOnly Block"); consumeStaticInitializer(); break ; case 155 : // System.out.println("StaticOnly ::= static"); consumeStaticOnly(); break ; case 156 : // System.out.println("ConstructorDeclaration ::= ConstructorHeader ConstructorBody"); consumeConstructorDeclaration() ; break ; case 157 : // System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); consumeInvalidConstructorDeclaration() ; break ; case 158 : // System.out.println("ConstructorBody ::= NestedMethod LBRACE ConstructorBlockStatementsopt RBRACE"); consumeConstructorBody(); break ; case 161 : // System.out.println("ConstructorBlockStatementsopt ::= ExplicitConstructorInvocation BlockStatements"); consumeConstructorBlockStatements(); break ; case 162 : // System.out.println("ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON"); consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.This); break ; case 163 : // System.out.println("ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON"); consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.Super); break ; case 164 : // System.out.println("ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN"); consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.Super); break ; case 165 : // System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.Super); break ; case 166 : // System.out.println("ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.This); break ; case 167 : // System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.This); break ; case 168 : // System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); consumeInterfaceDeclaration(); break ; case 169 : // System.out.println("InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt"); consumeInterfaceHeader(); break ; case 170 : // System.out.println("InterfaceHeaderName ::= Modifiersopt interface Identifier"); consumeInterfaceHeaderName(); break ; case 172 : // System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); consumeInterfaceHeaderExtends(); break ; case 175 : // System.out.println("InterfaceMemberDeclarations ::= InterfaceMemberDeclarations..."); consumeInterfaceMemberDeclarations(); break ; case 176 : // System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); consumeEmptyInterfaceMemberDeclaration(); break ; case 179 : // System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); ignoreMethodBody(); break ; case 180 : // System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader ConstructorBody"); ignoreInvalidConstructorDeclaration(true); break ; case 181 : // System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader SEMICOLON"); ignoreInvalidConstructorDeclaration(false); break ; case 187 : // System.out.println("ArrayInitializer ::= LBRACE ,opt RBRACE"); consumeEmptyArrayInitializer(); break ; case 188 : // System.out.println("ArrayInitializer ::= LBRACE VariableInitializers RBRACE"); consumeArrayInitializer(); break ; case 189 : // System.out.println("ArrayInitializer ::= LBRACE VariableInitializers COMMA RBRACE"); consumeArrayInitializer(); break ; case 191 : // System.out.println("VariableInitializers ::= VariableInitializers COMMA VariableInitializer"); consumeVariableInitializers(); break ; case 192 : // System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); consumeBlock(); break ; case 193 : // System.out.println("OpenBlock ::="); consumeOpenBlock() ; break ; case 195 : // System.out.println("BlockStatements ::= BlockStatements BlockStatement"); consumeBlockStatements() ; break ; case 199 : // System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); ignoreInterfaceDeclaration(); break ; case 200 : // System.out.println("LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON"); consumeLocalVariableDeclarationStatement(); break ; case 201 : // System.out.println("LocalVariableDeclaration ::= Type PushModifiers VariableDeclarators"); consumeLocalVariableDeclaration(); break ; case 202 : // System.out.println("LocalVariableDeclaration ::= Modifiers Type PushModifiers VariableDeclarators"); consumeLocalVariableDeclaration(); break ; case 203 : // System.out.println("PushModifiers ::="); consumePushModifiers(); break ; case 227 : // System.out.println("EmptyStatement ::= SEMICOLON"); consumeEmptyStatement(); break ; case 228 : // System.out.println("LabeledStatement ::= Identifier COLON Statement"); consumeStatementLabel() ; break ; case 229 : // System.out.println("LabeledStatementNoShortIf ::= Identifier COLON StatementNoShortIf"); consumeStatementLabel() ; break ; case 230 : // System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); consumeExpressionStatement(); break ; case 238 : // System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN Statement"); consumeStatementIfNoElse(); break ; case 239 : // System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else..."); consumeStatementIfWithElse(); break ; case 240 : // System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf..."); consumeStatementIfWithElse(); break ; case 241 : // System.out.println("SwitchStatement ::= switch OpenBlock LPAREN Expression RPAREN SwitchBlock"); consumeStatementSwitch() ; break ; case 242 : // System.out.println("SwitchBlock ::= LBRACE RBRACE"); consumeEmptySwitchBlock() ; break ; case 245 : // System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements SwitchLabels RBRACE"); consumeSwitchBlock() ; break ; case 247 : // System.out.println("SwitchBlockStatements ::= SwitchBlockStatements SwitchBlockStatement"); consumeSwitchBlockStatements() ; break ; case 248 : // System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); consumeSwitchBlockStatement() ; break ; case 250 : // System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); consumeSwitchLabels() ; break ; case 251 : // System.out.println("SwitchLabel ::= case ConstantExpression COLON"); consumeCaseLabel(); break ; case 252 : // System.out.println("SwitchLabel ::= default COLON"); consumeDefaultLabel(); break ; case 253 : // System.out.println("WhileStatement ::= while LPAREN Expression RPAREN Statement"); consumeStatementWhile() ; break ; case 254 : // System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf"); consumeStatementWhile() ; break ; case 255 : // System.out.println("DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON"); consumeStatementDo() ; break ; case 256 : // System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON..."); consumeStatementFor() ; break ; case 257 : // System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON"); consumeStatementFor() ; break ; case 258 : // System.out.println("ForInit ::= StatementExpressionList"); consumeForInit() ; break ; case 262 : // System.out.println("StatementExpressionList ::= StatementExpressionList COMMA StatementExpression"); consumeStatementExpressionList() ; break ; case 263 : // System.out.println("AssertStatement ::= assert Expression SEMICOLON"); consumeSimpleAssertStatement() ; break ; case 264 : // System.out.println("AssertStatement ::= assert Expression COLON Expression SEMICOLON"); consumeAssertStatement() ; break ; case 265 : // System.out.println("BreakStatement ::= break SEMICOLON"); consumeStatementBreak() ; break ; case 266 : // System.out.println("BreakStatement ::= break Identifier SEMICOLON"); consumeStatementBreakWithLabel() ; break ; case 267 : // System.out.println("ContinueStatement ::= continue SEMICOLON"); consumeStatementContinue() ; break ; case 268 : // System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); consumeStatementContinueWithLabel() ; break ; case 269 : // System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); consumeStatementReturn() ; break ; case 270 : // System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); consumeStatementThrow(); break ; case 271 : // System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN Expression RPAREN Block"); consumeStatementSynchronized(); break ; case 272 : // System.out.println("OnlySynchronized ::= synchronized"); consumeOnlySynchronized(); break ; case 273 : // System.out.println("TryStatement ::= try Block Catches"); consumeStatementTry(false); break ; case 274 : // System.out.println("TryStatement ::= try Block Catchesopt Finally"); consumeStatementTry(true); break ; case 276 : // System.out.println("Catches ::= Catches CatchClause"); consumeCatches(); break ; case 277 : // System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN Block"); consumeStatementCatch() ; break ; case 279 : // System.out.println("PushLPAREN ::= LPAREN"); consumeLeftParen(); break ; case 280 : // System.out.println("PushRPAREN ::= RPAREN"); consumeRightParen(); break ; case 285 : // System.out.println("PrimaryNoNewArray ::= this"); consumePrimaryNoNewArrayThis(); break ; case 286 : // System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression PushRPAREN"); consumePrimaryNoNewArray(); break ; case 289 : // System.out.println("PrimaryNoNewArray ::= Name DOT this"); consumePrimaryNoNewArrayNameThis(); break ; case 290 : // System.out.println("PrimaryNoNewArray ::= Name DOT super"); consumePrimaryNoNewArrayNameSuper(); break ; case 291 : // System.out.println("PrimaryNoNewArray ::= Name DOT class"); consumePrimaryNoNewArrayName(); break ; case 292 : // System.out.println("PrimaryNoNewArray ::= ArrayType DOT class"); consumePrimaryNoNewArrayArrayType(); break ; case 293 : // System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); consumePrimaryNoNewArrayPrimitiveType(); break ; case 296 : // System.out.println("AllocationHeader ::= new ClassType LPAREN ArgumentListopt RPAREN"); consumeAllocationHeader(); break ; case 297 : // System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN ArgumentListopt RPAREN..."); consumeClassInstanceCreationExpression(); break ; case 298 : // System.out.println("ClassInstanceCreationExpression ::= Primary DOT new SimpleName LPAREN..."); consumeClassInstanceCreationExpressionQualified() ; break ; case 299 : // System.out.println("ClassInstanceCreationExpression ::= ClassInstanceCreationExpressionName new..."); consumeClassInstanceCreationExpressionQualified() ; break ; case 300 : // System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); consumeClassInstanceCreationExpressionName() ; break ; case 301 : // System.out.println("ClassBodyopt ::="); consumeClassBodyopt(); break ; case 303 : // System.out.println("EnterAnonymousClassBody ::="); consumeEnterAnonymousClassBody(); break ; case 305 : // System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); consumeArgumentList(); break ; case 306 : // System.out.println("ArrayCreationHeader ::= new PrimitiveType DimWithOrWithOutExprs"); consumeArrayCreationHeader(); break ; case 307 : // System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType DimWithOrWithOutExprs"); consumeArrayCreationHeader(); break ; case 308 : // System.out.println("ArrayCreationWithoutArrayInitializer ::= new PrimitiveType DimWithOrWithOutExprs"); consumeArrayCreationExpressionWithoutInitializer(); break ; case 309 : // System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType DimWithOrWithOutExprs..."); consumeArrayCreationExpressionWithInitializer(); break ; case 310 : // System.out.println("ArrayCreationWithoutArrayInitializer ::= new ClassOrInterfaceType..."); consumeArrayCreationExpressionWithoutInitializer(); break ; case 311 : // System.out.println("ArrayCreationWithArrayInitializer ::= new ClassOrInterfaceType..."); consumeArrayCreationExpressionWithInitializer(); break ; case 313 : // System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs DimWithOrWithOutExpr"); consumeDimWithOrWithOutExprs(); break ; case 315 : // System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); consumeDimWithOrWithOutExpr(); break ; case 316 : // System.out.println("Dims ::= DimsLoop"); consumeDims(); break ; case 319 : // System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); consumeOneDimLoop(); break ; case 320 : // System.out.println("FieldAccess ::= Primary DOT Identifier"); consumeFieldAccess(false); break ; case 321 : // System.out.println("FieldAccess ::= super DOT Identifier"); consumeFieldAccess(true); break ; case 322 : // System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationName(); break ; case 323 : // System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationPrimary(); break ; case 324 : // System.out.println("MethodInvocation ::= super DOT Identifier LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationSuper(); break ; case 325 : // System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); consumeArrayAccess(true); break ; case 326 : // System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression RBRACKET"); consumeArrayAccess(false); break ; case 327 : // System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer LBRACKET Expression RBRACKET"); consumeArrayAccess(false); break ; case 329 : // System.out.println("PostfixExpression ::= Name"); consumePostfixExpression(); break ; case 332 : // System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); consumeUnaryExpression(OperatorIds.PLUS,true); break ; case 333 : // System.out.println("PostDecrementExpression ::= PostfixExpression MINUS_MINUS"); consumeUnaryExpression(OperatorIds.MINUS,true); break ; case 334 : // System.out.println("PushPosition ::="); consumePushPosition(); break ; case 337 : // System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.PLUS); break ; case 338 : // System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.MINUS); break ; case 340 : // System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.PLUS,false); break ; case 341 : // System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.MINUS,false); break ; case 343 : // System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.TWIDDLE); break ; case 344 : // System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.NOT); break ; case 346 : // System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt PushRPAREN InsideCastExpression"); consumeCastExpression(); break ; case 347 : // System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN InsideCastExpression..."); consumeCastExpression(); break ; case 348 : // System.out.println("CastExpression ::= PushLPAREN Expression PushRPAREN InsideCastExpressionLL1..."); consumeCastExpressionLL1(); break ; case 349 : // System.out.println("InsideCastExpression ::="); consumeInsideCastExpression(); break ; case 350 : // System.out.println("InsideCastExpressionLL1 ::="); consumeInsideCastExpressionLL1(); break ; case 352 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression"); consumeBinaryExpression(OperatorIds.MULTIPLY); break ; case 353 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression"); consumeBinaryExpression(OperatorIds.DIVIDE); break ; case 354 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression"); consumeBinaryExpression(OperatorIds.REMAINDER); break ; case 356 : // System.out.println("AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression"); consumeBinaryExpression(OperatorIds.PLUS); break ; case 357 : // System.out.println("AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression"); consumeBinaryExpression(OperatorIds.MINUS); break ; case 359 : // System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break ; case 360 : // System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break ; case 361 : // System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break ; case 363 : // System.out.println("RelationalExpression ::= RelationalExpression LESS ShiftExpression"); consumeBinaryExpression(OperatorIds.LESS); break ; case 364 : // System.out.println("RelationalExpression ::= RelationalExpression GREATER ShiftExpression"); consumeBinaryExpression(OperatorIds.GREATER); break ; case 365 : // System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression"); consumeBinaryExpression(OperatorIds.LESS_EQUAL); break ; case 366 : // System.out.println("RelationalExpression ::= RelationalExpression GREATER_EQUAL ShiftExpression"); consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break ; case 367 : // System.out.println("RelationalExpression ::= RelationalExpression instanceof ReferenceType"); consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break ; case 369 : // System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression"); consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break ; case 370 : // System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression"); consumeEqualityExpression(OperatorIds.NOT_EQUAL); break ; case 372 : // System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); consumeBinaryExpression(OperatorIds.AND); break ; case 374 : // System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression"); consumeBinaryExpression(OperatorIds.XOR); break ; case 376 : // System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression"); consumeBinaryExpression(OperatorIds.OR); break ; case 378 : // System.out.println("ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression"); consumeBinaryExpression(OperatorIds.AND_AND); break ; case 380 : // System.out.println("ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression"); consumeBinaryExpression(OperatorIds.OR_OR); break ; case 382 : // System.out.println("ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON..."); consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break ; case 385 : // System.out.println("Assignment ::= PostfixExpression AssignmentOperator AssignmentExpression"); consumeAssignment(); break ; case 387 : // System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); ignoreExpressionAssignment(); break ; case 388 : // System.out.println("AssignmentOperator ::= EQUAL"); consumeAssignmentOperator(EQUAL); break ; case 389 : // System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); consumeAssignmentOperator(MULTIPLY); break ; case 390 : // System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); consumeAssignmentOperator(DIVIDE); break ; case 391 : // System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); consumeAssignmentOperator(REMAINDER); break ; case 392 : // System.out.println("AssignmentOperator ::= PLUS_EQUAL"); consumeAssignmentOperator(PLUS); break ; case 393 : // System.out.println("AssignmentOperator ::= MINUS_EQUAL"); consumeAssignmentOperator(MINUS); break ; case 394 : // System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); consumeAssignmentOperator(LEFT_SHIFT); break ; case 395 : // System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); consumeAssignmentOperator(RIGHT_SHIFT); break ; case 396 : // System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break ; case 397 : // System.out.println("AssignmentOperator ::= AND_EQUAL"); consumeAssignmentOperator(AND); break ; case 398 : // System.out.println("AssignmentOperator ::= XOR_EQUAL"); consumeAssignmentOperator(XOR); break ; case 399 : // System.out.println("AssignmentOperator ::= OR_EQUAL"); consumeAssignmentOperator(OR); break ; case 406 : // System.out.println("Expressionopt ::="); consumeEmptyExpression(); break ; case 410 : // System.out.println("ImportDeclarationsopt ::="); consumeEmptyImportDeclarationsopt(); break ; case 411 : // System.out.println("ImportDeclarationsopt ::= ImportDeclarations"); consumeImportDeclarationsopt(); break ; case 412 : // System.out.println("TypeDeclarationsopt ::="); consumeEmptyTypeDeclarationsopt(); break ; case 413 : // System.out.println("TypeDeclarationsopt ::= TypeDeclarations"); consumeTypeDeclarationsopt(); break ; case 414 : // System.out.println("ClassBodyDeclarationsopt ::="); consumeEmptyClassBodyDeclarationsopt(); break ; case 415 : // System.out.println("ClassBodyDeclarationsopt ::= NestedType ClassBodyDeclarations"); consumeClassBodyDeclarationsopt(); break ; case 416 : // System.out.println("Modifiersopt ::="); consumeDefaultModifiers(); break ; case 417 : // System.out.println("Modifiersopt ::= Modifiers"); consumeModifiers(); break ; case 418 : // System.out.println("BlockStatementsopt ::="); consumeEmptyBlockStatementsopt(); break ; case 420 : // System.out.println("Dimsopt ::="); consumeEmptyDimsopt(); break ; case 422 : // System.out.println("ArgumentListopt ::="); consumeEmptyArgumentListopt(); break ; case 426 : // System.out.println("FormalParameterListopt ::="); consumeFormalParameterListopt(); break ; case 430 : // System.out.println("InterfaceMemberDeclarationsopt ::="); consumeEmptyInterfaceMemberDeclarationsopt(); break ; case 431 : // System.out.println("InterfaceMemberDeclarationsopt ::= NestedType InterfaceMemberDeclarations"); consumeInterfaceMemberDeclarationsopt(); break ; case 432 : // System.out.println("NestedType ::="); consumeNestedType(); break ; case 433 : // System.out.println("ForInitopt ::="); consumeEmptyForInitopt(); break ; case 435 : // System.out.println("ForUpdateopt ::="); consumeEmptyForUpdateopt(); break ; case 439 : // System.out.println("Catchesopt ::="); consumeEmptyCatchesopt(); break ; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/ca8ac59322f9a5546de88cf1c276f2947f3dabe2/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
368,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
1082,
565,
7865,
9840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
368,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
1082,
565,
7865,
9840... |
context.info( message ); | context.verbose( message ); | private void logExecDetails( final ExecMetaData metaData, final TaskContext context ) throws TaskException { if( context.isInfoEnabled() ) { final String cmdline = FileUtils.formatCommandLine( metaData.getCommand() ); final String message = REZ.getString( "execute.command.notice", cmdline ); context.info( message ); } if( context.isDebugEnabled() ) { final String message = REZ.getString( "execute.env-vars.notice", metaData.getEnvironment() ); context.debug( message ); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/70d6a6fb3c092c7ecd8f1901169e816ce0244042/Execute.java/clean/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Execute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
1905,
3790,
12,
727,
3889,
6998,
11651,
16,
4766,
727,
3837,
1042,
819,
262,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
819,
18,
291,
966,
1526,
1435,
262,
3639,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
1905,
3790,
12,
727,
3889,
6998,
11651,
16,
4766,
727,
3837,
1042,
819,
262,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
819,
18,
291,
966,
1526,
1435,
262,
3639,
28... |
part.dispose(); | ref0.dispose(); | private void disposePart(IWorkbenchPartReference ref) { final IWorkbenchPart part = ref.getPart(false); if(part == null) return; Platform.run(new SafeRunnable() { public void run() { part.dispose(); } public void handleException(Throwable e) { //Exception has already being logged by Core. Do nothing. } });} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2513349bf76e774b17f5385216fb6cc6eeb0d6b5/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
15825,
1988,
12,
45,
2421,
22144,
1988,
2404,
1278,
13,
288,
202,
6385,
467,
2421,
22144,
1988,
1087,
273,
1278,
18,
588,
1988,
12,
5743,
1769,
202,
430,
12,
2680,
422,
446,
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,
3238,
918,
15825,
1988,
12,
45,
2421,
22144,
1988,
2404,
1278,
13,
288,
202,
6385,
467,
2421,
22144,
1988,
1087,
273,
1278,
18,
588,
1988,
12,
5743,
1769,
202,
430,
12,
2680,
422,
446,
13,
2... |
try { /* * First, the reference insertion handler */ | public void runTest () { /* * lets make a Context and add the event cartridge */ VelocityContext inner = new VelocityContext(); /* * Now make an event cartridge, register all the * event handlers (at once) and attach it to the * Context */ EventCartridge ec = new EventCartridge(); ec.addEventHandler(this); ec.attachToContext( inner ); /* * now wrap the event cartridge - we want to make sure that * we can do this w/o harm */ VelocityContext context = new VelocityContext( inner ); context.put("name", "Velocity"); try { /* * First, the reference insertion handler */ String s = "$name"; StringWriter w = new StringWriter(); Velocity.evaluate( context, w, "mystring", s ); if ( !w.toString().equals( REFERENCE_VALUE )) { fail( "Reference insertion test 1"); } /* * using the same handler, we can deal with * null references as well */ s = "$floobie"; w = new StringWriter(); Velocity.evaluate( context, w, "mystring", s ); if ( !w.toString().equals( NO_REFERENCE_VALUE )) { fail( "Reference insertion test 2"); } /* * now lets test setting a null value - this test * should result in *no* log output. */ s = "#set($settest = $NotAReference)"; w = new StringWriter(); logString = null; Velocity.evaluate( context, w, "mystring", s ); if( logString != null) { fail( "NullSetEventHandler test 1"); } /* * now lets test setting a null value - this test * should result in log output. */ s = "#set($logthis = $NotAReference)"; w = new StringWriter(); logString = null; Velocity.evaluate( context, w, "mystring", s ); if( logString == null) { fail( "NullSetEventHandler test 1"); } /* * finally, we test a method exception event - we do this * by putting this class in the context, and calling * a method that does nothing but throw an exception. * we use a little switch to turn the event handling * on and off * * Note also how the reference insertion process * happens as well */ exceptionSwitch = true; context.put("this", this ); s = " $this.throwException()"; w = new StringWriter(); try { Velocity.evaluate( context, w, "mystring", s ); } catch( MethodInvocationException mee ) { fail("MethodExceptionEvent test 1"); } catch( Exception e ) { fail("MethodExceptionEvent test 1"); } /* * now, we turn the switch off, and we can see that the * exception will propgate all the way up here, and * wil be caught by the catch() block below */ exceptionSwitch = false; s = " $this.throwException()"; w = new StringWriter(); try { Velocity.evaluate( context, w, "mystring", s ); fail("MethodExceptionEvent test 2"); } catch( MethodInvocationException mee ) { /* * correct - should land here... */ } catch( Exception e ) { fail("MethodExceptionEvent test 2"); } } catch( ParseErrorException pee ) { fail("ParseErrorException" + pee); } catch( MethodInvocationException mee ) { fail("MethodInvocationException" + mee); } catch( Exception e ) { fail("Exception" + e); } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/59780514f566344db5c57333d6182e2f5f040af7/EventHandlingTestCase.java/buggy/src/java/org/apache/velocity/test/EventHandlingTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1832,
565,
288,
3639,
1748,
1850,
380,
225,
14557,
1221,
279,
1772,
471,
527,
326,
871,
5926,
313,
350,
908,
540,
1195,
7734,
24561,
1042,
3443,
273,
394,
24561,
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,
377,
1071,
918,
1086,
4709,
1832,
565,
288,
3639,
1748,
1850,
380,
225,
14557,
1221,
279,
1772,
471,
527,
326,
871,
5926,
313,
350,
908,
540,
1195,
7734,
24561,
1042,
3443,
273,
394,
24561,
10... | |
return getConstant((NODE)rubyFrame.getCbase(), (RubyId)node.nd_vid(), self); | return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = (RubyBoolean)eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyBoolean)((RubyArray)obj).entry(i)).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head())).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyBoolean eqq = (RubyBoolean)((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj)).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.rubyScope.setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (rubyFrame.getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = rubyFrame.getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = rubyFrame.getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; ruby.rubyScope.push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); rubyFrame.setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().rubyScope.setLocalVars(vars); getRuby().rubyScope.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.rubyScope.pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyBoolean val = (RubyBoolean)recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, rval); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = (RubyBoolean)recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = (RubyBoolean)recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = (RubyBoolean)eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = (RubyBoolean)eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().rubyScope.setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().rubyScope.getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)rubyFrame.getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.rubyScope.getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.rubyScope.setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (rubyFrame.getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); NODE body = ruby_class.searchMethod((RubyId)node.nd_mid()); RubyObject origin = ruby_class.getMethodOrigin((RubyId)node.nd_mid()); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (scope_vmode == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
5507,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
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,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
5507,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
446,
3... |
list = new ArrayList(nsArray.length); | list = new ArrayList(namespaces.size()); | public Collection getAllNamespaces(Object ns) { if (ns == null || !(ns instanceof Namespace)) { return new ArrayList(); } Collection namespaces = ((Namespace) ns).getOwnedElement(); // the list of namespaces to return List list = Collections.EMPTY_LIST; // if there are no owned elements then return empty list if (namespaces == Collections.EMPTY_LIST || namespaces.size() == 0) { return Collections.EMPTY_LIST; } // work with an array instead of iterator. Object[] nsArray = namespaces.toArray(); for (int i = 0; i < nsArray.length; i++) { Object o = nsArray[i]; if (o instanceof Namespace) { // only build a namepace if needed, with if (list == Collections.EMPTY_LIST) { list = new ArrayList(nsArray.length); } list.add(o); Collection namespaces1 = getAllNamespaces(o); // only add all if there are some to add. if (namespaces1 != Collections.EMPTY_LIST && namespaces1.size() > 0) { list.addAll(namespaces1); } } } return list; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/763a03f38f2c72064440c3c169823c3b0ca4c2c7/ModelManagementHelperMDRImpl.java/buggy/src/model-mdr/src/org/argouml/model/mdr/ModelManagementHelperMDRImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
5514,
13180,
12,
921,
3153,
13,
288,
3639,
309,
261,
2387,
422,
446,
747,
401,
12,
2387,
1276,
6005,
3719,
288,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
2200,
7728,
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,
1071,
2200,
5514,
13180,
12,
921,
3153,
13,
288,
3639,
309,
261,
2387,
422,
446,
747,
401,
12,
2387,
1276,
6005,
3719,
288,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
2200,
7728,
273,
... |
public RubyNumeric op_invert() { | public IRubyObject op_invert() { | public RubyNumeric op_invert() { return bigNorm(getRuntime(), getValue().not()); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
267,
1097,
1435,
288,
3639,
327,
5446,
14624,
12,
588,
5576,
9334,
2366,
7675,
902,
10663,
565,
289,
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,
0,
0,
0,
0,
0,
0,
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,
15908,
10340,
921,
1061,
67,
267,
1097,
1435,
288,
3639,
327,
5446,
14624,
12,
588,
5576,
9334,
2366,
7675,
902,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
MetaClass metaClass = type.newSingletonClass(parentModule); | MetaClass newMetaClass = type.newSingletonClass(parentModule); | public MetaClass makeMetaClass(RubyClass type, RubyModule parentModule) { MetaClass metaClass = type.newSingletonClass(parentModule); if (!isNil()) { setMetaClass(metaClass); } metaClass.attachToObject(this); return metaClass; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyObject.java/clean/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6565,
797,
1221,
2781,
797,
12,
54,
10340,
797,
618,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
6565,
797,
2191,
797,
273,
618,
18,
2704,
19571,
797,
12,
2938,
3120,
1769,
9506,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6565,
797,
1221,
2781,
797,
12,
54,
10340,
797,
618,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
6565,
797,
2191,
797,
273,
618,
18,
2704,
19571,
797,
12,
2938,
3120,
1769,
9506,
2... |
memento.putString( TAG_COMMAND_ID, imageBindingDefinition.getCommandId()); memento.putString( TAG_IMAGE_STYLE, imageBindingDefinition.getImageStyle()); memento.putString(TAG_IMAGE_URI, imageBindingDefinition.getImageUri()); memento.putString(TAG_LOCALE, imageBindingDefinition.getLocale()); memento.putString(TAG_PLATFORM, imageBindingDefinition.getPlatform()); memento.putString(TAG_PLUGIN_ID, imageBindingDefinition.getPluginId()); } | memento .putString(TAG_COMMAND_ID, imageBindingDefinition .getCommandId()); memento.putString(TAG_IMAGE_STYLE, imageBindingDefinition .getImageStyle()); memento.putString(TAG_IMAGE_URI, imageBindingDefinition.getImageUri()); memento.putString(TAG_LOCALE, imageBindingDefinition.getLocale()); memento.putString(TAG_PLATFORM, imageBindingDefinition.getPlatform()); memento.putString(TAG_PLUGIN_ID, imageBindingDefinition.getPluginId()); } | static void writeImageBindingDefinition( IMemento memento, ImageBindingDefinition imageBindingDefinition) { if (memento == null || imageBindingDefinition == null) throw new NullPointerException(); memento.putString( TAG_COMMAND_ID, imageBindingDefinition.getCommandId()); memento.putString( TAG_IMAGE_STYLE, imageBindingDefinition.getImageStyle()); memento.putString(TAG_IMAGE_URI, imageBindingDefinition.getImageUri()); memento.putString(TAG_LOCALE, imageBindingDefinition.getLocale()); memento.putString(TAG_PLATFORM, imageBindingDefinition.getPlatform()); memento.putString(TAG_PLUGIN_ID, imageBindingDefinition.getPluginId()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/Persistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Persistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1045,
2040,
5250,
1852,
12,
202,
202,
3445,
820,
83,
312,
820,
83,
16,
202,
202,
2040,
5250,
1852,
1316,
5250,
1852,
13,
288,
202,
202,
430,
261,
81,
820,
83,
422,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1045,
2040,
5250,
1852,
12,
202,
202,
3445,
820,
83,
312,
820,
83,
16,
202,
202,
2040,
5250,
1852,
1316,
5250,
1852,
13,
288,
202,
202,
430,
261,
81,
820,
83,
422,
446... |
VM.shutdown(VM.exitStatusMiscTrouble); | VM.shutdown(VM.EXIT_STATUS_MISC_TROUBLE); | public void activate() throws UninterruptiblePragma { if (active == true) { VM.sysWriteln("***VM_TraceWriter.activate() active == true! PID ", ((VM_TraceWriter)this).getPid(),"***"); VM.shutdown(VM.exitStatusMiscTrouble); } if(VM_HardwarePerformanceMonitors.verbose>=2)VM.sysWriteln("VM_TraceWriter.activate()"); active = true; VM_Thread org = tq.dequeue(); if (VM.VerifyAssertions) VM._assert(org != null); org.schedule(); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/d6068c5ba70e6ee40bffe9c49b0e352cd82ebe7e/VM_TraceWriter.java/clean/rvm/src/vm/HPM/VM_TraceWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10235,
1435,
1216,
1351,
31847,
1523,
2050,
9454,
282,
288,
565,
309,
261,
3535,
422,
638,
13,
288,
1377,
8251,
18,
9499,
4913,
292,
82,
2932,
14465,
7397,
67,
3448,
2289,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10235,
1435,
1216,
1351,
31847,
1523,
2050,
9454,
282,
288,
565,
309,
261,
3535,
422,
638,
13,
288,
1377,
8251,
18,
9499,
4913,
292,
82,
2932,
14465,
7397,
67,
3448,
2289,
18,
... |
public void handleFiles(List files) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.newDocument(); Element overviewRoot = Util.addChildElement(doc, "overview-frame", null); Iterator iter = files.iterator(); while (iter.hasNext()) { File file = (File) iter.next(); if (!file.exists() || !file.canRead()) { continue; } Document xmlDoc = handleFile(file); if (xmlDoc != null) { String shortname = Util.getElementValue( xmlDoc.getDocumentElement(), "body/taglib/shortname"); Util.addChildElement(overviewRoot, "shortname", shortname); File reportHtml = new File(destdir, shortname + "-report.html"); Source xml = new DOMSource(xmlDoc); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/taglib-report.xsl")); Result out = new StreamResult(reportHtml); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); } } Source xml = new DOMSource(overviewRoot); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/index.xsl")); Result out = new StreamResult(new File(destdir, "index.html")); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/overview-frame.xsl")); out = new StreamResult(new File(destdir, "overview-frame.html")); t = tf.newTransformer(xsl); t.transform(xml, out); Util.copyFile( "/resources/taglibreport/stylesheet.css", new File(destdir, "stylesheet.css")); Util.copyFile( "/resources/taglibreport/xbPositionableElement.js", new File(destdir, "xbPositionableElement.js")); } catch (Exception e) { e.printStackTrace(); } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/6c6a574b8da6a8f7989e99ea78e4db5cb63abe6b/TaglibReport.java/buggy/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
... | ||
if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } | astFactory.addASTChild(currentAST, returnAST); | public final void branchStatement() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST branchStatement_AST = null; switch ( LA(1)) { case LITERAL_return: { AST tmp181_AST = null; if (inputState.guessing==0) { tmp181_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp181_AST); } match(LITERAL_return); { switch ( LA(1)) { case IDENT: case LBRACK: case LPAREN: case LITERAL_super: case LCURLY: case LITERAL_this: case STRING_LITERAL: case PLUS: case MINUS: case INC: case DEC: case BNOT: case LNOT: case DOLLAR: case STRING_CTOR_START: case LITERAL_new: case LITERAL_true: case LITERAL_false: case LITERAL_null: case NUM_INT: case NUM_FLOAT: case NUM_LONG: case NUM_DOUBLE: case NUM_BIG_INT: case NUM_BIG_DECIMAL: { expression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } case EOF: case RBRACK: case COMMA: case RPAREN: case RCURLY: case SEMI: case NLS: case LITERAL_default: case LITERAL_else: case LITERAL_case: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { branchStatement_AST = (AST)currentAST.root; } break; } case LITERAL_break: case LITERAL_continue: { { switch ( LA(1)) { case LITERAL_break: { AST tmp182_AST = null; if (inputState.guessing==0) { tmp182_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp182_AST); } match(LITERAL_break); break; } case LITERAL_continue: { AST tmp183_AST = null; if (inputState.guessing==0) { tmp183_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp183_AST); } match(LITERAL_continue); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { if ((LA(1)==IDENT) && (LA(2)==COLON) && (_tokenSet_102.member(LA(3)))) { statementLabelPrefix(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } } else if ((_tokenSet_102.member(LA(1))) && (_tokenSet_17.member(LA(2))) && (_tokenSet_5.member(LA(3)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } { switch ( LA(1)) { case IDENT: case LBRACK: case LPAREN: case LITERAL_super: case LCURLY: case LITERAL_this: case STRING_LITERAL: case PLUS: case MINUS: case INC: case DEC: case BNOT: case LNOT: case DOLLAR: case STRING_CTOR_START: case LITERAL_new: case LITERAL_true: case LITERAL_false: case LITERAL_null: case NUM_INT: case NUM_FLOAT: case NUM_LONG: case NUM_DOUBLE: case NUM_BIG_INT: case NUM_BIG_DECIMAL: { expression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } case EOF: case RBRACK: case COMMA: case RPAREN: case RCURLY: case SEMI: case NLS: case LITERAL_default: case LITERAL_else: case LITERAL_case: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { branchStatement_AST = (AST)currentAST.root; } break; } case LITERAL_throw: { AST tmp184_AST = null; if (inputState.guessing==0) { tmp184_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp184_AST); } match(LITERAL_throw); expression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } if ( inputState.guessing==0 ) { branchStatement_AST = (AST)currentAST.root; } break; } case LITERAL_assert: { AST tmp185_AST = null; if (inputState.guessing==0) { tmp185_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp185_AST); } match(LITERAL_assert); expression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } { if ((LA(1)==COMMA) && (_tokenSet_18.member(LA(2))) && (_tokenSet_16.member(LA(3)))) { match(COMMA); expression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } } else if ((_tokenSet_103.member(LA(1))) && (_tokenSet_17.member(LA(2))) && (_tokenSet_5.member(LA(3)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } if ( inputState.guessing==0 ) { branchStatement_AST = (AST)currentAST.root; } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = branchStatement_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3803,
3406,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3803,
3406,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9... |
NcbiGeneLoader loader = new NcbiGeneLoader(persisterHelper); | NcbiGeneLoader loader = new NcbiGeneLoader( persisterHelper ); | public void testGeneLoader() throws Exception { GeneService geneService = ( GeneService ) getBean( "geneService" ); NcbiGeneLoader loader = new NcbiGeneLoader(persisterHelper); String geneInfoTestFile = "/gemma-core/src/test/resources/data/loader/genome/gene/gene_info.sample.gz"; String gene2AccTestFile = "/gemma-core/src/test/resources/data/loader/genome/gene/gene2accession.sample.gz"; // threaded load String basePath = ConfigUtils.getString( "gemma.home" ); loader.load( basePath + geneInfoTestFile, basePath + gene2AccTestFile ); // wait until the loader is done. while (!loader.isLoaderDone()) { Thread.sleep( 100 ); } // loader is done. // check if it loaded 100 elements to the database log.debug( "Loader done with number of elements: " + loader.getLoadedGeneCount() ); assertTrue(loader.getLoadedGeneCount() == 100); // grab one gene and check its information // (depends on information in gene_info and gene2accession file // gene_info Collection<Gene> geneCollection = geneService.findByOfficialName( "orf31" ); Iterator<Gene> geneIterator = geneCollection.iterator(); Gene g = geneIterator.next(); Collection<GeneProduct> products = g.getProducts(); Collection<String> expectedAccessions = new ArrayList<String>(); Collection<String> hasAccessions = new ArrayList<String>(); expectedAccessions.add( "AAF29803.1" ); expectedAccessions.add( "NP_862654.1" ); for ( GeneProduct product : products ) { Collection<DatabaseEntry> accessions = product.getAccessions(); for ( DatabaseEntry de : accessions ) { String accession = de.getAccession(); String accVersion = de.getAccessionVersion(); hasAccessions.add( accession + "." + accVersion ); log.debug( accession + "." + accVersion ); } } assertTrue(hasAccessions.containsAll( expectedAccessions )); Taxon t = g.getTaxon(); assertTrue(t.getNcbiId() == 139); assertTrue(g.getNcbiId().equalsIgnoreCase( "1343074" )); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/71aadd109392fe18e3f729a558caa5042ec8f633/NCBIGeneIntegrationTest.java/clean/gemma-core/src/test/java/ubic/gemma/loader/genome/gene/ncbi/NCBIGeneIntegrationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
24442,
2886,
1435,
225,
1216,
1185,
288,
3639,
611,
4009,
1179,
7529,
1179,
273,
261,
611,
4009,
1179,
262,
16485,
12,
315,
11857,
1179,
6,
11272,
3639,
423,
7358,
77,
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,
377,
1071,
918,
1842,
24442,
2886,
1435,
225,
1216,
1185,
288,
3639,
611,
4009,
1179,
7529,
1179,
273,
261,
611,
4009,
1179,
262,
16485,
12,
315,
11857,
1179,
6,
11272,
3639,
423,
7358,
77,
24... |
public byte getByte (int parameterIndex) throws SQLException { } | public byte getByte(int parameterIndex) throws SQLException { return 0; } | public byte getByte (int parameterIndex) throws SQLException { // XXX-Not Implemented } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/6a061da272f04e1463864065f87f1f3fd61d6162/CallableStatement.java/buggy/src/interfaces/jdbc/postgresql/CallableStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
20999,
261,
474,
25412,
13,
1216,
6483,
202,
95,
202,
202,
759,
11329,
17,
1248,
18788,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
20999,
261,
474,
25412,
13,
1216,
6483,
202,
95,
202,
202,
759,
11329,
17,
1248,
18788,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
PerspectiveDescriptor desc = (PerspectiveDescriptor) dlg.getPersp(); if (desc == null) { | PerspectiveDescriptor newDesc = (PerspectiveDescriptor) dlg.getPersp(); if (newDesc == null) { | public void saveNonSingleton() { // Get reg. PerspectiveRegistry reg = (PerspectiveRegistry) WorkbenchPlugin .getDefault().getPerspectiveRegistry(); // Get persp name. SavePerspectiveDialog dlg = new SavePerspectiveDialog(workbenchWindow .getShell(), reg); IPerspectiveDescriptor description = null; IWorkbenchPage page = workbenchWindow.getActivePage(); if (page != null) description = reg.findPerspectiveWithId(page.getPerspective() .getId()); dlg.setInitialSelection(description); if (dlg.open() != IDialogConstants.OK_ID) { return; } // Create descriptor. PerspectiveDescriptor desc = (PerspectiveDescriptor) dlg.getPersp(); if (desc == null) { String name = dlg.getPerspName(); desc = reg.createPerspective(name, (PerspectiveDescriptor) description); if (desc == null) { MessageDialog.openError(dlg.getShell(), WorkbenchMessages .getString("SavePerspective.errorTitle"), //$NON-NLS-1$ WorkbenchMessages .getString("SavePerspective.errorMessage")); //$NON-NLS-1$ return; } } // Save state. if (page != null) { page.savePerspectiveAs(desc); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/660c5f4b867684b9c7bc8efe0a15a9355dd423b7/SavePerspectiveAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SavePerspectiveAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
3989,
19571,
1435,
288,
3639,
368,
968,
960,
18,
3639,
453,
414,
16772,
4243,
960,
273,
261,
14781,
16772,
4243,
13,
4147,
22144,
3773,
7734,
263,
588,
1868,
7675,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
3989,
19571,
1435,
288,
3639,
368,
968,
960,
18,
3639,
453,
414,
16772,
4243,
960,
273,
261,
14781,
16772,
4243,
13,
4147,
22144,
3773,
7734,
263,
588,
1868,
7675,
588,
1... |
String notation, Augmentations augs) | String baseSystemId, String notation, Augmentations augs) | public void unparsedEntityDecl(String name, String publicId, String systemId, String notation, Augmentations augs) throws XNIException { // internal subset string if (fInternalSubset != null && !fInDTDExternalSubset) { fInternalSubset.append("<!ENTITY "); fInternalSubset.append(name); fInternalSubset.append(' '); if (publicId != null) { fInternalSubset.append("PUBLIC '"); fInternalSubset.append(publicId); if (systemId != null) { fInternalSubset.append("' '"); fInternalSubset.append(systemId); } } else { fInternalSubset.append("SYSTEM '"); fInternalSubset.append(systemId); } fInternalSubset.append("' NDATA "); fInternalSubset.append(notation); fInternalSubset.append(">\n"); } // NOTE: We only know how to create these nodes for the Xerces // DOM implementation because DOM Level 2 does not specify // that functionality. -Ac // create full node if (fDocumentType != null) { NamedNodeMap entities = fDocumentType.getEntities(); EntityImpl entity = (EntityImpl)entities.getNamedItem(name); if (entity == null) { entity = (EntityImpl)fDocumentImpl.createEntity(name); entity.setPublicId(publicId); entity.setSystemId(systemId); entity.setNotationName(notation); entities.setNamedItem(entity); } } // create deferred node if (fDocumentTypeIndex != -1) { boolean found = false; int nodeIndex = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (nodeIndex != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(nodeIndex, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(nodeIndex, false); if (nodeName.equals(name)) { found = true; break; } } nodeIndex = fDeferredDocumentImpl.getRealPrevSibling(nodeIndex, false); } if (!found) { int entityIndex = fDeferredDocumentImpl.createDeferredEntity( name, publicId, systemId, notation); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, entityIndex); } } } // unparsedEntityDecl(String,String,String,String) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/bda39ebfdde5204af457e868d6a2908461900e9f/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27810,
1943,
3456,
12,
780,
508,
16,
4766,
565,
514,
1071,
548,
16,
514,
30083,
16,
4766,
565,
514,
1026,
3163,
548,
16,
514,
12155,
16,
432,
14870,
1012,
279,
9024,
13,
540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27810,
1943,
3456,
12,
780,
508,
16,
4766,
565,
514,
1071,
548,
16,
514,
30083,
16,
4766,
565,
514,
1026,
3163,
548,
16,
514,
12155,
16,
432,
14870,
1012,
279,
9024,
13,
540,... |
statement.getQueryTimeout(), statement.getMaxRows(), true); | statement.getQueryTimeout(), statement.getMaxRows(), statement.getMaxFieldSize(), true); | private void cursorCreate(String sql, String procName, ParamInfo[] parameters) throws SQLException { // boolean isSelect = false; SQLWarning warning = null; // // Validate the SQL statement to ensure we have a select. // if (resultSetType != ResultSet.TYPE_FORWARD_ONLY || concurrency == ResultSet.CONCUR_UPDATABLE || cursorName != null) { // // We are going to need access to a SELECT statement for // this to work. Reparse the SQL now and check. // ArrayList params = new ArrayList(); String tmp[] = new SQLParser(sql, params, (ConnectionJDBC2)statement.getConnection()).parse(true); if (tmp[2].equals("select") && tmp[3] != null && tmp[3].length() > 0) { // OK We have a select with at least one table. tableName = tmp[3]; isSelect = true; } else { // No good we can't update and we can't declare a cursor cursorName = null; if (concurrency == ResultSet.CONCUR_UPDATABLE) { concurrency = ResultSet.CONCUR_READ_ONLY; warning = new SQLWarning( Messages.get("warning.cursordowngraded", "CONCUR_READ_ONLY"), "01000"); } if (resultSetType == ResultSet.TYPE_SCROLL_SENSITIVE) { resultSetType = ResultSet.TYPE_SCROLL_INSENSITIVE; SQLWarning warning2 = new SQLWarning( Messages.get("warning.cursordowngraded", "TYPE_SCROLL_INSENSITIVE"), "01000"); if (warning != null) { warning.setNextWarning(warning2); } else { warning = warning2; } } } } // // If a cursor name is specified we try and declare a conventional cursor // if (cursorName != null) { // // We need to substitute any parameters now as the prepended DECLARE CURSOR // will throw the parameter positions off. // if (parameters != null && parameters.length > 0) { sql = Support.substituteParameters(sql, parameters, statement.getTds().getTdsVersion()); } StringBuffer cursorSQL = new StringBuffer(sql.length() + cursorName.length()+ 128); cursorSQL.append("DECLARE ").append(cursorName).append(" CURSOR FOR ").append(sql); cursorTds.executeSQL(cursorSQL.toString(), procName, parameters, false, statement.getQueryTimeout(), statement.getMaxRows(), true); cursorTds.clearResponseQueue(); cursorSQL.setLength(0); cursorSQL.append("\r\nOPEN ").append(cursorName); if (fetchSize > 1 && isSybase) { cursorSQL.append("\r\nSET CURSOR ROWS ").append(fetchSize); cursorSQL.append(" FOR ").append(cursorName); } cursorSQL.append("\r\nFETCH ").append(cursorName); // // OK Declare cursor, open it and fetch first (fetchSize) rows. // cursorTds.executeSQL(cursorSQL.toString(), null, null, false, statement.getQueryTimeout(), statement.getMaxRows(), true); while (!cursorTds.getMoreResults() && !cursorTds.isEndOfResponse()); if (!cursorTds.isResultSet()) { throw new SQLException(Messages.get("error.statement.noresult"), "24000"); } columns = cursorTds.getColumns(); columnCount = getColumnCount(columns); } else { // // Open a memory cached scrollable or forward only possibly updateable cursor // if (isSelect && (concurrency == ResultSet.CONCUR_UPDATABLE || resultSetType != ResultSet.TYPE_FORWARD_ONLY)) { // Need to execute SELECT .. FOR BROWSE to get // the MetaData we require for updates etc // OK Should have an SQL select statement // append " FOR BROWSE" to obtain table names // NB. We can't use any jTDS temporary stored proc cursorTds.executeSQL(sql + " FOR BROWSE", null, parameters, false, statement.getQueryTimeout(), statement.getMaxRows(), true); while (!cursorTds.getMoreResults() && !cursorTds.isEndOfResponse()); if (!cursorTds.isResultSet()) { throw new SQLException(Messages.get("error.statement.noresult"), "24000"); } columns = cursorTds.getColumns(); columnCount = getColumnCount(columns); rowData = new ArrayList(INITIAL_ROW_COUNT); // // Load result set into buffer // while (super.next()) { rowData.add(copyRow(currentRow)); } rowsInResult = rowData.size(); initialRowCnt = rowsInResult; pos = POS_BEFORE_FIRST; // // If cursor is built over one table and the table has // key columns then the result set is updateable and / or // can be used as a scroll sensitive result set. // if (!isCursorUpdateable()) { // No so downgrade if (concurrency == ResultSet.CONCUR_UPDATABLE) { concurrency = ResultSet.CONCUR_READ_ONLY; statement.addWarning(new SQLWarning( Messages.get("warning.cursordowngraded", "CONCUR_READ_ONLY"), "01000")); } if (resultSetType == ResultSet.TYPE_SCROLL_SENSITIVE) { resultSetType = ResultSet.TYPE_SCROLL_INSENSITIVE; statement.addWarning(new SQLWarning( Messages.get("warning.cursordowngraded", "TYPE_SCROLL_INSENSITIVE"), "01000")); } } return; } // // Create a read only cursor using direct SQL // cursorTds.executeSQL(sql, procName, parameters, false, statement.getQueryTimeout(), statement.getMaxRows(), true); while (!cursorTds.getMoreResults() && !cursorTds.isEndOfResponse()); if (!cursorTds.isResultSet()) { throw new SQLException(Messages.get("error.statement.noresult"), "24000"); } columns = cursorTds.getColumns(); columnCount = getColumnCount(columns); rowData = new ArrayList(INITIAL_ROW_COUNT); // // Load result set into buffer // while (super.next()) { rowData.add(copyRow(currentRow)); } rowsInResult = rowData.size(); initialRowCnt = rowsInResult; pos = POS_BEFORE_FIRST; if (warning != null) { statement.addWarning(warning); } } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/76d8968e7ce2feb24b67a175f377a6060baba31e/CachedResultSet.java/clean/src/main/net/sourceforge/jtds/jdbc/CachedResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3347,
1684,
12,
780,
1847,
16,
17311,
514,
5418,
461,
16,
17311,
3014,
966,
8526,
1472,
13,
5411,
1216,
6483,
288,
3639,
368,
3639,
1250,
353,
3391,
273,
629,
31,
3639,
3063,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3347,
1684,
12,
780,
1847,
16,
17311,
514,
5418,
461,
16,
17311,
3014,
966,
8526,
1472,
13,
5411,
1216,
6483,
288,
3639,
368,
3639,
1250,
353,
3391,
273,
629,
31,
3639,
3063,
... |
Font wizardFont = parent.getFont(); | public void createControl(Composite parent) { initializeDialogUnits(parent); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); composite.setFont(parent.getFont()); createTransferArea(composite); restoreWidgetValues(); // updateWidgetEnablements(); // can not finish initially, but don't want to start with an error // message either if (!validDestination()) setPageComplete(false); setPreferenceTransfers(); setControl(composite); giveFocusToDestination(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b353c738722dfcaf60a18a8b3be623b8b66f8fe2/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
918,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
752,
3367,
12,
9400,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
918,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
752,
3367,
12,
9400,
5711,
24204,
5711,
273,
982,
18,
588,
5711,
5621,
... | |
return; | public void activateLogging() throws NativeLibException { return; } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/98333eede78b9ac1131e72aef96a4d63b6ae031f/RegistryHandler.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/util/os/RegistryHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10235,
7735,
1435,
1216,
16717,
5664,
503,
565,
288,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10235,
7735,
1435,
1216,
16717,
5664,
503,
565,
288,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
fDocumentHandler.characters(fStringBuffer, fAugmentations); | fDocumentHandler.characters(fStringBuffer, null); | protected boolean scanCDATASection(boolean complete) throws IOException, XNIException { // call handler if (fDocumentHandler != null) { fDocumentHandler.startCDATA(fAugmentations); } while (true) { if (!fEntityScanner.scanData("]]", fString)) { if (fDocumentHandler != null && fString.length > 0) { fDocumentHandler.characters(fString, fAugmentations); } int brackets = 2; while (fEntityScanner.skipChar(']')) { brackets++; } if (fDocumentHandler != null && brackets > 2) { fStringBuffer.clear(); for (int i = 2; i < brackets; i++) { fStringBuffer.append(']'); } fDocumentHandler.characters(fStringBuffer, fAugmentations); } if (fEntityScanner.skipChar('>')) { break; } if (fDocumentHandler != null) { fStringBuffer.clear(); fStringBuffer.append("]]"); fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { if (fDocumentHandler != null) { fDocumentHandler.characters(fString, fAugmentations); } int c = fEntityScanner.peekChar(); if (c != -1 && XMLChar.isInvalid(c)) { if (XMLChar.isHighSurrogate(c)) { fStringBuffer.clear(); scanSurrogates(fStringBuffer); if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { reportFatalError("InvalidCharInCDSect", new Object[]{Integer.toString(c,16)}); fEntityScanner.scanChar(); } } } } fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.endCDATA(fAugmentations); } return true; } // scanCDATASection(boolean):boolean | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0c89615b0bdfe565e769952ce9d81b62b7cd076a/XMLDocumentFragmentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
... |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); chainCanvas = new ChainPaletteCanvas(dataManager); chainCanvas.setContents(dataManager.getChains()); long start; if (ChainBuilderAgent.DEBUG) start = System.currentTimeMillis(); chainCanvas.layoutContents(); if (ChainBuilderAgent.DEBUG) { long end; end = System.currentTimeMillis()-start; System.err.println("time to layout chains is "+end); } chainCanvas.completeInitialization(); setSize(new Dimension(ModulePaletteWindow.SIDE,ModulePaletteWindow.SIDE)); content.add(chainCanvas); addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { if (chainCanvas != null) chainCanvas.scaleToResize(); } }); } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ChainPaletteWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
43,
5370,
1435,
288,
202,
202,
2170,
913,
273,
5154,
8485,
5621,
202,
202,
1745,
18,
542,
3744,
12,
2704,
30814,
10663,
9506,
202,
5639,
12971,
273,
394,
7824,
25863,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
43,
5370,
1435,
288,
202,
202,
2170,
913,
273,
5154,
8485,
5621,
202,
202,
1745,
18,
542,
3744,
12,
2704,
30814,
10663,
9506,
202,
5639,
12971,
273,
394,
7824,
25863,... |
} | private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\004': // ^D case '\032': // ^Z case -1: //end of script. return 0; // white spaces case ' ': case '\t': case '\f': case '\r': case '\013': // '\v' space_seen = true; continue retry; case '#': // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n': switch (ph.getLexState()) { case LexState.EXPR_BEG: case LexState.EXPR_FNAME: case LexState.EXPR_DOT: continue retry; default: break; } ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*': if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=': if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (; ; ) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<': c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"': return parse_string(c, c, c); case '`': if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'': return parse_qstring(c, 0); case '?': if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.m_newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&': if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return start_num(c); case ']': case '}': ph.setLexState(LexState.EXPR_END); return c; case ')': if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':': c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/': if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',': case ';': // ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return c; case '~': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(': if (cond_nest > 0) { cond_stack = (cond_stack << 1 ) | 0; } // ph.setCommandStart(true); if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; } } ph.setLexState(LexState.EXPR_BEG); return c; case '[': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{': if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; } } ph.setLexState(LexState.EXPR_BEG); return c; case '\\': c = nextc(); if (c == '\n') { space_seen = true; continue retry; // skip \\n } pushback(c); return '\\'; case '%': quotation : for (; ; ) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q': return parse_string('"', term, paren); case 'q': return parse_qstring(term, paren); case 'w': return parse_quotedwords(term, paren); case 'x': return parse_string('`', term, paren); case 'r': return parse_regx(term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$': ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_': // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~': // $~: match-data ph.local_cnt(c); // fall through case '*': // $*: argv case '$': // $$: pid case '?': // $?: last status case '!': // $!: error string case '@': // $@: error position case '/': // $/: input record separator case '\\':// $\: output record separator case ';': // $;: field separator case ',': // $,: output field separator case '.': // $.: last read line number case '=': // $=: ignorecase case ':': // $:: load path case '<': // $<: reading filename case '>': // $>: default output handle case '\"':// $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); return Token.tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); /* * xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&': // $&: last match case '`': // $`: string before last match case '\'':// $': string after last match case '+': // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default: if (!is_identchar(c)) { pushback(c); return '$'; } case '0': tokadd('$'); } break; case '@': c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default: if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * c = nextc(); * tokadd(c); * } * } */ c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$': ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@': ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default: if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P() && state != LexState.EXPR_CMDARG) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else { ph.setLexState(LexState.EXPR_ARG); } } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = /* last_id = */ ruby.intern(tok()); //XXX really overwrite last_id? return result; } } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/clean/org/jruby/parser/DefaultRubyParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
1250,
3476,
67,
15156,
273,
629,
31,
3639,
1250,
1797,
67,
2019,
31,
3639,
5323,
2121,
5323,
31,
3639,
1797,
67,
2019,
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,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
1250,
3476,
67,
15156,
273,
629,
31,
3639,
1250,
1797,
67,
2019,
31,
3639,
5323,
2121,
5323,
31,
3639,
1797,
67,
2019,
273... | |
return null; | } if (srefs == null || srefs.length == 0) { try { srefs = c_BundleContext.getServiceReferences( "org.osgi.service.cm.ManagedServiceFactory", "(" + Constants.SERVICE_PID + "=" + pid + ")"); } catch (Exception ex) { return null; } | public static Bundle findBundle(String pid) { final ServiceReference sr = c_BundleContext.getServiceReference(pid); if (sr == null) { //try to find managed factories with pid as filter ServiceReference[] srefs = null; try { srefs = c_BundleContext.getServiceReferences( "org.osgi.service.cm.ManagedServiceFactory", "("+ Constants.SERVICE_PID + "=" + pid + ")"); } catch (Exception ex) { return null; } if (srefs == null || srefs.length == 0) { return null; } else { return srefs[0].getBundle(); } } return sr.getBundle(); }//findBundle | 23249 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23249/e668e8b1f331ef44e220b5c2af6a8835ae8393f5/Activator.java/buggy/src/java/net/coalevo/manager/impl/Activator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8539,
1104,
3405,
12,
780,
4231,
13,
288,
565,
727,
26755,
9133,
273,
276,
67,
3405,
1042,
18,
588,
1179,
2404,
12,
6610,
1769,
565,
309,
261,
11254,
422,
446,
13,
288,
4202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8539,
1104,
3405,
12,
780,
4231,
13,
288,
565,
727,
26755,
9133,
273,
276,
67,
3405,
1042,
18,
588,
1179,
2404,
12,
6610,
1769,
565,
309,
261,
11254,
422,
446,
13,
288,
4202,... |
public void setUp() throws RuleSetNotFoundException { rule = findRule("controversial", "OnlyOneReturn"); } | public void setUp() { rule = findRule("controversial", "OnlyOneReturn"); } | public void setUp() throws RuleSetNotFoundException { rule = findRule("controversial", "OnlyOneReturn"); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/OnlyOneReturnRuleTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/design/OnlyOneReturnRuleTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
6781,
694,
3990,
288,
3639,
1720,
273,
1104,
2175,
2932,
1213,
303,
2496,
649,
3113,
315,
3386,
3335,
990,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
6781,
694,
3990,
288,
3639,
1720,
273,
1104,
2175,
2932,
1213,
303,
2496,
649,
3113,
315,
3386,
3335,
990,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-... |
this.decl = decl; | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this.decl = decl; this.name = name; this.baseUri = baseUri; this.publicId = publicId; this.systemId = systemId; this.replacementText = replacementText; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/89208158729137f73c8259a059fc5845c4da3e56/EntityReferenceImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/EntityReferenceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
333,
18,
8840,
273,
3496,
31,
333,
18,
8840,
273,
3496,
31,
4750,
2211,
18,
8840,
273,
3496,
31,
3887,
2404,
2828,
12,
2735,
2211,
18,
8840,
273,
3496,
31,
2117,
16,
2211,
18,
8840,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
333,
18,
8840,
273,
3496,
31,
333,
18,
8840,
273,
3496,
31,
4750,
2211,
18,
8840,
273,
3496,
31,
3887,
2404,
2828,
12,
2735,
2211,
18,
8840,
273,
3496,
31,
2117,
16,
2211,
18,
8840,
273,
3... | |
protected static String executeHelp(String mdxCmd) { StringBuffer buf = new StringBuffer(200); String[] tokens = mdxCmd.split("\\s+"); int cmd = UNKNOWN_CMD; if (tokens.length == 1) { buf.append("Commands:"); cmd = ALL_CMD; } else if (tokens.length == 2) { String cmdName = tokens[1]; if (cmdName.equals("help")) { cmd = HELP_CMD; } else if (cmdName.equals("set")) { cmd = SET_CMD; } else if (cmdName.equals("log")) { cmd = LOG_CMD; } else if (cmdName.equals("file")) { cmd = FILE_CMD; } else if (cmdName.equals("list")) { cmd = LIST_CMD; } else if (cmdName.equals("func")) { cmd = FUNC_CMD; } else if (cmdName.equals("param")) { cmd = PARAM_CMD; } else if (cmdName.equals("cube")) { cmd = CUBE_CMD; } else if (cmdName.equals("error")) { cmd = ERROR_CMD; } else if (cmdName.equals("exit")) { cmd = EXIT_CMD; } else { cmd = UNKNOWN_CMD; } } if (cmd == UNKNOWN_CMD) { buf.append("Unknown help command: "); buf.append(mdxCmd); buf.append('\n'); buf.append("Type \"help\" for list of commands"); } if ((cmd & HELP_CMD) != 0) { // help buf.append('\n'); appendIndent(buf, 1); buf.append("help"); buf.append('\n'); appendIndent(buf, 2); buf.append("Prints this text"); } if ((cmd & SET_CMD) != 0) { // set buf.append('\n'); appendSet(buf); } if ((cmd & LOG_CMD) != 0) { // set buf.append('\n'); appendLog(buf); } if ((cmd & FILE_CMD) != 0) { // file buf.append('\n'); appendFile(buf); } if ((cmd & LIST_CMD) != 0) { // list buf.append('\n'); appendList(buf); } if ((cmd & MDX_CMD) != 0) { buf.append('\n'); appendIndent(buf, 1); buf.append("<mdx query> <cr> ( '"); buf.append(EXECUTE_CHAR); buf.append("' | '"); buf.append(CANCEL_CHAR); buf.append("' ) <cr>"); buf.append('\n'); appendIndent(buf, 2); buf.append("Execute or cancel mdx query."); buf.append('\n'); appendIndent(buf, 2); buf.append("An mdx query may span one or more lines."); buf.append('\n'); appendIndent(buf, 2); buf.append("After the last line of the query has been entered,"); buf.append('\n'); appendIndent(buf, 3); buf.append("on the next line a single execute character, '"); buf.append(EXECUTE_CHAR); buf.append("', may be entered"); buf.append('\n'); appendIndent(buf, 3); buf.append("followed by a carriage return."); buf.append('\n'); appendIndent(buf, 3); buf.append("The lone '"); buf.append(EXECUTE_CHAR); buf.append("' informs the interpreter that the query has"); buf.append('\n'); appendIndent(buf, 3); buf.append("has been entered and is ready to execute."); buf.append('\n'); appendIndent(buf, 2); buf.append("At anytime during the entry of a query the cancel"); buf.append('\n'); appendIndent(buf, 3); buf.append("character, '"); buf.append(CANCEL_CHAR); buf.append("', may be entered alone on a line."); buf.append('\n'); appendIndent(buf, 3); buf.append("This removes all of the query text from the"); buf.append('\n'); appendIndent(buf, 3); buf.append("the command interpreter."); buf.append('\n'); appendIndent(buf, 2); buf.append("Queries can also be ended by using a semicolon ';'"); buf.append('\n'); appendIndent(buf, 3); buf.append("at the end of a line."); } if ((cmd & FUNC_CMD) != 0) { buf.append('\n'); appendFunc(buf); } if ((cmd & PARAM_CMD) != 0) { buf.append('\n'); appendParam(buf); } if ((cmd & CUBE_CMD) != 0) { buf.append('\n'); appendCube(buf); } if ((cmd & ERROR_CMD) != 0) { // list buf.append('\n'); appendError(buf); } if (cmd == ALL_CMD) { // reexecute buf.append('\n'); appendIndent(buf, 1); buf.append("= <cr>"); buf.append('\n'); appendIndent(buf, 2); buf.append("Re-Execute mdx query."); } if ((cmd & EXIT_CMD) != 0) { // exit buf.append('\n'); appendExit(buf); } return buf.toString(); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/6bb94617d887d46c85747d7409fa32adc3ccb0c2/CmdRunner.java/clean/src/main/mondrian/tui/CmdRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3845,
780,
8837,
6696,
12,
780,
1264,
92,
5931,
15329,
780,
1892,
4385,
33,
2704,
780,
1892,
12,
6976,
1769,
780,
8526,
7860,
33,
1264,
92,
5931,
18,
4939,
2932,
1695,
87,
15,
8863,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3845,
780,
8837,
6696,
12,
780,
1264,
92,
5931,
15329,
780,
1892,
4385,
33,
2704,
780,
1892,
12,
6976,
1769,
780,
8526,
7860,
33,
1264,
92,
5931,
18,
4939,
2932,
1695,
87,
15,
8863,
47... | ||
public void setFrom( String address ) { if( this.from != null ) { throw new BuildException( "Emails can only be from one address" ); | public void setFrom(String address) { if (this.from != null) { throw new BuildException("Emails can only be from one address"); | public void setFrom( String address ) { if( this.from != null ) { throw new BuildException( "Emails can only be from one address" ); } this.from = new EmailAddress( address ); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/EmailTask.java/clean/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22012,
12,
514,
1758,
262,
565,
288,
3639,
309,
12,
333,
18,
2080,
480,
446,
262,
3639,
288,
5411,
604,
394,
18463,
12,
315,
26614,
848,
1338,
506,
628,
1245,
1758,
6,
11272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22012,
12,
514,
1758,
262,
565,
288,
3639,
309,
12,
333,
18,
2080,
480,
446,
262,
3639,
288,
5411,
604,
394,
18463,
12,
315,
26614,
848,
1338,
506,
628,
1245,
1758,
6,
11272,... |
public void setPlayerName(String playerName) { if(playerName == null) { m_playerLabel.setText("-"); JButton button = new JButton(m_takeAction); button.setMargin(BUTTON_INSETS); m_playerComponent = button; } else { m_playerLabel.setText(playerName); if(playerName.equals(m_messenger.getLocalNode().getName())) { JButton button = new JButton(m_dontTakeAction); button.setMargin(BUTTON_INSETS); m_playerComponent = button; } else { m_playerComponent = new JLabel(""); } } } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/6d4902f6fb4cc244abe3aaada952f389c483c4fe/ClientStartup.java/buggy/triplea/src/games/strategy/engine/framework/ui/ClientStartup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
444,
12148,
461,
12,
780,
7291,
461,
13,
202,
202,
95,
1082,
202,
430,
12,
14872,
461,
422,
446,
13,
1082,
202,
95,
9506,
202,
81,
67,
14872,
2224,
18,
542,
1528,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
12148,
461,
12,
780,
7291,
461,
13,
202,
202,
95,
1082,
202,
430,
12,
14872,
461,
422,
446,
13,
1082,
202,
95,
9506,
202,
81,
67,
14872,
2224,
18,
542,
1528,
2932... | ||
return new Integer(object.trim()); | return new Integer(value.trim()); | public Object convertTo(Class paramType, String object) throws ConversionException { try { if (paramType == Boolean.TYPE || paramType == Boolean.class) { return new Boolean(object.trim()); } else if (paramType == Byte.TYPE || paramType == Byte.class) { if (object.length() == 0) { byte b = 0; return new Byte(b); } return new Byte(object.trim()); } else if (paramType == Short.TYPE || paramType == Short.class) { if (object.length() == 0) { short s = 0; return new Short(s); } return new Short(object.trim()); } else if (paramType == Character.TYPE || paramType == Character.class) { if (object.length() == 1) { return new Character(object.charAt(0)); } else { throw new ConversionException("Can't convert string to single char: '" + object + "'"); } } else if (paramType == Integer.TYPE || paramType == Integer.class) { if (object.length() == 0) { return new Integer(0); } return new Integer(object.trim()); } else if (paramType == Long.TYPE || paramType == Long.class) { if (object.length() == 0) { return new Long(0); } return new Long(object.trim()); } else if (paramType == Float.TYPE || paramType == Float.class) { if (object.length() == 0) { return new Float(0); } return new Float(object.trim()); } else if (paramType == Double.TYPE || paramType == Double.class) { if (object.length() == 0) { return new Double(0); } return new Double(object.trim()); } throw new ConversionException("Non-primitive paramType: "+paramType.getName()); } catch (NumberFormatException ex) { throw new ConversionException("Format error converting " + object + " to " + paramType.getName(), ex); } } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/7547063298291f41840aee0b03582a3f6bc04cd6/PrimitiveConverter.java/clean/java/uk/ltd/getahead/dwr/convert/PrimitiveConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8137,
12,
797,
20781,
16,
514,
733,
13,
1216,
16401,
503,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
891,
559,
422,
3411,
18,
2399,
747,
20781,
422,
3411,
18,
1106,
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,
377,
1071,
1033,
8137,
12,
797,
20781,
16,
514,
733,
13,
1216,
16401,
503,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
891,
559,
422,
3411,
18,
2399,
747,
20781,
422,
3411,
18,
1106,
13,... |
org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); | org.exist.xquery.parser.XQueryAST tmp333_AST = null; tmp333_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp333_AST); | public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 127: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(127); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 139: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(139); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(144); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(145); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 140: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(140); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case VERSION: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(VERSION); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case XQUERY: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(XQUERY); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp428_AST = null; tmp428_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp428_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp429_AST = null; tmp429_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp429_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp430_AST = null; tmp430_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp430_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp431_AST = null; tmp431_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp431_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... |
weapon.name = "Light Particle Projection Cannon"; | weapon.name = "Light PPC"; | private static WeaponType createISLightPPC() { WeaponType weapon = new WeaponType(); weapon.techLevel = TechConstants.T_IS_LEVEL_2; weapon.name = "Light Particle Projection Cannon"; weapon.setInternalName(weapon.name); weapon.addLookupName("ISLightPPC"); weapon.addLookupName("ISLPPC"); weapon.heat = 5; weapon.damage = 5; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = 3; weapon.shortRange = 6; weapon.mediumRange = 12; weapon.longRange = 18; weapon.extremeRange = 24; weapon.waterShortRange = 4; weapon.waterMediumRange = 7; weapon.waterLongRange = 10; weapon.waterExtremeRange = 14; weapon.tonnage = 3.0f; weapon.criticals = 2; weapon.flags |= F_PPC | F_DIRECT_FIRE | F_ENERGY | F_SINGLE_TARGET; // Warning: this BV is unofficial. //FIXME weapon.bv = 88; weapon.setModes(new String[] {"Field Inhibitor ON", "Field Inhibitor OFF"}); weapon.cost = 0; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/36a86fac127cf1abfa95e2192a37eec01f07d6e7/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1660,
28629,
559,
752,
45,
4559,
750,
52,
3513,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
273,
399,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
45,
4559,
750,
52,
3513,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
273,
399,
89... |
if (isWordArrayType() || isCodeArrayType()) { return getArrayElementType(); | VM_TypeReference elem = getArrayElementType(); if (elem.isArrayType()) { return elem.getInnermostElementType(); | public final VM_TypeReference getInnermostElementType() { if (isWordArrayType() || isCodeArrayType()) { return getArrayElementType(); } else { return findOrCreate(classloader, name.parseForInnermostArrayElementDescriptor()); } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/9d6c9081e05cd51e4a00e6331b4995d639eb670e/VM_TypeReference.java/buggy/rvm/src/com/ibm/jikesrvm/classloader/VM_TypeReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
7534,
7854,
82,
28055,
17481,
1435,
288,
565,
309,
261,
291,
3944,
27182,
1435,
747,
353,
1085,
27182,
10756,
288,
1377,
327,
12634,
17481,
5621,
565,
289,
469,
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,
282,
1071,
727,
8251,
67,
7534,
7854,
82,
28055,
17481,
1435,
288,
565,
309,
261,
291,
3944,
27182,
1435,
747,
353,
1085,
27182,
10756,
288,
1377,
327,
12634,
17481,
5621,
565,
289,
469,
288,
... |
fireValueChanged(new TreeSelectionEvent(this, path, true, leadPath, path)); | leadRow = getRow(path); leadIndex = selection.length - 1; fireValueChanged(new TreeSelectionEvent(this, path, true, oldLead, leadPath)); | public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (isSelectionEmpty()) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = path; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.length); } leadPath = path; fireValueChanged(new TreeSelectionEvent(this, path, true, leadPath, path)); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6233,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
16051,
353,
743,
7416,
12,
803,
3719,
202,
202,
95,
1082,
202,
430,
261,
291,
6233,
1921,
10756,
9506,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6233,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
16051,
353,
743,
7416,
12,
803,
3719,
202,
202,
95,
1082,
202,
430,
261,
291,
6233,
1921,
10756,
9506,
202,
... |
public ClientPut getParent() { | public ClientPutter getParent() { | public ClientPut getParent() { return parent; } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/d32229c02576d531c915059f111c468591f30e84/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
5089,
1435,
288,
202,
202,
2463,
982,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
225,
202,
482,
2445,
6426,
5089,
1435,
288,
202,
202,
2463,
982,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return false; | else { return false; } | public boolean canSetProperty(Object object) { if (isSettable) { EditingDomain editingDomain = getEditingDomain(object); if (editingDomain != null) { Resource resource = object instanceof EObject ? ((EObject)object).eResource() : object instanceof Resource ? (Resource)object : null; return resource == null || !editingDomain.isReadOnly(resource); } } return false; } | 11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/2b126b88585fe396ca80e71074ae20794669b716/ItemPropertyDescriptor.java/buggy/plugins/org.eclipse.emf.edit/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
848,
694,
1396,
12,
921,
733,
13,
225,
288,
565,
309,
261,
291,
694,
2121,
13,
565,
288,
1377,
15328,
310,
3748,
15755,
3748,
273,
21221,
310,
3748,
12,
1612,
1769,
1377,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
848,
694,
1396,
12,
921,
733,
13,
225,
288,
565,
309,
261,
291,
694,
2121,
13,
565,
288,
1377,
15328,
310,
3748,
15755,
3748,
273,
21221,
310,
3748,
12,
1612,
1769,
1377,
30... |
description = Messages.getString("problemSeverity.description"); | description = MarkerMessages.problemSeverity_description; | public FieldSeverity() { description = Messages.getString("problemSeverity.description"); //$NON-NLS-1$ } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9fd38ff5015f18d343d054773283a2bca6122227/FieldSeverity.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
21630,
1435,
288,
3639,
2477,
273,
14742,
5058,
18,
18968,
21630,
67,
3384,
31,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
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,
0,
0,
0,
0,
0,
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,
2286,
21630,
1435,
288,
3639,
2477,
273,
14742,
5058,
18,
18968,
21630,
67,
3384,
31,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
private static double internalUTC(double t) { | private static double internalUTC(double t) { | private static double internalUTC(double t) { return t - LocalTZA - DaylightSavingTA(t - LocalTZA); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/ba8f69355a752cc7402f5b559a19be4d84c54e22/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1645,
2713,
11471,
12,
9056,
268,
13,
288,
3639,
327,
268,
300,
3566,
21647,
37,
300,
13735,
5099,
24660,
9833,
12,
88,
300,
3566,
21647,
37,
1769,
565,
289,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1645,
2713,
11471,
12,
9056,
268,
13,
288,
3639,
327,
268,
300,
3566,
21647,
37,
300,
13735,
5099,
24660,
9833,
12,
88,
300,
3566,
21647,
37,
1769,
565,
289,
2,
-100,
-100,
-... |
if (stack != null && !stack.empty()) { request.setAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN, stack.pop()); } | Object previous = (stack != null && !stack.empty()) ? stack.pop() : null; request.setAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN, previous); | protected void restoreActionBean(HttpServletRequest request) { Stack stack = getActionBeanStack(request, false); if (stack != null && !stack.empty()) { request.setAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN, stack.pop()); } } | 9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/ceddc8e8d002e140a60e075fe32c5abfad6680de/DispatcherServlet.java/buggy/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5217,
1803,
3381,
12,
2940,
18572,
590,
13,
288,
3639,
7283,
2110,
273,
12473,
3381,
2624,
12,
2293,
16,
629,
1769,
3639,
309,
261,
3772,
480,
446,
597,
401,
3772,
18,
5531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
1803,
3381,
12,
2940,
18572,
590,
13,
288,
3639,
7283,
2110,
273,
12473,
3381,
2624,
12,
2293,
16,
629,
1769,
3639,
309,
261,
3772,
480,
446,
597,
401,
3772,
18,
5531,
... |
if (new File(outFile).exists()) { | if (fs.exists(outFile)) { | public void merge(String[] inFiles, String outFile) throws IOException { this.inFiles = inFiles; this.outFile = outFile; this.factor = inFiles.length; if (new File(outFile).exists()) { throw new IOException("already exists: " + outFile); } MergeFiles mergeFiles = new MergeFiles(); try { // make a merge pass mergeFiles.run(); // run it } finally { mergeFiles.close(); // close it } } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/ee01fef4b4fb82c7492a4a747793839a4d14cd39/SequenceFile.java/clean/src/java/org/apache/hadoop/io/SequenceFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2691,
12,
780,
8526,
316,
2697,
16,
514,
21651,
13,
1216,
1860,
288,
1377,
333,
18,
267,
2697,
273,
316,
2697,
31,
1377,
333,
18,
659,
812,
273,
21651,
31,
1377,
333,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2691,
12,
780,
8526,
316,
2697,
16,
514,
21651,
13,
1216,
1860,
288,
1377,
333,
18,
267,
2697,
273,
316,
2697,
31,
1377,
333,
18,
659,
812,
273,
21651,
31,
1377,
333,
18,
6... |
SymbolList gcta = DNATools.createDNA("gcta"); SymbolList gctt = DNATools.createDNA("gctt"); | public void testTooShort() throws IllegalSymbolException, IllegalAlphabetException{ SymbolList zero = DNATools.createDNA(""); SymbolList one = DNATools.createDNA("a"); SymbolList five = DNATools.createDNA("aaaaa"); SymbolList agct3 = DNATools.createDNA("agctagctagct"); SymbolList agct = DNATools.createDNA("agct"); SymbolList aggt = DNATools.createDNA("aggt"); SymbolList gcta = DNATools.createDNA("gcta"); SymbolList gctt = DNATools.createDNA("gctt"); MaxMismatchPattern mmp = new MaxMismatchPattern(agct, 0); assertFalse("Zero length string has no matches", mmp.matcher(zero).find()); assertFalse("One length string has no matches", mmp.matcher(one).find()); assertTrue("Four length identical string has a match", mmp.matcher(agct).find()); assertFalse("Four length non-identical string has no match", mmp.matcher(aggt).find()); } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/dc62a0a7cf481c21c3be647214959067a3b98f61/MaxMismatchPatternTest.java/clean/tests/org/biojava/bio/search/MaxMismatchPatternTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10703,
4897,
1435,
225,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
95,
565,
8565,
682,
3634,
273,
463,
11277,
10348,
18,
2640,
8609,
37,
2932,
8863,
565,
8565,
682,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10703,
4897,
1435,
225,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
95,
565,
8565,
682,
3634,
273,
463,
11277,
10348,
18,
2640,
8609,
37,
2932,
8863,
565,
8565,
682,
124... | |
{ if(getRow() <= getMaxRow()) { if(getRow() < getMaxRow()) { setRow(getRow()+1); | { if(getRow() <= getMaxRow()) { if(getRow() < getMaxRow()) { setRow(getRow()+1); } setAtBegining(false); try { setAllVariable(); table.changeSelection(getRow(), 2, false, false); } catch(ArrayIndexOutOfBoundsException aioobe) { setRow(getRow() - 1); System.out.println("problem"); } if(getRow() == getMaxRow()) { setAtEnd(true); } | public void mOneRowPlus() //- { if(getRow() <= getMaxRow()) { if(getRow() < getMaxRow()) { setRow(getRow()+1); } setAtBegining(false); try { setAllVariable(); table.changeSelection(getRow(),2,false,false); // za predvijvane na selektiraniq red nazad } catch(ArrayIndexOutOfBoundsException aioobe) { setRow(getRow() - 1); System.out.println("problem"); } if(getRow() == getMaxRow()) { setAtEnd(true); } } } | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/6b93b6232e6573892b4ffefd25f8b5629b857843/FrmNaseleniMesta.java/buggy/src/nom/FrmNaseleniMesta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
312,
3335,
1999,
13207,
1435,
368,
17,
288,
1377,
309,
12,
588,
1999,
1435,
1648,
7288,
1999,
10756,
1377,
288,
3639,
309,
12,
588,
1999,
1435,
411,
7288,
1999,
10756,
3639,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
312,
3335,
1999,
13207,
1435,
368,
17,
288,
1377,
309,
12,
588,
1999,
1435,
1648,
7288,
1999,
10756,
1377,
288,
3639,
309,
12,
588,
1999,
1435,
411,
7288,
1999,
10756,
3639,
28... |
if (isNullable(from)) { return true; } | boolean isNullable(QFrame frame, List equalities) { List cols = new ArrayList(); List ocols = new ArrayList(); QFrame fframe = null; QFrame oframe = null; for (Iterator it = equalities.iterator(); it.hasNext(); ) { Equality eq = (Equality) it.next(); QValue from; QValue other; if (frame.contains(eq.getLeft()) && !frame.contains(eq.getRight())) { from = eq.getLeft(); other = eq.getRight(); } else if (frame.contains(eq.getRight()) && !frame.contains(eq.getLeft())) { from = eq.getRight(); other = eq.getLeft(); } else { return true; } if (oframe == null) { fframe = from.getFrame(); oframe = other.getFrame(); } else if (!oframe.equals(other.getFrame()) || !fframe.equals(from.getFrame())) { return true; } cols.add(from.getColumn()); ocols.add(other.getColumn()); } if (oframe == null) { return true; } if (oframe.isOuter()) { return true; } if (oframe.getTable() == null || fframe.getTable() == null) { return true; } String table = fframe.getTable(); String otable = oframe.getTable(); if (table.equals(otable) && cols.equals(ocols) && isConstrained(table, cols)) { // XXX: technically we should make sure none of the columns // are nullable return false; } Table t = m_root.getTable(table); if (t == null) { return true; } Table ot = m_root.getTable(otable); if (ot == null) { return true; } ForeignKey from = ot.getForeignKey(columns(ot, ocols)); if (from == null) { return true; } if (isNullable(from)) { return true; } UniqueKey to = t.getUniqueKey(columns(t, cols)); if (to == null) { return true; } if (isNullable(to)) { return true; } if (isConnected(from, to)) { return false; } return true; } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/f55722558ddefd539eac3380793d11de01f782d0/Generator.java/buggy/archive/qgen/src/com/redhat/persistence/oql/Generator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
31384,
12,
53,
3219,
2623,
16,
987,
3959,
1961,
13,
288,
3639,
987,
5347,
273,
394,
2407,
5621,
3639,
987,
320,
6842,
273,
394,
2407,
5621,
3639,
2238,
3219,
284,
3789,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
31384,
12,
53,
3219,
2623,
16,
987,
3959,
1961,
13,
288,
3639,
987,
5347,
273,
394,
2407,
5621,
3639,
987,
320,
6842,
273,
394,
2407,
5621,
3639,
2238,
3219,
284,
3789,
273,
446,
... | |
InputSource in; try { in = new InputSource(new FileInputStream(filename)); | System.out.println("Loading classes, parsing "+filename+", and setting up serializer"); InputSource in = new InputSource(new FileInputStream(filename)); DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); Document doc = dfactory.newDocumentBuilder().parse(in); Transformer serializer = TransformerFactory.newInstance().newTransformer(); serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); System.out.println("Querying DOM using "+xpath); NodeIterator nl = XPathAPI.selectNodeIterator(doc, xpath); System.out.println("<output>"); Node n; while ((n = nl.nextNode())!= null) { serializer.transform(new DOMSource(n), new StreamResult(System.out)); System.out.println(); | public void doMain(String[] args) { filename = args[0]; xpath = args[1]; if ((filename != null) && (filename.length() > 0) && (xpath != null) && (xpath.length() > 0)) { InputSource in; try { in = new InputSource(new FileInputStream(filename)); } catch (FileNotFoundException fnf) { System.err.println("FileInputStream of " + filename + " threw: " + fnf.toString()); fnf.printStackTrace(); return; } Document doc = null; try { DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); doc = docBuilder.parse(in); } catch (ParserConfigurationException pce) { pce.printStackTrace(); } catch(Exception e1) { System.err.println("Parsing " + filename + " threw: " + e1.toString()); e1.printStackTrace(); return; } NodeIterator nl = null; try { // Use the simple XPath API to select a nodeIterator. nl = XPathAPI.selectNodeIterator(doc, xpath); } catch (Exception e2) { System.err.println("selectNodeIterator threw: " + e2.toString() + " perhaps your xpath didn't select any nodes"); e2.printStackTrace(); return; } try { // Get a Serializer Serializer ser = SerializerFactory.getSerializer (OutputProperties.getDefaultMethodProperties("xml")); // Serialize to the screen. ser.setOutputStream(System.out); Node n = null; while ((n = nl.nextNode())!= null) { //System.out.println("Node is " + n.getNodeName()); ser.asDOMSerializer().serialize(n); } } catch (Exception e3) { e3.printStackTrace(); return; } } else { System.out.println("Bad input args: " + filename + ", " + xpath); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2e8b92984756cc9caa2001d99efdca20961589da/ApplyXPath.java/clean/samples/ApplyXPath/ApplyXPath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
6376,
12,
780,
8526,
833,
13,
225,
288,
565,
1544,
273,
833,
63,
20,
15533,
565,
6748,
273,
833,
63,
21,
15533,
565,
309,
14015,
3459,
480,
446,
13,
597,
261,
3459,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
6376,
12,
780,
8526,
833,
13,
225,
288,
565,
1544,
273,
833,
63,
20,
15533,
565,
6748,
273,
833,
63,
21,
15533,
565,
309,
14015,
3459,
480,
446,
13,
597,
261,
3459,
18... |
event.setEventLog("event dao test log"); | event.setEventLog("Y"); event.setEventDisplay("Y"); | public void testSave() { OnmsEvent event = new OnmsEvent(); event.setDistPoller(getDistPollerDao().load("localhost")); event.setEventCreateTime(new Date()); event.setEventDescr("event dao test"); event.setEventHost("localhost"); event.setEventLog("event dao test log"); event.setEventLogGroup("event dao test log group"); event.setEventLogMsg("event dao test log msg"); event.setEventSeverity(new Integer(7)); event.setEventSource("EventDaoTest"); event.setEventTime(new Date()); event.setEventUei("uei://org/opennms/test/EventDaoTest"); getEventDao().save(event); getOutageDao(); //it works we're so smart! hehe event = getEventDao().load(event.getId()); assertEquals("ICMP", event.getService().getServiceType().getName()); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/d516658447f4d38fe721624210961245a63e060b/EventDaoTest.java/buggy/opennms-model/src/test/java/org/opennms/netmgt/dao/EventDaoTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4755,
1435,
288,
3639,
2755,
959,
1133,
871,
273,
394,
2755,
959,
1133,
5621,
3639,
871,
18,
542,
5133,
5850,
749,
12,
588,
5133,
5850,
749,
11412,
7675,
945,
2932,
13014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4755,
1435,
288,
3639,
2755,
959,
1133,
871,
273,
394,
2755,
959,
1133,
5621,
3639,
871,
18,
542,
5133,
5850,
749,
12,
588,
5133,
5850,
749,
11412,
7675,
945,
2932,
13014... |
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = WorkbenchPlugin.getDefault() .getIntroRegistry(); if (introRegistry.getIntroCount() > 0) { IProduct product = Platform.getProduct(); if (product != null) { introDescriptor = (IntroDescriptor) introRegistry .getIntroForProduct(product.getId()); } } // begin the initialization of the activity, command, and context // managers workbenchActivitySupport = new WorkbenchActivitySupport(); activityHelper = ActivityPersistanceHelper.getInstance(); /* * TODO This is the beginning of the new services support for commands * and such like. This needs to be further thought out. */ commandManager = new CommandManager(); final CommandService commandService = new CommandService(commandManager); services[IWorkbenchServices.COMMAND] = commandService; commandService.readRegistryAndPreferences(); ContextManager.DEBUG = Policy.DEBUG_CONTEXTS; contextManager = new ContextManager(); services[IWorkbenchServices.CONTEXT] = new ContextService( contextManager); BindingManager.DEBUG = Policy.DEBUG_KEY_BINDINGS; bindingManager = new BindingManager(contextManager); final IBindingService bindingService = new BindingService( bindingManager); services[IWorkbenchServices.BINDING] = bindingService; bindingService.readRegistryAndPreferences(commandService); /* * TODO Putting this here is a like a sword in my side. But alas, the * handler support from XML just isn't up to the task yet. */ final Command command = commandService.getCommand("org.eclipse.ui.views.showView"); //$NON-NLS-1$ command.setHandler(new ShowViewHandler()); /* * TODO This is the deprecated support. It would be nice to pull out all * of this except for the Workbench*Support constructors. */ workbenchContextSupport = new WorkbenchContextSupport(this, contextManager); workbenchCommandSupport = new WorkbenchCommandSupport(this, bindingManager, commandManager, contextManager, commandService); workbenchContextSupport.initialize(); // deferred key binding support initializeCommandResolver(); addWindowListener(windowListener); // end the initialization of the activity, command, and context // managers initializeImages(); initializeFonts(); initializeColors(); initializeApplicationColors(); // now that the workbench is sufficiently initialized, let the advisor // have a turn. advisor.internalBasicInitialize(getWorkbenchConfigurer()); // configure use of color icons in toolbars boolean useColorIcons = getPreferenceStore().getBoolean( IPreferenceConstants.COLOR_ICONS); ActionContributionItem.setUseColorIconsInToolbars(useColorIcons); // initialize workbench single-click vs double-click behavior initializeSingleClickOption(); // deadlock code boolean avoidDeadlock = true; String[] commandLineArgs = Platform.getCommandLineArgs(); for (int i = 0; i < commandLineArgs.length; i++) { if (commandLineArgs[i].equalsIgnoreCase("-allowDeadlock")) //$NON-NLS-1$ avoidDeadlock = false; } if (avoidDeadlock) { UILockListener uiLockListener = new UILockListener(display); Platform.getJobManager().setLockListener(uiLockListener); display .setSynchronizer(new UISynchronizer(display, uiLockListener)); } // attempt to restore a previous workbench state try { UIStats.start(UIStats.RESTORE_WORKBENCH, "Workbench"); //$NON-NLS-1$ advisor.preStartup(); if (!advisor.openWindows()) { return false; } } finally { UIStats.end(UIStats.RESTORE_WORKBENCH, this, "Workbench"); //$NON-NLS-1$ } forceOpenPerspective(); isStarting = false; return true; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ea7ac410ca1679440e06e6471e53f91b8a04e627/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1208,
12,
4236,
2562,
13,
288,
202,
202,
759,
3875,
1198,
1965,
309,
1931,
18,
202,
202,
430,
261,
2421,
22144,
3773,
18,
588,
1868,
7675,
291,
2829,
1998,
10756,
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,
225,
202,
1152,
1250,
1208,
12,
4236,
2562,
13,
288,
202,
202,
759,
3875,
1198,
1965,
309,
1931,
18,
202,
202,
430,
261,
2421,
22144,
3773,
18,
588,
1868,
7675,
291,
2829,
1998,
10756,
288,
... | ||
public ResultsLogger(Date startDt) | private ResultsLogger() | public ResultsLogger(Date startDt) { this.resultDAO = new ChecksumResultDAO(); LOG.info(msg("run-start-time") + ": " + DATE_FORMAT.format(startDt)); } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/6c35684c85aea40f564514743cf353881f53e165/ResultsLogger.java/buggy/dspace/src/org/dspace/checker/ResultsLogger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
10351,
3328,
1435,
565,
288,
3639,
333,
18,
2088,
18485,
273,
394,
19760,
1253,
18485,
5621,
3639,
2018,
18,
1376,
12,
3576,
2932,
2681,
17,
1937,
17,
957,
7923,
397,
6398,
315,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
10351,
3328,
1435,
565,
288,
3639,
333,
18,
2088,
18485,
273,
394,
19760,
1253,
18485,
5621,
3639,
2018,
18,
1376,
12,
3576,
2932,
2681,
17,
1937,
17,
957,
7923,
397,
6398,
315,
397... |
public static boolean isTrue(boolean expression, String message) { if (!expression) throw new AssertionFailedException("assertion failed; "+message); return expression; | public static boolean isTrue(boolean expression) { return isTrue(expression, ""); | public static boolean isTrue(boolean expression, String message) { if (!expression) throw new AssertionFailedException("assertion failed; "+message); //$NON-NLS-1$ return expression;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2fcc7d0f6d73a0e1ec44b95addeba29a0b163a14/Assert.java/buggy/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/Assert.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
1250,
21332,
12,
6494,
2652,
16,
514,
883,
13,
288,
202,
430,
16051,
8692,
13,
202,
202,
12849,
394,
9067,
12417,
2932,
29104,
2535,
31,
13773,
2150,
1769,
4329,
3993,
17,
5106,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
1250,
21332,
12,
6494,
2652,
16,
514,
883,
13,
288,
202,
430,
16051,
8692,
13,
202,
202,
12849,
394,
9067,
12417,
2932,
29104,
2535,
31,
13773,
2150,
1769,
4329,
3993,
17,
5106,
17,... |
prefSize = preferredSize; | prefSize = new Dimension(preferredSize); | public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferredSize(); // make sure that prefSize is not smaller than minSize if (minimumSize != null && prefSize != null && (minimumSize.width > prefSize.width || minimumSize.height > prefSize.height)) prefSize = new Dimension(Math.max(minimumSize.width, prefSize.width), Math.max(minimumSize.height, prefSize.height)); return prefSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7c2bfad7a98617f9973c753d7b20b1d8612d7b9/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
1435,
225,
288,
565,
13037,
11307,
1225,
273,
446,
31,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
11307,
1225,
273,
394,
13037,
12,
23616,
1225,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
1435,
225,
288,
565,
13037,
11307,
1225,
273,
446,
31,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
11307,
1225,
273,
394,
13037,
12,
23616,
1225,
1769,
... |
public Composite getSeriesAttributeSheet( Composite parent, Series series ) | public Composite getSeriesAttributeSheet( Composite parent, Series series, IUIServiceProvider builder, Object oContext ) | public Composite getSeriesAttributeSheet( Composite parent, Series series ) { return new BarSeriesAttributeComposite( parent, SWT.NONE, series ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ac26365eb54b9a10e69498a213cb6f605f15760b/BarSeriesUIProvider.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/BarSeriesUIProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14728,
336,
6485,
1499,
8229,
12,
14728,
982,
16,
9225,
4166,
262,
202,
95,
202,
202,
2463,
394,
16654,
6485,
1499,
9400,
12,
982,
16,
348,
8588,
18,
9826,
16,
4166,
11272,
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,
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,
14728,
336,
6485,
1499,
8229,
12,
14728,
982,
16,
9225,
4166,
262,
202,
95,
202,
202,
2463,
394,
16654,
6485,
1499,
9400,
12,
982,
16,
348,
8588,
18,
9826,
16,
4166,
11272,
20... |
TaskUiUtil.openEditor(newTask, true); | public void run() { Task newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), DESCRIPTION_DEFAULT, true); Calendar reminderCalendar = GregorianCalendar.getInstance(); TasksUiPlugin.getTaskListManager().setScheduledToday(reminderCalendar); TasksUiPlugin.getTaskListManager().setReminder(newTask, reminderCalendar.getTime()); Object selectedObject = null; if (view != null) { selectedObject = ((IStructuredSelection) view.getViewer().getSelection()).getFirstElement(); } if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) selectedObject); } else if (selectedObject instanceof ITask) { ITask task = (ITask) selectedObject; if (task.getContainer() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) task.getContainer()); } else if (view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } } else if (view != null && view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { if (view != null && view.getDrilledIntoCategory() != null) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), TasksUiPlugin.TITLE_DIALOG, "The new task has been added to the root of the list, since tasks can not be added to a query."); } TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } //TaskUiUtil.openEditor(newTask, true); if (view != null) { view.getViewer().refresh(); view.setInRenameAction(true); view.getViewer().editElement(newTask, 4); view.setInRenameAction(false); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c6405ae121b75cce2f91e250fae83ffbc9f3c463/NewLocalTaskAction.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2174,
13943,
1304,
18,
3190,
6946,
12,
2704,
2174,
16,
638,
1769,
918,
2174,
13943,
1304,
18,
3190,
6946,
12,
2704,
2174,
16,
638,
1769,
1086,
1435,
2174,
13943,
1304,
18,
3190,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2174,
13943,
1304,
18,
3190,
6946,
12,
2704,
2174,
16,
638,
1769,
918,
2174,
13943,
1304,
18,
3190,
6946,
12,
2704,
2174,
16,
638,
1769,
1086,
1435,
2174,
13943,
1304,
18,
3190,... | |
token = new Token(TOKEN_SEMI, position, position+1, line, linePosition, text); | token = new Token(TOKEN_SEMI, position, position+1, internalPositionOffset, line, linePosition, text); | public List parseTokens() { List tokens = new ArrayList(); position = -1; line = 0; lines.add(new Integer(0)); while(nextCharacter()) { Token token = null; if(C(0) == '\'') token = matchSingleQuoteString(); else if(C(0) == '\"') token = matchDoubleQuoteString(); else if(C(0) == '/' && C(1) == '/') token = matchSingleComment(); else if(C(0) == '/' && C(1) == '*') token = matchComplexComment(); else if(C(0) == '{') token = matchBlock(); else if(C(0) == ':') token = new Token(TOKEN_COLON, position, position+1, line, linePosition, text); else if(C(0) == ';') token = new Token(TOKEN_SEMI, position, position+1, line, linePosition, text); else if(isLetter()) token = matchID(); else if(C(0) == '(') token = new Token(TOKEN_LPAREN, position, position+1, line, linePosition, text); else if(C(0) == ')') token = new Token(TOKEN_RPAREN, position, position+1, line, linePosition, text); else if(!isWhitespace()) token = new Token(TOKEN_CHAR, position, position+1, line, linePosition, text); if(token != null) tokens.add(token); } return tokens; } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/7f8549f7ce7c14aa4186cb9c323bbc530f854560/Lexer.java/clean/src/org/antlr/works/parser/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1109,
5157,
1435,
288,
3639,
987,
2430,
273,
394,
2407,
5621,
3639,
1754,
273,
300,
21,
31,
3639,
980,
273,
374,
31,
3639,
2362,
18,
1289,
12,
2704,
2144,
12,
20,
10019,
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,
987,
1109,
5157,
1435,
288,
3639,
987,
2430,
273,
394,
2407,
5621,
3639,
1754,
273,
300,
21,
31,
3639,
980,
273,
374,
31,
3639,
2362,
18,
1289,
12,
2704,
2144,
12,
20,
10019,
3639... |
fIncludeSymPathsList.expandElement(getSelectedGroup(), 1); | fIncludeSymPathsList.selectElements(new StructuredSelection(curr)); | protected void addContributed() { CPElement[] includes = openContainerSelectionDialog(null); if (includes != null && includes.length > 0) { int nElementsChosen = includes.length; // remove duplicates CPElementGroup group = getSelectedGroup(); for (int i = 0; i < nElementsChosen; i++) { CPElement curr = includes[i]; if (!group.contains(curr)) { addPathToResourceGroups(curr, getSelectedGroup(), fIncludeSymPathsList.getElements()); fIncludeSymPathsList.refresh(); fIncludeSymPathsList.expandElement(getSelectedGroup(), 1); updateStatus(); } } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6f341e4ccb7d93ec563ced01847760ba22498b8a/CPathIncludeSymbolEntryPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
442,
11050,
1435,
288,
202,
202,
4258,
1046,
8526,
6104,
273,
1696,
2170,
6233,
6353,
12,
2011,
1769,
202,
202,
430,
261,
18499,
480,
446,
597,
6104,
18,
2469,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
442,
11050,
1435,
288,
202,
202,
4258,
1046,
8526,
6104,
273,
1696,
2170,
6233,
6353,
12,
2011,
1769,
202,
202,
430,
261,
18499,
480,
446,
597,
6104,
18,
2469,
405,
... |
public GroupMember(boolean usePullMode,int size) { setStateSize(size*MEGABYTE); setUsePullMode(usePullMode); | public GroupMember(boolean pullMode,boolean dispMode,int size) { setStateSize(size*MEGABYTE); setUsePullMode(pullMode); setUseDispatcher(dispMode); | public GroupMember(boolean usePullMode,int size) { setStateSize(size*MEGABYTE); //1GB setUsePullMode(usePullMode); } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/4c13201c940a33777143fcefb225d03101c360fc/StreamingStateTransferTest.java/clean/tests/junit/org/jgroups/tests/StreamingStateTransferTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3756,
4419,
12,
6494,
999,
9629,
2309,
16,
474,
963,
13,
288,
6862,
1082,
202,
542,
1119,
1225,
12,
1467,
14,
958,
43,
2090,
61,
1448,
1769,
368,
21,
5887,
1082,
202,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3756,
4419,
12,
6494,
999,
9629,
2309,
16,
474,
963,
13,
288,
6862,
1082,
202,
542,
1119,
1225,
12,
1467,
14,
958,
43,
2090,
61,
1448,
1769,
368,
21,
5887,
1082,
202,
542,
... |
public static void main(String[] args) { | public static void main(String[] args) throws IOException { | public static void main(String[] args) { int port = Integer.parseInt(args[0]); System.out.println("Port number: "+port); Logger.setupStdoutLogging(Logger.MINOR, ""); Yarrow yarrow = new Yarrow(); Node n = new Node(port, yarrow); n.start(new StaticSwapRequestInterval(2000)); new TextModeClientInterface(n); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/27f407d086a1dbf43da0232680fb0f61503732d4/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1216,
1860,
288,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
... |
Constraint c = (Constraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(size == null) { this.appliedConstraints.remove( SIZE_CONSTRAINT ); } else { if(c != null) { c.setParameter(size); } else { c = new SizeConstraint(); c.setOwningClass(this.owningClass); c.setPropertyName(this.propertyName); c.setParameter(size); this.appliedConstraints.put( SIZE_CONSTRAINT, c ); } } } | Constraint c = (Constraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(size == null) { this.appliedConstraints.remove( SIZE_CONSTRAINT ); } else { if(c != null) { c.setParameter(size); } else { c = new SizeConstraint(); c.setOwningClass(this.owningClass); c.setPropertyName(this.propertyName); c.setParameter(size); this.appliedConstraints.put( SIZE_CONSTRAINT, c ); } } } | public void setSize(Range size) { Constraint c = (Constraint)this.appliedConstraints.get( SIZE_CONSTRAINT ); if(size == null) { this.appliedConstraints.remove( SIZE_CONSTRAINT ); } else { if(c != null) { c.setParameter(size); } else { c = new SizeConstraint(); c.setOwningClass(this.owningClass); c.setPropertyName(this.propertyName); c.setParameter(size); this.appliedConstraints.put( SIZE_CONSTRAINT, c ); } } } | 53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19106,
12,
2655,
963,
13,
288,
202,
202,
5806,
276,
273,
261,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
11963,
67,
15199,
11272,
202,
202,
430,
12,
1467,
422,
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,
225,
202,
482,
918,
19106,
12,
2655,
963,
13,
288,
202,
202,
5806,
276,
273,
261,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
11963,
67,
15199,
11272,
202,
202,
430,
12,
1467,
422,
4... |
if (be.getName().startsWith("META-INF/")) | if (be.getName().startsWith(META_INF)) | public BundleEntry getEntry(String path) { BundleEntry be = bundleFile.getEntry(path); if (be == null) { if (digests4entries != null && digests4entries.get(path) == null) return null; throw new RuntimeException("A file has been removed from the bundle: " + getBaseFile().toString() + " : " + path); //$NON-NLS-1$ //$NON-NLS-2$ } if (be.getName().startsWith("META-INF/")) //$NON-NLS-1$ return be; if (!isSigned()) // If there is no signatures, we just return the regular bundle entry return be; return new SignedBundleEntry(be); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/29707bf71c393f94fea8a97792cd26c6ce46572a/SignedBundleFile.java/clean/bundles/org.eclipse.osgi/jarverifier/org/eclipse/osgi/internal/verifier/SignedBundleFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8539,
1622,
15428,
12,
780,
589,
13,
288,
202,
202,
3405,
1622,
506,
273,
3440,
812,
18,
588,
1622,
12,
803,
1769,
202,
202,
430,
261,
2196,
422,
446,
13,
288,
1082,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8539,
1622,
15428,
12,
780,
589,
13,
288,
202,
202,
3405,
1622,
506,
273,
3440,
812,
18,
588,
1622,
12,
803,
1769,
202,
202,
430,
261,
2196,
422,
446,
13,
288,
1082,
202,
43... |
0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, | 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, | private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/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,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11... |
FileInputStream stream = null; | InputStream stream = null; | private byte[] loadClassBytes(String name) throws ClassNotFoundException { FileInputStream stream = null; try { String fileName = name.replaceAll("\\.", "/"); fileName += ".class"; File file = new File("build/classes/test", fileName); byte[] bytes = new byte[(int) file.length()]; stream = new FileInputStream(file); stream.read(bytes); return bytes; } catch (Exception e) { e.printStackTrace(); throw new ClassNotFoundException(e.getMessage(),e); } finally { if (stream != null) try { stream.close(); } catch (IOException e1) { e1.printStackTrace(); } } } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/5824da07523b18e569515e71bd0efab31291d7ec/TestHelper.java/clean/test/org/jruby/test/TestHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1160,
8526,
16038,
2160,
12,
780,
508,
13,
1216,
10403,
288,
5411,
5037,
1407,
273,
446,
31,
5411,
775,
288,
7734,
514,
3968,
273,
508,
18,
2079,
1595,
2932,
1695,
1199,
16,
4016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1160,
8526,
16038,
2160,
12,
780,
508,
13,
1216,
10403,
288,
5411,
5037,
1407,
273,
446,
31,
5411,
775,
288,
7734,
514,
3968,
273,
508,
18,
2079,
1595,
2932,
1695,
1199,
16,
4016,
... |
UMOEndpointURI url = new MuleEndpointURI("jnp: | UMOEndpointURI url = new MuleEndpointURI( "jnp: | public void testQueryParams2() throws Exception { UMOEndpointURI url = new MuleEndpointURI("jnp://localhost:1099/BeeShirtsjnpServer?method=testMethod&endpointName=jnpProvider&blankParam="); assertEquals("jnp", url.getScheme()); assertEquals("jnp://localhost:1099", url.getAddress()); assertEquals("/BeeShirtsjnpServer", url.getPath()); assertNotNull(url.getEndpointName()); assertEquals("jnpProvider", url.getEndpointName()); assertEquals(1099, url.getPort()); assertEquals("localhost", url.getHost()); assertEquals("jnp://localhost:1099/BeeShirtsjnpServer?method=testMethod&endpointName=jnpProvider&blankParam=", url.toString()); assertEquals("method=testMethod&endpointName=jnpProvider&blankParam=", url.getQuery()); assertEquals(3, url.getParams().size()); assertEquals("testMethod", url.getParams().getProperty(MuleProperties.MULE_METHOD_PROPERTY)); assertEquals("", url.getParams().getProperty("blankParam")); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f22bcd2035487efd91d326568c482912217bbe55/JnpEndpointTestCase.java/buggy/transports/rmi/src/test/java/org/mule/providers/jnp/JnpEndpointTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15148,
22,
1435,
1216,
1185,
565,
288,
3639,
587,
5980,
3293,
3098,
880,
273,
394,
490,
725,
3293,
3098,
2932,
78,
6782,
2207,
13014,
30,
2163,
2733,
19,
27997,
1555,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15148,
22,
1435,
1216,
1185,
565,
288,
3639,
587,
5980,
3293,
3098,
880,
273,
394,
490,
725,
3293,
3098,
2932,
78,
6782,
2207,
13014,
30,
2163,
2733,
19,
27997,
1555,
271... |
return (modes & RDWR) != 0 || (modes & WRONLY) != 0 || (modes & CREAT) != 0; | return isWritable(); | public boolean isWriteable() { return (modes & RDWR) != 0 || (modes & WRONLY) != 0 || (modes & CREAT) != 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/IOModes.java/buggy/src/org/jruby/util/IOModes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3067,
429,
1435,
288,
377,
202,
2463,
353,
12061,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3067,
429,
1435,
288,
377,
202,
2463,
353,
12061,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
iter = timezones.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawOffset() == rawOffset) ids[count++] = (String)entry.getKey(); | iter = timezones().entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); if (((TimeZone) entry.getValue()).getRawOffset() == rawOffset) ids[count++] = (String) entry.getKey(); | public static String[] getAvailableIDs(int rawOffset) { int count = 0; Iterator iter = timezones.entrySet().iterator(); while (iter.hasNext()) { // Don't iterate the values, since we want to count // doubled values (aliases) Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawOffset() == rawOffset) count++; } String[] ids = new String[count]; count = 0; iter = timezones.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawOffset() == rawOffset) ids[count++] = (String)entry.getKey(); } return ids; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
15796,
5103,
12,
474,
1831,
2335,
13,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
3198,
1400,
273,
25954,
18,
4099,
694,
7675,
9838,
5621,
202,
202,
1752... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
15796,
5103,
12,
474,
1831,
2335,
13,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
3198,
1400,
273,
25954,
18,
4099,
694,
7675,
9838,
5621,
202,
202,
1752... |
public void casualtyNotification(String step, DiceRoll dice, PlayerID player, Collection killed, Collection damaged, Map dependents) | public void casualtyNotification(GUID battleID, String step, DiceRoll dice, PlayerID player, Collection killed, Collection damaged, Map dependents) | public void casualtyNotification(String step, DiceRoll dice, PlayerID player, Collection killed, Collection damaged, Map dependents) { m_ui.getBattlePanel().casualtyNotification(step,dice, player, killed, damaged, dependents); } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/3145f57acb1e4d7dae265b6f1c6fb5ab17a2fe02/TripleaDisplay.java/buggy/triplea/src/games/strategy/triplea/ui/display/TripleaDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8697,
1462,
4098,
4386,
12,
17525,
324,
4558,
298,
734,
16,
514,
2235,
16,
463,
1812,
24194,
302,
1812,
16,
19185,
734,
7291,
16,
2200,
24859,
16,
2200,
302,
301,
11349,
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,
918,
8697,
1462,
4098,
4386,
12,
17525,
324,
4558,
298,
734,
16,
514,
2235,
16,
463,
1812,
24194,
302,
1812,
16,
19185,
734,
7291,
16,
2200,
24859,
16,
2200,
302,
301,
11349,
16,
... |
.get("degreeCurricularPlanID") + "°reeModuleID=" + this.degreeModule.getIdInternal(), "setCurricularRule"); | .get("degreeCurricularPlanID") + "°reeModuleID=" + this.degreeModule.getIdInternal() + organizeBy, "setCurricularRule"); | private void encodeCourseGroupOptions() throws IOException { writer.startElement("th", this); writer.writeAttribute("class", "aright", null); writer.writeAttribute("colspan", 3, null); if (!this.showRules) { encodeLink("createCurricularCourse.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap() .get("degreeCurricularPlanID") + "&courseGroupID=" + this.degreeModule.getIdInternal(), "create.curricular.course"); writer.append(" , "); encodeLink("associateCurricularCourse.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap() .get("degreeCurricularPlanID") + "&courseGroupID=" + this.degreeModule.getIdInternal(), "associate.curricular.course"); } else { encodeLink("../curricularRules/createCurricularRule.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap() .get("degreeCurricularPlanID") + "°reeModuleID=" + this.degreeModule.getIdInternal(), "setCurricularRule"); } writer.endElement("th"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/af4175c80021bbe7d6bff77a7dc46fab2dc3e798/UICourseGroup.java/clean/src/net/sourceforge/fenixedu/presentationTier/jsf/components/degreeStructure/UICourseGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2017,
39,
3117,
1114,
1320,
1435,
1216,
1860,
288,
3639,
2633,
18,
1937,
1046,
2932,
451,
3113,
333,
1769,
3639,
2633,
18,
2626,
1499,
2932,
1106,
3113,
315,
297,
750,
3113,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2017,
39,
3117,
1114,
1320,
1435,
1216,
1860,
288,
3639,
2633,
18,
1937,
1046,
2932,
451,
3113,
333,
1769,
3639,
2633,
18,
2626,
1499,
2932,
1106,
3113,
315,
297,
750,
3113,
44... |
eNotify(new ENotificationImpl(this, Notification.UNSET, LayoutPackage.BLOCK__COLUMN, oldColumn, COLUMN_EDEFAULT, oldColumnESet)); | eNotify(new ENotificationImpl(this, Notification.UNSET, LayoutPackage.BLOCK__COLUMN, oldColumn, COLUMN_EDEFAULT, oldColumnESet)); | public void unsetColumn() { int oldColumn = column; boolean oldColumnESet = columnESet; column = COLUMN_EDEFAULT; columnESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, LayoutPackage.BLOCK__COLUMN, oldColumn, COLUMN_EDEFAULT, oldColumnESet)); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/BlockImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2646,
1494,
1435,
565,
288,
3639,
509,
1592,
1494,
273,
1057,
31,
3639,
1250,
1592,
1494,
41,
694,
273,
1057,
41,
694,
31,
3639,
1057,
273,
13473,
67,
11236,
31,
3639,
1057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2646,
1494,
1435,
565,
288,
3639,
509,
1592,
1494,
273,
1057,
31,
3639,
1250,
1592,
1494,
41,
694,
273,
1057,
41,
694,
31,
3639,
1057,
273,
13473,
67,
11236,
31,
3639,
1057,
... |
sTmp = serviceprovider.getValue(sTmp); if (sTmp == null || "".equals(sTmp)) { sTmp = "Key could not be found in Properties file...or properties file not present."; } | sTmp = "Key could not be found in Properties file...or properties file not present."; | public String getValue(String str) { String sTmp = ""; sTmp = getKey(str); if ("".equals(sTmp)) { int iSeparator = str.indexOf(SEPARATOR) + SEPARATOR.length(); if (iSeparator == (-1 + SEPARATOR.length())) { iSeparator = 0; } return str.substring(iSeparator); } else { sTmp = serviceprovider.getValue(sTmp); if (sTmp == null || "".equals(sTmp)) { sTmp = "Key could not be found in Properties file...or properties file not present."; } } return sTmp; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/328c8495576ec950cc922a812ac021ce2d28f134/ExternalizedTextEditorComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/ExternalizedTextEditorComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2366,
12,
780,
609,
13,
565,
288,
3639,
514,
272,
9161,
273,
1408,
31,
3639,
272,
9161,
273,
3579,
12,
701,
1769,
3639,
309,
261,
3660,
18,
14963,
12,
87,
9161,
3719,
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,
514,
2366,
12,
780,
609,
13,
565,
288,
3639,
514,
272,
9161,
273,
1408,
31,
3639,
272,
9161,
273,
3579,
12,
701,
1769,
3639,
309,
261,
3660,
18,
14963,
12,
87,
9161,
3719,
3639,
... |
mockPluginManager.expects(once()).method("getPluginModule").will(returnValue((JiraSoapService) mock.proxy())); | protected void setUp() throws Exception { super.setUp(); Mock mockPluginManager = new Mock(PluginManager.class); mockPluginManager.expects(once()).method("getPluginModule").will(returnValue((JiraSoapService) mock.proxy())); mock = new Mock(JiraSoapService.class); service = new JiraXmlRpcService((PluginManager) mockPluginManager.proxy()); } | 21772 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21772/b2876cf84888caa7958e8c5e9648338fb2beec50/TestJiraXmlRpcService.java/clean/src/test/java/com/atlassian/jira/rpc/xmlrpc/TestJiraXmlRpcService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
7867,
5416,
3773,
1318,
273,
394,
7867,
12,
3773,
1318,
18,
1106,
1769,
7734,
5416,
273,
394,
7867,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
7867,
5416,
3773,
1318,
273,
394,
7867,
12,
3773,
1318,
18,
1106,
1769,
7734,
5416,
273,
394,
7867,
12... | |
if(log.isInfoEnabled()) log.info("sending handleJoin(" + mbr + ") to " + coord); | if(log.isDebugEnabled()) log.debug("sending handleJoin(" + mbr + ") to " + coord); | public void join(Address mbr) { Address coord=null; JoinRsp rsp=null; Digest tmp_digest=null; join_promise.reset(); while(true) { findInitialMembers(); if(log.isDebugEnabled()) log.debug("initial_mbrs are " + initial_mbrs); if(initial_mbrs.size() == 0) { if(gms.disable_initial_coord) { if(log.isInfoEnabled()) log.info("received an initial membership of 0, but cannot become coordinator (disable_initial_coord=" + gms.disable_initial_coord + "), will retry fetching the initial membership"); continue; } if(log.isInfoEnabled()) log.info("no initial members discovered: creating group as first member"); becomeSingletonMember(mbr); return; } coord=determineCoord(initial_mbrs); if(coord == null) { if(log.isErrorEnabled()) log.error("could not determine coordinator from responses " + initial_mbrs); continue; } try { if(log.isInfoEnabled()) log.info("sending handleJoin(" + mbr + ") to " + coord); sendJoinMessage(coord, mbr); rsp=(JoinRsp)join_promise.getResult(gms.join_timeout); if(rsp == null) { if(log.isWarnEnabled()) log.warn("handleJoin(" + mbr + ") failed, retrying"); } else { // 1. Install digest tmp_digest=rsp.getDigest(); if(tmp_digest != null) { tmp_digest.incrementHighSeqno(coord); // see DESIGN for an explanantion if(log.isInfoEnabled()) log.info("digest is " + tmp_digest); gms.setDigest(tmp_digest); } else if(log.isErrorEnabled()) log.error("digest of JOIN response is null"); // 2. Install view if(log.isDebugEnabled()) log.debug("[" + gms.local_addr + "]: JoinRsp=" + rsp.getView() + " [size=" + rsp.getView().size() + "]\n\n"); if(rsp.getView() != null) { if(!installView(rsp.getView())) { if(log.isErrorEnabled()) log.error("view installation failed, " + "retrying to join group"); continue; } gms.passUp(new Event(Event.BECOME_SERVER)); gms.passDown(new Event(Event.BECOME_SERVER)); return; } else if(log.isErrorEnabled()) log.error("view of JOIN response is null"); } } catch(Exception e) { if(log.isInfoEnabled()) log.info("exception=" + e.toString() + ", retrying"); } Util.sleep(gms.join_retry_timeout); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/ClientGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/ClientGmsImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
208... |
if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) | if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) | void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!rootVisible && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; if (currentVisiblePath != null) tree.setVisibleRowCount(currentVisiblePath.getPathCount()); else tree.setVisibleRowCount(0); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) selectPath(tree, new TreePath(currentVisiblePath.getPathComponent(0))); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/badba23052f905d992da7c32124c28f4339931fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1089,
3935,
6207,
743,
1435,
225,
288,
565,
309,
261,
3413,
1488,
422,
446,
13,
1377,
327,
31,
565,
1033,
1024,
273,
2151,
1488,
18,
588,
2375,
5621,
565,
13264,
4972,
273,
16458,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1089,
3935,
6207,
743,
1435,
225,
288,
565,
309,
261,
3413,
1488,
422,
446,
13,
1377,
327,
31,
565,
1033,
1024,
273,
2151,
1488,
18,
588,
2375,
5621,
565,
13264,
4972,
273,
16458,
... |
new FilterCalculator( populator, filterByRow ).applyFilters( ); | new FilterCalculator( populator, filterByRow, session ).applyFilters( ); | static void applyFilters( ResultSetPopulator populator, FilterByRow filterByRow ) throws DataException { new FilterCalculator( populator, filterByRow ).applyFilters( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0049044a5bef6d7cacb43d07aaac96e021a89ed5/FilterCalculator.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/pass/FilterCalculator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
2230,
5422,
12,
10842,
7049,
11775,
3650,
639,
16,
4008,
858,
1999,
12219,
1999,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
2704,
4008,
19278,
12,
3650,
639,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
2230,
5422,
12,
10842,
7049,
11775,
3650,
639,
16,
4008,
858,
1999,
12219,
1999,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
2704,
4008,
19278,
12,
3650,
639,
16,... |
openTaskEditor.run(); | private void hookOpenAction() { getViewer().addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { openTaskEditor.run(); if (TasksUiPlugin.getDefault().getPreferenceStore().getBoolean( TaskListPreferenceConstants.ACTIVATE_ON_OPEN)) { activateAction.run(); } } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d460adfe82e4aba9cf5afcb503903ea75bf610dc/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
3678,
1803,
1435,
288,
202,
202,
588,
18415,
7675,
1289,
5265,
22092,
12,
2704,
1599,
83,
1255,
22092,
1435,
288,
1082,
202,
482,
918,
1645,
6563,
12,
5265,
6563,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3953,
3678,
1803,
1435,
288,
202,
202,
588,
18415,
7675,
1289,
5265,
22092,
12,
2704,
1599,
83,
1255,
22092,
1435,
288,
1082,
202,
482,
918,
1645,
6563,
12,
5265,
6563,
11... | |
protected String readLine() { | protected String readLine() throws UnsupportedEncodingException { | protected String readLine() { byte[] bufferByte = new byte[bufferSize]; int bytesRead; try { bytesRead = inputStream.readLine(bufferByte, 0, bufferSize); } catch (IOException ioe) { return null; } if (bytesRead == -1) { contentRead = true; return null; } String retString = null; try { retString = new String(bufferByte, 0, bytesRead, "ISO-8859-1"); } catch (UnsupportedEncodingException uee) { retString = new String(bufferByte); } return retString; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/3f4b77509f0473e154255122a9cbed2ffb1a2bc5/MultipartIterator.java/clean/src/share/org/apache/struts/upload/MultipartIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
12273,
1435,
1216,
15367,
288,
9079,
1160,
8526,
1613,
3216,
273,
394,
1160,
63,
4106,
1225,
15533,
3639,
509,
17244,
31,
7734,
775,
288,
5411,
17244,
273,
10010,
18,
896,
1670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
12273,
1435,
1216,
15367,
288,
9079,
1160,
8526,
1613,
3216,
273,
394,
1160,
63,
4106,
1225,
15533,
3639,
509,
17244,
31,
7734,
775,
288,
5411,
17244,
273,
10010,
18,
896,
1670,
... |
if (qualifiedNameReference.otherBindings == null || (otherBindingLength - index - 1) < 0) { | if (qualifiedNameReference.otherBindings == null || (index - 2) < 0) { | synchronized IBinding resolveName(Name name) { org.eclipse.jdt.internal.compiler.ast.ASTNode node = (org.eclipse.jdt.internal.compiler.ast.ASTNode) this.newAstToOldAst.get(name); int index = name.index; if (node instanceof QualifiedNameReference) { QualifiedNameReference qualifiedNameReference = (QualifiedNameReference) node; final char[][] tokens = qualifiedNameReference.tokens; int qualifiedNameLength = tokens.length; int indexInQualifiedName = qualifiedNameLength - index; // one-based int indexOfFirstFieldBinding = qualifiedNameReference.indexOfFirstFieldBinding; // one-based int otherBindingLength = qualifiedNameLength - indexOfFirstFieldBinding; if (indexInQualifiedName < indexOfFirstFieldBinding) { // a extra lookup is required BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; try { if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(tokens, 0, indexInQualifiedName)); } } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299 } if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } } else if (indexInQualifiedName == indexOfFirstFieldBinding) { if (qualifiedNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)qualifiedNameReference.binding); } else { Binding binding = qualifiedNameReference.binding; if (binding != null) { if (binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { if (binding instanceof ProblemFieldBinding) { ProblemFieldBinding problemFieldBinding = (ProblemFieldBinding) binding; switch(problemFieldBinding.problemId()) { case ProblemReasons.NotVisible : case ProblemReasons.NonStaticReferenceInStaticContext : ReferenceBinding declaringClass = problemFieldBinding.declaringClass; if (declaringClass != null) { FieldBinding exactBinding = declaringClass.getField(tokens[tokens.length - 1], true /*resolve*/); if (exactBinding != null) { IVariableBinding variableBinding = (IVariableBinding) this.bindingTables.compilerBindingsToASTBindings.get(exactBinding); if (variableBinding != null) { return variableBinding; } variableBinding = new VariableBinding(this, exactBinding); this.bindingTables.compilerBindingsToASTBindings.put(exactBinding, variableBinding); return variableBinding; } } break; } } } } } } else { /* This is the case for a name which is part of a qualified name that * cannot be resolved. See PR 13063. */ if (qualifiedNameReference.otherBindings == null || (otherBindingLength - index - 1) < 0) { return null; } else { return this.getVariableBinding(qualifiedNameReference.otherBindings[otherBindingLength - index - 1]); } } } else if (node instanceof QualifiedTypeReference) { QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) node; if (qualifiedTypeReference.resolvedType == null) { return null; } if (index == 0) { if (!qualifiedTypeReference.resolvedType.isValidBinding() && qualifiedTypeReference instanceof JavadocQualifiedTypeReference) { JavadocQualifiedTypeReference typeRef = (JavadocQualifiedTypeReference) node; if (typeRef.packageBinding != null) { return getPackageBinding(typeRef.packageBinding); } } return this.getTypeBinding(qualifiedTypeReference.resolvedType.leafComponentType()); } else { int qualifiedTypeLength = qualifiedTypeReference.tokens.length; int indexInQualifiedName = qualifiedTypeLength - index; // one-based if (indexInQualifiedName >= 0) { BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; try { if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } else { return null; } } } } else if (node instanceof ImportReference) { ImportReference importReference = (ImportReference) node; int importReferenceLength = importReference.tokens.length; int indexInImportReference = importReferenceLength - index; // one-based if (indexInImportReference >= 0) { Binding binding = null; if (importReferenceLength == indexInImportReference) { try { binding = this.scope.getImport(CharOperation.subarray(importReference.tokens, 0, indexInImportReference), importReference.onDemand, importReference.isStatic()); } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } } else { try { binding = this.scope.getImport(CharOperation.subarray(importReference.tokens, 0, indexInImportReference), true, importReference.isStatic()); } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } } if (binding != null) { if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.FieldBinding) { // it is a type return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.FieldBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.MethodBinding) { // it is a type return this.getMethodBinding((org.eclipse.jdt.internal.compiler.lookup.MethodBinding)binding); } else { return null; } } } } else if (node instanceof CompilationUnitDeclaration) { CompilationUnitDeclaration compilationUnitDeclaration = (CompilationUnitDeclaration) node; org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] types = compilationUnitDeclaration.types; if (types == null || types.length == 0) { return null; } org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type = types[0]; if (type != null) { ITypeBinding typeBinding = this.getTypeBinding(type.binding); if (typeBinding != null) { return typeBinding.getPackage(); } } } else if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration methodDeclaration = (AbstractMethodDeclaration) node; if (methodDeclaration != null) { IMethodBinding methodBinding = this.getMethodBinding(methodDeclaration.binding); if (methodBinding != null) { return methodBinding; } } } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) { org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) node; ITypeBinding typeBinding = this.getTypeBinding(typeDeclaration.binding); if (typeBinding != null) { return typeBinding; } } if (node instanceof SingleNameReference) { SingleNameReference singleNameReference = (SingleNameReference) node; if (singleNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)singleNameReference.binding); } else { // this is a variable or a field Binding binding = singleNameReference.binding; if (binding != null) { if (binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { /* * http://dev.eclipse.org/bugs/show_bug.cgi?id=24449 */ if (binding instanceof ProblemFieldBinding) { ProblemFieldBinding problemFieldBinding = (ProblemFieldBinding) binding; switch(problemFieldBinding.problemId()) { case ProblemReasons.NotVisible : case ProblemReasons.NonStaticReferenceInStaticContext : case ProblemReasons.NonStaticReferenceInConstructorInvocation : ReferenceBinding declaringClass = problemFieldBinding.declaringClass; FieldBinding exactBinding = declaringClass.getField(problemFieldBinding.name, true /*resolve*/); if (exactBinding != null) { IVariableBinding variableBinding2 = (IVariableBinding) this.bindingTables.compilerBindingsToASTBindings.get(exactBinding); if (variableBinding2 != null) { return variableBinding2; } variableBinding2 = new VariableBinding(this, exactBinding); this.bindingTables.compilerBindingsToASTBindings.put(exactBinding, variableBinding2); return variableBinding2; } break; } } } } } } else if (node instanceof QualifiedSuperReference) { QualifiedSuperReference qualifiedSuperReference = (QualifiedSuperReference) node; return this.getTypeBinding(qualifiedSuperReference.qualification.resolvedType); } else if (node instanceof LocalDeclaration) { return this.getVariableBinding(((LocalDeclaration)node).binding); } else if (node instanceof JavadocFieldReference) { JavadocFieldReference fieldRef = (JavadocFieldReference) node; if (fieldRef.methodBinding != null) { return getMethodBinding(fieldRef.methodBinding); } return getVariableBinding(fieldRef.binding); } else if (node instanceof FieldReference) { return getVariableBinding(((FieldReference) node).binding); } else if (node instanceof SingleTypeReference) { SingleTypeReference singleTypeReference = (SingleTypeReference) node; org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType; if (binding != null) { if (!binding.isValidBinding() && node instanceof JavadocSingleTypeReference) { JavadocSingleTypeReference typeRef = (JavadocSingleTypeReference) node; if (typeRef.packageBinding != null) { return getPackageBinding(typeRef.packageBinding); } } return this.getTypeBinding(binding.leafComponentType()); } } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) { org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node; return this.getVariableBinding(fieldDeclaration.binding); } else if (node instanceof MessageSend) { MessageSend messageSend = (MessageSend) node; return getMethodBinding(messageSend.binding); } else if (node instanceof AllocationExpression) { AllocationExpression allocation = (AllocationExpression) node; return getMethodBinding(allocation.binding); } else if (node instanceof JavadocImplicitTypeReference) { JavadocImplicitTypeReference implicitRef = (JavadocImplicitTypeReference) node; return getTypeBinding(implicitRef.resolvedType); } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.TypeParameter) { org.eclipse.jdt.internal.compiler.ast.TypeParameter typeParameter = (org.eclipse.jdt.internal.compiler.ast.TypeParameter) node; return this.getTypeBinding(typeParameter.binding); } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.MemberValuePair) { org.eclipse.jdt.internal.compiler.ast.MemberValuePair memberValuePair = (org.eclipse.jdt.internal.compiler.ast.MemberValuePair) node; return getMethodBinding(memberValuePair.binding); } return null; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dcf93fb34d4ce9325841c9302bc217b02f49501a/DefaultBindingResolver.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
467,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
756,
273,
261,
3341,
18,
20416,
18,
78,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22043,
467,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
756,
273,
261,
3341,
18,
20416,
18,
78,
... |
public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); | public NODE newVCall(RubyId mid) { return newDefaultNode(NODE.NODE_VCALL, null, mid, null); | public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/NodeFactory.java/buggy/org/jruby/interpreter/nodes/NodeFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11922,
394,
58,
1477,
12,
921,
312,
13,
288,
3639,
327,
394,
1868,
907,
12,
8744,
18,
8744,
67,
13464,
4685,
16,
446,
16,
312,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11922,
394,
58,
1477,
12,
921,
312,
13,
288,
3639,
327,
394,
1868,
907,
12,
8744,
18,
8744,
67,
13464,
4685,
16,
446,
16,
312,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100... |
Chunk c = trickle(); | try { inFile.position(outstanding); } catch (IOException exn) { logger.warn("could not change file pointer", exn); } outstanding = 0; | private Chunk bufferOrTrickle(Chunk chunk) throws TokenException { ByteBuffer buf = chunk.getData(); try { for (ByteBuffer bb = buf.duplicate(); bb.hasRemaining(); outFile.write(bb)); } catch (IOException e) { logger.warn("Unable to write to buffer file: " + e); throw new TokenException(e); } outstanding += buf.remaining(); totalSize += buf.remaining(); if (buffering) { buffering = TIMEOUT > (System.currentTimeMillis() - bufferingStart) && SIZE_LIMIT > outstanding; if (buffering) { /* remain in buffering mode */ logger.debug("buffering"); return chunk; } else { /* switch to trickle mode */ logger.debug("switching to trickling"); Chunk c = trickle(); releaseResponse(); return c; } } else { /* stay in trickle mode */ logger.debug("trickling"); if (MAX_SCAN_LIMIT < totalSize) { logger.debug("MAX_SCAN_LIMIT exceeded, not scanning"); scan = false; FileChunkStreamer streamer = new FileChunkStreamer (file, inFile, null, EndMarker.MARKER, false); preStream(streamer); return Chunk.EMPTY; } else { logger.debug("continuing to trickle: " + totalSize); Chunk c = trickle(); return c; } } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/1c63635b818b17d4999b985e6ecc16307af11a38/VirusHttpHandler.java/clean/tran/virus/main/com/metavize/tran/virus/VirusHttpHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13021,
1613,
1162,
1070,
1200,
298,
12,
5579,
2441,
13,
1216,
3155,
503,
565,
288,
3639,
7400,
1681,
273,
2441,
18,
588,
751,
5621,
3639,
775,
288,
5411,
364,
261,
12242,
7129,
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,
13021,
1613,
1162,
1070,
1200,
298,
12,
5579,
2441,
13,
1216,
3155,
503,
565,
288,
3639,
7400,
1681,
273,
2441,
18,
588,
751,
5621,
3639,
775,
288,
5411,
364,
261,
12242,
7129,
273,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.