<commit_before>module Stumpwise
  module Liquid
    module Tags
      
      class Pagination < ::Liquid::Tag
        include ActionView::Helpers
        
        def initialize(name, markup, tokens)
          super
        end
        
        def render(context)
          if context['page']
            prev_content = link_to_if(context['previous_page'], "&laquo; Previous", prev_link(context), :class => "previous") do
              content_tag :span, "&laquo; Previous", :class => "previous"
            end
            next_content = link_to_if(context['next_page'], "Next &raquo;", next_link(context), :class => "next") do
              content_tag :span, "Next &raquo;", :class => "next"
            end
            content_tag :div, prev_content + ' | ' + next_content, :class => 'pagination'
          else
            ''
          end
        end<commit_msg>Tweak liquid tag pagination markup<commit_after>module Stumpwise
  module Liquid
    module Tags
      
      class Pagination < ::Liquid::Tag
        include ActionView::Helpers
        
        def initialize(name, markup, tokens)
          super
        end
        
        def render(context)
          if context['page']
            prev_content = link_to_if(context['previous_page'], "&laquo; Previous", prev_link(context), :class => "prev_page") do
              content_tag :span, "&laquo; Previous", :class => "prev_page disabled"
            end
            next_content = link_to_if(context['next_page'], "Next &raquo;", next_link(context), :class => "next_page") do
              content_tag :span, "Next &raquo;", :class => "next_page disabled"
            end
            content_tag :div, prev_content + ' | ' + next_content, :class => 'pagination'
          else
            ''
          end
        end
{'fraction_non_alphanumeric': 0.11291224147568474, 'fraction_numerical': 0.0, 'mean_word_length': 2.049403747870528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1545690', 'n_tokens_mistral': 518, 'n_tokens_neox': 498, 'n_words': 125}