bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ... | public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ... | 3,236,267 |
public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ... | public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ... | 3,236,268 |
protected void setUp() { pixels = new Pixels(); pixels.setId(1L); pixels.setSizeX(512); pixels.setSizeY(512); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type)... | protected void setUp() { pixels = new Pixels(); pixels.setId(1L); pixels.setSizeX(512); pixels.setSizeY(512); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type)... | 3,236,269 |
public void displaysImagesName() { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked "+ "in the DISCARDED state."); PartialNameVisitor v = new PartialNameVisitor(view.isPartialName()); accept(v, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); vie... | public void displaysImagesName() { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked "+ "in the DISCARDED state."); PartialNameVisitor v = new PartialNameVisitor(view.isPartialName()); accept(v, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); vie... | 3,236,270 |
public boolean isMainTree() { // TODO Auto-generated method stub return model.isMainTree(); } | publicbooleanisMainTree(){//TODOAuto-generatedmethodstubreturnmodel.isMainTree();} | 3,236,271 |
public void navigate(boolean v) { TreeImageDisplay display = getLastSelectedDisplay(); if (display != null) { //shouldn't happen if (display.containsImages()) { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(!v); } else { controller.g... | public void navigate(boolean v) { TreeImageDisplay display = getLastSelectedDisplay(); if (display != null) { //shouldn't happen if (display.containsImages()) { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(!v); } else { controller.g... | 3,236,272 |
public void visitDefnNode(DefnNode iVisited) { RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getClasse... | public void visitDefnNode(DefnNode iVisited) { RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getClasse... | 3,236,276 |
public void visitDefnNode(DefnNode iVisited) { RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getClasse... | */ */ */ */ public*/ void*/ visitDefnNode(DefnNode*/ iVisited)*/ {*/ */ */ */ */ */ */ */ RubyModule*/ containingClass*/ =*/ threadContext.getRubyClass();*/ */ */ */ */ */ */ */ if*/ (containingClass*/ ==*/ null)*/ {*/ */ */ */ */ */ */ */ */ */ */ */ throw*/ new*/ TypeError... | 3,236,277 |
public Collection saveAndReturnCollection(Collection graph) { throw new RuntimeException("Not implemented yet."); } | public Collection saveAndReturnCollection( @Validate(IObject.class) Collection graph) { throw new RuntimeException("Not implemented yet."); } | 3,236,278 |
public void saveCollection(Collection graph) { beforeSave(); for (Object _object : graph) { IObject obj = (IObject) _object; obj = internalSave(obj); } afterSave(); } | public void saveCollection(@Validate(IObject.class) Collection graph) { beforeSave(); for (Object _object : graph) { IObject obj = (IObject) _object; obj = internalSave(obj); } afterSave(); } | 3,236,279 |
public RubyScope getScope() { return rubyScope; } | public RubyScope getScope() { return rubyScope; } | 3,236,280 |
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ... | public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); getScope().push();... | 3,236,281 |
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ... | public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ... | 3,236,282 |
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ... | public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ... | 3,236,283 |
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | 3,236,284 |
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | 3,236,285 |
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); // Pickaxe ... | 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", varName); } IRubyObject variable = getInstanceVariable(varName); //... | 3,236,287 |
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(), value)... | 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", varName); } return setInstanceVariable(var.asSymbol(... | 3,236,288 |
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... | 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... | 3,236,289 |
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... | 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... | 3,236,290 |
public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntim... | public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id, id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRu... | 3,236,291 |
public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntim... | public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntim... | 3,236,292 |
public String toString(){ return "RenderingSetting"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "RenderingSetting"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,236,295 |
public List getAvailableFamilies() { return delegate.getAvailableFamilies(); } | public List getAvailableFamilies() { List<Family> families = delegate.getAvailableFamilies(); List result = new ArrayList(); for (Family family : families) { result.add( copyFamily(family) ); } return result; } | 3,236,296 |
public List getAvailableModels() { return delegate.getAvailableModels(); } | public List getAvailableModels() { List<RenderingModel> models = delegate.getAvailableModels(); List result = new ArrayList(); for (RenderingModel model : models) { result.add( copyRenderingModel(model)); } return result; } | 3,236,297 |
public Family getChannelFamily(int arg0) { return delegate.getChannelFamily(arg0); } | public Family getChannelFamily(int arg0) { Family family = delegate.getChannelFamily(arg0); return copyFamily(family); } | 3,236,298 |
public RenderingModel getModel() { return delegate.getModel(); } | public RenderingModel getModel() { return copyRenderingModel(delegate.getModel()); } | 3,236,299 |
public Pixels getPixels() { return delegate.getPixels(); } | public Pixels getPixels() { Pixels pix = delegate.getPixels(); return (Pixels) new ShallowCopy().copy(pix); } | 3,236,300 |
public QuantumDef getQuantumDef() { return delegate.getQuantumDef(); } | public QuantumDef getQuantumDef() { QuantumDef def = delegate.getQuantumDef(); return (QuantumDef) new ShallowCopy().copy(def); } | 3,236,301 |
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); ... | 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); JPanel p = UIUtilities.buildCompo... | 3,236,302 |
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); ... | 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); ... | 3,236,303 |
public void setUp() { runtime = Ruby.getDefaultInstance(); runtime.getLoadService().init(runtime, new ArrayList()); } | public void setUp() { runtime = Ruby.getDefaultInstance(); runtime.getLoadService().init(new ArrayList()); } | 3,236,304 |
public NODE newCall(Object r, Object m, Object a) { return newDefaultNode(NODE.NODE_CALL, r, m, a); } | public NODE newCall(Object r, Object m, Object a) { return newDefaultNode(NODE.NODE_CALL, r, m, a); } | 3,236,305 |
public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); } | public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); } | 3,236,306 |
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... | 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... | 3,236,307 |
private void pushCallFrame(IRubyObject self, IRubyObject[] args, String lastFunc, RubyModule lastClass) { pushFrame(new Frame(this, self, args, lastFunc, lastClass, getPosition(), getCurrentIter(), getCurrentBlock())); } | private void pushCallFrame(IRubyObject self, IRubyObject[] args, String lastFunc, RubyModule lastClass) { Iter iter = getCurrentFrame().getCallingZSuper() ? getCurrentFrame().getIter() : getCurrentIter(); pushFrame(new Frame(this, self, args, lastFunc, lastClass, getPosition(), iter, getCurrentBl... | 3,236,309 |
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... | 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... | 3,236,310 |
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... | 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... | 3,236,311 |
public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } | public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } | 3,236,312 |
public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } | 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); if (contactGroup == null) { co... | 3,236,313 |
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... | 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... | 3,236,314 |
public void run() { subscriptionRequest(presence.getFrom()); } | public void run() { 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 unsu... | 3,236,315 |
public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 3,236,316 |
public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 3,236,318 |
public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 3,236,319 |
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 3,236,320 |
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 3,236,321 |
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 ... | 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 ... | 3,236,322 |
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) { ... | 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) { ... | 3,236,323 |
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) { ... | 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) { ... | 3,236,324 |
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) { ... | 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) { ... | 3,236,325 |
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); ... | 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); ... | 3,236,326 |
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); ... | public void run() { Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); if (rosterEntry != null) { ... | 3,236,327 |
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); ... | 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); ... | 3,236,328 |
private void showEmptyGroups(boolean show) { Iterator contactGroups = getContactGroups().iterator(); while (contactGroups.hasNext()) { ContactGroup group = (ContactGroup)contactGroups.next(); if (show) { group.setVisible(true); } else { ... | private void showEmptyGroups(boolean show) { Iterator contactGroups = getContactGroups().iterator(); while (contactGroups.hasNext()) { ContactGroup group = (ContactGroup)contactGroups.next(); if (show) { group.setVisible(true); } else { ... | 3,236,329 |
public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); } | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); } | 3,236,330 |
public void actionPerformed(ActionEvent e) { removeContactFromRoster(item); } | public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); } | 3,236,331 |
public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); } | public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); } | 3,236,332 |
public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | 3,236,333 |
public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | public void actionPerformed(ActionEvent e) { JEditorPane pane = new JEditorPane(); StringBuffer buf = new StringBuffer(); Collection col = item.getPresenceHistory(); Iterator iter = col.iterator(); while (iter.hasNext()) { ... | 3,236,334 |
public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... | 3,236,335 |
public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.SUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); } | public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.SUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); } | 3,236,337 |
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... | 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... | 3,236,338 |
public void actionPerformed(ActionEvent e) { // Send subscribed Presence response = new Presence(Presence.Type.UNSUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); dialog.dispose(); } | public void actionPerformed(ActionEvent e) { // Send subscribed Presence response = new Presence(Presence.Type.UNSUBSCRIBE); response.setTo(jid); SparkManager.getConnection().sendPacket(response); dialog.dispose(); } | 3,236,339 |
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... | 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... | 3,236,340 |
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... | 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... | 3,236,341 |
public Object yyparse (RubyYaccLexer yyLex, Object yydebug) throws java.io.IOException, yyException { return yyparse(yyLex); } | public Object yyparse (RubyYaccLexer yyLex, Object yydebug) throws java.io.IOException, yyException { return yyparse(yyLex); } | 3,236,342 |
public static Map getEmoticonMap() { Map newMap = new HashMap(emotionMap); newMap.remove("8-)"); newMap.remove("|-)"); newMap.remove("<:o)"); newMap.remove(":-)"); return newMap; } | public static Map getEmoticonMap() { Map<String,String> newMap = new HashMap<String,String>(emotionMap); newMap.remove("8-)"); newMap.remove("|-)"); newMap.remove("<:o)"); newMap.remove(":-)"); return newMap; } | 3,236,343 |
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; } | 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; } | 3,236,344 |
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; } | 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; } | 3,236,345 |
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... | publicvoidaliasMethod(Stringname,StringoldName){testFrozen();if(oldName.equals(name)){return;}if(this==getRuntime().getClasses().getObjectClass()){getRuntime().secure(4);}ICallablemethod=searchMethod(oldName);if(method.isUndefined()){if(isModule()){method=getRuntime().getClasses().getObjectClass().searchMethod(oldName)... | 3,236,348 |
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... | publicvoidaliasMethod(Stringname,StringoldName){testFrozen();if(oldName.equals(name)){return;}if(this==getRuntime().getClasses().getObjectClass()){getRuntime().secure(4);}ICallablemethod=searchMethod(oldName);if(method.isUndefined()){if(isModule()){method=getRuntime().getClasses().getObjectClass().searchMethod(oldName)... | 3,236,349 |
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... | publicvoidaliasMethod(Stringname,StringoldName){testFrozen();if(oldName.equals(name)){return;}if(this==getRuntime().getClasses().getObjectClass()){getRuntime().secure(4);}ICallablemethod=searchMethod(oldName);if(method.isUndefined()){if(isModule()){method=getRuntime().getClasses().getObjectClass().searchMethod(oldName)... | 3,236,350 |
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... | publicvoidaliasMethod(Stringname,StringoldName){testFrozen();if(oldName.equals(name)){return;}if(this==getRuntime().getClasses().getObjectClass()){getRuntime().secure(4);}ICallablemethod=searchMethod(oldName);if(method.isUndefined()){if(isModule()){method=getRuntime().getClasses().getObjectClass().searchMethod(oldName)... | 3,236,351 |
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... | publicvoidaliasMethod(Stringname,StringoldName){testFrozen();if(oldName.equals(name)){return;}if(this==getRuntime().getClasses().getObjectClass()){getRuntime().secure(4);}ICallablemethod=searchMethod(oldName);if(method.isUndefined()){if(isModule()){method=getRuntime().getClasses().getObjectClass().searchMethod(oldName)... | 3,236,352 |
public Set entrySet() { // TODO: Set.Entry must be wrapped appropriately...? return new ConversionSet(valueMap.entrySet()); } | public Set entrySet() { // TODO: Set.Entry must be wrapped appropriately...? return new ConversionSet(valueMap.entrySet()); } | 3,236,353 |
public Set keySet() { return new ConversionSet(valueMap.keySet()); } | public Set keySet() { return new ConversionSet(valueMap.keySet()); } | 3,236,354 |
public Collection values() { // TODO Auto-generated method stub return null; } | public Collection values() { // TODO Auto-generated method stub return null; } | 3,236,355 |
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | privatestaticvoidcomputeLocationStats(Pixelspixels,List<ChannelBinding>cbs,PlaneDefplaneDef,PixelBufferbuf){if(planeDef==null) thrownewNullPointerException("Noplanedefinition.");StatsFactorysf=newStatsFactory();intw=0;List<Channel>channels=pixels.getChannels();for(Channelchannel:channels){ //FIXME:Thisiswhereweneedtoha... | 3,236,356 |
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | 3,236,357 |
protected void tearDown() throws Exception { if (context != null) { System.out.println("Closing down the spring context"); context.destroy(); } } | protected void tearDown() throws Exception { if (context != null) { log.info("Closing down the spring context"); context.destroy(); } } | 3,236,358 |
void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon computeSizes(); imageIcon = magnifyImage(factor, image); state = ImViewer.READY; } | void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon computeSizes(); imageIcon = magnifyImage(factor, image); } | 3,236,360 |
public void callInit(IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); tc.setIfBlockAvailable(); try { callMethod(getRuntime().getCurrentContext(), "initialize", args); } finally { tc.clearIfBlockAvailable(); } } | public void callInit(IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); tc.setIfBlockAvailable(); try { callMethod(getRuntime().getCurrentContext(), "initialize", args); } finally { tc.clearIfBlockAvailable(); } } | 3,236,361 |
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; ... | 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; ... | 3,236,362 |
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; ... | 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; ... | 3,236,363 |
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; ... | 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; ... | 3,236,364 |
public IRubyObject display(IRubyObject[] args) { IRubyObject port = args.length == 0 ? getRuntime().getGlobalVariables().get("$>") : args[0]; port.callMethod(getRuntime().getCurrentContext(), "write", this); return getRuntime().getNil(); } | public IRubyObject display(IRubyObject[] args) { IRubyObject port = args.length == 0 ? getRuntime().getGlobalVariables().get("$>") : args[0]; port.callMethod(getRuntime().getCurrentContext(), "write", this); return getRuntime().getNil(); } | 3,236,365 |
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(); ... | 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(); ... | 3,236,366 |
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(); ... | 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(); ... | 3,236,367 |
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(); ... | 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(); ... | 3,236,368 |
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(); ... | 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(); ... | 3,236,369 |
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(); ... | 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(); ... | 3,236,370 |
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(); ... | 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(); ... | 3,236,371 |
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... | 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... | 3,236,372 |
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]... | 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]... | 3,236,373 |
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(); ... | 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(); ... | 3,236,374 |
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(); ... | 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(); ... | 3,236,375 |
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(); ... | 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(); ... | 3,236,376 |
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(); ... | 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(); ... | 3,236,377 |
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(); ... | 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(); ... | 3,236,378 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.