<commit_before>class Gitty::HookCommand::Install < Gitty::Runner
  include FileUtils
  def initialize(args, stdout = STDOUT, stderr = STDERR)
    super
    @hookname = args.shift
  end

  def run
    hook = Gitty::Hook.find(@hookname, :installed => false)
    if hook.nil?
      stderr.puts "no hook named '#{@hookname}' found."
      exit 1
    end
    hook.install(:local)
  end

  def option_parser
    @option_parser ||= super.tap do |opts|
      opts.banner = "Usage: git hook install [opts] hook-name"
    end
  end
end<commit_msg>feedback<commit_after>class Gitty::HookCommand::Install < Gitty::Runner
  include FileUtils
  def initialize(args, stdout = STDOUT, stderr = STDERR)
    super
    @hookname = args.shift
  end

  def run
    hook = Gitty::Hook.find(@hookname, :installed => false)
    if hook.nil?
      stderr.puts "no hook named '#{@hookname}' found."
      exit 1
    end
    hook.install(:local)
    stdout.puts "#hook #{hook.name} has been installed."
  end

  def option_parser
    @option_parser ||= super.tap do |opts|
      opts.banner = "Usage: git hook install [opts] hook-name"
    end
  end
end
{'fraction_non_alphanumeric': 0.11634103019538189, 'fraction_numerical': 0.0017761989342806395, 'mean_word_length': 3.053956834532374, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3803492', 'n_tokens_mistral': 386, 'n_tokens_neox': 371, 'n_words': 105}