<commit_before>require 'playbook/gem_version'

module Playbook

  autoload :Adapter,              'playbook/adapter'
  autoload :Configuration,        'playbook/configuration'
  autoload :Controller,           'playbook/controller'
  autoload :Errors,               'playbook/errors'
  autoload :Matcher,              'playbook/matcher'
  autoload :Router,               'playbook/router'
  autoload :VersionModule,        'playbook/version_module'
  autoload :KeyGen,               'playbook/key_gen'
  autoload :Throttler,            'playbook/throttler'
  autoload :Version,              'playbook/version'
  autoload :VersionInstantiator,  'playbook/version_instantiator'

 class << self
    
    def configure(&block)
      configuration.instance_eval(&block) if block_given?
      configuration
    end
    alias_method :config, :configure

    def matchers
      @matchers ||= ::Playbook::Matcher.new
    end
    alias_method :matcher, :matchers

    protected

    def configuration
      @configuration ||= ::Playbook::Configuration.new
    end
  end
     
end<commit_msg>no reason to have two methods to initailize config<commit_after>require 'playbook/gem_version'

module Playbook

  autoload :Adapter,              'playbook/adapter'
  autoload :Configuration,        'playbook/configuration'
  autoload :Controller,           'playbook/controller'
  autoload :Errors,               'playbook/errors'
  autoload :Matcher,              'playbook/matcher'
  autoload :Router,               'playbook/router'
  autoload :VersionModule,        'playbook/version_module'
  autoload :KeyGen,               'playbook/key_gen'
  autoload :Throttler,            'playbook/throttler'
  autoload :Version,              'playbook/version'
  autoload :VersionInstantiator,  'playbook/version_instantiator'

 class << self
    

    def configure(&block)
      @configuration ||= ::Playbook::Configuration.new
      @configuration.instance_eval(&block) if block_given?
      @configuration
    end
    alias_method :config, :configure


    def matchers
      @matchers ||= ::Playbook::Matcher.new
    end
    alias_method :matcher, :matchers

  end
     
end
{'fraction_non_alphanumeric': 0.08897126969416126, 'fraction_numerical': 0.0, 'mean_word_length': 2.62248322147651, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5851796', 'n_tokens_mistral': 644, 'n_tokens_neox': 628, 'n_words': 133}