<commit_before>RSpec.configure do |rspec|
  # Delay this in order to give users a chance to configure `expect_with`...
  rspec.before(:suite) do
    if defined?(ActiveRecord) && defined?(RSpec::Matchers) && RSpec::Matchers.configuration.syntax.include?(:should)
      # In Rails 3.0, it was AssociationProxy.
      # In 3.1+, it's CollectionProxy.
      const_name = [:CollectionProxy, :AssociationProxy].find do |const|
        ActiveRecord::Associations.const_defined?(const)
      end

      proxy_class = ActiveRecord::Associations.const_get(const_name)

      RSpec::Matchers.configuration.add_should_and_should_not_to proxy_class
    end
  end
end

<commit_msg>Revert "only add should[_not] to ActiveRecord classes if AR defined"<commit_after>RSpec.configure do |rspec|
  # Delay this in order to give users a chance to configure `expect_with`...
  rspec.before(:suite) do
    if defined?(RSpec::Matchers) && RSpec::Matchers.configuration.syntax.include?(:should)
      # In Rails 3.0, it was AssociationProxy.
      # In 3.1+, it's CollectionProxy.
      const_name = [:CollectionProxy, :AssociationProxy].find do |const|
        ActiveRecord::Associations.const_defined?(const)
      end

      proxy_class = ActiveRecord::Associations.const_get(const_name)

      RSpec::Matchers.configuration.add_should_and_should_not_to proxy_class
    end
  end
end


{'fraction_non_alphanumeric': 0.10491562729273661, 'fraction_numerical': 0.00586940572267058, 'mean_word_length': 4.08955223880597, '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': '7653137', 'n_tokens_mistral': 428, 'n_tokens_neox': 413, 'n_words': 98}