<commit_before>
require_relative '../test_coverage'
require_relative '../all'
require 'test/unit'

class ModelTestBase < Test::Unit::TestCase

  def root_path
    root_dir = File.expand_path('../..', File.dirname(__FILE__))
    root_dir + '/test/cyberdojo/'
  end

  def setup
    external_doubles = {
      :disk   => @disk = SpyDisk.new,
      :git    => @git  = SpyGit.new,
      :runner => StubTestRunner.new
    }
    @dojo = Dojo.new(root_path,external_doubles)
    @max_duration = 15
  end

  def teardown
    @disk.teardown
  end

  def make_kata
    visible_files = {
        'wibble.hpp' => '#include <iostream>',
        'wibble.cpp' => '#include "wibble.hpp"'<commit_msg>refactoring<commit_after>
require_relative '../test_coverage'
require_relative '../all'
require 'test/unit'

class ModelTestBase < Test::Unit::TestCase

  def root_path
    root_dir = File.expand_path('../..', File.dirname(__FILE__)) + '/'
  end

  def setup
    external_doubles = {
      :disk   => @disk = SpyDisk.new,
      :git    => @git  = SpyGit.new,
      :runner => StubTestRunner.new
    }
    @dojo = Dojo.new(root_path,external_doubles)
    @max_duration = 15
  end

  def teardown
    @disk.teardown
  end

  def make_kata
    visible_files = {
        'wibble.hpp' => '#include <iostream>',
        'wibble.cpp' => '#include "wibble.hpp"'
{'fraction_non_alphanumeric': 0.1437125748502994, 'fraction_numerical': 0.0029940119760479044, 'mean_word_length': 2.7982954545454546, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '5697076', 'n_tokens_mistral': 498, 'n_tokens_neox': 475, 'n_words': 91}