rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return delegate.getPixels(); | Pixels pix = delegate.getPixels(); return (Pixels) new ShallowCopy().copy(pix); | public Pixels getPixels() { return delegate.getPixels(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java |
return delegate.getQuantumDef(); | QuantumDef def = delegate.getQuantumDef(); return (QuantumDef) new ShallowCopy().copy(def); | public QuantumDef getQuantumDef() { return delegate.getQuantumDef(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java |
messagePanel.add(iconLabel); | JPanel p = UIUtilities.buildComponentPanel(iconLabel); p.setAlignmentY(TOP_ALIGNMENT); messagePanel.add(p); | private void buildMessagePanel(String msg, Icon msgIcon) { messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.X_AXIS)); if (msgIcon != null) { JLabel iconLabel = new JLabel(msgIcon); iconLabel.setAlignmentY(TOP_ALIGNMENT); messagePanel.add(iconLabel); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/OptionsDialog.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/OptionsDialog.java |
messagePanel.add(message); | messagePanel.add(UIUtilities.buildComponentPanelRight(message)); | private void buildMessagePanel(String msg, Icon msgIcon) { messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.X_AXIS)); if (msgIcon != null) { JLabel iconLabel = new JLabel(msgIcon); iconLabel.setAlignmentY(TOP_ALIGNMENT); messagePanel.add(iconLabel); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/OptionsDialog.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/OptionsDialog.java |
runtime.getLoadService().init(runtime, new ArrayList()); | runtime.getLoadService().init(new ArrayList()); | public void setUp() { runtime = Ruby.getDefaultInstance(); runtime.getLoadService().init(runtime, new ArrayList()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/61503e7396c70acb6ed9f50922ff044d1fcc4bcc/TestKernel.java/clean/test/org/jruby/test/TestKernel.java |
public NODE newCall(Object r, Object m, Object a) { return newDefaultNode(NODE.NODE_CALL, r, m, a); | public NODE newCall(NODE recv, Object m, Object a) { return newDefaultNode(NODE.NODE_CALL, recv, m, a); | public NODE newCall(Object r, Object m, Object a) { return newDefaultNode(NODE.NODE_CALL, r, m, a); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/NodeFactory.java/clean/org/jruby/interpreter/nodes/NodeFactory.java |
public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); | public NODE newVCall(RubyId mid) { return newDefaultNode(NODE.NODE_VCALL, null, mid, null); | public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/NodeFactory.java/clean/org/jruby/interpreter/nodes/NodeFactory.java |
public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); | public IRubyObject callSuper(IRubyObject[] args, boolean zSuper) { Frame frame = getCurrentFrame(); frame.setCallingZSuper(zSuper); | public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); if (frame.getLastClass() == null) { String name = frame.getLastFunc(); throw runtime.newNameError("superclass method '" + name + "' must be enabled by enableSuper().", name); } set... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62645b2160c482d6d16d79513df80eac48c28894/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java |
frame.setCallingZSuper(false); | public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); if (frame.getLastClass() == null) { String name = frame.getLastFunc(); throw runtime.newNameError("superclass method '" + name + "' must be enabled by enableSuper().", name); } set... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62645b2160c482d6d16d79513df80eac48c28894/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java | |
pushFrame(new Frame(this, self, args, lastFunc, lastClass, getPosition(), getCurrentIter(), getCurrentBlock())); | Iter iter = getCurrentFrame().getCallingZSuper() ? getCurrentFrame().getIter() : getCurrentIter(); pushFrame(new Frame(this, self, args, lastFunc, lastClass, getPosition(), iter, getCurrentBlock())); | private void pushCallFrame(IRubyObject self, IRubyObject[] args, String lastFunc, RubyModule lastClass) { pushFrame(new Frame(this, self, args, lastFunc, lastClass, getPosition(), getCurrentIter(), getCurrentBlock())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62645b2160c482d6d16d79513df80eac48c28894/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java |
add(mainPanel, BorderLayout.CENTER); | add(treeScroller, BorderLayout.CENTER); | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
viewOnline = new RolloverButton(SparkRes.getImageIcon(SparkRes.VIEW_IMAGE)); commandPanel.add(viewOnline); viewOnline.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } }); | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
showEmptyGroups(!showHideMenu.isSelected()); | new RosterDialog().showRosterDialog(); | public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
new RosterDialog().showRosterDialog(); | String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = new ContactGroup(groupName); addContactGroup(contactGroup);... | public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = new ContactGroup(groupName); addContactGroup(contactGroup);... | showEmptyGroups(showHideMenu.isSelected()); | public void actionPerformed(ActionEvent e) { String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
subscriptionRequest(presence.getFrom()); | Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); } catch (XMPPException e) { Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getF... | public void run() { subscriptionRequest(presence.getFrom()); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
String jid = StringUtils.parseBareAddress(presence.getFrom()); removeContactItem(jid); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); | SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasNext()) { Presence userToUpdate = (Presence)users.next(); initialPresences.remove(userToUpdate); updateUserPresence(userToUpdate); } | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
catch (XMPPException e) { Log.error(e); } } String jid = StringUtils.parseBareAddress(presence.getFrom()); removeContactItem(jid); | }); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
SwingUtilities.invokeLater(new Runnable() { public void run() { | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
}); } | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); RosterGr... | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); | public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().get... | String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { Iterator entries = rosterGroup.getEntries(); while (entries.hasNext()) { RosterEntry entry = (RosterEntry)entries.next(); try { rosterGroup.removeEntry(entry); } catch (XMPPException e1) { Log.error("Error removing entry", e1); } } } | RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
invalidate(); repaint(); | rosterGroup.setName(newName); | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
RosterEntry entry = roster.getEntry(jid); addUser(entry); | RosterEntry rosterEntry = roster.getEntry(jid); if (rosterEntry != null) { Iterator rosterGroups = rosterEntry.getGroups(); boolean isUnfiled = true; while (rosterGroups.hasNext()) { isUnfiled = false; RosterGroup group = (RosterGroup)rosterGroups.next(); if (getContactGroup(group.getName()) == null) { ContactGrou... | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry entry = roster.getEntry(jid); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Roster roster = SparkManager.getConnection().getRoster(); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
RosterEntry rosterEntry = roster.getEntry(jid); if (rosterEntry != null) { Iterator rosterGroups = rosterEntry.getGroups(); boolean isUnfiled = true; while (rosterGroups.hasNext()) { isUnfiled = false; RosterGroup group = (RosterGroup)rosterGroups.next(); if (getContactGroup(group.getName()) == null) { ContactGrou... | removeContactItem(jid); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
viewOnline.setSelected(show); if (showHideMenu.isSelected()) { viewOnline.setToolTipText("Hide Empty Groups"); } else { viewOnline.setToolTipText("Show Empty Groups"); } | private void showEmptyGroups(boolean show) { Iterator contactGroups = getContactGroups().iterator(); while (contactGroups.hasNext()) { ContactGroup group = (ContactGroup)contactGroups.next(); if (show) { group.setVisible(true); } else { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); | public void actionPerformed(ActionEvent e) { removeContactFromRoster(item); | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
removeContactFromRoster(item); | VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); | public void actionPerformed(ActionEvent e) { removeContactFromRoster(item); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); | JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { String history = (String)iter.next(); buf.append(history + "\n"); } pane.setText(buf.toString()); MessageDialog.showComponent("Presence Histor... | public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { String history = (String)iter.next(); buf.append(history + "\n"); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil.getTimeFromLong(idleTime); JOptionPane.showMessageDialog(getGUI(), "Idle for " + ti... | public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
pane.setText(buf.toString()); MessageDialog.showComponent("Presence History", "History of user activity while online.", SparkRes.getImageIcon(SparkRes.INFORMATION_IMAGE), new JScrollPane(pane), getGUI(), 400, 400, false); | catch (XMPPException e1) { } | public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil.getTimeFromLong(idleTime); JOptionPane.showMessageDialog(getGUI(), "Idle for " + ti... | public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.SUBSCRIBE); response.setTo(jid); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
SparkManager.getConnection().sendPacket(response); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.SUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); | sendMessages(items); | public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.SUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Presence response = new Presence(Presence.Type.SUBSCRIBED); response.setTo(jid); SparkManager.getConnection().sendPacket(response); int ok = JOptionPane.showConfirmDialog(getGUI(), "Would you like to add the user to your roster?", "Add To Roster", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == J... | public void actionPerformed(ActionEvent e) { dialog.dispose(); Presence response = new Presence(Presence.Type.SUBSCRIBED); response.setTo(jid); SparkManager.getConnection().sendPacket(response); int ok = JOptionPane.showConfirmDialog... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
Presence response = new Presence(Presence.Type.UNSUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); dialog.dispose(); | SparkManager.getVCardManager().viewProfile(jid, getGUI()); | public void actionPerformed(ActionEvent e) { // Send subscribed Presence response = new Presence(Presence.Type.UNSUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); dialog.dispose(); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
static RenderingStrategy makeNew(int model) | static RenderingStrategy makeNew(RenderingModel model) | static RenderingStrategy makeNew(int model) { RenderingStrategy strategy = null; try { switch (model) { case RenderingDefConstants.GS: strategy = new GreyScaleStrategy(); break; case RenderingDefConstants.HSB: strategy = new HSBStrategy(); break; case Renderin... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStrategy.java/clean/components/rendering/src/omeis/providers/re/RenderingStrategy.java |
RenderingStrategy strategy = null; try { switch (model) { case RenderingDefConstants.GS: strategy = new GreyScaleStrategy(); break; case RenderingDefConstants.HSB: strategy = new HSBStrategy(); break; case RenderingDefConstants.RGB: strategy = new RGBStrategy(); break; default: strategy = new GreyScaleStrategy(); } }... | String value = model.getValue(); if (value == Renderer.MODEL_GREYSCALE) return new GreyScaleStrategy(); else if (value == Renderer.MODEL_HSB) return new HSBStrategy(); else if (value == Renderer.MODEL_RGB) return new RGBStrategy(); log.warn("WARNING: Unknown model '" + value + "' using greyscale."); return new GreyScal... | static RenderingStrategy makeNew(int model) { RenderingStrategy strategy = null; try { switch (model) { case RenderingDefConstants.GS: strategy = new GreyScaleStrategy(); break; case RenderingDefConstants.HSB: strategy = new HSBStrategy(); break; case Renderin... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStrategy.java/clean/components/rendering/src/omeis/providers/re/RenderingStrategy.java |
public Object yyparse (RubyYaccLexer yyLex, Object yydebug) | public Object yyparse (RubyYaccLexer yyLex, Object ayydebug) | public Object yyparse (RubyYaccLexer yyLex, Object yydebug) throws java.io.IOException, yyException { return yyparse(yyLex); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/DefaultRubyParser.java/buggy/src/org/jruby/parser/DefaultRubyParser.java |
Map newMap = new HashMap(emotionMap); | Map<String,String> newMap = new HashMap<String,String>(emotionMap); | public static Map getEmoticonMap() { Map newMap = new HashMap(emotionMap); newMap.remove("8-)"); newMap.remove("|-)"); newMap.remove("<:o)"); newMap.remove(":-)"); return newMap; } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/6e12dffdf7547958af6c57a401e514cd0de09117/EmotionRes.java/clean/src/java/org/jivesoftware/resource/EmotionRes.java |
public static final ImageIcon getImageIcon(String face) { final String value = (String)emotionMap.get(face); | public static ImageIcon getImageIcon(String face) { final String value = emotionMap.get(face); | public static final ImageIcon getImageIcon(String face) { final String value = (String)emotionMap.get(face); if (value != null) { final URL url = cl.getResource(value); if (url != null) { return new ImageIcon(url); } } return null; } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/6e12dffdf7547958af6c57a401e514cd0de09117/EmotionRes.java/clean/src/java/org/jivesoftware/resource/EmotionRes.java |
public static final URL getURL(String face) { final String value = (String)emotionMap.get(face); | public static URL getURL(String face) { final String value = emotionMap.get(face); | public static final URL getURL(String face) { final String value = (String)emotionMap.get(face); if (value != null) { final URL url = cl.getResource(value); if (url != null) { return url; } } return null; } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/6e12dffdf7547958af6c57a401e514cd0de09117/EmotionRes.java/clean/src/java/org/jivesoftware/resource/EmotionRes.java |
tree.addPropertyChangeListener(TreeCheck.NODE_SELECTED_PROPERTY, this); | public FilterWindow(Object parent, JFrame owner, int containerType, Set nodes) { super(owner, "Filter Images Retrieval", true); if (nodes == null) throw new IllegalArgumentException("No nodes."); if (parent == null) throw new IllegalArgumentExce... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/FilterWindow.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/util/FilterWindow.java | |
setButton.setEnabled(false); | private void initComponents() { IconManager im = IconManager.getInstance(); tree = new TreeCheck("", im.getIcon(IconManager.ROOT)); tree.setRootVisible(false); selectAll = new JButton("Select All"); selectAll.setToolTipText( UIUtilities.formatToolTipText("Select... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/FilterWindow.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/util/FilterWindow.java | |
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/buggy/src/org/jruby/RubyModule.java | ||
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/buggy/src/org/jruby/RubyModule.java | ||
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/buggy/src/org/jruby/RubyModule.java | ||
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/buggy/src/org/jruby/RubyModule.java | ||
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/buggy/src/org/jruby/RubyModule.java | ||
return new ConversionSet(valueMap.entrySet()); | return new ConversionMapEntrySet(getRuntime(), valueMap.entrySet()); | public Set entrySet() { // TODO: Set.Entry must be wrapped appropriately...? return new ConversionSet(valueMap.entrySet()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b46a9962586a768eaf50113d17bdb4aef7e22000/RubyHash.java/clean/src/org/jruby/RubyHash.java |
return new ConversionSet(valueMap.keySet()); | return new AbstractSet() { public Iterator iterator() { return new IteratorAdapter(entrySet().iterator()) { public Object next() { return ((Map.Entry) super.next()).getKey(); } }; } public int size() { return RubyHash.this.size(); } }; | public Set keySet() { return new ConversionSet(valueMap.keySet()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b46a9962586a768eaf50113d17bdb4aef7e22000/RubyHash.java/clean/src/org/jruby/RubyHash.java |
return null; | return new AbstractCollection() { public Iterator iterator() { return new IteratorAdapter(entrySet().iterator()) { public Object next() { return ((Map.Entry) super.next()).getValue(); } }; } public int size() { return RubyHash.this.size(); } public boolean contains(Object v) { return RubyHash.this.containsValue(v); }... | public Collection values() { // TODO Auto-generated method stub return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b46a9962586a768eaf50113d17bdb4aef7e22000/RubyHash.java/clean/src/org/jruby/RubyHash.java |
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/96e921a430a0d0cc0ba3a6f2cdc25e82227755d5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | ||
cb.setNoiseReduction(Boolean.TRUE); | cb.setNoiseReduction(sf.isNoiseReduction()); | private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/96e921a430a0d0cc0ba3a6f2cdc25e82227755d5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
System.out.println("Closing down the spring context"); | log.info("Closing down the spring context"); | protected void tearDown() throws Exception { if (context != null) { System.out.println("Closing down the spring context"); context.destroy(); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/SpringTestSupport.java/clean/spring/src/test/org/xbean/spring/context/SpringTestSupport.java |
colorModelButton.setToolTipText(getColorModelDescription(model.getColorModel())); | private void initializeValues() { zoomingBox.addActionListener(this); zoomingBox.setSelectedItem( controller.getAction(ImViewerControl.ZOOM_100)); switch (model.getRatingLevel()) { case ImViewerModel.RATING_ONE: ratingBox.setSelectedIndex(0); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ControlPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ControlPane.java | |
state = ImViewer.READY; | void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon computeSizes(); imageIcon = magnifyImage(factor, image); state = ImViewer.READY; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java | |
public void callInit(IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); tc.setIfBlockAvailable(); try { callMethod(getRuntime().getCurrentContext(), "initialize", args); } finally { tc.clearIfBlockAvailable(); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject convertToTypeWithCheck(String targetType, String convertMethod) { if (targetType.equals(getMetaClass().getName())) { return this; } IRubyObject value = convertToType(targetType, convertMethod, false); if (value.isNil()) { return value; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject convertToTypeWithCheck(String targetType, String convertMethod) { if (targetType.equals(getMetaClass().getName())) { return this; } IRubyObject value = convertToType(targetType, convertMethod, false); if (value.isNil()) { return value; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject convertToTypeWithCheck(String targetType, String convertMethod) { if (targetType.equals(getMetaClass().getName())) { return this; } IRubyObject value = convertToType(targetType, convertMethod, false); if (value.isNil()) { return value; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject display(IRubyObject[] args) { IRubyObject port = args.length == 0 ? getRuntime().getGlobalVariables().get("$>") : args[0]; port.callMethod(getRuntime().getCurrentContext(), "write", this); return getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { /* if (ruby_safe_level >= 4) { Check_Type(src, T_STRING); } else { Check_SafeStr(src); } */ return under.executeUnder(new Callback() { public IR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; // FIXME: lineNumber is not supported //IRubyObject lineNumber = args[3]; return args[0]... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
threadContext.preEvalWithBinding(blockOfBinding); | threadContext.preEvalWithBinding(blockOfBinding); | public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject extend(IRubyObject[] args) { checkArgumentCount(args, 1, -1); // Make sure all arguments are modules before calling the callbacks RubyClass module = getRuntime().getClass("Module"); for (int i = 0; i < args.length; i++) { if (!args[i].isKindOf(module... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject extend(IRubyObject[] args) { checkArgumentCount(args, 1, -1); // Make sure all arguments are modules before calling the callbacks RubyClass module = getRuntime().getClass("Module"); for (int i = 0; i < args.length; i++) { if (!args[i].isKindOf(module... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
if (!type.isSingleton()) { | if (!type.isSingleton()) { | public MetaClass getSingletonClass() { RubyClass type = getMetaClass(); if (!type.isSingleton()) { type = makeMetaClass(type, type.getCRef()); } assert type instanceof MetaClass; if (!isNil()) { type.setTaint(isTaint()); type.setFrozen(isFrozen()); } return (Met... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
assert type instanceof MetaClass; | assert type instanceof MetaClass; | public MetaClass getSingletonClass() { RubyClass type = getMetaClass(); if (!type.isSingleton()) { type = makeMetaClass(type, type.getCRef()); } assert type instanceof MetaClass; if (!isNil()) { type.setTaint(isTaint()); type.setFrozen(isFrozen()); } return (Met... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public RubyFixnum id() { return getRuntime().newFixnum(System.identityHashCode(this)); | public synchronized RubyFixnum id() { if (id == 0) { id = getRuntime().getObjectSpace().createId(this); } return getRuntime().newFixnum(id); | public RubyFixnum id() { return getRuntime().newFixnum(System.identityHashCode(this)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public IRubyObject infectBy(IRubyObject obj) { setTaint(isTaint() || obj.isTaint()); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
callMethod(getRuntime().getCurrentContext(), "initialize_copy", original); | callMethod(getRuntime().getCurrentContext(), "initialize_copy", original); | public void initCopy(IRubyObject original) { assert original != null; assert !isFrozen() : "frozen object (" + getMetaClass().getName() + ") allocated"; setInstanceVariables(new HashMap(original.getInstanceVariables())); callMethod(getRuntime().getCurrentContext(), "initialize_copy", ori... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public IRubyObject instance_variable_get(IRubyObject var) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } IRubyObject variable = getInstanceVariable(varName); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
IRubyObject variable = getInstanceVariable(varName); | IRubyObject variable = getInstanceVariable(varName); | public IRubyObject instance_variable_get(IRubyObject var) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } IRubyObject variable = getInstanceVariable(varName); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
return variable == null ? getRuntime().getNil() : variable; | return variable == null ? getRuntime().getNil() : variable; | public IRubyObject instance_variable_get(IRubyObject var) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } IRubyObject variable = getInstanceVariable(varName); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public IRubyObject instance_variable_set(IRubyObject var, IRubyObject value) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } return setInstanceVariable(var.asSymbol... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject instance_variable_set(IRubyObject var, IRubyObject value) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } return setInstanceVariable(var.asSymbol... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public RubyArray instance_variables() { ArrayList names = new ArrayList(); for(Iterator iter = getInstanceVariablesSnapshot().keySet().iterator();iter.hasNext();) { String name = (String) iter.next(); // Do not include constants which also get stored in instance var l... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
String msg = new PrintfFormat(format).sprintf(new Object[] { name, description, | String msg = new PrintfFormat(format).sprintf(new Object[] { name, description, | public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = callMethod(getRuntime().getCurrentContext(), "inspect").toString(); boolean noCla... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public IRubyObject methods(IRubyObject[] args) { checkArgumentCount(args, 0, 1); if (args.length == 0) { args = new IRubyObject[] { getRuntime().getTrue() }; } return getMetaClass().instance_methods(args); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject send(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("no method name given"); } String name = args[0].asSymbol(); IRubyObject[] newArgs = new IRubyObject[args.length - 1]; System.arraycopy(args, 1, newArgs, 0, newArgs.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject send(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("no method name given"); } String name = args[0].asSymbol(); IRubyObject[] newArgs = new IRubyObject[args.length - 1]; System.arraycopy(args, 1, newArgs, 0, newArgs.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { | for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { | public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
public IRubyObject specificEval(RubyModule mod, IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); if (tc.isBlockGiven()) { if (args.length > 0) { throw getRuntime().newArgumentError(args.length, 0); } return yieldUnder(mo... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | ||
private IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { ThreadContext context = getRuntime().getCurrentContext(); Block block = (Block) context.getCurrentBlock(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.