<commit_before>class Paginator
  include Sinatra::Lennon::Helpers

  def initialize(max_pages, current, url_prefix='')
    @max_pages = max_pages
    @current = (current || 1).to_i
    @url_prefix = conf.blog_url_prefix+url_prefix
  end

  def pages
    links = []
    1.upto @max_pages do |i|
      if i == @current
        links << i
      else
        links << link_to( i, "#{@url_prefix}/page/#{i}")
      end
    end
    links.join(', ') if links.length > 1
  end
  
  def prev(str='Previous')
    if @current > 1
      link_to str, "#{@url_prefix}/page/#{@current-1}"<commit_msg>added .paginator_current_page to current page in pagination<commit_after>class Paginator
  include Sinatra::Lennon::Helpers

  def initialize(max_pages, current, url_prefix='')
    @max_pages = max_pages
    @current = (current || 1).to_i
    @url_prefix = conf.blog_url_prefix+url_prefix
  end

  def pages
    links = []
    1.upto @max_pages do |i|
      if i == @current
        links << "<span class='paginator_current_page'>#{i}</span>"
      else
        links << link_to( i, "#{@url_prefix}/page/#{i}")
      end
    end
    links.join(', ') if links.length > 1
  end
  
  def prev(str='Previous')
    if @current > 1
      link_to str, "#{@url_prefix}/page/#{@current-1}"
{'fraction_non_alphanumeric': 0.14387351778656127, 'fraction_numerical': 0.007905138339920948, 'mean_word_length': 2.8834355828220857, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '6839295', 'n_tokens_mistral': 451, 'n_tokens_neox': 443, 'n_words': 102}