<commit_before># ---- requirements
require 'rubygems'
require 'spec'
require 'mocha'

$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))

# ---- rspec
Spec::Runner.configure do |config|
  config.mock_with :mocha
end


# ---- bugfix
#`exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)
#can be solved with require test/unit but this will result in extra test-output
module Test
  module Unit
    def self.run?
      true
    end
  end
end<commit_msg>spec helper cleanup<commit_after># ---- requirements
require 'mocha'
$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))

# ---- rspec
Spec::Runner.configure do |config|
  config.mock_with :mocha
end
{'fraction_non_alphanumeric': 0.14553314121037464, 'fraction_numerical': 0.0, 'mean_word_length': 4.036231884057971, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2715197', 'n_tokens_mistral': 232, 'n_tokens_neox': 221, 'n_words': 64}