<commit_before># pager_spec.rb - specs for pager

require_relative 'spec_helper'

describe Pager do
  let(:pager) { Pager.new }

  describe 'count_pages' do
    let(:codes0) { [] }
    let(:codes2) { [[:page, nil], [:page, nil]] }
    let(:counter0) { pager.count_pages codes0 }
    subject { pager.count_pages codes2 }

     specify { counter0.must_equal 0 }
    specify { subject.must_equal 2 }
  end

end<commit_msg>\'complex test for count_pages working\'<commit_after># pager_spec.rb - specs for pager

require_relative 'spec_helper'

describe Pager do
  let(:pager) { Pager.new }

  describe 'count_pages' do
    let(:codes0) { [] }
    let(:codes2) { [[:page, nil], [:page, nil]] }
    let(:counter0) { pager.count_pages codes0 }
    subject { pager.count_pages codes2 }

     specify { counter0.must_equal 0 }
    specify { subject.must_equal 2 }
  end

  describe 'complex count_pages' do
    let(:codes) { [[:para, ''], [:page, nil], [:code, ''], [:page, nil]] }  
    subject { pager.count_pages codes }

    specify { subject.must_equal 2 }
  end
end
{'fraction_non_alphanumeric': 0.14124293785310735, 'fraction_numerical': 0.0160075329566855, 'mean_word_length': 3.4291666666666667, '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': '4771094', 'n_tokens_mistral': 388, 'n_tokens_neox': 377, 'n_words': 91}