<commit_before>require 'formula'

class GitFlowAvh < Formula
  homepage 'https://github.com/petervanderdoes/gitflow'
  url 'https://github.com/petervanderdoes/gitflow/archive/1.7.0.tar.gz'
  sha1 '666b01444de2e1b628f83fe1c8b5481b24156502'

  head do
    url 'https://github.com/petervanderdoes/gitflow.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'
    sha1 'e29b79629323dc9a10e7b8ddca1ec00d51f62929'
  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=#{HOMEBREW_PREFIX}/opt/gnu-getopt/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-avh 1.8.0<commit_after>require 'formula'

class GitFlowAvh < Formula
  homepage 'https://github.com/petervanderdoes/gitflow'
  url "https://github.com/petervanderdoes/gitflow/archive/1.8.0.tar.gz"
  sha1 "4bfdd7e83509f9464a867642bb5b3185d4cfcfdc"

  head do
    url 'https://github.com/petervanderdoes/gitflow.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'
    sha1 'e29b79629323dc9a10e7b8ddca1ec00d51f62929'
  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=#{HOMEBREW_PREFIX}/opt/gnu-getopt/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

{'fraction_non_alphanumeric': 0.14134574693186627, 'fraction_numerical': 0.051206093948370716, 'mean_word_length': 3.546153846153846, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5977901', 'n_tokens_mistral': 969, 'n_tokens_neox': 877, 'n_words': 135}