<commit_before>class Libmowgli < Formula
  desc "Core framework for Atheme applications"
  homepage "https://github.com/atheme/libmowgli-2"
  url "https://github.com/atheme/libmowgli-2/archive/v2.1.3.tar.gz"
  sha256 "b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477"
  license "ISC"
  revision 1
  head "https://github.com/atheme/libmowgli-2.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "fe4733bd50b52c347b5f4f4af0e0126454227646a0851a15b01bd4dc90637f50"
    sha256 cellar: :any, big_sur:       "71b4314960c13147708edb90db5ea48f339dcdecd2e5bb0273f831066913ad84"
    sha256 cellar: :any, catalina:      "02bbaff929fa3e3967ec4184ce36fcf71ece1dca9aeedad67ca3c9533495fa52"
    sha256 cellar: :any, mojave:        "68656add47085df19786c9d419d7dd2e880514f3a5fa63838362ef92807c3420"
    sha256 cellar: :any, high_sierra:   "061c1fc5a942024894205ee47a5ffc41fae5dde42ca6b744f66dad5d4a2e60fe"
    sha256 cellar: :any, sierra:        "a83b21ccd87a25d26122ab813afbd24ef6bc07e6c92b16db11813d4fab71a055"
  end

  depends_on "openssl@1.1"

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--with-openssl=#{Formula["openssl@1.1"].opt_prefix}"
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<~EOS
      #include <mowgli.h>

      int main(int argc, char *argv[]) {<commit_msg>libmowgli: update 2.1.3_1 bottle.<commit_after>class Libmowgli < Formula
  desc "Core framework for Atheme applications"
  homepage "https://github.com/atheme/libmowgli-2"
  url "https://github.com/atheme/libmowgli-2/archive/v2.1.3.tar.gz"
  sha256 "b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477"
  license "ISC"
  revision 1
  head "https://github.com/atheme/libmowgli-2.git"

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "fe4733bd50b52c347b5f4f4af0e0126454227646a0851a15b01bd4dc90637f50"
    sha256 cellar: :any,                 big_sur:       "71b4314960c13147708edb90db5ea48f339dcdecd2e5bb0273f831066913ad84"
    sha256 cellar: :any,                 catalina:      "02bbaff929fa3e3967ec4184ce36fcf71ece1dca9aeedad67ca3c9533495fa52"
    sha256 cellar: :any,                 mojave:        "68656add47085df19786c9d419d7dd2e880514f3a5fa63838362ef92807c3420"
    sha256 cellar: :any,                 high_sierra:   "061c1fc5a942024894205ee47a5ffc41fae5dde42ca6b744f66dad5d4a2e60fe"
    sha256 cellar: :any,                 sierra:        "a83b21ccd87a25d26122ab813afbd24ef6bc07e6c92b16db11813d4fab71a055"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "c7646bd88a24aa8d426ec1cbbf4b32504f0f0c062f257c71b445349667f6bf34"
  end

  depends_on "openssl@1.1"

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--with-openssl=#{Formula["openssl@1.1"].opt_prefix}"
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<~EOS
      #include <mowgli.h>

      int main(int argc, char *argv[]) {
{'fraction_non_alphanumeric': 0.09829488465396188, 'fraction_numerical': 0.22400534938147776, 'mean_word_length': 3.802568218298555, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '2088393', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1269, 'n_words': 166}