<commit_before><% if ldap_enabled? %>
  <fieldset>
    <ul class='nav nav-pills nav-stacked'>
      <%= content_tag :li, class: (params[:provider].blank? ? 'active': '') do %>
        <%= link_to users_url do %>
          <span class='badge pull-right'><%= User.count %></span>
          <%= t '.provider.all' %>
        <% end %>
      <% end %>
      <%= content_tag :li, class: (params[:provider] == 'local' ? 'active': '') do %>
        <%= link_to users_url(params.merge(provider: 'local')) do %>
          <span class='badge pull-right'><%= User.where(provider: nil).count %></span>
          <%= t '.provider.local' %>
        <% end %>
      <% end %>
      <%= content_tag :li, class: (params[:provider] == 'ldap' ? 'active': '') do %>
        <%= link_to users_url(params.merge(provider: 'ldap')) do %>
          <span class='badge pull-right'><%= User.where(provider: :ldap).count %></span>
          <%= t '.provider.ldap' %>
        <% end %>
      <% end %>
    </ul>
  </fieldset>
<% end %>

<fieldset>
  <legend><%= t '.activity.legend' %></legend>
  <ul class='nav nav-pills nav-stacked'>
  <%= content_tag :li, class: (params[:activity] == 'no_login' ? 'active': '') do %>
    <%= link_to users_url(params.merge(activity: 'no_login')) do %>
      <%= t '.activity.no_login' %>
      <span class='badge pull-right'><%= User.where(sign_in_count: 0).count %></span>
    <% end %>
  <% end %>
  </ul>
</fieldset><commit_msg>fix user filters<commit_after><% if ldap_enabled? %>
  <fieldset>
    <ul class='nav nav-pills nav-stacked'>
      <%= content_tag :li, class: (params[:provider].blank? ? 'active': '') do %>
        <%= link_to users_url(params.merge(provider: nil)) do %>
          <span class='badge pull-right'><%= User.count %></span>
          <%= t '.provider.all' %>
        <% end %>
      <% end %>
      <%= content_tag :li, class: (params[:provider] == 'local' ? 'active': '') do %>
        <%= link_to users_url(params.merge(provider: 'local')) do %>
          <span class='badge pull-right'><%= User.where(provider: nil).count %></span>
          <%= t '.provider.local' %>
        <% end %>
      <% end %>
      <%= content_tag :li, class: (params[:provider] == 'ldap' ? 'active': '') do %>
        <%= link_to users_url(params.merge(provider: 'ldap')) do %>
          <span class='badge pull-right'><%= User.where(provider: :ldap).count %></span>
          <%= t '.provider.ldap' %>
        <% end %>
      <% end %>
    </ul>
  </fieldset>
<% end %>

<fieldset>
  <legend><%= t '.activity.legend' %></legend>
  <ul class='nav nav-pills nav-stacked'>
  <%= content_tag :li, class: (params[:activity] == 'no_login' ? 'active': '') do %>
    <%= link_to users_url(params.merge(activity: 'no_login')) do %>
      <%= t '.activity.no_login' %>
      <span class='badge pull-right'><%= User.where(sign_in_count: 0).count %></span>
    <% end %>
  <% end %>
  </ul>
</fieldset>
{'fraction_non_alphanumeric': 0.2297111416781293, 'fraction_numerical': 0.000687757909215956, 'mean_word_length': 2.7926988265971318, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '2266083', 'n_tokens_mistral': 1095, 'n_tokens_neox': 990, 'n_words': 208}