<commit_before>class HgFlow < Formula
  desc "Development model for mercurial inspired by git-flow"
  homepage "https://bitbucket.org/yujiewu/hgflow"
  url "https://bitbucket.org/yujiewu/hgflow/downloads/hgflow-v0.9.8.3.tar.bz2"
  sha256 "13ded94841185925f709481d2f2dd6fb10cd0c0c6f5b898c4ae97ac2636509a9"
  head "https://bitbucket.org/yujiewu/hgflow", :using => :hg, :branch => "develop"

  bottle :unneeded

  depends_on "python" if MacOS.version <= :snow_leopard
  depends_on :hg

  def install
    if build.head?
      libexec.install "src/hgflow.py" => "hgflow.py"
    else
      libexec.install "hgflow.py"
    end
  end

  def caveats; <<~EOS
    1. Put following lines into your ~/.hgrc
    2. Restart your shell and try "hg flow".
    3. For more information go to https://bitbucket.org/yinwm/hgflow

        [extensions]
        flow = #{opt_libexec}/hgflow.py
        [flow]
        autoshelve = true

    EOS
  end

  test do
    (testpath/".hgrc").write <<~EOS
      [extensions]
      flow = #{opt_libexec}/hgflow.py
      [flow]
      autoshelve = true
    EOS
    system "hg", "init"
    system "hg", "flow", "init", "-d"
  end
end
<commit_msg>hg-flow: depend on mercurial instead of :hg<commit_after>class HgFlow < Formula
  desc "Development model for mercurial inspired by git-flow"
  homepage "https://bitbucket.org/yujiewu/hgflow"
  url "https://bitbucket.org/yujiewu/hgflow/downloads/hgflow-v0.9.8.3.tar.bz2"
  sha256 "13ded94841185925f709481d2f2dd6fb10cd0c0c6f5b898c4ae97ac2636509a9"
  head "https://bitbucket.org/yujiewu/hgflow", :using => :hg, :branch => "develop"

  bottle :unneeded

  depends_on "python" if MacOS.version <= :snow_leopard
  depends_on "mercurial"

  def install
    if build.head?
      libexec.install "src/hgflow.py" => "hgflow.py"
    else
      libexec.install "hgflow.py"
    end
  end

  def caveats; <<~EOS
    1. Put following lines into your ~/.hgrc
    2. Restart your shell and try "hg flow".
    3. For more information go to https://bitbucket.org/yinwm/hgflow

        [extensions]
        flow = #{opt_libexec}/hgflow.py
        [flow]
        autoshelve = true

    EOS
  end

  test do
    (testpath/".hgrc").write <<~EOS
      [extensions]
      flow = #{opt_libexec}/hgflow.py
      [flow]
      autoshelve = true
    EOS
    system "hg", "init"
    system "hg", "flow", "init", "-d"
  end
end

{'fraction_non_alphanumeric': 0.12393887945670629, 'fraction_numerical': 0.04499151103565365, 'mean_word_length': 2.813915857605178, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1954456', 'n_tokens_mistral': 985, 'n_tokens_neox': 891, 'n_words': 202}