<commit_before>require 'sexy_settings'
SexySettings.configure do |config|
  config.path_to_project = __dir__
  config.path_to_default_settings = File.join(__dir__, '..', 'config', "default.yml")
  config.path_to_custom_settings = File.join(__dir__, '..', 'config', "custom.yml")
end

module API
  def self.settings
    @settings ||= SexySettings::Base.instance
  end
end<commit_msg>Replaced Ruby 2.0 specific code to compatibled with Ruby 1.9<commit_after>require 'sexy_settings'
SexySettings.configure do |config|
  config.path_to_project = File.expand_path(File.dirname(__FILE__), '..' )
  config.path_to_default_settings = File.join(config.path_to_project, 'config', "default.yml")
  config.path_to_custom_settings = File.join(config.path_to_project, 'config', "custom.yml")
end

module API
  def self.settings
    @settings ||= SexySettings::Base.instance
  end
end
{'fraction_non_alphanumeric': 0.12543153049482164, 'fraction_numerical': 0.004602991944764097, 'mean_word_length': 5.6923076923076925, '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': '943091', 'n_tokens_mistral': 298, 'n_tokens_neox': 288, 'n_words': 56}