<commit_before>module RR
  module Adapters
    module TestUnit
      include RRMethods
      def self.included(mod)
        RR.trim_backtrace = true
        mod.class_eval do
          alias_method :setup_without_rr, :setup
          def setup_with_rr
            setup_without_rr
            RR.reset
          end
          alias_method :setup, :setup_with_rr

          alias_method :teardown_without_rr, :teardown
          def teardown_with_rr
            RR.verify
            teardown_without_rr
          end
          alias_method :teardown, :teardown_with_rr
        end
      end

      def assert_received(subject, &block)
        block.call(SpyVerificationProxy.new(subject)).call
      end
    end
  end
end<commit_msg>Using #received in #assert_received, instead of SpyVerificationProxy.new.<commit_after>module RR
  module Adapters
    module TestUnit
      include RRMethods
      def self.included(mod)
        RR.trim_backtrace = true
        mod.class_eval do
          alias_method :setup_without_rr, :setup
          def setup_with_rr
            setup_without_rr
            RR.reset
          end
          alias_method :setup, :setup_with_rr

          alias_method :teardown_without_rr, :teardown
          def teardown_with_rr
            RR.verify
            teardown_without_rr
          end
          alias_method :teardown, :teardown_with_rr
        end
      end

      def assert_received(subject, &block)
        block.call(received(subject)).call
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.04768211920529802, 'fraction_numerical': 0.0, 'mean_word_length': 1.883587786259542, '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': '7459337', 'n_tokens_mistral': 459, 'n_tokens_neox': 434, 'n_words': 97}