<commit_before>module I18n
  module Backend
    class Simple
      module Implementation
        protected
        alias_method :old_init_translations, :init_translations
      
        def init_translations
          old_init_translations

          store_translations(:nb, translations[:no])
          translations[:no] = translations[:nb]

          friendly = translate('en', 'time.formats.friendly')

          available_locales.each do |locale|
            unless lookup(locale, 'time.formats.friendly')
              store_translations(locale, :time => { :formats => { :friendly => friendly } })
            end
          end
        end
      end
    end

    module PluralizationFallback
      def pluralize(locale, entry, count)
        super
      rescue InvalidPluralizationData => ex
        raise ex unless ex.entry.has_key?(:other)
        ex.entry[:other]
      end
    end
  end
end

I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"

I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)<commit_msg>Suppress deprecation warning from i18n<commit_after>module I18n
  module Backend
    class Simple
      module Implementation
        protected
        alias_method :old_init_translations, :init_translations
      
        def init_translations
          old_init_translations

          store_translations(:nb, translations[:no])
          translations[:no] = translations[:nb]

          friendly = translate('en', 'time.formats.friendly')

          available_locales.each do |locale|
            unless lookup(locale, 'time.formats.friendly')
              store_translations(locale, :time => { :formats => { :friendly => friendly } })
            end
          end

          @skip_syntax_deprecation = true
        end
      end
    end

    module PluralizationFallback
      def pluralize(locale, entry, count)
        super
      rescue InvalidPluralizationData => ex
        raise ex unless ex.entry.has_key?(:other)
        ex.entry[:other]
      end
    end
  end
end

I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"

I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
{'fraction_non_alphanumeric': 0.10016556291390728, 'fraction_numerical': 0.014072847682119206, 'mean_word_length': 2.794348508634223, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5802144', 'n_tokens_mistral': 722, 'n_tokens_neox': 701, 'n_words': 137}