<commit_before>require 'guard'
require 'guard/guard'

module Guard
  class Process < Guard
    def initialize(watchers = [], options = {})
      @process = nil
      @command = options[:command]
      @env = options[:env] 
      @name = options[:name]
      @stop_signal = options[:stop_signal] || "TERM"
      super
    end

    def start
      UI.info("Starting #{@name}")
      @process = @env ? ::IO.popen([@env, @command]) : IO.popen(@command)
    end

    def stop
      if @process
        UI.info("Stopping #{@name}")
        ::Process.kill(@stop_signal, @process.pid)
        ::Process.waitpid(@process.pid) rescue Errno::ESRCH
        @process.close
      end
    end

    def reload
      stop
      start
    end

    def run_all
      true
    end
<commit_msg>Added more info to UI<commit_after>require 'guard'
require 'guard/guard'

module Guard
  class Process < Guard
    def initialize(watchers = [], options = {})
      @process = nil
      @command = options[:command]
      @env = options[:env] 
      @name = options[:name]
      @stop_signal = options[:stop_signal] || "TERM"
      super
    end

    def start
      UI.info("Starting process #{@name}")
      @process = @env ? ::IO.popen([@env, @command]) : IO.popen(@command)
      UI.info("Started process #{@name}")
    end

    def stop
      if @process
        UI.info("Stopping process #{@name}")
        ::Process.kill(@stop_signal, @process.pid)
        ::Process.waitpid(@process.pid) rescue Errno::ESRCH
        @process.close
        UI.info("Stopped process #{@name}")
      end
    end

    def reload
      stop
      start
    end

    def run_all
      true
    end

{'fraction_non_alphanumeric': 0.13405797101449277, 'fraction_numerical': 0.0, 'mean_word_length': 2.255402750491159, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6096050', 'n_tokens_mistral': 523, 'n_tokens_neox': 516, 'n_words': 128}