<commit_before>class GoRequirement < Requirement
  fatal true

  satisfy(build_env: false) { which("go") }

  def message
    <<~EOS
      git-max requires golang to compile:
        brew install go
    EOS
  end
end

class GitMax < Formula
  desc "Distributed revision control system"
  homepage "https://git-scm.com"
  url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.tar.xz"
  sha256 "bf3c6ab5f82e072aad4768f647cfb1ef60aece39855f83f080f9c0222dd20c4f"
  license "GPL-2.0-only"
  head "https://github.com/git/git.git", shallow: false

  bottle do
    root_url "https://dl.cloudsmith.io/public/homebrew-crypto/homebrew-crypto/raw/files"
    sha256 arm64_big_sur: "3621073c5245b2f6939488ab8e6d373081a7134d69a0f52c69c2c71f9522c1ea"
  end

  depends_on GoRequirement => :build
  depends_on "openssl@1.1"
  depends_on "pcre2"
  depends_on "domt4/crypto/curl-max" => :recommended
  depends_on "gettext" => :recommended
  # So bindings can be found & used by Homebrew's Perl.
  depends_on "perl" => :recommended
  depends_on "tcl-tk" => :recommended
  depends_on "subversion" => :optional

  conflicts_with "git",
    because: "git-max is a feature-heavy version of the git formula"
  conflicts_with "git-gui",
    because: "git-max installs the Tcl/Tk UI by default"

  resource "html" do
    url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.33.0.tar.xz"
    sha256 "309c5d3cdd9a115f693c0e035298cc867a3b8ba8ce235fa1ac950a48cb4b0447"
  end

  resource "man" do
    url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-manpages-2.33.0.tar.xz"
    sha256 "d6d38abe3fe45b74359e65d53e51db3aa92d7f551240b7f7a779746f24c4bc31"
  end

  def install<commit_msg>git-max: update bottle<commit_after>class GoRequirement < Requirement
  fatal true

  satisfy(build_env: false) { which("go") }

  def message
    <<~EOS
      git-max requires golang to compile:
        brew install go
    EOS
  end
end

class GitMax < Formula
  desc "Distributed revision control system"
  homepage "https://git-scm.com"
  url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.tar.xz"
  sha256 "bf3c6ab5f82e072aad4768f647cfb1ef60aece39855f83f080f9c0222dd20c4f"
  license "GPL-2.0-only"
  head "https://github.com/git/git.git", shallow: false

  bottle do
    root_url "https://dl.cloudsmith.io/public/homebrew-crypto/homebrew-crypto/raw/files"
    sha256 arm64_big_sur: "7a689b8bf162be69db8d51ab164a1e502c54cb6617379d44c4d2d6380922f84d"
  end

  depends_on GoRequirement => :build
  depends_on "openssl@1.1"
  depends_on "pcre2"
  depends_on "domt4/crypto/curl-max" => :recommended
  depends_on "gettext" => :recommended
  # So bindings can be found & used by Homebrew's Perl.
  depends_on "perl" => :recommended
  depends_on "tcl-tk" => :recommended
  depends_on "subversion" => :optional

  conflicts_with "git",
    because: "git-max is a feature-heavy version of the git formula"
  conflicts_with "git-gui",
    because: "git-max installs the Tcl/Tk UI by default"

  resource "html" do
    url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.33.0.tar.xz"
    sha256 "309c5d3cdd9a115f693c0e035298cc867a3b8ba8ce235fa1ac950a48cb4b0447"
  end

  resource "man" do
    url "https://mirrors.edge.kernel.org/pub/software/scm/git/git-manpages-2.33.0.tar.xz"
    sha256 "d6d38abe3fe45b74359e65d53e51db3aa92d7f551240b7f7a779746f24c4bc31"
  end

  def install
{'fraction_non_alphanumeric': 0.10977399471675961, 'fraction_numerical': 0.11212210155562079, 'mean_word_length': 4.071428571428571, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 12, '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': '1155679', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1388, 'n_words': 243}