<commit_before>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Shibkit::MetaMeta do
  
  describe "#reset" do<commit_msg>Changed logging for RSpec tests (issue 3)<commit_after>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Shibkit::MetaMeta do
  before(:all) do
    Shibkit::MetaMeta.config.logger= Logger.new("rspec.log")
    Shibkit::MetaMeta.config.logger.level = Logger::DEBUG
    Shibkit::MetaMeta.config.logger.datetime_format = "%Y-%m-%d %H:%M:%S"
    Shibkit::MetaMeta.config.logger.formatter       = proc { |severity, datetime, progname, msg| "#{datetime}: #{severity} #{msg}\n" }
    Shibkit::MetaMeta.config.logger.progname        = "MetaMeta-RSpec"
  end

  before(:each) do |test|
    Shibkit::MetaMeta.config.logger.info "Running [#{test.example.metadata[:full_description]}]"
  end
 after(:each) do |test|
    Shibkit::MetaMeta.config.logger.info "Finihed [#{test.example.metadata[:full_description]}]"
  end
  
  describe "#reset" do
{'fraction_non_alphanumeric': 0.15606361829025844, 'fraction_numerical': 0.0009940357852882703, 'mean_word_length': 5.029940119760479, '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': '623959', 'n_tokens_mistral': 345, 'n_tokens_neox': 332, 'n_words': 58}