<commit_before>require 'savon'

require 'inforouter/access_list'
require 'inforouter/folder_rule'
require 'inforouter/client'
require 'inforouter/configuration'
require 'inforouter/errors'
require 'inforouter/version'

module Inforouter
  class << self
    attr_accessor :configuration

    # Returns true if the gem has been configured.
    def configured?
      !!configured
    end

    # Configure the gem
    def configure
      self.configuration ||= Configuration.new
      yield configuration
    end

    def reset!
      self.configuration = nil
      @client = nil
    end

    def client
      check_configuration!
      @client ||= Inforouter::Client.new
    end

    private

    def check_configuration!
      fail Inforouter::Errors::MissingConfig.new unless self.configuration
      self.configuration_check!
    end
  end
end<commit_msg>Fix #check_configuration! method.<commit_after>require 'savon'

require 'inforouter/access_list'
require 'inforouter/folder_rule'
require 'inforouter/client'
require 'inforouter/configuration'
require 'inforouter/errors'
require 'inforouter/version'

module Inforouter
  class << self
    attr_accessor :configuration

    # Returns true if the gem has been configured.
    def configured?
      !!configured
    end

    # Configure the gem
    def configure
      self.configuration ||= Configuration.new
      yield configuration
    end

    def reset!
      self.configuration = nil
      @client = nil
    end

    def client
      check_configuration!
      @client ||= Inforouter::Client.new
    end

    private

    def check_configuration!
      fail Inforouter::Errors::MissingConfig.new unless self.configuration
      self.configuration.check!
    end
  end
end
{'fraction_non_alphanumeric': 0.07052023121387284, 'fraction_numerical': 0.0, 'mean_word_length': 3.111638954869359, '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': '3171007', 'n_tokens_mistral': 489, 'n_tokens_neox': 474, 'n_words': 133}