<commit_before>module Jarvis
  class Viewer
    def self.create_prefix(type)
      # You can use [black,red,green,yellow,blue,magenta,cyan,white,default]
      # See https://github.com/sickill/rainbow for more information
      case type
      when "tweet"
        color = "green"
      when "deleted_tweet"
        color = "red"
      when "direct_message"
        color = "magenta"
      when "event"
        color = "blue"
      when "friend_list"
        color = "yellow"
      when "welcome_message"
        color = "cyan"
      end
      return '████ '.foreground(color.to_sym)
    end

    def self.welcome_message(user)
      # Twitter::User
      # https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials
      prefix       = self.create_prefix("welcome_message")<commit_msg>add a default color for jarvis<commit_after>module Jarvis
  class Viewer
    def self.create_prefix(type)
      # You can use [black,red,green,yellow,blue,magenta,cyan,white,default]
      # See https://github.com/sickill/rainbow for more information
      case type
      when "tweet"
        color = "green"
      when "deleted_tweet"
        color = "red"
      when "direct_message"
        color = "magenta"
      when "event"
        color = "blue"
      when "friend_list"
        color = "yellow"
      when "jarvis_talking"
        color = "cyan"
      end
      return '████ '.foreground(color.to_sym)
    end

    def self.welcome_message(user)
      # Twitter::User
      # https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials
      prefix       = self.create_prefix("jarvis_talking")
{'fraction_non_alphanumeric': 0.11076540136901059, 'fraction_numerical': 0.002489110143123833, 'mean_word_length': 2.3640167364016738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1335005', 'n_tokens_mistral': 523, 'n_tokens_neox': 516, 'n_words': 108}