<commit_before><% if logged_in? -%>
  <div class="sidebar-bg">
    <div class="sidebar">
      <ul class="vbuttons">
        <% if controller.action_name != "show" %>
          <li><%= icon "show", person_url(current_user.person), "View your profile", nil, "View your profile" %></li>
        <% end %>
        <% if controller.action_name != "edit" %>
          <li><%= icon "edit", edit_person_url(current_user.person), "Edit your profile", nil, "Edit your profile" %></li>
        <% end %>
      </ul>
    </div>
  </div>
<% end %>
<%= render :partial=>"help_sidebar" -%><commit_msg>person sidebar logic update - when to show the edit and show profile buttons<commit_after><% if logged_in? -%>
  <div class="sidebar-bg">
    <div class="sidebar">
      <ul class="vbuttons">
        <% if controller.action_name == "show" %>
          <% if !mine?(@person) -%>
            <li><%= icon "show", person_url(current_user.person), "View your profile", nil, "View your profile" %></li>
          <% end -%>
        <% end %>
        <% if controller.action_name != "show" %>
          <li><%= icon "show", person_url(current_user.person), "View your profile", nil, "View your profile" %></li>
        <% end %>
        <% if controller.action_name != "edit" %>
          <li><%= icon "edit", edit_person_url(current_user.person), "Edit your profile", nil, "Edit your profile" %></li>
        <% end %>
      </ul>
    </div>
  </div>
<% end %>
<%= render :partial=>"help_sidebar" -%>
{'fraction_non_alphanumeric': 0.19838056680161945, 'fraction_numerical': 0.0, 'mean_word_length': 2.763959390862944, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 50, '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': '2744056', 'n_tokens_mistral': 502, 'n_tokens_neox': 467, 'n_words': 125}