<commit_before><br />
<div class="row">
  <div class="col-xs-10 col-centered">
    <div class="panel panel-default">
      <div class="panel-heading"><h1>All visits</h1></div>
      <table class="table table-striped table-hover">
        <tr>
          <th data-sortable="true">Date</th>
          <th data-sortable="true">Patient</th>
          <th>After-visit summary</th>
          <th>Actions</th>
        </tr>
        <% @visits.each do |visit| %>
        <tr>
          <td><%= visit.created_at.strftime("%d %B %Y") %></td>
          <td><%= link_to "#{visit.patient.last_name}, #{visit.patient.first_name}", patient_path(visit.patient_id) %></td>
          <td><%= link_to "View Details", visit_path(visit.id) %></td>
          <td>
            <div class="btn-group btn-group-sm" role="group">
              <%= button_to "Generate Report", report_visit_path(id: visit.id), type: "button", method: :get, class: "btn btn-secondary" %>
              <%= button_to "Edit Visit", edit_visit_path(id: visit.id), type: "button", method: :get, class: "btn btn-secondary" %>
              <%= button_to "Destroy Visit", visit_path(id: visit.id), method: :delete, type: "button", class: "btn btn-secondary" %>
            </div>
          </td>
        </tr>
        <% end %>
      </table>
    </div>
  </div>
</div>
<commit_msg>Buttons for mobile styling<commit_after><br />
<div class="row">
  <div class="col-xs-10 col-centered">
    <div class="panel panel-default">
      <div class="panel-heading"><h1>All visits</h1></div>
      <table class="table table-striped table-hover">
        <tr>
          <th data-sortable="true">Date</th>
          <th data-sortable="true">Patient</th>
          <th>After-visit summary</th>
          <th>Actions</th>
        </tr>
        <% @visits.each do |visit| %>
        <tr>
          <td><%= visit.created_at.strftime("%d %B %Y") %></td>
          <td><%= link_to "#{visit.patient.last_name}, #{visit.patient.first_name}", patient_path(visit.patient_id) %></td>
          <td><%= link_to "View Details", visit_path(visit.id) %></td>
          <td>
            <div class="hidden-sm hidden-xs btn-group btn-group-sm hidden-sm-down" role="group">
              <%= button_to "Generate Report", report_visit_path(id: visit.id), type: "button", method: :get, class: "btn btn-secondary" %>
              <%= button_to "Edit Visit", edit_visit_path(id: visit.id), type: "button", method: :get, class: "btn btn-secondary" %>
              <%= button_to "Destroy Visit", visit_path(id: visit.id), method: :delete, type: "button", class: "btn btn-secondary" %>
            </div>
            <div class="hidden-md hidden-lg hidden-xlg btn-group btn-group-sm" role="group">
              <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                Actions
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu">
                <li><%= link_to "Generate Report", report_visit_path(id: visit.id), method: :get %></li>
                <li><%= link_to "Update Visit", edit_visit_path(id: visit.id), method: :get %></li>
                <li><%= link_to "Destroy Visit", visit_path(id: visit.id), method: :delete %></li>
              </ul>
            </div>
            </div>
          </td>
        </tr>
        <% end %>
      </table>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18880510440835266, 'fraction_numerical': 0.002320185614849188, 'mean_word_length': 2.3452958292919495, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '4204222', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1104, 'n_words': 248}