<commit_before>require 'formula'

class Ack < Formula
  url "https://github.com/petdance/ack/tarball/1.96"
  md5 '1cce67a811c52f9d51fb1195c97795f1'
  homepage 'http://betterthangrep.com/'

  def install
    system "pod2man ack ack.1"
    man1.install 'ack.1'
    bin.install 'ack'
    (prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
    (share+'zsh/functions').install 'etc/ack.zsh_completion' => '_ack'
  end
end
<commit_msg>ack: install completion into site-functions<commit_after>require 'formula'

class Ack < Formula
  url "https://github.com/petdance/ack/tarball/1.96"
  md5 '1cce67a811c52f9d51fb1195c97795f1'
  homepage 'http://betterthangrep.com/'

  def install
    system "pod2man ack ack.1"
    man1.install 'ack.1'
    bin.install 'ack'
    (prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
    (share+'zsh/site-functions').install 'etc/ack.zsh_completion' => '_ack'
  end

  def caveats; <<-EOS.undent
    Bash completion has been installed to:
      #{etc}/bash_completion.d

    zsh completion has been installed to:
      #{HOMEBREW_PREFIX}/share/zsh/site-functions
    EOS
  end
end

{'fraction_non_alphanumeric': 0.13134851138353765, 'fraction_numerical': 0.050788091068301226, 'mean_word_length': 3.7625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6908340', 'n_tokens_mistral': 470, 'n_tokens_neox': 436, 'n_words': 79}