<commit_before>class Tm < Formula
  desc "TriggerMesh CLI to work with knative objects"
  homepage "https://triggermesh.com"
  url "https://github.com/triggermesh/tm/archive/v1.13.0.tar.gz"
  sha256 "f05aff83e3ba52bfc3a8d54e934e0578cefae987391937e843fc4a78e41203eb"
  license "Apache-2.0"
  head "https://github.com/triggermesh/tm.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "7070f94d34159ce7b01dbb92fc2b60904c0c74181a733844a22024e1b48403de"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "3bc5301e8d8a7b69b141d5fd35532cb291581ae9ed0c5527ea616a7d5629a9c6"
    sha256 cellar: :any_skip_relocation, monterey:       "794efa6b502fe00a1c85ac832c34925f5cb5a2962e872e13d7f1f2e3c42ef134"
    sha256 cellar: :any_skip_relocation, big_sur:        "b2ebb6f6d1b57643639fd28b955f4ebacd1142366f119696e566b3a233675b54"
    sha256 cellar: :any_skip_relocation, catalina:       "86ffbc39f432451cdf042994d9912958ddaf11d67b35955bd497681d9a970f19"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "ee2936f679c2a86b54d5f222179bf88824007fe42278e6bb873c448f32168c49"
  end

  depends_on "go" => :build

  def install
    ldflags = %W[
      -s -w
      -X github.com/triggermesh/tm/cmd.version=v#{version}
    ].join(" ")

    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    (testpath/"kubeconfig").write <<~EOS
      apiVersion: v1
      clusters:
      - cluster:
          certificate-authority-data: test
          server: http://127.0.0.1:8080
        name: test<commit_msg>tm: update 1.13.0 bottle.<commit_after>class Tm < Formula
  desc "TriggerMesh CLI to work with knative objects"
  homepage "https://triggermesh.com"
  url "https://github.com/triggermesh/tm/archive/v1.13.0.tar.gz"
  sha256 "f05aff83e3ba52bfc3a8d54e934e0578cefae987391937e843fc4a78e41203eb"
  license "Apache-2.0"
  head "https://github.com/triggermesh/tm.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "53c6992c549c1806cff5bd706ffe18bfe89c2b97b2a446e29b531d329dca1a0d"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "583416efe2ce6179dc7ef2adc5a3605862efeeb71de8eb142164c933489d6bcc"
    sha256 cellar: :any_skip_relocation, monterey:       "3f87470ac28b45dd12056ae83cb0e80ee08b4af21384c7ba411b64a86c32273e"
    sha256 cellar: :any_skip_relocation, big_sur:        "34349e144e14b8151acf31b52c615e17f312502a0646d722858a3b1b851329f0"
    sha256 cellar: :any_skip_relocation, catalina:       "d644a1c8bfba10098675d0967cf43bb5dba5d0607cfe5621f2f61356f0ea1c50"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "6e0320a4713bc4adf6cde486dbec454439f11d7b0047aa85f2ed61e86f6f3e27"
  end

  depends_on "go" => :build

  def install
    ldflags = %W[
      -s -w
      -X github.com/triggermesh/tm/cmd.version=v#{version}
    ].join(" ")

    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    (testpath/"kubeconfig").write <<~EOS
      apiVersion: v1
      clusters:
      - cluster:
          certificate-authority-data: test
          server: http://127.0.0.1:8080
        name: test
{'fraction_non_alphanumeric': 0.0927237604636188, 'fraction_numerical': 0.2163554410817772, 'mean_word_length': 4.441330998248686, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3043026', 'n_tokens_mistral': 1701, 'n_tokens_neox': 1352, 'n_words': 178}