<commit_before>class Cpprestsdk < Formula
  desc "C++ libraries for cloud-based client-server communication"
  homepage "https://github.com/Microsoft/cpprestsdk"
  url "https://github.com/Microsoft/cpprestsdk/archive/v2.9.0.tar.gz"
  sha256 "217a41c7ff2bab82c372a120cbdb350371065df464d06bba1adbeb1590736e3e"

  head "https://github.com/Microsoft/cpprestsdk.git", :branch => "development"

  bottle do
    cellar :any
    sha256 "49800ba45575a000f0dab63049c93c77e773d499975210e349034cc433857104" => :sierra
    sha256 "728e26aa3123b5c88e54ebe1e20c43be307f088fb7f1bf0afea7b1767f35423c" => :el_capitan
    sha256 "30121bc8ae67dfec5ab190645273d761d7902a5e1beea0ab00971e8c9a659c75" => :yosemite
  end

  depends_on "boost"
  depends_on "openssl"
  depends_on "cmake" => :build

  def install
    system "cmake", "-DBUILD_SAMPLES=OFF", "-DBUILD_TESTS=OFF", "Release", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.cc").write <<-EOS.undent
      #include <iostream>
      #include <cpprest/http_client.h>
      int main() {
        web::http::client::http_client client(U("https://github.com/"));<commit_msg>cpprestsdk 2.9.1<commit_after>class Cpprestsdk < Formula
  desc "C++ libraries for cloud-based client-server communication"
  homepage "https://github.com/Microsoft/cpprestsdk"
  url "https://github.com/Microsoft/cpprestsdk/archive/v2.9.1.tar.gz"
  sha256 "7097889965df48ec5799d6ed3b4f95f16ca82ee3512eb31db844d9df600bc899"

  head "https://github.com/Microsoft/cpprestsdk.git", :branch => "development"

  bottle do
    cellar :any
    sha256 "49800ba45575a000f0dab63049c93c77e773d499975210e349034cc433857104" => :sierra
    sha256 "728e26aa3123b5c88e54ebe1e20c43be307f088fb7f1bf0afea7b1767f35423c" => :el_capitan
    sha256 "30121bc8ae67dfec5ab190645273d761d7902a5e1beea0ab00971e8c9a659c75" => :yosemite
  end

  depends_on "boost"
  depends_on "openssl"
  depends_on "cmake" => :build

  def install
    system "cmake", "-DBUILD_SAMPLES=OFF", "-DBUILD_TESTS=OFF", "Release", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.cc").write <<-EOS.undent
      #include <iostream>
      #include <cpprest/http_client.h>
      int main() {
        web::http::client::http_client client(U("https://github.com/"));
{'fraction_non_alphanumeric': 0.12033377250768555, 'fraction_numerical': 0.16161616161616163, 'mean_word_length': 4.841025641025641, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 8, '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': '2809005', 'n_tokens_mistral': 1110, 'n_tokens_neox': 917, 'n_words': 130}