<commit_before># :enddoc:

require 'shoulda/matchers/independent'
module RSpec::Matchers
  include Shoulda::Matchers::Independent
end

if defined?(::ActiveRecord)
  require 'shoulda/matchers/active_record'
  require 'shoulda/matchers/active_model'
  module RSpec::Matchers
    include Shoulda::Matchers::ActiveRecord
    include Shoulda::Matchers::ActiveModel
  end
elsif defined?(::ActiveModel)
  require 'shoulda/matchers/active_model'
  module RSpec::Matchers
    include Shoulda::Matchers::ActiveModel
  end
end

if defined?(::ActionController)
  require 'shoulda/matchers/action_controller'
  module RSpec
    module Rails
      module ControllerExampleGroup
        include Shoulda::Matchers::ActionController
      end
    end
  end
end

if defined?(::ActionMailer)
  require 'shoulda/matchers/action_mailer'
  module RSpec
    module Rails
      module MailerExampleGroup
        include Shoulda::Matchers::ActionMailer
      end
    end
  end
end
<commit_msg>Rewritten rspec integration to use RSpec's configure for matchers loading.<commit_after># :enddoc:
require 'rspec'

RSpec.configure do |config|
  require 'shoulda/matchers/independent'
  config.include Shoulda::Matchers::Independent

  if defined?(::ActiveRecord)
    require 'shoulda/matchers/active_record'
    require 'shoulda/matchers/active_model'
    config.include Shoulda::Matchers::ActiveRecord
    config.include Shoulda::Matchers::ActiveModel

  elsif defined?(::ActiveModel)
    require 'shoulda/matchers/active_model'
    config.include Shoulda::Matchers::ActiveModel
  end

  if defined?(::ActionController)
    require 'shoulda/matchers/action_controller'
    config.include Shoulda::Matchers::ActionController
  end

  if defined?(::ActionMailer)
    require 'shoulda/matchers/action_mailer'
    config.include Shoulda::Matchers::ActionMailer
  end
end

{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0, 'mean_word_length': 4.891025641025641, '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': '7546686', 'n_tokens_mistral': 556, 'n_tokens_neox': 550, 'n_words': 116}