<commit_before>class ConfigurationManager
  # Expects the environment to load.
  # Second argument is path to a YAML file (defaults to RAILS_ROOT/config/configuration_manager.yml).
  #
  def self.new_manager(environment=ENV['RAILS_ENV'], yaml_file=File.join(RAILS_ROOT,"/config/configuration_manager.yml"))
    yaml_file = File.expand_path(yaml_file)
    if File.exist?(yaml_file)
      ConfigurationManagerHash.new_from_hash(YAML.load(ERB.new(File.read(yaml_file)).result)[environment])
    else
      ConfigurationManagerHash.new
    end
  end
end<commit_msg>It should use RAILS_ENV instead of ENV['RAILS_ENV']<commit_after>class ConfigurationManager
  # Expects the environment to load.
  # Second argument is path to a YAML file (defaults to RAILS_ROOT/config/configuration_manager.yml).
  #
  def self.new_manager(environment=RAILS_ENV, yaml_file=File.join(RAILS_ROOT,"/config/configuration_manager.yml"))
    yaml_file = File.expand_path(yaml_file)
    if File.exist?(yaml_file)
      ConfigurationManagerHash.new_from_hash(YAML.load(ERB.new(File.read(yaml_file)).result)[environment])
    else
      ConfigurationManagerHash.new
    end
  end
end
{'fraction_non_alphanumeric': 0.0971379011274935, 'fraction_numerical': 0.0, 'mean_word_length': 5.171122994652406, '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': '1978252', 'n_tokens_mistral': 377, 'n_tokens_neox': 366, 'n_words': 67}