rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
invalidate(); repaint(); | rosterGroup.setName(newName); | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = Spar... | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); | public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
activateChat(item.getContactJID(), item.getNickname()); | chatManager.activateChat(item.getContactJID(), item.getNickname()); | public void contactItemDoubleClicked(ContactItem item) { activeItem = item; ChatManager chatManager = SparkManager.getChatManager(); boolean handled = chatManager.fireContactItemDoubleClicked(item); if (!handled) { activateChat(item.getContactJID(), item.getNickname()); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | private synchronized void handleEntriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | 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/37d2c9c1910f8cad82e65ab912959a96c5121978/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/37d2c9c1910f8cad82e65ab912959a96c5121978/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/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); | 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(), Res.getString("m... | 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/37d2c9c1910f8cad82e65ab912959a96c5121978/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(), Res.getString("m... | 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/37d2c9c1910f8cad82e65ab912959a96c5121978/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/37d2c9c1910f8cad82e65ab912959a96c5121978/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/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Presence response = new Presence(Presence.Type.subscribed); | Presence response = new Presence(Presence.Type.unsubscribe); | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); in... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); in... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | ||
int ok = JOptionPane.showConfirmDialog(getGUI(), Res.getString("message.add.user"), Res.getString("message.add.to.roster"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.OK_OPTION) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(UserManager.unescapeJID(jid... | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); in... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); | SparkManager.getVCardManager().viewProfile(jid, getGUI()); | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); // Send subscribed Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().send... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus(); | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus(); | private void updateUserPresence(Presence presence) { if (presence == null) { return; } Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); RosterEntry entry = roster.getEntry(bareJID); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void doMouseClicked(PInputEvent e) { if (postLinkCompletion == true) return; // we only scale if we're not drawing a link. // System.err.println("mouse clicked.."+e); //System.err.println("link state is "+linkState); if (linkState != NOT_LINKING) { if (linkState == LINKING_CANCELLATION) { //System.er... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
camera.animateViewToCenterBounds(b,true, Constants.ANIMATION_DELAY); | PActivity activity = camera.animateViewToCenterBounds(b,true, Constants.ANIMATION_DELAY); activity.setDelegate(new PActivityDelegate() { public void activityStarted(PActivity activity) { } public void activityStepped(PActivity activity) { } public void activityFinished(PActivity activity) { setModulesDisplayMode(); } ... | public void doMouseClicked(PInputEvent e) { if (postLinkCompletion == true) return; // we only scale if we're not drawing a link. // System.err.println("mouse clicked.."+e); //System.err.println("link state is "+linkState); if (linkState != NOT_LINKING) { if (linkState == LINKING_CANCELLATION) { //System.er... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
if (e.isShiftDown()) { | else if (e.isShiftDown()) { | public void doMouseClicked(PInputEvent e) { if (postLinkCompletion == true) return; // we only scale if we're not drawing a link. // System.err.println("mouse clicked.."+e); //System.err.println("link state is "+linkState); if (linkState != NOT_LINKING) { if (linkState == LINKING_CANCELLATION) { //System.er... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
setModulesDisplayMode(); | public void doMouseClicked(PInputEvent e) { if (postLinkCompletion == true) return; // we only scale if we're not drawing a link. // System.err.println("mouse clicked.."+e); //System.err.println("link state is "+linkState); if (linkState != NOT_LINKING) { if (linkState == LINKING_CANCELLATION) { //System.er... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
setModulesDisplayMode(); | protected void drag(PInputEvent e) { PNode node = e.getPickedNode(); if (node instanceof ModuleView) { if (linkState != LINKING_MODULES) { ModuleView mod = (ModuleView) node; Dimension2D delta = e.getDeltaRelativeTo(node); mod.translate(delta.getWidth(),delta.getHeight()); e.setHandled(true); } } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
setModulesDisplayMode(); | private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); //System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that's not in a chain or not. ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
} | } | private void finishModuleTargetLink(ModuleLinkTarget n) { //first, if input and output are the same, barf. if (n.getModuleView() == moduleLinkOriginTarget.getModuleView()) { showSelfLinkError(); cancelModuleTargetLink(); return; } else if (n.isInputLinkTarget() && moduleLinkOriginTarget.isInputLinkTarge... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
private void finishModuleTargetLink(ModuleLinkTarget n) { //first, if input and output are the same, barf. if (n.getModuleView() == moduleLinkOriginTarget.getModuleView()) { showSelfLinkError(); cancelModuleTargetLink(); return; } else if (n.isInputLinkTarget() && moduleLinkOriginTarget.isInputLinkTarge... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
public void mouseEntered(PInputEvent e) { PNode node = e.getPickedNode(); if (node instanceof FormalParameter) { lastParameterEntered = (FormalParameter) node; //System.err.println("mouse entered last entered.."+ if (linkState == NOT_LINKING) { // turn on params for this parameter lastParameterEntered.s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
else if (node instanceof ModuleView && linkState == NOT_LINKING) { ModuleView mod = (ModuleView) node; mod.setModulesHighlighted(true); | else if (node instanceof SingleModuleView && linkState == NOT_LINKING) { SingleModuleView mod = (SingleModuleView) node; | public void mouseEntered(PInputEvent e) { PNode node = e.getPickedNode(); if (node instanceof FormalParameter) { lastParameterEntered = (FormalParameter) node; //System.err.println("mouse entered last entered.."+ if (linkState == NOT_LINKING) { // turn on params for this parameter lastParameterEntered.s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
public void mouseExited(PInputEvent e) { PNode node = e.getPickedNode(); //System.err.println("exiting..."+node); lastParameterEntered = null; //System.err.println("last parameter entered cleared"); if (node instanceof FormalParameter) { FormalParameter param = (FormalParameter) node; if (linkState == NOT_LIN... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
else if (node instanceof ModuleView && linkState == NOT_LINKING) { ModuleView mod = (ModuleView) node; | else if (node instanceof SingleModuleView && linkState == NOT_LINKING) { SingleModuleView mod = (SingleModuleView) node; | public void mouseExited(PInputEvent e) { PNode node = e.getPickedNode(); //System.err.println("exiting..."+node); lastParameterEntered = null; //System.err.println("last parameter entered cleared"); if (node instanceof FormalParameter) { FormalParameter param = (FormalParameter) node; if (linkState == NOT_LIN... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
private void mousePressedLinkingModuleTargets(PNode node,PInputEvent e) { //System.err.println("mouse pressed linking module targets "+e); PNode n = e.getPickedNode(); //System.err.println("on node..."+n); if (e.getClickCount() ==2) { cancelModuleTargetLink(); //System.err.println("mouse pressed linking param... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
private void mousePressedLinkingModuleTargets(PNode node,PInputEvent e) { //System.err.println("mouse pressed linking module targets "+e); PNode n = e.getPickedNode(); //System.err.println("on node..."+n); if (e.getClickCount() ==2) { cancelModuleTargetLink(); //System.err.println("mouse pressed linking param... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
private void mousePressedLinkingModuleTargets(PNode node,PInputEvent e) { //System.err.println("mouse pressed linking module targets "+e); PNode n = e.getPickedNode(); //System.err.println("on node..."+n); if (e.getClickCount() ==2) { cancelModuleTargetLink(); //System.err.println("mouse pressed linking param... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | ||
setModulesDisplayMode(); | private void zoom(double scale,PInputEvent e) { PCamera camera=canvas.getCamera(); double curScale = camera.getScale(); curScale *= scale; Point2D pos = e.getPosition(); camera.scaleViewAboutPoint(curScale,pos.getX(),pos.getY()); e.setHandled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b41d6861c41e656afc38624cef034561955ba4a6/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
super(); | super(ClassifierFactory.getOwner()); | ClassifierView() { super(); setProperties(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/ClassifierView.java/clean/SRC/org/openmicroscopy/shoola/agents/util/classifier/view/ClassifierView.java |
Holder h = classNameHolder.get( klass.getName() ); | String[][] checks = lockedByHolder.get( klass.getName() ); | public String[][] getLockChecks( Class<? extends IObject> klass ) { if ( klass == null ) throw new ApiUsageException( "Cannot proceed with null klass." ); Holder h = classNameHolder.get( klass.getName() ); if ( h == null ) throw new ApiUsageException( "Metadata not found for: " +klass.getName()); re... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java |
if ( h == null ) | if ( checks == null ) | public String[][] getLockChecks( Class<? extends IObject> klass ) { if ( klass == null ) throw new ApiUsageException( "Cannot proceed with null klass." ); Holder h = classNameHolder.get( klass.getName() ); if ( h == null ) throw new ApiUsageException( "Metadata not found for: " +klass.getName()); re... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java |
return h.getLockChecks( ); | return checks; | public String[][] getLockChecks( Class<? extends IObject> klass ) { if ( klass == null ) throw new ApiUsageException( "Cannot proceed with null klass." ); Holder h = classNameHolder.get( klass.getName() ); if ( h == null ) throw new ApiUsageException( "Metadata not found for: " +klass.getName()); re... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java |
RubyModule receiver = runtime.getCurrentContext().getLastRubyClass(); | SinglyLinkedList base = runtime.getCurrentContext().peekCRef(); | public RubyArray nesting() { IRuby runtime = getRuntime(); RubyModule object = runtime.getObject(); RubyModule receiver = runtime.getCurrentContext().getLastRubyClass(); RubyArray result = runtime.newArray(); for (RubyModule current = receiver; current != object; current = current.getP... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/805d73b7462174e9e5c095eed22a09140bb79b5e/ModuleMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/ModuleMetaClass.java |
for (RubyModule current = receiver; current != object; current = current.getParent()) { result.append(current); | for (SinglyLinkedList current = base; current.getValue() != object; current = current.getNext()) { result.append((RubyModule)current.getValue()); | public RubyArray nesting() { IRuby runtime = getRuntime(); RubyModule object = runtime.getObject(); RubyModule receiver = runtime.getCurrentContext().getLastRubyClass(); RubyArray result = runtime.newArray(); for (RubyModule current = receiver; current != object; current = current.getP... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/805d73b7462174e9e5c095eed22a09140bb79b5e/ModuleMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/ModuleMetaClass.java |
logger.debug("Putting instrumeted entry: " | logger.debug("Putting instrumented entry: " | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/b4bc10401980850d9425a743d8e46642e1457346/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = ruby.getCRef(); // +++ = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java | ||
controller.getAction(AnnotatorControl.FINISH).setEnabled(false); | public void finish() { if (model.getState() != READY) throw new IllegalStateException("This method can only be " + "invoked in the READY state."); AnnotationData d = model.getAnnotationType(); d.setText(view.getAnnotationText()); view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); model.fireAnno... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/AnnotatorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorComponent.java | |
XYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) | XYPlane(PlaneDef pDef, Pixels pixels, MappedByteBuffer data) | XYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/XYPlane.java/clean/components/rendering/src/omeis/providers/re/data/XYPlane.java |
super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); | super(pDef, pixels, data); | XYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/XYPlane.java/clean/components/rendering/src/omeis/providers/re/data/XYPlane.java |
if (runtime.getScope().getLocalNames() != null) { | if (runtime.getScope().hasLocalVariables()) { | private boolean hasNewLocalVariables(IRubyParserResult result) { int newSize = 0; if (result.getLocalVariables() != null) { newSize = result.getLocalVariables().size(); } int oldSize = 0; if (runtime.getScope().getLocalNames() != null) { oldSize = runtime.get... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/Parser.java/buggy/src/org/jruby/parser/Parser.java |
} catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "); | } catch (TemplateException e) { _log.error("Template: Unable to parse template: " + this, e); out.write("<!--\n Template failed to parse. Reason: "); | public final void write(FastWriter out, Context data) throws IOException { try { if (_content == null) { parse(); } } catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/caae30b46935100916e734c44f76582390ec531e/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java |
"Template: Missing data in Map passed to template " + this; | "Template: Missing data in Context passed to template " + this; | public final void write(FastWriter out, Context data) throws IOException { try { if (_content == null) { parse(); } } catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/caae30b46935100916e734c44f76582390ec531e/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java |
String message = "Would you like to end this session?"; if (true) { room.closeChatRoom(); return; } else { if (!room.isActive()) { | if (isGroupChat) { String message = "Would you like to end this session?"; final int ok = JOptionPane.showConfirmDialog(chatFrame, message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { | public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e205e19b9a00e6f683dfc4115023e2f0efd8e3e9/ChatContainer.java/clean/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
final int ok = JOptionPane.showConfirmDialog(SparkManager.getMainWindow(), message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { | else { | public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e205e19b9a00e6f683dfc4115023e2f0efd8e3e9/ChatContainer.java/clean/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e205e19b9a00e6f683dfc4115023e2f0efd8e3e9/ChatContainer.java/clean/src/java/org/jivesoftware/spark/ui/ChatContainer.java | ||
Type[] types = cm.getPropertyTypes(); classNameHolder.put(key, new Holder( cm, locksFields(types), lockedByFields(key,m) )); | locksHolder.put( key, new Locks(cm) ); | public ExtendedMetadata( SessionFactory sessionFactory ) { if ( sessionFactory == null ) throw new ApiUsageException( "SessionFactory may not be null." ); Map<String,ClassMetadata> m = sessionFactory.getAllClassMetadata(); for (String key : m.keySet()) { ClassMetadata cm = m.get(key); Type[] types = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java |
for (String key : m.keySet()) { ClassMetadata cm = m.get(key); lockedByHolder.put( key, lockedByFields(key, m) ); } | public ExtendedMetadata( SessionFactory sessionFactory ) { if ( sessionFactory == null ) throw new ApiUsageException( "SessionFactory may not be null." ); Map<String,ClassMetadata> m = sessionFactory.getAllClassMetadata(); for (String key : m.keySet()) { ClassMetadata cm = m.get(key); Type[] types = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java | |
p.add(buildToolBar()); | JPanel bars = new JPanel(); bars.setLayout(new BoxLayout(bars, BoxLayout.X_AXIS)); bars.add(buildSelectToolBar()); bars.add(buildControlsToolBar()); p.add(bars); | private JPanel buildBody() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); p.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); p.add(classifierUI); p.add(new JSeparator()); p.add(buildToolBar()); return p; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ClassifierView.java/clean/SRC/org/openmicroscopy/shoola/agents/util/classifier/view/ClassifierView.java |
initComponents(); | void initialize(ClassifierModel model, ClassifierControl controller) { if (model == null) throw new IllegalArgumentException("No model."); if (controller == null) throw new IllegalArgumentException("No control."); this.controller = controller; this.model = model; statusBar = new StatusBar(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ClassifierView.java/clean/SRC/org/openmicroscopy/shoola/agents/util/classifier/view/ClassifierView.java | |
if(arg0.getOldValue()==null) { return; } | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"); String language = (String)WFUtil.invoke(A... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/359eb7a18849ea5e020014473c49d0bb21322e5f/EditArticleBlock.java/buggy/src/java/com/idega/block/article/component/EditArticleBlock.java | |
public void addClassData(ClassData classData) | public synchronized void addClassData(ClassData classData) | public void addClassData(ClassData classData) { if (children.containsKey(classData.getBaseName())) throw new IllegalArgumentException("Source file " + this.name + " already contains a class with the name " + classData.getBaseName()); // Each key is a class basename, stored as an String object. // Each val... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/eac239953fcca75f4c9456b19bc9afd820e0f754/SourceFileData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/SourceFileData.java |
int state = model.getState(); if (state == Browser.READY) { setEnabled(true); } else setEnabled(false); | setEnabled(model.getState() == Browser.READY ); | protected void onStateChange() { int state = model.getState(); if (state == Browser.READY) { //if (model.getBrowserType() == Browser.IMAGES_EXPLORER) setEnabled(true); // else onDisplayChange(model.getLastSelectedDisplay()); } else setEnabled(false); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/SortByDateAction.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/actions/SortByDateAction.java |
Event currentEvent = securitySystem.getCurrentEvent(); Event mergedEvent = (Event) internalSave( currentEvent, filter ); securitySystem.setCurrentEvent( mergedEvent ); | private void beforeUpdate( Object argument, UpdateFilter filter ) { if ( argument == null ) throw new IllegalArgumentException( "Argument to save cannot be null."); if ( logger.isDebugEnabled() ) logger.debug( " Saving event before merge. " ); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/12f6ae8f254307cf501799bd57a8496e5a87439d/UpdateImpl.java/buggy/components/server/src/ome/logic/UpdateImpl.java | |
UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); | UpdateFilter filter = new UpdateFilter( ); | private <T> T doAction( T graph, UpdateAction<T> action ) { T retVal; UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); Event currentEvent = securitySystem.getCurrentEvent(); try { beforeUpdate( graph, filter ); retVal = action.run( graph, filt... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/12f6ae8f254307cf501799bd57a8496e5a87439d/UpdateImpl.java/buggy/components/server/src/ome/logic/UpdateImpl.java |
{ setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); JLabel label = new JLabel(" Wavelength"); c.ipadx = RenderingAgt.H_SPACE; c.weightx = 0.5; c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.... | { setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); JLabel label = new JLabel(" Wavelength"); c.ipadx = RenderingAgt.H_SPACE; c.weightx = 0.5; c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.... | private void buildGUI() { setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); JLabel label = new JLabel(" Wavelength"); c.ipadx = RenderingAgt.H_SPACE; c.weightx = 0.5; c.gridx = 0; c.gridy... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
private JPanel buildSliderPanel(JSlider slider) { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(slider); return p; } | private JPanel buildSliderPanel(JSlider slider) { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(slider); return p; } | private JPanel buildSliderPanel(JSlider slider) { JPanel p = new JPanel(); //p.setLayout(null); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); //slider.setPreferredSize(DIM_SLIDER); //slider.setSize(DIM_SLIDER); //p.setPreferredSize(DIM_SLIDER); //p.setSize(DIM_SLIDER); p.add(slider); return p; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
{ IconManager IM = IconManager.getInstance(registry); histogram = new JButton(IM.getIcon(IconManager.HISTOGRAM)); histogram.setToolTipText( UIUtilities.formatToolTipText("Bring the histogram dialog.")); histogram.setBorder(null); } | { IconManager IM = IconManager.getInstance(registry); histogram = new JButton(IM.getIcon(IconManager.HISTOGRAM)); histogram.setToolTipText( UIUtilities.formatToolTipText("Bring the histogram dialog.")); histogram.setBorder(null); } | private void initButton(Registry registry) { IconManager IM = IconManager.getInstance(registry); histogram = new JButton(IM.getIcon(IconManager.HISTOGRAM)); histogram.setToolTipText( UIUtilities.formatToolTipText("Bring the histogram dialog.")); histogram.setBorder(null); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
private void initLabel() { gammaLabel = new JLabel(" Gamma: "+qDef.curveCoefficient); } | private void initLabel(double curveCoefficient) { gammaLabel = new JLabel(" Gamma: "+curveCoefficient); } | private void initLabel() { gammaLabel = new JLabel(" Gamma: "+qDef.curveCoefficient); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
private void initSliders() { int k = (int) (qDef.curveCoefficient*10); gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k); if (qDef.family == QuantumFactory.LINEAR || qDef.family == QuantumFactory.LOGARITHMIC) gamma.setEnabled(false); else gamma.setEnabled(true); Integer br = ((Integer) uiBR.get(new Integer(qDef.bitR... | private void initSliders(int family, double curveCoefficient) { int k = (int) (curveCoefficient*10); gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k); if (family == QuantumFactory.LINEAR || family == QuantumFactory.LOGARITHMIC) gamma.setEnabled(false); else gamma.setEnabled(true); Integer br = ((Integer) uiBR.get(n... | private void initSliders() { int k = (int) (qDef.curveCoefficient*10); gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k); if (qDef.family == QuantumFactory.LINEAR || qDef.family == QuantumFactory.LOGARITHMIC) gamma.setEnabled(false); else gamma.setEnabled(true); Integer br = ((Integer) uiBR.get(new Integ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
{ String txt = " Gamma: "+v; gammaLabel.setText(txt); } | { String txt = " Gamma: "+v; gammaLabel.setText(txt); } | void setGammaText(double v) { String txt = " Gamma: "+v; gammaLabel.setText(txt); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
return RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString()); | RubySymbol result = RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString()); input.register(result); return result; | public static RubySymbol unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/RubySymbol.java/buggy/org/jruby/RubySymbol.java |
static Pattern createCaseInsensitivePattern(String regEx) | public static Pattern createCaseInsensitivePattern(String regEx) | static Pattern createCaseInsensitivePattern(String regEx) { return Pattern.compile(regEx, Pattern.CASE_INSENSITIVE); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/RegExFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/RegExFactory.java |
return RubyFixnum.newFixnum(input.getRuby(), | return RubyFixnum.newFixnum(input.getRuntime(), | public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyFixnum.newFixnum(input.getRuby(), input.unmarshalInt()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java |
add(annotate); add(createClassifySubMenu()); add(new JSeparator(SwingConstants.HORIZONTAL)); add(view); | add(new JSeparator(JSeparator.HORIZONTAL)); | private void buildGUI() { setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED)); add(properties); add(annotate); add(createClassifySubMenu()); add(new JSeparator(SwingConstants.HORIZONTAL)); add(view); add(zoomIn); add(zoomOut); add(zoomFit... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64ee7ec527da3cc538fcd8d0a21183719f854676/PopupMenu.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/PopupMenu.java |
return uri.replaceAll(": | return createDiscoveryPathName(uri) + "/" + localName; | protected String createDiscoveryPathName(String uri, String localName) { if (uri == null || uri.length() == 0) { return localName; } // TODO proper encoding required // lets replace any dodgy characters return uri.replaceAll("://", "/").replace(':', '/').replace(' ', '_... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/XBeanXmlBeanDefinitionParser.java/clean/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java |
String uri = "META-INF/services/org/xbean/spring/" + createDiscoveryPathName(namespaceURI, localName); | String uri = META_INF_PREFIX + createDiscoveryPathName(namespaceURI, localName); InputStream in = loadResource(uri); if (in == null) { in = loadResource(META_INF_PREFIX + createDiscoveryPathName(namespaceURI)); } | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/XBeanXmlBeanDefinitionParser.java/clean/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java |
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(uri); if (in == null) { in = getClass().getClassLoader().getResourceAsStream(uri); if (in == null) { logger.warn("Could not find resource: " + uri); return null; | if (in != null) { try { Properties properties = new Properties(); properties.load(in); return new MappingMetaData(properties); } catch (IOException e) { log.warn("Failed to load resource from uri: " + uri, e); | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/XBeanXmlBeanDefinitionParser.java/clean/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java |
try { Properties properties = new Properties(); properties.load(in); return new MappingMetaData(properties); } catch (IOException e) { log.warn("Failed to load resource from uri: " + uri, e); return null; } | return null; | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/XBeanXmlBeanDefinitionParser.java/clean/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java |
BeanDefinitionReaderUtils.registerBeanDefinition(bdHolder, getBeanDefinitionReader().getBeanFactory()); | protected int parseBeanDefinitions(Element root) throws BeanDefinitionStoreException { NodeList nl = root.getChildNodes(); int beanDefinitionCount = 0; for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/732c0ef7c045830951a19004a71a949d91016155/XBeanXmlBeanDefinitionParser.java/clean/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java | |
{ return eventManager.getChannelStats(w); } | { return eventManager.getChannelStats(w); } | PixelsStatsEntry[] getChannelStats(int w) { return eventManager.getChannelStats(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ return (int) eventManager.getChannelWindowEnd(w); } | { return (int) eventManager.getChannelWindowEnd(w); } | int getChannelWindowEnd(int w) { return (int) eventManager.getChannelWindowEnd(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ return (int) eventManager.getChannelWindowStart(w); } | { return (int) eventManager.getChannelWindowStart(w); } | int getChannelWindowStart(int w) { return (int) eventManager.getChannelWindowStart(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ return (int) eventManager.getGlobalChannelWindowEnd(w); } | { return (int) eventManager.getGlobalChannelWindowEnd(w); } | int getGlobalChannelWindowEnd(int w) { return (int) eventManager.getGlobalChannelWindowEnd(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ return (int) eventManager.getGlobalChannelWindowStart(w); } | { return (int) eventManager.getGlobalChannelWindowStart(w); } | int getGlobalChannelWindowStart(int w) { return (int) eventManager.getGlobalChannelWindowStart(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowEnd(w, value); } | { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowEnd(w, value); } | void setChannelWindowEnd(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowEnd(w, value); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowStart(w, value); } | { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowStart(w, value); } | void setChannelWindowStart(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); eventManager.setChannelWindowStart(w, value); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ if (id == CodomainPaneManager.RI) updateGraphic(selected); if (selected) eventManager.addCodomainMap(ctx); else eventManager.removeCodomainMap(ctx); } | { if (id == CodomainPaneManager.RI) updateGraphic(selected); if (selected) eventManager.addCodomainMap(ctx); else eventManager.removeCodomainMap(ctx); } | void setCodomainMap(CodomainMapContext ctx, boolean selected, int id) { if (id == CodomainPaneManager.RI) updateGraphic(selected); if (selected) eventManager.addCodomainMap(ctx); else eventManager.removeCodomainMap(ctx); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
void setQuantumStrategy(double k, int family, int resolution, int id) { if (id == DomainPaneManager.FAMILY) updateGraphic(family); else if (id == DomainPaneManager.GAMMA) updateGraphic((int) (k*10), family); eventManager.setQuantumStrategy(k, family, resolution); } | void setQuantumStrategy(int resolution, boolean b) { eventManager.setQuantumStrategy(resolution, b); } | void setQuantumStrategy(double k, int family, int resolution, int id) { if (id == DomainPaneManager.FAMILY) updateGraphic(family); else if (id == DomainPaneManager.GAMMA) updateGraphic((int) (k*10), family); //for graphic *10 eventManager.setQuantumStrategy(k, family, resolution); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = (int) eventManager.getChannelWindowEnd(... | { view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = (int) eventManager.getChannelWindowEnd(... | void setWavelength(int w) { view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ eventManager.updateCodomainMap(ctx); } | { eventManager.updateCodomainMap(ctx); } | void updateCodomainMap(CodomainMapContext ctx) { eventManager.updateCodomainMap(ctx); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ if (family == QuantumFactory.POLYNOMIAL) view.getGRepresentation().setControlLocation(coefficient); else if (family == QuantumFactory.EXPONENTIAL) view.getGRepresentation().setControlAndEndLocation(coefficient); } | { if (family == QuantumFactory.POLYNOMIAL) view.getGRepresentation().setControlLocation(coefficient); else if (family == QuantumFactory.EXPONENTIAL) view.getGRepresentation().setControlAndEndLocation(coefficient); } | private void updateGraphic(int coefficient, int family) { if (family == QuantumFactory.POLYNOMIAL) view.getGRepresentation().setControlLocation(coefficient); else if (family == QuantumFactory.EXPONENTIAL) view.getGRepresentation().setControlAndEndLocation(coefficient); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ if (histogramDialog != null) histogramDialog.dispose(); histogramDialog = null; } | { if (histogramDialog != null) histogramDialog.dispose(); histogramDialog = null; } | void disposeDialogs() { if (histogramDialog != null) histogramDialog.dispose(); histogramDialog = null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
{ resetDefaultGamma(); resetDefaultBitResolution(); resetDefaultComboBox(view.getTransformations(), QuantumFactory.LINEAR); resetDefaultComboBox(view.getWavelengths(), 0); histogramDialog = null; } | { resetDefaultGamma(1, QuantumFactory.LINEAR); resetDefaultBitResolution(); resetDefaultComboBox(view.getTransformations(), QuantumFactory.LINEAR); resetDefaultComboBox(view.getWavelengths(), 0); resetDefaultCheckBox(); histogramDialog = null; } | void resetDefaults() { resetDefaultGamma(); resetDefaultBitResolution(); resetDefaultComboBox(view.getTransformations(), QuantumFactory.LINEAR); resetDefaultComboBox(view.getWavelengths(), 0); histogramDialog = null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); } | { if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); } | void setInputWindowEnd(int value) { if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
{ int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputEndBox(vg); view.updateInputEnd(vg, v); } | { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputEndBox(vg); view.updateInputEnd(vg, v); } | void setInputWindowEnd(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputEndBox(vg); view.updateInputEnd(vg, v); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/GraphicsRepresentationManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentationManager.java |
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); } | { if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); } | void setInputWindowStart(int value) { if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
{ int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputStartBox(vg); view.updateInputStart(vg, v); } | { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputStartBox(vg); view.updateInputStart(vg, v); } | void setInputWindowStart(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputStartBox(vg); view.updateInputStart(vg, v); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/GraphicsRepresentationManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentationManager.java |
private void resetDefaultGamma() { view.getGammaLabel().setText(" Gamma: "+(double) GraphicsRepresentation.INIT/10); JSlider slider = view.getGamma(); slider.removeChangeListener(this); slider.setValue(GraphicsRepresentation.INIT); slider.addChangeListener(this); } | void resetDefaultGamma(double k, int family) { view.getGammaLabel().setText(" Gamma: "+k); JSlider slider = view.getGamma(); if (family == QuantumFactory.LOGARITHMIC || family == QuantumFactory.LINEAR) slider.setEnabled(false); else slider.setEnabled(true); slider.removeChangeListener(this); slider.setValue((int) (k*1... | private void resetDefaultGamma() { view.getGammaLabel().setText(" Gamma: "+(double) GraphicsRepresentation.INIT/10); JSlider slider = view.getGamma(); //Remove temporarily the listener otherwise an event is fired. slider.removeChangeListener(this); slider.setValue(GraphicsRepresentation.INIT); slider.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
private void resetDefaultComboBox(JComboBox box, int index) { box.removeActionListener(this); box.setSelectedIndex(index); box.addActionListener(this); } | void resetDefaultComboBox(JComboBox box, int index) { box.removeActionListener(this); box.setSelectedIndex(index); box.addActionListener(this); } | private void resetDefaultComboBox(JComboBox box, int index) { //Remove temporarily the listener otherwise an event is fired. box.removeActionListener(this); box.setSelectedIndex(index); box.addActionListener(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
int c; | int c = source.read(); | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (lex_p == lex_pend) { | if (c == 65535) { c = -1; } ruby.setSourceLine(source.getLine()); return c; /*int c; if (col == lex_pend) { | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | ||
lex_p = lex_pbeg = 0; | col = lex_pbeg = 0; | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
c = lex_curline.charAt(lex_p++); if (c == '\r' && lex_p <= lex_pend && lex_curline.charAt(lex_p) == '\n') { lex_p++; | c = lex_curline.charAt(col++); if (c == '\r' && col <= lex_pend && lex_curline.charAt(col) == '\n') { col++; | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
return c; | return c;*/ | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int parse_qstring(int term, int paren) { int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { ruby.setSourceLine(strstart); ph.rb_compile_err... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.