<commit_before><% if @patient.missed_scheduled_dose? %>
    <div class="alert alert-dismissible alert-warning">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <h4>Warning!</h4>
      <p>Looks like you missed a scheduled dose yesterday. Please contact <a href="#" class="alert-link">your physician</a>.</p>
    </div>
<% end %>

<h1>List of Prescriptions for <%= @patient.name %> Today:</h1>
<% @patient.scheduled_doses_for_today.each do |sd| %>
  <div class="panel panel-<%= sd.panel_class %>">
    <div class="panel-heading">
      <div class="row">
        <div class="col-lg-6">
        <%= sd.prescription.medication_name %>
        </div>
        <div class="col-lg-6">
            <div class="checkbox">
              <labeldose for="">
                  <%= form_for(sd) do |f| %>
                        <%= f.hidden_field :prescription_id, value: sd.prescription.id %>
                        <%= f.check_box :was_taken %>
                        <%= f.submit "Submit" %><commit_msg>Changes heading name<commit_after><% if @patient.missed_scheduled_dose? %>
    <div class="alert alert-dismissible alert-warning">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <h4>Warning!</h4>
      <p>Looks like you missed a scheduled dose yesterday. Please contact <a href="#" class="alert-link">your physician</a>.</p>
    </div>
<% end %>

<h1>List of Scheduled Doses for <%= @patient.name %> Today:</h1>
<% @patient.scheduled_doses_for_today.each do |sd| %>
  <div class="panel panel-<%= sd.panel_class %>">
    <div class="panel-heading">
      <div class="row">
        <div class="col-lg-6">
        <%= sd.prescription.medication_name %>
        </div>
        <div class="col-lg-6">
            <div class="checkbox">
              <labeldose for="">
                  <%= form_for(sd) do |f| %>
                        <%= f.hidden_field :prescription_id, value: sd.prescription.id %>
                        <%= f.check_box :was_taken %>
                        <%= f.submit "Submit" %>
{'fraction_non_alphanumeric': 0.17484215638659542, 'fraction_numerical': 0.005828071879553181, 'mean_word_length': 2.3993399339933994, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '6121899', 'n_tokens_mistral': 700, 'n_tokens_neox': 636, 'n_words': 135}