<commit_before>class Counterfeiter < Formula
  desc "Tool for generating self-contained, type-safe test doubles in go"
  homepage "https://github.com/maxbrunsfeld/counterfeiter"
  url "https://github.com/maxbrunsfeld/counterfeiter/archive/v6.4.0.tar.gz"
  sha256 "cbb75133727683541a3498af5b6018ee3ea766c9b5910c765aa089b54e0c5986"
  license "MIT"
  head "https://github.com/maxbrunsfeld/counterfeiter.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "efb0f3b05250940e413d114240ec8c7ea8bd1d1437242107453004203ab10aa7"
    sha256 cellar: :any_skip_relocation, big_sur:       "1497cd531374df0a80418654e677d9c9e9bbe398739440b56059a36702357c58"
    sha256 cellar: :any_skip_relocation, catalina:      "41e2478e7d5b8b1bd4447b16c58c35b47ad6004cff416d0a229343d6bf02905f"
    sha256 cellar: :any_skip_relocation, mojave:        "042899c932431096e11d01f728c71c04055b659d7e0bd3fe9576868e7c91f329"
  end

  depends_on "go"

  def install
    system "go", "build", *std_go_args
  end

  test do
    output = shell_output("#{bin}/counterfeiter -p os 2>&1", 1)
    assert_match "Writing `Os` to `osshim`...", output

    output = shell_output("#{bin}/counterfeiter -generate 2>&1", 1)
    assert_match "no buildable Go source files", output
  end
end<commit_msg>counterfeiter 6.4.1<commit_after>class Counterfeiter < Formula
  desc "Tool for generating self-contained, type-safe test doubles in go"
  homepage "https://github.com/maxbrunsfeld/counterfeiter"
  url "https://github.com/maxbrunsfeld/counterfeiter/archive/v6.4.1.tar.gz"
  sha256 "bd51c80ad44881ae2008e50540fcb95a3f8e84104ee230aee86acf78c2c24bf6"
  license "MIT"
  head "https://github.com/maxbrunsfeld/counterfeiter.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "efb0f3b05250940e413d114240ec8c7ea8bd1d1437242107453004203ab10aa7"
    sha256 cellar: :any_skip_relocation, big_sur:       "1497cd531374df0a80418654e677d9c9e9bbe398739440b56059a36702357c58"
    sha256 cellar: :any_skip_relocation, catalina:      "41e2478e7d5b8b1bd4447b16c58c35b47ad6004cff416d0a229343d6bf02905f"
    sha256 cellar: :any_skip_relocation, mojave:        "042899c932431096e11d01f728c71c04055b659d7e0bd3fe9576868e7c91f329"
  end

  depends_on "go"

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

  test do
    ENV["GOROOT"] = Formula["go"].opt_libexec

    output = shell_output("#{bin}/counterfeiter -p os 2>&1")
    assert_predicate testpath/"osshim", :exist?
    assert_match "Writing `Os` to `osshim/os.go`...", output

    output = shell_output("#{bin}/counterfeiter -generate 2>&1", 1)
    assert_match "no buildable Go source files", output
  end
end
{'fraction_non_alphanumeric': 0.09684684684684684, 'fraction_numerical': 0.18956456456456455, 'mean_word_length': 5.2266355140186915, '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': '4405424', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1082, 'n_words': 172}