<commit_before>require 'active_support'

module RspecApiDocumentation
  extend ActiveSupport::Autoload

  require 'rspec_api_documentation/railtie' if defined?(Rails)
  include ActiveSupport::JSON

  eager_autoload do
    autoload :Configuration
    autoload :ApiDocumentation
    autoload :DocumentResource
    autoload :ApiFormatter
    autoload :Example
    autoload :ExampleGroup
    autoload :Index
    autoload :TestClient
  end

  autoload :DSL
  autoload :TestServer
  autoload :HtmlWriter
  autoload :JsonWriter
  autoload :IndexWriter

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.documentations
    @documentations ||= configuration.map { |config| ApiDocumentation.new(config) }
  end

  def self.configure
    yield configuration if block_given?<commit_msg>Remove old autoload declaration.<commit_after>require 'active_support'

module RspecApiDocumentation
  extend ActiveSupport::Autoload

  require 'rspec_api_documentation/railtie' if defined?(Rails)
  include ActiveSupport::JSON

  eager_autoload do
    autoload :Configuration
    autoload :ApiDocumentation
    autoload :ApiFormatter
    autoload :Example
    autoload :ExampleGroup
    autoload :Index
    autoload :TestClient
  end

  autoload :DSL
  autoload :TestServer
  autoload :HtmlWriter
  autoload :JsonWriter
  autoload :IndexWriter

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.documentations
    @documentations ||= configuration.map { |config| ApiDocumentation.new(config) }
  end

  def self.configure
    yield configuration if block_given?
{'fraction_non_alphanumeric': 0.06109725685785536, 'fraction_numerical': 0.0, 'mean_word_length': 4.367892976588629, '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': '2465112', 'n_tokens_mistral': 490, 'n_tokens_neox': 479, 'n_words': 118}