<commit_before><div class='row'>
  <%= link_to 'New Friend', new_community_admin_friend_path(current_community.slug), class: 'btn btn-primary pull-right'%>
</div>
<h1><%= link_to "Friends", community_admin_friends_path(current_community.slug) %></h1>

<%= render 'search_friends' %>

<% if @friends.present? %>
  <table class='table table-bordered'>
    <thead>
      <tr>
        <th>ID</th>
        <th>First Name</th>
        <th>Last Name</th>
        <% if current_region.border? %>
          <th>Border Queue Number</th>
        <% else %>
          <th>A#</th>
        <% end %>
        <th>Phone Number</th>
        <th>Created</th>
        <th>Entered</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
      <% @friends.each do |friend| %>
        <tr id="friend-<%=friend.id%>" style="color: <%= friend.detained? ? "red" : "black" %>;"}>
          <td><%= friend.id %></td>
          <td><%= link_to friend.first_name, edit_community_admin_friend_path(current_community.slug, friend) %></td>
          <td><%= link_to friend.last_name, edit_community_admin_friend_path(current_community.slug, friend) %></td>
          <% if current_region.border? %>
            <td><%= friend.border_queue_number %></td>
          <% else %>
            <td><%= friend.a_number %></td>
          <% end %>
          <td><%= friend.phone %></td>
          <td><%= friend.created_at.strftime('%m/%d/%y') %></td>
          <% if friend.date_of_entry? %>          
            <td><%= friend.date_of_entry.strftime('%m/%d/%y') %></td>
          <% else %>
            <td />
          <% end %>
          <td>
            <div class='btn-group'>
              <%= link_to(edit_community_admin_friend_path(current_community.slug, friend), id: "edit-friend-#{friend.id}", class: 'btn btn-default') do %>
                <i class="fa fa-edit"></i><commit_msg>[Friends] Render Those Entered Within Year Green<commit_after><div class='row'>
  <%= link_to 'New Friend', new_community_admin_friend_path(current_community.slug), class: 'btn btn-primary pull-right'%>
</div>
<h1><%= link_to "Friends", community_admin_friends_path(current_community.slug) %></h1>

<%= render 'search_friends' %>

<% if @friends.present? %>
  <table class='table table-bordered'>
    <thead>
      <tr>
        <th>ID</th>
        <th>First Name</th>
        <th>Last Name</th>
        <% if current_region.border? %>
          <th>Border Queue Number</th>
        <% else %>
          <th>A#</th>
        <% end %>
        <th>Phone Number</th>
        <th>Created</th>
        <th>Entered</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
      <% @friends.each do |friend| %>
        <tr id="friend-<%=friend.id%>" style="color: <%= friend.detained? ? "red" : "black" %>;"}>
          <td><%= friend.id %></td>
          <td><%= link_to friend.first_name, edit_community_admin_friend_path(current_community.slug, friend) %></td>
          <td><%= link_to friend.last_name, edit_community_admin_friend_path(current_community.slug, friend) %></td>
          <% if current_region.border? %>
            <td><%= friend.border_queue_number %></td>
          <% else %>
            <td><%= friend.a_number %></td>
          <% end %>
          <td><%= friend.phone %></td>
          <td><%= friend.created_at.strftime('%m/%d/%y') %></td>
          <% if friend.date_of_entry? %>          
            <td style="<%= "font-weight: bold; color: #199348" if friend.date_of_entry >= 1.year.ago.to_date %>; ">
              <%= friend.date_of_entry.strftime('%m/%d/%y') %>
            </td>
          <% else %>
            <td />
          <% end %>
          <td>
            <div class='btn-group'>
              <%= link_to(edit_community_admin_friend_path(current_community.slug, friend), id: "edit-friend-#{friend.id}", class: 'btn btn-default') do %>
                <i class="fa fa-edit"></i>
{'fraction_non_alphanumeric': 0.1948586118251928, 'fraction_numerical': 0.002827763496143959, 'mean_word_length': 2.3114893617021277, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 155, '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': '6255666', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1299, 'n_words': 229}