<commit_before>package edu.cmu.lti.bic.sbs.gson;

public class Prescription {
  private Drug drug;

  private Double dose;

  private String unit;

  // Default initializer that will ensure testing successfully using main method.
  public Prescription() {
    this(new Drug(), 0.0, "-");
  }

  public Prescription(Drug drug, double dose, String unit) {
    this.setDrug(drug);
    this.setDose(dose);
    this.setUnit(unit);
  }

  public String getUnit() {
    return unit;
  }

  public Prescription setUnit(String unit) {
    this.unit = unit;
    return this;
  }

  public Double getDose() {
    return dose;
  }

  public Prescription setDose(Double dose) {
    this.dose = dose;
    return this;
  }

  public Drug getDrug() {
    return drug;
  }

  public Prescription setDrug(Drug drug) {
    this.drug = drug;
    return this;
  }
  
  public String toString(){
    return drug.getName() + "\t\t" + dose + "\t\t" + unit;
  }
}<commit_msg>put dose and unit together<commit_after>package edu.cmu.lti.bic.sbs.gson;

public class Prescription {
  private Drug drug;

  private Double dose;

  private String unit;

  // Default initializer that will ensure testing successfully using main method.
  public Prescription() {
    this(new Drug(), 0.0, "-");
  }

  public Prescription(Drug drug, double dose, String unit) {
    this.setDrug(drug);
    this.setDose(dose);
    this.setUnit(unit);
  }

  public String getUnit() {
    return unit;
  }

  public Prescription setUnit(String unit) {
    this.unit = unit;
    return this;
  }

  public Double getDose() {
    return dose;
  }

  public Prescription setDose(Double dose) {
    this.dose = dose;
    return this;
  }

  public Drug getDrug() {
    return drug;
  }

  public Prescription setDrug(Drug drug) {
    this.drug = drug;
    return this;
  }
  
  public String toString(){
  	if(dose == 0) {
  		return "- \t\t -";
  	}
    return drug.getName() + "\t\t" + dose + unit;
  }
}
{'fraction_non_alphanumeric': 0.11583803177857509, 'fraction_numerical': 0.0025627883136852894, 'mean_word_length': 2.739463601532567, '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': '2367806', 'n_tokens_mistral': 683, 'n_tokens_neox': 649, 'n_words': 181}