<commit_before>require 'simplecov'
require 'coveralls'

SimpleCov.start do
  add_filter "/vendor/bundle/"
end

Coveralls.wear!

require_relative '../lib/helpers'
require_relative '../lib/generator'
require_relative '../lib/parser'

include DoxyHaml::Helpers

RSpec.configure do |config|
  config.before(:suite) {
    generator = DoxyHaml::Generator.new
    generator.generate "spec/doxygen", "Animal Farm", "spec/src", true
  }
  config.after(:suite) {
    FileUtils.rm_rf "spec/doxygen"
  }
end

def namespace_by_name namespaces, namespace_name
  namespaces.select { |namespace| namespace.name == namespace_name }.first
end
<commit_msg>Fixing spec_helper for spec tests<commit_after>require 'simplecov'
require 'coveralls'

SimpleCov.start do
  add_filter "/vendor/bundle/"
end

Coveralls.wear!

require_relative '../lib/helpers'
require_relative '../lib/generator'
require_relative '../lib/parser'

include DoxyHaml::Helpers

RSpec.configure do |config|
  config.before(:suite) {
    generator = DoxyHaml::Generator.new
    generator.generate "spec/doxygen", "spec/src", true
  }
  config.after(:suite) {
    FileUtils.rm_rf "spec/doxygen"
  }
end

def namespace_by_name namespaces, namespace_name
  namespaces.select { |namespace| namespace.name == namespace_name }.first
end

{'fraction_non_alphanumeric': 0.12275215011727912, 'fraction_numerical': 0.0, 'mean_word_length': 4.739910313901345, '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': '1262058', 'n_tokens_mistral': 417, 'n_tokens_neox': 413, 'n_words': 90}