<commit_before>class GitFlowAvh < Formula
  desc "AVH edition of git-flow"
  homepage "https://github.com/petervanderdoes/gitflow-avh"
  url "https://github.com/petervanderdoes/gitflow-avh/archive/1.9.1.tar.gz"
  sha256 "7692c77744663c5243cdd390bef0a621caee92dde228b50ef97149fc1b54780d"

  bottle do
    cellar :any_skip_relocation
    sha256 "ba58968f480cccdcfcbbdc5e669c01a96db5ff2aece0e9a9839199261e3d5af9" => :el_capitan
    sha256 "b33247f97c664963dbeccadc87922ca5fef9fed894094f4ca4caaf78d5aa77a5" => :yosemite
    sha256 "6c3911763f46160042913cb6d4d5d755dd59a7a62c9edc7b62d7932a43402236" => :mavericks
  end

  head do
    url "https://github.com/petervanderdoes/gitflow-avh.git", :branch => "develop"

    resource "completion" do
      url "https://github.com/petervanderdoes/git-flow-completion.git", :branch => "develop"
    end
  end

  resource "completion" do
    url "https://github.com/petervanderdoes/git-flow-completion/archive/0.5.1.tar.gz"
    sha256 "5c8547a549dc623a8d57cfc22c3fa88588f5630da9dc6de9638e5b69da9d47d0"
  end

  depends_on "gnu-getopt"

  conflicts_with "git-flow"

  def install
    system "make", "prefix=#{libexec}", "install"
    (bin/"git-flow").write <<-EOS.undent
      #!/bin/bash
      export FLAGS_GETOPT_CMD=#{Formula["gnu-getopt"].opt_bin}/getopt
      exec "#{libexec}/bin/git-flow" "$@"
    EOS

    resource("completion").stage do
      bash_completion.install "git-flow-completion.bash"
      zsh_completion.install "git-flow-completion.zsh"
    end
  end

  test do
    system "#{bin}/git-flow", "version"
  end
end<commit_msg>git-flow: fix head resource and better test<commit_after>class GitFlowAvh < Formula
  desc "AVH edition of git-flow"
  homepage "https://github.com/petervanderdoes/gitflow-avh"

  stable do
    url "https://github.com/petervanderdoes/gitflow-avh/archive/1.9.1.tar.gz"
    sha256 "7692c77744663c5243cdd390bef0a621caee92dde228b50ef97149fc1b54780d"

    resource "completion" do
      url "https://github.com/petervanderdoes/git-flow-completion/archive/0.5.1.tar.gz"
      sha256 "5c8547a549dc623a8d57cfc22c3fa88588f5630da9dc6de9638e5b69da9d47d0"
    end
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "ba58968f480cccdcfcbbdc5e669c01a96db5ff2aece0e9a9839199261e3d5af9" => :el_capitan
    sha256 "b33247f97c664963dbeccadc87922ca5fef9fed894094f4ca4caaf78d5aa77a5" => :yosemite
    sha256 "6c3911763f46160042913cb6d4d5d755dd59a7a62c9edc7b62d7932a43402236" => :mavericks
  end

  head do
    url "https://github.com/petervanderdoes/gitflow-avh.git", :branch => "develop"

    resource "completion" do
      url "https://github.com/petervanderdoes/git-flow-completion.git", :branch => "develop"
    end
  end

  depends_on "gnu-getopt"

  conflicts_with "git-flow"

  def install
    system "make", "prefix=#{libexec}", "install"
    (bin/"git-flow").write <<-EOS.undent
      #!/bin/bash
      export FLAGS_GETOPT_CMD=#{Formula["gnu-getopt"].opt_bin}/getopt
      exec "#{libexec}/bin/git-flow" "$@"
    EOS

    resource("completion").stage do
      bash_completion.install "git-flow-completion.bash"
      zsh_completion.install "git-flow-completion.zsh"
    end
  end

  test do
    system "git", "init"
    system "#{bin}/git-flow", "init", "-d"
    system "#{bin}/git-flow", "config"
    assert_equal "develop", shell_output("git symbolic-ref --short HEAD").chomp
  end
end
{'fraction_non_alphanumeric': 0.1206896551724138, 'fraction_numerical': 0.1272294887039239, 'mean_word_length': 4.098484848484849, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 10, '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': '6576203', 'n_tokens_mistral': 1588, 'n_tokens_neox': 1352, 'n_words': 189}