<commit_before>class Overmind < Formula
  desc "Process manager for Procfile-based applications and tmux"
  homepage "https://github.com/DarthSim/overmind"
  url "https://github.com/DarthSim/overmind/archive/v2.3.0.tar.gz"
  sha256 "a9fe0efc94b72ca11003940145ca4d48a8af32e5e9593d1a53757dd2eccacbb2"
  license "MIT"
  head "https://github.com/DarthSim/overmind.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "4841af6b8c882b52029d7c7a58bc0d5534bfb7f53f1b33b76d980f6197db954b"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "b96582ea0b7adb01d40b4429beaac118bb090bb856f3579a9a63c100cbc00546"
    sha256 cellar: :any_skip_relocation, monterey:       "ad3705236fde66360596bee1567ba806420d5b215a0ce51d206679ba360583ac"
    sha256 cellar: :any_skip_relocation, big_sur:        "5a1f67aff79d61c0ba2b46fa108ba1fdd8bf35252e897c9b81e54fa66c6d1b79"
    sha256 cellar: :any_skip_relocation, catalina:       "281b468e00c93a48d08a2288365a86cf3c4726ce9ab26777c07e903895c503d3"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "162e1a133b3a55c485c8149a375b442bc3e01ef1306f7f28fab381f7559225d7"
  end

  # Bump to 1.18 on the next release, if possible.
  depends_on "go@1.17" => :build
  depends_on "tmux"

  def install
    system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"overmind"
    prefix.install_metafiles
  end

  test do
    expected_message = "overmind: open ./Procfile: no such file or directory"
    assert_match expected_message, shell_output("#{bin}/overmind start 2>&1", 1)
    (testpath/"Procfile").write("test: echo 'test message'; sleep 1")
    expected_message = "test message"
    assert_match expected_message, shell_output("#{bin}/overmind start")
  end
end<commit_msg>overmind: use `go` to build<commit_after>class Overmind < Formula
  desc "Process manager for Procfile-based applications and tmux"
  homepage "https://github.com/DarthSim/overmind"
  url "https://github.com/DarthSim/overmind/archive/v2.3.0.tar.gz"
  sha256 "a9fe0efc94b72ca11003940145ca4d48a8af32e5e9593d1a53757dd2eccacbb2"
  license "MIT"
  head "https://github.com/DarthSim/overmind.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "4841af6b8c882b52029d7c7a58bc0d5534bfb7f53f1b33b76d980f6197db954b"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "b96582ea0b7adb01d40b4429beaac118bb090bb856f3579a9a63c100cbc00546"
    sha256 cellar: :any_skip_relocation, monterey:       "ad3705236fde66360596bee1567ba806420d5b215a0ce51d206679ba360583ac"
    sha256 cellar: :any_skip_relocation, big_sur:        "5a1f67aff79d61c0ba2b46fa108ba1fdd8bf35252e897c9b81e54fa66c6d1b79"
    sha256 cellar: :any_skip_relocation, catalina:       "281b468e00c93a48d08a2288365a86cf3c4726ce9ab26777c07e903895c503d3"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "162e1a133b3a55c485c8149a375b442bc3e01ef1306f7f28fab381f7559225d7"
  end

  depends_on "go" => :build
  depends_on "tmux"

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
    prefix.install_metafiles
  end

  test do
    expected_message = "overmind: open ./Procfile: no such file or directory"
    assert_match expected_message, shell_output("#{bin}/overmind start 2>&1", 1)
    (testpath/"Procfile").write("test: echo 'test message'; sleep 1")
    expected_message = "test message"
    assert_match expected_message, shell_output("#{bin}/overmind start")
  end
end
{'fraction_non_alphanumeric': 0.09267867518884369, 'fraction_numerical': 0.18884369552585706, 'mean_word_length': 5.6854368932038835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '5067798', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1407, 'n_words': 221}