<commit_before>module Overseer
  module Color
    extend self

    COLORS = {
      :black             =>   "\e[30m",
      :red               =>   "\e[31m",
      :green             =>   "\e[32m",
      :yellow            =>   "\e[33m",
      :blue              =>   "\e[34m",
      :magenta           =>   "\e[35m",
      :cyan              =>   "\e[36m",
      :white             =>   "\e[37m",
      :bright_black      =>   "\e[90m",
      :bright_red        =>   "\e[91m",
      :bright_green      =>   "\e[92m",
      :bright_yellow     =>   "\e[93m",
      :bright_blue       =>   "\e[94m",
      :bright_magenta    =>   "\e[95m",
      :bright_cyan       =>   "\e[96m",
      :bright_white      =>   "\e[97m"
    }

    COLORS.each do |color, ansi_code|
      define_method color do |string|
        "#{ansi_code}#{string}\e[0m"
      end
    end
  end
end<commit_msg>just generate methods for the needed colors<commit_after>module Overseer
  module Color
    extend self

    COLORS = {
      :red               =>   "\e[31m",
      :green             =>   "\e[32m",
      :bright_black      =>   "\e[90m",
      :bright_red        =>   "\e[91m",
      :bright_green      =>   "\e[92m",
    }

    COLORS.each do |color, ansi_code|
      define_method color do |string|
        "#{ansi_code}#{string}\e[0m"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.15711094564408043, 'fraction_numerical': 0.03276247207743857, 'mean_word_length': 1.3172413793103448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '1837661', 'n_tokens_mistral': 508, 'n_tokens_neox': 475, 'n_words': 87}