<commit_before># -*- encoding : utf-8 -*-

require 'rubygems'
require 'minitest/autorun'
$LOAD_PATH.unshift File.expand_path('../../lib')
require 'gitdocs'
require 'mocha/setup'
require 'shell_tools'

Dir.glob(File.expand_path('../../support/**/*.rb', __FILE__)).each do |filename|
  require_relative filename
end

Gitdocs::Initializer.root_dirname = '/tmp/gitdocs'
Gitdocs::Initializer.database     = ':memory:'

require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

GitFactory.working_directory = File.expand_path('../../../tmp/unit', __FILE__)<commit_msg>Better configure code coverage<commit_after># -*- encoding : utf-8 -*-

require 'rubygems'
require 'minitest/autorun'
$LOAD_PATH.unshift File.expand_path('../../lib')
require 'mocha/setup'
require 'shell_tools'
Dir.glob(File.expand_path('../../support/**/*.rb', __FILE__)).each do |filename|
  require_relative filename
end

# Setup code coverage, first ###################################################
require 'codeclimate-test-reporter'
SimpleCov.add_filter 'test'
SimpleCov.start
CodeClimate::TestReporter.start

# Load and configure the real code #############################################
require 'gitdocs'

Gitdocs::Initializer.root_dirname = '/tmp/gitdocs'
Gitdocs::Initializer.database     = ':memory:'

GitFactory.working_directory = File.expand_path('../../../tmp/unit', __FILE__)
{'fraction_non_alphanumeric': 0.22425127830533237, 'fraction_numerical': 0.0014609203798392988, 'mean_word_length': 5.492890995260663, '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': '5491549', 'n_tokens_mistral': 428, 'n_tokens_neox': 417, 'n_words': 79}