<commit_before>describe Settings do
  specify "Getting a setting from the default filename given a directory path" do
    settings_directory = File.dirname(File.expand_path(__FILE__))
    settings = Settings.build(settings_directory)
    keys = ['some_setting', 'some_nested_setting']
    setting = settings.get keys

    expect(setting == 'some nested value').to be
  end

  specify "Getting a setting from a file given a filepath" do
    settings_file = File.join(File.dirname(File.expand_path(__FILE__)), "single_setting.json")
    settings = Settings.build(settings_file)
    key = 'some_setting'
    setting = settings.get key

    expect(setting == 'some value').to be
  end
end<commit_msg>Remove unnecessary test.<commit_after>describe Settings do
  specify "Getting a setting from a file" do
    settings_file = File.join(File.dirname(File.expand_path(__FILE__)), "single_setting.json")
    settings = Settings.build(settings_file)
    key = 'some_setting'
    setting = settings.get key

    expect(setting == 'some value').to be
  end
end
{'fraction_non_alphanumeric': 0.09637404580152671, 'fraction_numerical': 0.0, 'mean_word_length': 4.297979797979798, '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': '403187', 'n_tokens_mistral': 302, 'n_tokens_neox': 295, 'n_words': 87}