<commit_before>require 'redis'
require 'redis-namespace'
require 'psych'

def redis
    $redis ||=  Redis::Namespace.new(CONFIG['database']['namespace'], :redis => Redis.new)
end

def redis_seeds(env)
  redis.del(CrawlCommand::REDIS_PREFIX + ":crawling") 
  words = Psych.load_file("config/words_test.yml")["words"]
  words.each {|word| redis.sadd(BagOfWords::Word::REDIS_PREFIX, word)}
end<commit_msg>Redis Seeds are no longer needed<commit_after>require 'redis'
require 'redis-namespace'
require 'psych'

def redis
    $redis ||=  Redis::Namespace.new(CONFIG['database']['namespace'], :redis => Redis.new)
end

 def redis_seeds(env)
#   redis.del(CrawlCommand::REDIS_PREFIX + ":crawling") 
#   # words = Psych.load_file("config/words_test.yml")["words"]
#   # words.each {|word| redis.sadd(BagOfWords::Word::REDIS_PREFIX, word)}
 end
{'fraction_non_alphanumeric': 0.1688622754491018, 'fraction_numerical': 0.0, 'mean_word_length': 6.398230088495575, 'pattern_counts': {'":': 2, '<': 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': '7277192', 'n_tokens_mistral': 315, 'n_tokens_neox': 304, 'n_words': 52}