<commit_before><div class="pagination">

  <% if @items.prev? %>
    <%= link_to "&laquo; Previous", :params => params.merge(:page => @items.prev.number) %>
  <% else %>
    <span class="disabled">&laquo; Previous</span>
  <% end %>

  <% last_page = 0 -%>

  <% windowed_pagination_links(@pager, 
                               :window_size => 1, 
                               :link_to_current_page => true, 
                               :always_show_anchors => true) do |n| -%>
    <% if @items.number == n -%>
      <span class="current"><%= n %></span>
    <% else -%>
      <%= "..." if last_page + 1 < n %>
      <%= link_to n, :page => n %>
    <% end -%>
    <% last_page = n -%>

  <% end -%><commit_msg>Fixed bug on pagination filtering<commit_after><div class="pagination">

  <% if @items.prev? %>
    <%= link_to "&laquo; Previous", :params => params.merge(:page => @items.prev.number) %>
  <% else %>
    <span class="disabled">&laquo; Previous</span>
  <% end %>

  <% last_page = 0 -%>

  <% windowed_pagination_links(@pager, 
                               :window_size => 1, 
                               :link_to_current_page => true, 
                               :always_show_anchors => true) do |n| -%>
    <% if @items.number == n -%>
      <span class="current"><%= n %></span>
    <% else -%>
      <%= "..." if last_page + 1 < n %>
      <%= link_to n, :params => params.merge(:page => n) %>
    <% end -%>
    <% last_page = n -%>

  <% end -%>
{'fraction_non_alphanumeric': 0.2028397565922921, 'fraction_numerical': 0.004056795131845842, 'mean_word_length': 1.8682170542635659, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 54, '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': '7373835', 'n_tokens_mistral': 555, 'n_tokens_neox': 485, 'n_words': 97}