<commit_before>class Ghq < Formula
  desc "Remote repository management made easy"
  homepage "https://github.com/motemen/ghq"
  url "https://github.com/motemen/ghq.git",
      :tag      => "v0.17.1",
      :revision => "5add27b66cbb918e28f195a9065f6875b1a33392"
  head "https://github.com/motemen/ghq.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "214748695423c028f53102f22efa2513800a3ccf09342c028cdeb59f972ef42a" => :catalina
    sha256 "2ca84c842ddbd3ea399aa62e3f5ed86359e60b09b7edd1b3a8aa1a63ce813908" => :mojave
    sha256 "9510f724a856e2c1c7579e1d252af30b013625dcf936e604c4322257f14594ab" => :high_sierra
  end

  depends_on "go" => :build

  def install
    system "make", "build"
    bin.install "ghq"
    zsh_completion.install "misc/zsh/_ghq"
    prefix.install_metafiles
  end

  test do
    assert_match "#{testpath}/.ghq", shell_output("#{bin}/ghq root")
  end
end
<commit_msg>ghq: Install bash completion<commit_after>class Ghq < Formula
  desc "Remote repository management made easy"
  homepage "https://github.com/motemen/ghq"
  url "https://github.com/motemen/ghq.git",
      :tag      => "v0.17.1",
      :revision => "5add27b66cbb918e28f195a9065f6875b1a33392"
  revision 1
  head "https://github.com/motemen/ghq.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "214748695423c028f53102f22efa2513800a3ccf09342c028cdeb59f972ef42a" => :catalina
    sha256 "2ca84c842ddbd3ea399aa62e3f5ed86359e60b09b7edd1b3a8aa1a63ce813908" => :mojave
    sha256 "9510f724a856e2c1c7579e1d252af30b013625dcf936e604c4322257f14594ab" => :high_sierra
  end

  depends_on "go" => :build

  def install
    system "make", "build"
    bin.install "ghq"
    bash_completion.install "misc/bash/_ghq" => "ghq"
    zsh_completion.install "misc/zsh/_ghq"
    prefix.install_metafiles
  end

  test do
    assert_match "#{testpath}/.ghq", shell_output("#{bin}/ghq root")
  end
end

{'fraction_non_alphanumeric': 0.10782241014799154, 'fraction_numerical': 0.17706131078224102, 'mean_word_length': 4.332394366197183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 6, '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': '1013310', 'n_tokens_mistral': 980, 'n_tokens_neox': 796, 'n_words': 118}