<commit_before>require 'active_support/concern'

module ActiveSupport
  module Testing
    module TaggedLogging
      extend ActiveSupport::Concern

      attr_writer :tagged_logger

      def before_setup
        tagged_logger.push_tags(self.class.name, __name__) if tagged_logging?
        super
      end

      def after_teardown
        super
        tagged_logger.pop_tags(2) if tagged_logging?
      end

      private
        def tagged_logger
          @tagged_logger ||= (defined?(Rails.logger) && Rails.logger)
        end

        def tagged_logging?
          tagged_logger && tagged_logger.respond_to?(:push_tags)
        end
    end
  end
end<commit_msg>Remove AS::Concern extension from Testing::TaggedLogging<commit_after>module ActiveSupport
  module Testing
    module TaggedLogging
      attr_writer :tagged_logger

      def before_setup
        tagged_logger.push_tags(self.class.name, __name__) if tagged_logging?
        super
      end

      def after_teardown
        super
        tagged_logger.pop_tags(2) if tagged_logging?
      end

      private
        def tagged_logger
          @tagged_logger ||= (defined?(Rails.logger) && Rails.logger)
        end

        def tagged_logging?
          tagged_logger && tagged_logger.respond_to?(:push_tags)
        end
    end
  end
end
{'fraction_non_alphanumeric': 0.06183206106870229, 'fraction_numerical': 0.0015267175572519084, 'mean_word_length': 2.4140625, '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': '5448806', 'n_tokens_mistral': 404, 'n_tokens_neox': 369, 'n_words': 83}