<commit_before>class Ipopt < Formula
  desc "Interior point optimizer"
  homepage "https://projects.coin-or.org/Ipopt/"
  url "https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.12.tgz"
  sha256 "7baeb713ef8d1999bed397b938e9654b38ad536406634384455372dd7e4ed61f"
  head "https://github.com/coin-or/Ipopt.git"

  depends_on "gcc"

  resource "mumps" do
    url "http://mumps.enseeiht.fr/MUMPS_5.1.2.tar.gz"
    sha256 "eb345cda145da9aea01b851d17e54e7eef08e16bfa148100ac1f7f046cd42ae9"

    # MUMPS does not provide a Makefile.inc customized for macOS.
    patch :DATA
  end

  def install
    ENV.delete("MPICC")
    ENV.delete("MPICXX")
    ENV.delete("MPIFC")

    resource("mumps").stage do
      cp "Make.inc/Makefile.inc.generic.SEQ", "Makefile.inc"
      inreplace "Makefile.inc", "@rpath/", "#{opt_lib}/"

      ENV.deparallelize { system "make", "d" }

      (buildpath/"mumps_include").install Dir["include/*.h", "libseq/mpi.h"]
      lib.install Dir["lib/*.dylib", "libseq/*.dylib", "PORD/lib/*.dylib"]
    end

    args = [
      "--disable-debug",
      "--disable-dependency-tracking",
      "--disable-silent-rules",<commit_msg>ipopt: add 3.12.12 bottle.<commit_after>class Ipopt < Formula
  desc "Interior point optimizer"
  homepage "https://projects.coin-or.org/Ipopt/"
  url "https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.12.tgz"
  sha256 "7baeb713ef8d1999bed397b938e9654b38ad536406634384455372dd7e4ed61f"
  head "https://github.com/coin-or/Ipopt.git"

  bottle do
    cellar :any
    sha256 "f04b63cf90bfb1d868e3f71f849ad46337aacb13319a2fba145802c709f68b02" => :mojave
    sha256 "06e669ed165b99e60cad6b244ef198b68dbb02d1a85682deecfb3447b099107c" => :high_sierra
    sha256 "0124e013061dd0a98b29ae71a6be82a76c249b00e9c0b7fbfaf0a5aefa969fbd" => :sierra
  end

  depends_on "gcc"

  resource "mumps" do
    url "http://mumps.enseeiht.fr/MUMPS_5.1.2.tar.gz"
    sha256 "eb345cda145da9aea01b851d17e54e7eef08e16bfa148100ac1f7f046cd42ae9"

    # MUMPS does not provide a Makefile.inc customized for macOS.
    patch :DATA
  end

  def install
    ENV.delete("MPICC")
    ENV.delete("MPICXX")
    ENV.delete("MPIFC")

    resource("mumps").stage do
      cp "Make.inc/Makefile.inc.generic.SEQ", "Makefile.inc"
      inreplace "Makefile.inc", "@rpath/", "#{opt_lib}/"

      ENV.deparallelize { system "make", "d" }

      (buildpath/"mumps_include").install Dir["include/*.h", "libseq/mpi.h"]
      lib.install Dir["lib/*.dylib", "libseq/*.dylib", "PORD/lib/*.dylib"]
    end

    args = [
      "--disable-debug",
      "--disable-dependency-tracking",
      "--disable-silent-rules",
{'fraction_non_alphanumeric': 0.14624808575803983, 'fraction_numerical': 0.11944869831546708, 'mean_word_length': 3.5922671353251316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, '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': '1252861', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1065, 'n_words': 148}