<commit_before>module SSHKit
  module Backend

    class Printer < Abstract

      include SSHKit::CommandHelper

      def run
        instance_exec(host, &@block)
      end

      def execute(*args)
        command(*args).tap do |cmd|
          output << cmd
        end
      end
      alias :upload! :execute
      alias :download! :execute
      alias :test :execute
      alias :invoke :execute

      def capture(*args)
        String.new.tap { execute(*args) }
      end
      alias :capture! :capture


      private

      def output
        SSHKit.config.output
      end

    end
  end
end<commit_msg>Fix the print formatter for tests<commit_after>module SSHKit
  module Backend

    class Printer < Abstract

      include SSHKit::CommandHelper

      def run
        instance_exec(host, &@block)
      end

      def execute(*args)
        command(*args).tap do |cmd|
          output << cmd.to_s
        end
      end
      alias :upload! :execute
      alias :download! :execute
      alias :test :execute
      alias :invoke :execute

      def capture(*args)
        String.new.tap { execute(*args) }
      end
      alias :capture! :capture


      private

      def output
        SSHKit.config.output
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.0759392486011191, 'fraction_numerical': 0.0, 'mean_word_length': 1.8008948545861299, 'pattern_counts': {'":': 0, '<': 9, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5753945', 'n_tokens_mistral': 371, 'n_tokens_neox': 344, 'n_words': 106}