<commit_before>require "motion-bundler/require/tracer/hooks"
require "motion-bundler/require/tracer/log"

module MotionBundler
  module Require
    module Tracer
      include Hooks
      extend self

      def log
        Thread.current[:motion_bundler_log] ||= Log.new
      end

      def yield
        start
        yield
      ensure
        stop
      end

    private

      def start
        ENV["MB_SILENCE_CORE"] = "false"
        log.clear
        hook
      end

      def stop
        ENV["MB_SILENCE_CORE"] = "true"
        unhook
      end

    end
  end
end<commit_msg>Setting $VERBOSE to nil during Tracer#yield<commit_after>require "motion-bundler/require/tracer/hooks"
require "motion-bundler/require/tracer/log"

module MotionBundler
  module Require
    module Tracer
      include Hooks
      extend self

      def log
        Thread.current[:motion_bundler_log] ||= Log.new
      end

      def yield
        verbose = $VERBOSE
        $VERBOSE = nil
        start
        yield
      ensure
        $VERBOSE = verbose
        stop
      end

    private

      def start
        ENV["MB_SILENCE_CORE"] = "false"
        log.clear
        hook
      end

      def stop
        ENV["MB_SILENCE_CORE"] = "true"
        unhook
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.06577916992952232, 'fraction_numerical': 0.0, 'mean_word_length': 1.7019027484143763, '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': '2120774', 'n_tokens_mistral': 415, 'n_tokens_neox': 387, 'n_words': 96}