<commit_before>class Nglib < Formula
  desc "C++ Library of NETGEN's tetrahedral mesh generator"
  homepage "https://sourceforge.net/projects/netgen-mesher/"
  url "https://downloads.sourceforge.net/project/netgen-mesher/netgen-mesher/5.3/netgen-5.3.1.tar.gz"
  sha256 "cb97f79d8f4d55c00506ab334867285cde10873c8a8dc783522b47d2bc128bf9"

  # These two conflict with each other, so we'll have at most one.
  depends_on "opencascade" => :optional
  depends_on "oce" => :optional

  # Fixes two issues.
  # 1) A #define PI was used rather than M_PI
  # 2) Prevent installation of TCL scripts that aren't needed without NETGEN
  patch :DATA

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --disable-gui
      --enable-nglib
    ]

    if build.with?("opencascade") || build.with?("oce")
      args << "--enable-occ"

      cad_kernel = Formula[build.with?("opencascade") ? "opencascade" : "oce"]<commit_msg>nglib: add 5.3.1 bottle.<commit_after>class Nglib < Formula
  desc "C++ Library of NETGEN's tetrahedral mesh generator"
  homepage "https://sourceforge.net/projects/netgen-mesher/"
  url "https://downloads.sourceforge.net/project/netgen-mesher/netgen-mesher/5.3/netgen-5.3.1.tar.gz"
  sha256 "cb97f79d8f4d55c00506ab334867285cde10873c8a8dc783522b47d2bc128bf9"

  bottle do
    cellar :any
    sha256 "fe54bd5f08cb2ad3f48a686d82fdea739fe751011eeffd5605c2d6acb4b1cf45" => :el_capitan
    sha256 "197bc93b51a6281fd6f2c71e39d2342c64b73234e2201e2e0a12200bcf657140" => :yosemite
    sha256 "57f3823e470984861eb3778687afcf947a54eaf597db9788d4791747ea1d9379" => :mavericks
  end

  # These two conflict with each other, so we'll have at most one.
  depends_on "opencascade" => :optional
  depends_on "oce" => :optional

  # Fixes two issues.
  # 1) A #define PI was used rather than M_PI
  # 2) Prevent installation of TCL scripts that aren't needed without NETGEN
  patch :DATA

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --disable-gui
      --enable-nglib
    ]

    if build.with?("opencascade") || build.with?("oce")
      args << "--enable-occ"

      cad_kernel = Formula[build.with?("opencascade") ? "opencascade" : "oce"]
{'fraction_non_alphanumeric': 0.11690647482014388, 'fraction_numerical': 0.1079136690647482, 'mean_word_length': 3.764453961456103, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '150921', 'n_tokens_mistral': 977, 'n_tokens_neox': 836, 'n_words': 170}