<commit_before><%
  page_title = @resource.model_name.human(:count => 2)
  title(page_title)
%>

<% content_for :main_grid do %>

  <h2>
    <%= page_title %>
    <small><%= list_actions %></small>
  </h2>

  <%= display_flash_message %>

  <%= render 'index' %>

  <ul class="predefined_filters">
    <li><%= link_to Typus::I18n.t("All"), params.dup.cleanup.merge(:action => 'index') %> (<%= resource.count %>)</li>

    <% scopes.each do |scope| %>
      <li><%= link_to Typus::I18n.t(scope.humanize), :scope => scope %> <%= "(#{@resource.send(scope).count})" %></li>
    <% end %>

    <% predefined_filters.each do |filter, action, scope| %>
      <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %>
      <li><%= link_to Typus::I18n.t(filter), url %> <%= "(#{@resource.send(scope).count})" if scope && @resource.respond_to?(scope) %></li>
    <% end %>

    <% if resource.any? && (formats = resource.typus_options_for(:export).extract_settings).any? %>
      <li>|</li>
      <% formats.each do |format| %>
        <li><%= link_to format.upcase, :format => format %></li>
      <% end %>
    <% end %>
  </ul>

  <% if (build_filters || search) %>
    <div class="filters">
      <%= build_filters %>
      <%= search %>
    </div>
  <% end %>

  <% if @items.any? -%>
    <% if controller.respond_to?(:bulk) %>
      <%= build_actions { build_list(@resource, fields, @items) } %>
    <% else %>
      <%= build_list(@resource, fields, @items) %>
    <% end %>
    <%= paginate(@items, Typus.pagination) %>
  <% else %>
    <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
  <% end %>

<% end %>

<div class="grid_2">
  <%= build_sidebar %>
</div>
<commit_msg>Changed human.pluralize to human(:count => 2) (Thx tvdeyen)<commit_after><%
  page_title = @resource.model_name.human(:count => 2)
  title(page_title)
%>

<% content_for :main_grid do %>

  <h2>
    <%= page_title %>
    <small><%= list_actions %></small>
  </h2>

  <%= display_flash_message %>

  <%= render 'index' %>

  <ul class="predefined_filters">
    <li><%= link_to Typus::I18n.t("All"), params.dup.cleanup.merge(:action => 'index') %> (<%= resource.count %>)</li>

    <% scopes.each do |scope| %>
      <li><%= link_to Typus::I18n.t(scope.humanize), :scope => scope %> <%= "(#{@resource.send(scope).count})" %></li>
    <% end %>

    <% predefined_filters.each do |filter, action, scope| %>
      <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %>
      <li><%= link_to Typus::I18n.t(filter), url %> <%= "(#{@resource.send(scope).count})" if scope && @resource.respond_to?(scope) %></li>
    <% end %>

    <% if resource.any? && (formats = resource.typus_options_for(:export).extract_settings).any? %>
      <li>|</li>
      <% formats.each do |format| %>
        <li><%= link_to format.upcase, :format => format %></li>
      <% end %>
    <% end %>
  </ul>

  <% if (build_filters || search) %>
    <div class="filters">
      <%= build_filters %>
      <%= search %>
    </div>
  <% end %>

  <% if @items.any? -%>
    <% if controller.respond_to?(:bulk) %>
      <%= build_actions { build_list(@resource, fields, @items) } %>
    <% else %>
      <%= build_list(@resource, fields, @items) %>
    <% end %>
    <%= paginate(@items, Typus.pagination) %>
  <% else %>
    <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human(:count => 2)) %></p>
  <% end %>

<% end %>

<div class="grid_2">
  <%= build_sidebar %>
</div>

{'fraction_non_alphanumeric': 0.23629753914988813, 'fraction_numerical': 0.00727069351230425, 'mean_word_length': 3.3044524669073407, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 137, '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': '4810295', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1274, 'n_words': 231}