<commit_before>redis_conf = YAML::load_file(Rails.root.join('config/redis.yml'))[Rails.env]['redis']

Ohm.connect(
  :host => redis_conf['host'],
  :port => redis_conf['port'],
  :db => redis_conf['database']
)<commit_msg>let redis::aid use the correct redis<commit_after>redis_conf = YAML::load_file(Rails.root.join('config/redis.yml'))[Rails.env]['redis']

connection_hash = {
  :host => redis_conf['host'],
  :port => redis_conf['port'],
  :db => redis_conf['database']
}

Ohm.connect(connection_hash)

Redis::Aid.redis = Redis.new(connection_hash)
{'fraction_non_alphanumeric': 0.1996370235934664, 'fraction_numerical': 0.0, 'mean_word_length': 7.117647058823529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '648236', 'n_tokens_mistral': 221, 'n_tokens_neox': 215, 'n_words': 26}