<commit_before>require File.expand_path('spec_helper', File.dirname(__FILE__))

describe Herodotus::Collector do
  before do
    FileUtils.mkdir_p '/tmp/herodotus'
    FileUtils.cd '/tmp/herodotus' do
      `git init`
    end
  end
  after  { FileUtils.rm_rf   '/tmp/herodotus' }

  def collector
    @collector ||= Herodotus::Collector.new('/tmp/herodotus')
  end

  it 'starts off with a default git, changes and a since_ref of nil' do
    collector.git.wont_be_nil
    collector.since_ref.must_be_nil
    collector.changes.wont_be_nil
  end
<commit_msg>Whitespace<commit_after>require File.expand_path('spec_helper', File.dirname(__FILE__))

describe Herodotus::Collector do
  before do
    FileUtils.mkdir_p '/tmp/herodotus'
    FileUtils.cd '/tmp/herodotus' do
      `git init`
    end
  end
  after { FileUtils.rm_rf '/tmp/herodotus' }

  def collector
    @collector ||= Herodotus::Collector.new('/tmp/herodotus')
  end

  it 'starts off with a default git, changes and a since_ref of nil' do
    collector.git.wont_be_nil
    collector.since_ref.must_be_nil
    collector.changes.wont_be_nil
  end

{'fraction_non_alphanumeric': 0.09945750452079566, 'fraction_numerical': 0.0, 'mean_word_length': 3.6512605042016806, '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': '1269819', 'n_tokens_mistral': 403, 'n_tokens_neox': 392, 'n_words': 86}