<commit_before>class Curlcpp < Formula
  desc "Object oriented C++ wrapper for CURL (libcurl)"
  homepage "https://josephp91.github.io/curlcpp"
  url "https://github.com/JosephP91/curlcpp/archive/refs/tags/1.5.tar.gz"
  sha256 "d1c236be862965d5882a842be3112b16e7f49d6fdff9906f7aec71ee8669d60e"
  license "MIT"

  depends_on "cmake" => :build

  uses_from_macos "curl"

  def install
    system "cmake", "-S", ".", "-B", "build", *std_cmake_args
    system "cmake", "--build", "build"
    system "cmake", "--install", "build"
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <iostream>
      #include <ostream>

      #include "curlcpp/curl_easy.h"
      #include "curlcpp/curl_form.h"
      #include "curlcpp/curl_ios.h"
      #include "curlcpp/curl_exception.h"

      using std::cout;
      using std::endl;
      using std::ostringstream;

      using curl::curl_easy;<commit_msg>curlcpp: add 1.5 bottle.<commit_after>class Curlcpp < Formula
  desc "Object oriented C++ wrapper for CURL (libcurl)"
  homepage "https://josephp91.github.io/curlcpp"
  url "https://github.com/JosephP91/curlcpp/archive/refs/tags/1.5.tar.gz"
  sha256 "d1c236be862965d5882a842be3112b16e7f49d6fdff9906f7aec71ee8669d60e"
  license "MIT"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "87922690e232f15e852f33a4636e9b9a4f8458b1c244c4b8465d80c09bd9522c"
    sha256 cellar: :any,                 arm64_big_sur:  "f6980da3dd9bf14016f7e7832e4981ea87d077958e2dc225eb4eacc3ddef87bf"
    sha256 cellar: :any,                 monterey:       "deeef2d85d2923bc14f62f48e91b2581e028de97c6c087e41868b2e7c27eb055"
    sha256 cellar: :any,                 big_sur:        "205dbd2d04e1b71c31d53d7e331bb27745d05329dd87426ac5906a489cb88755"
    sha256 cellar: :any,                 catalina:       "73d4a493d900c4d5b03e4fe0eb1b657f84075404c8ceb45ce116e36af169de85"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "36a715a64edbd313a814be1d7b31aa792290a1828fef45a0ff4e1c06f3eaa37a"
  end

  depends_on "cmake" => :build

  uses_from_macos "curl"

  def install
    system "cmake", "-S", ".", "-B", "build", *std_cmake_args
    system "cmake", "--build", "build"
    system "cmake", "--install", "build"
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <iostream>
      #include <ostream>

      #include "curlcpp/curl_easy.h"
      #include "curlcpp/curl_form.h"
      #include "curlcpp/curl_ios.h"
      #include "curlcpp/curl_exception.h"

      using std::cout;
      using std::endl;
      using std::ostringstream;

      using curl::curl_easy;
{'fraction_non_alphanumeric': 0.11648606811145511, 'fraction_numerical': 0.14280185758513933, 'mean_word_length': 3.456896551724138, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '3781067', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1022, 'n_words': 165}