<commit_before>require 'redis'

Recommendable.configure do |config|
  # Recommendable's connection to Redis
  config.redis = Redis.new(:host => 'localhost', :port => 6379, :db => 0)
<commit_msg>Read redis host config from ENV<commit_after>require 'redis'

Recommendable.configure do |config|
  # Recommendable's connection to Redis
  redis_host = ENV['REDIS_HOST'] || 'localhost'
  config.redis = Redis.new(:host => redis_host, :port => 6379, :db => 0)

{'fraction_non_alphanumeric': 0.1390728476821192, 'fraction_numerical': 0.02207505518763797, 'mean_word_length': 5.394366197183099, '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': '5557735', 'n_tokens_mistral': 171, 'n_tokens_neox': 154, 'n_words': 40}