<commit_before><nav class="navbar navbar-default">
  <div class="container">
    <div class="row">
      <div class="col-xs-8 col-sm-8 col-md-8">
        <div class="navbar-header">
          <a class="navbar-brand" href="/">RubyTea</a>
          <%= link_to "活动", events_path, class: "navbar-brand" %>
        </div>
      </div>

      <div class="col-xs-4 col-sm-4 col-md-4">
        <!-- 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 user_signed_in? %>
              <li><%= link_to current_user.login, current_user %></li>
              <li><%= link_to "后台", admin_dashboard_path if current_user.admin? %></li>
              <li><%= link_to "退出", destroy_user_session_path, method: "delete" %></li>
            <% else %>
              <li><%= link_to "登录", user_session_path %></li>
              <li><%= link_to "注册", new_user_registration_path %></li>
            <% end %>
          </ul>
        </div><!-- /.navbar-collapse -->
    </div>
  </div><!-- /.container -->
</nav><commit_msg>responsive navbar<commit_after><nav class="navbar navbar-default">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">RubyTea</a>
      <%= link_to "活动", events_path, class: "navbar-brand" %>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        <% if user_signed_in? %>
          <li><%= link_to current_user.login, current_user %></li>
          <li><%= link_to "后台", admin_dashboard_path if current_user.admin? %></li>
          <li><%= link_to "退出", destroy_user_session_path, method: "delete" %></li>
        <% else %>
          <li><%= link_to "登录", user_session_path %></li>
          <li><%= link_to "注册", new_user_registration_path %></li>
        <% end %>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container -->
</nav>
{'fraction_non_alphanumeric': 0.19550102249488752, 'fraction_numerical': 0.0028629856850715747, 'mean_word_length': 2.5346820809248554, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 86, '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': '5814999', 'n_tokens_mistral': 838, 'n_tokens_neox': 800, 'n_words': 176}