<commit_before>
# TODO move vars to config file

RAILS_ENV    = ENV['RAILS_ENV']  = 'production'
RAILS_ROOT   = ENV['RAILS_ROOT'] = '/var/www/bixby/current'

RVM_WRAPPER  = File.join(RAILS_ROOT, "config", "deploy", "rvm_wrapper.sh")

# gets passed to RVM_WRAPPER SCRIPT
conf = YAML.load_file(File.join(RAILS_ROOT, "config", "bixby.yml"))[RAILS_ENV]
ENV["USE_RUBY_VERSION"] = conf["ruby"]
ENV["USE_RVM"]          = conf["rvm"]

USER  = conf["user"]
GROUP = conf["group"]

%w{unicorn sidekiq}.each do |file|
  God.load File.join(RAILS_ROOT, "config", "deploy", "god", "#{file}.god")
end<commit_msg>prefer existing ENV vars<commit_after>
RAILS_ENV    = (ENV['RAILS_ENV']  ||= 'production')
RAILS_ROOT   = (ENV['RAILS_ROOT'] ||= '/var/www/bixby/current')

RVM_WRAPPER  = File.join(RAILS_ROOT, "config", "deploy", "rvm_wrapper.sh")

# gets passed to RVM_WRAPPER SCRIPT
conf = YAML.load_file(File.join(RAILS_ROOT, "config", "bixby.yml"))[RAILS_ENV]
ENV["USE_RUBY_VERSION"] = conf["ruby"]
ENV["USE_RVM"]          = conf["rvm"]

USER  = conf["user"]
GROUP = conf["group"]

%w{unicorn sidekiq}.each do |file|
  God.load File.join(RAILS_ROOT, "config", "deploy", "god", "#{file}.god")
end
{'fraction_non_alphanumeric': 0.19100169779286927, 'fraction_numerical': 0.0, 'mean_word_length': 5.407608695652174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5250527', 'n_tokens_mistral': 509, 'n_tokens_neox': 492, 'n_words': 88}