bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public ExperimenterGroup[] containedGroups(Long experimenterId) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(experimenterId))); if (e == null) { throw new ApiUsageException("No such user: "+experimenterId); } int count = e.sizeOfGroupExperimenterMap();...
public ExperimenterGroup[] containedGroups(Long experimenterId) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(experimenterId))); if (e == null) { throw new ApiUsageException("No such user: "+experimenterId); } int count = e.sizeOfGroupExperimenterMap();...
3,237,581
protected ExperimenterGroup copyGroup(ExperimenterGroup g) { if ( g.getName() == null ) { throw new ValidationException("Group name may not be null."); } ExperimenterGroup copy = new ExperimenterGroup(); copy.setDescription( g.getDescription() ); copy.setName( g.getName() ); copy...
protected ExperimenterGroup copyGroup(ExperimenterGroup g) { if ( g.getName() == null ) { throw new ValidationException("Group name may not be null."); } ExperimenterGroup copy = new ExperimenterGroup(); copy.setDescription( g.getDescription() ); copy.setName( g.getName() ); copy...
3,237,582
protected Experimenter copyUser(Experimenter e) { if ( e.getOmeName() == null ) { throw new ValidationException("OmeName may not be null."); } Experimenter copy = new Experimenter(); copy.setOmeName( e.getOmeName() ); copy.setFirstName( e.getOmeName() ); copy.setLastName( e.getLa...
protected Experimenter copyUser(Experimenter e) { if ( e.getOmeName() == null ) { throw new ValidationException("OmeName may not be null."); } Experimenter copy = new Experimenter(); copy.setOmeName( e.getOmeName() ); copy.setFirstName( e.getOmeName() ); copy.setLastName( e.getLa...
3,237,583
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
3,237,584
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
3,237,585
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
public long createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null )...
3,237,586
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
3,237,587
public long createGroup(ExperimenterGroup group) { group = copyGroup( group ); ExperimenterGroup g = getSecuritySystem().doAction(group, new SecureAction(){ public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); } }); return g.getId(); }
public long createGroup(ExperimenterGroup group) { group = copyGroup( group ); ExperimenterGroup g = getSecuritySystem().doAction(group, new SecureAction(){ public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); } }); return g.getId(); }
3,237,588
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
3,237,589
public long createSystemUser(Experimenter newSystemUser) { return createExperimenter( newSystemUser, groupProxy("system"), new ExperimenterGroup[]{ groupProxy("user") } ); }
public long createSystemUser(Experimenter newSystemUser) { return createExperimenter( newSystemUser, groupProxy("system"), new ExperimenterGroup[]{ groupProxy("user") } ); }
3,237,590
public long createUser(Experimenter newUser) { return createExperimenter( newUser, groupProxy("user"),null); }
public long createUser(Experimenter newUser) { return createExperimenter( newUser, groupProxy("user"),null); }
3,237,591
public void deleteExperimenter( Experimenter user ) { Experimenter e = userProxy(user.getId()); int count = jdbc.update("delete from password where experimenter_id = ?", e.getId()); if ( count == 0 ) { getLogger().info("No password found for user " +e.getOmeName() +"...
public void deleteExperimenter( Experimenter user ) { Experimenter e = userProxy(user.getId()); int count = jdbc.update("delete from password where experimenter_id = ?", e.getId()); if ( count == 0 ) { getLogger().info("No password found for user " +e.getOmeName() +"...
3,237,592
public ExperimenterGroup getDefaultGroup( @NotNull Long experimenterId ) { ExperimenterGroup g = iQuery.findByQuery( "select g from ExperimenterGroup g " + "join fetch g.groupExperimenterMap m " + "join fetch m.child e " + "where e.id = :id " + "and m.defaultGroupLink = tr...
public ExperimenterGroup getDefaultGroup( @NotNull Long experimenterId ) { ExperimenterGroup g = iQuery.findByQuery( "select g from ExperimenterGroup g " + "join fetch g.groupExperimenterMap m " + "join fetch m.child e " + "where e.id = :id " + "and m.defaultGroupLink = tr...
3,237,593
public EventContext getEventContext() { return new SimpleEventContext( getSecuritySystem().getEventContext() ); }
public EventContext getEventContext() { return new SimpleEventContext( getSecuritySystem().getEventContext() ); }
3,237,594
public Experimenter getExperimenter(final Long id) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(id))); if (e == null) { throw new ApiUsageException("No such experimenter: " + id); } return e; }
public Experimenter getExperimenter(final Long id) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(id))); if (e == null) { throw new ApiUsageException("No such experimenter: " + id); } return e; }
3,237,595
public Experimenter getExperimenter(final Long id) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(id))); if (e == null) { throw new ApiUsageException("No such experimenter: " + id); } return e; }
public Experimenter getExperimenter(final Long id) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ).addId(id))); if (e == null) { throw new ApiUsageException("No such experimenter: " + id); } return e; }
3,237,596
public ExperimenterGroup getGroup(Long id) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(id))); if (g == null) { throw new ApiUsageException("No such group: " + id); } return g; }
public ExperimenterGroup getGroup(Long id) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(id))); if (g == null) { throw new ApiUsageException("No such group: " + id); } return g; }
3,237,597
public ExperimenterGroup getGroup(Long id) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(id))); if (g == null) { throw new ApiUsageException("No such group: " + id); } return g; }
public ExperimenterGroup getGroup(Long id) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(id))); if (g == null) { throw new ApiUsageException("No such group: " + id); } return g; }
3,237,598
public List<Long> getLeaderOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hiberna...
public List<Long> getLeaderOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hiberna...
3,237,599
public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select g.id from ExperimenterGroup g where g.details.owner.id = :id"); q.setParameter("id", e.getId()); return q.list(); }
public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select g.id from ExperimenterGroup g where g.details.owner.id = :id"); q.setParameter("id", e.getId()); return q.list(); }
3,237,600
public List<Long> getMemberOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hiberna...
public List<Long> getMemberOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hiberna...
3,237,601
public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select m.parent.id from GroupExperimenterMap m " + "where m.child.id = :id"); q.setParameter("id", e.getId()); return q.list...
public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select m.parent.id from GroupExperimenterMap m " + "where m.child.id = :id"); q.setParameter("id", e.getId()); return q.list...
3,237,602
public Roles getSecurityRoles() { return getSecuritySystem().getSecurityRoles(); }
public Roles getSecurityRoles() { return getSecuritySystem().getSecurityRoles(); }
3,237,603
protected Class<? extends ServiceInterface> getServiceInterface() { return IAdmin.class; }
protected Class<? extends ServiceInterface> getServiceInterface() { return IAdmin.class; }
3,237,604
public ExperimenterGroup groupProxy(Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); ExperimenterGroup g = iQuery.get(ExperimenterGroup.class,id); return g; }
public ExperimenterGroup groupProxy(Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); ExperimenterGroup g = iQuery.get(ExperimenterGroup.class,id); return g; }
3,237,605
public ExperimenterGroup groupProxy(Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); ExperimenterGroup g = iQuery.get(ExperimenterGroup.class,id); return g; }
public ExperimenterGroup groupProxy(Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); ExperimenterGroup g = iQuery.get(ExperimenterGroup.class,id); return g; }
3,237,606
protected void internalChangeUserPasswordById(Long id, String password) { int results = jdbc.update( "update password set hash = ? " + "where experimenter_id = ? ", preparePassword(password),id ); if ( results < 1 ) { results = jdbc.update("insert into passw...
protected void internalChangeUserPasswordById(Long id, String password) { int results = jdbc.update( "update password set hash = ? " + "where experimenter_id = ? ", preparePassword(password),id ); if ( results < 1 ) { results = jdbc.update("insert into passw...
3,237,607
public Experimenter lookupExperimenter(final String omeName) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ) .addString("name",omeName))); if (e == null) { throw new ApiUsageException("No such experimenter: " + omeName); } return e; }
public Experimenter lookupExperimenter(final String omeName) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ) .addString("name",omeName))); if (e == null) { throw new ApiUsageException("No such experimenter: " + omeName); } return e; }
3,237,608
public Experimenter lookupExperimenter(final String omeName) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ) .addString("name",omeName))); if (e == null) { throw new ApiUsageException("No such experimenter: " + omeName); } return e; }
public Experimenter lookupExperimenter(final String omeName) { Experimenter e = iQuery.execute( new UserQ( new Parameters( ) .addString("name",omeName))); if (e == null) { throw new ApiUsageException("No such experimenter: " + omeName); } return e; }
3,237,609
public ExperimenterGroup lookupGroup(final String groupName) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addString("name",groupName))); if (g == null) { throw new ApiUsageException("No such group: " + groupName); } return g; }
public ExperimenterGroup lookupGroup(final String groupName) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addString("name",groupName))); if (g == null) { throw new ApiUsageException("No such group: " + groupName); } return g; }
3,237,610
public ExperimenterGroup lookupGroup(final String groupName) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addString("name",groupName))); if (g == null) { throw new ApiUsageException("No such group: " + groupName); } return g; }
public ExperimenterGroup lookupGroup(final String groupName) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addString("name",groupName))); if (g == null) { throw new ApiUsageException("No such group: " + groupName); } return g; }
3,237,611
protected String passwordDigest( String clearText ) { if ( clearText == null ) { throw new ApiUsageException("Value for digesting may not be null"); } // These constants are also defined in app/resources/jboss-login.xml // and this method is called from {@link JBossLoginModule} ...
protected String passwordDigest( String clearText ) { if ( clearText == null ) { throw new ApiUsageException("Value for digesting may not be null"); } // These constants are also defined in app/resources/jboss-login.xml // and this method is called from {@link JBossLoginModule} ...
3,237,612
protected String passwordDigest( String clearText ) { if ( clearText == null ) { throw new ApiUsageException("Value for digesting may not be null"); } // These constants are also defined in app/resources/jboss-login.xml // and this method is called from {@link JBossLoginModule} ...
protected String passwordDigest( String clearText ) { if ( clearText == null ) { throw new ApiUsageException("Value for digesting may not be null"); } // These constants are also defined in app/resources/jboss-login.xml // and this method is called from {@link JBossLoginModule} ...
3,237,613
protected String preparePassword(String newPassword) { // This allows setting passwords to "null" - locked account. return newPassword == null ? null // This allows empty passwords to be considered "open-access" : newPassword.trim().length() == 0 ? newPassword // Regular MD5 digest. : passwordDig...
protected String preparePassword(String newPassword) { // This allows setting passwords to "null" - locked account. return newPassword == null ? null // This allows empty passwords to be considered "open-access" : newPassword.trim().length() == 0 ? newPassword // Regular MD5 digest. : passwordDig...
3,237,614
protected String preparePassword(String newPassword) { // This allows setting passwords to "null" - locked account. return newPassword == null ? null // This allows empty passwords to be considered "open-access" : newPassword.trim().length() == 0 ? newPassword // Regular MD5 digest. : passwordDig...
protected String preparePassword(String newPassword) { // This allows setting passwords to "null" - locked account. return newPassword == null ? null // This allows empty passwords to be considered "open-access" : newPassword.trim().length() == 0 ? newPassword // Regular MD5 digest. : passwordDig...
3,237,615
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
3,237,616
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
3,237,617
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
3,237,618
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { ...
3,237,619
public <T extends IObject> T updateObject(T obj) { iUpdate.deleteObject( obj ); return null; }
public <T extends IObject> T updateObject(T obj) { iUpdate.deleteObject( obj ); return null; }
3,237,620
public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"...
public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"...
3,237,621
public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"...
public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"...
3,237,622
public final void setExtendedMetadata( ExtendedMetadata extMetadata ) { throwIfAlreadySet(this.em, extMetadata); em = extMetadata; }
public final void setExtendedMetadata( ExtendedMetadata extMetadata ) { throwIfAlreadySet(this.em, extMetadata); em = extMetadata; }
3,237,623
public final void setJdbcTemplate( SimpleJdbcTemplate jdbcTemplate ) { throwIfAlreadySet(this.jdbc, jdbcTemplate); jdbc = jdbcTemplate; }
public final void setJdbcTemplate( SimpleJdbcTemplate jdbcTemplate ) { throwIfAlreadySet(this.jdbc, jdbcTemplate); jdbc = jdbcTemplate; }
3,237,624
public final void setSessionFactory( SessionFactory sessionFactory ) { throwIfAlreadySet(this.sf, sessionFactory); sf = sessionFactory; }
public final void setSessionFactory( SessionFactory sessionFactory ) { throwIfAlreadySet(this.sf, sessionFactory); sf = sessionFactory; }
3,237,625
public void synchronizeLoginCache() { String string = "omero:service=LoginConfig"; // using Spring utilities to get MBeanServer MBeanServer mbeanServer = JmxUtils.locateMBeanServer(); getLogger().debug("Acquired MBeanServer."); ObjectName name; try { // defined ...
public void synchronizeLoginCache() { String string = "omero:service=LoginConfig"; // using Spring utilities to get MBeanServer MBeanServer mbeanServer = JmxUtils.locateMBeanServer(); getLogger().debug("Acquired MBeanServer."); ObjectName name; try { // defined ...
3,237,626
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
3,237,627
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
3,237,628
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
3,237,629
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
3,237,630
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
public boolean[] unlock(final IObject...iObjects ) { // do nothing if possible if ( iObjects == null | iObjects.length < 1 ) return new boolean[]{}; // create a new session. It's important that we pass in the empty // interceptor here, otherwise even root wouldn't be allowed to unlock ...
3,237,631
public Experimenter userProxy(final Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); Experimenter e = iQuery.get(Experimenter.class, id); return e; }
public Experimenter userProxy(final Long id) { if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); Experimenter e = iQuery.get(Experimenter.class, id); return e; }
3,237,632
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa...
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa...
3,237,633
protected boolean ignoreAnchor(Node node) { return "tag:yaml.org,2002:null".equals(node.getTag()) || ("tag:yaml.org,2002:seq".equals(node.getTag()) && ((java.util.List)node.getValue()).isEmpty()) || ("tag:yaml.org,2002:map".equals(node.getTag()) && ((java.util.Map)node.getValue()).isEm...
protected boolean ignoreAnchor(Node node) { return "tag:yaml.org,2002:null".equals(node.getTag()) || ("tag:yaml.org,2002:seq".equals(node.getTag()) && ((java.util.List)node.getValue()).isEmpty()) || ("tag:yaml.org,2002:map".equals(node.getTag()) && ((java.util.Map)node.getValue()).isEm...
3,237,634
public void newAnnotation(String annotation) { DatasetAnnotation da = annotator.createDatasetAnnotation(annotation); annotationList.add(da); }
public void newAnnotation(String annotation) { DatasetAnnotation da = annotator.createDatasetAnnotation(annotation,datasetID); annotationList.add(da); }
3,237,635
private void onClick(MouseEvent e) { int selRow = view.tree.getRowForLocation(e.getX(), e.getY()); if (selRow != -1) { view.tree.setSelectionRow(selRow); DataObject target = view.getCurrentOMEObject(); // remove tree expansion listener //otherwise a tree expansion event is fired when we //double-cl...
private void onClick(MouseEvent e) { int selRow = view.tree.getRowForLocation(e.getX(), e.getY()); if (selRow != -1) { view.tree.setSelectionRow(selRow); DataObject target = view.getCurrentOMEObject(); // remove tree expansion listener //otherwise a tree expansion event is fired when we //double-cl...
3,237,636
private void onClick(MouseEvent e) { int selRow = view.tree.getRowForLocation(e.getX(), e.getY()); if (selRow != -1) { view.tree.setSelectionRow(selRow); DataObject target = view.getCurrentOMEObject(); // remove tree expansion listener //otherwise a tree expansion event is fired when we //double-cl...
private void onClick(MouseEvent e) { int selRow = view.tree.getRowForLocation(e.getX(), e.getY()); if (selRow != -1) { view.tree.setSelectionRow(selRow); DataObject target = view.getCurrentOMEObject(); // remove tree expansion listener //otherwise a tree expansion event is fired when we //double-cl...
3,237,637
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"...
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"...
3,237,638
private void drawGreyMask(Graphics2D g) { GradientPaint gp; // Set a gradient mask of V=.5 to V = 0.3; this has an alpha // value to show the colours of the button underlying the mask. Color gradientStart = new Color(0.5f, 0.5f, 0.5f, 0.8f); Color gradientEnd = new Colo...
private void drawGreyMask(Graphics2D g) { GradientPaint gp; // Set a gradient mask of V=.5 to V = 0.3; this has an alpha // value to show the colours of the button underlying the mask. Color gradientStart = new Color(0.5f, 0.5f, 0.5f, 0.8f); Color gradientEnd = new Colo...
3,237,639
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradien...
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradien...
3,237,640
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradien...
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradien...
3,237,641
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
3,237,642
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
3,237,643
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
3,237,644
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backslash in...
3,237,645
void delete() throws Exception { DBManager dbm = DBManager.getInstance(); PreparedStatement ps = dbm.getPreparedStatement(DELETE_STM); ps.setString(1, getTableName()); ps.setString(2, getIDColumnName()); ps.setInt(3, id); ps.execute(); ps.close(); }
void delete() throws Exception { DBManager dbm = DBManager.getInstance(); PreparedStatement ps = dbm.getPreparedStatement(DELETE_STM); ps.setString(1, getTableName()); ps.setString(2, getIDColumnName()); ps.setInt(3, id); ps.execute(); ps.close(); }
3,237,647
public void testBeginEnd () throws Exception { String tmpl = "#if (true) #begin pass #end #else #begin fail #end"; assertStringTemplateEquals (tmpl, "pass"); tmpl = "#if (true)\n #begin pass\n #end\n #else\n #begin fail\n #end"; assertStringTemplateEquals (tmpl, "pass"); }
public void testBeginEnd () throws Exception { String tmpl = "#if (true) #begin pass #end #else #begin fail #end"; assertStringTemplateEquals (tmpl, "pass\n"); tmpl = "#if (true)\n #begin pass\n #end\n #else\n #begin fail\n #end"; assertStringTemplateEquals (tmpl, "pass\n"); }
3,237,648
public static IRubyObject rbCatch(IRubyObject recv, IRubyObject tag) { try { return recv.getRuntime().getCurrentContext().yield(tag); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.ThrowJump) { if (je.getPrimaryData().equals(tag.asSymbol())) ...
public static IRubyObject rbCatch(IRubyObject recv, IRubyObject tag) { try { context.pushCatch(tag.asSymbol()); return context.yield(tag); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.ThrowJump) { if (je.getPrimaryData().equals(tag.asSymbol...
3,237,649
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil()...
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyException nameException = new RubyException(runtime, runti...
3,237,651
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil()...
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil()...
3,237,652
public Dataset(Integer datasetId, boolean locked, String name, String description, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set moduleExecutions, Set datasetAnnotations, Set images, Set projects) { this.datasetId = datasetId; this.locked = l...
public Dataset(Integer datasetId, boolean locked, String name, String description, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set moduleExecutions, Set datasetAnnotations, Set images, Set projects) { this.datasetId = datasetId; this.locked = l...
3,237,653
public org.openmicroscopy.omero.model.Experimenter getExperimenter() { return this.experimenter; }
public Experimenter getExperimenter() { return this.experimenter; }
3,237,654
public org.openmicroscopy.omero.model.Group getGroup() { return this.group; }
public Group getGroup() { return this.group; }
3,237,655
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { this.experimenter = experimenter; }
public void setExperimenter(Experimenter experimenter) { this.experimenter = experimenter; }
3,237,656
public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; }
public void setGroup(Group group) { this.group = group; }
3,237,657
public void setLocked(boolean locked) { this.locked = locked; }
public void setLocked(Boolean locked) { this.locked = locked; }
3,237,658
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) { CRefNode savedCref = null; // +++ = null; // RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); ...
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) { CRefNode savedCref = null; // +++ = null; // RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); ...
3,237,659
private void attachListeners() { model.addChangeListener(this); view.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); }
private void attachListeners() { model.addChangeListener(this); view.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); }
3,237,660
private void createActions() { actionsMap.put(CANCEL, new CloseAction(model)); actionsMap.put(FINISH, new FinishAction(model)); }
private void createActions() { actionsMap.put(CANCEL, new CloseAction(model)); actionsMap.put(FINISH, new FinishAction(model)); }
3,237,661
private FileChannel getFileChannel(Boolean readOnly) throws FileNotFoundException { if (readOnly == true) { if (roChannel == null) { FileOutputStream stream = new FileOutputStream(path); roChannel = stream.getChannel(); ...
private FileChannel getFileChannel(Boolean readOnly) throws FileNotFoundException { if (readOnly == true) { if (roChannel == null) { FileInputStream stream = new FileInputStream(path); roChannel = stream.getChannel(); ...
3,237,662
private FileChannel getFileChannel(Boolean readOnly) throws FileNotFoundException { if (readOnly == true) { if (roChannel == null) { FileOutputStream stream = new FileOutputStream(path); roChannel = stream.getChannel(); ...
private FileChannel getFileChannel(Boolean readOnly) throws FileNotFoundException { if (readOnly == true) { if (roChannel == null) { FileOutputStream stream = new FileOutputStream(path); roChannel = stream.getChannel(); ...
3,237,663
public MappedByteBuffer getPlane(Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); return getRegion(size, offset); }
public MappedByteBuffer getPlane(Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); byte[] nullPlane = PixelsService.nullPlane; for (int i = 0; i < PixelsService.NULL_PLANE_SIZE; ...
3,237,664
public MappedByteBuffer getRegion(Integer size, Long offset) throws IOException { FileChannel fileChannel = getFileChannel(true); /* fileChannel should not be "null" as it will throw an exception if * there happens to be an error. */ return fileChannel....
public MappedByteBuffer getRegion(Integer size, Long offset) throws IOException { FileChannel fileChannel = getFileChannel(true); /* fileChannel should not be "null" as it will throw an exception if * there happens to be an error. */ return fileChannel....
3,237,665
public MappedByteBuffer getStack(Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); MappedByteBuffer region = getRegion(size, offset); byte[] nullPlane = PixelsService.nullPlane; ...
public MappedByteBuffer getStack(Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); MappedByteBuffer region = getRegion(size, offset); byte[] nullPlane = PixelsService.nullPlane; ...
3,237,666
public MappedByteBuffer getStack(Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); MappedByteBuffer region = getRegion(size, offset); byte[] nullPlane = PixelsService.nullPlane; ...
public MappedByteBuffer getStack(Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); MappedByteBuffer region = getRegion(size, offset); byte[] nullPlane = PixelsService.nullPlane; ...
3,237,667
boolean NIL_P(VALUE value) { return value == Qnil; }
boolean NIL_P(VALUE value) { return value == Qnil; }
3,237,668
boolean RTEST(VALUE value) { return value != Qnil; }
boolean RTEST(VALUE value) { return value != Qnil; }
3,237,669
private NODE assignable(ID id, NODE val) { value_expr(val); if (id.intValue() == kSELF) { yyerror("Can't change the value of self"); } else if (id.intValue() == kNIL) { yyerror("Can't assign to nil"); } else if (id.intValue() == kTRUE) { yye...
private NODE assignable(ID id, NODE val) { value_expr(val); if (id.intValue() == kSELF) { yyerror("Can't change the value of self"); } else if (id.intValue() == kNIL) { yyerror("Can't assign to nil"); } else if (id.intValue() == kTRUE) { yye...
3,237,670
private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby_dyna_vars = vars; }
private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby_dyna_vars = vars; }
3,237,671
private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby_dyna_vars = vars; }
private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby.getInterpreter().setDynamicVars(vars); }
3,237,672
private RVarmap dyna_push() { RVarmap vars = ruby_dyna_vars; rb_dvar_push(null, null); lvtbl.dlev++; return vars; }
private RVarmap dyna_push() { RVarmap vars = ruby_dyna_vars; rb_dvar_push(null, null); lvtbl.dlev++; return vars; }
3,237,673
private VALUE lex_gets_str(VALUE _s) { String s = ((RubyString)_s).getString(); if (lex_gets_ptr != 0) { if (s.length() == lex_gets_ptr) return Qnil; s = s.substring(lex_gets_ptr); } int end = 0; while (end < s.length()) { if (s.charAt(end++) == '\n') break; } lex_gets_ptr += end; return rb_str_new(s, ...
private VALUE lex_gets_str(VALUE _s) { String s = ((RubyString)_s).getString(); if (lex_gets_ptr != 0) { if (s.length() == lex_gets_ptr) return Qnil; s = s.substring(lex_gets_ptr); } int end = 0; while (end < s.length()) { if (s.charAt(end++) == '\n') break; } lex_gets_ptr += end; return rb_str_new(s, ...
3,237,674
private RVarmap new_dvar(ID id, VALUE value, RVarmap prev) { RVarmap map = new RVarmap(); map.id = id; map.val = value; map.next = prev; return map; }
private RVarmap new_dvar(ID id, VALUE value, RVarmap prev) { RVarmap map = new RVarmap(); map.id = id; map.val = value; map.next = prev; return map; }
3,237,675
VALUE rb_backref_get() { if (ruby.rubyScope.getLocalVars() != null) { return ruby.rubyScope.getLocalVars(1); } return Qnil; }
VALUE rb_backref_get() { if (ruby.rubyScope.getLocalVars() != null) { return ruby.rubyScope.getLocalVars(1); } return ruby.getNil(); }
3,237,676
boolean rb_dvar_curr(ID id) { RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false; }
boolean rb_dvar_curr(ID id) { RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false; }
3,237,677
boolean rb_dvar_defined(ID id) { RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false; }
boolean rb_dvar_defined(ID id) { RVarmap vars = ruby_dyna_vars; while (vars != null) { if (vars.id == null) break; if (vars.id.equals(id)) return true; vars = vars.next; } return false; }
3,237,678
void rb_dvar_push(ID id, VALUE value) { ruby_dyna_vars = new_dvar(id, value, ruby_dyna_vars); }
void rb_dvar_push(ID id, VALUE value) { ruby.getInterpreter().getDynamicVars().push((RubyId)id, (RubyObject)value); }
3,237,679
VALUE rb_lastline_get() { if (ruby.rubyScope.getLocalVars() != null) { return ruby.rubyScope.getLocalVars(0); } return Qnil; }
VALUE rb_lastline_get() { if (ruby.rubyScope.getLocalVars() != null) { return ruby.rubyScope.getLocalVars(0); } return ruby.getNil(); }
3,237,680
top_local_init() { local_push(); lvtbl.cnt = ruby.rubyScope.getLocalTbl() != null ? ruby.rubyScope.getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.rubyScope.getLocalTbl(), 0, lvtbl.cnt+1); } ...
top_local_init() { local_push(); lvtbl.cnt = ruby.rubyScope.getLocalTbl() != null ? ruby.rubyScope.getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.rubyScope.getLocalTbl(), 0, lvtbl.cnt+1); } ...
3,237,681
public void testDuplicateImages() { HierarchyBrowsing hb = (HierarchyBrowsing) applicationContext.getBean("hierarchyBrowsingService"); OMEData data = (OMEData) applicationContext.getBean("data"); Set result = hb.findPDIHierarchies(data.imgsPDI); Set test = Utils.getImagesinPID(result); ...
public void testDuplicateImages() { OMEData data = (OMEData) applicationContext.getBean("data"); Set result = hb.findPDIHierarchies(data.imgsPDI); Set test = Utils.getImagesinPID(result); assertTrue("Images in should eq. images out",data.imgsPDI.size()==test.size()); ...
3,237,682