<commit_before>class Pybind11 < Formula
  desc "Seamless operability between C++11 and Python"
  homepage "https://github.com/pybind/pybind11"
  url "https://github.com/pybind/pybind11/archive/v2.4.3.tar.gz"
  sha256 "1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d"
  revision 1

  bottle do
    cellar :any_skip_relocation
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :catalina
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :mojave
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :high_sierra
  end

  depends_on "cmake" => :build
  depends_on "python@3.8"

  def install
    system "cmake", ".", "-DPYBIND11_TEST=OFF", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"example.cpp").write <<~EOS
      #include <pybind11/pybind11.h>

      int add(int i, int j) {
          return i + j;
      }
      namespace py = pybind11;
      PYBIND11_PLUGIN(example) {
          py::module m("example", "pybind11 example plugin");
          m.def("add", &add, "A function which adds two numbers");
          return m.ptr();<commit_msg>pybind11: update 2.4.3_1 bottle.<commit_after>class Pybind11 < Formula
  desc "Seamless operability between C++11 and Python"
  homepage "https://github.com/pybind/pybind11"
  url "https://github.com/pybind/pybind11/archive/v2.4.3.tar.gz"
  sha256 "1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d"
  revision 1

  bottle do
    cellar :any_skip_relocation
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :catalina
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :mojave
    sha256 "357184f4161f7aafcef838d1d8c6f1c395aae46437adf532701687642257e0d0" => :high_sierra
    sha256 "479d93d862c0e0fbd297d3e3c161ae2053162d5dfbb13ade5fa917bfbdf0d639" => :x86_64_linux
  end

  depends_on "cmake" => :build
  depends_on "python@3.8"

  def install
    system "cmake", ".", "-DPYBIND11_TEST=OFF", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"example.cpp").write <<~EOS
      #include <pybind11/pybind11.h>

      int add(int i, int j) {
          return i + j;
      }
      namespace py = pybind11;
      PYBIND11_PLUGIN(example) {
          py::module m("example", "pybind11 example plugin");
          m.def("add", &add, "A function which adds two numbers");
          return m.ptr();
{'fraction_non_alphanumeric': 0.10656401944894651, 'fraction_numerical': 0.18760129659643435, 'mean_word_length': 3.92814371257485, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, 'https://': 4, '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': '613648', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1034, 'n_words': 165}