<commit_before>require 'optparse'

class Kicker
  DONT_SHOW_RECIPES = %w{ could_not_handle_file execute_cli_command }
  
  def self.recipes_for_display
    [RECIPES_DIR, USER_RECIPES_DIR].map do |dir|
      Dir.glob("#{dir}/*.rb").map { |f| File.basename(f, '.rb') }
    end.flatten - DONT_SHOW_RECIPES
  end
  
  def self.option_parser
    @option_parser ||= OptionParser.new do |opt|
      opt.banner = "Usage: #{$0} [options] [paths to watch]"
    end
  end
  
  OPTION_PARSER_CALLBACK = lambda do |options|
    option_parser.on('--[no-]growl', 'Whether or not to use Growl. Default is to use growl.') do |growl|
      options[:growl] = growl
    end
    
    option_parser.on('--growl-command [COMMAND]', 'The command to execute when the Growl succeeded message is clicked.') do |command|
      options[:growl_command] = command
    end
    
    option_parser.on('-l', '--latency [FLOAT]', "The time to collect file change events before acting on them. Defaults to 1.5 sec.") do |latency|<commit_msg>Don't show the ReloadDotKick handler in banner.<commit_after>require 'optparse'

class Kicker
  DONT_SHOW_RECIPES = %w{ could_not_handle_file execute_cli_command dot_kick }
  
  def self.recipes_for_display
    [RECIPES_DIR, USER_RECIPES_DIR].map do |dir|
      Dir.glob("#{dir}/*.rb").map { |f| File.basename(f, '.rb') }
    end.flatten - DONT_SHOW_RECIPES
  end
  
  def self.option_parser
    @option_parser ||= OptionParser.new do |opt|
      opt.banner = "Usage: #{$0} [options] [paths to watch]"
    end
  end
  
  OPTION_PARSER_CALLBACK = lambda do |options|
    option_parser.on('--[no-]growl', 'Whether or not to use Growl. Default is to use growl.') do |growl|
      options[:growl] = growl
    end
    
    option_parser.on('--growl-command [COMMAND]', 'The command to execute when the Growl succeeded message is clicked.') do |command|
      options[:growl_command] = command
    end
    
    option_parser.on('-l', '--latency [FLOAT]', "The time to collect file change events before acting on them. Defaults to 1.5 sec.") do |latency|
{'fraction_non_alphanumeric': 0.12481716235982447, 'fraction_numerical': 0.0029254022428083864, 'mean_word_length': 3.4319654427645787, 'pattern_counts': {'":': 0, '<': 3, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5285949', 'n_tokens_mistral': 736, 'n_tokens_neox': 719, 'n_words': 196}