<commit_before>require 'wonderdog'
require 'wukong/spec_helpers'

RSpec.configure do |config|

  config.before(:each) do
    Wukong::Log.level = Log4r::OFF
    @orig_reg = Wukong.registry.show
  end

  config.after(:each) do
    Wukong.registry.clear!
    Wukong.registry.merge!(@orig_reg)
  end

  include Wukong::SpecHelpers
  
  def root
    @root ||= Pathname.new(File.expand_path('../..', __FILE__))
  end

  def hadoop_runner *args, &block
    runner(Wukong::Hadoop::HadoopRunner, *args) do
      stub!(:execute_command!)
      instance_eval(&block) if block_given?
    end
  end
  
end<commit_msg>tweak to specs<commit_after>require 'wonderdog'
require 'wukong/spec_helpers'

RSpec.configure do |config|

  config.before(:each) do
    Wukong::Log.level = Log4r::OFF
    @orig_reg = Wukong.registry.show
  end

  config.after(:each) do
    Wukong.registry.clear!
    Wukong.registry.merge!(@orig_reg)
  end

  include Wukong::SpecHelpers
  
  def root
    @root ||= Pathname.new(File.expand_path('../..', __FILE__))
  end

  def hadoop_runner *args, &block
    runner(Wukong::Hadoop::HadoopRunner, 'wu-hadoop', *args) do
      stub!(:execute_command!)
      instance_eval(&block) if block_given?
    end
  end
  
end
{'fraction_non_alphanumeric': 0.1309328968903437, 'fraction_numerical': 0.0016366612111292963, 'mean_word_length': 3.6150943396226416, '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': '7277909', 'n_tokens_mistral': 461, 'n_tokens_neox': 450, 'n_words': 84}