<commit_before><div class="profile">

  <div class="profile-sidebar">
    <div class="profile-pic">
      <%= render partial: 'photo' %>
    </div>
  </div>

  <div class="profile-body">
    <% if flash[:show_verification_link] %>
      <div class="highlight">
        <%= link_to t('people.click_to_send_verification_email'), account_path(email: @person.email), method: 'post', confirm: t('are_you_sure'), class: 'email-icon' %>
      </div>
    <% end %>
    <% unless @person.visible? %>
      <div class="highlight"><span class="lock-icon"></span> <%= t('people.this_profile_is_hidden') %></div>
    <% end %>
    <% unless @family %>
      <div class="alert"><span class="alert-icon"></span> <%= t('people.no_family_for_this_person') %></div>
    <% end %>
    <%= render partial: 'pending_updates' %>
    <h2>
      <strong><%= @person.name %></strong>
      <% if @person.description.to_s.any? %>
        / <%= @person.description %>
      <% end %>
    </h2>
    <ul class="profile-details">
      <%= attribute(:website)      do %><li class="website"><%= link_to simple_url(@person.website), @person.website %>                           </li><% end %>
      <%= attribute(:email)        do %><li class="email"  ><%= mail_to @person.email                                %>                           </li><% end %>
      <%= attribute(:mobile_phone) do %><li class="phone"  ><%= format_phone @person.mobile_phone                    %> <%= t('profile.mobile') %></li><% end %>
      <%= attribute(:work_phone)   do %><li class="phone"  ><%= format_phone @person.work_phone                      %> <%= t('profile.work')   %></li><% end %>
      <%= attribute(:home_phone)   do %><li class="phone"  ><%= format_phone @person.home_phone                      %> <%= t('profile.home'  ) %></li><% end %>
      <%= attribute(:fax)          do %><li class="phone"  ><%= format_phone @person.fax                             %> <%= t('profile.fax'   ) %></li><% end %>
      <div class="new-line"></div>
      <%= attribute(:address) do %>
        <li class="address"><%= preserve_breaks @person.address %><br/><%= @person.city %>, <%= @person.state %> <%= @person.short_zip %></li>
      <% end %>
      <div class="new-line"></div>
      <% if @person.messages_enabled? %>
        <li class="icon">
          <%= link_to t('messages.send_message'), new_message_path(to_person_id: @person), class: 'email-icon' %>
        </li>
      <% end %>
      <%= render partial: 'friendship' %>
      <% if @logged_in.can_edit?(@person) %>
        <li class="icon">
          <%= link_to t('people.edit.profile'), edit_person_path(@person), class: 'edit-icon' %>
        </li>
      <% end %>
    </ul>
  </div>

  <div class="clear"></div>
  <div class="profile-sidebar">
    <%= render partial: 'family' %>

    <% if @albums.any? %>
      <h3><%= t('albums.picture_albums') %></h3>
      <p>
        <% @albums.each do |album| %>
          <%= link_to image_tag(album.cover ? album.cover.photo.url(:tn) : 'missing_tn.png', alt: album.name),
            album, title: album.name %>
        <% end %>
      </p>
    <% end %>

    <% if @friends.any? %>
      <h3><%= t('friends.friends') %></h3>
      <% @friends.each do |person| %>
        <%= content_tag :a, href: person_path(person) do %>
          <%= render partial: 'people/thumbnail', locals: {person: person} %>
        <% end %>
      <% end %>
    <% end %>
  </div>

  <div class="profile-body">
<commit_msg>Add edit link for friends.<commit_after><div class="profile">

  <div class="profile-sidebar">
    <div class="profile-pic">
      <%= render partial: 'photo' %>
    </div>
  </div>

  <div class="profile-body">
    <% if flash[:show_verification_link] %>
      <div class="highlight">
        <%= link_to t('people.click_to_send_verification_email'), account_path(email: @person.email), method: 'post', confirm: t('are_you_sure'), class: 'email-icon' %>
      </div>
    <% end %>
    <% unless @person.visible? %>
      <div class="highlight"><span class="lock-icon"></span> <%= t('people.this_profile_is_hidden') %></div>
    <% end %>
    <% unless @family %>
      <div class="alert"><span class="alert-icon"></span> <%= t('people.no_family_for_this_person') %></div>
    <% end %>
    <%= render partial: 'pending_updates' %>
    <h2>
      <strong><%= @person.name %></strong>
      <% if @person.description.to_s.any? %>
        / <%= @person.description %>
      <% end %>
    </h2>
    <ul class="profile-details">
      <%= attribute(:website)      do %><li class="website"><%= link_to simple_url(@person.website), @person.website %>                           </li><% end %>
      <%= attribute(:email)        do %><li class="email"  ><%= mail_to @person.email                                %>                           </li><% end %>
      <%= attribute(:mobile_phone) do %><li class="phone"  ><%= format_phone @person.mobile_phone                    %> <%= t('profile.mobile') %></li><% end %>
      <%= attribute(:work_phone)   do %><li class="phone"  ><%= format_phone @person.work_phone                      %> <%= t('profile.work')   %></li><% end %>
      <%= attribute(:home_phone)   do %><li class="phone"  ><%= format_phone @person.home_phone                      %> <%= t('profile.home'  ) %></li><% end %>
      <%= attribute(:fax)          do %><li class="phone"  ><%= format_phone @person.fax                             %> <%= t('profile.fax'   ) %></li><% end %>
      <div class="new-line"></div>
      <%= attribute(:address) do %>
        <li class="address"><%= preserve_breaks @person.address %><br/><%= @person.city %>, <%= @person.state %> <%= @person.short_zip %></li>
      <% end %>
      <div class="new-line"></div>
      <% if @person.messages_enabled? %>
        <li class="icon">
          <%= link_to t('messages.send_message'), new_message_path(to_person_id: @person), class: 'email-icon' %>
        </li>
      <% end %>
      <%= render partial: 'friendship' %>
      <% if @logged_in.can_edit?(@person) %>
        <li class="icon">
          <%= link_to t('people.edit.profile'), edit_person_path(@person), class: 'edit-icon' %>
        </li>
      <% end %>
    </ul>
  </div>

  <div class="clear"></div>
  <div class="profile-sidebar">
    <%= render partial: 'family' %>

    <% if @albums.any? %>
      <h3><%= t('albums.picture_albums') %></h3>
      <p>
        <% @albums.each do |album| %>
          <%= link_to image_tag(album.cover ? album.cover.photo.url(:tn) : 'missing_tn.png', alt: album.name),
            album, title: album.name %>
        <% end %>
      </p>
    <% end %>

    <% if @friends.any? %>
      <h3><%= t('friends.friends') %></h3>
      <% @friends.each do |person| %>
        <%= content_tag :a, href: person_path(person) do %>
          <%= render partial: 'people/thumbnail', locals: {person: person} %>
        <% end %>
      <% end %>
      <p><%= link_to t('edit'), person_friends_path(@person) %></p>
    <% end %>
  </div>

  <div class="profile-body">

{'fraction_non_alphanumeric': 0.21798715203426125, 'fraction_numerical': 0.0017130620985010706, 'mean_word_length': 2.417560975609756, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 0, '>': 250, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6514642', 'n_tokens_mistral': 2514, 'n_tokens_neox': 2235, 'n_words': 427}