<commit_before><nav role="navigation" class="user-navigation">
  <ul>
    <!-- always -->
    <li class="user-navigation--search">
      <!-- <svg viewBox="0 0 32 32"><use xlink:href="#search1"></use></svg> -->
      <%= render 'thredded/search/form' %>
    </li>

    <!-- if logged in -->
    <li class="">
      <a href="#">
        <!-- <svg viewBox="0 0 32 32"><use xlink:href="#user1"></use></svg> -->
        <span>Sign In / Register</span>
      </a>
    </li>

    <!-- if not logged in -->
    <!-- <li class="main&#45;nav&#45;notification&#45;preferences"> -->
    <!--   <a href="#"> -->
    <!--     <!&#45;&#45; <svg viewBox="0 0 32 32"><use xlink:href="#bell"></use></svg> &#45;&#45;> -->
    <!--     <span>Notification Settings</span> -->
    <!--   </a> -->
    <!-- </li> -->
    <!--  -->
    <!-- <li class="main&#45;nav&#45;notification&#45;preferences"> -->
    <!--   <a href="#"> -->
    <!--     <!&#45;&#45; <svg viewBox="0 0 32 32"><use xlink:href="#bell"></use></svg> &#45;&#45;> -->
    <!--     <span>UserName</span> -->
    <!--   </a> -->
    <!-- </li> -->
  </ul>
</nav><commit_msg>[JRO] Clean up and flesh out top_nav partial<commit_after><nav role="navigation" class="user-navigation">
  <ul>
    <li class="user-navigation--search">
      <%= render 'thredded/search/form' %>
    </li>

    <% if signed_in? %>
      <% if messageboard %>
        <li class="main--nav--notification--preferences">
          <%= link_to edit_messageboard_preferences_path(messageboard) do %>
            <span>Notification Settings</span>
          <% end %>
        </li>
      <% end %>

      <li class="main--nav--user">
        <%= link_to "/users/#{current_user}" do %>
          <span><%= current_user %></span>
        <% end %>
      </li>

      <li class="main--nav--sign-out">
        <%= link_to main_app.session_path, method: :delete do %>
         <span>Sign Out</span>
        <% end %>
      </li>

    <% else %>
      <li class="main--nav--sign-in-register">
        <%= link_to main_app.sessions_new_path do %>
          <span>Sign In / Register</span>
        <% end %>
      </li>
    <% end %>
  </ul>
</nav>
{'fraction_non_alphanumeric': 0.2533705253370525, 'fraction_numerical': 0.02510460251046025, 'mean_word_length': 2.061166429587482, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '6615685', 'n_tokens_mistral': 786, 'n_tokens_neox': 703, 'n_words': 135}