<commit_before><nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <%= link_to fa_icon(:magnet, text: 'Media Magnet'), root_url, class: 'navbar-brand' %>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">

        <%- if current_user_is_admin? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Manage<span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to 'Users', admin_users_path %></li>
              <li><%= link_to 'Keywords', keywords_path %></li>
              <li><%= link_to 'Delayed Jobs', admin_delayed_jobs_path %></li>
            </ul>
          </li>
        <%- end %>

        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Explore<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><%= link_to 'Entities', entities_path %></li>
            <li><%= link_to 'Channels', channels_path %></li>
            <li><%= link_to 'Items', items_path %></li>
            <li><%= link_to 'Keywords', keywords_path %></li>
          </ul>
        </li>

        <%- if current_user_has_entities? %>
          <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            My Entities<span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <%- current_user.entities.each do |entity| %>
                <li><%= link_to entity.name, entity %></li>
              <%- end %>
            </ul>
          </li>
        <%- end %>

        <li><%= link_to 'Help', help_path %></li>

        <li class="dropdown">
          <%- if current_user %>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= current_user.display_name %><span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to 'My Account', edit_user_registration_path %></li>
              <li><%= link_to('Logout', destroy_user_session_path, :method => :delete) %></li>
            </ul>
          <%- else %>
            <%= link_to 'Login', dashboard_path %>
          <%- end %>
        </li>

      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<commit_msg>Added new entity link to navbar<commit_after><nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <%= link_to fa_icon(:magnet, text: 'Media Magnet'), root_url, class: 'navbar-brand' %>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">

        <%- if current_user_is_admin? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Manage<span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to 'Users', admin_users_path %></li>
              <li><%= link_to 'Keywords', keywords_path %></li>
              <li><%= link_to 'Delayed Jobs', admin_delayed_jobs_path %></li>
            </ul>
          </li>
        <%- end %>

        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Explore<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><%= link_to 'Entities', entities_path %></li>
            <li><%= link_to 'Channels', channels_path %></li>
            <li><%= link_to 'Items', items_path %></li>
            <li><%= link_to 'Keywords', keywords_path %></li>
          </ul>
        </li>

        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            My Entities<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <%- current_user.entities.each do |entity| %>
              <li><%= link_to entity.name, entity %></li>
            <%- end %>
            <%- if current_user.entities %>
              <li class="divider"></li>
            <%- end %>
            <li><%= link_to 'Register new entity', new_entity_path %></li>
          </ul>
        </li>

        <li><%= link_to 'Help', help_path %></li>

        <li class="dropdown">
          <%- if current_user %>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= current_user.display_name %><span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to 'My Account', edit_user_registration_path %></li>
              <li><%= link_to('Logout', destroy_user_session_path, :method => :delete) %></li>
            </ul>
          <%- else %>
            <%= link_to 'Login', dashboard_path %>
          <%- end %>
        </li>

      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

{'fraction_non_alphanumeric': 0.1934025452109846, 'fraction_numerical': 0.0006697923643670462, 'mean_word_length': 2.292723263506064, 'pattern_counts': {'":': 0, '<': 210, '<?xml version=': 0, '>': 212, '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': '6064428', 'n_tokens_mistral': 1894, 'n_tokens_neox': 1789, 'n_words': 400}