<commit_before>module ROM
  # @api private
  module Configurable
    class Config
      WRITER_REGEXP = /=$/.freeze

      attr_reader :settings

      # @api private
      def initialize
        @settings = {}
      end

      # @api public
      def [](name)
        __send__(name)
      end

      # @api private
      def key?(name)
        settings.key?(name)
      end

      # @api private
      def freeze
        settings.each_value { |value| value.freeze }
        super
      end

      # @api private<commit_msg>Use public_send in Config#[] to avoid some weird pitfalls with method_missing<commit_after>module ROM
  # @api private
  module Configurable
    class Config
      WRITER_REGEXP = /=$/.freeze

      attr_reader :settings

      # @api private
      def initialize
        @settings = {}
      end

      # @api public
      def [](name)
        public_send(name)
      end

      # @api private
      def key?(name)
        settings.key?(name)
      end

      # @api private
      def freeze
        settings.each_value { |value| value.freeze }
        super
      end

      # @api private
{'fraction_non_alphanumeric': 0.08340807174887892, 'fraction_numerical': 0.0, 'mean_word_length': 1.702179176755448, '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': '5808171', 'n_tokens_mistral': 331, 'n_tokens_neox': 320, 'n_words': 91}