<commit_before>I18n.enforce_available_locales = true
if Rails.env.development? || Rails.env.test?
  I18n.exception_handler = lambda do |exception, locale, key, options|
    raise "missing translation: #{key}"
  end
end<commit_msg>Check if the Rails constant is available<commit_after>I18n.enforce_available_locales = true
if Object.const_defined?(:ZineDistro) && ZineDistro.const_defined?(:Application)
  if Rails.env.development? || Rails.env.test?
    I18n.exception_handler = lambda do |_exception, locale, key, _options|
      fail "missing translation: #{key} for #{locale}"
    end
  end
end
{'fraction_non_alphanumeric': 0.11222780569514237, 'fraction_numerical': 0.01340033500837521, 'mean_word_length': 5.361702127659575, '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': '7528202', 'n_tokens_mistral': 199, 'n_tokens_neox': 187, 'n_words': 47}