<commit_before><div class="topbar">
  <div class="fill">
    <div class="container">        
      <a class="brand" href="/"><%= image_tag('factlink-logo-inverse.png', :height => 20) %></a>
      
      <ul class="nav">
        <li class="search">
          <%= render "facts/fact_search" %>
        </li>          
      </ul>

      <ul class="nav secondary-nav">
        <li>
          <a class="show-modal" href="#" onclick="void(0);">Take the tour</a>
        </li>
        <% if current_user %>
        
          <% if current_user.admin? %>
          <li class="dropdown" data-dropdown="dropdown">
            <a class="dropdown-toggle">Admin</a>
            <ul class="dropdown-menu">
              <li><%= link_to("View Users", admin_users_path) %></li>
              <li><%= link_to("Add User", new_admin_user_path) %></li>
            </ul>
          </li>        
          <% end %>
        
          <li class="dropdown" data-dropdown="dropdown">
            <a class="dropdown-toggle"><%= current_user.username %></a>
            <ul class="dropdown-menu">
              <li><%= link_to("Sign out", destroy_user_session_path) %></li><commit_msg>use cancan to check abilities<commit_after><div class="topbar">
  <div class="fill">
    <div class="container">        
      <a class="brand" href="/"><%= image_tag('factlink-logo-inverse.png', :height => 20) %></a>
      
      <ul class="nav">
        <li class="search">
          <%= render "facts/fact_search" %>
        </li>          
      </ul>

      <ul class="nav secondary-nav">
        <li>
          <a class="show-modal" href="#" onclick="void(0);">Take the tour</a>
        </li>
        <% if current_user %>
        
          <% if can? :manage, User %>
          <li class="dropdown" data-dropdown="dropdown">
            <a class="dropdown-toggle">Admin</a>
            <ul class="dropdown-menu">
              <li><%= link_to("View Users", admin_users_path) %></li>
              <li><%= link_to("Add User", new_admin_user_path) %></li>
            </ul>
          </li>        
          <% end %>
        
          <li class="dropdown" data-dropdown="dropdown">
            <a class="dropdown-toggle"><%= current_user.username %></a>
            <ul class="dropdown-menu">
              <li><%= link_to("Sign out", destroy_user_session_path) %></li>
{'fraction_non_alphanumeric': 0.1876870457460453, 'fraction_numerical': 0.0025651988029072254, 'mean_word_length': 1.9104477611940298, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 83, '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': '4106489', 'n_tokens_mistral': 738, 'n_tokens_neox': 700, 'n_words': 145}