<commit_before><%
  page_title = @resource.model_name.human.pluralize
  admin_title(page_title)
%>

<% content_for :main_grid do %>

  <%= render 'index' %>

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

  <%= admin_display_flash_message %>

  <%= render 'index' %>

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

    <% @resource.typus_scopes.each do |scope| %>
      <li>
        <%= link_to Typus::I18n.t(scope.humanize), :action => 'index', :scope => scope %>
        <%= "(#{@resource.send(scope).count})" if @resource.typus_options_for(:counters)  %>
      </li>
    <% end %>

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

  <% if (build_filters || admin_search) %>
    <div class="filters" style="display: none;">
      <%= build_filters %>
      <%= admin_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 %>
    <%= admin_paginate(@items, Typus.pagination) %>
  <% else %>
    <div class="alert-message block-message info">
      <p><%= Typus::I18n.t("No entries found.") %></p>
    </div>
  <% end %>

<% end %>

<div class="sidebar">
  <div class="well">
    <%= build_sidebar %>
  </div>
</div>

<div class="content">
  <%= yield :main_grid %>
</div>
<commit_msg>Informative message should not be a block-message.<commit_after><%
  page_title = @resource.model_name.human.pluralize
  admin_title(page_title)
%>

<% content_for :main_grid do %>

  <%= render 'index' %>

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

  <%= admin_display_flash_message %>

  <%= render 'index' %>

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

    <% @resource.typus_scopes.each do |scope| %>
      <li>
        <%= link_to Typus::I18n.t(scope.humanize), :action => 'index', :scope => scope %>
        <%= "(#{@resource.send(scope).count})" if @resource.typus_options_for(:counters)  %>
      </li>
    <% end %>

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

  <% if (build_filters || admin_search) %>
    <div class="filters" style="display: none;">
      <%= build_filters %>
      <%= admin_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 %>
    <%= admin_paginate(@items, Typus.pagination) %>
  <% else %>
    <div class="alert-message info">
      <p><%= Typus::I18n.t("No entries found.") %></p>
    </div>
  <% end %>

<% end %>

<div class="sidebar">
  <div class="well">
    <%= build_sidebar %>
  </div>
</div>

<div class="content">
  <%= yield :main_grid %>
</div>

{'fraction_non_alphanumeric': 0.21834360027378508, 'fraction_numerical': 0.004563084645220169, 'mean_word_length': 3.078139534883721, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 149, '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': '2387406', 'n_tokens_mistral': 1720, 'n_tokens_neox': 1551, 'n_words': 271}