<commit_before>class MedicationReminders
  def send_take_medication_reminder_emails
    TakeMedicationReminder.active.each do |reminder|
      NotificationMailer.take_medication(reminder).deliver_now
    end
  end

  def send_refill_reminder_emails
    ready_for_refill.each do |reminder|
      NotificationMailer.refill_medication(reminder).deliver_now
    end
  end

  private

  def ready_for_refill
    RefillReminder.active.joins(:medication).where('medications.refill': one_week_from_now_as_string)
  end

  #Medication Refill dates are currently stored as strings in the database
  #instead of timestamps. If we want to do more complicated reminders, we
  #should migrate the data to timestamps.
  def one_week_from_now_as_string
    (Time.now + 1.week).strftime('%m/%d/%Y')
  end
end
<commit_msg>:cop: Space missing after #<commit_after>class MedicationReminders
  def send_take_medication_reminder_emails
    TakeMedicationReminder.active.each do |reminder|
      NotificationMailer.take_medication(reminder).deliver_now
    end
  end

  def send_refill_reminder_emails
    ready_for_refill.each do |reminder|
      NotificationMailer.refill_medication(reminder).deliver_now
    end
  end

  private

  def ready_for_refill
    RefillReminder.active.joins(:medication).where('medications.refill': one_week_from_now_as_string)
  end

  # Medication Refill dates are currently stored as strings in the database
  # instead of timestamps. If we want to do more complicated reminders, we
  # should migrate the data to timestamps.
  def one_week_from_now_as_string
    (Time.now + 1.week).strftime('%m/%d/%Y')
  end
end

{'fraction_non_alphanumeric': 0.06461538461538462, 'fraction_numerical': 0.0012307692307692308, 'mean_word_length': 4.568493150684931, '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': '3729418', 'n_tokens_mistral': 547, 'n_tokens_neox': 539, 'n_words': 122}