<commit_before>env = YAML.load_file("#{Rails.root}/config/env_variables.yml")[Rails.env] unless Rails.env.production?
TWITTER_KEY = ENV['TWITTER_KEY'] || env['twitter']['key']
TWITTER_SECRET = ENV['TWITTER_SECRET'] || env['twitter']['secret']

FACEBOOK_KEY = ENV['FACEBOOK_KEY'] || env['facebook']['key'] 
FACEBOOK_SECRET = ENV['FACEBOOK_SECRET'] || env['facebook']['secret']

GOOGLE_KEY = ENV['GOOGLE_KEY'] || env['google_maps']['key']
<commit_msg>Fixes initializer deployment madness!<commit_after>unless Rails.env.production?
  env = YAML.load_file("#{Rails.root}/config/env_variables.yml")[Rails.env]
  if env
    TWITTER_KEY       = env['twitter']['key']
    TWITTER_SECRET    = env['twitter']['secret']
    FACEBOOK_KEY      = env['facebook']['key']
    FACEBOOK_SECRET   = env['facebook']['secret']
    GOOGLE_KEY        = env['google_maps']['key']
  end
end

TWITTER_KEY       ||= ENV['TWITTER_KEY']
TWITTER_SECRET    ||= ENV['TWITTER_SECRET']
FACEBOOK_KEY      ||= ENV['FACEBOOK_KEY']
FACEBOOK_SECRET   ||= ENV['FACEBOOK_SECRET']
GOOGLE_KEY        ||= ENV['GOOGLE_KEY']

{'fraction_non_alphanumeric': 0.18535681186283595, 'fraction_numerical': 0.0, 'mean_word_length': 5.545454545454546, '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': '7470670', 'n_tokens_mistral': 436, 'n_tokens_neox': 410, 'n_words': 50}