bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public MetaClass(Ruby runtime, RubyClass type, RubyClass superClass) { super(runtime, type, superClass); } | public MetaClass(Ruby runtime, RubyClass type, RubyClass superClass) { super(runtime, type, superClass); } | 3,228,773 |
public static RubyObject backquote(Ruby ruby, RubyObject recv, RubyString aString) { // XXX use other methods try { String lShellProp = System.getProperty("jruby.shell"); Process aProcess; String lCommand = aString.toString(); String lSwitch = "-c"; if (lShellProp ... | public static RubyObject backquote(Ruby ruby, RubyObject recv, RubyString aString) { // XXX use other methods try { String lShellProp = System.getProperty("jruby.shell"); Process aProcess; String lCommand = aString.toString(); String lSwitch = "-c"; if (lShellProp ... | 3,228,774 |
public static RubyObject backquote(Ruby ruby, RubyObject recv, RubyString aString) { // XXX use other methods try { String lShellProp = System.getProperty("jruby.shell"); Process aProcess; String lCommand = aString.toString(); String lSwitch = "-c"; if (lShellProp ... | public static RubyObject backquote(Ruby ruby, RubyObject recv, RubyString aString) { // XXX use other methods try { String lShellProp = System.getProperty("jruby.shell"); Process aProcess; String lCommand = aString.toString(); String lSwitch = "-c"; if (lShellProp ... | 3,228,775 |
public static RubyArray createBacktrace(Ruby ruby, int level) { RubyFrame frame = ruby.getRubyFrame(); RubyArray backtrace = RubyArray.newArray(ruby); if (level < 0) { StringBuffer sb = new StringBuffer(100); if (frame.getLastFunc() != null) { sb.append(ruby... | public static RubyArray createBacktrace(Ruby ruby, int level) { RubyFrame frame = ruby.getRubyFrame(); RubyArray backtrace = RubyArray.newArray(ruby); if (level < 0) { StringBuffer sb = new StringBuffer(100); if (frame.getLastFunc() != null) { sb.append(ruby... | 3,228,776 |
public static RubyArray createBacktrace(Ruby ruby, int level) { RubyFrame frame = ruby.getRubyFrame(); RubyArray backtrace = RubyArray.newArray(ruby); if (level < 0) { StringBuffer sb = new StringBuffer(100); if (frame.getLastFunc() != null) { sb.append(ruby... | public static RubyArray createBacktrace(Ruby ruby, int level) { RubyFrame frame = ruby.getRubyFrame(); RubyArray backtrace = RubyArray.newArray(ruby); if (level < 0) { StringBuffer sb = new StringBuffer(100); if (frame.getLastFunc() != null) { sb.append(ruby... | 3,228,777 |
public void push(StackElement newElement) { if (top != null) { ((Scope) top).setMethodScope(ruby.getActMethodScope()); } super.push(newElement); ruby.setActMethodScope(Constants.NOEX_PUBLIC); } | public void push(StackElement newElement) { if (top != null) { ((Scope) top).setMethodScope(ruby.getActMethodScope()); } super.push(newElement); ruby.setActMethodScope(Constants.NOEX_PUBLIC); } | 3,228,778 |
public void push(StackElement newElement) { if (top != null) { ((Scope) top).setMethodScope(ruby.getActMethodScope()); } super.push(newElement); ruby.setActMethodScope(Constants.NOEX_PUBLIC); } | public void push(StackElement newElement) { if (top != null) { ((Scope) top).setMethodScope(ruby.getActMethodScope()); } super.push(newElement); ruby.setActMethodScope(Constants.NOEX_PUBLIC); } | 3,228,779 |
PinButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); //B/c... | PinButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); //B/c... | 3,228,780 |
PinButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); //B/c... | PinButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); //B/c... | 3,228,781 |
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin... | privatevoidaddContactListToWorkspace(){Workspaceworkspace=SparkManager.getWorkspace();workspace.getWorkspacePane().addTab("Contacts",SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE),this);//NOTRANS//AddToContactsMenufinalJMenucontactsMenu=SparkManager.getMainWindow().getMenuByName("Contacts");JMenuItemaddContactsM... | 3,228,782 |
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... | publicvoidactionPerformed(ActionEvente){StringgroupName=JOptionPane.showInputDialog(getGUI(),"NameofGroup:","AddNewGroup",JOptionPane.QUESTION_MESSAGE);if(ModelUtil.hasLength(groupName)){ContactGroupcontactGroup=getContactGroup(groupName);if(contactGroup==null){contactGroup=addContactGroup(groupName);}}} | 3,228,784 |
private void addUser(RosterEntry entry) { String name = entry.getName(); if (!ModelUtil.hasLength(name)) { name = entry.getUser(); } String nickname = entry.getName(); if (!ModelUtil.hasLength(nickname)) { nickname = entry.getUser(); } ContactIt... | private void addUser(RosterEntry entry) { String name = entry.getName(); if (!ModelUtil.hasLength(name)) { name = entry.getUser(); } String nickname = entry.getName(); if (!ModelUtil.hasLength(nickname)) { nickname = entry.getUser(); } ContactIt... | 3,228,786 |
private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for... | private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for (RosterGroup group : roster.getGroups()) { ContactGroup contactGroup = addContactGroup(group.getName()); f... | 3,228,787 |
private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for... | private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for... | 3,228,788 |
private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for... | private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for... | 3,228,789 |
private void changeOfflineToOnline(String bareJID, final RosterEntry entry, Presence presence) { // Move out of offline group. Add to all groups. ContactItem offlineItem = offlineGroup.getContactItemByJID(bareJID); if (offlineItem == null) { return; } offlineGroup.remov... | private void changeOfflineToOnline(String bareJID, final RosterEntry entry, Presence presence) { // Move out of offline group. Add to all groups. ContactItem offlineItem = offlineGroup.getContactItemByJID(bareJID); if (offlineItem == null) { return; } offlineGroup.remov... | 3,228,790 |
public void clientReconnected() { XMPPConnection con = SparkManager.getConnection(); if (con.isConnected()) { // Send Available status final Presence presence = SparkManager.getWorkspace().getStatusBar().getPresence(); SparkManager.getSessionManager().changePresence(pr... | public void clientReconnected() { XMPPConnection con = SparkManager.getConnection(); if (con.isConnected()) { // Send Available status final Presence presence = SparkManager.getWorkspace().getStatusBar().getPresence(); SparkManager.getSessionManager().changePresence(pr... | 3,228,791 |
public void contactGroupPopup(MouseEvent e, final ContactGroup group) { // Do nothing with offline group if (group == offlineGroup || group == unfiledGroup) { return; } final JPopupMenu popup = new JPopupMenu(); popup.add(addContactMenu); popup.add(addContactGrou... | public void contactGroupPopup(MouseEvent e, final ContactGroup group) { // Do nothing with offline group if (group == offlineGroup || group == unfiledGroup) { return; } final JPopupMenu popup = new JPopupMenu(); popup.add(addContactMenu); popup.add(addContactGrou... | 3,228,792 |
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,228,793 |
public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | 3,228,794 |
public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | 3,228,795 |
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,228,796 |
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,228,797 |
public RosterDialog() { contactList = SparkManager.getWorkspace().getContactList(); panel = new JPanel(); JLabel contactIDLabel = new JLabel(); jidField = new JTextField(); JLabel nicknameLabel = new JLabel(); nicknameField = new JTextField(); JLabel groupLabel = new... | public RosterDialog() { contactList = SparkManager.getWorkspace().getContactList(); panel = new JPanel(); JLabel contactIDLabel = new JLabel(); jidField = new JTextField(); JLabel nicknameLabel = new JLabel(); nicknameField = new JTextField(); JLabel groupLabel = new... | 3,228,798 |
public void showRosterDialog() { showRosterDialog(SparkManager.getMainWindow()); } | public void showRosterDialog() { showRosterDialog(SparkManager.getMainWindow()); } | 3,228,799 |
public void updatePresenceIcon(Presence presence) { ChatManager chatManager = SparkManager.getChatManager(); boolean handled = chatManager.fireContactItemPresenceChanged(this, presence); if (handled) { return; } String status = presence != null ? presence.getStatus() : ... | public void updatePresenceIcon(Presence presence) { ChatManager chatManager = SparkManager.getChatManager(); boolean handled = chatManager.fireContactItemPresenceChanged(this, presence); if (handled) { return; } String status = presence != null ? presence.getStatus() : ... | 3,228,800 |
public List findAll(final Class klass, final Filter filter) { if ( filter == null ) return getHibernateTemplate().loadAll( klass ); return (List) getHibernateTemplate().execute( new HibernateCallback(){ public Object doInHibernate(Session session) throws Hibe... | public <T extends IObject> List<T> findAll(final Class<T> klass, final Filter filter) { if ( filter == null ) return getHibernateTemplate().loadAll( klass ); return (List) getHibernateTemplate().execute( new HibernateCallback(){ public Object doInHibernate(Session sessi... | 3,228,802 |
public List findAll(final Class klass, final Filter filter) { if ( filter == null ) return getHibernateTemplate().loadAll( klass ); return (List) getHibernateTemplate().execute( new HibernateCallback(){ public Object doInHibernate(Session session) throws Hibe... | public List findAll(final Class klass, final Filter filter) { if ( filter == null ) return getHibernateTemplate().loadAll( klass ); return (List<T>) getHibernateTemplate().execute( new HibernateCallback(){ public Object doInHibernate(Session session) throws H... | 3,228,803 |
public List findAllByExample(final IObject example, final Filter filter) { return (List) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(exampl... | public <T extends IObject> List<T> findAllByExample(final T example, final Filter filter) { return (List) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.crea... | 3,228,804 |
public List findAllByExample(final IObject example, final Filter filter) { return (List) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(exampl... | public List findAllByExample(final IObject example, final Filter filter) { return (List<T>) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(exa... | 3,228,805 |
public List findAllByQuery(String queryName, Parameters params) { Query<List> q = queryFactory.lookup( queryName, params ); return execute(q); } | public <T extends IObject> List<T> findAllByQuery(String queryName, Parameters params) { Query<List> q = queryFactory.lookup( queryName, params ); return execute(q); } | 3,228,806 |
public List findAllByQuery(String queryName, Parameters params) { Query<List> q = queryFactory.lookup( queryName, params ); return execute(q); } | public List findAllByQuery(String queryName, Parameters params) { Query<List<T>> q = queryFactory.lookup( queryName, params ); return execute(q); } | 3,228,807 |
public List findAllByString( final Class klass, final String fieldName, final String value, final boolean caseSensitive, final Filter filter) throws ApiUsageException { return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | public List findAllByString( final Class klass, final String fieldName, final String value, final boolean caseSensitive, final Filter filter) throws ApiUsageException { return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | 3,228,808 |
public List findAllByString( final Class klass, final String fieldName, final String value, final boolean caseSensitive, final Filter filter) throws ApiUsageException { return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | public List findAllByString( final Class klass, final String fieldName, final String value, final boolean caseSensitive, final Filter filter) throws ApiUsageException { return (List<T>) getHibernateTemplate().execute(new HibernateCallback() { ... | 3,228,809 |
public IObject findByExample(final IObject example) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria... | public <T extends IObject> T findByExample(final T example) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.create... | 3,228,810 |
public IObject findByExample(final IObject example) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria... | public IObject findByExample(final IObject example) throws ApiUsageException { return (T) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(examp... | 3,228,811 |
public IObject findByQuery(String queryName, Parameters params) throws ValidationException { if ( params == null ) { params = new Parameters(); } // specify that we should only return a single value if possible params.getFilter().unique(); ... | public <T extends IObject> T findByQuery(String queryName, Parameters params) throws ValidationException { if ( params == null ) { params = new Parameters(); } // specify that we should only return a single value if possible params.getFilter().uni... | 3,228,812 |
public IObject findByQuery(String queryName, Parameters params) throws ValidationException { if ( params == null ) { params = new Parameters(); } // specify that we should only return a single value if possible params.getFilter().unique(); ... | public IObject findByQuery(String queryName, Parameters params) throws ValidationException { if ( params == null ) { params = new Parameters(); } // specify that we should only return a single value if possible params.getFilter().unique(); ... | 3,228,813 |
public IObject findByString( final Class klass, final String fieldName, final String value) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateExcepti... | public IObject findByString( final Class klass, final String fieldName, final String value) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateExcepti... | 3,228,814 |
public IObject findByString( final Class klass, final String fieldName, final String value) throws ApiUsageException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateExcepti... | public IObject findByString( final Class klass, final String fieldName, final String value) throws ApiUsageException { return (T) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { ... | 3,228,815 |
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | 3,228,816 |
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | 3,228,817 |
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); ImageDisplay d = browser.getLastSelectedDisplay(); Point p = browser.getPopupPoi... | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); ImageDisplay d = browser.getLastSelectedDisplay(); Point p = browser.getPopupPoi... | 3,228,818 |
static void display(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node."); TinyDialog w = getWindowFor(node); if (w != null) { //Could be null, see notes in getWindowFor(). w.pack(); //Now we have the right width and height. Point p = getW... | static void display(ImageNode node, HiViewer model) { if (node == null) throw new IllegalArgumentException("No node."); TinyDialog w = getWindowFor(node); if (w != null) { //Could be null, see notes in getWindowFor(). w.pack(); //Now we have the right width and height. ... | 3,228,819 |
static void display(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node."); TinyDialog w = getWindowFor(node); if (w != null) { //Could be null, see notes in getWindowFor(). w.pack(); //Now we have the right width and height. Point p = getW... | static void display(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node."); if (model == null) throw new IllegalArgumentException("No model."); TinyDialog w = getWindowFor(node, model); if (w != null) { //Could be null, see notes in getWindowFor(). w.p... | 3,228,820 |
public RenderingEngine getRenderingService(){ return (RenderingEngine) this.ctx.getBean("renderingService"); } | public RenderingEngine getRenderingService(){ return (RenderingEngine) this.ctx.getBean("renderService"); } | 3,228,821 |
public Object invoke(ObjectName objectName, String methodName) throws org.apache.geronimo.kernel.GBeanNotFoundException, org.apache.geronimo.kernel.NoSuchOperationException, Exception { boolean running = isRunning(objectName); if (running) { throw new Illega... | public Object invoke(ObjectName objectName, String methodName) throws org.apache.geronimo.kernel.GBeanNotFoundException, org.apache.geronimo.kernel.NoSuchOperationException, Exception { boolean running = isRunning(objectName); if (!running) { throw new Illeg... | 3,228,822 |
public Node newArgs(Object f, Node o, RubyId r) { // +++ // return new ArgsNode(o, r, f); // --- return null; } | public Node newArgs(Object f, Node o, RubyId r) { // +++ // return new ArgsNode(o, r, f); // --- return null; } | 3,228,823 |
public static String rtrim(String s) { if (s == null) return null; for (int i = s.length() - 1; i > -1; i--) { if (!Character.isWhitespace(s.charAt(i))) return s.substring(0, i); } // if all WS return empty string return ""; } | public static String rtrim(String s) { if (s == null) return null; for (int i = s.length() - 1; i > -1; i--) { if (!Character.isWhitespace(s.charAt(i))) return s.substring(0, i+1); } // if all WS return empty string return ""; } | 3,228,824 |
public static Criteria buildCategoryGroupCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("CategoryList", "Name... | public static Criteria buildCategoryGroupCriteria(int groupID, int userID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("Category... | 3,228,825 |
public static Criteria buildCategoryGroupCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("CategoryList", "Name... | public static Criteria buildCategoryGroupCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("CategoryList", "Name"); c.addWantedField("Category... | 3,228,826 |
public static Criteria buildCategoryGroupCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("CategoryList", "Name... | public static Criteria buildCategoryGroupCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("CategoryList", "Name... | 3,228,827 |
public static Criteria buildDatasetAnnotationCriteria(int datasetID) { Criteria c = new Criteria(); fillAnnotationCriteria(c); c.addWantedField("dataset"); c.addFilter("dataset_id", new Integer(datasetID)); return c; } | public static Criteria buildDatasetAnnotationCriteria(List datasetIDs, int userID) { Criteria c = new Criteria(); fillAnnotationCriteria(c); c.addWantedField("dataset"); c.addFilter("dataset_id", new Integer(datasetID)); return c; } | 3,228,829 |
public static Criteria buildDatasetAnnotationCriteria(int datasetID) { Criteria c = new Criteria(); fillAnnotationCriteria(c); c.addWantedField("dataset"); c.addFilter("dataset_id", new Integer(datasetID)); return c; } | public static Criteria buildDatasetAnnotationCriteria(int datasetID) { Criteria c = new Criteria(); fillAnnotationCriteria(c); c.addWantedField("dataset"); c.addFilter("dataset_id", "IN", datasetIDs); if (userID != -1) c.addFilter("module_execution.experimenter_id", new Integer(userI... | 3,228,830 |
public static Criteria buildICGHierarchyCriteria(List imageIDs) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields... | public static Criteria buildICGHierarchyCriteria(List imageIDs, int userID) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify ... | 3,228,831 |
public static Criteria buildICGHierarchyCriteria(List imageIDs) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields... | public static Criteria buildICGHierarchyCriteria(List imageIDs) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields... | 3,228,832 |
public static Criteria buildICGHierarchyCriteria(List imageIDs) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields... | public static Criteria buildICGHierarchyCriteria(List imageIDs) { Criteria c = new Criteria(); c.addWantedField("Confidence"); c.addWantedField("Category"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields... | 3,228,833 |
public static Criteria buildBasicCriteria(int id) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields we want for the ... | public static Criteria buildBasicCriteria(int id, int userID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); //Specify which fields we w... | 3,228,835 |
public WeakReferenceListNode(Object ref, ReferenceQueue queue, WeakReferenceListNode prev) { super(ref, queue); this.prev = prev; if (prev != null) { prev.next = this; } } | public WeakReferenceListNode(Object ref, ReferenceQueue queue, WeakReferenceListNode next) { super(ref, queue); this.prev = prev; if (prev != null) { prev.next = this; } } | 3,228,837 |
public WeakReferenceListNode(Object ref, ReferenceQueue queue, WeakReferenceListNode prev) { super(ref, queue); this.prev = prev; if (prev != null) { prev.next = this; } } | public WeakReferenceListNode(Object ref, ReferenceQueue queue, WeakReferenceListNode prev) { super(ref, queue); this.prev = prev; if (prev != null) { prev.next = this; } } | 3,228,838 |
public void remove() { if (prev != null) { prev.next = next; } if (next != null) { next.prev = prev; } } | public void remove() { if (prev != null) { prev.next = next; } if (next != null) { next.prev = prev; } } | 3,228,839 |
private void cleanup() { WeakReferenceListNode reference; while ((reference = (WeakReferenceListNode)deadReferences.poll()) != null) { reference.remove(); } } | private synchronized void cleanup() { WeakReferenceListNode reference; while ((reference = (WeakReferenceListNode)deadReferences.poll()) != null) { reference.remove(); } } | 3,228,840 |
public Iterator iterator(RubyModule rubyClass) { return new ObjectSpaceIterator(rubyClass); } | public Iterator iterator(RubyModule rubyClass) { return new ObjectSpaceIterator(rubyClass); } | 3,228,841 |
private void showErrorDialog(String title, String summary, String detail) { Exception e; if (detail == null) e = new Exception(summary); else e = new Exception(detail); MessengerDialog d = new MessengerDialog(SHARED_FRAME, DEFAULT_COMMENT_TITLE, "", e); d.addPropertyChangeListener(man... | private void showErrorDialog(String title, String summary, String detail) { Exception e; if (detail == null) e = new Exception(summary); else e = new Exception(detail); MessengerDialog d = new MessengerDialog(SHARED_FRAME, DEFAULT_COMMENT_TITLE, "", e); d.addPropertyChangeListener(man... | 3,228,842 |
public org.openmicroscopy.omero.model.Image getImage() { return this.image; } | public Image getImage() { return this.image; } | 3,228,845 |
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; } | public void setImage(Image image) { this.image = image; } | 3,228,846 |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | public ModuleExecution getModuleExecution() { return this.moduleExecution; } | 3,228,847 |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,228,848 |
public org.openmicroscopy.omero.model.DisplayOption getDisplayOption() { return this.displayOption; } | public DisplayOption getDisplayOption() { return this.displayOption; } | 3,228,849 |
public void setDisplayOption(org.openmicroscopy.omero.model.DisplayOption displayOption) { this.displayOption = displayOption; } | public void setDisplayOption(DisplayOption displayOption) { this.displayOption = displayOption; } | 3,228,850 |
public static RubyObject each_with_index_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { ruby.yield(RubyArray.newArray(ruby, blockArg, arg1)); ((RubyFixnum) arg1).setValue(((RubyFixnum) arg1).getValue() + 1); return ruby.getNil(); } | public static RubyObject each_with_index_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { ruby.yield(RubyArray.newArray(ruby, blockArg, arg1)); ((RubyFixnum) arg1).setValue(RubyNumeric.fix2long(arg1) + 1); return ruby.getNil(); } | 3,228,851 |
public static RubyObject find_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { if (ruby.yield(blockArg).isTrue()) { ((RubyArray) arg1).push(blockArg); throw new BreakException(); } return ruby.getNil(); } | public static RubyObject find_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { if (ruby.yield(blockArg).isTrue()) { ((RubyArray) arg1).push(blockArg); throw new BreakJump(); } return ruby.getNil(); } | 3,228,852 |
public static RubyObject member_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { if (blockArg.funcall("==", ((RubyArray) arg1).entry(0)).isTrue()) { ((RubyArray) arg1).push(ruby.getTrue()); throw new BreakException(); } return ruby.getNil(); } | public static RubyObject member_i(Ruby ruby, RubyObject blockArg, RubyObject arg1, RubyObject self) { if (blockArg.funcall("==", ((RubyArray) arg1).entry(0)).isTrue()) { ((RubyArray) arg1).push(ruby.getTrue()); throw new BreakJump(); } return ruby.getNil(); } | 3,228,853 |
public static Callback getBlockMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, new Class[] { RubyObject.class, RubyObject.class }, false, true); } | public static Callback getBlockMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, new Class[] { RubyObject.class, RubyObject.class }, false, true, 2); } | 3,228,854 |
GraphicsRepresentation(QuantumPaneManager control, int family, double curveCoefficient, int cdStart, int cdEnd, int min, int max) { this.family = family; this.curveCoefficient = curveCoefficient; this.cdStart = cdStart; this.cdEnd = cdEnd; type = family; reverseIntensity = false; //TODO: retrieve us... | GraphicsRepresentation(QuantumPaneManager control, int family, double curveCoefficient, int cdStart, int cdEnd, int min, int max) { this.family = family; this.curveCoefficient = curveCoefficient; this.cdStart = cdStart; this.cdEnd = cdEnd; type = family; reverseIntensity = false; //TODO: retrieve us... | 3,228,855 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setColor(getBackground()); g2D.fillRect(0, 0, width, height); //FONT settings. Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rSta... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setColor(getBackground()); g2D.fillRect(0, 0, width, height); //FONT settings. Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rSta... | 3,228,856 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setColor(getBackground()); g2D.fillRect(0, 0, width, height); //FONT settings. Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rSta... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setColor(getBackground()); g2D.fillRect(0, 0, width, height); //FONT settings. Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rSta... | 3,228,857 |
private void repaintCurve() { quad.setCurve(startPt, controlPt, endPt); repaint(); } | private void repaintCurve() { quad.setCurve(startPt, controlPt, endPt); repaint(); } | 3,228,858 |
void reverse(boolean b) { double yStart, yEnd; double xStaticStart, xStart; reverseIntensity = b; yEnd = endPt.getY(); yStart = startPt.getY(); setKnobOutputStart((int) yStart); setKnobOutputEnd((int) yEnd); manager.setOutputRectangles((int) yStart, (int) yEnd); xStaticStart = staticStartPt.getX(); xStart = ... | void reverse(boolean b) { double yStart, yEnd; double xStaticStart, xStart; reverseIntensity = b; yEnd = endPt.getY(); yStart = startPt.getY(); setKnobOutputStart((int) yStart); setKnobOutputEnd((int) yEnd); manager.setOutputRectangles((int) yStart, (int) yEnd); xStaticStart = staticStartPt.getX(); xStart = ... | 3,228,859 |
void setControlAndEndLocation(int k) { double x = 0; double diffEnd; coefficient = k; if (k == INIT) { if (reverseIntensity) x = (staticEndPt.getX()+square/2); else x = (staticStartPt.getX()+square/2); } else if (MIN <= k && k < INIT) { k = INIT-k; if (reverseIntensity) x = (staticEndPt.get... | void setControlAndEndLocation(int k) { double x = 0; double diffEnd; coefficient = k; if (k == INIT) { if (reverseIntensity) x = (staticEndPt.getX()+square/2); else x = (staticStartPt.getX()+square/2); } else if (MIN <= k && k < INIT) { k = INIT-k; if (reverseIntensity) x = (staticEndPt.get... | 3,228,860 |
void setControlLocation(int k) { double x = 0, y = 0; coefficient = k; double diff; if (reverseIntensity) diff = startPt.getX()-endPt.getX(); else diff = endPt.getX()-startPt.getX(); binMin = (int) (diff/rangeMin); binMax = (int) (diff/rangeMax); if (k == INIT) { x = startPt.getX(); y = startPt.getY(); ... | void setControlLocation(int k) { double x = 0, y = 0; coefficient = k; double diff; if (reverseIntensity) diff = startPt.getX()-endPt.getX(); else diff = endPt.getX()-startPt.getX(); binMin = (int) (diff/rangeMin); binMax = (int) (diff/rangeMax); if (k == INIT) { x = startPt.getX(); y = startPt.getY(); ... | 3,228,861 |
void setControlsPoints(int t) { type = t; double xStaticEnd, xStaticStart, xEnd, xStart; xStaticEnd = 0; xStaticStart = 0; xEnd = 0; xStart = 0; if (type == QuantumFactory.EXPONENTIAL) { xControl = lS2; range = square/2; binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); ... | void setControlsPoints(int t) { type = t; double xStaticEnd, xStaticStart, xEnd, xStart; xStaticEnd = 0; xStaticStart = 0; xEnd = 0; xStart = 0; if (type == QuantumFactory.EXPONENTIAL) { xControl = lS2; range = square/2; binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); ... | 3,228,862 |
private void setCurrentInputs(int s, int e) { curStart = "start: "+s; curEnd = "end: "+e; } | private void setCurrentInputs(int s, int e) { curStart = "start: "+s; curEnd = "end: "+e; } | 3,228,863 |
void setDefaultExponential(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); int k = (int) (curveCoefficient*10); binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); double yStart, yEnd, xStart, xEnd, xStaticStart, xStaticEnd; xStaticStart = 0; xStaticEnd = 0... | void setDefaultExponential(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); int k = (int) (curveCoefficient*10); binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); double yStart, yEnd, xStart, xEnd, xStaticStart, xStaticEnd; xStaticStart = 0; xStaticEnd = 0... | 3,228,864 |
void setDefaultExponential(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); int k = (int) (curveCoefficient*10); binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); double yStart, yEnd, xStart, xEnd, xStaticStart, xStaticEnd; xStaticStart = 0; xStaticEnd = 0... | void setDefaultExponential(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); int k = (int) (curveCoefficient*10); binMin = ((square-40)/(2*rangeMinExpo)); binMax = ((square-40)/(2*rangeMaxExpo)); double yStart, yEnd, xStart, xEnd, xStaticStart, xStaticEnd; xStaticStart = 0; xStaticEnd = 0... | 3,228,865 |
void setDefaultLinear(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); xControl = lS; range = square; binMin = (square/rangeMin); binMax = (square/rangeMax); double yStart, yEnd, xStart, xEnd; yStart = setOuputGraphics(cdStart); yEnd = setOuputGraphics(cdEnd); xStart = setInputGraphics... | void setDefaultLinear(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); xControl = lS; range = square; binMin = (square/rangeMin); binMax = (square/rangeMax); double yStart, yEnd, xStart, xEnd; yStart = setOuputGraphics(cdStart); yEnd = setOuputGraphics(cdEnd); xStart = setInputGraphics... | 3,228,866 |
void setDefaultLinear(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); xControl = lS; range = square; binMin = (square/rangeMin); binMax = (square/rangeMax); double yStart, yEnd, xStart, xEnd; yStart = setOuputGraphics(cdStart); yEnd = setOuputGraphics(cdEnd); xStart = setInputGraphics... | void setDefaultLinear(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); xControl = lS; range = square; binMin = (square/rangeMin); binMax = (square/rangeMax); double yStart, yEnd, xStart, xEnd; yStart = setOuputGraphics(cdStart); yEnd = setOuputGraphics(cdEnd); xStart = setInputGraphics... | 3,228,867 |
private double setInputGraphics(int x, int r) { double b = (double) r/(maximum-minimum); return (b*(x-minimum)+leftBorder); } | private double setInputGraphics(int x, int r) { double b = (double) r/(maximum-minimum); return (b*(x-minimum)+leftBorder); } | 3,228,868 |
private void setInputWindow(int s, int e) { start = ""+s; end = ""+e; } | private void setInputWindow(int s, int e) { start = ""+s; end = ""+e; } | 3,228,869 |
void setInputs(int min, int max, int xStart, int xEnd, int xRealStart, int xRealEnd) { setInputWindow(min, max); setCurrentInputs(xRealStart, xRealEnd); minimum = min; maximum = max; updateInputStartAndEnd(xStart, xEnd); } | void setInputs(int min, int max, int xStart, int xEnd, int xRealStart, int xRealEnd) { setInputWindow(min, max); setCurrentInputs(xRealStart, xRealEnd); minimum = min; maximum = max; updateInputStartAndEnd(xStart, xEnd); } | 3,228,870 |
private void setKnobEnd(int x) { xEnd1 = x; xEnd2 = x-triangleW; xEnd3 = x+triangleW; } | private void setKnobEnd(int x) { xEnd1 = x; xEnd2 = x-triangleW; xEnd3 = x+triangleW; } | 3,228,871 |
private void setKnobOutputEnd(int x, int y) { xEndOutput1 = x; xEndOutput2 = x+triangleH; xEndOutput3 = x+triangleH; yEndOutput1 = y; yEndOutput2 = y-triangleW; yEndOutput3 = y+triangleW; } | private void setKnobOutputEnd(int x, int y) { xEndOutput1 = x; xEndOutput2 = x+triangleH; xEndOutput3 = x+triangleH; yEndOutput1 = y; yEndOutput2 = y-triangleW; yEndOutput3 = y+triangleW; } | 3,228,872 |
private void setKnobOutputStart(int x, int y) { xStartOutput1 = x; xStartOutput2 = x-triangleH; xStartOutput3 = x-triangleH; yStartOutput1 = y; yStartOutput2 = y-triangleW; yStartOutput3 = y+triangleW; } | private void setKnobOutputStart(int x, int y) { xStartOutput1 = x; xStartOutput2 = x-triangleH; xStartOutput3 = x-triangleH; yStartOutput1 = y; yStartOutput2 = y-triangleW; yStartOutput3 = y+triangleW; } | 3,228,873 |
private void setKnobStart(int x) { xStart1 = x; xStart2 = x-triangleW; xStart3 = x+triangleW; } | private void setKnobStart(int x) { xStart1 = x; xStart2 = x-triangleW; xStart3 = x+triangleW; } | 3,228,874 |
private void setKnobStartY(int y) { yStart1 = y; yStart2 = y+triangleH; yStart3 = y+triangleH; } | private void setKnobStartY(int y) { yStart1 = y; yStart2 = y+triangleH; yStart3 = y+triangleH; } | 3,228,875 |
private double setOuputGraphics(int x) { double a = (double) square/outputRange; return (tS-x*a); } | private double setOuputGraphics(int x) { double a = (double) square/outputRange; return (tS-x*a); } | 3,228,876 |
void setReverseIntensity(boolean reverseIntensity) { this.reverseIntensity = reverseIntensity; } | void setReverseIntensity(boolean reverseIntensity) { this.reverseIntensity = reverseIntensity; } | 3,228,877 |
void updateInputEnd(int x, int xReal) { curEnd = "end: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reason... | void updateInputEnd(int x, int xReal) { curEnd = "end: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reason... | 3,228,878 |
void updateInputStart(int x, int xReal) { curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics ... | void updateInputStart(int x, int xReal) { curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics ... | 3,228,879 |
private void updateInputStartAndEnd(int xStart, int xEnd) { xStartMax = xStart; setKnobEnd(xEnd); setKnobStart(xStart); if (reverseIntensity) { endPt.setLocation(xStart, endPt.getY()); startPt.setLocation(xEnd, startPt.getY()); } else { startPt.setLocation(xStart, startPt.getY()); endPt.setLocation(xEnd, ... | private void updateInputStartAndEnd(int xStart, int xEnd) { xStartMax = xStart; setKnobEnd(xEnd); setKnobStart(xStart); if (reverseIntensity) { endPt.setLocation(xStart, endPt.getY()); startPt.setLocation(xEnd, startPt.getY()); } else { startPt.setLocation(xStart, startPt.getY()); endPt.setLocation(xEnd, ... | 3,228,880 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.