<commit_before>$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'lawnchair'
require 'spec'
require 'spec/autorun'
require 'redis'

Spec::Runner.configure do |config|
  config.before(:all)   { Lawnchair.connectdb(Redis.new(:db => 11)) }
  config.before(:each)  do 
    Lawnchair.flushdb
    abstract_store = Lawnchair::StorageEngine::Abstract
    abstract_store.cache_container.keys.each {|k| abstract_store.cache_container.delete(k)}
    
    in_process = Lawnchair::StorageEngine::InProcess
    in_process.cache_container.keys.each {|k| in_process.cache_container.delete(k)}
  end
end
<commit_msg>remove redis from spec_helper<commit_after>$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'lawnchair'
require 'spec'
require 'spec/autorun'

Spec::Runner.configure do |config|
  config.before(:all)   { Lawnchair.connectdb(Redis.new(:db => 11)) }
  config.before(:each)  do 
    Lawnchair.flushdb
    abstract_store = Lawnchair::StorageEngine::Abstract
    abstract_store.cache_container.keys.each {|k| abstract_store.cache_container.delete(k)}
    
    in_process = Lawnchair::StorageEngine::InProcess
    in_process.cache_container.keys.each {|k| in_process.cache_container.delete(k)}
  end
end

{'fraction_non_alphanumeric': 0.13848396501457727, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 5.797029702970297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3994973', 'n_tokens_mistral': 473, 'n_tokens_neox': 466, 'n_words': 69}