<commit_before><tr>
  <td>
    <% if context == :user %>
      Household <%= link_to(icon_tag("link"), household, class: "household") %>
    <% else %>
      Members
    <% end %>
  </td>
  <td>
    <%= safe_join(household.users.map { |u| link_to(u.first_name, u) }, ", ".html_safe) %>
  </td>
</tr>
<% if !child && household.vehicles.any? %>
  <tr>
    <td>Vehicles</td>
    <td>
      <% household.vehicles.each do |v| %>
        <div><%= v.to_s %></div>
      <% end %>
    </td>
  </tr>
<% end %>
<% if !child && household.garage_nums.present? %>
  <tr>
    <td>Garage</td>
    <td><%= household.garage_nums %></td>
  </tr>
<% end %>
<tr>
  <td>Emergency Contacts</td>
  <td>
    <% if (contacts = household.emergency_contacts).any? %>
      <% contacts.each do |contact| %>
        <div class="emergency-contact">
          <strong><%= contact.name_relationship %></strong><br/>
          <% lines = [contact.location] %>
          <% lines.concat(contact.phones.map { |p| phone_link(p) }) %>
          <% lines << email_link(contact.email) if contact.email.present? %>
          <%= safe_join(lines, tag(:br)) %>
        </div>
      <% end %>
    <% else %>
      [None]
    <% end %>
  </td>
</tr><commit_msg>Fixed bug on household show<commit_after><tr>
  <td>
    <% if context == :user %>
      Household <%= link_to(icon_tag("link"), household, class: "household") %>
    <% else %>
      Members
    <% end %>
  </td>
  <td>
    <%= safe_join(household.users.map { |u| link_to(u.first_name, u) }, ", ".html_safe) %>
  </td>
</tr>
<% if context == :household || !child %>
  <% if household.vehicles.any? %>
    <tr>
      <td>Vehicles</td>
      <td>
        <% household.vehicles.each do |v| %>
          <div><%= v.to_s %></div>
        <% end %>
      </td>
    </tr>
  <% end %>
  <% household.garage_nums.present? %>
    <tr>
      <td>Garage</td>
      <td><%= household.garage_nums %></td>
    </tr>
  <% end %>
<tr>
  <td>Emergency Contacts</td>
  <td>
    <% if (contacts = household.emergency_contacts).any? %>
      <% contacts.each do |contact| %>
        <div class="emergency-contact">
          <strong><%= contact.name_relationship %></strong><br/>
          <% lines = [contact.location] %>
          <% lines.concat(contact.phones.map { |p| phone_link(p) }) %>
          <% lines << email_link(contact.email) if contact.email.present? %>
          <%= safe_join(lines, tag(:br)) %>
        </div>
      <% end %>
    <% else %>
      [None]
    <% end %>
  </td>
</tr>
{'fraction_non_alphanumeric': 0.2201761409127302, 'fraction_numerical': 0.0, 'mean_word_length': 2.3143236074270557, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 0, '>': 112, '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': '1994969', 'n_tokens_mistral': 999, 'n_tokens_neox': 898, 'n_words': 166}