<commit_before>class Libvatek < Formula
  desc "User library to control VATek chips"
  homepage "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2"
  url "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2/archive/v3.07.tar.gz"
  sha256 "4b65b89ef4aa010f987ef9b59cae06903fd2d086d4f7346c53402efeb9035d3f"
  license "BSD-2-Clause"
  head "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2.git", branch: "main"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "96da317a59c8873a93302b32ddf1eb78a480c4c8bb6a73317ffceebbc539dd9b"
    sha256 cellar: :any,                 arm64_big_sur:  "78b685a5b746122d5e4ed06e3e865b65ad26eab10aef75bd29ff42085e66d6c3"
    sha256 cellar: :any,                 monterey:       "e63e70729565a12f45264e222a66a589ea233a14907996fac1f1f75a99355dee"
    sha256 cellar: :any,                 big_sur:        "14b4c46d76b5814871c1de3957d517e7d42b35fde4da0e933f93bcd7bb05be9a"
    sha256 cellar: :any,                 catalina:       "28e75865e5dcca69a9f65b353cc63cc9c3b24f6c9f04199093ab48c0943dae04"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "cc0d323290079069b38c71f89b9f02aa8ee987c930c0bb4de6e808a3d6bdab8d"
  end

  depends_on "cmake" => :build
  depends_on "libusb"

  def install
    system "cmake", "-S", ".", "-B", "builddir",
                    "-DSDK2_EN_QT=OFF", "-DSDK2_EN_APP=OFF", "-DSDK2_EN_SAMPLE=OFF",
                    *std_cmake_args
    system "cmake", "--build", "builddir"
    system "cmake", "--install", "builddir"
  end

  test do
    (testpath/"vatek_test.c").write <<~EOS
      #include <vatek_sdk_device.h>
      #include <stdio.h>
      #include <stdlib.h>

      int main()
      {
          hvatek_devices hdevices = NULL;<commit_msg>libvatek: update 3.07 bottle.<commit_after>class Libvatek < Formula
  desc "User library to control VATek chips"
  homepage "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2"
  url "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2/archive/v3.07.tar.gz"
  sha256 "4b65b89ef4aa010f987ef9b59cae06903fd2d086d4f7346c53402efeb9035d3f"
  license "BSD-2-Clause"
  head "https://github.com/VisionAdvanceTechnologyInc/vatek_sdk_2.git", branch: "main"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "bd9c3029551adc22d05acef0fb78f322c6505cce46d40b50b2486b1c3466a4eb"
    sha256 cellar: :any,                 arm64_big_sur:  "65158bde78c394806c6232ddca909c881a9192088df753f9e65ac5f0afa977f0"
    sha256 cellar: :any,                 monterey:       "81118b84a4a2e089c5ce48920ed5bd79e2f1474124d9f241cc1f0f800e1aafa0"
    sha256 cellar: :any,                 big_sur:        "f007eff965c0108c4ffae27a3f056de3f823a9034cbfc37e268391c70bd9f1c5"
    sha256 cellar: :any,                 catalina:       "e29b6c6fec04b8b6321e31b3e9b3f6926d3f51b00bfae03502de40d690a34834"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b3068685b9da4d718785ef18b75d3baae25003b3a6976c48f4a6fa2cdd468786"
  end

  depends_on "cmake" => :build
  depends_on "libusb"

  def install
    system "cmake", "-S", ".", "-B", "builddir",
                    "-DSDK2_EN_QT=OFF", "-DSDK2_EN_APP=OFF", "-DSDK2_EN_SAMPLE=OFF",
                    *std_cmake_args
    system "cmake", "--build", "builddir"
    system "cmake", "--install", "builddir"
  end

  test do
    (testpath/"vatek_test.c").write <<~EOS
      #include <vatek_sdk_device.h>
      #include <stdio.h>
      #include <stdlib.h>

      int main()
      {
          hvatek_devices hdevices = NULL;
{'fraction_non_alphanumeric': 0.09783228750713063, 'fraction_numerical': 0.18083285795778664, 'mean_word_length': 3.450507614213198, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, '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': '2441174', 'n_tokens_mistral': 1827, 'n_tokens_neox': 1462, 'n_words': 192}