<commit_before>
require 'pork/report/dot'

module Pork
  class Description < Dot
    attr_accessor :last_executor

    def msg_pass
      msg = "\e[1Go"
      if respond_to?(:green, true)
        green(msg)
      else
        msg
      end
    end

    def msg_skip   ; "\e[1G#{super}"; end
    def msg_failed ; "\e[1G#{super}"; end
    def msg_errored; "\e[1G#{super}"; end

    def case_start context
      self.last_executor ||= Executor
      executor = context.class
      levels = executor.ancestors.drop(1).count{ |a| a <= Executor }

      if executor != Executor && last_executor != executor
        io.puts "#{'  ' * (levels - 1)}#{executor.desc}"
      end

      io.print "#{'  ' * levels}#{context.pork_description}: "

      self.last_executor = executor
    end

    def case_end
      io.puts
    end
  end
end
<commit_msg>well, since we moved the icon to front...<commit_after>
require 'pork/report/dot'

module Pork
  class Description < Dot
    attr_accessor :last_executor

    def msg_pass
      msg = "\e[1Go"
      if respond_to?(:green, true)
        green(msg)
      else
        msg
      end
    end

    def msg_skip   ; "\e[1G#{super}"; end
    def msg_failed ; "\e[1G#{super}"; end
    def msg_errored; "\e[1G#{super}"; end

    def case_start context
      self.last_executor ||= Executor
      executor = context.class
      levels = executor.ancestors.drop(1).count{ |a| a <= Executor }

      if executor != Executor && last_executor != executor
        io.puts "#{'  ' * (levels - 1)}#{executor.desc}"
      end

      io.print "#{'  ' * levels}#{context.pork_description}"

      self.last_executor = executor
    end

    def case_end
      io.puts
    end
  end
end

{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 2.25381679389313, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4913997', 'n_tokens_mistral': 607, 'n_tokens_neox': 594, 'n_words': 139}