<commit_before># frozen_string_literal: true
RSpec.configure do |config|
  config.before(:suite) do
    I18n.config.enforce_available_locales = false
  end

  config.around(:each) do |example|
    previous_locale = I18n.locale
    example.run
    I18n.locale = previous_locale
  end
end
<commit_msg>Raise on missing translations (#447)<commit_after># frozen_string_literal: true
RSpec.configure do |config|
  config.before(:suite) do
    I18n.config.enforce_available_locales = false
    Rails.application.config.action_view.raise_on_missing_translations = true
  end

  config.around(:each) do |example|
    previous_locale = I18n.locale
    example.run
    I18n.locale = previous_locale
  end
end

{'fraction_non_alphanumeric': 0.08583690987124463, 'fraction_numerical': 0.02145922746781116, 'mean_word_length': 4.384615384615385, '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': '2648040', 'n_tokens_mistral': 241, 'n_tokens_neox': 227, 'n_words': 48}