<commit_before># frozen_string_literal: true

module DeepCover
  module ConfigSetter
    def config_queue
      @config_queue ||= []
    end

    def config(notify = self)
      @config ||= Config.new(notify)
      config_queue.each { |block| configure(&block) }
      config_queue.clear
      @config
    end
<commit_msg>Avoid confusion between config and configure<commit_after># frozen_string_literal: true

module DeepCover
  module ConfigSetter
    def config_queue
      @config_queue ||= []
    end

    def config(notify = self)
      raise ArgumentError, 'config does not accept an argument. Did you mean `configure`?' if block_given?
      @config ||= Config.new(notify)
      config_queue.each { |block| configure(&block) }
      config_queue.clear
      @config
    end

{'fraction_non_alphanumeric': 0.08951406649616368, 'fraction_numerical': 0.0, 'mean_word_length': 3.142857142857143, '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': '7636088', 'n_tokens_mistral': 232, 'n_tokens_neox': 224, 'n_words': 63}