rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
Iterator i = entry.Attributes().iterator(); while (i.hasNext()) { ((Visitable) i.next()).Accept(this); }
super.VisitMethod_info(entry);
public void VisitMethod_info(Method_info entry) { ProcessSignature(entry.Descriptor()); Iterator i = entry.Attributes().iterator(); while (i.hasNext()) { ((Visitable) i.next()).Accept(this); } }
13239 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13239/8e05d20077d3eef95c25e05a2c25f78d3cf51c4e/ClassDependencyCollector.java/buggy/DependencyFinder/src/com/jeantessier/classreader/ClassDependencyCollector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22039, 1305, 67, 1376, 12, 1305, 67, 1376, 1241, 13, 288, 202, 202, 2227, 5374, 12, 4099, 18, 3187, 10663, 1082, 202, 3198, 277, 273, 1241, 18, 2498, 7675, 9838, 5621, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22039, 1305, 67, 1376, 12, 1305, 67, 1376, 1241, 13, 288, 202, 202, 2227, 5374, 12, 4099, 18, 3187, 10663, 1082, 202, 3198, 277, 273, 1241, 18, 2498, 7675, 9838, 5621, 202, 2...
ruby.yield(RubyArray.newArray(ruby, blockArg, arg1));
RubyObject index = ((RubyArray) arg1).pop(); ruby.yield(RubyArray.newArray(ruby, blockArg, index));
public static RubyObject each_with_index_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { ruby.yield(RubyArray.newArray(ruby, blockArg, arg1)); ((RubyFixnum) arg1).setValue(RubyNumeric.fix2long(arg1) + 1); return ruby.getNil(); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyEnumerable.java/clean/org/jruby/RubyEnumerable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1517, 67, 1918, 67, 1615, 67, 77, 12, 54, 10340, 22155, 16, 19817, 921, 1203, 4117, 16, 19817, 921, 1501, 21, 16, 19817, 921, 365, 13, 288, 3639, 19817, 921, 770,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 1517, 67, 1918, 67, 1615, 67, 77, 12, 54, 10340, 22155, 16, 19817, 921, 1203, 4117, 16, 19817, 921, 1501, 21, 16, 19817, 921, 365, 13, 288, 3639, 19817, 921, 770,...
{ this.conn = conn; this.name = name; this.oid = oid; this.length = length; }
{ this.conn = conn; this.name = name; this.oid = oid; this.length = length; }
public Field(Connection conn, String name, int oid, int length) { this.conn = conn; this.name = name; this.oid = oid; this.length = length; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/6a061da272f04e1463864065f87f1f3fd61d6162/Field.java/clean/src/interfaces/jdbc/postgresql/Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2286, 12, 1952, 1487, 16, 514, 508, 16, 509, 7764, 16, 509, 769, 13, 202, 95, 202, 202, 2211, 18, 4646, 273, 1487, 31, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2286, 12, 1952, 1487, 16, 514, 508, 16, 509, 7764, 16, 509, 769, 13, 202, 95, 202, 202, 2211, 18, 4646, 273, 1487, 31, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 221...
}
}
public IStatus runInUIThread(IProgressMonitor monitor) { if(viewer != null) { try { if (viewer.getControl().isDisposed()) { return Status.OK_STATUS; } Display display = viewer.getControl().getDisplay(); if (!display.isDisposed() && viewer != null) { viewer.refresh(); } } catch (RuntimeException e) { NavigatorPlugin.logError(0, e.toString(), e); } } return Status.OK_STATUS; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/StructuredViewerManager.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/StructuredViewerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 430, 12, 25256, 480, 446, 13, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 25256, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 430, 12, 25256, 480, 446, 13, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 25256, 1...
}
}
public WarBasedAxisConfigurator(ServletConfig svconfig) { try { this.config = svconfig; deploymentEngine = new DeploymentEngine(); InputStream axis2Stream = null; try { if (axis2Stream == null) { String axis2xmlpath = config.getInitParameter(PARAM_AXIS2_XML_PATH); if (axis2xmlpath != null) { // when init parameter was present. axis2Stream = new FileInputStream(axis2xmlpath); log.debug("using axis2.xml from path: " + axis2xmlpath); } } if (axis2Stream == null) { String axisurl = config.getInitParameter(PARAM_AXIS2_XML_URL); if (axisurl != null) { axis2Stream = new URL(axisurl).openStream(); axisConfig = deploymentEngine.populateAxisConfiguration(axis2Stream); log.debug("loading axis2.xml from URL: " + axisurl); } } if (axis2Stream == null) { // both the axis2.xml.path and axis2.xml.url init parameters were not present // try to find the default /WEB-INF/conf/axis2.xml axis2Stream = config.getServletContext().getResourceAsStream("WEB-INF/conf/axis2.xml"); log.debug("trying to load axis2.xml from module: /WEB-INF/conf/axis2.xml"); } } // try catch (Exception e) { log.error(e, e); log.warn("Using default configuration: " + DeploymentConstants.AXIS2_CONFIGURATION_RESOURCE); // not there, use default configuration from class path resource. } // catch if(axis2Stream == null) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); axis2Stream = cl.getResourceAsStream(DeploymentConstants.AXIS2_CONFIGURATION_RESOURCE); } axisConfig = deploymentEngine.populateAxisConfiguration(axis2Stream); // when the module is an unpacked war file, // we can set the web location path in the deployment engine. // This will let us String webpath = config.getServletContext().getRealPath(""); if (webpath != null && !"".equals(webpath)) { log.debug("setting web location string: " + webpath); File weblocation = new File(webpath); deploymentEngine.setWebLocationString(weblocation.getAbsolutePath()); } // if webpath not null } catch (DeploymentException e) { log.error(e.getMessage(), e); } catch (IOException e) { log.error(e.getMessage(), e); } finally { try { Parameter enableHttp = new Parameter("enableHTTP", "true"); if (axisConfig != null) { axisConfig.addParameter(enableHttp); } else { log.error("axisConfig was null after initialization"); } } catch (AxisFault axisFault) { log.info(axisFault.getMessage()); } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2832cc3c46da3dedc7eb547847b2b6fff39cfd76/WarBasedAxisConfigurator.java/buggy/modules/core/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 297, 9802, 6558, 17182, 12, 4745, 809, 5893, 1425, 13, 288, 3639, 775, 288, 5411, 333, 18, 1425, 273, 5893, 1425, 31, 5411, 6314, 4410, 273, 394, 8587, 4410, 5621, 5411, 5037, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 297, 9802, 6558, 17182, 12, 4745, 809, 5893, 1425, 13, 288, 3639, 775, 288, 5411, 333, 18, 1425, 273, 5893, 1425, 31, 5411, 6314, 4410, 273, 394, 8587, 4410, 5621, 5411, 5037, ...
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "EndListPersistentRequests goes from server to client not the other way around", null);
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "EndListPersistentRequests goes from server to client not the other way around", null, false);
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "EndListPersistentRequests goes from server to client not the other way around", null); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/EndListPersistentRequestsMessage.java/buggy/src/freenet/node/fcp/EndListPersistentRequestsMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 42, 4258, 1952, 1503, 1838, 16, 2029, 756, 13, 1082, 202, 15069, 2350, 1941, 503, 288, 202, 202, 12849, 394, 2350, 1941, 503, 12, 5752, 14935, 18, 9347, 67, 872...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 42, 4258, 1952, 1503, 1838, 16, 2029, 756, 13, 1082, 202, 15069, 2350, 1941, 503, 288, 202, 202, 12849, 394, 2350, 1941, 503, 12, 5752, 14935, 18, 9347, 67, 872...
JPanel expressionClearPanel = new JPanel(); expressionClearPanel.setLayout( new BoxLayout(expressionClearPanel, BoxLayout.Y_AXIS));
public ColorPanel( final RuleColorizer colorizer, final FilterModel filterModel) { super(); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.colorizer = colorizer; final JColorChooser chooser = new JColorChooser(); listModel = new DefaultListModel(); final JList list = new JList(listModel); final JScrollPane scrollPane = new JScrollPane(list); scrollPane.setPreferredSize(new Dimension(400, 400)); //apply a set of defaults for now, (eventually color rules will be loaded from disk) listModel.addElement( new ColorRuleHolder( "level == FATAL", new ColorRule( EqualsRule.getRule("level", "FATAL"), new Color(147, 22, 0), Color.white))); listModel.addElement( new ColorRuleHolder( "level == ERROR", new ColorRule( EqualsRule.getRule("level", "ERROR"), new Color(147, 22, 0), Color.white))); listModel.addElement( new ColorRuleHolder( "level == WARN", new ColorRule( EqualsRule.getRule("level", "WARN"), Color.yellow.brighter()))); applyRules(); JPanel leftPanel = new JPanel(new BorderLayout()); JPanel leftCenterPanel = new JPanel(); leftCenterPanel.setLayout( new BoxLayout(leftCenterPanel, BoxLayout.Y_AXIS)); JPanel expressionClearPanel = new JPanel(); expressionClearPanel.setLayout( new BoxLayout(expressionClearPanel, BoxLayout.Y_AXIS)); JPanel expressionPanel = new JPanel(); expressionPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); leftPanel.add(new JLabel("Rule:"), BorderLayout.NORTH); final JTextField expression = new JTextField(30); final Color defaultExpressionBackground = expression.getBackground(); final Color defaultExpressionForeground = expression.getForeground(); expression.addKeyListener( new ExpressionRuleContext(filterModel, expression)); expressionPanel.add(expression); JPanel addUpdatePanel = new JPanel(); addUpdatePanel.setLayout(new BoxLayout(addUpdatePanel, BoxLayout.X_AXIS)); addUpdatePanel.add(new JLabel(" ")); final JButton addUpdateButton = new JButton(ADD_TEXT); addUpdatePanel.add(addUpdateButton); expressionPanel.add(addUpdatePanel); expressionClearPanel.add(expressionPanel); JPanel clearPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); JButton clearButton = new JButton("Clear"); clearPanel.add(clearButton); clearButton.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { addMode = true; expression.setText(""); addUpdateButton.setText(ADD_TEXT); expression.setBackground(defaultExpressionBackground); expression.setForeground(defaultExpressionForeground); list.getSelectionModel().clearSelection(); } }); expressionClearPanel.add(clearPanel); leftCenterPanel.add(expressionClearPanel); JPanel chooserPanel = new JPanel(); chooserPanel.add(chooser); chooser.getSelectionModel().addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent evt) { expression.setBackground(chooser.getColor()); } }); leftCenterPanel.add(chooserPanel); leftPanel.add(leftCenterPanel); add(leftPanel); JPanel updownPanel = new JPanel(); updownPanel.setLayout(new GridLayout(6, 1)); JPanel removePanel = new JPanel(); final JButton removeButton = new JButton("Remove"); removeButton.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { int index = list.getSelectionModel().getMaxSelectionIndex(); if (index > -1) { ColorRuleHolder holder = (ColorRuleHolder) listModel.get(index); listModel.remove(index); if (index > 0) { index = index - 1; } addUpdateButton.setText(ADD_TEXT); addMode = true; if (listModel.getSize() > 0) { list.getSelectionModel().setSelectionInterval(index, index); } } } }); removePanel.add(removeButton); updownPanel.add(new JLabel(" ")); updownPanel.add(new JLabel(" ")); final JButton upButton = new JButton("Move Up"); final JButton downButton = new JButton("Move Down"); JPanel upPanel = new JPanel(); updownPanel.add(removePanel); upPanel.add(upButton); JPanel downPanel = new JPanel(); downPanel.add(downButton); updownPanel.add(upPanel); JPanel updownLabelPanel = new JPanel(); updownLabelPanel.add(new JLabel("Move rule")); updownPanel.add(updownLabelPanel); updownPanel.add(downPanel); add(updownPanel); upButton.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { int index = list.getSelectionModel().getMaxSelectionIndex(); if (index > 0) { ColorRuleHolder holder = (ColorRuleHolder) listModel.get(index); listModel.remove(index); index = index - 1; listModel.add(index, holder); list.getSelectionModel().setSelectionInterval(index, index); } } }); downButton.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { int index = list.getSelectionModel().getMaxSelectionIndex(); if ((index > -1) && (index < (listModel.getSize() - 1))) { ColorRuleHolder holder = (ColorRuleHolder) listModel.get(index); listModel.remove(index); index = index + 1; listModel.add(index, holder); list.getSelectionModel().setSelectionInterval(index, index); } } }); list.setCellRenderer(new ColorRenderer()); list.getSelectionModel().addListSelectionListener( new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { int index = list.getSelectionModel().getMaxSelectionIndex(); if (index > -1) { addMode = false; addUpdateButton.setText(UPDATE_TEXT); ColorRuleHolder holder = (ColorRuleHolder) listModel.get(index); expression.setText(holder.ruleText); expression.setBackground(holder.colorRule.getBackgroundColor()); expression.setForeground(holder.colorRule.getForegroundColor()); chooser.setColor(holder.colorRule.getBackgroundColor()); } if (index < 0) { removeButton.setEnabled(false); downButton.setEnabled(false); upButton.setEnabled(false); } else if ((index == 0) && (listModel.getSize() == 1)) { removeButton.setEnabled(true); downButton.setEnabled(false); upButton.setEnabled(false); } else if ((index == 0) && (listModel.getSize() > 1)) { removeButton.setEnabled(true); downButton.setEnabled(true); upButton.setEnabled(false); } else if (index == (listModel.getSize() - 1)) { removeButton.setEnabled(true); downButton.setEnabled(false); upButton.setEnabled(true); } else { removeButton.setEnabled(true); downButton.setEnabled(true); upButton.setEnabled(true); } } } }); addUpdateButton.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { ColorRuleHolder holder = new ColorRuleHolder( expression.getText(), new ColorRule( ExpressionRule.getRule(expression.getText()), chooser.getColor())); if (addMode) { listModel.addElement(holder); } else { int index = list.getSelectionModel().getMaxSelectionIndex(); listModel.remove(index); listModel.add(index, holder); } int index = listModel.indexOf(holder); list.getSelectionModel().setSelectionInterval(index, index); } }); JPanel rightPanel = new JPanel(new BorderLayout()); rightPanel.add(new JLabel("Rules:"), BorderLayout.NORTH); rightPanel.add(scrollPane, BorderLayout.CENTER); JPanel applyPanel = new JPanel(); JButton apply = new JButton("Apply"); applyPanel.add(apply); rightPanel.add(applyPanel, BorderLayout.SOUTH); apply.addActionListener( new AbstractAction() { public void actionPerformed(ActionEvent evt) { applyRules(); } }); add(rightPanel); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/cdd6838957383c1410371f83f937b90b450af7de/ColorPanel.java/clean/src/java/org/apache/log4j/chainsaw/color/ColorPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5563, 5537, 12, 565, 727, 6781, 2957, 1824, 2036, 1824, 16, 727, 4008, 1488, 1034, 1488, 13, 288, 565, 2240, 5621, 565, 18479, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, 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, 5563, 5537, 12, 565, 727, 6781, 2957, 1824, 2036, 1824, 16, 727, 4008, 1488, 1034, 1488, 13, 288, 565, 2240, 5621, 565, 18479, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, 18, ...
catch (JMSException e) {}
finally { if (conn1 != null) { conn1.close(); } }
public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); assertNull(conn1.getClientID()); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.createDurableSubscriber(topic, "mySubscription"); fail(); } catch (JMSException e) {} }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/22a4fa4f682277eabab61ceec96c936ae980535c/MessageConsumerTest.java/buggy/tests/src/org/jboss/test/messaging/jms/MessageConsumerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 23073, 6663, 1227, 734, 1248, 694, 1435, 1216, 1185, 282, 288, 1377, 368, 1227, 612, 1297, 506, 444, 1865, 4979, 279, 22372, 4915, 1377, 368, 2503, 13041, 732, 854, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 23073, 6663, 1227, 734, 1248, 694, 1435, 1216, 1185, 282, 288, 1377, 368, 1227, 612, 1297, 506, 444, 1865, 4979, 279, 22372, 4915, 1377, 368, 2503, 13041, 732, 854, 486, ...
boolean isTopLevel = className.equals(generatedName);
boolean isTopLevel = className.equals(generatedClassName);
compile(Context cx, Scriptable scope, ScriptOrFnNode scriptOrFn, SecurityController securityController, Object securityDomain) { ObjArray classFiles = new ObjArray(); ObjArray names = new ObjArray(); generateCode(scriptOrFn, names, classFiles); String generatedName = name; boolean onlySave = false; ClassRepository repository = nameHelper.getClassRepository(); if (repository != null) { for (int i=0; i < names.size(); i++) { String className = (String) names.get(i); byte[] classFile = (byte[]) classFiles.get(i); boolean isTopLevel = className.equals(generatedName); try { if (!repository.storeClass(className, classFile, isTopLevel)) { onlySave = true; } } catch (IOException iox) { throw WrappedException.wrapException(iox); } } Class[] interfaces = nameHelper.getTargetImplements(); Class superClass = nameHelper.getTargetExtends(); if (interfaces != null || superClass != null) { String adapterClassName = getScriptClassName(null, true); ScriptableObject obj = new NativeObject(); int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; ++i) { OptFunctionNode fn; fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); String name = fn.getFunctionName(); if (name != null && name.length() != 0) { obj.put(fn.getFunctionName(), obj, fn); } } if (superClass == null) { superClass = Object.class; } byte[] classFile = JavaAdapter.createAdapterCode( cx, obj, adapterClassName, superClass, interfaces, generatedName); try { if (!repository.storeClass(adapterClassName, classFile, true)) { onlySave = true; } } catch (IOException iox) { throw WrappedException.wrapException(iox); } } } if (onlySave) { return null; } Exception e = null; Class result = null; ClassLoader parentLoader = cx.getClass().getClassLoader(); GeneratedClassLoader loader; if (securityController == null) { loader = cx.createClassLoader(parentLoader); } else { loader = securityController.createClassLoader(parentLoader, securityDomain); } try { for (int i=0; i < names.size(); i++) { String className = (String) names.get(i); byte[] classFile = (byte[]) classFiles.get(i); boolean isTopLevel = className.equals(generatedName); try { Class cl = loader.defineClass(className, classFile); if (isTopLevel) { result = cl; } } catch (ClassFormatError ex) { throw new RuntimeException(ex.toString()); } } loader.linkClass(result); } catch (SecurityException x) { e = x; } catch (IllegalArgumentException x) { e = x; } if (e != null) throw new RuntimeException("Malformed optimizer package " + e); if (scriptOrFn instanceof OptFunctionNode) { NativeFunction f; try { Constructor ctor = result.getConstructors()[0]; Object[] initArgs = { scope, cx }; f = (NativeFunction)ctor.newInstance(initArgs); } catch (Exception ex) { throw new RuntimeException ("Unable to instantiate compiled class:"+ex.toString()); } OptRuntime.initFunction(f, fnCurrent.getFunctionType(), scope, cx); return f; } else { NativeScript script; try { script = (NativeScript) result.newInstance(); } catch (Exception ex) { throw new RuntimeException ("Unable to instantiate compiled class:"+ex.toString()); } if (scope != null) { script.setPrototype(script.getClassPrototype(scope, "Script")); script.setParentScope(scope); } return script; } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/e741d0cb339d08bcfa9cb588bcb30951ac0436be/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4074, 12, 1042, 9494, 16, 22780, 2146, 16, 7739, 1162, 5372, 907, 2728, 1162, 5372, 16, 5411, 6036, 2933, 4373, 2933, 16, 1033, 4373, 3748, 13, 565, 288, 3639, 18760, 1076, 667, 2697, 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, 4074, 12, 1042, 9494, 16, 22780, 2146, 16, 7739, 1162, 5372, 907, 2728, 1162, 5372, 16, 5411, 6036, 2933, 4373, 2933, 16, 1033, 4373, 3748, 13, 565, 288, 3639, 18760, 1076, 667, 2697, 273...
public static Border createEmptyBorder(int top, int left, int bottom, int right) { /* Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides. Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns: the Border object createCompoundBorder */ return null; }
public static Border createEmptyBorder () { return new EmptyBorder (0, 0, 0, 0); }
public static Border createEmptyBorder(int top, int left, int bottom, int right) { /* Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides. Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns: the Border objectcreateCompoundBorder */ return null; }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/d092ccafae9945813bbf1be1db3d5e5bd006a90b/BorderFactory.java/buggy/libjava/javax/swing/BorderFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 13525, 752, 1921, 8107, 12, 474, 1760, 16, 4766, 4202, 509, 2002, 16, 4766, 4202, 509, 5469, 16, 4766, 4202, 509, 2145, 13, 225, 288, 1748, 565, 10210, 392, 1008, 5795, 716, 5530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 13525, 752, 1921, 8107, 12, 474, 1760, 16, 4766, 4202, 509, 2002, 16, 4766, 4202, 509, 5469, 16, 4766, 4202, 509, 2145, 13, 225, 288, 1748, 565, 10210, 392, 1008, 5795, 716, 5530, ...
public void sleep(int seconds)
public void sleep(int miliseconds)
public void sleep(int seconds) { try { sleep(seconds * 1000); } catch (Exception ie) {} }
6771 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6771/e868249d5c328eeba493302487ff9e277983b7d4/interview.java/buggy/mice/rebuild/bots/aim/interview.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5329, 12, 474, 3974, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 19607, 12, 7572, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 503, 9228, 13, 2618, 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, 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, 5329, 12, 474, 3974, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 19607, 12, 7572, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 503, 9228, 13, 2618, 202...
if (session != null && session.getActiveResourcesSize() == 0) {
if (session != null && session.getActiveResourcesSize() <= 1) {
public void handleLogout(final String userName, final XMPPResourceConnection conn) { String userId = JID.getNodeID(userName, conn.getDomain()); XMPPSession session = sessionsByNodeId.get(userId); if (session != null && session.getActiveResourcesSize() == 0) { sessionsByNodeId.remove(userId); } // end of if (session.getActiveResourcesSize() == 0) }
51933 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51933/a9095b32445c5195bd87e4378e712e01733f26f3/SessionManager.java/buggy/src/tigase/server/xmppsession/SessionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 19456, 12, 6385, 514, 12065, 16, 202, 202, 6385, 23216, 1420, 1952, 1487, 13, 288, 202, 202, 780, 6249, 273, 804, 734, 18, 588, 22229, 12, 1355, 461, 16, 1487, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 19456, 12, 6385, 514, 12065, 16, 202, 202, 6385, 23216, 1420, 1952, 1487, 13, 288, 202, 202, 780, 6249, 273, 804, 734, 18, 588, 22229, 12, 1355, 461, 16, 1487, 18, ...
Object angle = parseNumber(buffer, pos, end - pos, 10, flags);
Object angle = parseNumber(buffer, pos, end - pos, exactness, 10, flags);
public static Object parseNumber(char[] buffer, int start, int count, int radix, int flags) { char exactness = ' '; int end = start + count; int pos = start; if (pos >= end) return null; char ch = buffer[pos++]; for (; ch == '#'; ch = buffer[pos++]) { if (pos >= end) return null; ch = buffer[pos++]; switch (ch) { case 'b': case 'B': if (radix != 0) return "duplicate radix specifier"; radix = 2; break; case 'o': case 'O': if (radix != 0) return "duplicate radix specifier"; radix = 8; break; case 'd': case 'D': if (radix != 0) return "duplicate radix specifier"; radix = 10; break; case 'x': case 'X': if (radix != 0) return "duplicate radix specifier"; radix = 16; break; case 'e': case 'E': case 'i': case 'I': if (exactness != ' ') return "duplicate exactness specifier"; exactness = ch; break; default: int value = 0; for (;;) { int dig = Character.digit(ch, 10); if (dig < 0) break; value = 10 * value + dig; if (pos >= end) return null; ch = buffer[pos++]; } if (ch == 'R' || ch == 'r') { if (radix != 0) return "duplicate radix specifier"; if (value < 2 || value > 35) return "invalid radix specifier"; radix = value; break; } return "unknown modifier '#" + ch + '\''; } } if (radix == 0) { for (int i = count; ; ) { if (--i < 0) { // FIXME - should get *read-base* in CommonLisp: // radix = *read_base*; radix = 10; break; } if (buffer[start+i] == '.') { radix = 10; break; } } } boolean negative = ch == '-'; if (ch == '-' || ch == '+') { if (pos >= end) return null; ch = buffer[pos++]; } // Special case for '+i' and '-i'. if ((ch == 'i' || ch == 'I') && pos == end && start == pos - 2 && (flags & SCM_COMPLEX) != 0) { char sign = buffer[start]; if (sign != '+' && sign != '-') return null; if (exactness == 'i' || exactness == 'I') return new DComplex(0, negative ? -1 : 1); return negative ? Complex.imMinusOne() : Complex.imOne(); } int realStart = pos - 1; boolean hash_seen = false; char exp_seen = '\000'; int digits_start = -1; int decimal_point = -1; boolean copy_needed = false; boolean underscore_seen = false; IntNum numerator = null; long lvalue = 0; loop: for (;;) { int digit = Character.digit(ch, radix); if (digit >= 0) { if (hash_seen && decimal_point < 0) return "digit after '#' in number"; if (digits_start < 0) digits_start = pos - 1; lvalue = radix * lvalue + digit; } else { switch (ch) { /* case '_': underscore_seen = true; break; */ /* case '#': if (radix != 10) return "'#' in non-decimal number"; if (digits_start < 0) return "'#' with no preceeding digits in number"; hash_seen = true; break; */ case '.': if (decimal_point >= 0) return "duplicate '.' in number"; if (radix != 10) return "'.' in non-decimal number"; decimal_point = pos - 1; break; case 'e': case 's': case 'f': case 'd': case 'l': case 'E': case 'S': case 'F': case 'D': case 'L': if (pos == end || radix != 10) { pos--; break loop; } char next = buffer[pos]; if (next == '+' || next == '-') { if (++ pos >= end || Character.digit(buffer[pos], 10) < 0) return "missing exponent digits"; } else if (Character.digit(next, 10) < 0) { pos--; break loop; } if (exp_seen != '\000') return "duplicate exponent"; if (radix != 10) return "exponent in non-decimal number"; if (digits_start < 0) return "mantissa with no digits"; exp_seen = ch; for (;;) { pos++; if (pos >= end || Character.digit(buffer[pos], 10) < 0) break loop; } case '/': if (numerator != null) return "multiple fraction symbol '/'"; if (digits_start < 0) return "no digits before fraction symbol '/'"; if (exp_seen != '\000' || decimal_point >= 0) return "fraction symbol '/' following exponent or '.'"; numerator = valueOf(buffer, digits_start, pos - digits_start, radix, negative, lvalue); digits_start = -1; lvalue = 0; negative = false; hash_seen = false; underscore_seen = false; break; default: pos--; break loop; } } if (pos == end) break; ch = buffer[pos++]; } if (digits_start < 0) return "not a number - no digits"; if (hash_seen || underscore_seen) { // FIXME make copy, removing '_' and replacing '#' by '0'. } boolean inexact = (exactness == 'i' || exactness == 'I' || (exactness == ' ' && hash_seen)); RealNum number = null; if (exp_seen != '\000' || decimal_point >= 0) { if (digits_start > decimal_point && decimal_point >= 0) digits_start = decimal_point; if (numerator != null) return "floating-point number after fraction symbol '/'"; String str = new String(buffer, digits_start, pos - digits_start); double d = Convert.parseDouble(str); number = new DFloNum(negative ? - d : d); } else { IntNum iresult = valueOf(buffer, digits_start, pos - digits_start, radix, negative, lvalue); if (numerator == null) number = iresult; else { // Check for zero denominator values: 0/0, n/0, and -n/0 // (i.e. NaN, Infinity, and -Infinity). if (iresult.isZero ()) { boolean numeratorZero = numerator.isZero(); if (inexact) number = new DFloNum ((numeratorZero ? Double.NaN : negative ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY)); else if (numeratorZero) return "0/0 is undefined"; else number = RatNum.make(numerator, iresult); } else { number = RatNum.make(numerator, iresult); } } if (inexact && number.isExact()) // We want #i-0 or #i-0/1 to be -0.0, not 0.0. number = new DFloNum(negative && number.isZero() ? -0.0 : number.doubleValue()); } if (exactness == 'e' || exactness == 'E') number = number.toExact(); if (pos < end) { ch = buffer[pos++]; if (ch == '@') { /* polar notation */ Object angle = parseNumber(buffer, pos, end - pos, 10, flags); if (angle instanceof String) return angle; if (! (angle instanceof RealNum)) return "invalid complex polar constant"; RealNum rangle = (RealNum) angle; /* r4rs requires 0@1.0 to be inexact zero, even if (make-polar * 0 1.0) is exact zero, so check for this case. */ if (number.isZero () && !rangle.isExact ()) return new DFloNum (0.0); return Complex.polar (number, rangle); } if (ch == '-' || ch == '+') { pos--; Object imag = parseNumber(buffer, pos, end - pos, 10, flags); if (imag instanceof String) return imag; if (! (imag instanceof Complex)) return "invalid numeric constant"; Complex cimag = (Complex) imag; RealNum re = cimag.re(); if (! re.isZero()) return "invalid numeric constant"; return Complex.make(number, cimag.im()); } int lcount = 0; for (;;) { if (! Character.isLetter(ch)) { pos--; break; } lcount++; if (pos == end) break; ch = buffer[pos++]; } if (lcount == 1) { char prev = buffer[pos-1]; if (prev == 'i' || prev == 'I') { if (pos < end) return "junk after imaginary suffix 'i'"; return Complex.make(IntNum.zero (), number); } } if (lcount > 0) { Object unit = null; for (;;) { String word = new String(buffer, pos - lcount, lcount); Object u = lookupUnit(word); int power = 1; if (pos < end) { ch = buffer[pos]; if (ch == '^' && ++pos < end) ch = buffer[pos]; boolean neg = ch == '-'; if ((ch == '-' || ch == '+') && ++pos < end) ch = buffer[pos]; power = 0; for (;;) { int d = Character.digit(ch, 10); if (d < 0) return "junk after unit name"; power = 10 * power + d; if (++pos == end) break; if (power > 1000000) return "unit power too large"; ch = buffer[pos]; } if (neg) power = -power; } // "expt" and "*" are too open to name clashes. FIXME. if (power != 1) { if (u instanceof Unit) u = Unit.pow((Unit) u, power); else u = LList.list3("expt", u, IntNum.make(power)); } if (unit == null) unit = u; else if (u instanceof Unit && unit instanceof Unit) unit = Unit.mul((Unit) unit, (Unit) u); else unit = LList.list3("*", unit, u); if (pos >= end) break; ch = buffer[pos++]; if (ch == '*') { if (pos == end) return "end of token after '*'"; ch = buffer[pos++]; } lcount = 0; for (;;) { if (! Character.isLetter(ch)) { pos--; break; } lcount++; if (pos == end) break; ch = buffer[pos++]; } if (lcount == 0) return "excess junk after unit"; } if (unit == null) return null; // ?? else if (unit instanceof Unit) return Quantity.make(number, (Unit) unit); else return LList.list3("*", number, unit); } else return "excess junk after number"; } return number; }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/f7d8c23c9280bc25fb03e11262ab36da4f9d0802/LispReader.java/clean/gnu/kawa/lispexpr/LispReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 1109, 1854, 12, 3001, 8526, 1613, 16, 509, 787, 16, 509, 1056, 16, 509, 19015, 16, 509, 2943, 13, 225, 288, 565, 1149, 5565, 4496, 273, 296, 12386, 565, 509, 679, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 1109, 1854, 12, 3001, 8526, 1613, 16, 509, 787, 16, 509, 1056, 16, 509, 19015, 16, 509, 2943, 13, 225, 288, 565, 1149, 5565, 4496, 273, 296, 12386, 565, 509, 679, 273, ...
private void require (String delim)
private void require(String delim)
private void require (String delim) throws SAXException, IOException { int length = delim.length (); char ch []; if (length < dataBuffer.length) { ch = dataBuffer; delim.getChars (0, length, ch, 0); } else ch = delim.toCharArray (); if (USE_CHEATS && length <= (readBufferLength - readBufferPos)) { int offset = readBufferPos; for (int i = 0; i < length; i++, offset++) if (ch [i] != readBuffer [offset]) error ("required string", null, delim); readBufferPos = offset; } else { for (int i = 0; i < length; i++) require (ch [i]); } }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2583, 12, 780, 10508, 13, 565, 1216, 14366, 16, 1860, 565, 288, 202, 474, 202, 2469, 273, 10508, 18, 2469, 261, 1769, 202, 3001, 202, 343, 5378, 31, 1082, 202, 430, 261, 2469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2583, 12, 780, 10508, 13, 565, 1216, 14366, 16, 1860, 565, 288, 202, 474, 202, 2469, 273, 10508, 18, 2469, 261, 1769, 202, 3001, 202, 343, 5378, 31, 1082, 202, 430, 261, 2469...
generateScriptCtor(cfw);
generateScriptCtor(cfw, script);
private void generateCode(String encodedSource) { boolean hasScript = (scriptOrFnNodes[0].getType() == Token.SCRIPT); boolean hasFunctions = (scriptOrFnNodes.length > 1 || !hasScript); String sourceFile = null; if (generateDebugInfo) { sourceFile = scriptOrFnNodes[0].getSourceName(); } ClassFileWriter cfw = new ClassFileWriter(mainClassName, SUPER_CLASS_NAME, sourceFile); cfw.addField(ID_FIELD_NAME, "I", ClassFileWriter.ACC_PRIVATE); cfw.addField(DIRECT_CALL_PARENT_FIELD, mainClassSignature, ClassFileWriter.ACC_PRIVATE); cfw.addField(REGEXP_ARRAY_FIELD_NAME, REGEXP_ARRAY_FIELD_TYPE, ClassFileWriter.ACC_PRIVATE); if (hasFunctions) { generateFunctionConstructor(cfw); } if (hasScript) { cfw.addInterface("org/mozilla/javascript/Script"); generateScriptCtor(cfw); generateMain(cfw); generateExecute(cfw); } generateCallMethod(cfw); if (encodedSource != null) { generateGetEncodedSource(cfw, encodedSource); } int count = scriptOrFnNodes.length; for (int i = 0; i != count; ++i) { ScriptOrFnNode n = scriptOrFnNodes[i]; boolean isFunction = (n.getType() == Token.FUNCTION); generateInitImpl(cfw, n); BodyCodegen bodygen = new BodyCodegen(); bodygen.cfw = cfw; bodygen.codegen = this; bodygen.scriptOrFn = n; bodygen.generateBodyCode(); if (n.getType() == Token.FUNCTION) { OptFunctionNode fn = (OptFunctionNode)n; if (fn.isTargetOfDirectCall()) { emitDirectConstructor(cfw, fn); } } } if (directCallTargets != null) { int N = directCallTargets.size(); for (int j = 0; j != N; ++j) { OptFunctionNode fn = (OptFunctionNode)directCallTargets.get(j); cfw.addField(getDirectTargetFieldName(j), mainClassSignature, ClassFileWriter.ACC_PRIVATE); } } emitConstantDudeInitializers(cfw); mainClassBytes = cfw.toByteArray(); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1fe8179c7b117d3fca54e638920b3966b511a838/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1085, 12, 780, 3749, 1830, 13, 565, 288, 3639, 1250, 711, 3651, 273, 261, 4263, 1162, 5372, 3205, 63, 20, 8009, 588, 559, 1435, 422, 3155, 18, 10885, 1769, 3639, 1250, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1085, 12, 780, 3749, 1830, 13, 565, 288, 3639, 1250, 711, 3651, 273, 261, 4263, 1162, 5372, 3205, 63, 20, 8009, 588, 559, 1435, 422, 3155, 18, 10885, 1769, 3639, 1250, ...
throw new UnsupportedOperationException(); }
throw new UnsupportedOperationException(); }
public void setMultiplicity(Multiplicity input) { throw new UnsupportedOperationException(); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/AttributeSupport.java/buggy/src/main/mondrian/jolap/AttributeSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5002, 20458, 12, 5002, 20458, 810, 13, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5002, 20458, 12, 5002, 20458, 810, 13, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
context.popClass();
context.setClassStack(oldStack);
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg = RubyProc.newProc(runtime); } context.getScopeStack().push(); if (body.getLocalNames() != null) { context.getScopeStack().resetLocalVariables(body.getLocalNames()); } context.pushDynamicVars(); context.pushClass(module); try { if (argsNode != null) { prepareArguments(runtime, receiver, args); } if (optionalBlockArg != null) { context.getScopeStack().setValue(argsNode.getBlockArgNode().getCount(), optionalBlockArg); } traceCall(runtime, receiver, name); return receiver.eval(body.getBodyNode()); } catch (ReturnJump rj) { if (rj.getTarget() == this) { return rj.getReturnValue(); } throw rj; } finally { context.popClass(); context.popDynamicVars(); context.getScopeStack().pop(); traceReturn(runtime, receiver, name); } }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/7fd129dfcc9660fb6d3c382cc48a2692d03890ca/DefaultMethod.java/clean/src/org/jruby/internal/runtime/methods/DefaultMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 745, 12, 54, 10340, 3099, 16, 15908, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 4884, 1042, 819, 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, 15908, 10340, 921, 745, 12, 54, 10340, 3099, 16, 15908, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 4884, 1042, 819, 273, ...
if (!readInfo())
if (!getConfigurationInfo().readInfo())
public Object run(Object arg) { String[] commandLineArgs = new String[0]; if (arg != null && arg instanceof String[]) commandLineArgs = (String[]) arg; if (!readInfo()) return null; String appName = getAboutInfo().getAppName(); if (appName != null) Display.setAppName(appName); Display display = null; if ("true".equals(Platform.getDebugOption("org.eclipse.ui/trace/graphics"))) { //$NON-NLS-1$ //$NON-NLS-2$ DeviceData data = new DeviceData(); data.tracking = true; display = new Display(data); } else { display = new Display(); } //Workaround for 1GEZ9UR and 1GF07HN display.setWarnings(false); display.addListener(SWT.Close, new Listener() { public void handleEvent(Event event) { event.doit = close(); } }); try { handler = new ExceptionHandler(this); Window.setExceptionHandler(handler); boolean initOK = init(commandLineArgs); Platform.endSplash(); runEventLoop = true; if (initOK) checkUpdates(); // may trigger a close/restart if (initOK && runEventLoop) { startPlugins(); runEventLoop(); } shutdown(); } finally { if (!display.isDisposed()) display.dispose(); } return returnCode; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d0d7f613d990b6d6bf252aeeaed46185d71d1618/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1086, 12, 921, 1501, 13, 288, 202, 202, 780, 8526, 20894, 2615, 273, 394, 514, 63, 20, 15533, 202, 202, 430, 261, 3175, 480, 446, 597, 1501, 1276, 514, 63, 5717, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1086, 12, 921, 1501, 13, 288, 202, 202, 780, 8526, 20894, 2615, 273, 394, 514, 63, 20, 15533, 202, 202, 430, 261, 3175, 480, 446, 597, 1501, 1276, 514, 63, 5717, 1082, ...
protected void addChildVisual(EditPart part, int index)
protected void addChildVisual( EditPart part, int index )
protected void addChildVisual(EditPart part, int index) { // make sure we don't keep a select cell cursor after new contents // are added this.getViewer().setCursor( null ); super.addChildVisual(part, index); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1cdfe256fe9671b46f1986c9f6fec32e01807b6b/TableEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 7384, 25780, 12, 4666, 1988, 1087, 16, 509, 770, 13, 202, 95, 202, 565, 368, 1221, 3071, 732, 2727, 1404, 3455, 279, 2027, 2484, 3347, 1839, 394, 2939, 202, 565, 368, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7384, 25780, 12, 4666, 1988, 1087, 16, 509, 770, 13, 202, 95, 202, 565, 368, 1221, 3071, 732, 2727, 1404, 3455, 279, 2027, 2484, 3347, 1839, 394, 2939, 202, 565, 368, 85...
191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0,
private static final short[] yyTable3() { return new short[] { 0, 0, 188, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 187, 188, 188, 0, 0, 188, 188, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 190, 190, 190, 190, 190, 0, 190, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 190, 190, 190, 0, 190, 190, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 187, 187, 187, 0, 0, 187, 187, 187, 0, 187, 0, 212, 0, 0, 0, 0, 0, 0, 0, 187, 187, 212, 0, 0, 190, 190, 0, 0, 187, 187, 0, 187, 187, 187, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 212, 0, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 212, 212, 187, 187, 0, 212, 0, 187, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 0, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 212, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 188, 188, 188, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 0, 0, 188, 188, 190, 190, 190, 188, 0, 190, 190, 190, 188, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 190, 190, 190, 190, 190, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 0, 0, 190, 190, 0, 0, 0, 190, 0, 191, 191, 0, 190, 191, 191, 191, 191, 191, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 191, 191, 0, 0, 0, 0, 0, 0, 212, 212, 212, 184, 0, 212, 212, 212, 0, 212, 0, 0, 0, 184, 0, 0, 0, 0, 0, 212, 212, 0, 0, 191, 191, 0, 0, 0, 212, 212, 0, 212, 212, 212, 212, 212, 0, 0, 0, 0, 0, 184, 0, 0, 184, 0, 184, 184, 184, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 184, 184, 184, 212, 184, 184, 212, 212, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 185, 212, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 185, 0, 185, 185, 185, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 0, 185, 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, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 210, 210, 210, 210, 210, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 0, 0, 210, 210, 0, 0, 0, 210, 196, 196, 196, 0, 210, 196, 196, 196, 0, 196, 0, 194, 0, 0, 0, 0, 0, 0, 0, 196, 196, 194, 0, 0, 0, 0, 0, 0, 196, 196, 0, 196, 196, 196, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 0, 0, 194, 0, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 194, 194, 194, 0, 194, 194, 0, 196, 0, 0, 0, 0, 196, 0, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 309, 310, 311, 312, 313, 314, 315, 194, 194, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 195, 0, 0, 0, 0, 0, 0, 194, 194, 0, 0, 0, 0, 0, 195, 195, 195, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 199, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 0, 199, 199, 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, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 194, 194, 0, 0, 194, 194, 194, 0, 194, 0, 0, 0, 199, 0, 0, 0, 0, 0, 194, 194, 0, 177, 0, 185, 0, 0, 0, 194, 194, 0, 194, 194, 194, 194, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 0, 0, 0, 0, 195, 195, 195, 194, 0, 195, 195, 195, 194, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 195, 195, 201, 195, 195, 195, 195, 195, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 0, 0, 201, 0, 0, 201, 0, 195, 199, 199, 199, 0, 195, 199, 199, 199, 0, 199, 0, 201, 201, 201, 0, 201, 201, 0, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 199, 199, 198, 199, 199, 199, 199, 199, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 0, 0, 198, 0, 0, 198, 0, 199, 0, 201, 0, 0, 199, 515, 516, 0, 0, 517, 0, 198, 198, 198, 0, 198, 198, 160, 161, 162, 163, 164, 165, 0, 166, 167, 200, 0, 168, 0, 0, 0, 169, 170, 171, 172, 200, 0, 0, 0, 0, 0, 0, 0, 0, 173, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 200, 200, 200, 0, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 0, 0, 201, 201, 201, 0, 201, 0, 0, 0, 200, 0, 0, 0, 0, 0, 201, 201, 0, 0, 203, 0, 0, 203, 0, 201, 201, 0, 201, 201, 201, 201, 201, 0, 0, 0, 0, 203, 203, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 0, 0, 0, 0, 0, 0, 203, 201, 198, 198, 198, 0, 201, 198, 198, 198, 0, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 0, 0, 0, 0, 0, 0, 0, 198, 198, 203, 198, 198, 198, 198, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 0, 0, 0, 0, 200, 200, 200, 198, 0, 200, 200, 200, 198, 200, 0, 204, 0, 0, 0, 0, 0, 0, 0, 200, 200, 204, 0, 0, 0, 0, 0, 0, 200, 200, 0, 200, 200, 200, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 204, 0, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 204, 204, 0, 0, 0, 204, 0, 200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 203, 203, 211, 0, 203, 203, 203, 0, 203, 204, 0, 0, 211, 0, 0, 0, 0, 0, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 203, 0, 203, 203, 203, 203, 203, 0, 0, 0, 0, 0, 263, 204, 0, 211, 0, 0, 211, 0, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 203, 203, 0, 211, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 205, 203, 263, 0, 0, 262, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 211, 0, 0, 263, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 205, 0, 0, 0, 211, 0, 0, 206, 0, 0, 0, 0, 0, 0, 205, 205, 0, 206, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 0, 0, 0, 0, 206, 205, 0, 206, 0, 0, 0, 204, 204, 204, 182, 0, 204, 204, 204, 0, 204, 206, 206, 0, 182, 0, 206, 0, 0, 0, 204, 204, 0, 0, 0, 0, 0, 205, 0, 204, 204, 0, 204, 204, 204, 204, 204, 0, 0, 0, 0, 0, 183, 0, 0, 182, 206, 0, 182, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 204, 204, 0, 182, 204, 204, 0, 0, 0, 0, 0, 0, 0, 204, 206, 0, 0, 0, 204, 183, 0, 0, 183, 211, 211, 211, 0, 0, 211, 211, 211, 0, 211, 182, 0, 0, 183, 183, 0, 0, 0, 183, 211, 211, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 211, 211, 211, 211, 211, 0, 0, 263, 263, 263, 0, 182, 263, 263, 263, 0, 263, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 0, 211, 211, 263, 263, 263, 263, 263, 0, 0, 211, 205, 205, 205, 183, 211, 205, 205, 205, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 205, 205, 205, 205, 205, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206, 0, 0, 206, 206, 206, 0, 206, 0, 0, 205, 205, 0, 0, 205, 205, 0, 206, 206, 0, 0, 0, 0, 205, 0, 0, 206, 206, 205, 206, 206, 206, 206, 206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 182, 0, 0, 182, 182, 182, 0, 182, 0, 0, 206, 206, 0, 0, 206, 206, 0, 182, 182, 0, 0, 0, 0, 206, 0, 0, 182, 182, 206, 182, 182, 182, 182, 182, 217, 0, 183, 183, 183, 0, 0, 183, 183, 183, 217, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 183, 183, 183, 183, 183, 181, 0, 182, 217, 0, 0, 217, 182, 0, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 183, 181, 0, 0, 181, 183, 0, 0, 0, 174, 0, 0, 0, 0, 0, 217, 0, 0, 181, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 174, 0, 0, 174, 0, 0, 0, 217, 214, 0, 0, 0, 0, 181, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 214, 0, 0, 214, 0, 0, 181, 180, 0, 0, 0, 0, 0, 174, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 180, 0, 0, 180, 0, 0, 0, 174, 215, 0, 0, 0, 0, 0, 214, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 215, 0, 0, 0, 214, 0, 0, 0, 0, 0, 180, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 217, 0, 0, 217, 217, 217, 0, 217, 0, 0, 0, 0, 0, 0, 0, 180, 0, 217, 217, 0, 0, 0, 215, 0, 0, 0, 217, 217, 0, 217, 217, 217, 217, 217, 0, 0, 181, 181, 181, 0, 0, 181, 181, 181, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 215, 181, 181, 0, 0, 0, 0, 0, 0, 0, 181, 181, 0, 181, 181, 181, 181, 181, 0, 0, 217, 174, 174, 174, 0, 217, 174, 174, 174, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 174, 174, 174, 174, 174, 0, 181, 0, 214, 214, 214, 181, 0, 214, 214, 214, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 214, 214, 214, 214, 214, 0, 174, 180, 180, 180, 0, 174, 180, 180, 180, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 180, 180, 180, 180, 180, 0, 0, 214, 215, 215, 215, 178, 214, 215, 215, 215, 0, 215, 0, 0, 0, 178, 0, 0, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 215, 215, 0, 215, 215, 215, 215, 215, 0, 180, 0, 179, 0, 0, 180, 0, 178, 0, 0, 178, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 179, 215, 0, 179, 0, 0, 0, 0, 0, 0, 176, 0, 0, 0, 0, 0, 178, 179, 179, 0, 176, 0, 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, 178, 0, 0, 176, 179, 0, 176, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 179, 0, 0, 177, 0, 0, 177, 0, 0, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 173, 0, 0, 173, 0, 175, 0, 0, 0, 0, 0, 176, 0, 0, 0, 177, 0, 173, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 0, 0, 173, 175, 175, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 0, 178, 178, 178, 0, 178, 0, 0, 0, 0, 0, 0, 261, 0, 0, 178, 178, 0, 0, 173, 0, 0, 261, 175, 178, 178, 0, 178, 178, 178, 178, 178, 179, 179, 179, 0, 0, 179, 179, 179, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 179, 261, 0, 175, 261, 0, 0, 0, 179, 179, 0, 179, 179, 179, 179, 179, 0, 0, 261, 261, 178, 0, 0, 0, 0, 178, 0, 0, 0, 0, 0, 176, 176, 176, 0, 0, 176, 176, 176, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 261, 0, 0, 179, 0, 0, 176, 176, 179, 176, 176, 176, 176, 176, 177, 177, 177, 0, 0, 177, 177, 177, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 261, 177, 177, 0, 0, 0, 0, 0, 0, 0, 177, 177, 0, 177, 177, 177, 177, 177, 0, 173, 173, 173, 176, 0, 173, 173, 173, 176, 173, 0, 0, 0, 0, 0, 0, 172, 0, 0, 173, 173, 0, 0, 0, 0, 0, 172, 0, 173, 173, 0, 173, 173, 173, 173, 173, 175, 175, 175, 177, 0, 175, 175, 175, 177, 175, 0, 0, 0, 0, 0, 0, 262, 0, 0, 175, 175, 172, 0, 0, 172, 0, 262, 0, 175, 175, 0, 175, 175, 175, 175, 175, 0, 0, 172, 172, 173, 0, 0, 0, 0, 173, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 262, 0, 0, 262, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 172, 262, 262, 175, 0, 0, 0, 0, 175, 261, 261, 261, 318, 0, 261, 261, 261, 0, 261, 0, 0, 0, 318, 0, 0, 0, 0, 0, 261, 261, 328, 0, 172, 0, 0, 0, 262, 261, 261, 0, 261, 261, 261, 261, 261, 0, 0, 0, 0, 318, 318, 0, 0, 318, 318, 318, 318, 318, 318, 318, 327, 0, 0, 0, 0, 0, 0, 0, 262, 0, 318, 318, 318, 0, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 261, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 319, 318, 0, 0, 318, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 217, 318, 318, 0, 319, 319, 0, 0, 319, 319, 319, 319, 319, 319, 319, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 319, 319, 0, 0, 0, 172, 172, 172, 0, 0, 172, 172, 172, 0, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 172, 0, 0, 0, 319, 0, 0, 319, 172, 172, 0, 172, 172, 172, 172, 0, 262, 262, 262, 0, 0, 262, 262, 262, 0, 262, 0, 172, 0, 0, 0, 0, 0, 0, 0, 262, 262, 319, 319, 0, 0, 0, 0, 0, 262, 262, 0, 262, 262, 262, 262, 262, 0, 0, 0, 0, 172, 0, 0, 0, 0, 172, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 318, 318, 318, 0, 0, 318, 318, 318, 0, 318, 0, 0, 262, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 0, 318, 318, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 0, 318, 318, 318, 0, 0, 318, 0, 0, 172, 172, 172, 0, 0, 0, 172, 172, 0, 172, 0, 319, 319, 319, 0, 0, 319, 319, 319, 0, 319, 0, 0, 0, 0, 0, 0, 0, 172, 172, 319, 172, 172, 172, 172, 0, 0, 0, 0, 319, 319, 0, 319, 319, 319, 319, 319, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 0, 319, 319, 319, 283, 283, 319, 0, 283, 283, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 0, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 423, 333, 0, 0, 0, 0, 283, 0, 0, 283, 423, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 283, 283, 423, 423, 423, 74, 423, 423, 423, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 327, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 423, 0, 40, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 0, 273, 273, 273, 81, 273, 273, 273, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 40, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 273, 0, 0, 273, 54, 0, 0, 0, 0, 0, 283, 283, 283, 0, 0, 283, 283, 283, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 273, 273, 54, 0, 0, 283, 283, 0, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 40, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 0, 0, 283, 283, 283, 42, 0, 283, 54, 0, 0, 0, 0, 0, 0, 42, 423, 423, 423, 0, 0, 0, 423, 423, 0, 423, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 54, 322, 323, 0, 423, 423, 42, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 42, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 0, 424, 273, 273, 273, 0, 0, 0, 273, 273, 0, 273, 0, 0, 0, 0, 0, 0, 0, 40, 40, 40, 0, 0, 40, 40, 40, 0, 40, 0, 273, 273, 0, 273, 273, 273, 273, 273, 40, 279, 42, 0, 0, 0, 0, 0, 0, 40, 40, 279, 40, 40, 40, 40, 40, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 279, 279, 0, 0, 279, 279, 279, 80, 279, 279, 279, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 279, 279, 88, 279, 279, 0, 0, 0, 54, 54, 0, 0, 0, 0, 0, 280, 0, 54, 54, 0, 54, 54, 54, 54, 54, 280, 0, 0, 0, 0, 0, 0, 279, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 75, 280, 280, 280, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 83, 280, 280, 42, 42, 42, 0, 0, 42, 42, 42, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 280, 42, 42, 280, 42, 42, 42, 42, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 280, 280, 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, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 0, 0, 0, 279, 279, 0, 279, 105, 0, 0, 106, 47, 48, 49, 0, 59, 0, 51, 52, 53, 54, 55, 56, 58, 0, 279, 279, 107, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 280, 280, 280, 0, 0, 0, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 3, 4, 5, 6, 7, 8, 396, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, }; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 225, 404, 5482, 16, 565, 374, 16, 225, 404, 5292, 16, 565, 374, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 225, 404, 5482, 16, 565, 374, 16, 225, 404, 5292, 16, 565, 374, 16...
return Translator.localize(MENU + prepareKey(key));
return Translator.localize(MENU + prepareKey(key));
protected static final String menuLocalize(String key) { return Translator.localize(MENU + prepareKey(key)); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/3f8cef8e048f8f5d92a6acc4a8970542cd2c274b/GenericArgoMenuBar.java/buggy/src_new/org/argouml/ui/cmd/GenericArgoMenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 727, 514, 3824, 2042, 554, 12, 780, 498, 13, 288, 202, 2463, 18669, 18, 3729, 554, 12, 29227, 397, 2911, 653, 12, 856, 10019, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 727, 514, 3824, 2042, 554, 12, 780, 498, 13, 288, 202, 2463, 18669, 18, 3729, 554, 12, 29227, 397, 2911, 653, 12, 856, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100,...
public void put (String name, char value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'C'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; }
public void put(String name, byte value) { ObjectStreamField field = getField(name);
public PutField putFields() throws IOException { if (currentPutField == null) { currentPutField = new PutField () { private byte[] prim_field_data = new byte[currentObjectStreamClass.primFieldSize]; private Object[] objs = new Object[currentObjectStreamClass.objectFieldCount]; public void put (String name, boolean value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); } public void put (String name, byte value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'B'); prim_field_data[field.getOffset ()] = value; } public void put (String name, char value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'C'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, double value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'D'); int off = field.getOffset (); long l_value = Double.doubleToLongBits (value); prim_field_data[off++] = (byte)(l_value >>> 52); prim_field_data[off++] = (byte)(l_value >>> 48); prim_field_data[off++] = (byte)(l_value >>> 40); prim_field_data[off++] = (byte)(l_value >>> 32); prim_field_data[off++] = (byte)(l_value >>> 24); prim_field_data[off++] = (byte)(l_value >>> 16); prim_field_data[off++] = (byte)(l_value >>> 8); prim_field_data[off] = (byte)l_value; } public void put (String name, float value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'F'); int off = field.getOffset (); int i_value = Float.floatToIntBits (value); prim_field_data[off++] = (byte)(i_value >>> 24); prim_field_data[off++] = (byte)(i_value >>> 16); prim_field_data[off++] = (byte)(i_value >>> 8); prim_field_data[off] = (byte)i_value; } public void put (String name, int value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'I'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, long value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'J'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 52); prim_field_data[off++] = (byte)(value >>> 48); prim_field_data[off++] = (byte)(value >>> 40); prim_field_data[off++] = (byte)(value >>> 32); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, short value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'S'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, Object value) { ObjectStreamField field = currentObjectStreamClass.getField (name); if (field == null) throw new IllegalArgumentException (); if (value != null && ! field.getType ().isAssignableFrom (value.getClass ())) throw new IllegalArgumentException (); objs[field.getOffset ()] = value; } public void write (ObjectOutput out) throws IOException { // Apparently Block data is not used with PutField as per // empirical evidence against JDK 1.2. Also see Mauve test // java.io.ObjectInputOutput.Test.GetPutField. boolean oldmode = setBlockDataMode (false); out.write (prim_field_data); for (int i = 0; i < objs.length; ++ i) out.writeObject (objs[i]); setBlockDataMode (oldmode); } private void checkType (ObjectStreamField field, char type) throws IllegalArgumentException { if (TypeSignature.getEncodingOfClass(field.getType ()).charAt(0) != type) throw new IllegalArgumentException (); } }; } return currentPutField; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/aa9a1e51dfe3c217d861f0795af77c53a43ecefb/ObjectOutputStream.java/buggy/libjava/java/io/ObjectOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4399, 974, 1378, 2314, 1435, 1216, 1860, 225, 288, 565, 309, 261, 2972, 6426, 974, 422, 446, 13, 1377, 288, 202, 2972, 6426, 974, 273, 394, 4399, 974, 1832, 202, 225, 288, 202, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4399, 974, 1378, 2314, 1435, 1216, 1860, 225, 288, 565, 309, 261, 2972, 6426, 974, 422, 446, 13, 1377, 288, 202, 2972, 6426, 974, 273, 394, 4399, 974, 1832, 202, 225, 288, 202, 56...
synchronized (callInProgress) {
synchronized (callInProgressLock) {
public void load(File uiScript) throws IOException, JavaScriptException { try { if (scope == null) initGameObjects(); Context context = Context.enter(); synchronized (callInProgress) { if (callInProgress == Boolean.TRUE) throw new AssertionError("Tried to run two ECMAScript calls at the same time"); callInProgress = Boolean.TRUE; } context.evaluateReader(scope, new FileReader(uiScript), uiScript.getName(), 1, null); } finally { synchronized (callInProgress) { callInProgress = Boolean.FALSE; } Context.exit(); } }
49579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49579/0db8752b8887deab8c960773d8c9e3ac877112cc/TestUI.java/clean/Javolin/source/org/volity/testbench/TestUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 12, 812, 5915, 3651, 13, 1216, 1860, 16, 11905, 503, 288, 3639, 775, 288, 5411, 309, 261, 4887, 422, 446, 13, 1208, 12496, 4710, 5621, 5411, 1772, 819, 273, 1772, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 12, 812, 5915, 3651, 13, 1216, 1860, 16, 11905, 503, 288, 3639, 775, 288, 5411, 309, 261, 4887, 422, 446, 13, 1208, 12496, 4710, 5621, 5411, 1772, 819, 273, 1772, 18, 2...
if (command == "Open Haplotype File" || command == "Open Linkage File"){
String shortHapInputFileName; if (command == "Open Linkage File"){
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == "Open Haplotype File" || command == "Open Linkage File"){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { File inputFile = fc.getSelectedFile(); if (command == "Open Linkage File"){ //pop open checkdata window JFrame checkWindow = new JFrame(); CheckDataPanel checkPanel = new CheckDataPanel(inputFile); checkWindow.setTitle("Checking markers..."); checkWindow.add(checkPanel); checkWindow.add(new JButton("FOO")); checkWindow.pack(); checkWindow.setVisible(true); } try{ theData = new HaploData(inputFile); infileName = inputFile.getName(); //compute D primes and monitor progress progressMonitor = new ProgressMonitor(this, "Computing " + theData.getToBeCompleted() + " values of D prime","", 0, theData.getToBeCompleted()); progressMonitor.setProgress(0); progressMonitor.setMillisToDecideToPopup(2000); final SwingWorker worker = new SwingWorker(){ public Object construct(){ theData.doMonitoredComputation(); return ""; } }; timer = new javax.swing.Timer(50, new ActionListener(){ public void actionPerformed(ActionEvent evt){ progressMonitor.setProgress(theData.getComplete()); if (theData.finished){ timer.stop(); progressMonitor.close(); infoKnown=false; drawPicture(theData); loadInfoMenuItem.setEnabled(true); hapMenuItem.setEnabled(true); customizeHapsMenuItem.setEnabled(true); exportMenuItem.setEnabled(true); saveDprimeMenuItem.setEnabled(true); clearBlocksMenuItem.setEnabled(true); guessBlocksMenuItem.setEnabled(true); } } }); worker.start(); timer.start(); }catch (IOException ioexec){ JOptionPane.showMessageDialog(this, ioexec.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); }catch (RuntimeException rtexec){ JOptionPane.showMessageDialog(this, "An error has occured. It is probably related to file format:\n"+rtexec.toString(), "Error", JOptionPane.ERROR_MESSAGE); } } } else if (command == loadInfoStr){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try{ int good = theData.prepareMarkerInput(fc.getSelectedFile()); if (good == -1){ JOptionPane.showMessageDialog(this, "Number of markers in info file does not match number of markers in dataset.", "Error", JOptionPane.ERROR_MESSAGE); }else{ infoKnown=true; // loadInfoMenuItem.setEnabled(false); drawPicture(theData); } }catch (IOException ioexec){ JOptionPane.showMessageDialog(this, ioexec.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); }catch (RuntimeException rtexec){ JOptionPane.showMessageDialog(this, "An error has occured. It is probably related to file format:\n"+rtexec.toString(), "Error", JOptionPane.ERROR_MESSAGE); } } }else if (command == "Clear All Blocks"){ theBlocks.clearBlocks(); }else if (command == "Define Blocks"){ defineBlocks(); }else if (command == "Customize Haplotype Output"){ customizeHaps(); }else if (command == "Tutorial"){ showHelp(); }else if (command == "Export LD Picture to JPG"){ doExportDPrime(); }else if (command == "Dump LD Output to Text"){ saveDprimeToText(); }else if (command == "Save Haplotypes to Text"){ saveHapsToText(); }else if (command == "Save Haplotypes to JPG"){ saveHapsPic(); }else if (command == "Generate Haplotypes"){ try{ drawHaplos(theData.generateHaplotypes(theData.blocks, haploThresh)); saveHapsMenuItem.setEnabled(true); saveHapsPicMenuItem.setEnabled(true); }catch (IOException ioe){} } else if (command == "Exit"){ System.exit(0); } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/0292ce76629a52080b0e6b1fd57eeb67897b2070/HaploView.java/clean/edu/mit/wi/haploview/HaploView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 780, 1296, 273, 425, 18, 588, 1803, 2189, 5621, 202, 430, 261, 3076, 422, 315, 3678, 670, 69, 4032, 388, 1387, 6, 747, 1296, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 780, 1296, 273, 425, 18, 588, 1803, 2189, 5621, 202, 430, 261, 3076, 422, 315, 3678, 670, 69, 4032, 388, 1387, 6, 747, 1296, 422, ...
return RubyFixnum.newFixnum(runtime, block.arity().getValue());
return getRuntime().newFixnum(block.arity().getValue());
public RubyFixnum arity() { return RubyFixnum.newFixnum(runtime, block.arity().getValue()); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyProc.java/buggy/src/org/jruby/RubyProc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 19353, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 2629, 18, 20498, 7675, 24805, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 8585, 2107, 19353, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 2629, 18, 20498, 7675, 24805, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
case 32:
case 34:
public final java_cup.runtime.Symbol CUP$Parser$do_action( int CUP$Parser$act_num, java_cup.runtime.lr_parser CUP$Parser$parser, java.util.Stack CUP$Parser$stack, int CUP$Parser$top) throws java.lang.Exception { /* Symbol object for return from actions */ java_cup.runtime.Symbol CUP$Parser$result; /* select the action based on the action number */ switch (CUP$Parser$act_num) { /*. . . . . . . . . . . . . . . . . . . .*/ case 95: // new_non_term_id ::= ID { String RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String) id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(41/*new_non_term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 94: // new_term_id ::= ID { String RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String) id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(42/*new_term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 93: // type_id ::= type_id LBRACK RBRACK { String RESULT = null; int t_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int t_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String t_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; RESULT = t_id + "[]"; CUP$Parser$result = new java_cup.runtime.Symbol(40/*type_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 92: // type_id ::= multipart_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(40/*type_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 91: // import_id ::= multipart_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(36/*import_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 90: // import_id ::= multipart_id DOT STAR { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; RESULT = m_id + ".*"; CUP$Parser$result = new java_cup.runtime.Symbol(36/*import_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 89: // multipart_id ::= robust_id { String RESULT = null; int r_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int r_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String r_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = r_id; CUP$Parser$result = new java_cup.runtime.Symbol(38/*multipart_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 88: // multipart_id ::= multipart_id DOT robust_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int r_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int r_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String r_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id + "." + r_id; CUP$Parser$result = new java_cup.runtime.Symbol(38/*multipart_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 87: // start_spec ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(39/*start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 86: // start_spec ::= START WITH nt_id SEMI { String RESULT = null; int start_nameleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int start_nameright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start_name = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = start_name; CUP$Parser$result = new java_cup.runtime.Symbol(39/*start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 85: // term_id ::= symbol_id { String RESULT = null; int symleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int symright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String sym = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym; CUP$Parser$result = new java_cup.runtime.Symbol(33/*term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 84: // terminal_id ::= term_id { String RESULT = null; int symleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int symright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String sym = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym; CUP$Parser$result = new java_cup.runtime.Symbol(32/*terminal_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 83: // terminal_list ::= terminal_id { Vector RESULT = null; int tleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String t = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector t_list = new Vector(); t_list.addElement(t); RESULT = t_list; CUP$Parser$result = new java_cup.runtime.Symbol(49/*terminal_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 82: // terminal_list ::= terminal_list COMMA terminal_id { Vector RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int tleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String t = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; t_list.addElement(t); RESULT = t_list; CUP$Parser$result = new java_cup.runtime.Symbol(49/*terminal_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 81: // preced ::= PRECEDENCE NONASSOC terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.NONASSOC, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 80: // preced ::= PRECEDENCE RIGHT terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.RIGHT, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 79: // preced ::= PRECEDENCE LEFT terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.LEFT, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 78: // precedence_l ::= preced { Vector RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector p_l = new Vector(); p_l.addElement(p); RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(50/*precedence_l*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 77: // precedence_l ::= precedence_l preced { Vector RESULT = null; int p_lleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int p_lright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector p_l = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; p_l.addElement(p); RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(50/*precedence_l*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 76: // precedence_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(51/*precedence_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 75: // precedence_list ::= precedence_l { Vector RESULT = null; int p_lleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int p_lright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector p_l = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(51/*precedence_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 74: // non_term_name_list ::= new_non_term_id { Vector RESULT = null; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector nnt_list = new Vector(); nnt_list.addElement(n_id); RESULT = nnt_list; CUP$Parser$result = new java_cup.runtime.Symbol(43/*non_term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 73: // non_term_name_list ::= non_term_name_list COMMA new_non_term_id { Vector RESULT = null; int ntn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int ntn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector ntn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; ntn_list.addElement(n_id); RESULT = ntn_list; CUP$Parser$result = new java_cup.runtime.Symbol(43/*non_term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 72: // term_name_list ::= new_term_id { Vector RESULT = null; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector tn_list = new Vector(); tn_list.addElement(n_id); RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(45/*term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 71: // term_name_list ::= term_name_list COMMA new_term_id { Vector RESULT = null; int tn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int tn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector tn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; tn_list.addElement(n_id); RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(45/*term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 70: // declares_non_term ::= non_term_name_list SEMI { Vector RESULT = null; int ntn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int ntn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector ntn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = ntn_list; CUP$Parser$result = new java_cup.runtime.Symbol(53/*declares_non_term*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 69: // declares_term ::= term_name_list SEMI { Vector RESULT = null; int tn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int tn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector tn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(52/*declares_term*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 68: // symbol ::= non_terminal declares_non_term { SymbolList RESULT = null; int non_termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int non_termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector non_term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.NONTERMINAL, null, non_term); CUP$Parser$result = new java_cup.runtime.Symbol(54/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 67: // symbol ::= non_terminal type_id declares_non_term { SymbolList RESULT = null; int typeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int typeright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String type = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int non_termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int non_termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector non_term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.NONTERMINAL, type, non_term); CUP$Parser$result = new java_cup.runtime.Symbol(54/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 66: // symbol ::= TERMINAL declares_term { SymbolList RESULT = null; int termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.TERMINAL, null, term); CUP$Parser$result = new java_cup.runtime.Symbol(54/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 65: // symbol ::= TERMINAL type_id declares_term { SymbolList RESULT = null; int typeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int typeright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String type = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.TERMINAL, type, term); CUP$Parser$result = new java_cup.runtime.Symbol(54/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 64: // symbol_list ::= symbol { Vector RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; SymbolList s = (SymbolList)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector s_list = new Vector(); s_list.addElement(s); RESULT = s_list; CUP$Parser$result = new java_cup.runtime.Symbol(46/*symbol_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 63: // symbol_list ::= symbol_list symbol { Vector RESULT = null; int s_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int s_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector s_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; SymbolList s = (SymbolList)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; s_list.addElement(s); RESULT = s_list; CUP$Parser$result = new java_cup.runtime.Symbol(46/*symbol_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 62: // scan_code ::= SCAN WITH CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ScanCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(11/*scan_code*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 61: // init_code ::= INIT WITH CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new InitCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(10/*init_code*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 60: // parser_code_part ::= PARSER CODE CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ParserCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(9/*parser_code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 59: // action_code_part ::= ACTION CODE CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ActionCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(6/*action_code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 58: // code_part ::= scan_code { Object RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object s = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = s; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 57: // code_part ::= init_code { Object RESULT = null; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object i = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = i; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 56: // code_part ::= parser_code_part { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 55: // code_part ::= action_code_part { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = a; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 54: // code_parts ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(48/*code_parts*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 53: // code_parts ::= code_parts code_part { Vector RESULT = null; int c_partsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int c_partsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector c_parts = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; c_parts.addElement(c); RESULT = c_parts; CUP$Parser$result = new java_cup.runtime.Symbol(48/*code_parts*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 52: // import_spec ::= IMPORT import_id SEMI { String RESULT = null; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String i = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = i; CUP$Parser$result = new java_cup.runtime.Symbol(37/*import_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 51: // import_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(44/*import_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 50: // import_list ::= import_list import_spec { Vector RESULT = null; int i_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int i_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector i_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String i = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; i_list.addElement(i); RESULT = i_list; CUP$Parser$result = new java_cup.runtime.Symbol(44/*import_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 49: // package_spec ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(35/*package_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 48: // package_spec ::= PACKAGE multipart_id SEMI { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(35/*package_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 47: // cup_spec ::= package_spec import_list code_parts symbol_list precedence_list start_spec production_list { Spec RESULT = null; int pkgleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left; int pkgright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right; String pkg = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value; int impleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int impright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector imp = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left; int coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right; Vector code = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int prec_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int prec_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector prec_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int prod_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int prod_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector prod_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new CUPSpec(pkg, imp, code, sym_list, prec_list, start, prod_list); CUP$Parser$result = new java_cup.runtime.Symbol(15/*cup_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 46: // empty ::= { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(4/*empty*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 45: // opt_semi ::= empty { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(5/*opt_semi*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 44: // opt_semi ::= SEMI { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(5/*opt_semi*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 43: // non_terminal ::= NONTERMINAL { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(8/*non_terminal*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 42: // non_terminal ::= NON TERMINAL { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(8/*non_terminal*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 41: // robust_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(34/*robust_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 40: // label_id ::= robust_id { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String the_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = the_id; CUP$Parser$result = new java_cup.runtime.Symbol(30/*label_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 39: // opt_label ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(31/*opt_label*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 38: // opt_label ::= COLON label_id { String RESULT = null; int labidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int labidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String labid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = labid; CUP$Parser$result = new java_cup.runtime.Symbol(31/*opt_label*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 37: // prod_part ::= CODE_STR { Object RESULT = null; int code_strleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int code_strright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token code_str = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SemanticAction((String)code_str.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(2/*prod_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 36: // prod_part ::= symbol_id opt_label { Object RESULT = null; int symidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int symidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String symid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int labidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int labidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String labid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new Nonterminal(symid, labid); CUP$Parser$result = new java_cup.runtime.Symbol(2/*prod_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 35: // prod_part_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(18/*prod_part_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 34: // prod_part_list ::= prod_part_list prod_part { Vector RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector a = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* Vector a, (non)terminal/code b */ a.addElement(b); RESULT = a; CUP$Parser$result = new java_cup.runtime.Symbol(18/*prod_part_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 33: // rhs ::= prod_part_list { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector p = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p; CUP$Parser$result = new java_cup.runtime.Symbol(3/*rhs*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 32: // rhs ::= prod_part_list PERCENT_PREC term_id { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector p = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int term_nameleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int term_nameright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String term_name = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* ???? */ CUP$Parser$result = new java_cup.runtime.Symbol(3/*rhs*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 31: // rhs_list ::= rhs { Vector RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object r = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector r_list = new Vector(); r_list.addElement(r); RESULT = r_list; CUP$Parser$result = new java_cup.runtime.Symbol(19/*rhs_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 30: // rhs_list ::= rhs_list BAR rhs { Vector RESULT = null; int r_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int r_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector r_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int rleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object r = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; r_list.addElement(r); RESULT = r_list; CUP$Parser$result = new java_cup.runtime.Symbol(19/*rhs_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 29: // symbol_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(29/*symbol_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 28: // nt_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(28/*nt_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 27: // production ::= nt_id COLON_COLON_EQUALS rhs_list SEMI { Production RESULT = null; int lhs_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int lhs_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String lhs_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Production(new Nonterminal(lhs_id), rhs); CUP$Parser$result = new java_cup.runtime.Symbol(26/*production*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 26: // production_list ::= production { Vector RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector p_list = new Vector(); p_list.addElement(p); RESULT = p_list; CUP$Parser$result = new java_cup.runtime.Symbol(27/*production_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 25: // production_list ::= production_list production { Vector RESULT = null; int p_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int p_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector p_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; p_list.addElement(p); RESULT = p_list; CUP$Parser$result = new java_cup.runtime.Symbol(27/*production_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 24: // transfer_list ::= TO nt_id LBRACE rhs_list RBRACE { Vector RESULT = null; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector v = new Vector(); Production p = new Production(new Nonterminal(nt), rhs); v.addElement(p); RESULT = v; CUP$Parser$result = new java_cup.runtime.Symbol(20/*transfer_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 23: // transfer_list ::= transfer_list TO nt_id LBRACE rhs_list RBRACE { Vector RESULT = null; int tlleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int tlright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector tl = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Production p = new Production(new Nonterminal(nt), rhs); tl.addElement(p); RESULT = tl; CUP$Parser$result = new java_cup.runtime.Symbol(20/*transfer_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 22: // prod_modifier_opt ::= empty { Object RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 21: // prod_modifier_opt ::= OVERRIDE { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 20: // prod_modifier_opt ::= EXTEND { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 19: // nt_id_list ::= nt_id { Vector RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector list = new Vector(); list.addElement(id); RESULT = list; CUP$Parser$result = new java_cup.runtime.Symbol(24/*nt_id_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 18: // nt_id_list ::= nt_id_list COMMA nt_id { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; list.addElement(id); RESULT = list; CUP$Parser$result = new java_cup.runtime.Symbol(24/*nt_id_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 17: // command ::= TRANSFER nt_id transfer_list { Command RESULT = null; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int tlistleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tlistright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector tlist = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new TransferCmd(nt, tlist); CUP$Parser$result = new java_cup.runtime.Symbol(25/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 16: // command ::= DROP LBRACE nt_id_list RBRACE { Command RESULT = null; int nt_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int nt_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector nt_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new DropCmd(nt_list); CUP$Parser$result = new java_cup.runtime.Symbol(25/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 15: // command ::= DROP LBRACE production RBRACE { Command RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new DropCmd(p); CUP$Parser$result = new java_cup.runtime.Symbol(25/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 14: // command ::= prod_modifier_opt production { Command RESULT = null; int modleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int modright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Object mod = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; if (mod == null) { /* no modifier, new command */ RESULT = new NewProdCmd(p); } else if (mod.equals("extend")) { RESULT = new ExtendCmd(p); } else /* if (mod.equals("override")) */ { RESULT = new OverrideCmd(p); } CUP$Parser$result = new java_cup.runtime.Symbol(25/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 13: // command_list_opt ::= { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(17/*command_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 12: // command_list_opt ::= command_list_opt command { Vector RESULT = null; int bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector b = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Command a = (Command)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* b = Vector, a = command; */ b.addElement(a); RESULT = b; CUP$Parser$result = new java_cup.runtime.Symbol(17/*command_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 11: // jlgen_start_spec_elt ::= START WITH ID ID ID SEMI { Vector RESULT = null; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Token start = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int methodleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int methodright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Token method = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int tokenleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int tokenright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token token = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector m = new Vector(); m.addElement(start.getValue()); m.addElement(method.getValue()); m.addElement(token.getValue()); RESULT = m; CUP$Parser$result = new java_cup.runtime.Symbol(22/*jlgen_start_spec_elt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 10: // jlgen_start_spec_list ::= jlgen_start_spec_elt { Vector RESULT = null; int eltleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int eltright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector elt = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = elt; CUP$Parser$result = new java_cup.runtime.Symbol(23/*jlgen_start_spec_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 9: // jlgen_start_spec_list ::= jlgen_start_spec_list jlgen_start_spec_elt { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int eltleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int eltright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector elt = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; list.addAll(elt); RESULT = list; CUP$Parser$result = new java_cup.runtime.Symbol(23/*jlgen_start_spec_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 8: // jlgen_start_spec ::= jlgen_start_spec_list { Vector RESULT = null; int mleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int mright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector m = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m; CUP$Parser$result = new java_cup.runtime.Symbol(21/*jlgen_start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 7: // jlgen_start_spec ::= START WITH nt_id SEMI { Vector RESULT = null; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector v = new Vector(); v.addElement(start); RESULT = v; CUP$Parser$result = new java_cup.runtime.Symbol(21/*jlgen_start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 6: // symbol_list_opt ::= { Vector RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(47/*symbol_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 5: // symbol_list_opt ::= symbol_list { Vector RESULT = null; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym_list; CUP$Parser$result = new java_cup.runtime.Symbol(47/*symbol_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 4: // include_spec ::= INCLUDE STRING_CONST { String RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(16/*include_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 3: // jlgen_spec ::= include_spec package_spec import_list code_parts symbol_list_opt precedence_list jlgen_start_spec command_list_opt { Spec RESULT = null; int incleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).left; int incright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).right; String inc = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-7)).value; int pkgleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left; int pkgright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right; String pkg = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value; int impleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int impright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector imp = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left; int coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right; Vector code = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int prec_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int prec_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector prec_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector start = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int cmd_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int cmd_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector cmd_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new JLgenSpec(inc, pkg, imp, code, sym_list, prec_list, start, cmd_list); CUP$Parser$result = new java_cup.runtime.Symbol(14/*jlgen_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 2: // spec ::= cup_spec { Spec RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Spec s = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Parser.setProgramNode(s); CUP$Parser$result = new java_cup.runtime.Symbol(13/*spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 1: // spec ::= jlgen_spec { Spec RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Spec s = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Parser.setProgramNode(s); CUP$Parser$result = new java_cup.runtime.Symbol(13/*spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 0: // $START ::= spec EOF { Object RESULT = null; int start_valleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int start_valright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Spec start_val = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = start_val; CUP$Parser$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } /* ACCEPT */ CUP$Parser$parser.done_parsing(); return CUP$Parser$result; /* . . . . . .*/ default: throw new Exception( "Invalid action number found in internal parse table"); } }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/26fc4d1a48a61b4891d4596c06f484a628c04cb1/Parser.java/buggy/tools/ppg/src/ppg/parse/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 2252, 67, 71, 416, 18, 9448, 18, 5335, 385, 3079, 8, 2678, 8, 2896, 67, 1128, 12, 565, 509, 13491, 385, 3079, 8, 2678, 8, 621, 67, 2107, 16, 565, 2252, 67, 71, 416, 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, 727, 2252, 67, 71, 416, 18, 9448, 18, 5335, 385, 3079, 8, 2678, 8, 2896, 67, 1128, 12, 565, 509, 13491, 385, 3079, 8, 2678, 8, 621, 67, 2107, 16, 565, 2252, 67, 71, 416, 18, ...
if( (column == 2 && !isForInsertionTable) ) { /* localPath */
if( (this.column == 2 && !this.isForInsertionTable) ) { /* localPath */
public int compare(Object o1, Object o2) { int result = 0; if(!(o1 instanceof FCPTransferQuery) || !(o2 instanceof FCPTransferQuery)) return 0; FCPTransferQuery q1 = (FCPTransferQuery)o1; FCPTransferQuery q2 = (FCPTransferQuery)o2; if(column == 0) { /* File name */ if(q1.getFilename() == null) return -1; if(q2.getFilename() == null) return 1; result = q1.getFilename().compareTo(q2.getFilename()); } if(column == 1) { /* Size */ result = (new Long(q1.getFileSize())).compareTo(new Long(q2.getFileSize())); } if( (column == 2 && !isForInsertionTable) ) { /* localPath */ if(q1.getPath() == null) return -1; if(q2.getPath() == null) return 1; result = q1.getPath().compareTo(q2.getPath()); } if( (column == 2 && isForInsertionTable) || (column == 3 && !isForInsertionTable) ) { /* status */ if(q1.getStatus() == null) return -1; if(q2.getStatus() == null) return 1; result = q1.getStatus().compareTo(q2.getStatus()); } if( (column == 3 && isForInsertionTable) || (column == 4 && !isForInsertionTable) ) { /* progress */ if(q1.getProgression() <= 0 && q2.getProgression() <= 0) { if(q1.isRunning() && !q2.isRunning()) return 1; if(q1.isRunning() && !q2.isRunning()) return -1; } result = (new Integer(q1.getProgression())).compareTo(new Integer(q2.getProgression())); } if (!isSortedAsc) result = -result; return result; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/QueueTableModel.java/buggy/src/thaw/plugins/queueWatcher/QueueTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 1082, 202, 474, 563, 273, 374, 31, 1082, 202, 430, 12, 5, 12, 83, 21, 1276, 478, 4258, 5912, 1138, 13, 9506, 282,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 1082, 202, 474, 563, 273, 374, 31, 1082, 202, 430, 12, 5, 12, 83, 21, 1276, 478, 4258, 5912, 1138, 13, 9506, 282,...
AllocatorHelper.createEstimatedAllocationResult( task, getFactory());
PlugInHelper.createEstimatedAllocationResult( task, getFactory(), 0.0, true);
protected void doAllocation(Organization org, Task task) { Predictor allocPred = org.getClusterPG().getPredictor(); AllocationResult allocResult; if (allocPred != null) allocResult = allocPred.Predict(task, getDelegate()); else allocResult = AllocatorHelper.createEstimatedAllocationResult( task, getFactory()); Allocation myalloc = getFactory().createAllocation( task.getPlan(), task, org, allocResult, Role.BOGUS); publishAdd(myalloc); }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/f2b7ac8afc825a5e57f21087a041ae6fa5a2baca/GenericTablePlugIn.java/buggy/glm/src/org/cougaar/domain/mlm/plugin/generic/GenericTablePlugIn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 741, 17353, 12, 8113, 2358, 16, 3837, 1562, 13, 288, 565, 19166, 933, 280, 4767, 10391, 273, 2358, 18, 588, 3629, 18679, 7675, 588, 21362, 280, 5621, 565, 24242, 1253, 4767, 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, 4750, 918, 741, 17353, 12, 8113, 2358, 16, 3837, 1562, 13, 288, 565, 19166, 933, 280, 4767, 10391, 273, 2358, 18, 588, 3629, 18679, 7675, 588, 21362, 280, 5621, 565, 24242, 1253, 4767, 12...
Collection ifsWithServices = getIpInterfaceDao().findHierarchyByServiceType( svcName); for (Iterator it = ifsWithServices.iterator(); it.hasNext();) { OnmsIpInterface iface = (OnmsIpInterface) it.next();
Collection<OnmsIpInterface> ifsWithServices = getIpInterfaceDao().findHierarchyByServiceType(svcName); for (OnmsIpInterface iface : ifsWithServices) {
private void scheduleInterfacesWithService(String svcName) { log().debug("scheduleInterfacesWithService: svcName = " + svcName); Collection ifsWithServices = getIpInterfaceDao().findHierarchyByServiceType( svcName); for (Iterator it = ifsWithServices.iterator(); it.hasNext();) { OnmsIpInterface iface = (OnmsIpInterface) it.next(); scheduleInterface(iface, svcName, true); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/de899312c4d14aaf63fe1b327cc67214c6220916/Collectd.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/collectd/Collectd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4788, 10273, 1190, 1179, 12, 780, 7538, 461, 13, 288, 3639, 613, 7675, 4148, 2932, 10676, 10273, 1190, 1179, 30, 7538, 461, 273, 315, 397, 7538, 461, 1769, 3639, 2200, 309, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4788, 10273, 1190, 1179, 12, 780, 7538, 461, 13, 288, 3639, 613, 7675, 4148, 2932, 10676, 10273, 1190, 1179, 30, 7538, 461, 273, 315, 397, 7538, 461, 1769, 3639, 2200, 309, 87,...
HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ")"));
HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ')'));
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { // We ensure that we have a FCP server running if(!fcp.enabled){ this.writeReply(ctx, 400, "text/plain", "FCP server is missing", "You need to enable the FCP server to access this page"); return; } HTTPRequest request = new HTTPRequest(uri, null, ctx); String requestPath = request.getPath().substring("/queue/".length()); if (requestPath.length() > 0) { /* okay, there is something in the path, check it. */ try { FreenetURI key = new FreenetURI(requestPath); /* locate request */ ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.hasFinished() && (clientRequest instanceof ClientGet)) { ClientGet clientGet = (ClientGet) clientRequest; if (clientGet.getURI().toString(false).equals(key.toString(false))) { Bucket data = clientGet.getBucket(); String mimeType = clientGet.getMIMEType(); String requestedMimeType = request.getParam("type", null); String forceString = request.getParam("force"); FProxyToadlet.handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, forceString, request.isParameterSet("forcedownload"), "/queue/", key, ""); return; } } } } catch (MalformedURLException mue1) { } } PageMaker pageMaker = ctx.getPageMaker(); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Request count: "+reqs.length); if(reqs.length < 1){ HTMLNode pageNode = pageMaker.getPageNode("Global queue of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); HTMLNode infobox = contentNode.addChild(pageMaker.getInfobox("infobox-information", "Global queue is empty")); HTMLNode infoboxContent = pageMaker.getContentNode(infobox); infoboxContent.addChild("#", "There is no task queued on the global queue at the moment."); contentNode.addChild(createInsertBox(pageMaker)); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } Comparator identifierComparator = new Comparator() { public int compare(Object first, Object second) { ClientRequest firstRequest = (ClientRequest) first; ClientRequest secondRequest = (ClientRequest) second; short firstPrio = firstRequest.getPriority(); short secondPrio = secondRequest.getPriority(); if(firstPrio > secondPrio) return 1; if(secondPrio > firstPrio) return -1; return firstRequest.getIdentifier().compareTo(secondRequest.getIdentifier()); } }; Collections.sort(completedDownloadToDisk, identifierComparator); Collections.sort(completedDownloadToTemp, identifierComparator); Collections.sort(completedUpload, identifierComparator); Collections.sort(completedDirUpload, identifierComparator); Collections.sort(failedDownload, identifierComparator); Collections.sort(failedUpload, identifierComparator); Collections.sort(failedDirUpload, identifierComparator); Collections.sort(uncompletedDownload, identifierComparator); Collections.sort(uncompletedUpload, identifierComparator); Collections.sort(uncompletedDirUpload, identifierComparator); HTMLNode pageNode = pageMaker.getPageNode("(" + (uncompletedDirUpload.size() + uncompletedDownload.size() + uncompletedUpload.size()) + "/" + (failedDirUpload.size() + failedDownload.size() + failedUpload.size()) + "/" + (completedDirUpload.size() + completedDownloadToDisk.size() + completedDownloadToTemp.size() + completedUpload.size()) + ") Queued Requests of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); /* add file insert box */ contentNode.addChild(createInsertBox(pageMaker)); /* navigation bar */ HTMLNode navigationBar = pageMaker.getInfobox("navbar", "Request Navigation"); HTMLNode navigationContent = pageMaker.getContentNode(navigationBar).addChild("ul"); boolean includeNavigationBar = false; if (!completedDownloadToTemp.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToTemp", "Completed downloads to temp"); includeNavigationBar = true; } if (!completedDownloadToDisk.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToDisk", "Completed downloads to disk"); includeNavigationBar = true; } if (!completedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedUpload", "Completed uploads"); includeNavigationBar = true; } if (!completedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completeDirUpload", "Completed directory uploads"); includeNavigationBar = true; } if (!failedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDownload", "Failed downloads"); includeNavigationBar = true; } if (!failedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedUpload", "Failed uploads"); includeNavigationBar = true; } if (!failedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDirUpload", "Failed directory uploads"); includeNavigationBar = true; } if (!uncompletedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDownload", "Downloads in progress"); includeNavigationBar = true; } if (!uncompletedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedUpload", "Uploads in progress"); includeNavigationBar = true; } if (!uncompletedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDirUpload", "Directory uploads in progress"); includeNavigationBar = true; } if (includeNavigationBar) { contentNode.addChild(navigationBar); } HTMLNode legendBox = contentNode.addChild(pageMaker.getInfobox("legend", "Legend")); HTMLNode legendContent = pageMaker.getContentNode(legendBox); HTMLNode legendTable = legendContent.addChild("table", "class", "queue"); HTMLNode legendRow = legendTable.addChild("tr"); for(int i=0; i<7; i++){ legendRow.addChild("td", "class", "priority" + i, "Priority " + i); } if (reqs.length > 1 && SimpleToadletServer.isPanicButtonToBeShown) { contentNode.addChild(createPanicBox(pageMaker)); } boolean advancedEnabled = core.isAdvancedDarknetEnabled(); if (!completedDownloadToTemp.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToTemp"); HTMLNode completedDownloadsTempInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to temporary directory (" + completedDownloadToTemp.size() + ")")); HTMLNode completedDownloadsToTempContent = pageMaker.getContentNode(completedDownloadsTempInfobox); if (advancedEnabled) { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDownloadToDisk.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToDisk"); HTMLNode completedToDiskInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to download directory (" + completedDownloadToDisk.size() + ")")); HTMLNode completedToDiskInfoboxContent = pageMaker.getContentNode(completedToDiskInfobox); if (advancedEnabled) { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedUpload.isEmpty()) { contentNode.addChild("a", "name", "completedUpload"); HTMLNode completedUploadInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Uploads (" + completedUpload.size() + ")")); HTMLNode completedUploadInfoboxContent = pageMaker.getContentNode(completedUploadInfobox); if (advancedEnabled) { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "completedDirUpload"); HTMLNode completedUploadDirInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Directory Uploads (" + completedDirUpload.size() + ")")); HTMLNode completedUploadDirContent = pageMaker.getContentNode(completedUploadDirInfobox); if (advancedEnabled) { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDownload.isEmpty()) { contentNode.addChild("a", "name", "failedDownload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Downloads (" + failedDownload.size() + ")")); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedUpload.isEmpty()) { contentNode.addChild("a", "name", "failedUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Uploads (" + failedUpload.size() + ")")); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "failedDirUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Directory Uploads (" + failedDirUpload.size() + ")")); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDownload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDownload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Downloads (" + uncompletedDownload.size() + ")")); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ")")); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDirUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: DirUploads (" + uncompletedDirUpload.size() + ")")); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_PRIORITY, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } MultiValueTable pageHeaders = new MultiValueTable(); this.writeReply(ctx, 200, "text/html", "OK", pageHeaders, pageNode.generate()); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 759, 1660, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 759, 1660, 338...
if (jj_scan_token(CLASS)) return true;
if (jj_scan_token(IDENTIFIER)) return true;
final private boolean jj_3R_168() { if (jj_3R_80()) return true; if (jj_scan_token(DOT)) return true; if (jj_scan_token(CLASS)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23329, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3672, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23329, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3672, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 371...
MClassifier returnType = rp.getType(); GeneratorDisplay gd = GeneratorDisplay.getInstance(); return gd.generateClassifierRef(returnType);
MClassifier returnType = rp.getType(); GeneratorDisplay gd = GeneratorDisplay.getInstance(); return gd.generateClassifierRef(returnType);
public Object getValueFor(Object target) { if (!(target instanceof MOperation)) return ""; MOperation op = (MOperation) target; MParameter rp = UmlHelper.getHelper().getCore().getReturnParameter(op); if (rp != null && rp.getType() != null) { MClassifier returnType = rp.getType(); GeneratorDisplay gd = GeneratorDisplay.getInstance(); return gd.generateClassifierRef(returnType); } return ""; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ColumnDescriptor.java/clean/src_new/org/argouml/uml/ColumnDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 2366, 1290, 12, 921, 1018, 13, 288, 565, 309, 16051, 12, 3299, 1276, 490, 2988, 3719, 327, 1408, 31, 565, 490, 2988, 1061, 273, 261, 49, 2988, 13, 1018, 31, 202, 49, 1662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 2366, 1290, 12, 921, 1018, 13, 288, 565, 309, 16051, 12, 3299, 1276, 490, 2988, 3719, 327, 1408, 31, 565, 490, 2988, 1061, 273, 261, 49, 2988, 13, 1018, 31, 202, 49, 1662, ...
/* BDD callee_nodes = renumber(callee.nodes, renumbering24, V2.set(), V4toV2); */ time = System.currentTimeMillis() - time; if (TRACE_TIMES || time > 400) System.out.println("Renumbering: "+(time/1000.));
void doCallees() { // find all call sites. for (Iterator i=ms.getCalls().iterator(); i.hasNext(); ) { ProgramLocation mc = (ProgramLocation) i.next(); System.out.println("Visiting call site "+mc); // build up an array of BDD's corresponding to each of the // parameters passed into this method call. BDD[] params = new BDD[mc.getNumParams()]; for (int j=0; j<mc.getNumParams(); j++) { jq_Type t = (jq_Type) mc.getParamType(j); if (!(t instanceof jq_Reference)) continue; PassedParameter pp = new PassedParameter(mc, j); Set s = ms.getNodesThatCall(pp); params[j] = bdd.zero(); for (Iterator k=s.iterator(); k.hasNext(); ) { int m = getVariableIndex((Node) k.next()); params[j].orWith(V3.ithVar(m)); } System.out.println("Params["+j+"]="+params[j].toStringWithDomains(bdd, ts)); } // find all targets of this call. Collection targets = cg.getTargetMethods(mc); for (Iterator j=targets.iterator(); j.hasNext(); ) { jq_Method target = (jq_Method) j.next(); System.out.print("Target "+target); if (target.getBytecode() == null) { // TODO: calls to native methods. System.out.println("... native method!"); continue; } ControlFlowGraph cfg = CodeCache.getCode(target); MethodSummary ms_callee = MethodSummary.getSummary(cfg); BDDMethodSummary callee = getBDDSummary(ms_callee); if (callee == null) { System.out.println("... no BDD summary yet!"); continue; } // renumber if there is any overlap in node numbers. BDD overlap = nodes.and(callee.nodes); BDD renumbering24 = null; BDD renumbering14 = null; BDD renumbering34 = null; if (!overlap.equals(bdd.zero())) { System.out.println("... non-zero overlap! "+overlap.toStringWithDomains(bdd, ts)); BDD callee_used = callee.nodes.id(); renumbering24 = bdd.zero(); for (;;) { int p = callee_used.scanVar(V2); if (p < 0) break; BDD pth = V2.ithVar(p); int q; if (nodes.and(pth).equals(bdd.zero())) { q = p; } else { q = getNewVariableIndex(mc, target, p); System.out.println("Variable "+p+" overlaps, new variable index "+q); } BDD qth = V4.ithVar(q); qth.andWith(pth.id()); renumbering24.orWith(qth); callee_used.applyWith(pth, BDDFactory.diff); } renumbering14 = renumbering24.replace(V2toV1); renumbering34 = renumbering24.replace(V2toV3); } else { System.out.println("...zero overlap!"); } overlap.free(); BDD callee_loads = renumber(callee.loads, renumbering14, V1.set(), V4toV1, renumbering24, V2.set(), V4toV2); BDD callee_stores = renumber(callee.stores, renumbering24, V2.set(), V4toV2, renumbering34, V3.set(), V4toV3); BDD callee_edges = renumber(callee.edges, renumbering14, V1.set(), V4toV1, renumbering34, V3.set(), V4toV3); //BDD callee_nodes = renumber(callee.nodes, renumbering24, V2.set(), V4toV2); System.out.println("New loads: "+callee_loads.toStringWithDomains(bdd, ts)); System.out.println("New stores: "+callee_stores.toStringWithDomains(bdd, ts)); System.out.println("New edges: "+callee_edges.toStringWithDomains(bdd, ts)); // incorporate callee operations into caller. loads.orWith(callee_loads); stores.orWith(callee_stores); edges.orWith(callee_edges); // add edges for parameters. for (int k=0; k<callee.ms.getNumOfParams(); ++k) { ParamNode pn = callee.ms.getParamNode(k); int pnIndex = getVariableIndex(pn); BDD tmp = V1.ithVar(pnIndex); BDD paramEdge = renumber(tmp, renumbering14, V1.set(), V4toV1); tmp.free(); paramEdge.andWith(params[k].id()); System.out.println("Param#"+k+" edges "+paramEdge.toStringWithDomains(bdd, ts)); edges.orWith(paramEdge); } // add edges for return value, if one exists. if (((jq_Method)callee.ms.method).getReturnType().isReferenceType() && !callee.ms.returned.isEmpty()) { BDD retVal = bdd.zero(); for (Iterator k=callee.ms.returned.iterator(); k.hasNext(); ) { int nIndex = getVariableIndex((Node) k.next()); BDD tmp = V3.ithVar(nIndex); retVal.orWith(renumber(tmp, renumbering34, V3.set(), V4toV3)); tmp.free(); } int rIndex = getVariableIndex((ReturnValueNode) ms.callToRVN.get(mc)); retVal.andWith(V1.ithVar(rIndex)); System.out.println("Return value edges "+retVal.toStringWithDomains(bdd, ts)); edges.orWith(retVal); } // add edges for thrown exception, if one exists. if (!callee.ms.thrown.isEmpty()) { BDD retVal = bdd.zero(); for (Iterator k=callee.ms.returned.iterator(); k.hasNext(); ) { int nIndex = getVariableIndex((Node) k.next()); BDD tmp = V3.ithVar(nIndex); retVal.orWith(renumber(tmp, renumbering34, V3.set(), V4toV3)); tmp.free(); } int rIndex = getVariableIndex((ThrownExceptionNode) ms.callToTEN.get(mc)); retVal.andWith(V1.ithVar(rIndex)); System.out.println("Thrown exception edges "+retVal.toStringWithDomains(bdd, ts)); edges.orWith(retVal); } // propagate loads/stores. matchEdges(); // recalculate reachable nodes. transitiveClosure(nodes); System.out.println("Reachable nodes is now "+nodes.toStringWithDomains(bdd, ts)); } for (int j=0; j<mc.getNumParams(); ++j) { params[j].free(); } } }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/85436b7b7b6aa73c64958e452a175f576ed70ca0/FullyContextSensitiveBDD.java/clean/joeq_core/joeq/Compiler/Quad/FullyContextSensitiveBDD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 605, 5698, 14425, 67, 4690, 273, 1654, 1226, 12, 771, 11182, 18, 4690, 16, 1654, 1226, 310, 3247, 16, 776, 22, 18, 542, 9334, 776, 24, 869, 58, 22, 1769, 1195, 813, 273, 2332, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 605, 5698, 14425, 67, 4690, 273, 1654, 1226, 12, 771, 11182, 18, 4690, 16, 1654, 1226, 310, 3247, 16, 776, 22, 18, 542, 9334, 776, 24, 869, 58, 22, 1769, 1195, 813, 273, 2332, 18, 29...
return isMethodBound(name, 1);
return isMethodBound(name, true);
public boolean isMethodDefined(String name) { return isMethodBound(name, 1); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 27969, 8116, 12, 780, 508, 13, 288, 3639, 327, 27969, 3499, 12, 529, 16, 638, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 27969, 8116, 12, 780, 508, 13, 288, 3639, 327, 27969, 3499, 12, 529, 16, 638, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pn.sendAsync(reject);
pn.sendAsync(reject, null);
private boolean forward(Message m, long id, PeerNode pn, short htl, double target, RoutedContext ctx) { Logger.minor(this, "Should forward"); // Forward m = preForward(m, htl); while(true) { PeerNode next = node.peers.closerPeer(pn, ctx.routedTo, target, pn == null); Logger.minor(this, "Next: "+next+" message: "+m); if(next != null) { Logger.minor(this, "Forwarding "+m.getSpec()+" to "+next.getPeer().getPort()); ctx.addSent(next); try { next.sendAsync(m); } catch (NotConnectedException e) { continue; } } else { Logger.minor(this, "Reached dead end for "+m.getSpec()+" on "+node.portNumber); // Reached a dead end... Message reject = DMT.createFNPRoutedRejected(id, htl); if(pn != null) try { pn.sendAsync(reject); } catch (NotConnectedException e) { continue; } } return true; } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/f48ad5c9057903788f63aaa8ccd26e567faf4317/NodeDispatcher.java/buggy/src/freenet/node/NodeDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 5104, 12, 1079, 312, 16, 1525, 612, 16, 10669, 907, 11059, 16, 3025, 366, 6172, 16, 1645, 1018, 16, 7271, 329, 1042, 1103, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 5104, 12, 1079, 312, 16, 1525, 612, 16, 10669, 907, 11059, 16, 3025, 366, 6172, 16, 1645, 1018, 16, 7271, 329, 1042, 1103, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315,...
{ return true; }
{ return true; }
public boolean allTablesAreSelectable() throws SQLException { return true; // For now... }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 777, 6905, 4704, 31544, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 31, 202, 202, 759, 2457, 2037, 2777, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 777, 6905, 4704, 31544, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 31, 202, 202, 759, 2457, 2037, 2777, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
RSZNumber subject = (RSZNumber)context.get(SUBJECT_KEY); return (subject.getMiddleNumber().equals("1234567")); }});
RSZNumber subject = (RSZNumber)context.get(SUBJECT_KEY); String rightNumber = (String)context.get("rightNumber"); return (subject.getRightNumber().equals(rightNumber)); }});
public boolean validate(Map context) { RSZNumber subject = (RSZNumber)context.get(SUBJECT_KEY); return (subject.getMiddleNumber().equals("1234567")); }});
14797 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14797/5d6fb2c62ed24d3808b145169a665623baa34c99/_Contract_RSZNumber.java/buggy/ppw-value/src/toryt/be/peopleware/value_II/_Contract_RSZNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9079, 1071, 1250, 1954, 12, 863, 819, 13, 288, 7734, 14746, 62, 1854, 3221, 273, 261, 13225, 62, 1854, 13, 2472, 18, 588, 12, 8362, 5304, 67, 3297, 1769, 7734, 327, 261, 7857, 18, 588, 21924...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9079, 1071, 1250, 1954, 12, 863, 819, 13, 288, 7734, 14746, 62, 1854, 3221, 273, 261, 13225, 62, 1854, 13, 2472, 18, 588, 12, 8362, 5304, 67, 3297, 1769, 7734, 327, 261, 7857, 18, 588, 21924...
noFlatten = s.init();
noFlatten.add(s.init()); } if (n instanceof For) { For s = (For) n; noFlatten.addAll(s.inits()); neverFlatten.addAll(s.iters()); neverFlatten.add(s.cond()); } if (n instanceof While) { While s = (While) n; neverFlatten.add(s.cond()); } if (n instanceof Do) { Do s = (Do) n; neverFlatten.add(s.cond()); } if (n instanceof Assign) { Assign s = (Assign) n; noFlatten.add(s.left()); noFlatten.add(s.right());
public NodeVisitor enter(Node n) { if (n instanceof Block) { stack.addFirst(new LinkedList()); } if (n instanceof Eval) { // Don't flatten the expression contained in the statement, but // flatten its subexpressions. Eval s = (Eval) n; noFlatten = s.expr(); } if (n instanceof LocalDecl) { // Don't flatten the expression contained in the statement, but // flatten its subexpressions. LocalDecl s = (LocalDecl) n; noFlatten = s.init(); } return this; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/3b80841108eb31f561f5b7aedb99110f817cede6/FlattenVisitor.java/buggy/src/polyglot/visit/FlattenVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 7413, 6103, 12, 907, 290, 13, 288, 202, 430, 261, 82, 1276, 3914, 13, 288, 202, 565, 2110, 18, 1289, 3759, 12, 2704, 10688, 10663, 202, 97, 202, 430, 261, 82, 1276, 13163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 7413, 6103, 12, 907, 290, 13, 288, 202, 430, 261, 82, 1276, 3914, 13, 288, 202, 565, 2110, 18, 1289, 3759, 12, 2704, 10688, 10663, 202, 97, 202, 430, 261, 82, 1276, 13163, ...
RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false;
return ruby.getInterpreter().getDynamicVars().isDefined((RubyId)id);
boolean rb_dvar_defined(ID id) { RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/8e00ad1c7ae96f50ae0bd521483380788f891b7b/parse.java/clean/org/jruby/parser/parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 7138, 67, 72, 1401, 67, 2178, 12, 734, 612, 13, 288, 3639, 534, 1537, 1458, 4153, 273, 22155, 67, 72, 23041, 67, 4699, 31, 3639, 1323, 261, 4699, 480, 446, 13, 288, 5411, 309, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 7138, 67, 72, 1401, 67, 2178, 12, 734, 612, 13, 288, 3639, 534, 1537, 1458, 4153, 273, 22155, 67, 72, 23041, 67, 4699, 31, 3639, 1323, 261, 4699, 480, 446, 13, 288, 5411, 309, 2...
String myCategory = ((ICategorizedThemeElementDefinition) element)
String myCategory = ((ICategorizedThemeElementDefinition) themeElement)
public String getText(Object element) { if (element instanceof IHierarchalThemeElementDefinition) { if (((IHierarchalThemeElementDefinition) element) .getDefaultsTo() != null) { String myCategory = ((ICategorizedThemeElementDefinition) element) .getCategoryId(); ICategorizedThemeElementDefinition def; if (element instanceof ColorDefinition) def = (ICategorizedThemeElementDefinition) themeRegistry .findColor(((IHierarchalThemeElementDefinition) element) .getDefaultsTo()); else def = (ICategorizedThemeElementDefinition) themeRegistry .findFont(((IHierarchalThemeElementDefinition) element) .getDefaultsTo()); if (!ColorsAndFontsPreferencePage.equals(def .getCategoryId(), myCategory)) { return MessageFormat .format( RESOURCE_BUNDLE .getString("defaultFormat"), new Object[] { ((IThemeElementDefinition) element).getName(), def.getName() }); //$NON-NLS-1$ } } } return ((IThemeElementDefinition) element).getName(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/02fa146f0d4f2119e031f6eb96039d1fd0eb2287/ColorsAndFontsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 6701, 12, 921, 930, 13, 288, 5411, 309, 261, 2956, 1276, 467, 44, 5148, 287, 8335, 1046, 1852, 13, 288, 7734, 309, 261, 12443, 45, 44, 5148, 287, 8335, 1046, 1852, 13, 930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 6701, 12, 921, 930, 13, 288, 5411, 309, 261, 2956, 1276, 467, 44, 5148, 287, 8335, 1046, 1852, 13, 288, 7734, 309, 261, 12443, 45, 44, 5148, 287, 8335, 1046, 1852, 13, 930, ...
else LOG.info( "Command completed successfully" );
String verb = " was completed "; if( result.getOperation().equals( ExecutionResult.OPERATION_UNDO ) ) verb = " was undone "; else if( result.getOperation().equals( ExecutionResult.OPERATION_REDO ) ) verb = " was redone "; LOG.info( name + verb + "successfully" );
public void commandCompleted( ExecutionResult result ) { if( result.getError() == null ) { if( result.getCommand() != null ) { String name = result.getCommand().getClass().getName(); if( name.indexOf( "." ) >= 0 ) { name = name.substring( name.lastIndexOf( "." ) + 1 ); } LOG.info( name + " completed successfully" ); } else LOG.info( "Command completed successfully" ); } else { LOG.error( result.getError().getMessage(), result.getError() ); } }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/5f0ef637d3cc642523b2dc18f9c9e01d0a15c03a/CommandExecutor.java/clean/yawl/editor/com/nexusbpm/command/CommandExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1296, 9556, 12, 8687, 1253, 563, 262, 288, 7734, 309, 12, 563, 18, 588, 668, 1435, 422, 446, 262, 288, 10792, 309, 12, 563, 18, 588, 2189, 1435, 480, 446, 262, 288, 13491, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1296, 9556, 12, 8687, 1253, 563, 262, 288, 7734, 309, 12, 563, 18, 588, 668, 1435, 422, 446, 262, 288, 10792, 309, 12, 563, 18, 588, 2189, 1435, 480, 446, 262, 288, 13491, ...
double data[]; double truncated;
Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo;
public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/4beebbe053e6880f34d1244b354a06ee42d3aa30/PAContext.java/buggy/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 1645, 15282, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 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, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 1645, 15282, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 3...
sawSpace = fEntityScanner.skipSpaces();
sawSpace = fEntityScanner.skipDeclSpaces();
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl, String[] pseudoAttributeValues) throws IOException, XNIException { // pseudo-attribute values String version = null; String encoding = null; String standalone = null; // scan pseudo-attributes final int STATE_VERSION = 0; final int STATE_ENCODING = 1; final int STATE_STANDALONE = 2; final int STATE_DONE = 3; int state = STATE_VERSION; boolean dataFoundForTarget = false; boolean sawSpace = fEntityScanner.skipSpaces(); // since pseudoattributes are *not* attributes, // their quotes don't need to be preserved in external parameter entities. // the XMLEntityScanner#scanLiteral method will continue to // emit -1 in such cases when it finds a quote; this is // fine for other methods that parse scanned entities, // but not for the scanning of pseudoattributes. So, // temporarily, we must mark the current entity as not being "literal" XMLEntityManager.ScannedEntity currEnt = fEntityManager.getCurrentEntity(); boolean currLiteral = currEnt.literal; currEnt.literal = false; while (fEntityScanner.peekChar() != '?') { dataFoundForTarget = true; String name = scanPseudoAttribute(scanningTextDecl, fString); switch (state) { case STATE_VERSION: { if (name == fVersionSymbol) { if (!sawSpace) { reportFatalError(scanningTextDecl ? "SpaceRequiredBeforeVersionInTextDecl" : "SpaceRequiredBeforeVersionInXMLDecl", null); } version = fString.toString(); state = STATE_ENCODING; if (!versionSupported(version)) { reportFatalError(getVersionNotSupportedKey(), new Object[]{version}); } } else if (name == fEncodingSymbol) { if (!scanningTextDecl) { reportFatalError("VersionInfoRequired", null); } if (!sawSpace) { reportFatalError(scanningTextDecl ? "SpaceRequiredBeforeEncodingInTextDecl" : "SpaceRequiredBeforeEncodingInXMLDecl", null); } encoding = fString.toString(); state = scanningTextDecl ? STATE_DONE : STATE_STANDALONE; } else { if (scanningTextDecl) { reportFatalError("EncodingDeclRequired", null); } else { reportFatalError("VersionInfoRequired", null); } } break; } case STATE_ENCODING: { if (name == fEncodingSymbol) { if (!sawSpace) { reportFatalError(scanningTextDecl ? "SpaceRequiredBeforeEncodingInTextDecl" : "SpaceRequiredBeforeEncodingInXMLDecl", null); } encoding = fString.toString(); state = scanningTextDecl ? STATE_DONE : STATE_STANDALONE; // TODO: check encoding name; set encoding on // entity scanner } else if (!scanningTextDecl && name == fStandaloneSymbol) { if (!sawSpace) { reportFatalError("SpaceRequiredBeforeStandalone", null); } standalone = fString.toString(); state = STATE_DONE; if (!standalone.equals("yes") && !standalone.equals("no")) { reportFatalError("SDDeclInvalid", new Object[] {standalone}); } } else { reportFatalError("EncodingDeclRequired", null); } break; } case STATE_STANDALONE: { if (name == fStandaloneSymbol) { if (!sawSpace) { reportFatalError("SpaceRequiredBeforeStandalone", null); } standalone = fString.toString(); state = STATE_DONE; if (!standalone.equals("yes") && !standalone.equals("no")) { reportFatalError("SDDeclInvalid", new Object[] {standalone}); } } else { reportFatalError("EncodingDeclRequired", null); } break; } default: { reportFatalError("NoMorePseudoAttributes", null); } } sawSpace = fEntityScanner.skipSpaces(); } // restore original literal value if(currLiteral) currEnt.literal = true; // REVISIT: should we remove this error reporting? if (scanningTextDecl && state != STATE_DONE) { reportFatalError("MorePseudoAttributes", null); } // If there is no data in the xml or text decl then we fail to report error // for version or encoding info above. if (scanningTextDecl) { if (!dataFoundForTarget && encoding == null) { reportFatalError("EncodingDeclRequired", null); } } else { if (!dataFoundForTarget && version == null) { reportFatalError("VersionInfoRequired", null); } } // end if (!fEntityScanner.skipChar('?')) { reportFatalError("XMLDeclUnterminated", null); } if (!fEntityScanner.skipChar('>')) { reportFatalError("XMLDeclUnterminated", null); } // fill in return array pseudoAttributeValues[0] = version; pseudoAttributeValues[1] = encoding; pseudoAttributeValues[2] = standalone; } // scanXMLDeclOrTextDecl(boolean)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/6e8b9b2c25fcbbaefacbd91d553a6af5f534d158/XMLScanner.java/buggy/src/org/apache/xerces/impl/XMLScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4135, 4201, 3456, 1162, 1528, 3456, 12, 6494, 21138, 1528, 3456, 16, 29159, 514, 8526, 12454, 31770, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368, 12454, 17, 4589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4135, 4201, 3456, 1162, 1528, 3456, 12, 6494, 21138, 1528, 3456, 16, 29159, 514, 8526, 12454, 31770, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368, 12454, 17, 4589...
public ExpressionTranslator(ConstraintHandler handler, SQLStatementMaker sql) {
public ExpressionTranslator(ConstraintHandler handler, SelectStatementBuilder sql) {
public ExpressionTranslator(ConstraintHandler handler, SQLStatementMaker sql) { super(); this.handler=handler; this.statementMaker=sql; variableBindings=handler.bindings; // variableNameToNodes=variableBindings.variableNameToNodeMap; setupOperatorMap(); }
7596 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7596/1bb2022adacc2a8313a09608363f73f0d865e86a/ExpressionTranslator.java/buggy/src/de/fuberlin/wiwiss/d2rq/rdql/ExpressionTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5371, 12233, 12, 5806, 1503, 1838, 16, 6766, 3406, 1263, 1847, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4176, 33, 4176, 31, 3639, 333, 18, 11516, 12373, 33, 4669, 31, 3639, 2190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5371, 12233, 12, 5806, 1503, 1838, 16, 6766, 3406, 1263, 1847, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4176, 33, 4176, 31, 3639, 333, 18, 11516, 12373, 33, 4669, 31, 3639, 2190, ...
break;
break outer;
public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } break; } if (queue.isEmpty()) { // Remove up to maxMessages messages from the consumer for (int i = 0; i < maxMessages; i++) { // receiveNoWait if (trace) { log.trace(this + " attempting to get message with receiveNoWait"); } Message m = null; if (!closed) { m = cons.receive(-1); } if (m == null) { if (trace) { log.trace("receiveNoWait did not retrieve any message"); } break; } if (trace) { log.trace("receiveNoWait got message " + m + " adding to queue"); } queue.addLast(m); } if (queue.isEmpty()) { // We didn't get any messages doing receiveNoWait, so let's wait. This returns if // a message is received or by the consumer closing. if (trace) { log.trace(this + " attempting to get message with blocking receive (no timeout)"); } Message m = null; if (!closed) { m = cons.receive(0); } if (m != null) { if (trace) { log.trace("receive (no timeout) got message " + m + " adding to queue"); } queue.addLast(m); } else { // The consumer must have closed if (trace) { log.trace("blocking receive returned null, consumer must have closed"); } break; } } } if (!queue.isEmpty()) { if (trace) { log.trace("there are " + queue.size() + " messages to send to session"); } ServerSession serverSession = serverSessionPool.getServerSession(); JBossSession session = (JBossSession)serverSession.getSession(); MessageListener listener = session.getMessageListener(); if (listener == null) { // Sanity check if (trace) { log.trace(this + ": session " + session + " did not have a set MessageListener"); } } for (int i = 0; i < queue.size(); i++) { MessageProxy m = (MessageProxy)queue.get(i); session.addAsfMessage(m, consumerID, cons); if (trace) { log.trace("added " + m + " to session"); } } if (trace) { log.trace(this + " starting serverSession " + serverSession); } serverSession.start(); if (trace) { log.trace(this + "'s serverSession processed messages"); } queue.clear(); } } if (trace) { log.trace("ConnectionConsumer run() exiting"); } } catch (JMSException e) { //Receive interrupted - ignore } catch (Throwable t) { log.error("Caught Throwable in processing run()", t); } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/07e374de7de6b7e5b2cc24cb9721dda2c85d257e/JBossConnectionConsumer.java/buggy/src/main/org/jboss/jms/client/JBossConnectionConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1086, 1435, 282, 288, 1377, 309, 261, 5129, 13, 288, 613, 18, 5129, 2932, 8704, 1459, 4765, 8863, 289, 1377, 775, 1377, 288, 540, 10688, 2389, 273, 394, 10688, 5621, 540, 1323,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1086, 1435, 282, 288, 1377, 309, 261, 5129, 13, 288, 613, 18, 5129, 2932, 8704, 1459, 4765, 8863, 289, 1377, 775, 1377, 288, 540, 10688, 2389, 273, 394, 10688, 5621, 540, 1323,...
tc.copyToLocal(argv[i++], new File(argv[i++]));
tc.copyToLocal(argv[i++], new Path(argv[i++]));
public static void main(String argv[]) throws IOException { if (argv.length < 1) { System.out.println("Usage: java DFSShell [-local | -dfs <namenode:port>]" + " [-ls <path>] [-lsr <path>] [-du <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm <src>]" + " [-put <localsrc> <dst>] [-copyFromLocal <localsrc> <dst>] [-moveFromLocal <localsrc> <dst>]" + " [-get <src> <localdst>] [-cat <src>] [-copyToLocal <src> <localdst>] [-moveToLocal <src> <localdst>]" + " [-mkdir <path>] [-report]"); return; } Configuration conf = new Configuration(); int i = 0; FileSystem fs = FileSystem.parseArgs(argv, i, conf); String cmd = argv[i++]; try { DFSShell tc = new DFSShell(fs); if ("-put".equals(cmd) || "-copyFromLocal".equals(cmd)) { tc.copyFromLocal(new File(argv[i++]), argv[i++]); } else if ("-moveFromLocal".equals(cmd)) { tc.moveFromLocal(new File(argv[i++]), argv[i++]); } else if ("-get".equals(cmd) || "-copyToLocal".equals(cmd)) { tc.copyToLocal(argv[i++], new File(argv[i++])); } else if ("-cat".equals(cmd)) { tc.cat(argv[i++]); } else if ("-moveToLocal".equals(cmd)) { tc.moveToLocal(argv[i++], new File(argv[i++])); } else if ("-ls".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.ls(arg, false); } else if ("-lsr".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.ls(arg, true); } else if ("-mv".equals(cmd)) { tc.rename(argv[i++], argv[i++]); } else if ("-cp".equals(cmd)) { tc.copy(argv[i++], argv[i++], conf); } else if ("-rm".equals(cmd)) { tc.delete(argv[i++]); } else if ("-du".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.du(arg); } else if ("-mkdir".equals(cmd)) { tc.mkdir(argv[i++]); } else if ("-report".equals(cmd)) { tc.report(); } System.exit(0); } catch (IOException e ) { System.err.println( cmd.substring(1) + ": " + e.getLocalizedMessage() ); System.exit(-1); } finally { fs.close(); } }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DFSShell.java/clean/src/java/org/apache/hadoop/dfs/DFSShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 5717, 1216, 1860, 288, 3639, 309, 261, 19485, 18, 2469, 411, 404, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 2252, 463, 42, 1260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5261, 63, 5717, 1216, 1860, 288, 3639, 309, 261, 19485, 18, 2469, 411, 404, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 2252, 463, 42, 1260, ...
this.fact = fact;
this.fact = fact;
HierarchyUsage(MondrianDef.Relation fact, String foreignKey) { this.fact = fact; this.foreignKey = foreignKey; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/HierarchyUsage.java/buggy/src/main/mondrian/rolap/HierarchyUsage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 12074, 5357, 12, 49, 1434, 566, 304, 3262, 18, 3963, 5410, 16, 514, 12962, 13, 288, 202, 202, 2211, 18, 3493, 273, 5410, 31, 3639, 333, 18, 12774, 653, 273, 12962, 31, 565, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 12074, 5357, 12, 49, 1434, 566, 304, 3262, 18, 3963, 5410, 16, 514, 12962, 13, 288, 202, 202, 2211, 18, 3493, 273, 5410, 31, 3639, 333, 18, 12774, 653, 273, 12962, 31, 565, 289, ...
final int srcMinX = srcRI.getMinX(); final int srcMinY = srcRI.getMinY();
CachableRed srcCR = GraphicsUtil.wrap(srcRI); srcCR = GraphicsUtil.convertToLsRGB(srcCR);
public RenderedImage createRendering(RenderContext rc){ // // Get source's rendered image // RenderedImage srcRI = getSource().createRendering(rc); if(srcRI == null){ return null; } final int srcMinX = srcRI.getMinX(); final int srcMinY = srcRI.getMinY(); RenderingHints hints = rc.getRenderingHints(); BandCombineOp op = new BandCombineOp(matrix, null); // // Wrap source in buffered image // ColorModel cm = srcRI.getColorModel(); Raster srcRR = srcRI.getData(); Point origin = new Point(0, 0); WritableRaster srcWR = Raster.createWritableRaster(srcRR.getSampleModel(), srcRR.getDataBuffer(), origin); /* BufferedImage srcBI = new BufferedImage(cm, srcWR, cm.isAlphaPremultiplied(), null);*/ WritableRaster dstWR = op.filter(srcWR, srcWR); BufferedImage dstBI = new BufferedImage(cm, dstWR, cm.isAlphaPremultiplied(), null); return new ConcreteBufferedImageCachableRed(dstBI, srcMinX, srcMinY); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/28eb05b45fcb86648242c7c7850975dbcd6ab809/ConcreteColorMatrixRable.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/ConcreteColorMatrixRable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 15329, 3639, 368, 3639, 368, 968, 1084, 1807, 7935, 1316, 3639, 368, 3639, 6987, 329, 2040, 1705, 2259, 273, 7889, 7675, 2640, 14261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 15329, 3639, 368, 3639, 368, 968, 1084, 1807, 7935, 1316, 3639, 368, 3639, 6987, 329, 2040, 1705, 2259, 273, 7889, 7675, 2640, 14261...
"This means that we are not able to filter the page, and it may compromize your anonymity.", explanation);
"This means that we are not able to filter the page, and it may compromize your anonymity.</p>", explanation);
public Bucket readFilter(Bucket bucket, BucketFactory bf, String charset, HashMap otherParams, FilterCallback cb) throws DataFilterException, IOException { if (Logger.shouldLog(Logger.DEBUG, this)) Logger.debug( this, "running " + this + " on " + bucket + ',' + charset); InputStream strm = bucket.getInputStream(); Bucket temp = bf.makeBucket(bucket.size()); OutputStream os = temp.getOutputStream(); Reader r; Writer w; try { r = new BufferedReader(new InputStreamReader(strm, charset), 32768); w = new BufferedWriter(new OutputStreamWriter(os, charset), 32768); } catch (UnsupportedEncodingException e) { os.close(); strm.close(); HTMLNode explanation = new HTMLNode("p"); explanation.addChild("b", "Unknown character set!"); explanation.addChild("#", " The page you are about to display has an unknown character set. This means that we are not able to filter the page, and it may compromize your anonymity."); throw new DataFilterException("Warning: Unknown character set ("+charset+ ')', "Warning: Unknown character set ("+HTMLEncoder.encode(charset)+ ')', "<p><b>Unknown character set</b> The page you are about to display has an unknown character set. "+ "This means that we are not able to filter the page, and it may compromize your anonymity.", explanation); } CSSParser parser = new CSSParser(r, w, false, cb); parser.parse(); r.close(); w.close(); return temp; }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/a5eaaae0622844a578e81c1e3fc1fc4ac62a8c50/CSSReadFilter.java/buggy/src/freenet/clients/http/filter/CSSReadFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7408, 855, 1586, 12, 4103, 2783, 16, 7408, 1733, 16222, 16, 514, 4856, 16, 1082, 202, 8658, 1308, 1370, 16, 4008, 2428, 2875, 13, 1216, 1910, 1586, 503, 16, 1082, 202, 14106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7408, 855, 1586, 12, 4103, 2783, 16, 7408, 1733, 16222, 16, 514, 4856, 16, 1082, 202, 8658, 1308, 1370, 16, 4008, 2428, 2875, 13, 1216, 1910, 1586, 503, 16, 1082, 202, 14106, ...
ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent);
ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent, false);
private static ClientGetState uskCreate(ClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/ba61984610fbdc6ae89adf37e39660cc27c3f343/SingleFileFetcher.java/clean/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 8065, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 8065, 26...
"x\\ifdim 0pt<1pt a\\else b\\fi x",
"x\\ifdim 0pt<1pt a\\else b\\fi x\\end",
public void testLess1() throws Exception { assertSuccess(//--- input code --- "x\\ifdim 0pt<1pt a\\else b\\fi x", //--- output channel --- "xax" + TERM); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/214164c9ed1775ade6f72d74fe7722c0fd3e682b/IfdimTest.java/clean/ExTeX/src/test/de/dante/extex/interpreter/primitives/conditional/IfdimTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15313, 21, 1435, 1216, 1185, 288, 3639, 1815, 4510, 12, 759, 6062, 810, 981, 9948, 7734, 315, 92, 1695, 430, 3509, 374, 337, 32, 21, 337, 279, 1695, 12107, 324, 1695, 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, 918, 1842, 15313, 21, 1435, 1216, 1185, 288, 3639, 1815, 4510, 12, 759, 6062, 810, 981, 9948, 7734, 315, 92, 1695, 430, 3509, 374, 337, 32, 21, 337, 279, 1695, 12107, 324, 1695, 2...
generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern );
generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern );
private void updatePreview( ) { String pattern = ""; //$NON-NLS-1$ String fmtStr = ""; //$NON-NLS-1$ String displayName = typeChoicer.getText( ); String category = getCategory4DisplayName( displayName ); setCategory( category ); Date sampleDateTime = new Date( ); if ( getPreviewText( ) != null ) { try { sampleDateTime = new Date( getPreviewText( ) ); } catch ( Exception e ) { // } } if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_DATE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MUDIUM_DATE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_DATE.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_TIME.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MEDIUM_TIME.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_TIME.equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM.equals( category ) ) { pattern = formatCode.getText( ); if ( StringUtil.isBlank( previewTextBox.getText( ) ) ) { fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); } else { String text = previewTextBox.getText( ); try { fmtStr = new DateFormatter( pattern ).format( new Date( text ) ); } catch ( Exception e ) { fmtStr = Messages.getString( "FormatDateTimePreferencePage.preview.invalidDateTimeToPreview" ); //$NON-NLS-1$ } } if ( fmtStr == null || fmtStr == "" ) //$NON-NLS-1$ { fmtStr = Messages.getString( "FormatDateTimePreferencePage.preview.invalidFormatCode" ); //$NON-NLS-1$ } cusPreviewLabel.setText( fmtStr ); setPatternStr( pattern ); return; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 11124, 12, 262, 202, 95, 202, 202, 780, 1936, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 780, 1325, 1585, 273, 1408, 31, 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, 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, 1089, 11124, 12, 262, 202, 95, 202, 202, 780, 1936, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 780, 1325, 1585, 273, 1408, 31, 4329, 3993, 17, 5106, 17,...
public void insertComment ( String text ) { if (_locale.noSync()) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } else synchronized ( _locale ) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } }
public void insertComment ( String text ) { if (preCheck()) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } else synchronized ( _locale ) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } }
public void insertComment ( String text ) { if (_locale.noSync()) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } else synchronized ( _locale ) { _locale.enter(); try { _insertComment( text ); } finally { _locale.exit(); } } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/a1f48f72e7c153478b5e02010ea2ef2d5c077965/Cursor.java/buggy/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2243, 4469, 261, 514, 977, 262, 288, 309, 261, 67, 6339, 18, 2135, 4047, 10756, 288, 389, 6339, 18, 2328, 5621, 775, 288, 389, 6387, 4469, 12, 977, 11272, 289, 3095, 288, 389...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2243, 4469, 261, 514, 977, 262, 288, 309, 261, 67, 6339, 18, 2135, 4047, 10756, 288, 389, 6339, 18, 2328, 5621, 775, 288, 389, 6387, 4469, 12, 977, 11272, 289, 3095, 288, 389...
UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException {
UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException {
protected void notifyEndActiveHandler(String name, UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException { if (name.equals(PROCESS_REFERENCE_TAG)) { IndependentListProcess dep = (IndependentListProcess) targetProcess; Object result = activeHandler.getResultObject(); proActiveDescriptor.addProcessToSequenceList(dep, (String) result); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 5066, 1638, 3896, 1503, 12, 780, 508, 16, 5411, 1351, 27296, 1503, 2695, 1503, 13, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 309, 261, 529, 18, 14963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 918, 5066, 1638, 3896, 1503, 12, 780, 508, 16, 5411, 1351, 27296, 1503, 2695, 1503, 13, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 309, 261, 529, 18, 14963, ...
throw new InternalError("!!! TODO: SVG_COLORTYPE_RGBCOLOR_ICCCOLOR");
return convertRGBICCColor(e, c, opacity, ctx);
public static Color convertStopColorToPaint(CSSStyleDeclaration decl) { CSSValue val = decl.getPropertyCSSValue(CSS_STOP_COLOR_PROPERTY); if (val.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) { CSSPrimitiveValue v = (CSSPrimitiveValue)val; CSSPrimitiveValue vv = (CSSPrimitiveValue)decl.getPropertyCSSValue(CSS_STOP_OPACITY_PROPERTY); float opacity = convertOpacity(vv); return convertColor(v.getRGBColorValue(), opacity); } else { // SVGColor SVGColor c = (SVGColor)val; throw new InternalError("!!! TODO: SVG_COLORTYPE_RGBCOLOR_ICCCOLOR"); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/d08654a694b00bee634dc768b9200c09397cc5a4/CSSUtilities.java/buggy/sources/org/apache/batik/bridge/CSSUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5563, 1765, 4947, 2957, 774, 12699, 12, 10276, 2885, 6094, 3496, 13, 288, 3639, 6765, 620, 1244, 273, 3496, 18, 588, 1396, 10276, 620, 12, 10276, 67, 17513, 67, 10989, 67, 9900...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5563, 1765, 4947, 2957, 774, 12699, 12, 10276, 2885, 6094, 3496, 13, 288, 3639, 6765, 620, 1244, 273, 3496, 18, 588, 1396, 10276, 620, 12, 10276, 67, 17513, 67, 10989, 67, 9900...
}); }
}); }
public void launchChanged(final ILaunch launch) { if (!fTrackedLaunches.contains(launch)) return; ILaunchConfiguration config= launch.getLaunchConfiguration(); IType launchedType= null; int port= -1; if (config != null) { // test whether the launch defines the JUnit attributes String portStr= launch.getAttribute(JUnitBaseLaunchConfiguration.PORT_ATTR); String typeStr= launch.getAttribute(JUnitBaseLaunchConfiguration.TESTTYPE_ATTR); if (portStr != null && typeStr != null) { port= Integer.parseInt(portStr); IJavaElement element= JavaCore.create(typeStr); if (element instanceof IType) launchedType= (IType)element; } } if (launchedType != null) { fTrackedLaunches.remove(launch); final int finalPort= port; final IType finalType= launchedType; getDisplay().asyncExec(new Runnable() { public void run() { connectTestRunner(launch, finalType, finalPort); } }); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/76db3937785c4f6e4590cc46067fa082fea20800/JUnitPlugin.java/clean/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 5033, 12, 6385, 467, 9569, 8037, 13, 288, 202, 202, 430, 16051, 74, 4402, 329, 9569, 281, 18, 12298, 12, 20738, 3719, 1082, 202, 2463, 31, 6862, 202, 2627, 4760, 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, 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, 8037, 5033, 12, 6385, 467, 9569, 8037, 13, 288, 202, 202, 430, 16051, 74, 4402, 329, 9569, 281, 18, 12298, 12, 20738, 3719, 1082, 202, 2463, 31, 6862, 202, 2627, 4760, 17...
getViewer().refresh();
((MarkerAdapter) getViewerInput()).scheduleMarkerCalculation();
private IAction getFlatAction() { IAction flatAction = new Action() { /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getStyle() */ public int getStyle() { return AS_RADIO_BUTTON; } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getText() */ public String getText() { return MarkerMessages.ProblemView_flatMenu; } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getImageDescriptor() */ public ImageDescriptor getImageDescriptor() { return IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_LCL_FLAT_LAYOUT); } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event) */ public void runWithEvent(Event event) { if (isChecked()) { IDEWorkbenchPlugin .getDefault() .getPluginPreferences() .setValue( IDEInternalPreferences.PROBLEMS_HIERARCHAL_MODE, false); regenerateLayout(); getViewer().setSorter(buildSorter()); getViewer().refresh(); } } }; flatAction.setChecked(!isHierarchalMode()); return flatAction; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/37b8e551c368c0ea13a0c34840143e15ad8d93db/ProblemView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 1803, 336, 16384, 1803, 1435, 288, 202, 202, 45, 1803, 3569, 1803, 273, 394, 4382, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1803, 336, 16384, 1803, 1435, 288, 202, 202, 45, 1803, 3569, 1803, 273, 394, 4382, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, ...
super(parent, "One", "The first step");
super("One", "The first step");
public Step2(MarkupContainer parent) { super(parent, "One", "The first step"); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/59ef2ce9baa44b851262f4310b2454a85dff7daa/StaticWizardWithPanels.java/clean/wicket-examples/src/java/wicket/examples/wizard/StaticWizardWithPanels.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 8693, 22, 12, 13111, 2170, 982, 13, 202, 202, 95, 1082, 202, 9565, 12, 2938, 16, 315, 3335, 3113, 315, 1986, 1122, 2235, 8863, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 8693, 22, 12, 13111, 2170, 982, 13, 202, 202, 95, 1082, 202, 9565, 12, 2938, 16, 315, 3335, 3113, 315, 1986, 1122, 2235, 8863, 202, 202, 97, 2, -100, -100, -100, -100, -100, ...
topicId, messageId, req.getRemoteUser());
messageId, req.getRemoteUser());
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); MBMessageDisplay messageDisplay = MBMessageLocalServiceUtil.getMessageDisplay( topicId, messageId, req.getRemoteUser()); req.setAttribute(WebKeys.MESSAGE_BOARDS_MESSAGE, messageDisplay); return mapping.findForward("portlet.message_boards.view_message"); } catch (Exception e) { if (e != null && e instanceof NoSuchMessageException || e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); return mapping.findForward("portlet.message_boards.error"); } else { throw e; } } }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/d6b02fdb73be07a1fc7332713e89293b3822dfb8/ViewMessageAction.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/action/ViewMessageAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1743, 12, 1082, 202, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 21305, 809, 642, 16, 1082, 202, 3420, 691, 1111, 16, 6987, 1064, 400, 13, 202, 202, 15069, 1185, 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, 202, 482, 4382, 8514, 1743, 12, 1082, 202, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 21305, 809, 642, 16, 1082, 202, 3420, 691, 1111, 16, 6987, 1064, 400, 13, 202, 202, 15069, 1185, 28...
if (! ((JMenu) c).isTopLevelMenu())
if (!((JMenu) c).isTopLevelMenu())
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new Rectangle(); // icon rectangle Rectangle vr = new Rectangle(); // view rectangle Rectangle br = new Rectangle(); // border rectangle Rectangle ar = new Rectangle(); // accelerator rectangle Rectangle cr = new Rectangle(); // checkIcon rectangle int vertAlign = m.getVerticalAlignment(); int horAlign = m.getHorizontalAlignment(); int vertTextPos = m.getVerticalTextPosition(); int horTextPos = m.getHorizontalTextPosition(); Font f = m.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); SwingUtilities.calculateInnerArea(m, br); SwingUtilities.calculateInsetArea(br, m.getInsets(), vr); paintBackground(g, m, m.getBackground()); /* MenuItems insets are equal to menuItems margin, space between text and menuItems border. We need to paint insets region as well. */ Insets insets = m.getInsets(); br.x -= insets.left; br.y -= insets.top; br.width += insets.right + insets.left; br.height += insets.top + insets.bottom; // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems if ((m.isSelected() && checkIcon == null) || m.getModel().isArmed() && (m.getParent() instanceof MenuElement)) { if (m.isContentAreaFilled()) { g.setColor(selectionBackground); g.fillRect(br.x, br.y, br.width, br.height); } } else { if (m.isContentAreaFilled()) { g.setColor(m.getBackground()); g.fillRect(br.x, br.y, br.width, br.height); } } // If this menu item is a JCheckBoxMenuItem then paint check icon if (checkIcon != null) { SwingUtilities.layoutCompoundLabel(m, fm, null, checkIcon, vertAlign, horAlign, vertTextPos, horTextPos, vr, cr, tr, defaultTextIconGap); checkIcon.paintIcon(m, g, cr.x, cr.y); // We need to calculate position of the menu text and position of // user menu icon if there exists one relative to the check icon. // So we need to adjust view rectangle s.t. its starting point is at // checkIcon.width + defaultTextIconGap. vr.x = cr.x + cr.width + defaultTextIconGap; } // if this is a submenu, then paint arrow icon to indicate it. if (arrowIcon != null && (c instanceof JMenu)) { if (! ((JMenu) c).isTopLevelMenu()) { int width = arrowIcon.getIconWidth(); int height = arrowIcon.getIconHeight(); arrowIcon.paintIcon(m, g, vr.width - width + defaultTextIconGap, vr.y + 2); } } // paint text and user menu icon if it exists Icon i = m.getIcon(); SwingUtilities.layoutCompoundLabel(c, fm, m.getText(), i, vertAlign, horAlign, vertTextPos, horTextPos, vr, ir, tr, defaultTextIconGap); if (i != null) i.paintIcon(c, g, ir.x, ir.y); paintText(g, m, tr, m.getText()); // paint accelerator String acceleratorText = ""; if (m.getAccelerator() != null) { acceleratorText = getAcceleratorText(m.getAccelerator()); fm = g.getFontMetrics(acceleratorFont); ar.width = fm.stringWidth(acceleratorText); ar.x = br.width - ar.width; vr.x = br.width - ar.width; SwingUtilities.layoutCompoundLabel(m, fm, acceleratorText, null, vertAlign, horAlign, vertTextPos, horTextPos, vr, ir, ar, defaultTextIconGap); paintAccelerator(g, m, ar, acceleratorText); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/045a5b41cdfa747889101d3993040acf89788bc4/BasicMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 12574, 12958, 12, 17558, 314, 16, 29058, 276, 16, 16011, 866, 5554, 16, 1171, 9079, 16011, 12274, 5554, 16, 5563, 5412, 16, 1171, 9079, 5563, 16231, 16, 509, 805, 1528, 5554, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 12574, 12958, 12, 17558, 314, 16, 29058, 276, 16, 16011, 866, 5554, 16, 1171, 9079, 16011, 12274, 5554, 16, 5563, 5412, 16, 1171, 9079, 5563, 16231, 16, 509, 805, 1528, 5554, 1...
public String getUserGroupName( ) { return "user"; }
public String getUserGroupName() { return "user"; }
public String getUserGroupName( ) { return "user"; }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 4735, 3943, 12, 262, 202, 95, 202, 2463, 315, 1355, 14432, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 4735, 3943, 12, 262, 202, 95, 202, 2463, 315, 1355, 14432, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
int index = 0;
private int getIndexOfCategory( String category ) { int index = 0; if ( initChoiceArray( ) != null ) { for ( int i = 0; i < choiceArray.length; i++ ) { if ( choiceArray[i][1].equals( category ) ) { return i; } } } return index; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/68e6e831ed1a7d01155ecde63d74c89397dae569/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 8088, 951, 4457, 12, 514, 3150, 262, 202, 95, 202, 202, 474, 770, 273, 374, 31, 202, 202, 430, 261, 1208, 10538, 1076, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 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, 509, 8088, 951, 4457, 12, 514, 3150, 262, 202, 95, 202, 202, 474, 770, 273, 374, 31, 202, 202, 430, 261, 1208, 10538, 1076, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202,...
logger.debug("Pulling file: remote@" + srcFile.getAbsolutePath() +
logger.debug("Pulling file: "+node.getNodeInformation().getHostName()+"@" + srcFile.getAbsolutePath() +
public static File pullFile(Node node, File srcFile, File dstFile) throws IOException, ProActiveException { if (logger.isDebugEnabled()) { logger.debug("Pulling file: remote@" + srcFile.getAbsolutePath() + " -> local@" + dstFile.getAbsolutePath()); } //local verification if (dstFile.exists() && !dstFile.canWrite()) { logger.error("Can't write to " + dstFile.getAbsoluteFile()); throw new IOException("Can't write to " + dstFile.getAbsoluteFile()); } File futureFile = null; try { //TODO Possible optimization is to keep these AO in pools. FileTransferService ftsRemote = (FileTransferService) ProActive.newActive(FileTransferService.class.getName(), null, node); FileTransferService ftsLocal = (FileTransferService) ProActive.newActive(FileTransferService.class.getName(), null); //We ask the remote AO to send the file to us futureFile = ftsRemote.sendFile(ftsLocal, srcFile, dstFile); //this call is asynchronous //futureFile = ftsLocal.receiveFile(ftsRemote, srcFile, dstFile); //alternative } catch (Exception e) { e.printStackTrace(); throw new ProActiveException( "Unable to connect or use ProActive Node: " + node); } return futureFile; }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/ca81bc712f8e376da3518511958efc510fba5bd1/FileTransferService.java/buggy/src/org/objectweb/proactive/core/filetransfer/FileTransferService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1387, 6892, 812, 12, 907, 756, 16, 1387, 24672, 16, 1387, 3046, 812, 13, 3639, 1216, 1860, 16, 1186, 3896, 503, 288, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 6892, 812, 12, 907, 756, 16, 1387, 24672, 16, 1387, 3046, 812, 13, 3639, 1216, 1860, 16, 1186, 3896, 503, 288, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 54...
DefaultPicoContainer pico = new DefaultPicoContainer();
DefaultPicoContainer pico = new DefaultPicoContainer( new CachingComponentAdapterFactory( new SetterInjectionComponentAdapterFactory( new ConstructorInjectionComponentAdapterFactory())));
public void XXXtestOrderOfStartShouldBeDependencyOrderAndStopAndDisposeTheOpposite() throws Exception { DefaultPicoContainer pico = new DefaultPicoContainer(); pico.registerComponent( new CachingComponentAdapter( new ConstructorInjectionComponentAdapter("recording", StringBuffer.class))); pico.registerComponentImplementation(Four.class); pico.registerComponentImplementation(Two.class); pico.registerComponentImplementation(One.class); pico.registerComponentImplementation(Three.class); pico.start(); pico.stop(); pico.dispose(); assertEquals("<One<Two<Three<FourFour>Three>Two>One>!Four!Three!Two!One", pico.getComponentInstance("recording").toString()); }
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/d8fc6207376fdf9d1989c899bb2d70cc8d3421ec/SetterInjectionComponentAdapterTestCase.java/clean/java/picocontainer/src/test/org/picocontainer/defaults/SetterInjectionComponentAdapterTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11329, 3813, 2448, 951, 1685, 14309, 1919, 7787, 2448, 1876, 4947, 1876, 1669, 4150, 1986, 3817, 4974, 1435, 1216, 1185, 288, 3639, 2989, 52, 10764, 2170, 293, 10764, 273, 394, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11329, 3813, 2448, 951, 1685, 14309, 1919, 7787, 2448, 1876, 4947, 1876, 1669, 4150, 1986, 3817, 4974, 1435, 1216, 1185, 288, 3639, 2989, 52, 10764, 2170, 293, 10764, 273, 394, 2...
String oldValue = fValue; String name = fCombo.getText( ); fValue = getValueForName( name ); setPresentsDefaultValue( false ); fireValueChanged( VALUE, oldValue, fValue );
valueChanged( VALUE );
public void widgetSelected( SelectionEvent evt ) { String oldValue = fValue; String name = fCombo.getText( ); fValue = getValueForName( name ); setPresentsDefaultValue( false ); fireValueChanged( VALUE, oldValue, fValue ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3db900b760af24686a4f6ffff7e4dc15c19b1036/EditableComboFieldEditor.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/EditableComboFieldEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 6324, 262, 9506, 202, 95, 6862, 202, 780, 11144, 273, 284, 620, 31, 6862, 202, 780, 508, 273, 284, 16156, 18, 588, 1528, 12, 11272, 6862, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 6324, 262, 9506, 202, 95, 6862, 202, 780, 11144, 273, 284, 620, 31, 6862, 202, 780, 508, 273, 284, 16156, 18, 588, 1528, 12, 11272, 6862, 20...
performDataTypeTest(TEST_SMALLINT_MODEL_WITH_DEFAULT, new Integer(256), null, new Integer(-32768));
performDataTypeTest(TEST_SMALLINT_MODEL_WITH_DEFAULT, new Integer(256), null, new Integer(-30000));
public void testSmallIntWithDefault() { performDataTypeTest(TEST_SMALLINT_MODEL_WITH_DEFAULT, new Integer(256), null, new Integer(-32768)); }
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/dd3b57f398c93fd891c1a3cb6158c07d64333a51/DatatypesTestBase.java/buggy/src/test/org/apache/ddlutils/io/DatatypesTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19187, 1702, 24502, 1435, 565, 288, 3639, 3073, 6273, 4709, 12, 16961, 67, 23882, 3217, 67, 17391, 67, 9147, 67, 5280, 16, 394, 2144, 12, 5034, 3631, 446, 16, 394, 2144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19187, 1702, 24502, 1435, 565, 288, 3639, 3073, 6273, 4709, 12, 16961, 67, 23882, 3217, 67, 17391, 67, 9147, 67, 5280, 16, 394, 2144, 12, 5034, 3631, 446, 16, 394, 2144, ...
return false;
return loader.packageExists(name);
public boolean packageExists(String name) { // A package exists only if a class is loaded from the package. // The outer resolver knows this; this resolver does not. // return loader.packageExists(name); return false; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/a898150d8b8800ba1ca3c7915ef070f4e34dd0dc/LoadedClassResolver.java/clean/src/polyglot/types/LoadedClassResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2181, 4002, 12, 780, 508, 13, 288, 565, 368, 432, 2181, 1704, 1338, 309, 279, 667, 353, 4203, 628, 326, 2181, 18, 565, 368, 1021, 6390, 5039, 21739, 333, 31, 333, 5039, 1552...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2181, 4002, 12, 780, 508, 13, 288, 565, 368, 432, 2181, 1704, 1338, 309, 279, 667, 353, 4203, 628, 326, 2181, 18, 565, 368, 1021, 6390, 5039, 21739, 333, 31, 333, 5039, 1552...
public List getReports( ReportPlugin reportPlugin, ReportSet reportSet, MavenProject project, MavenSession session, ArtifactRepository localRepository )
public List getReports( ReportPlugin reportPlugin, ReportSet reportSet, MavenProject project, MavenSession session )
public List getReports( ReportPlugin reportPlugin, ReportSet reportSet, MavenProject project, MavenSession session, ArtifactRepository localRepository ) throws PluginManagerException, PluginVersionResolutionException, PluginConfigurationException, ArtifactResolutionException { Plugin forLookup = new Plugin(); forLookup.setGroupId( reportPlugin.getGroupId() ); forLookup.setArtifactId( reportPlugin.getArtifactId() ); forLookup.setVersion( reportPlugin.getVersion() ); PluginDescriptor pluginDescriptor = verifyPlugin( forLookup, project, session.getSettings(), localRepository ); List reports = new ArrayList(); for ( Iterator i = pluginDescriptor.getMojos().iterator(); i.hasNext(); ) { MojoDescriptor mojoDescriptor = (MojoDescriptor) i.next(); // TODO: check ID is correct for reports // if the POM configured no reports, give all from plugin if ( reportSet == null || reportSet.getReports().contains( mojoDescriptor.getGoal() ) ) { try { String id = null; if ( reportSet != null ) { id = reportSet.getId(); } MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, id ); String executionId = mojoExecution.getExecutionId(); Xpp3Dom dom = project.getReportConfiguration( reportPlugin.getGroupId(), reportPlugin.getArtifactId(), executionId ); Mojo reportMojo = getConfiguredMojo( mojoDescriptor, session, dom, project, true ); if ( reportMojo != null ) { reports.add( reportMojo ); } } catch ( ComponentLookupException e ) { throw new PluginManagerException( "Error looking up plugin: ", e ); } } } return reports; }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/701ef520a30c7b30dcdf2e4a4f06548cc06fbf0b/DefaultPluginManager.java/clean/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 5561, 4363, 12, 8706, 3773, 2605, 3773, 16, 8706, 694, 2605, 694, 16, 17176, 4109, 1984, 16, 17176, 2157, 1339, 16, 18701, 14022, 3305, 1191, 3305, 262, 3639, 1216, 6258, 28020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5561, 4363, 12, 8706, 3773, 2605, 3773, 16, 8706, 694, 2605, 694, 16, 17176, 4109, 1984, 16, 17176, 2157, 1339, 16, 18701, 14022, 3305, 1191, 3305, 262, 3639, 1216, 6258, 28020, ...
int pid = pg_stream.ReceiveInteger(4);
pid = pg_stream.ReceiveInteger(4);
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = new byte[sql.length()]; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; SQLException final_error = null; if (sql.length() > 8192) throw new PSQLException("postgresql.con.toolong",sql); try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count); } }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/cd68ecfef628022de360b1839fcad0f13239b2cd/Connection.java/buggy/src/interfaces/jdbc/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 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, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, ...
public void test04CheckRevoked() throws Exception { log.debug(">test04CheckRevoked()"); ICertificateStoreSessionRemote store = storehome.create(); // List all certificates for user foo, which we have created in TestSignSession Collection certfps = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo","TODO"); assertNotNull("failed to list certs", certfps); assertTrue("failed to list certs", certfps.size() != 0); // Verify that cert are revoked Iterator iter = certfps.iterator(); while (iter.hasNext()) { X509Certificate cert = (X509Certificate)iter.next(); String fp = CertTools.getFingerprintAsString(cert); CertificateDataPK revpk = new CertificateDataPK(fp); CertificateData rev = home.findByPrimaryKey(revpk); assertTrue(rev.getStatus() == CertificateData.CERT_REVOKED); } log.debug("<test04CheckRevoked()"); }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/54e9f4413131502a5933c3a38133dee6ddfca3b1/TestCertificateData.java/buggy/src/java/se/anatom/ejbca/ca/store/junit/TestCertificateData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 3028, 1564, 10070, 14276, 1435, 15069, 503, 95, 1330, 18, 4148, 2932, 34, 3813, 3028, 1564, 10070, 14276, 1435, 8863, 2871, 2543, 2257, 2157, 1933, 352, 25626, 33, 2233, 8712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 3028, 1564, 10070, 14276, 1435, 15069, 503, 95, 1330, 18, 4148, 2932, 34, 3813, 3028, 1564, 10070, 14276, 1435, 8863, 2871, 2543, 2257, 2157, 1933, 352, 25626, 33, 2233, 8712, ...
PrefUtil.savePrefs();
protected void okPressed() { //Save the preference stores first PrefUtil.savePrefs(); super.okPressed(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f13dc93cf6bbee05dc4151a519029ba4b354c99d/WorkbenchPreferenceDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 1435, 288, 202, 202, 759, 4755, 326, 11555, 9064, 1122, 202, 202, 23218, 1304, 18, 5688, 1386, 2556, 5621, 202, 202, 9565, 18, 601, 24624, 5621, 202, 97, 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, 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, 918, 1529, 24624, 1435, 288, 202, 202, 759, 4755, 326, 11555, 9064, 1122, 202, 202, 23218, 1304, 18, 5688, 1386, 2556, 5621, 202, 202, 9565, 18, 601, 24624, 5621, 202, 97, 2, ...
final int currentlySelected = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue();
final int currentlySelected = ((Integer) previousRepeatIdToIndex.get(repeatId)).intValue();
public void runAction(final PipelineContext pipelineContext, String targetId, XFormsEventHandlerContainer eventHandlerContainer, Element actionElement, ActionContext actionContext) { // Check that we understand the action element final String actionNamespaceURI = actionElement.getNamespaceURI(); if (!XFormsConstants.XFORMS_NAMESPACE_URI.equals(actionNamespaceURI)) { throw new OXFException("Invalid action namespace: " + actionNamespaceURI); } // Set binding context setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final String actionEventName = actionElement.getName(); if (XFormsActions.XFORMS_SETVALUE_ACTION.equals(actionEventName)) { // 10.1.9 The setvalue Element // xforms:setvalue final String value = actionElement.attributeValue("value"); final String content = actionElement.getStringValue(); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String valueToSet; if (value != null) { // Value to set is computed with an XPath expression Map namespaceContext = Dom4jUtils.getNamespaceContextNoDefault(actionElement); valueToSet = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), value, namespaceContext, null, xformsControls.getFunctionLibrary(), null); } else { // Value to set is static content valueToSet = content; } // Set value on current node final Node currentNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(currentNode, valueToSet); if (actionContext != null) { // "XForms Actions that change only the value of an instance node results in setting // the flags for recalculate, revalidate, and refresh to true and making no change to // the flag for rebuild". actionContext.recalculate = true; actionContext.revalidate = true; actionContext.refresh = true; } else { // Send events directly final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_RESET_ACTION.equals(actionEventName)) { // 10.1.11 The reset Element final String modelId = actionElement.attributeValue("model"); final Object modelObject = containingDocument.getObjectById(pipelineContext, modelId); if (modelObject instanceof XFormsModel) { final XFormsModel model = (XFormsModel) modelObject; containingDocument.dispatchEvent(pipelineContext, new XFormsResetEvent(model)); } else { throw new OXFException("xforms:reset model attribute must point to an xforms:model element."); } // "the reset action takes effect immediately and clears all of the flags." if (actionContext != null) actionContext.setAll(false); } else if (XFormsActions.XFORMS_ACTION_ACTION.equals(actionEventName)) { // 10.1.1 The action Element final ActionContext newActionContext = (actionContext == null) ? new ActionContext() : null; for (Iterator i = actionElement.elementIterator(); i.hasNext();) { final Element embeddedActionElement = (Element) i.next(); runAction(pipelineContext, targetId, eventHandlerContainer, embeddedActionElement, (newActionContext == null) ? actionContext : newActionContext ); } if (newActionContext != null) { // Binding context has to be reset as it may have been modified by sub-actions setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Process deferred behavior if (newActionContext.rebuild) containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); if (newActionContext.recalculate) containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); if (newActionContext.revalidate) containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); if (newActionContext.refresh) containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_REBUILD_ACTION.equals(actionEventName)) { // 10.1.3 The rebuild Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.rebuild = false; } else if (XFormsActions.XFORMS_RECALCULATE_ACTION.equals(actionEventName)) { // 10.1.4 The recalculate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.recalculate = false; } else if (XFormsActions.XFORMS_REVALIDATE_ACTION.equals(actionEventName)) { // 10.1.5 The revalidate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.revalidate = false; } else if (XFormsActions.XFORMS_REFRESH_ACTION.equals(actionEventName)) { // 10.1.6 The refresh Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.refresh = false; } else if (XFormsActions.XFORMS_TOGGLE_ACTION.equals(actionEventName)) { // 9.2.3 The toggle Element final String caseId = actionElement.attributeValue("case"); // Update xforms:switch info and dispatch events xformsControls.updateSwitchInfo(pipelineContext, caseId); } else if (XFormsActions.XFORMS_INSERT_ACTION.equals(actionEventName)) { // 9.3.5 The insert Element final String atAttribute = actionElement.attributeValue("at"); final String positionAttribute = actionElement.attributeValue("position"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the insert action has no effect." // "2. The node-set binding identifies a homogeneous collection in the instance // data. The final member of this collection is cloned to produce the node that will // be inserted." final Element clonedElement; { final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); } // "Finally, this newly created node is inserted into the instance data at the location // specified by attributes position and at." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String insertionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... int insertionIndex = "NaN".equals(insertionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(insertionIndexString) ; // Adjust index to be in range if (insertionIndex > collectionToBeUpdated.size()) insertionIndex = collectionToBeUpdated.size(); if (insertionIndex < 1) insertionIndex = 1; // Find actual insertion point and insert final Element indexElement = (Element) collectionToBeUpdated.get(insertionIndex - 1); final Element parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Insert new element (changes to the list are reflected in the document) final int newNodeIndex; if ("after".equals(positionAttribute) || "NaN".equals(insertionIndexString)) { siblingElements.add(actualIndex + 1, clonedElement); newNodeIndex = insertionIndex + 1; } else if ("before".equals(positionAttribute)) { siblingElements.add(actualIndex, clonedElement); newNodeIndex = insertionIndex; } else { throw new OXFException("Invalid 'position' attribute: " + positionAttribute + ". Must be either 'before' or 'after'."); } // "3. The index for any repeating sequence that is bound to the homogeneous // collection where the node was added is updated to point to the newly added node. // The indexes for inner nested repeat collections are re-initialized to // startindex." // Find list of affected repeat ids final Map boundRepeatIds = new HashMap(); final Map childrenRepeatIds = new HashMap(); findAffectedRepeatIds(pipelineContext, parentElement, boundRepeatIds, childrenRepeatIds); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat information for the ids found if (boundRepeatIds.size() != 0 || childrenRepeatIds.size() != 0) { for (Iterator i = boundRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); currentControlsState.updateRepeatIndex(repeatId, newNodeIndex); } for (Iterator i = childrenRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); //final int newIndex = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); final int newIndex = 1; currentControlsState.updateRepeatIndex(repeatId, newIndex); } } // "4. If the insert is successful, the event xforms-insert is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsInsertEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_DELETE_ACTION.equals(actionEventName)) { // 9.3.6 The delete Element final String atAttribute = actionElement.attributeValue("at"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the delete action has no effect." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Element parentElement; int deletionIndex; { final String deletionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... deletionIndex = "NaN".equals(deletionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(deletionIndexString) ; // Adjust index to be in range if (deletionIndex > collectionToBeUpdated.size()) deletionIndex = collectionToBeUpdated.size(); if (deletionIndex < 1) deletionIndex = 1; // Find actual deletion point final Element indexElement = (Element) collectionToBeUpdated.get(deletionIndex - 1); parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Delete node siblingElements.remove(actualIndex); } // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat information for the ids found // Find list of affected repeat ids final Map boundRepeatIds = new HashMap(); final Map childrenRepeatIds = new HashMap(); findAffectedRepeatIds(pipelineContext, parentElement, boundRepeatIds, childrenRepeatIds); // Update repeat information for the ids found if (boundRepeatIds.size() != 0 || childrenRepeatIds.size() != 0) { boolean updateInnerRepeats = false; for (Iterator i = boundRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); final int currentlySelected = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); if (currentlySelected == deletionIndex) { if (deletionIndex == collectionToBeUpdated.size()) { // o "When the last remaining item in the collection is removed, // the index position becomes 0." // o "When the index was pointing to the deleted node, which was // the last item in the collection, the index will point to the new // last node of the collection and the index of inner repeats is // reinitialized." currentControlsState.updateRepeatIndex(repeatId, currentlySelected - 1); updateInnerRepeats = true; } else { // o "When the index was pointing to the deleted node, which was // not the last item in the collection, the index position is not // changed and the index of inner repeats is re-initialized." updateInnerRepeats = true; } } } if (updateInnerRepeats) { for (Iterator i = childrenRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); //final int newIndex = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); final int newIndex = 1; currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } // "4. If the delete is successful, the event xforms-delete is dispatched." containingDocument.dispatchEvent(pipelineContext, new org.orbeon.oxf.xforms.event.events.XFormsDeleteEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_SETINDEX_ACTION.equals(actionEventName)) { // 9.3.7 The setindex Element final String repeatId = actionElement.attributeValue("repeat"); final String indexXPath = actionElement.attributeValue("index"); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String indexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "string(number(" + indexXPath + "))", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); if ("NaN".equals(indexString)) { // "If the index evaluates to NaN the action has no effect." } else { // Rebuild ControlsState if needed as we are going to make some changes if (xformsControls.getCurrentControlsState() == xformsControls.getInitialControlsState()) xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final int index = Integer.parseInt(indexString); final Map repeatIdToRepeatControlInfo = currentControlsState.getRepeatIdToRepeatControlInfo(); final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) repeatIdToRepeatControlInfo.get(repeatId); if (index <= 0) { // "If the selected index is 0 or less, an xforms-scroll-first event is dispatched // and the index is set to 1." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollFirstEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, 1); } else { final List children = repeatControlInfo.getChildren(); if (children != null && index > children.size()) { // "If the selected index is greater than the index of the last repeat // item, an xforms-scroll-last event is dispatched and the index is set to // that of the last item." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollLastEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, children.size()); } else { // Otherwise just set the index currentControlsState.updateRepeatIndex(repeatId, index); } } // "The indexes for inner nested repeat collections are re-initialized to 1." final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(repeatId); if (nestedRepeatIds != null) { for (Iterator i = nestedRepeatIds.iterator(); i.hasNext();) { final String currentRepeatId = (String) i.next(); currentControlsState.updateRepeatIndex(currentRepeatId, 1); } } } } else if (XFormsActions.XFORMS_SEND_ACTION.equals(actionEventName)) { // 10.1.10 The send Element // Find submission object final String submissionId = actionElement.attributeValue("submission"); if (submissionId == null) throw new OXFException("Missing mandatory submission attribute on xforms:send element."); final Object submission = containingDocument.getObjectById(pipelineContext, submissionId); if (submission == null || !(submission instanceof XFormsModelSubmission)) throw new OXFException("submission attribute on xforms:send element does not refer to existing xforms:submission element."); // Dispatch event to submission object containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitEvent((XFormsEventTarget) submission)); } else if (XFormsActions.XFORMS_DISPATCH_ACTION.equals(actionEventName)) { // 10.1.2 The dispatch Element // Mandatory attributes final String newEventName = actionElement.attributeValue("name"); if (newEventName == null) throw new OXFException("Missing mandatory name attribute on xforms:dispatch element."); final String newEventTargetId = actionElement.attributeValue("target"); if (newEventTargetId == null) throw new OXFException("Missing mandatory target attribute on xforms:dispatch element."); // Optional attributes final boolean newEventBubbles; { final String newEventBubblesString = actionElement.attributeValue("bubbles"); // FIXME: "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." newEventBubbles = Boolean.getBoolean((newEventBubblesString == null) ? "true" : newEventBubblesString); } final boolean newEventCancelable; { // FIXME: "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." final String newEventCancelableString = actionElement.attributeValue("cancelable"); newEventCancelable = Boolean.getBoolean((newEventCancelableString == null) ? "true" : newEventCancelableString); } final Object newTargetObject = containingDocument.getObjectById(pipelineContext, newEventTargetId); if (newTargetObject instanceof XFormsEventTarget) { // This can be anything containingDocument.dispatchEvent(pipelineContext, XFormsEventFactory.createEvent(newEventName, (XFormsEventTarget) newTargetObject, newEventBubbles, newEventCancelable)); } else { throw new OXFException("Invalid event target for id: " + newEventTargetId); } } else { throw new OXFException("Invalid action requested: " + actionEventName); } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/f47125486958c2c8d813e9358be6afdc01f7d210/XFormsActionInterpreter.java/clean/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1803, 12, 6385, 13671, 1042, 5873, 1042, 16, 514, 27729, 16, 1139, 18529, 16402, 2170, 30441, 2170, 16, 3010, 1301, 1046, 16, 4382, 1042, 1301, 1042, 13, 288, 3639, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1803, 12, 6385, 13671, 1042, 5873, 1042, 16, 514, 27729, 16, 1139, 18529, 16402, 2170, 30441, 2170, 16, 3010, 1301, 1046, 16, 4382, 1042, 1301, 1042, 13, 288, 3639, 368, ...
try { spec = SpecReader.readSpecification( fileName, isXmlFileInPackage, TestYAtomicTask.class ); spec.setBetaVersion(YSpecification._Beta2); spec.verify(); List<YDecomposition> decomps = spec.getDecompositions(); for(int index = 0; index < decomps.size(); index++) { YDecomposition temp = decomps.get(index); if( "Root".equals( temp.getId() ) ) { assert temp instanceof YNet : "decomposition 'Root' should be a net!"; root = (YNet) temp; } } if( root == null ) { fail( fileName + " should have a net called 'Root'" ); } AbstractEngine engine2 = EngineFactory.createYEngine(); EngineClearer.clear(engine2); engine2.loadSpecification(spec); String idString = engine2.launchCase(null, spec.getID(), null, null); YNetRunner netRunner1 = TestYNetRunner.getYNetRunner(engine2, new YIdentifier(idString)); Document d = new Document(); d.setRootElement(new Element("data")); children = netRunner1.attemptToFireAtomicTask("SignOff_3"); assertFalse("Spec input condition contains identifier", spec.getRootNet().getInputCondition().containsIdentifier()); boolean contains = false; for( YExternalNetElement element : netRunner1.getBusyTasks() ) { if( element.getID().equals( "SignOff_3" ) ) { contains = true; } } assertTrue("Task 'SignOff_3' busy:" + netRunner1.getBusyTasks(), contains); } catch(Exception e) { StringWriter sw = new StringWriter(); sw.write( e.toString() + "\n" ); e.printStackTrace(new PrintWriter(sw)); System.err.println( sw.toString() ); fail( sw.toString() ); }
spec = SpecReader.readSpecification( fileName, isXmlFileInPackage, TestYAtomicTask.class ); spec.setBetaVersion(YSpecification._Beta2); spec.verify(); List<YDecomposition> decomps = spec.getDecompositions(); for(int index = 0; index < decomps.size(); index++) { YDecomposition temp = decomps.get(index); if( "Root".equals( temp.getId() ) ) { assert temp instanceof YNet : "decomposition 'Root' should be a net!"; root = (YNet) temp; } } if( root == null ) { fail( fileName + " should have a net called 'Root'" ); } AbstractEngine engine2 = EngineFactory.createYEngine(); EngineClearer.clear(engine2); engine2.loadSpecification(spec); String idString = engine2.launchCase(null, spec.getID(), null, null); YNetRunner netRunner1 = TestYNetRunner.getYNetRunner(engine2, new YIdentifier(idString)); Document d = new Document(); d.setRootElement(new Element("data")); children = netRunner1.attemptToFireAtomicTask("SignOff_3"); assertFalse("Spec input condition contains identifier", spec.getRootNet().getInputCondition().containsIdentifier()); boolean contains = false; for( YExternalNetElement element : netRunner1.getBusyTasks() ) { if( element.getID().equals( "SignOff_3" ) ) { contains = true; } } assertTrue("Task 'SignOff_3' busy:" + netRunner1.getBusyTasks(), contains);
public void testEnablementMappingsSpecC() { String fileName = "EnablementMappingsSpecC.xml"; boolean isXmlFileInPackage = true; YSpecification spec = null; YNet root = null; List children = null; try { spec = SpecReader.readSpecification( fileName, isXmlFileInPackage, TestYAtomicTask.class ); spec.setBetaVersion(YSpecification._Beta2); spec.verify(); List<YDecomposition> decomps = spec.getDecompositions(); for(int index = 0; index < decomps.size(); index++) { YDecomposition temp = decomps.get(index); if( "Root".equals( temp.getId() ) ) { assert temp instanceof YNet : "decomposition 'Root' should be a net!"; root = (YNet) temp; } } if( root == null ) { fail( fileName + " should have a net called 'Root'" ); } AbstractEngine engine2 = EngineFactory.createYEngine(); EngineClearer.clear(engine2); engine2.loadSpecification(spec); String idString = engine2.launchCase(null, spec.getID(), null, null); YNetRunner netRunner1 = TestYNetRunner.getYNetRunner(engine2, new YIdentifier(idString)); Document d = new Document(); d.setRootElement(new Element("data")); children = netRunner1.attemptToFireAtomicTask("SignOff_3"); assertFalse("Spec input condition contains identifier", spec.getRootNet().getInputCondition().containsIdentifier()); boolean contains = false; for( YExternalNetElement element : netRunner1.getBusyTasks() ) { if( element.getID().equals( "SignOff_3" ) ) { contains = true; } } assertTrue("Task 'SignOff_3' busy:" + netRunner1.getBusyTasks(), contains); } catch(Exception e) { StringWriter sw = new StringWriter(); sw.write( e.toString() + "\n" ); e.printStackTrace(new PrintWriter(sw)); System.err.println( sw.toString() ); fail( sw.toString() ); } }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/8bb1bc0b226c7853a6ed2d9451cc4db680fe84d8/TestYAtomicTask.java/clean/yawl/test/au/edu/qut/yawl/elements/TestYAtomicTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8317, 475, 7742, 1990, 39, 1435, 288, 377, 202, 780, 3968, 273, 315, 8317, 475, 7742, 1990, 39, 18, 2902, 14432, 377, 202, 6494, 353, 4432, 812, 382, 2261, 273, 638, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8317, 475, 7742, 1990, 39, 1435, 288, 377, 202, 780, 3968, 273, 315, 8317, 475, 7742, 1990, 39, 18, 2902, 14432, 377, 202, 6494, 353, 4432, 812, 382, 2261, 273, 638, 31...
return LocaleUtils.getLocalizedString("muc.room.summary.total_room");
return LocaleUtils.getLocalizedString("muc.stats.active_group_chats.units");
private void addTotalRoomStats() { // Register a statistic. Statistic statistic = new Statistic() { public String getName() { return LocaleUtils.getLocalizedString("muc.room.summary.total_room"); } public Type getStatType() { return Type.count; } public String getDescription() { return LocaleUtils.getLocalizedString("muc.room.summary.total_room"); } public String getUnits() { return LocaleUtils.getLocalizedString("muc.room.summary.total_room"); } public double sample() { return getNumberChatRooms(); } }; StatisticsManager.getInstance().addStatistic(roomsStatKey, statistic); }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/7d499fe79d982423f737f89aaada8aa54ff7fb3f/MultiUserChatServerImpl.java/buggy/src/java/org/jivesoftware/wildfire/muc/spi/MultiUserChatServerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 5269, 13646, 4195, 1435, 288, 3639, 368, 5433, 279, 21605, 18, 3639, 8269, 5846, 21605, 273, 394, 8269, 5846, 1435, 288, 5411, 1071, 514, 1723, 1435, 288, 7734, 327, 6458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 5269, 13646, 4195, 1435, 288, 3639, 368, 5433, 279, 21605, 18, 3639, 8269, 5846, 21605, 273, 394, 8269, 5846, 1435, 288, 5411, 1071, 514, 1723, 1435, 288, 7734, 327, 6458, ...
IOUtil.writeInt( dos, column.getDriverPosition( ) ); IOUtil.writeString( dos, column.getName( ) ); IOUtil.writeString( dos, column.getLabel( ) ); IOUtil.writeString( dos, column.getAlias( ) ); IOUtil.writeString( dos, column.getDataType( ).getName( ) ); IOUtil.writeString( dos, column.getNativeTypeName( ) ); IOUtil.writeBool( dos, column.isCustom( ) ); if ( column.getDriverProvidedDataType( ) == null ) IOUtil.writeString( dos, null ); else IOUtil.writeString( dos, column.getDriverProvidedDataType( ) .getName( ) );
if ( resultSetNameSet.contains( column.getName( ) ) ) { IOUtil.writeInt( dos, column.getDriverPosition( ) ); IOUtil.writeString( dos, column.getName( ) ); IOUtil.writeString( dos, column.getLabel( ) ); IOUtil.writeString( dos, column.getAlias( ) ); IOUtil.writeString( dos, column.getDataType( ).getName( ) ); IOUtil.writeString( dos, column.getNativeTypeName( ) ); IOUtil.writeBool( dos, column.isCustom( ) ); if ( column.getDriverProvidedDataType( ) == null ) IOUtil.writeString( dos, null ); else IOUtil.writeString( dos, column.getDriverProvidedDataType( ).getName( ) ); }
public void doSave( OutputStream outputStream ) throws DataException { assert outputStream != null; DataOutputStream dos = new DataOutputStream( outputStream ); int size = m_fieldCount; try { IOUtil.writeInt( outputStream, size ); for ( int i = 0; i < size; i++ ) { ResultFieldMetadata column = projectedCols[i]; IOUtil.writeInt( dos, column.getDriverPosition( ) ); IOUtil.writeString( dos, column.getName( ) ); IOUtil.writeString( dos, column.getLabel( ) ); IOUtil.writeString( dos, column.getAlias( ) ); IOUtil.writeString( dos, column.getDataType( ).getName( ) ); IOUtil.writeString( dos, column.getNativeTypeName( ) ); IOUtil.writeBool( dos, column.isCustom( ) ); if ( column.getDriverProvidedDataType( ) == null ) IOUtil.writeString( dos, null ); else IOUtil.writeString( dos, column.getDriverProvidedDataType( ) .getName( ) ); } dos.close( ); } catch ( IOException e ) { throw new DataException( ResourceConstants.RD_SAVE_ERROR, e, "Result Class" ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/05ba87af39f5b3800a836e283565551a50c7b6e9/ResultClass.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 4755, 12, 8962, 14956, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 14956, 480, 446, 31, 9506, 202, 751, 4632, 16153, 273, 394, 28680, 12, 14956, 11272, 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, 741, 4755, 12, 8962, 14956, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 14956, 480, 446, 31, 9506, 202, 751, 4632, 16153, 273, 394, 28680, 12, 14956, 11272, 9506, 202, ...
l_out.print( ' ' ); l_out.println( l_val );
out.print( ' ' ); out.println( val );
public String compose( MultiMap a_attrHash ) { Object l_val = null; String l_key = null; Iterator l_keys = a_attrHash.keySet().iterator(); Iterator l_values = null; Collection l_valueCol = null; StringWriter l_sw = new StringWriter(); PrintWriter l_out = new PrintWriter( l_sw ); while ( l_keys.hasNext() ) { l_key = ( String ) l_keys.next(); l_valueCol = ( Collection ) a_attrHash.get( l_key ); l_values = l_valueCol.iterator(); if ( l_valueCol.isEmpty() ) { continue; } else if ( l_valueCol.size() == 1 ) { l_out.print( l_key ); l_out.print( ':' ); l_val = l_values.next(); if ( l_val.getClass().isArray() ) { l_out.print( ": " ); l_out.println( base64encode( ( byte[] ) l_val ) ); } else { l_out.print( ' ' ); l_out.println( l_val ); } continue; } while ( l_values.hasNext() ) { l_out.print( l_key ); l_out.print( ':' ); l_val = l_values.next(); if ( l_val.getClass().isArray() ) { l_out.print( ": " ); l_out.println( base64encode( ( byte[] ) l_val ) ); } else { l_out.print( ' ' ); l_out.println( l_val ); } } } return l_sw.getBuffer().toString(); }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/0f6df9849de10807595e87e279b521f2470ac7a2/LdifComposerImpl.java/clean/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifComposerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 11458, 12, 5991, 863, 279, 67, 1747, 2310, 262, 565, 288, 3639, 1033, 328, 67, 1125, 273, 446, 31, 3639, 514, 328, 67, 856, 273, 446, 31, 3639, 4498, 328, 67, 2452, 273, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11458, 12, 5991, 863, 279, 67, 1747, 2310, 262, 565, 288, 3639, 1033, 328, 67, 1125, 273, 446, 31, 3639, 514, 328, 67, 856, 273, 446, 31, 3639, 4498, 328, 67, 2452, 273, 27...
if (columns != null && columns.length >= 1) columns[0].setResizable(false); }
if (columns != null && columns.length >= 1) columns[0].setResizable(false); }
protected void createColumns(Table table) { super.createColumns(table); TableColumn[] columns = table.getColumns(); if (columns != null && columns.length >= 1) columns[0].setResizable(false); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/16e5278a583ea26e11e141a4b15c010243882051/ProblemView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 3380, 12, 1388, 1014, 13, 288, 3639, 2240, 18, 2640, 3380, 12, 2121, 1769, 3639, 3555, 1494, 8526, 2168, 273, 1014, 18, 588, 3380, 5621, 3639, 309, 261, 5112, 480, 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, 4750, 918, 752, 3380, 12, 1388, 1014, 13, 288, 3639, 2240, 18, 2640, 3380, 12, 2121, 1769, 3639, 3555, 1494, 8526, 2168, 273, 1014, 18, 588, 3380, 5621, 3639, 309, 261, 5112, 480, 446, ...
m_columnReplacements.put("ifservices.nodeid", new RowHasBogusData("ifservices", "nodeId"));
m_columnReplacements.put("ifservices.nodeid", new RowHasBogusData("ifservices", "nodeId"));
public Installer() { AutoIntegerIdMapStore snmpInterfaceId = new AutoIntegerIdMapStore(1, new String[] { "nodeid", "ipaddr", "snmpifindex" }); m_columnReplacements.put("snmpinterface.id", snmpInterfaceId); AutoIntegerIdMapStore ipInterfaceId = new AutoIntegerIdMapStore(1, new String[] { "nodeid", "ipaddr", "ifindex" }); m_columnReplacements.put("ipinterface.id", ipInterfaceId); MapStoreIdGetter IpInterfaceSnmpInterfaceId = new MapStoreIdGetter(snmpInterfaceId, new String[] { "nodeid", "ipaddr", "ifindex" }, true); m_columnReplacements.put("ipinterface.snmpinterfaceid", IpInterfaceSnmpInterfaceId); AutoIntegerIdMapStore ifServicesId = new AutoIntegerIdMapStore(1, new String[] { "nodeid", "ipaddr", "serviceid" }); m_columnReplacements.put("ifservices.id", ifServicesId); MapStoreIdGetter ifServicesIpInterfaceId = new MapStoreIdGetter(ipInterfaceId, new String[] { "nodeid", "ipaddr", "ifindex" }, false); m_columnReplacements.put("ifservices.ipinterfaceid", ifServicesIpInterfaceId); MapStoreIdGetter outagesifServiceId = new MapStoreIdGetter(ifServicesId, new String[] { "nodeid", "ipaddr", "serviceid" }, false); m_columnReplacements.put("outages.ifserviceid", outagesifServiceId); m_columnReplacements.put("events.eventsource", new EventSourceReplacement()); m_columnReplacements.put("outages.outageid", new AutoInteger(1)); m_columnReplacements.put("snmpinterface.nodeid", new RowHasBogusData("snmpInterface", "nodeId")); m_columnReplacements.put("snmpinterface.snmpifindex", new RowHasBogusData("snmpInterface", "snmpIfIndex")); m_columnReplacements.put("ipinterface.nodeid", new RowHasBogusData("ipInterface", "nodeId")); m_columnReplacements.put("ipinterface.ipaddr", new RowHasBogusData("ipInterface", "ipAddr")); m_columnReplacements.put("ifservices.nodeid", new RowHasBogusData("ifservices", "nodeId")); m_columnReplacements.put("ifservices.ipaddr", new RowHasBogusData("ifservices", "ipaddr")); m_columnReplacements.put("ifservices.serviceid", new RowHasBogusData("ifservices", "serviceId")); m_columnReplacements.put("outages.nodeid", new RowHasBogusData("outages", "nodeId")); m_columnReplacements.put("outages.serviceid", new RowHasBogusData("outages", "serviceId")); /* * This is totally bogus. outages.svcregainedeventid is a foreign * key that points at events.eventid, and a fixed replacement of zero * will break, because there should never be an event with an ID of * zero. I don't think it ever got executed before due to the * null replacement only being performed if a column was marked as * NOT NULL. */ /* m_columnReplacements.put("outages.svcregainedeventid", new FixedIntegerReplacement(0)); */ // Disabled for the same reason as above /* m_columnReplacements.put("notifications.eventid", new FixedIntegerReplacement(0)); */ m_columnReplacements.put("usersnotified.id", new AutoInteger(1)); m_columnReplacements.put("assets.id", new AutoInteger(1)); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/9c0a59382d378a750edf84524762ab71e335b4b3/Installer.java/clean/opennms-install/src/main/java/org/opennms/install/Installer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10284, 264, 1435, 288, 3639, 8064, 4522, 548, 863, 2257, 15366, 1358, 548, 273, 5411, 394, 8064, 4522, 548, 863, 2257, 12, 21, 16, 394, 514, 8526, 288, 315, 2159, 350, 3113, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10284, 264, 1435, 288, 3639, 8064, 4522, 548, 863, 2257, 15366, 1358, 548, 273, 5411, 394, 8064, 4522, 548, 863, 2257, 12, 21, 16, 394, 514, 8526, 288, 315, 2159, 350, 3113, 315, ...
System.err.println(comp.getClass()); if(comp instanceof PanelWindowContainer .DockablePanel)
public void run()
public void closeCurrentArea() { Component comp = view.getFocusOwner(); while(comp != null) { System.err.println(comp.getClass()); if(comp instanceof PanelWindowContainer .DockablePanel) { PanelWindowContainer container = ((PanelWindowContainer.DockablePanel) comp).getWindowContainer(); container.show(null); return; } comp = comp.getParent(); } getToolkit().beep(); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/0cf4956e282d3b6bbc2194f8116a568150ff76f7/DockableWindowManager.java/clean/org/gjt/sp/jedit/gui/DockableWindowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1746, 3935, 5484, 1435, 202, 95, 202, 202, 1841, 1161, 273, 1476, 18, 588, 9233, 5541, 5621, 202, 202, 17523, 12, 2919, 480, 446, 13, 202, 202, 95, 1082, 202, 3163, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1746, 3935, 5484, 1435, 202, 95, 202, 202, 1841, 1161, 273, 1476, 18, 588, 9233, 5541, 5621, 202, 202, 17523, 12, 2919, 480, 446, 13, 202, 202, 95, 1082, 202, 3163, 18, ...
return super.getObject(type, value); }
return super.getObject(type, value); }
public Object getObject(String type, String value) throws SQLException { if (typemap != null) { SQLData d = (SQLData) typemap.get(type); if (d != null) { // Handle the type (requires SQLInput & SQLOutput classes to be implemented) throw org.postgresql.Driver.notImplemented(); } } // Default to the original method return super.getObject(type, value); }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 6455, 12, 780, 618, 16, 514, 460, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 723, 1458, 480, 446, 13, 202, 202, 95, 1082, 202, 3997, 751, 302, 273, 261, 3997, 751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 6455, 12, 780, 618, 16, 514, 460, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 723, 1458, 480, 446, 13, 202, 202, 95, 1082, 202, 3997, 751, 302, 273, 261, 3997, 751, ...
iCodeTop = addToken(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth;
int index = getDoubleIndex(num); iCodeTop = addIndexOp(Token.NUMBER, index, iCodeTop); } stackChange(1);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; int savedStackDepth = itsStackDepth; int stackDelta = 0; // expected stack change for subtree code boolean stackShouldBeZero = false; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.getFunctionType() != FunctionNode.FUNCTION_STATEMENT) { stackDelta = 1; // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addIcode(Icode_CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else { stackShouldBeZero = true; } break; } case Token.SCRIPT : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : // Skip case condition child = child.getNext(); // fallthrough case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.EMPTY : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.LOCAL_BLOCK : stackShouldBeZero = true; if ((itsLocalTop & ~0xFF) != 0) { throw Context.reportRuntimeError( "Program too complex (out of locals)"); } node.putIntProp(Node.LOCAL_PROP, itsLocalTop); ++itsLocalTop; if (itsLocalTop > itsData.itsMaxLocals) { itsData.itsMaxLocals = itsLocalTop; } iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsLocalTop; break; case Token.LOCAL_LOAD : { stackDelta = 1; iCodeTop = addToken(Token.LOCAL_LOAD, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.COMMA : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.INIT_LIST : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addIcode(Icode_DUP, iCodeTop); // No stack adjusting: USE_STACK in subtree will do it iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackDelta = 1; itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.SWITCH : { stackShouldBeZero = true; Node.Jump switchNode = (Node.Jump)node; iCodeTop = updateLineNumber(switchNode, iCodeTop); iCodeTop = generateICode(child, iCodeTop); ObjArray cases = (ObjArray) switchNode.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.SHEQ, iCodeTop); itsStackDepth--; Node.Target target = new Node.Target(); thisCase.addChildAfter(target, first); // If true, Icode_IFEQ_POP will jump and remove case value // from stack iCodeTop = addGoto(target, Icode_IFEQ_POP, iCodeTop); itsStackDepth--; } iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; Node defaultNode = (Node) switchNode.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node.Target defaultTarget = new Node.Target(); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node.Target breakTarget = switchNode.target; iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : stackShouldBeZero = true; markTargetLabel((Node.Target)node, iCodeTop); break; case Token.NEW : case Token.CALL : { stackDelta = 1; if (type == Token.NEW) { iCodeTop = generateICode(child, iCodeTop); } else { iCodeTop = generateCallFunAndThis(child, iCodeTop); if (itsStackDepth - savedStackDepth != 2) Kit.codeBug(); } int argCount = 0; while ((child = child.getNext()) != null) { iCodeTop = generateICode(child, iCodeTop); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addIcode(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } // adjust stack if (type == Token.NEW) { // f, args -> results itsStackDepth -= argCount; } else { // f, thisObj, args -> results itsStackDepth -= (argCount + 1); } iCodeTop = addIndex(argCount, iCodeTop); if (argCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = argCount; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.FINALLY : { stackShouldBeZero = true; // Account for incomming exception or GOTOSUB address ++itsStackDepth; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int finallyRegister = getLocalBlockRef(node); iCodeTop = addToken(Token.LOCAL_SAVE, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); itsStackDepth--; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (itsStackDepth != 0) Kit.codeBug(); child = child.getNext(); } iCodeTop = addIcode(Icode_RETSUB, iCodeTop); iCodeTop = addByte(finallyRegister, iCodeTop); break; } case Token.AND : case Token.OR : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIcode(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int afterSecondJumpStart = iCodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; iCodeTop = addForwardGoto(jump, iCodeTop); itsStackDepth--; iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(afterSecondJumpStart, iCodeTop); break; } case Token.HOOK : { stackDelta = 1; Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); iCodeTop = generateICode(child, iCodeTop); int elseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); itsStackDepth--; iCodeTop = generateICode(ifThen, iCodeTop); int afterElseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(elseJumpStart, iCodeTop); itsStackDepth = savedStackDepth; iCodeTop = generateICode(ifElse, iCodeTop); resolveForwardGoto(afterElseJumpStart, iCodeTop); break; } case Token.GETPROP : stackDelta = 1; iCodeTop = visitGetProp(iCodeTop, node, child, false); break; case Token.GETELEM : stackDelta = 1; iCodeTop = visitGetElem(iCodeTop, node, child, false); break; case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: case Token.IN : case Token.INSTANCEOF : case Token.LE : case Token.LT : case Token.GE : case Token.GT : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.POS : case Token.NEG : case Token.NOT : case Token.BITNOT : case Token.TYPEOF : case Token.VOID : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); if (type == Token.VOID) { iCodeTop = addToken(Token.POP, iCodeTop); iCodeTop = addToken(Token.UNDEFINED, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } break; case Token.SETPROP : case Token.SETPROP_OP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUP, iCodeTop); if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { throw badTree(node); } // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_SETPARENT, iCodeTop); } else { throw badTree(node); } itsStackDepth--; } else { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : case Token.SETELEM_OP : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETELEM_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETELEM, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETELEM, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.SETNAME, firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOFNAME : { stackDelta = 1; String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addStringOp(Icode_TYPEOFNAME, name, iCodeTop); stackChange(1); } else { iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); stackChange(1); iCodeTop = addToken(Token.TYPEOF, iCodeTop); } break; } case Token.BINDNAME : case Token.NAME : case Token.STRING : stackDelta = 1; iCodeTop = addStringOp(type, node.getString(), iCodeTop); stackChange(1); break; case Token.INC : case Token.DEC : { stackDelta = 1; int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addIcode(type == Token.INC ? Icode_VARINC : Icode_VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); int icode; if (childType == Token.GETPROP) { icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; } else { icode = (type == Token.INC) ? Icode_ELEMINC : Icode_ELEMDEC; } iCodeTop = addIcode(icode, iCodeTop); itsStackDepth--; break; } default : { iCodeTop = addStringOp(type == Token.INC ? Icode_NAMEINC : Icode_NAMEDEC, child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { stackDelta = 1; double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addToken(Token.ZERO, iCodeTop); // Check for negative zero if (1.0 / num < 0.0) { iCodeTop = addToken(Token.NEG, iCodeTop); } } else if (inum == 1) { iCodeTop = addToken(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addIcode(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addIcode(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addToken(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POPV : stackShouldBeZero = true; // fallthrough case Token.POP : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.ENTERWITH : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENTERWITH, iCodeTop); itsStackDepth--; break; case Token.CATCH_SCOPE : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.CATCH_SCOPE, node.getString(), iCodeTop); break; case Token.LEAVEWITH : stackShouldBeZero = true; iCodeTop = addToken(Token.LEAVEWITH, iCodeTop); break; case Token.TRY : { stackShouldBeZero = true; Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); Node catchTarget = tryNode.target; Node finallyTarget = tryNode.getFinally(); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (tryEnd >= 0) Kit.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } else if (child == finallyTarget) { if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth, exceptionObjectLocal); break; } case Token.THROW : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.THROW, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); itsStackDepth--; break; case Token.RETURN : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addIcode(Icode_RETUNDEF, iCodeTop); } break; case Token.RETURN_POPV : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = addToken(Token.RETURN_POPV, iCodeTop); break; case Token.GETVAR : { stackDelta = 1; String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { stackDelta = 1; if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: case Token.UNDEFINED: stackDelta = 1; iCodeTop = addToken(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUM_INIT : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENUM_INIT, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUM_NEXT : case Token.ENUM_ID : { stackDelta = 1; iCodeTop = addToken(type, iCodeTop); iCodeTop = addLocalBlockRef(node, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.REGEXP : { stackDelta = 1; int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addToken(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ARRAYLIT: case Token.OBJECTLIT: stackDelta = 1; iCodeTop = visitLiteral(iCodeTop, node, child); break; default : throw badTree(node); } if (stackDelta != itsStackDepth - savedStackDepth) { //System.out.println("Bad stack delta: type="+Token.name(type)+" expected="+stackDelta+" real="+ (itsStackDepth - savedStackDepth)); Kit.codeBug(); } if (stackShouldBeZero && !(stackDelta == 0 && itsStackDepth == 0)) { Kit.codeBug(); } return iCodeTop; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/e88881f3a6bd2c7e5dc034fb562e82c4759ceacb/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 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, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3...
setSize(w, h);
windowWidth = w; windowHeight = h;
private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3829, 1225, 12, 474, 341, 16, 509, 366, 13, 565, 288, 3639, 13037, 5518, 1225, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 3639, 509, 1835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3829, 1225, 12, 474, 341, 16, 509, 366, 13, 565, 288, 3639, 13037, 5518, 1225, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 3639, 509, 1835, ...
area.setContextId(getContextId());
/** compatibility with web services*/ if (contextParam == null){ String contextId = getContextId(); if (contextId == null){ throw new IllegalStateException("Cannot retrive current context"); } area.setContextId(contextId); } else{ area.setContextId(contextParam); }
public Area createArea(String typeId) { Area area = new AreaImpl(); area.setUuid(getNextUuid()); area.setTypeUuid(typeId); area.setCreated(new Date()); area.setCreatedBy(getCurrentUser()); area.setContextId(getContextId()); LOG.debug("createArea executed with areaId: " + area.getUuid()); return area; }
52248 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52248/41934406021540f08ac695f762798e556bf7fb8e/AreaManagerImpl.java/clean/messageforums-component-impl/src/java/org/sakaiproject/component/app/messageforums/AreaManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16668, 752, 5484, 12, 780, 24361, 13, 288, 3639, 16668, 5091, 273, 394, 16668, 2828, 5621, 3639, 5091, 18, 542, 5897, 12, 588, 2134, 5897, 10663, 3639, 5091, 18, 542, 559, 5897, 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, 16668, 752, 5484, 12, 780, 24361, 13, 288, 3639, 16668, 5091, 273, 394, 16668, 2828, 5621, 3639, 5091, 18, 542, 5897, 12, 588, 2134, 5897, 10663, 3639, 5091, 18, 542, 559, 5897, 12,...
if (value != null) return value; return ""; }
if (value != null) return value; return ""; }
protected Object getNonzeroValue(Object value) { if (value != null) return value; return ""; //$NON-NLS-1$ }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/7d9b7d776646b5bcee3ee1b866b0c7c47827cd17/SchemaObjectPropertySource.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaObjectPropertySource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 28207, 7124, 620, 12, 921, 460, 13, 288, 202, 202, 430, 261, 1132, 480, 446, 13, 1082, 202, 2463, 460, 31, 202, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 28207, 7124, 620, 12, 921, 460, 13, 288, 202, 202, 430, 261, 1132, 480, 446, 13, 1082, 202, 2463, 460, 31, 202, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, ...
while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false);
while (itr.hasNext()) { closePerspective((Perspective) itr.next(), false, false); }
public void closeAllPerspectives(boolean saveEditors, boolean closePage) { if (perspList.isEmpty()) return; // Always unzoom if (isZoomed()) zoomOut(); // Close all editors if (!closeAllEditors(saveEditors)) return; // Deactivate the active perspective and part setPerspective((Perspective) null); // Close each perspective in turn PerspectiveList oldList = perspList; perspList = new PerspectiveList(); Iterator itr = oldList.iterator(); while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false); if (closePage) { close(); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1595, 14781, 1181, 3606, 12, 6494, 1923, 4666, 1383, 16, 1250, 1746, 1964, 13, 288, 3639, 309, 261, 10422, 84, 682, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 368, 14178,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1595, 14781, 1181, 3606, 12, 6494, 1923, 4666, 1383, 16, 1250, 1746, 1964, 13, 288, 3639, 309, 261, 10422, 84, 682, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 368, 14178,...
println(" private final static byte YY_ATTRIBUTE[] = {");
println(" private static final byte YY_ATTRIBUTE[] = {");
private void emitAttributes() { if (dfa.numStates <= 0) return; println(" /**"); println(" * YY_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>"); println(" */"); println(" private final static byte YY_ATTRIBUTE[] = {"); int i,j, attribute; print(" "); for (i = 0, j = 0; i < dfa.numStates-1; i++, j++) { if (j >= 16) { j = 0; println(); print(" "); } attribute = 0; if ( dfa.isFinal[i] ) attribute = FINAL; if ( dfa.isPushback[i] ) attribute|= PUSHBACK; if ( dfa.isLookEnd[i] ) attribute|= LOOKEND; if ( !isTransition[i] ) attribute|= NOLOOK; print( attribute, 2 ); print( ", " ); } attribute = 0; if ( dfa.isFinal[dfa.numStates-1] ) attribute = FINAL; if ( dfa.isPushback[dfa.numStates-1] ) attribute|= PUSHBACK; if ( dfa.isLookEnd[dfa.numStates-1] ) attribute|= LOOKEND; if ( !isTransition[dfa.numStates-1] ) attribute|= NOLOOK; print( attribute, 2 ); println(); println(" };"); println(); }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/75257681b9349c4cb3083056cb573bf6ad4d0964/Emitter.java/buggy/jflex/src/JFlex/Emitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 2498, 1435, 288, 3639, 309, 261, 72, 507, 18, 2107, 7629, 1648, 374, 13, 327, 31, 3639, 3785, 2932, 225, 1783, 8863, 565, 3785, 2932, 282, 380, 1624, 61, 67, 11616, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 2498, 1435, 288, 3639, 309, 261, 72, 507, 18, 2107, 7629, 1648, 374, 13, 327, 31, 3639, 3785, 2932, 225, 1783, 8863, 565, 3785, 2932, 282, 380, 1624, 61, 67, 11616, 63,...
public void setHeadline(String v) { this.headline = v;
public void setHeadline( String v ) { this.headline = v;
public void setHeadline(String v) { this.headline = v; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6d0e4a435951c15acd5d27d9826c58746e50db10/Document.java/buggy/server/src/imcode/server/document/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1414, 1369, 12, 780, 225, 331, 13, 288, 202, 2211, 18, 1978, 1369, 273, 331, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1414, 1369, 12, 780, 225, 331, 13, 288, 202, 2211, 18, 1978, 1369, 273, 331, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
long id = node.getGID(); if (id < 0) { id = 1; return; } final long gid = id;
public void storeNode(final Txn transaction, final StoredNode node, NodePath currentPath, boolean index) { checkAvailableMemory(); final DocumentImpl doc = (DocumentImpl) node.getOwnerDocument();// final boolean isTemp = TEMP_COLLECTION.equals(doc.getCollection().getName()); final IndexSpec idxSpec = doc.getCollection().getIdxConf(this);// final FulltextIndexSpec ftIdx = idxSpec != null ? idxSpec.getFulltextIndexSpec() : null; long id = node.getGID(); if (id < 0) { id = 1; return; } final long gid = id; final short nodeType = node.getNodeType(); final int depth = idxSpec == null ? defaultIndexDepth : idxSpec.getIndexDepth(); new DOMTransaction(this, domDb, Lock.WRITE_LOCK, doc) { public Object start() throws ReadOnlyException { long address = BFile.UNKNOWN_ADDRESS; final byte data[] = node.serialize(); if (nodeType == Node.TEXT_NODE || nodeType == Node.ATTRIBUTE_NODE || doc.getTreeLevel(gid) > depth) address = domDb.add(transaction, data); else { address = domDb.put(transaction, new NodeRef(doc.getDocId(), node.getNodeId()), data); } if (address == BFile.UNKNOWN_ADDRESS) LOG.warn("address is missing"); //TODO : how can we continue here ? -pb node.setInternalAddress(address); ByteArrayPool.releaseByteArray(data); return null; } } .run(); ++nodesCount; nodeProcessor.reset(transaction, node, currentPath, index); nodeProcessor.doIndex(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1cdc39f2b9425c3dfaa7151e69c631212332b046/NativeBroker.java/clean/src/org/exist/storage/NativeBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 907, 12, 6385, 20496, 2492, 16, 727, 26548, 907, 756, 16, 2029, 743, 18027, 16, 1250, 770, 13, 288, 3639, 866, 5268, 6031, 5621, 7734, 727, 4319, 2828, 997, 273, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 907, 12, 6385, 20496, 2492, 16, 727, 26548, 907, 756, 16, 2029, 743, 18027, 16, 1250, 770, 13, 288, 3639, 866, 5268, 6031, 5621, 7734, 727, 4319, 2828, 997, 273, 261, 2...
this.view.closeTaskEditors(task, page);
if (task != null) { MylarTasklistPlugin.getTaskListManager().deactivateTask(task); TaskListView.getDefault().closeTaskEditors(task, page); }
public void run() { MylarPlugin.getContextManager().actionObserved(this, Boolean.FALSE.toString()); MylarTasklistPlugin.getTaskListManager().deactivateTask(task); IWorkbenchPage page = MylarTasklistPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); // if we couldn't get the page, get out of here if (page == null) return; try { this.view.closeTaskEditors(task, page); } catch (Exception e) { MylarPlugin.log(e, " Closing task editor on task deactivation failed"); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0d11bd44261c1cc06a7a9e516b2338f2dcc82e49/TaskDeactivateAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 12062, 7901, 3773, 18, 29120, 1318, 7675, 1128, 9013, 2155, 12, 2211, 16, 3411, 18, 21053, 18, 10492, 10663, 3639, 8005, 7901, 2174, 1098, 3773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 202, 202, 12062, 7901, 3773, 18, 29120, 1318, 7675, 1128, 9013, 2155, 12, 2211, 16, 3411, 18, 21053, 18, 10492, 10663, 3639, 8005, 7901, 2174, 1098, 3773, ...
try { if (m_ListModel.getSize() > 0) { m_ElementEditor.setValue(m_ListModel.getElementAt(0)); } else { if (m_ElementEditor instanceof GenericObjectEditor) { ((GenericObjectEditor)m_ElementEditor).setDefaultValue(); } else { m_ElementEditor.setValue(m_ElementClass.newInstance()); } }
private void updateEditorType(Object o) { // Determine if the current object is an array m_ElementEditor = null; m_ListModel = null; removeAll(); if ((o != null) && (o.getClass().isArray())) { Class elementClass = o.getClass().getComponentType(); PropertyEditor editor = PropertyEditorManager.findEditor(elementClass); Component view = null; ListCellRenderer lcr = new DefaultListCellRenderer(); if (editor != null) { if (editor instanceof GenericObjectEditor) { ((GenericObjectEditor) editor).setClassType(elementClass); } if (editor.isPaintable() && editor.supportsCustomEditor()) { view = new PropertyPanel(editor); lcr = new EditorListCellRenderer(editor.getClass(), elementClass); } else if (editor.getTags() != null) { view = new PropertyValueSelector(editor); } else if (editor.getAsText() != null) { view = new PropertyText(editor); } } if (view == null) { System.err.println("No property editor for class: " + elementClass.getName()); } else { m_ElementEditor = editor; // Create the ListModel and populate it m_ListModel = new DefaultListModel(); m_ElementClass = elementClass; for (int i = 0; i < Array.getLength(o); i++) { m_ListModel.addElement(Array.get(o,i)); } m_ElementList.setCellRenderer(lcr); m_ElementList.setModel(m_ListModel); if (m_ListModel.getSize() > 0) { m_ElementList.setSelectedIndex(0); m_DeleteBut.setEnabled(true); } else { m_DeleteBut.setEnabled(false); } try { if (m_ListModel.getSize() > 0) { m_ElementEditor.setValue(m_ListModel.getElementAt(0)); } else { if (m_ElementEditor instanceof GenericObjectEditor) { ((GenericObjectEditor)m_ElementEditor).setDefaultValue(); } else { m_ElementEditor.setValue(m_ElementClass.newInstance()); } } JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(view, BorderLayout.CENTER); panel.add(m_AddBut, BorderLayout.EAST); add(panel, BorderLayout.NORTH); add(new JScrollPane(m_ElementList), BorderLayout.CENTER); add(m_DeleteBut, BorderLayout.SOUTH); m_ElementEditor .addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { repaint(); } }); } catch (Exception ex) { System.err.println(ex.getMessage()); m_ElementEditor = null; } } } if (m_ElementEditor == null) { add(m_Label, BorderLayout.CENTER); } m_Support.firePropertyChange("", null, null); validate(); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/618558d86dd51a5adcb234f455efed07bf07ff3a/GenericArrayEditor.java/clean/weka/gui/GenericArrayEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 6946, 559, 12, 921, 320, 13, 288, 565, 368, 10229, 309, 326, 783, 733, 353, 392, 526, 565, 312, 67, 1046, 6946, 273, 446, 31, 312, 67, 682, 1488, 273, 446, 31, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 6946, 559, 12, 921, 320, 13, 288, 565, 368, 10229, 309, 326, 783, 733, 353, 392, 526, 565, 312, 67, 1046, 6946, 273, 446, 31, 312, 67, 682, 1488, 273, 446, 31, 565, ...
public synchronized int getNumPackets() {
public synchronized int getNumPackets() throws AbortedException {
public synchronized int getNumPackets() { if (_aborted) { throw new RuntimeException("PRB is aborted"); } return _packets; }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/b4ecaa4055b5835413830d4125c72de27d68e306/PartiallyReceivedBlock.java/clean/src/freenet/io/xfer/PartiallyReceivedBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 509, 11187, 27328, 1435, 288, 202, 202, 430, 261, 67, 18623, 329, 13, 288, 1082, 202, 12849, 394, 3235, 2932, 8025, 38, 353, 18166, 8863, 202, 202, 97, 202, 202, 2463, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 509, 11187, 27328, 1435, 288, 202, 202, 430, 261, 67, 18623, 329, 13, 288, 1082, 202, 12849, 394, 3235, 2932, 8025, 38, 353, 18166, 8863, 202, 202, 97, 202, 202, 2463, 3...
infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
infoLabel = new JLabel( parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); try { textArea = new JEditorPane(); textArea.setEditable(false); textArea.addHyperlinkListener(this); JScrollPane scroller = new JScrollPane(textArea); textArea.setPage(loadLicence()); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); } catch (Exception err) { err.printStackTrace(); } agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.anchor = GridBagConstraints.WEST; gbConstraints.fill = GridBagConstraints.NONE; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3982, 48, 335, 802, 5537, 12, 18678, 3219, 982, 16, 10284, 751, 612, 396, 13, 225, 288, 565, 2240, 12, 2938, 16, 612, 396, 1769, 565, 368, 1660, 4046, 3134, 3511, 565, 3511, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3982, 48, 335, 802, 5537, 12, 18678, 3219, 982, 16, 10284, 751, 612, 396, 13, 225, 288, 565, 2240, 12, 2938, 16, 612, 396, 1769, 565, 368, 1660, 4046, 3134, 3511, 565, 3511, 273, ...
(MBase)_target, _propertySetName);
(MBase) _target, _propertySetName);
protected void setTarget(Object target) { if(theBuilderThread != null && theBuilderThread.isAlive()){ try{ theBuilderThread.interrupt(); }catch(SecurityException seIgnore){} } if (_target instanceof MBase) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _propertySetName); } if (target instanceof MBase) { _target = target; UmlModelEventPump.getPump().addModelEventListener(this, (MBase)_target, _propertySetName); } else { target = null; } _fireListEvents = false; removeAllElements(); _fireListEvents = true; if (target != null) { buildModelList(); // calculate the new namespaces. theBuilderThread.build(); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLModelElementNamespaceComboBoxModel.java/buggy/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 18367, 12, 921, 1018, 13, 288, 7734, 309, 12, 5787, 1263, 3830, 480, 446, 597, 326, 1263, 3830, 18, 291, 10608, 10756, 95, 5411, 775, 95, 7734, 326, 1263, 3830, 18, 31847, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 18367, 12, 921, 1018, 13, 288, 7734, 309, 12, 5787, 1263, 3830, 480, 446, 597, 326, 1263, 3830, 18, 291, 10608, 10756, 95, 5411, 775, 95, 7734, 326, 1263, 3830, 18, 31847, 56...
if (digits[0] != 0 && (digits.length % 2 != 0)) {
if ((digits.length % 2 != 0)) {
public void marshalTo(MarshalStream output) throws IOException { output.write('l'); output.write(value.signum() >= 0 ? '+' : '-'); BigInteger absValue = value.abs(); int bitLength = absValue.bitLength(); int shortLength = bitLength / 16; if (bitLength % 16 != 0) { shortLength++; } output.dumpInt(shortLength); byte[] digits = absValue.toByteArray(); for (int i = digits.length - 1; i >= 0; i--) { if (i == 0 && digits[i] == 0 && (digits.length % 2 != 0)) { // Don't write last byte if the full length // would be odd and the digits end with a zero byte. break; } output.write(digits[i]); } if (digits[0] != 0 && (digits.length % 2 != 0)) { // Pad with a 0 if we've written all bytes and have an odd length. output.write(0); } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/84c737ddca012b816eb76706788b11999eada400/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 1860, 288, 3639, 876, 18, 2626, 2668, 80, 8284, 3639, 876, 18, 2626, 12, 1132, 18, 2977, 379, 1435, 1545, 374, 692, 10058, 294, 401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 1860, 288, 3639, 876, 18, 2626, 2668, 80, 8284, 3639, 876, 18, 2626, 12, 1132, 18, 2977, 379, 1435, 1545, 374, 692, 10058, 294, 401...
stack[TRY_STACK_SHFT + tryStackTop] = scope;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + idata.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case ENDTRY : tryStackTop--; stack[TRY_STACK_SHFT + tryStackTop] = null; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.CATCH: { // See comments in generateICodeFromTree: the following code should // be executed inside try/catch inside main loop, not in the loop catch // block itself if (javaException == null) Context.codeBug(); int pcNew = -1; boolean doCatch = false; if (tryStackTop > 0) { // Decrease tryStackTop even if catch or finally would not // be processed to properly deal with exceptions thrown // by debuggerFrame.onExceptionThrown or cx.observeInstructionCount --tryStackTop; final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof WrappedException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script int pcTry = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, pcTry + 1); if (catch_offset != 0) { // Has catch block doCatch = true; pcNew = pcTry + catch_offset; } } if (pcNew < 0) { int finally_offset = getShort(iCode, pcTry + 3); if (finally_offset != 0) { // has finally block pcNew = pcTry + finally_offset; } } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception, // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; stack[TRY_STACK_SHFT + tryStackTop] = null; // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case TokenStream.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case TokenStream.POP : stack[stackTop] = null; stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); String sourceName = strings[getIndex(iCode, pc + 5)]; int count = getIndex(iCode, pc + 7); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, sourceName, sourceLine); pc += 8; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } pc = getJavaCatchPC(iCode); javaException = ex; continue Loop; } } if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/7625f8b5192375fcb45891d89875d1bc26d2561d/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
public static void addPropertyChangeListener(PropertyChangeListener listener) { }
public static void addPropertyChangeListener (PropertyChangeListener listener) { }
public static void addPropertyChangeListener(PropertyChangeListener listener) { // Add a PropertyChangeListener to the listener list. }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ed52daae8ff65683ea13c6ffb02a6febd446ffc5/UIManager.java/buggy/javax/swing/UIManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 225, 918, 14324, 15744, 12, 1396, 15744, 2991, 13, 565, 288, 202, 759, 1377, 1436, 279, 4276, 15744, 358, 326, 2991, 666, 18, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 225, 918, 14324, 15744, 12, 1396, 15744, 2991, 13, 565, 288, 202, 759, 1377, 1436, 279, 4276, 15744, 358, 326, 2991, 666, 18, 377, 289, 2, -100, -100, -100, -100, -100, -100, ...
private void look_for_id_definitions(char[] array, int begin, int end)
private void look_for_id_definitions (char[] array, int begin, int end, boolean use_tag_value_as_string)
private void look_for_id_definitions(char[] array, int begin, int end) { // Look for the pattern // '^[ \t]+Id_([a-zA-Z0-9_]+)[ \t]*=.*$' // where \1 gives field or method name int cursor = begin; // Skip tab and spaces at the begining cursor = skip_white_space(array, cursor, end); int id_start = cursor; int name_start = skip_matched_prefix("Id_", array, cursor, end); if (name_start >= 0) { // Found Id_ prefix cursor = name_start; cursor = skip_name_char(array, cursor, end); int name_end = cursor; if (name_start != name_end) { cursor = skip_white_space(array, cursor, end); if (cursor != end) { if (array[cursor] == '=') { // Got the match add_id(array, id_start, name_end, name_start, name_end); } } } } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/5c6a10b4e7eedcdaa0b23264bede49775fe775d6/StringIdMap.java/clean/toolsrc/org/mozilla/javascript/tools/idswitch/StringIdMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2324, 67, 1884, 67, 350, 67, 13314, 261, 3001, 8526, 526, 16, 509, 2376, 16, 509, 679, 16, 1250, 999, 67, 2692, 67, 1132, 67, 345, 67, 1080, 13, 377, 288, 565, 368, 10176, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2324, 67, 1884, 67, 350, 67, 13314, 261, 3001, 8526, 526, 16, 509, 2376, 16, 509, 679, 16, 1250, 999, 67, 2692, 67, 1132, 67, 345, 67, 1080, 13, 377, 288, 565, 368, 10176, ...
if (jec.getTrigger().getNextFireTime() == null) qs.notifySchedulerListenersFinalized(jec.getTrigger());
if (jec.getTrigger().getNextFireTime() == null) { qs.notifySchedulerListenersFinalized(jec.getTrigger()); }
private boolean notifyTriggerListenersComplete(JobExecutionContext jec, int instCode) { try { qs.notifyTriggerListenersComplete(jec, instCode); } catch (SchedulerException se) { qs.notifySchedulerListenersError( "Unable to notify TriggerListener(s) of Job that was executed: " + "(error will be ignored). trigger= " + jec.getTrigger().getFullName() + " job= " + jec.getJobDetail().getFullName(), se); return false; } if (jec.getTrigger().getNextFireTime() == null) qs.notifySchedulerListenersFinalized(jec.getTrigger()); return true; }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/4025763e26e5df8d31922c934176d658ea8fbbe3/JobRunShell.java/clean/src/java/org/quartz/core/JobRunShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 5066, 6518, 5583, 6322, 12, 31498, 1042, 525, 557, 16, 5411, 509, 1804, 1085, 13, 288, 3639, 775, 288, 5411, 8719, 18, 12336, 6518, 5583, 6322, 12, 78, 557, 16, 1804, 1085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 5066, 6518, 5583, 6322, 12, 31498, 1042, 525, 557, 16, 5411, 509, 1804, 1085, 13, 288, 3639, 775, 288, 5411, 8719, 18, 12336, 6518, 5583, 6322, 12, 78, 557, 16, 1804, 1085, ...
Object name = e.nextElement(); String value = systemP.get(name).toString();
String name = (String) e.nextElement(); String value = systemP.getProperty(name);
public void setSystemProperties() { Properties systemP = System.getProperties(); Enumeration e = systemP.propertyNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); String value = systemP.get(name).toString(); this.setPropertyInternal(name.toString(), value); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/51939dfdf9af2b3b8cb72493d041c9c1b6ddb45b/Project.java/buggy/src/main/org/apache/tools/ant/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3163, 2297, 1435, 288, 3639, 6183, 2619, 52, 273, 2332, 18, 588, 2297, 5621, 3639, 13864, 425, 273, 2619, 52, 18, 4468, 1557, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 3163, 2297, 1435, 288, 3639, 6183, 2619, 52, 273, 2332, 18, 588, 2297, 5621, 3639, 13864, 425, 273, 2619, 52, 18, 4468, 1557, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, ...
finish(REJECTED_OVERLOAD);
finish(REJECTED_OVERLOAD, next);
public void run() { short origHTL = htl; try { HashSet nodesRoutedTo = new HashSet(); while(true) { if(receiveFailed) return; // don't need to set status as killed by InsertHandler if(htl == 0) { // Send an InsertReply back finish(SUCCESS); return; } // Route it PeerNode next; // Can backtrack, so only route to nodes closer than we are to target. double nextValue; synchronized(node.peers) { next = node.peers.closerPeer(source, nodesRoutedTo, target, true); if(next != null) nextValue = next.getLocation().getValue(); else nextValue = -1.0; } if(next == null) { // Backtrack finish(ROUTE_NOT_FOUND); return; } Logger.minor(this, "Routing insert to "+next); nodesRoutedTo.add(next); if(Math.abs(target - nextValue) > Math.abs(target - closestLocation)) { Logger.minor(this, "Backtracking: target="+target+" next="+nextValue+" closest="+closestLocation); htl = node.decrementHTL(source, htl); } Message req = DMT.createFNPInsertRequest(uid, htl, myKey, closestLocation); // Wait for ack or reject... will come before even a locally generated DataReply MessageFilter mfAccepted = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPAccepted); MessageFilter mfRejectedLoop = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedLoop); MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedOverload); // mfRejectedOverload must be the last thing in the or // So its or pointer remains null // Otherwise we need to recreate it below mfRejectedOverload.clearOr(); MessageFilter mf = mfAccepted.or(mfRejectedLoop.or(mfRejectedOverload)); // Send to next node next.send(req); if(receiveFailed) return; // don't need to set status as killed by InsertHandler Message msg; try { msg = node.usm.waitFor(mf); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for Accepted"); continue; } if(receiveFailed) return; // don't need to set status as killed by InsertHandler if(msg == null || msg.getSpec() == DMT.FNPRejectedOverload) { // Overload... hmmmm - propagate error back to source Logger.error(this, "Propagating "+msg+" back to source on "+this); finish(REJECTED_OVERLOAD); return; } if(msg.getSpec() == DMT.FNPRejectedLoop) { // Loop - we don't want to send the data to this one continue; } // Otherwise must be an Accepted // Send them the data. // Which might be the new data resulting from a collision... Message dataInsert; PartiallyReceivedBlock prbNow; prbNow = prb; dataInsert = DMT.createFNPDataInsert(uid, headers); bt = new BlockTransmitter(node.usm, next, uid, prbNow); /** What are we waiting for now??: * - FNPRouteNotFound - couldn't exhaust HTL, but send us the * data anyway please * - FNPInsertReply - used up all HTL, yay * - FNPRejectOverload - propagating an overload error :( * - FNPDataFound - target already has the data, and the data is * an SVK/SSK/KSK, therefore could be different to what we are * inserting. */ MessageFilter mfRNF = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfInsertReply = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPInsertReply); mfRejectedOverload.setTimeout(PUT_TIMEOUT); mfRejectedOverload.clearOr(); MessageFilter mfRouteNotFound = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfDataInsertRejected = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPDataInsertRejected); MessageFilter mfTimeout = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPRejectedTimeout); mf = mfRNF.or(mfInsertReply.or(mfRouteNotFound.or(mfDataInsertRejected.or(mfTimeout.or(mfRejectedOverload))))); Logger.minor(this, "Sending DataInsert"); if(receiveFailed) return; next.send(dataInsert); Logger.minor(this, "Sending data"); if(receiveFailed) return; s = new Sender(); senderThread = new Thread(s); senderThread.setDaemon(true); senderThread.start(); if(receiveFailed) return; try { msg = node.usm.waitFor(mf); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for InsertReply on "+this); continue; } if(receiveFailed) return; if(msg == null) { // Timeout :( // Fairly serious problem Logger.error(this, "Timeout after Accepted in insert"); // Treat as rejected-overload finish(REJECTED_OVERLOAD); return; } if(msg.getSpec() == DMT.FNPRejectedOverload || msg.getSpec() == DMT.FNPRejectedTimeout) { Logger.minor(this, "Rejected due to overload"); finish(REJECTED_OVERLOAD); return; } if(msg.getSpec() == DMT.FNPRouteNotFound) { Logger.minor(this, "Rejected: RNF"); short newHtl = msg.getShort(DMT.HTL); if(htl > newHtl) htl = newHtl; continue; } if(msg.getSpec() == DMT.FNPDataInsertRejected) { short reason = msg.getShort(DMT.DATA_INSERT_REJECTED_REASON); Logger.minor(this, "DataInsertRejected: "+reason); if(reason == DMT.DATA_INSERT_REJECTED_VERIFY_FAILED) { if(fromStore) { // That's odd... Logger.error(this, "Verify failed on next node "+next+" for DataInsert but we were sending from the store!"); } else { try { if(!prb.allReceived()) Logger.error(this, "Did not receive all packets but next node says invalid anyway!"); else { // Check the data new CHKBlock(prb.getBlock(), headers, myKey); Logger.error(this, "Verify failed on "+next+" but data was valid!"); } } catch (CHKVerifyException e) { Logger.normal(this, "Verify failed because data was invalid"); } } continue; // What else can we do? } else if(reason == DMT.DATA_INSERT_REJECTED_RECEIVE_FAILED) { if(receiveFailed) { Logger.minor(this, "Failed to receive data, so failed to send data"); } else { if(prb.allReceived()) { Logger.error(this, "Received all data but send failed to "+next); } else { if(prb.isAborted()) { Logger.normal(this, "Send failed: aborted: "+prb.getAbortReason()+": "+prb.getAbortDescription()); } else Logger.normal(this, "Send failed; have not yet received all data but not aborted: "+next); } } continue; } Logger.error(this, "DataInsert rejected! Reason="+DMT.getDataInsertRejectedReason(reason)); } if(msg.getSpec() != DMT.FNPInsertReply) { Logger.error(this, "Unknown reply: "+msg); finish(INTERNAL_ERROR); } // Our task is complete finish(SUCCESS); return; } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); if(status == NOT_FINISHED) finish(INTERNAL_ERROR); } finally { node.completed(uid); node.removeInsertSender(myKey, origHTL, this); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/94c3a44d89202afcc4eb0924e3866a736a5392c9/InsertSender.java/buggy/src/freenet/node/InsertSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 3025, 1647, 5062, 48, 273, 366, 6172, 31, 3639, 775, 288, 3639, 6847, 2199, 4583, 329, 774, 273, 394, 6847, 5621, 7734, 1323, 12, 3767, 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, 1071, 918, 1086, 1435, 288, 3639, 3025, 1647, 5062, 48, 273, 366, 6172, 31, 3639, 775, 288, 3639, 6847, 2199, 4583, 329, 774, 273, 394, 6847, 5621, 7734, 1323, 12, 3767, 13, 288, 5411, ...