<commit_before>class Ensmallen < Formula
  desc "Flexible C++ library for efficient mathematical optimization"
  homepage "https://ensmallen.org"
  url "https://github.com/mlpack/ensmallen/archive/2.15.1.tar.gz"
  sha256 "c2123487633f6711180e3b75b78cd78e3b58735bb14bf9ba99efe5ae72e61b0e"
  license "BSD-3-Clause"
  revision 1
  head "https://github.com/mlpack/ensmallen.git"

  bottle do
    sha256 cellar: :any_skip_relocation, big_sur:  "898ed64373a7bca9f23396704ca2823521fdbbd92842607803ef445ea9ab9a5d"
    sha256 cellar: :any_skip_relocation, catalina: "8a2e13ad95a4ecb25beab404dcd9ac25bfcba1d9d0ed1abfae07657ab4f284f3"
    sha256 cellar: :any_skip_relocation, mojave:   "67ca6c31a9b776d73dbc6326794d394b60d4f9d558fe5361f9793f04f2212859"
  end

  depends_on "cmake" => :build
  depends_on "armadillo"

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make", "install"
    end
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <ensmallen.hpp>
      using namespace ens;
      int main()<commit_msg>ensmallen 2.16.0<commit_after>class Ensmallen < Formula
  desc "Flexible C++ library for efficient mathematical optimization"
  homepage "https://ensmallen.org"
  url "https://github.com/mlpack/ensmallen/archive/2.16.0.tar.gz"
  sha256 "3fb2181a5335daf8ba4e8aaecf345dfcc69fdd13d29b05b7c98b8403612a1109"
  license "BSD-3-Clause"
  head "https://github.com/mlpack/ensmallen.git"

  bottle do
    sha256 cellar: :any_skip_relocation, big_sur:  "898ed64373a7bca9f23396704ca2823521fdbbd92842607803ef445ea9ab9a5d"
    sha256 cellar: :any_skip_relocation, catalina: "8a2e13ad95a4ecb25beab404dcd9ac25bfcba1d9d0ed1abfae07657ab4f284f3"
    sha256 cellar: :any_skip_relocation, mojave:   "67ca6c31a9b776d73dbc6326794d394b60d4f9d558fe5361f9793f04f2212859"
  end

  depends_on "cmake" => :build
  depends_on "armadillo"

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make", "install"
    end
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <ensmallen.hpp>
      using namespace ens;
      int main()
{'fraction_non_alphanumeric': 0.09613572101790764, 'fraction_numerical': 0.1644674835061263, 'mean_word_length': 4.616402116402116, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '6469816', 'n_tokens_mistral': 1060, 'n_tokens_neox': 890, 'n_words': 138}