<commit_before># coding: utf-8

#* debug/context_dump.rb - Debug support for the compiler context.
module XfOOrth

  #Debug support for the compiler context.
  class Context

    #Dump the context chain to the console for debug.
    #<br>Parameters
    #* vm - The current virtual machine for this thread.
    def debug_dump(vm)
      puts
      puts "Context level #{self.depth}"

      @data.each do |key, value|
        if key == :vm
          puts "virtual machine => #{value.foorth_name}"
        else
          if (name = SymbolMap.unmap(key))
            key = name.inspect
          end
<commit_msg>Minor refactor of context debug_dump.<commit_after># coding: utf-8

#* debug/context_dump.rb - Debug support for the compiler context.
module XfOOrth

  #Debug support for the compiler context.
  class Context

    #Dump the context chain to the console for debug.
    #<br>Parameters
    #* vm - The current virtual machine for this thread.
    def debug_dump(vm)
      puts "\nContext level #{self.depth}"

      @data.each do |key, value|
        if key == :vm
          puts "virtual machine => #{value.foorth_name}"
        else
          if (name = SymbolMap.unmap(key))
            key = name.inspect
          end

{'fraction_non_alphanumeric': 0.09113100081366965, 'fraction_numerical': 0.0016273393002441008, 'mean_word_length': 2.324324324324324, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6322708', 'n_tokens_mistral': 363, 'n_tokens_neox': 363, 'n_words': 129}