<commit_before>class GitTown < Formula
  desc "High-level command-line interface for Git"
  homepage "https://www.git-town.com/"
  url "https://github.com/git-town/git-town/archive/v7.5.0.tar.gz"
  sha256 "4f35a2b4d01bea909161722ee1d5d893d5c676e6f3cf9305a864a01c55038be3"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "42473698de5c8cfc8825648128003a5d13579deb160e276097a301744cb8b943"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "7dff43547bc7bccf0aa299b64bd238b32750c260f6a549ffe794c3ccc24f7967"
    sha256 cellar: :any_skip_relocation, monterey:       "082a8edaad6c5313c0059041a49f0f4f3dda639fe6ff5d3079443463e7566d75"
    sha256 cellar: :any_skip_relocation, big_sur:        "87d70a3cdbee842e1395da79b38de127234541c1bdade78a7b20148037af45d5"
    sha256 cellar: :any_skip_relocation, catalina:       "385eb3fecf752f8685c9ed0707ba0d960fe814cb486f5a6c078fdc8bcee89a07"
    sha256 cellar: :any_skip_relocation, mojave:         "279e89fd331b94bbe3f97b51d8a2015d03a72b1efef5934676d4220f69610778"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e92092182bf39195e1660c09891d127bae02041f4a999138725663393c0965d4"
  end

  depends_on "go" => :build

  def install
    ldflags = %W[
      -X github.com/git-town/git-town/src/cmd.version=v#{version}
      -X github.com/git-town/git-town/src/cmd.buildDate=#{time.strftime("%Y/%m/%d")}
    ].join(" ")
    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/git-town version")<commit_msg>git-town: clean up std_go_args usage<commit_after>class GitTown < Formula
  desc "High-level command-line interface for Git"
  homepage "https://www.git-town.com/"
  url "https://github.com/git-town/git-town/archive/v7.5.0.tar.gz"
  sha256 "4f35a2b4d01bea909161722ee1d5d893d5c676e6f3cf9305a864a01c55038be3"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "42473698de5c8cfc8825648128003a5d13579deb160e276097a301744cb8b943"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "7dff43547bc7bccf0aa299b64bd238b32750c260f6a549ffe794c3ccc24f7967"
    sha256 cellar: :any_skip_relocation, monterey:       "082a8edaad6c5313c0059041a49f0f4f3dda639fe6ff5d3079443463e7566d75"
    sha256 cellar: :any_skip_relocation, big_sur:        "87d70a3cdbee842e1395da79b38de127234541c1bdade78a7b20148037af45d5"
    sha256 cellar: :any_skip_relocation, catalina:       "385eb3fecf752f8685c9ed0707ba0d960fe814cb486f5a6c078fdc8bcee89a07"
    sha256 cellar: :any_skip_relocation, mojave:         "279e89fd331b94bbe3f97b51d8a2015d03a72b1efef5934676d4220f69610778"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e92092182bf39195e1660c09891d127bae02041f4a999138725663393c0965d4"
  end

  depends_on "go" => :build

  def install
    ldflags = %W[
      -X github.com/git-town/git-town/src/cmd.version=v#{version}
      -X github.com/git-town/git-town/src/cmd.buildDate=#{time.strftime("%Y/%m/%d")}
    ]
    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/git-town version")
{'fraction_non_alphanumeric': 0.0947973188637089, 'fraction_numerical': 0.24002553463134377, 'mean_word_length': 5.475206611570248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '466347', 'n_tokens_mistral': 1797, 'n_tokens_neox': 1376, 'n_words': 160}