<commit_before>module WOW::Capture::WOWObject::Utility::LogItems
  class Chat < Base
    attr_reader :text, :sender_name, :channel_name

    def type
      :chat
    end

    def parse!
      @sender_name = @packet.sender_name
      @channel_name = @packet.channel_name
      @text = @packet.text
    end

    def pretty_print
      output = ''

      output << pretty_prefix
      output << " Channel: [#{@channel_name}]" if !@channel_name.to_s.empty?
      output << " Sender: [#{@sender_name}]" if !@sender_name.to_s.empty?
      output << " Text: #{@text}"

      output
    end
  end
end<commit_msg>Improved pretty printer for chat log items.<commit_after>module WOW::Capture::WOWObject::Utility::LogItems
  class Chat < Base
    attr_reader :text, :sender_name, :channel_name

    def type
      :chat
    end

    def parse!
      @sender_name = @packet.sender_name
      @channel_name = @packet.channel_name
      @text = @packet.text
    end

    def pretty_print
      output = ''

      output << pretty_prefix

      lines = []

      lines << " Channel: [#{@channel_name}]" if !@channel_name.to_s.empty?
      lines << " Sender:  [#{@sender_name}]" if !@sender_name.to_s.empty?
      lines << " Text:    #{@text}"

      output << lines.join(pretty_line)
    end
  end
end
{'fraction_non_alphanumeric': 0.12684824902723735, 'fraction_numerical': 0.0, 'mean_word_length': 2.7167630057803467, 'pattern_counts': {'":': 0, '<': 23, '<?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': '6432321', 'n_tokens_mistral': 432, 'n_tokens_neox': 419, 'n_words': 95}