<commit_before>  <div class="profile vcard">
    <%- if @person.openid_identifier.nil? -%>
    <h2><%= t('people.show.header') %> <span class="fn n"><%= h @person.display_name %></span>&nbsp;<%= organization_image(@person) %><%= waiting_image %></h2>
    <%- else -%>
    <h2><%= t('people.show.header') %> <span class="fn n"><%= link_to h(@person.display_name), @person.openid_identifier, :title => @person.openid_identifier %></span>&nbsp;<%= image_tag("login-bg.gif") %><%= organization_image(@person) %>&nbsp;<%= waiting_image %></h2>
    <%- end -%>
    <%- if admin? and not @person.active? -%>
      <p class="alert alert-error"><%= t('people.show.not_active') %></p>
    <%- end -%>
    <%- if current_person?(@person) -%>
      <%- if current_person.description.blank? -%>
        <div class="alert alert-error">
          <%= t('people.show.description_blank') %>
          <%= link_to t('people.show.add_description'),
                      edit_person_path(@person) %>
        </div>
      <%- else -%>
        <div class="alert">
          <%= t('people.show.own_profile') %>
          <%= link_to t('people.show.edit_it'), edit_person_path(@person) %>
        </div>
      <%- end -%>
      <%- if current_person.address && Person::DEFAULT_ZIPCODE_STRING == current_person.address.zipcode_plus_4 %>
        <div class="error">
          <%= link_to t('people.show.update_location'),
                      edit_person_path(@person) %>. 
          <%= t('people.show.address_remain_private') %>
        </div>
      <%- end -%>
    <%- end -%>
    <div class="toolbox">
      <%= image_tag @person.main_photo, :class => "profile-image photo",
                                        :alt => h(@person.display_name) %>

        <ul class="tools">
          <%- if @person.org %>
            <li><span class="label"><%= t('groups.show.contact') %></span>: <%= @person.name %></li>
          <%- end %>
        <%- unless current_person?(@person) -%>
          <%- if logged_in? -%>
            <%- if @membership.group.adhoc_currency? -%>
              <li><%= exchange_link @person, @membership.group, :class => 'show-follow' %></li>
            <%- end -%>
            <li><%= email_link @person %></li>
            <%- if @membership.group.adhoc_currency? -%>
              <%= render :partial => 'shared/account', :locals => {:account => @account, :html_classes => 'show-follow'} %>
            <%- end -%>
          <%- end -%>
          <%- if current_person.admin? -%>
            <li>
            <%- activity = @person.deactivated? ? "activate" : "deactivate" -%>
            <%= link_to activity, 
                        person_path(@person, :task => "deactivated"),
                        :method => :put %>
            </li>
          <%- end -%>
        <% else -%>
          <%- if logged_in? -%>
            <%- if @membership.group.adhoc_currency? -%>
              <%= render :partial => 'shared/account', :locals => {:account => @account, :html_classes => 'show-follow'} %>
            <%- end -%>
          <%- end -%>
        <%- end -%>
      </ul>
    </div>
    <ul>
      <%= render :partial => 'shared/neighborhood', :collection => @person.neighborhoods %>
    </ul>
    <%= display @person.formatted_categories, :class => "meta" %>
    <% if @person.phoneprivacy? %>
    <% unless @person.phone.nil? %>
      <div>
        <%= image_tag "icons/phone.gif", :class => "icon", :alt => "Phone" %> <span class="small"><%= t('people.show.phone') %></span> <span class="added small"><%= h @person.phone %></span><commit_msg>act as this person link in member view. closes gh-421<commit_after>  <div class="profile vcard">
    <%- if @person.openid_identifier.nil? -%>
    <h2><%= t('people.show.header') %> <span class="fn n"><%= h @person.display_name %></span>&nbsp;<%= organization_image(@person) %><%= waiting_image %></h2>
    <%- else -%>
    <h2><%= t('people.show.header') %> <span class="fn n"><%= link_to h(@person.display_name), @person.openid_identifier, :title => @person.openid_identifier %></span>&nbsp;<%= image_tag("login-bg.gif") %><%= organization_image(@person) %>&nbsp;<%= waiting_image %></h2>
    <%- end -%>
    <%- if admin? and not @person.active? -%>
      <p class="alert alert-error"><%= t('people.show.not_active') %></p>
    <%- end -%>
    <%- if current_person?(@person) -%>
      <%- if current_person.description.blank? -%>
        <div class="alert alert-error">
          <%= t('people.show.description_blank') %>
          <%= link_to t('people.show.add_description'),
                      edit_person_path(@person) %>
        </div>
      <%- else -%>
        <div class="alert">
          <%= t('people.show.own_profile') %>
          <%= link_to t('people.show.edit_it'), edit_person_path(@person) %>
        </div>
      <%- end -%>
      <%- if current_person.address && Person::DEFAULT_ZIPCODE_STRING == current_person.address.zipcode_plus_4 %>
        <div class="error">
          <%= link_to t('people.show.update_location'),
                      edit_person_path(@person) %>. 
          <%= t('people.show.address_remain_private') %>
        </div>
      <%- end -%>
    <%- end -%>
    <div class="toolbox">
      <%= image_tag @person.main_photo, :class => "profile-image photo",
                                        :alt => h(@person.display_name) %>

        <ul class="tools">
          <%- if @person.org %>
            <li><span class="label"><%= t('groups.show.contact') %></span>: <%= @person.name %></li>
          <%- end %>
        <%- unless current_person?(@person) -%>
          <%- if logged_in? -%>
            <%- if @membership.group.adhoc_currency? -%>
              <li><%= exchange_link @person, @membership.group, :class => 'show-follow' %></li>
            <%- end -%>
            <li><%= email_link @person %></li>
            <%- if @membership.group.adhoc_currency? -%>
              <%= render :partial => 'shared/account', :locals => {:account => @account, :html_classes => 'show-follow'} %>
            <%- end -%>
          <%- end -%>
          <%- if current_person.admin? -%>
            <li>
              <%= link_to t('people.show.switch_user'), su_person_path(@person) %>
            </li>
            <li>
            <%- activity = @person.deactivated? ? "activate" : "deactivate" -%>
            <%= link_to activity, 
                        person_path(@person, :task => "deactivated"),
                        :method => :put %>
            </li>
          <%- end -%>
        <% else -%>
          <%- if logged_in? -%>
            <%- if @membership.group.adhoc_currency? -%>
              <%= render :partial => 'shared/account', :locals => {:account => @account, :html_classes => 'show-follow'} %>
            <%- end -%>
          <%- end -%>
        <%- end -%>
      </ul>
    </div>
    <ul>
      <%= render :partial => 'shared/neighborhood', :collection => @person.neighborhoods %>
    </ul>
    <%= display @person.formatted_categories, :class => "meta" %>
    <% if @person.phoneprivacy? %>
    <% unless @person.phone.nil? %>
      <div>
        <%= image_tag "icons/phone.gif", :class => "icon", :alt => "Phone" %> <span class="small"><%= t('people.show.phone') %></span> <span class="added small"><%= h @person.phone %></span>
{'fraction_non_alphanumeric': 0.21491469455145845, 'fraction_numerical': 0.0017886626307099616, 'mean_word_length': 2.135893011216566, 'pattern_counts': {'":': 0, '<': 204, '<?xml version=': 0, '>': 242, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7142354', 'n_tokens_mistral': 2510, 'n_tokens_neox': 2303, 'n_words': 405}