<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.9.tar.gz"
  sha256 "56aee8b5bdf936ab7adc9ab43903ba2052f088695c80f047682024a1ed0ef3f3"
  license "GPL-3.0-or-later"
  head "https://github.com/danmar/cppcheck.git", branch: "main"

  bottle do
    sha256 arm64_monterey: "c234a9c49d1ae7ceb95d8181332f8287488d03d309f73be4ca5863f7729d4099"
    sha256 arm64_big_sur:  "030e44bec7a1e6385a5f8c662708d05f5cc583a6319aadab89c9d23e4fbb7c11"
    sha256 monterey:       "7546b0d85e6002e742660b17c771f003a1f422767a13bf964168b1d1051f9a33"
    sha256 big_sur:        "cfc01dbc5f45f9f1c820a3f2b347fdd0c07add03a6928848c1607723ffd0a2fe"
    sha256 catalina:       "ac86c2859cba86144bb4a522f64c05a711da0112fd311af4bdcdbf3acd0871d0"
    sha256 x86_64_linux:   "d7d11096c896ffee7b6e2ffba4cea90b27fd6a70e7106e50fe1ef58d4e04effc"
  end

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

  uses_from_macos "libxml2"

  def python3
    which("python3.10")
  end

  def install
    args = std_cmake_args + %W[
      -DHAVE_RULES=ON
      -DUSE_MATCHCOMPILER=ON
      -DUSE_BUNDLED_TINYXML2=OFF
      -DENABLE_OSS_FUZZ=OFF<commit_msg>cppcheck 2.9.1<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.9.1.tar.gz"
  sha256 "263fa3da28385f625ceb66857bbf9aff9947ff4ab6feb85c6f17cd7fe4779fe8"
  license "GPL-3.0-or-later"
  head "https://github.com/danmar/cppcheck.git", branch: "main"

  bottle do
    sha256 arm64_monterey: "c234a9c49d1ae7ceb95d8181332f8287488d03d309f73be4ca5863f7729d4099"
    sha256 arm64_big_sur:  "030e44bec7a1e6385a5f8c662708d05f5cc583a6319aadab89c9d23e4fbb7c11"
    sha256 monterey:       "7546b0d85e6002e742660b17c771f003a1f422767a13bf964168b1d1051f9a33"
    sha256 big_sur:        "cfc01dbc5f45f9f1c820a3f2b347fdd0c07add03a6928848c1607723ffd0a2fe"
    sha256 catalina:       "ac86c2859cba86144bb4a522f64c05a711da0112fd311af4bdcdbf3acd0871d0"
    sha256 x86_64_linux:   "d7d11096c896ffee7b6e2ffba4cea90b27fd6a70e7106e50fe1ef58d4e04effc"
  end

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

  uses_from_macos "libxml2"

  def python3
    which("python3.10")
  end

  def install
    args = std_cmake_args + %W[
      -DHAVE_RULES=ON
      -DUSE_MATCHCOMPILER=ON
      -DUSE_BUNDLED_TINYXML2=OFF
      -DENABLE_OSS_FUZZ=OFF
{'fraction_non_alphanumeric': 0.08292313517606967, 'fraction_numerical': 0.23930329420673987, 'mean_word_length': 4.910514541387025, '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': '3783113', 'n_tokens_mistral': 1558, 'n_tokens_neox': 1264, 'n_words': 140}