<commit_before>
<% if Session.search.products_size > SearchProduct.per_page %>
  <% products = Session.search.paginated_products %>
  <div class='pagination-container<%= " bottom" if local_assigns[:bottom] %>'><span class='pagi-info'><%= page_entries_info(products) %></span>
    <%= raw "<b>#{t('products.page')}:</b>" unless Session.futureshop? %>
    <%= will_paginate(products, {:previous_label=>image_tag('prev-page.gif'), :next_label => (Session.futureshop? ? "Next »" : image_tag('next-page.gif')), :page_links=>true, :outer_window => -4})%>
    <%= link_to t("products.backtotop"), "#", id: "back-to-top-bottom" if (local_assigns[:bottom] && !Session.futureshop?) %>
  </div>

<% else %>
  <div class='pagination-container<%= " bottom" if local_assigns[:bottom] %>'>
      <%= link_to t("products.backtotop"), "#", id: "back-to-top-bottom" if (local_assigns[:bottom] && !Session.futureshop?) %>
  </div>
<% end %>
<commit_msg>Pagination fix for futureshop layout<commit_after>
<% if Session.search.products_size > SearchProduct.per_page %>
  <% products = Session.search.paginated_products %>
  <div class='pagination-container<%= " bottom" if local_assigns[:bottom] %>'><span class='pagi-info'><%= page_entries_info(products) %></span>
    <%= raw "<b>#{t('products.page')}:</b>" unless Session.futureshop? %>
    <%= will_paginate(products, {:previous_label => (Session.futureshop? ? "« Previous" : image_tag('prev-page.gif')), :next_label => (Session.futureshop? ? "Next »" : image_tag('next-page.gif')), :page_links=>true, :outer_window => -4})%>
    <%= link_to t("products.backtotop"), "#", id: "back-to-top-bottom" if (local_assigns[:bottom] && !Session.futureshop?) %>
  </div>

<% else %>
  <div class='pagination-container<%= " bottom" if local_assigns[:bottom] %>'>
      <%= link_to t("products.backtotop"), "#", id: "back-to-top-bottom" if (local_assigns[:bottom] && !Session.futureshop?) %>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.22412008281573498, 'fraction_numerical': 0.0010351966873706005, 'mean_word_length': 5.642611683848798, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 51, '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': '5092826', 'n_tokens_mistral': 720, 'n_tokens_neox': 680, 'n_words': 112}