<commit_before>module Guard
  module UI
    class << self
      
      def info(message, options = {})
        unless ENV["GUARD_ENV"] == "test"
          reset_line if options[:reset]
          puts reset_color(message) if message != ''
        end
      end
      
      def error(message)
        puts "ERROR: #{message}"
      end
      
      def debug(message)
        unless ENV["GUARD_ENV"] == "test"
          puts "DEBUG: #{message}" if ::Guard.options && ::Guard.options[:debug]
        end
      end
      
      def reset_line
        print "\r\e "
      end
      
      def clear
        system("clear;")
      end
      
    private
      
      def reset_color(text)
        color(text, "\e[0m")
      end
      
      def color(text, color_code)<commit_msg>Added options to error/debug UI method<commit_after>module Guard
  module UI
    class << self
      
      def info(message, options = {})
        unless ENV["GUARD_ENV"] == "test"
          reset_line if options[:reset]
          puts reset_color(message) if message != ''
        end
      end
      
      def error(message, options = {})
        reset_line if options[:reset]
        puts "ERROR: #{message}"
      end
      
      def debug(message, options = {})
        unless ENV["GUARD_ENV"] == "test"
          reset_line if options[:reset]
          puts "DEBUG: #{message}" if ::Guard.options && ::Guard.options[:debug]
        end
      end
      
      def reset_line
        print "\r\e "
      end
      
      def clear
        system("clear;")
      end
      
    private
      
      def reset_color(text)
        color(text, "\e[0m")
      end
      
      def color(text, color_code)
{'fraction_non_alphanumeric': 0.10886377156454491, 'fraction_numerical': 0.001189767995240928, 'mean_word_length': 1.56793893129771, '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': '2589663', 'n_tokens_mistral': 488, 'n_tokens_neox': 496, 'n_words': 128}