<commit_before>require_relative 'spec_helper'

require 'wright/logger'
require 'wright/config'

FORMATS = {
  info:  :none,
  warn:  :yellow,
  error: :red,
  fatal: :red
}

describe Wright::Logger do
  before(:each) do
    @config = Wright::Config.dump
    Wright::Config.clear
    @message = 'Soylent Green is STILL made out of people!'
  end

  after(:each) do
    Wright::Config.restore(@config)
  end

  it 'should enable colors on TTYs' do
    Wright::Logger.new
    Wright::Config[:log][:colorize].must_equal true
  end
<commit_msg>Test debug log messages in specs<commit_after>require_relative 'spec_helper'

require 'wright/logger'
require 'wright/config'

FORMATS = {
  debug: :none,
  info:  :none,
  warn:  :yellow,
  error: :red,
  fatal: :red
}

describe Wright::Logger do
  before(:each) do
    @config = Wright::Config.dump
    Wright::Config.clear
    @message = 'Soylent Green is STILL made out of people!'
  end

  after(:each) do
    Wright::Config.restore(@config)
  end

  it 'should enable colors on TTYs' do
    Wright::Logger.new
    Wright::Config[:log][:colorize].must_equal true
  end

{'fraction_non_alphanumeric': 0.12129380053908356, 'fraction_numerical': 0.0, 'mean_word_length': 3.8017241379310347, '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': '2599018', 'n_tokens_mistral': 384, 'n_tokens_neox': 380, 'n_words': 103}