<commit_before><% if @family_people.length > 1 %>
  <h2>
    Family
  <% if @logged_in.admin?  %>
    <%= link_to 'edit', @family, :style => 'font-size:10pt;color:#999;text-decoration:none;' %>
    <% elsif me? %>
      <%= link_to 'edit', edit_person_path(@logged_in), :style => 'font-size:10pt;color:#999;text-decoration:none;' %>
    <% end %>
  </h2>
  <table>
    <% @family_people.each do |person| %>
      <tr class="family-member">
        <td>
          <a href="<%= url_for person %>">
            <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
          </a>
        </td>
        <td>
          <%= link_to h(person.name), person %>
          <% unless person.visible?(@family) %>
            <%= image_tag('lock.gif', :alt => 'Hidden Profile', :class => 'icon') %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %><commit_msg>Only show family edit link for admins who can edit profiles.<commit_after><% if @family_people.length > 1 %>
  <h2>
    Family
  <% if @logged_in.admin?(:edit_profiles)  %>
    <%= link_to 'edit', @family, :class => 'discreet' %>
  <% elsif me? %>
    <%= link_to 'edit', edit_person_path(@logged_in), :class => 'discreet' %>
  <% end %>
  </h2>
  <table>
    <% @family_people.each do |person| %>
      <tr class="family-member">
        <td>
          <a href="<%= url_for person %>">
            <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
          </a>
        </td>
        <td>
          <%= link_to h(person.name), person %>
          <% unless person.visible?(@family) %>
            <%= image_tag('lock.gif', :alt => 'Hidden Profile', :class => 'icon') %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>
{'fraction_non_alphanumeric': 0.21472737492973581, 'fraction_numerical': 0.008993816750983699, 'mean_word_length': 2.2720588235294117, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 73, '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': '490716', 'n_tokens_mistral': 681, 'n_tokens_neox': 613, 'n_words': 128}