<commit_before>class Trivy < Formula
  desc "Vulnerability scanner for container images, file systems, and Git repos"
  homepage "https://aquasecurity.github.io/trivy/"
  url "https://github.com/aquasecurity/trivy/archive/v0.25.0.tar.gz"
  sha256 "42c956ec41dad926437f099c983d24029713a18a3d3a26706f1db64df8f1dd20"
  license "Apache-2.0"
  head "https://github.com/aquasecurity/trivy.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "b5a473c8090790bbb45a7aeb5d878008d03a7986fce4142973ddf2682cfb900c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "92f5fb6ce130f23c9696cd03f0aefd6d1696aabd0951a2a54d53cea2dc3a1dd2"
    sha256 cellar: :any_skip_relocation, monterey:       "1b834e550b178eea1a89c3bb230e8f1554b09a093e389da912bfa49a57343250"
    sha256 cellar: :any_skip_relocation, big_sur:        "a09afa0cec5531c92602690fca2b85712b71d61ac82e68f10950f14bbbdc35bc"
    sha256 cellar: :any_skip_relocation, catalina:       "5ba2e4ab7b8a80d5b13e67370e16230a26f7fb782bd52ebb7e94b631115d7be8"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "dc553b6e1bcbb8d39aa687f79a94109a977e89e971377355f6ebf1563545b0a6"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X=main.version=#{version}"), "./cmd/trivy"
  end

  test do
    output = shell_output("#{bin}/trivy image alpine:3.10")
    assert_match(/\(UNKNOWN: \d+, LOW: \d+, MEDIUM: \d+, HIGH: \d+, CRITICAL: \d+\)/, output)

    assert_match version.to_s, shell_output("#{bin}/trivy --version")
  end
end<commit_msg>trivy: update 0.25.0 bottle.<commit_after>class Trivy < Formula
  desc "Vulnerability scanner for container images, file systems, and Git repos"
  homepage "https://aquasecurity.github.io/trivy/"
  url "https://github.com/aquasecurity/trivy/archive/v0.25.0.tar.gz"
  sha256 "42c956ec41dad926437f099c983d24029713a18a3d3a26706f1db64df8f1dd20"
  license "Apache-2.0"
  head "https://github.com/aquasecurity/trivy.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "510800c0ee69bfb0ba996af434fed8ad8ae6dee8dd8509a27392f710020dc5be"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "0dc0407cbdb9c903b7002ec39a94a6aa5c845ad79f20b3662716d57443a62493"
    sha256 cellar: :any_skip_relocation, monterey:       "c748d51652cea8737817d1717c34ee253e2e9575625a12da21dd431d61f858c1"
    sha256 cellar: :any_skip_relocation, big_sur:        "d4bad70a9b11513068207d7de865c5b907b287609593b4af3b3380645f283a7f"
    sha256 cellar: :any_skip_relocation, catalina:       "2dc7abd0a511a87d4d397d9a8002597dd57dbbb861d7a0d442194914876f2d10"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e2e6ecdb3848f791e9dc6d15bf552e4be2edae48e8574a2011331e8b52548d62"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X=main.version=#{version}"), "./cmd/trivy"
  end

  test do
    output = shell_output("#{bin}/trivy image alpine:3.10")
    assert_match(/\(UNKNOWN: \d+, LOW: \d+, MEDIUM: \d+, HIGH: \d+, CRITICAL: \d+\)/, output)

    assert_match version.to_s, shell_output("#{bin}/trivy --version")
  end
end
{'fraction_non_alphanumeric': 0.10819360961720974, 'fraction_numerical': 0.20658019614046189, 'mean_word_length': 5.546583850931677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1252907', 'n_tokens_mistral': 1751, 'n_tokens_neox': 1403, 'n_words': 194}