<commit_before>class Fizz < Formula
  desc "C++14 implementation of the TLS-1.3 standard"
  homepage "https://github.com/facebookincubator/fizz"
  url "https://github.com/facebookincubator/fizz/releases/download/v2021.05.31.00/fizz-v2021.05.31.00.tar.gz"
  sha256 "d95050d02586e30c71f3a517cca619a6e415932b438ff20a62ee3192a389276a"
  license "BSD-2-Clause"
  head "https://github.com/facebookincubator/fizz.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "9b73956d123c9c59676d608e16ca7425e1c8ab7f2101b9baf502d493de2bd067"
    sha256 cellar: :any, big_sur:       "3c2c50b6bc0de6185dd68e2289521869f0a69329e48a04e8cf21c6189f59a365"
    sha256 cellar: :any, catalina:      "7aa99da93515cc0232c25a883a79dda7ac52c477cdc3b56e8f8352b4b38d0050"
    sha256 cellar: :any, mojave:        "d5f47c5e08e3f24abcb2df9f69eda164f2be621a0b597a3e5c10bdb6b6571f26"
  end

  depends_on "cmake" => :build
  depends_on "boost"
  depends_on "double-conversion"
  depends_on "fmt"
  depends_on "folly"
  depends_on "gflags"
  depends_on "glog"
  depends_on "libevent"
  depends_on "libsodium"
  depends_on "lz4"
  depends_on "openssl@1.1"
  depends_on "snappy"
  depends_on "zstd"

  def install
    mkdir "fizz/build" do
      system "cmake", "..", "-DBUILD_TESTS=OFF", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args
      system "make"
      system "make", "install"
    end
  end

  test do
    (testpath/"test.cpp").write <<~EOS<commit_msg>fizz: update 2021.05.31.00 bottle.<commit_after>class Fizz < Formula
  desc "C++14 implementation of the TLS-1.3 standard"
  homepage "https://github.com/facebookincubator/fizz"
  url "https://github.com/facebookincubator/fizz/releases/download/v2021.05.31.00/fizz-v2021.05.31.00.tar.gz"
  sha256 "d95050d02586e30c71f3a517cca619a6e415932b438ff20a62ee3192a389276a"
  license "BSD-2-Clause"
  head "https://github.com/facebookincubator/fizz.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "eae2abe300587efdb4403f9bdd3bce52d5841bdb741e906652c0c69dcc9265da"
    sha256 cellar: :any, big_sur:       "c5f122e68d7e0453868a9d2b82a0249acce25f1c99a1084c8e602d395a4087a0"
    sha256 cellar: :any, catalina:      "f2599515666dfc0499c9ae546f028e4d7ce9815f8c080418334f946d58be75ac"
    sha256 cellar: :any, mojave:        "f6be66a267cbc62a39c35d3a44fc389161c6aa5411e15242f3f84876698a4531"
  end

  depends_on "cmake" => :build
  depends_on "boost"
  depends_on "double-conversion"
  depends_on "fmt"
  depends_on "folly"
  depends_on "gflags"
  depends_on "glog"
  depends_on "libevent"
  depends_on "libsodium"
  depends_on "lz4"
  depends_on "openssl@1.1"
  depends_on "snappy"
  depends_on "zstd"

  def install
    mkdir "fizz/build" do
      system "cmake", "..", "-DBUILD_TESTS=OFF", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args
      system "make"
      system "make", "install"
    end
  end

  test do
    (testpath/"test.cpp").write <<~EOS
{'fraction_non_alphanumeric': 0.10583304226336011, 'fraction_numerical': 0.18057981138665735, 'mean_word_length': 4.59375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2076920', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1272, 'n_words': 184}