<commit_before>module Pagination
  class Collection
    Unimplemented = Class.new(StandardError)

    include Enumerable

    attr :page, :per_page, :total

    # When subclassing `Pagination::Collection`, make sure you call super
    # in order to use `page` and `per_page`.
    def initialize(collection, options = {})
      @page       = Integer(options[:page] || 1)
      @per_page   = Integer(options[:per_page] || Pagination.per_page)
    end

    # When there's a valid previous page, returns that number
    #
    # Otherwise returns nil
    #
    def prev_page
      page - 1  if pages.include?(page - 1)
    end

    # When there's a valid next page, returns that number
    #<commit_msg>changed the multi-line attr to single line attrs instead<commit_after>module Pagination
  class Collection
    Unimplemented = Class.new(StandardError)

    include Enumerable

    attr :page
    attr :per_page
    attr :total

    # When subclassing `Pagination::Collection`, make sure you call super
    # in order to use `page` and `per_page`.
    def initialize(collection, options = {})
      @page       = Integer(options[:page] || 1)
      @per_page   = Integer(options[:per_page] || Pagination.per_page)
    end

    # When there's a valid previous page, returns that number
    #
    # Otherwise returns nil
    #
    def prev_page
      page - 1  if pages.include?(page - 1)
    end

    # When there's a valid next page, returns that number
    #
{'fraction_non_alphanumeric': 0.088659793814433, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 2.7916666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5974433', 'n_tokens_mistral': 439, 'n_tokens_neox': 417, 'n_words': 142}