<commit_before>require 'parallel'

module I18n
  module Hygiene
    class Config
      attr_writer :exclude_files
      attr_writer :directories
      attr_writer :file_extensions
      attr_writer :primary_locale
      attr_writer :locales
      attr_writer :keys_to_exclude
      attr_writer :concurrency
      attr_writer :scopes_to_exclude

      def exclude_files
        @exclude_files ||= []
      end

      def directories
        @directories ||= []
      end

      def file_extensions
        @file_extensions ||= ["rb", "erb", "coffee", "js", "jsx"]
      end

      def primary_locale
        @primary_locale ||= :en
      end

      def locales
        @locales ||= ::I18n.available_locales
      end

      def all_locales
        [primary_locale] + locales
      end

      def keys_to_exclude<commit_msg>Default primary locale uses I18n.default_locale<commit_after>require 'parallel'

module I18n
  module Hygiene
    class Config
      attr_writer :exclude_files
      attr_writer :directories
      attr_writer :file_extensions
      attr_writer :primary_locale
      attr_writer :locales
      attr_writer :keys_to_exclude
      attr_writer :concurrency
      attr_writer :scopes_to_exclude

      def exclude_files
        @exclude_files ||= []
      end

      def directories
        @directories ||= []
      end

      def file_extensions
        @file_extensions ||= ["rb", "erb", "coffee", "js", "jsx"]
      end

      def primary_locale
        @primary_locale ||= ::I18n.default_locale
      end

      def locales
        @locales ||= ::I18n.available_locales
      end

      def all_locales
        [primary_locale] + locales
      end

      def keys_to_exclude
{'fraction_non_alphanumeric': 0.07252358490566038, 'fraction_numerical': 0.007075471698113208, 'mean_word_length': 2.295145631067961, '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': '2853627', 'n_tokens_mistral': 533, 'n_tokens_neox': 496, 'n_words': 119}