<commit_before><%# The container tag
  - available local variables
    current_page:  a page object for the currently displayed page
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
    paginator:     the paginator that renders the pagination tags inside
-%>
<%= paginator.render do -%>
  <nav class="pagination">
    <% if params[:page_size] == '1000000' %>
      <%= link_to 'show pages', params.merge(page_size: 5, page: 1, format: :js), remote: remote %>
    <% else %>
      <%= link_to 'Show all', params.merge(page_size: '1000000', page: 1, format: :js), remote: remote %>
    <% end %>

    <%= first_page_tag unless current_page.first? %>
    <%= prev_page_tag unless current_page.first? %>
    <% each_page do |page| -%>
      <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
        <%= page_tag page %>
      <% elsif !page.was_truncated? -%>
        <%= gap_tag %>
      <% end -%>
    <% end -%>
    <%= next_page_tag unless current_page.last? %>
    <%= last_page_tag unless current_page.last? %>
  </nav>
<% end -%><commit_msg>Sorting pages by modified descending in my datasets, also adding "show pages" to see paged view again.<commit_after><%# The container tag
  - available local variables
    current_page:  a page object for the currently displayed page
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
    paginator:     the paginator that renders the pagination tags inside
-%>
<% if per_page == 1000000 %>
  <%= link_to 'Show pages', params.merge(page_size: 5, page: 1, format: :js), remote: remote %>
<% end %>
<%= paginator.render do -%>
  <nav class="pagination">
    <%= link_to 'Show all', params.merge(page_size: '1000000', page: 1, format: :js), remote: remote %>

    <%= first_page_tag unless current_page.first? %>
    <%= prev_page_tag unless current_page.first? %>
    <% each_page do |page| -%>
      <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
        <%= page_tag page %>
      <% elsif !page.was_truncated? -%>
        <%= gap_tag %>
      <% end -%>
    <% end -%>
    <%= next_page_tag unless current_page.last? %>
    <%= last_page_tag unless current_page.last? %>
  </nav>
<% end -%>
{'fraction_non_alphanumeric': 0.1463519313304721, 'fraction_numerical': 0.014592274678111588, 'mean_word_length': 3.053913043478261, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '3383950', 'n_tokens_mistral': 837, 'n_tokens_neox': 745, 'n_words': 213}