<commit_before>/*
 * $Log: not supported by cvs2svn $
 * Revision 1.15  2007/10/31 14:51:11  pandyas
 * Fixed #9169  	Connect availability of model to person to resolve the available from investigator issue
 *
 * Revision 1.14  2007/09/12 19:35:52  pandyas
 * modified debug statements for build to stage tier
 *
 * Revision 1.13  2006/10/17 16:14:36  pandyas
 * modified during development of caMOD 2.2 - various
 *
 * Revision 1.12  2006/04/17 19:13:46  pandyas
 * caMod 2.1 OM changes and added log/id header
 *
 * Revision 1.11  2006/01/18 14:23:31  georgeda
 * TT# 376 - Updated to use new Java 1.5 features
 *
 * Revision 1.10  2005/12/08 21:44:23  georgeda
 * Defect #259; handle PI availability for 2-tier data
 *
 * Revision 1.9  2005/11/18 22:50:02  georgeda
 * Defect #184.  Cleanup editing of old models
 *
 * Revision 1.8  2005/11/17 18:36:47  georgeda
 * Defect #57, add a mailto link for Investigator availabilty
 *
 * Revision 1.7  2005/11/14 14:16:51  georgeda
 * Cleanup
 *
 * 
 * $Id: AnimalAvailability.java,v 1.16 2008-08-14 17:17:40 pandyas Exp $
 */
package gov.nih.nci.camod.domain;

import gov.nih.nci.camod.util.Duplicatable;
import gov.nih.nci.camod.util.HashCodeUtil;
import java.io.Serializable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AnimalAvailability extends BaseObject implements Comparable, Serializable, Duplicatable
{

    private static final long serialVersionUID = 4259705453799404851L;
    protected transient final Log log = LogFactory.getLog(AnimalAvailability.class);

    private String name;
    private String stockNumber;
    private AbstractCancerModel cancerModel;
    private AnimalDistributor animalDistributor;
    private Person principalInvestigator;   


    /**
     * @return Returns the display name.
     */
    public String getDisplayName()
    {

        String theDisplayName = name;
        if (theDisplayName == null)
        {
            theDisplayName = "Strain";
        }
        return theDisplayName;
    }

    /**
     * @return Returns the name.
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name
     *            The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * @return Returns the stockNumber.
     */
    public String getStockNumber()
    {
        return stockNumber;
    }

    /**
     * @param stockNumber
     *            The stockNumber to set.
     */
    public void setStockNumber(String stockNumber)
    {
        this.stockNumber = stockNumber;
    }

/*    
    public Person getPrincipalInvestigator()
    {
        Person thePerson = null;

        // Hack to work around old ca-mod data. -1 indicates that this comes
        // from the 2-tier.
        if (stockNumber != null && !"-1".equals(stockNumber))
        {

            try
            {
            	log.debug("Unable to get Person for thePerson.getUsername(): " + thePerson.getUsername());
                thePerson = PersonManagerSingleton.instance().get(stockNumber);
            }
            catch (Exception e)
            {
                log.debug("Unable to get Person for stock number");
            }
        }

        return thePerson;
    }
*/
    /**
     * @return Returns the cancerModel.
     */
    public AbstractCancerModel getCancerModel()
    {
        return cancerModel;
    }

    /**
     * @param cancerModel
     *            The cancerModel to set.
     */
    public void setCancerModel(AbstractCancerModel cancerModel)
    {
        this.cancerModel = cancerModel;
    }

    /**
     * @return Returns the animalDistributor.
     */
    public AnimalDistributor getAnimalDistributor()
    {
        return animalDistributor;
    }
<commit_msg>Clean up unused code<commit_after>/*
 * $Log: not supported by cvs2svn $
 * Revision 1.16  2008/08/14 17:17:40  pandyas
 * Clean up unused imports
 *
 * Revision 1.15  2007/10/31 14:51:11  pandyas
 * Fixed #9169  	Connect availability of model to person to resolve the available from investigator issue
 *
 * Revision 1.14  2007/09/12 19:35:52  pandyas
 * modified debug statements for build to stage tier
 *
 * Revision 1.13  2006/10/17 16:14:36  pandyas
 * modified during development of caMOD 2.2 - various
 *
 * Revision 1.12  2006/04/17 19:13:46  pandyas
 * caMod 2.1 OM changes and added log/id header
 *
 * Revision 1.11  2006/01/18 14:23:31  georgeda
 * TT# 376 - Updated to use new Java 1.5 features
 *
 * Revision 1.10  2005/12/08 21:44:23  georgeda
 * Defect #259; handle PI availability for 2-tier data
 *
 * Revision 1.9  2005/11/18 22:50:02  georgeda
 * Defect #184.  Cleanup editing of old models
 *
 * Revision 1.8  2005/11/17 18:36:47  georgeda
 * Defect #57, add a mailto link for Investigator availabilty
 *
 * Revision 1.7  2005/11/14 14:16:51  georgeda
 * Cleanup
 *
 * 
 * $Id: AnimalAvailability.java,v 1.17 2008-08-14 17:22:38 pandyas Exp $
 */
package gov.nih.nci.camod.domain;

import gov.nih.nci.camod.util.Duplicatable;
import gov.nih.nci.camod.util.HashCodeUtil;
import java.io.Serializable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AnimalAvailability extends BaseObject implements Comparable, Serializable, Duplicatable
{

    private static final long serialVersionUID = 4259705453799404851L;
    protected transient final Log log = LogFactory.getLog(AnimalAvailability.class);

    private String name;
    private String stockNumber;
    private AbstractCancerModel cancerModel;
    private AnimalDistributor animalDistributor;
    private Person principalInvestigator;   


    /**
     * @return Returns the display name.
     */
    public String getDisplayName()
    {

        String theDisplayName = name;
        if (theDisplayName == null)
        {
            theDisplayName = "Strain";
        }
        return theDisplayName;
    }

    /**
     * @return Returns the name.
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name
     *            The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * @return Returns the stockNumber.
     */
    public String getStockNumber()
    {
        return stockNumber;
    }

    /**
     * @param stockNumber
     *            The stockNumber to set.
     */
    public void setStockNumber(String stockNumber)
    {
        this.stockNumber = stockNumber;
    }

    /**
     * @return Returns the cancerModel.
     */
    public AbstractCancerModel getCancerModel()
    {
        return cancerModel;
    }

    /**
     * @param cancerModel
     *            The cancerModel to set.
     */
    public void setCancerModel(AbstractCancerModel cancerModel)
    {
        this.cancerModel = cancerModel;
    }

    /**
     * @return Returns the animalDistributor.
     */
    public AnimalDistributor getAnimalDistributor()
    {
        return animalDistributor;
    }

{'fraction_non_alphanumeric': 0.09094790777113577, 'fraction_numerical': 0.0623398804440649, 'mean_word_length': 2.3052681091251177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5931345', 'n_tokens_mistral': 2481, 'n_tokens_neox': 2121, 'n_words': 595}