<commit_before>class Curlpp < Formula
  desc "C++ wrapper for libcURL"
  homepage "https://www.curlpp.org/"
  url "https://github.com/jpbarrette/curlpp/archive/v0.8.1.tar.gz"
  sha256 "97e3819bdcffc3e4047b6ac57ca14e04af85380bd93afe314bee9dd5c7f46a0a"
  license "MIT"
  revision 1

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "dd317f246e6c52b7cee844de9d5b89657d80c1a11442247da4a161c5fb31254b"
    sha256 cellar: :any,                 arm64_monterey: "54e27231617bfb44e79dbd5c5b87417f75ebeadf926b411c7b754cec0f07791e"
    sha256 cellar: :any,                 arm64_big_sur:  "f727b823c94be8f12ab6ba0eb8ac326b19ac823f3313b9ff0a8ab43c1a21a4ec"
    sha256 cellar: :any,                 monterey:       "e4e260f62f4423cb3ab661ace60b9c91ed9baca9587358354b84308d259e9d11"
    sha256 cellar: :any,                 big_sur:        "1629615065defd61af8480c484f801e47e35c268defee303929003f7170d30ee"
    sha256 cellar: :any,                 catalina:       "d3ca609dae4e9f2038c6cd39ce0123fc8eb70bc235519079d526d529cedf0878"
    sha256 cellar: :any,                 mojave:         "206a7c8881489554e00c1a365b58a7c39922e5d66fca19b3f7296eb7472ef220"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "153ec80016a3e3facefae210363b28287e74f885898b7174cd01d46459302b32"
  end

  depends_on "cmake" => :build

  uses_from_macos "curl"

  def install
    ENV.cxx11
    system "cmake", ".", *std_cmake_args
    system "make", "install"
    inreplace bin/"curlpp-config", Superenv.shims_path/ENV.cc, ENV.cc
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <curlpp/cURLpp.hpp>
      #include <curlpp/Easy.hpp><commit_msg>curlpp: update 0.8.1_1 bottle.<commit_after>class Curlpp < Formula
  desc "C++ wrapper for libcURL"
  homepage "https://www.curlpp.org/"
  url "https://github.com/jpbarrette/curlpp/archive/v0.8.1.tar.gz"
  sha256 "97e3819bdcffc3e4047b6ac57ca14e04af85380bd93afe314bee9dd5c7f46a0a"
  license "MIT"
  revision 1

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "dd317f246e6c52b7cee844de9d5b89657d80c1a11442247da4a161c5fb31254b"
    sha256 cellar: :any,                 arm64_monterey: "54e27231617bfb44e79dbd5c5b87417f75ebeadf926b411c7b754cec0f07791e"
    sha256 cellar: :any,                 arm64_big_sur:  "f727b823c94be8f12ab6ba0eb8ac326b19ac823f3313b9ff0a8ab43c1a21a4ec"
    sha256 cellar: :any,                 ventura:        "89ec170a151056a46d8cdd4de90cc2cc199636f18f364321bcadc40a24d8b694"
    sha256 cellar: :any,                 monterey:       "e4e260f62f4423cb3ab661ace60b9c91ed9baca9587358354b84308d259e9d11"
    sha256 cellar: :any,                 big_sur:        "1629615065defd61af8480c484f801e47e35c268defee303929003f7170d30ee"
    sha256 cellar: :any,                 catalina:       "d3ca609dae4e9f2038c6cd39ce0123fc8eb70bc235519079d526d529cedf0878"
    sha256 cellar: :any,                 mojave:         "206a7c8881489554e00c1a365b58a7c39922e5d66fca19b3f7296eb7472ef220"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "153ec80016a3e3facefae210363b28287e74f885898b7174cd01d46459302b32"
  end

  depends_on "cmake" => :build

  uses_from_macos "curl"

  def install
    ENV.cxx11
    system "cmake", ".", *std_cmake_args
    system "make", "install"
    inreplace bin/"curlpp-config", Superenv.shims_path/ENV.cc, ENV.cc
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <curlpp/cURLpp.hpp>
      #include <curlpp/Easy.hpp>
{'fraction_non_alphanumeric': 0.08006962576153177, 'fraction_numerical': 0.24920220481578184, 'mean_word_length': 3.5548216644649933, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '6767669', 'n_tokens_mistral': 1967, 'n_tokens_neox': 1488, 'n_words': 183}