<commit_before>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

Dir.glob('locales/*.yml').each do |locale_file|
  describe "a devise-i18n #{locale_file} locale file" do
    it_behaves_like 'a valid locale file', locale_file
    it { locale_file.should be_a_subset_of 'locales/en.yml' }
  end
end<commit_msg>Fix path to yml files in specs<commit_after>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

Dir.glob('config/locales/*.yml').each do |locale_file|
  describe "a devise-i18n #{locale_file} locale file" do
    it_behaves_like 'a valid locale file', locale_file
    it { locale_file.should be_a_subset_of 'config/locales/en.yml' }
  end
end
{'fraction_non_alphanumeric': 0.12041116005873716, 'fraction_numerical': 0.005873715124816446, 'mean_word_length': 5.1441441441441444, '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': '3677766', 'n_tokens_mistral': 247, 'n_tokens_neox': 235, 'n_words': 55}