<commit_before><header id="header" class="navbar navbar-static-top navbar-inverse">
  <div class="navbar-inner">
    <div class="container">
      <%= link_to t('global.app_name'), root_path, class: "brand" %>
      <nav>
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <div class="nav-collapse collapse">
          <ul class="nav pull-right">
            <% if signed_in? %>
              <%= render 'shared/feedback_form' %>
              <li id="fat-menu" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <%= current_user.name %> <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                  <li><%= link_to 'Maps', current_user %></li>
                  <li><%= link_to 'Resources', 'Javascript:void();', id: 'show_resources' %></li>
                  <li><%= link_to t('signin.settings'), settings_path %></li>
                  <li class="divider"></li>
                  <li>
                    <%= link_to t('signin.signout'), signout_path, method: "delete" %>
                  </li>
                </ul>
              </li>
            <% else %>
              <li><%= link_to t('signup.link'), signup_path %></li>
              <li><%= link_to t('signin.link'), signin_path %></li>
            <% end %>
          </ul>
        </div>
      </nav>
    </div>
  </div>
</header>
<script type="text/javascript">
$(document).ready(function() {

  $(document).on('click', '#show_resources', function(){
    window.location = '<%= user_path(current_user, anchor:"resources") %>';
    window.location.reload(true);
    return true;
  });

});
</script><commit_msg>fixed bug when not logged in<commit_after><header id="header" class="navbar navbar-static-top navbar-inverse">
  <div class="navbar-inner">
    <div class="container">
      <%= link_to t('global.app_name'), root_path, class: "brand" %>
      <nav>
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <div class="nav-collapse collapse">
          <ul class="nav pull-right">
            <% if signed_in? %>
              <%= render 'shared/feedback_form' %>
              <li id="fat-menu" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <%= current_user.name %> <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                  <li><%= link_to 'Maps', current_user %></li>
                  <li><%= link_to 'Resources', 'Javascript:void();', id: 'show_resources' %></li>
                  <li><%= link_to t('signin.settings'), settings_path %></li>
                  <li class="divider"></li>
                  <li>
                    <%= link_to t('signin.signout'), signout_path, method: "delete" %>
                  </li>
                </ul>
              </li>
            <% else %>
              <li><%= link_to t('signup.link'), signup_path %></li>
              <li><%= link_to t('signin.link'), signin_path %></li>
            <% end %>
          </ul>
        </div>
      </nav>
    </div>
  </div>
</header>
<script type="text/javascript">
$(document).ready(function() {

  <% if current_user %>
  $(document).on('click', '#show_resources', function(){
    window.location = '<%= user_path(current_user, anchor:"resources") %>';
    window.location.reload(true);
    return true;
  });
  <% end %>

});
</script>
{'fraction_non_alphanumeric': 0.19485001327316168, 'fraction_numerical': 0.0, 'mean_word_length': 1.964594807238395, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '1863994', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1117, 'n_words': 225}