<commit_before>package gov.nih.nci.cabig.caaers.domain;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;

import org.springframework.beans.BeanUtils;

 
/**
 * This class represents the Dose domain object associated with the Adverse event report.
 *
 * @author <NAME>
 */
@Embeddable
public class Dose {
    /** The code. */
    private int code; //to force hibernate to load the object
    /** The amount. */
    private String amount;

    /** The units. */
    private String units; // TODO: source from caDSR

    /** The route. */
    private String route; // caDSR?
    /**
     * Gets the code.
     *
     * @return the code
     */
    @Column(name = "dose_amount")
    public int getCode(){
        return code;
    }

    /**
     * Sets the code.
     *
     * @param code the new code
     */
    public void setCode(int code) {
        this.code = code;
    }
    // //// LOGIC

    /**
     * Gets the display name.
     *
     * @return the display name
     */
    @Transient<commit_msg>CAAERS-5776 Missing "Submit" button for AE report<commit_after>package gov.nih.nci.cabig.caaers.domain;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;

import org.springframework.beans.BeanUtils;

 
/**
 * This class represents the Dose domain object associated with the Adverse event report.
 *
 * @author <NAME>
 */
@Embeddable
public class Dose {
    /** The code. */
    private int code; //to force hibernate to load the object
    /** The amount. */
    private String amount;

    /** The units. */
    private String units; // TODO: source from caDSR

    /** The route. */
    private String route; // caDSR?
    /**
     * Gets the code.
     *
     * @return the code
     */
    @Column(name = "dose_code")
    public int getCode(){
        return code;
    }

    /**
     * Sets the code.
     *
     * @param code the new code
     */
    public void setCode(int code) {
        this.code = code;
    }
    // //// LOGIC

    /**
     * Gets the display name.
     *
     * @return the display name
     */
    @Transient
{'fraction_non_alphanumeric': 0.1190917516218721, 'fraction_numerical': 0.0018535681186283596, 'mean_word_length': 2.0754985754985755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5530078', 'n_tokens_mistral': 674, 'n_tokens_neox': 655, 'n_words': 201}