<commit_before>class Cppcheck < Formula
  desc "Static analysis of C and C++ code"
  homepage "https://sourceforge.net/projects/cppcheck/"
  url "https://github.com/danmar/cppcheck/archive/2.6.2.tar.gz"
  sha256 "a11602c15bf951ba5bb67655ca6c06986ec64770d8004759a8c53db013286a5e"
  license "GPL-3.0-or-later"
  head "https://github.com/danmar/cppcheck.git", branch: "main"

  bottle do
    sha256 arm64_monterey: "418c14f59b8d49cd92a2de7b5c4b0e893e76a2597bd8789a50c6a7a5e4ff5d69"
    sha256 arm64_big_sur:  "1a3052dacdf2a1df70b1114d938a31fda279e1d612d6b6b5d086551d4d4a26e7"
    sha256 monterey:       "accad7769ff41bdeeb72cac7b9ba1f569c8aa41739865b10ae0a0996a81218ef"
    sha256 big_sur:        "34cb3e3f3ffa98d28f44f1e9d45d5b11318d4e0cabf9edc3e2a0b0b29ca4a62e"
    sha256 catalina:       "185448ec2623f7025ed897171b861ac7404c2fe645f63c3898512de457a7493c"
    sha256 x86_64_linux:   "a1eb6e452a5b90850394c773e53ebe8974644d9dfa9e978a95f90154e38bf6dd"
  end

  depends_on "cmake" => :build
  depends_on "python@3.10" => [:build, :test]
  depends_on "pcre"
  depends_on "tinyxml2"

  uses_from_macos "libxml2"

  def install
    args = std_cmake_args + %W[
      -DHAVE_RULES=ON
      -DUSE_MATCHCOMPILER=ON
      -DUSE_BUNDLED_TINYXML2=OFF
      -DENABLE_OSS_FUZZ=OFF
      -DPYTHON_EXECUTABLE=#{Formula["python@3.10"].opt_bin}/python3
    ]
    system "cmake", "-S", ".", "-B", "build", *args<commit_msg>cppcheck: update 2.6.2 bottle.<commit_after>class Cppcheck < Formula
  desc "Static analysis of C and C++ code"
  homepage "https://sourceforge.net/projects/cppcheck/"
  url "https://github.com/danmar/cppcheck/archive/2.6.2.tar.gz"
  sha256 "a11602c15bf951ba5bb67655ca6c06986ec64770d8004759a8c53db013286a5e"
  license "GPL-3.0-or-later"
  head "https://github.com/danmar/cppcheck.git", branch: "main"

  bottle do
    rebuild 1
    sha256 arm64_monterey: "f4da87edb5b0f7ac39f4353878ba67a7fa19d7abbe1a85e86d0d081a354a8072"
    sha256 arm64_big_sur:  "df6a2b656eddb174825ed82c5080256008a172bdb30c29134ad7609b5b53e44f"
    sha256 monterey:       "95762a9e964a134b830fe548f8bd0a6e0f5b56aa7b14bd55c850afb63a41e865"
    sha256 big_sur:        "dabffb39a50ebdabdb4984e00cf6c4f3304c187eb8b92f37a7edadad66eac3a8"
    sha256 catalina:       "0109ebdaab7873b91665ad77d2e657da84f0de7c3660140b32bbe4493ecd185e"
    sha256 x86_64_linux:   "128a0b5b622565b18848403e77ac9432ae79cb5d926f8408019f16c47f53c776"
  end

  depends_on "cmake" => :build
  depends_on "python@3.10" => [:build, :test]
  depends_on "pcre"
  depends_on "tinyxml2"

  uses_from_macos "libxml2"

  def install
    args = std_cmake_args + %W[
      -DHAVE_RULES=ON
      -DUSE_MATCHCOMPILER=ON
      -DUSE_BUNDLED_TINYXML2=OFF
      -DENABLE_OSS_FUZZ=OFF
      -DPYTHON_EXECUTABLE=#{Formula["python@3.10"].opt_bin}/python3
    ]
    system "cmake", "-S", ".", "-B", "build", *args
{'fraction_non_alphanumeric': 0.0980599647266314, 'fraction_numerical': 0.22857142857142856, 'mean_word_length': 4.7995910020449895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7514473', 'n_tokens_mistral': 1647, 'n_tokens_neox': 1338, 'n_words': 150}