<commit_before>require 'debugger'
require 'cieloz'

require 'minitest/autorun'
# require 'turn/autorun'

require 'vcr'
require 'erb'

VCR.configure do |c|
  c.cassette_library_dir = 'test/fixtures/vcr_cassettes'
  c.hook_into :webmock
  c.debug_logger = File.open('test/tmp/vcr.log', 'w')
end

class MiniTest::Spec
  class << self
    alias :_create :create

    def create name, desc
      cls = _create name, desc
      begin
        c = eval name
        cls.subject {
          if c.is_a? Class then c.new elsif c.is_a? Module then c end
        }
      rescue
      end
      cls<commit_msg>Comment out vcr debug_logger - breaks on travis<commit_after>require 'debugger'
require 'cieloz'

require 'minitest/autorun'
# require 'turn/autorun'

require 'vcr'
require 'erb'

VCR.configure do |c|
  c.cassette_library_dir = 'test/fixtures/vcr_cassettes'
  c.hook_into :webmock
  # c.debug_logger = File.open('test/tmp/vcr.log', 'w')
end

class MiniTest::Spec
  class << self
    alias :_create :create

    def create name, desc
      cls = _create name, desc
      begin
        c = eval name
        cls.subject {
          if c.is_a? Class then c.new elsif c.is_a? Module then c end
        }
      rescue
      end
      cls
{'fraction_non_alphanumeric': 0.0993485342019544, 'fraction_numerical': 0.0, 'mean_word_length': 2.614705882352941, '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': '6683807', 'n_tokens_mistral': 441, 'n_tokens_neox': 448, 'n_words': 119}