<commit_before>class Cppad < Formula
  desc "Differentiation of C++ Algorithms"
  homepage "http://www.coin-or.org/CppAD"
  url "http://www.coin-or.org/download/source/CppAD/cppad-20150000.2.epl.tgz"
  version "20150000"
  sha256 "972498b307aff88173c4616e8e57bd2d1360d929a5faf49e3611910a182376f7"
  revision 2

  head "https://github.com/coin-or/CppAD.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "4a51d4d59c548ce41596d562cb41dd10a4658e7470fad7b310ed1db783d49c48" => :el_capitan
    sha256 "3da403b2951ed807817e7960a0e0fd0d67ce2365a9f1ac7fe09549e1b48f73ac" => :yosemite
    sha256 "42654084feec968170f1e3a822146ebbeeb59327ae00f3ada247e49ee2e0db58" => :mavericks
  end

  option "with-eigen32", "Build with eigen support"
  option "with-openmp", "Build with OpenMP support"
  option "with-std", "Use std test vector"
  option "with-test", "Perform comprehensive tests (very slow w/out OpenMP)"

  deprecated_option "with-check" => "with-test"
  deprecated_option "with-eigen" => "with-eigen32"

  # Only one of --with-boost, --with-eigen32 and --with-std should be given.
  depends_on "adol-c" => :optional
  depends_on "boost" => :optional
  depends_on "cmake" => :build
  depends_on "homebrew/versions/eigen32" => :optional
  depends_on "ipopt" => :optional

  needs :cxx11 if build.with?("adol-c") || build.with?("ipopt")
  needs :openmp if build.with? "openmp"

  fails_with :gcc do
    build 5658
    cause <<-EOS.undent
      A bug in complex division causes failure of certain tests.
      See http://list.coin-or.org/pipermail/cppad/2013q1/000297.html
      EOS
  end

  def ipopt_options
    Tab.for_formula(Formula["ipopt"])<commit_msg>cppad: update 20150000_2 bottle.<commit_after>class Cppad < Formula
  desc "Differentiation of C++ Algorithms"
  homepage "http://www.coin-or.org/CppAD"
  url "http://www.coin-or.org/download/source/CppAD/cppad-20150000.2.epl.tgz"
  version "20150000"
  sha256 "972498b307aff88173c4616e8e57bd2d1360d929a5faf49e3611910a182376f7"
  revision 2

  head "https://github.com/coin-or/CppAD.git"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "27925b4549da9289ed26e8be0fac4f3234e0d64cac28e757770804cd7caea78e" => :sierra
    sha256 "a962cd3acde16b1dca3359f6f80fd6a33c72cae97dd094e19f897a563b2f2c46" => :el_capitan
    sha256 "27925b4549da9289ed26e8be0fac4f3234e0d64cac28e757770804cd7caea78e" => :yosemite
  end

  option "with-eigen32", "Build with eigen support"
  option "with-openmp", "Build with OpenMP support"
  option "with-std", "Use std test vector"
  option "with-test", "Perform comprehensive tests (very slow w/out OpenMP)"

  deprecated_option "with-check" => "with-test"
  deprecated_option "with-eigen" => "with-eigen32"

  # Only one of --with-boost, --with-eigen32 and --with-std should be given.
  depends_on "adol-c" => :optional
  depends_on "boost" => :optional
  depends_on "cmake" => :build
  depends_on "homebrew/versions/eigen32" => :optional
  depends_on "ipopt" => :optional

  needs :cxx11 if build.with?("adol-c") || build.with?("ipopt")
  needs :openmp if build.with? "openmp"

  fails_with :gcc do
    build 5658
    cause <<-EOS.undent
      A bug in complex division causes failure of certain tests.
      See http://list.coin-or.org/pipermail/cppad/2013q1/000297.html
      EOS
  end

  def ipopt_options
    Tab.for_formula(Formula["ipopt"])
{'fraction_non_alphanumeric': 0.11455847255369929, 'fraction_numerical': 0.13305489260143197, 'mean_word_length': 4.31378763866878, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '2024587', 'n_tokens_mistral': 1571, 'n_tokens_neox': 1336, 'n_words': 256}