<commit_before>require 'formula'

class Hub < Formula
  homepage 'http://hub.github.com/'
  url 'https://github.com/github/hub/archive/v1.12.2.tar.gz'
  sha1 '65359d3dcc8e1a0986aab3726f6047bfb9df3d7c'

  head do
    url "https://github.com/github/hub.git"
    depends_on "go" => :build
  end

  option 'without-completions', 'Disable bash/zsh completions'

  def install
    if build.head?
      system "script/build"
      bin.install "hub"
    else
      rake "install", "prefix=#{prefix}"
    end

    if build.with? 'completions'
      bash_completion.install 'etc/hub.bash_completion.sh'
      zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
    end
  end

  test do
    HOMEBREW_REPOSITORY.cd do
      assert_equal "bin/brew", shell_output("#{bin}/hub ls-files -- bin").strip
    end<commit_msg>hub 1.12.4<commit_after>require 'formula'

class Hub < Formula
  homepage 'http://hub.github.com/'
  url 'https://github.com/github/hub/archive/v1.12.4.tar.gz'
  sha1 '25135167108cd777ba6ec2dd5a9a25e248d98d4b'

  head do
    url "https://github.com/github/hub.git"
    depends_on "go" => :build
  end

  option 'without-completions', 'Disable bash/zsh completions'

  def install
    if build.head?
      system "script/build"
      bin.install "hub"
    else
      rake "install", "prefix=#{prefix}"
    end

    if build.with? 'completions'
      bash_completion.install 'etc/hub.bash_completion.sh'
      zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
    end
  end

  test do
    HOMEBREW_REPOSITORY.cd do
      assert_equal "bin/brew", shell_output("#{bin}/hub ls-files -- bin").strip
    end
{'fraction_non_alphanumeric': 0.12970969734403953, 'fraction_numerical': 0.03891290920321186, 'mean_word_length': 3.05, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '4574572', 'n_tokens_mistral': 646, 'n_tokens_neox': 583, 'n_words': 114}