<commit_before>package edu.duke.cabig.c3pr.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * @author Priyatam
 */
@Entity
@Table (name = "disease_terms")
@GenericGenerator(name="id-generator", strategy = "native",
    parameters = {
        @Parameter(name="sequence", value="DISEASE_TERMS_ID_SEQ")
    }
)
public class DiseaseTerm extends AbstractDomainObject {
    private String term;
    //private String select;
    private String ctepTerm;
    private String medraCode;
    private DiseaseCategory category;
    //private boolean otherRequired;

    ////// LOGIC

    ////// BEAN PROPERTIES

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public String getCtepTerm() {
        return ctepTerm;
    }

    public void setCtepTerm(String ctepTerm) {
        this.ctepTerm = ctepTerm;
    }

    public String getMedraCode() {
        return medraCode;
    }

    public void setMedraCode(String medraCode) {
        this.medraCode = medraCode;
    }

    @ManyToOne (fetch = FetchType.LAZY)
    @JoinColumn(name="category_id", nullable=false)   
    public DiseaseCategory getCategory() {
        return category;
    }

    public void setCategory(DiseaseCategory category) {
        this.category = category;
    }
    
    public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		final DiseaseTerm that = (DiseaseTerm) o;

		if (ctepTerm != null ? !ctepTerm.equals(that.ctepTerm)
				: that.ctepTerm != null)
			return false;
		if (medraCode != null ? !medraCode.equals(that.medraCode)
				: that.medraCode != null)
			return false;

		return true;
	}

	public int hashCode() {
		int result;
		result = (ctepTerm != null ? ctepTerm.hashCode() : 0);
		result = 29 * result + (medraCode != null ? medraCode.hashCode() : 0);
		return result;
	}
    

}<commit_msg>changed type of medra code<commit_after>package edu.duke.cabig.c3pr.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * @author Priyatam
 */
@Entity
@Table (name = "disease_terms")
@GenericGenerator(name="id-generator", strategy = "native",
    parameters = {
        @Parameter(name="sequence", value="DISEASE_TERMS_ID_SEQ")
    }
)
public class DiseaseTerm extends AbstractDomainObject {
    private String term;
    //private String select;
    private String ctepTerm;
    private long medraCode;
    private DiseaseCategory category;
    //private boolean otherRequired;

    ////// LOGIC

    ////// BEAN PROPERTIES

    public void setMedraCode(long medraCode) {
		this.medraCode = medraCode;
	}

    public long getMedraCode() {
        return medraCode;
    }


	public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public String getCtepTerm() {
        return ctepTerm;
    }

    public void setCtepTerm(String ctepTerm) {
        this.ctepTerm = ctepTerm;
    }

    @ManyToOne (fetch = FetchType.LAZY)
    @JoinColumn(name="category_id", nullable=false)   
    public DiseaseCategory getCategory() {
        return category;
    }

    public void setCategory(DiseaseCategory category) {
        this.category = category;
    }
    
    public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		final DiseaseTerm that = (DiseaseTerm) o;

		if (ctepTerm != null ? !ctepTerm.equals(that.ctepTerm)
				: that.ctepTerm != null)
			return false;
		return true;
	}

	public int hashCode() {
		int result;
		result = (ctepTerm != null ? ctepTerm.hashCode() : 0);
		return result;
	}
    
}
{'fraction_non_alphanumeric': 0.1103082851637765, 'fraction_numerical': 0.0016859344894026974, 'mean_word_length': 3.03988326848249, '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': '2770601', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1303, 'n_words': 311}