<commit_before># Imported from SuperNEMO-DBD/homebrew-cadfael/Formula/bayeux.rb

class Bayeux < Formula
  desc     "Bayeux Library"
  homepage "https://github.com/BxCppDev/Bayeux"

  stable do
    version "3.1.1"
    url     "https://github.com/BxCppDev/Bayeux/archive/3.1.1.tar.gz"
    sha256  "3c97caa7d2a04f4a1ecd407ea549dee6fb2cb89eb948209ba4b73f9734d8972c"
  end

  head do
    version "3.1.1"
    url     "https://github.com/BxCppDev/Bayeux.git",
            :branch => "master"
  end

  devel do
    version "3.2.0"
    url     "https://github.com/BxCppDev/Bayeux.git",
            :branch => "develop"
  end

  needs :cxx11

  option "without-devtools", "Do not build developers tools"
  option "without-test",     "Do not build test programs"
  option "without-geant4",   "Do not build Geant4 module"

  depends_on "cmake" => :build
  depends_on "bxcppdev/bxtap/doxygen" => :build
  depends_on "gsl"
  depends_on "readline"

  depends_on "icu4c" => "c++11"
  depends_on "bxcppdev/bxtap/boost" => ["c++11", "with-icu4c"]
  depends_on "bxcppdev/bxtap/camp"  => "c++11"
  depends_on "bxcppdev/bxtap/clhep" => "c++11"
  depends_on "bxcppdev/bxtap/xerces-c" => "c++11"
  depends_on "bxcppdev/bxtap/qt5-base"
  depends_on "bxcppdev/bxtap/root6"
  if build.with? "geant4"
    depends_on "bxcppdev/bxtap/geant4" => "c++11"
  end

  def install
    ENV.cxx11
    mkdir "bayeux.build" do
      bx_cmake_args = std_cmake_args
      bx_cmake_args << "-DCMAKE_INSTALL_LIBDIR=lib"
      bx_cmake_args << "-DBAYEUX_CXX_STANDARD=11"
      bx_cmake_args << "-DBAYEUX_COMPILER_ERROR_ON_WARNING=OFF"
      bx_cmake_args << "-DBAYEUX_WITH_QT_GUI=ON"
      bx_cmake_args << "-DBAYEUX_WITH_DEVELOPER_TOOLS=OFF" unless build.with? "devtools"
      bx_cmake_args << "-DBAYEUX_ENABLE_TESTING=ON"        if     build.with? "test"
      bx_cmake_args << "-DBAYEUX_WITH_GEANT4_MODULE=OFF"   unless build.with? "geant4"
      system "cmake", "..", *bx_cmake_args
      system "make"
      if build.with? "test"<commit_msg>Add -jN flag<commit_after># Imported from SuperNEMO-DBD/homebrew-cadfael/Formula/bayeux.rb

class Bayeux < Formula
  desc     "Bayeux Library"
  homepage "https://github.com/BxCppDev/Bayeux"

  stable do
    version "3.1.1"
    url     "https://github.com/BxCppDev/Bayeux/archive/3.1.1.tar.gz"
    sha256  "3c97caa7d2a04f4a1ecd407ea549dee6fb2cb89eb948209ba4b73f9734d8972c"
  end

  head do
    version "3.1.1"
    url     "https://github.com/BxCppDev/Bayeux.git",
            :branch => "master"
  end

  devel do
    version "3.2.0"
    url     "https://github.com/BxCppDev/Bayeux.git",
            :branch => "develop"
  end

  needs :cxx11

  option "without-devtools", "Do not build developers tools"
  option "without-test",     "Do not build test programs"
  option "without-geant4",   "Do not build Geant4 module"

  depends_on "cmake" => :build
  depends_on "bxcppdev/bxtap/doxygen" => :build
  depends_on "gsl"
  depends_on "readline"

  depends_on "icu4c" => "c++11"
  depends_on "bxcppdev/bxtap/boost" => ["c++11", "with-icu4c"]
  depends_on "bxcppdev/bxtap/camp"  => "c++11"
  depends_on "bxcppdev/bxtap/clhep" => "c++11"
  depends_on "bxcppdev/bxtap/xerces-c" => "c++11"
  depends_on "bxcppdev/bxtap/qt5-base"
  depends_on "bxcppdev/bxtap/root6"
  if build.with? "geant4"
    depends_on "bxcppdev/bxtap/geant4" => "c++11"
  end

  def install
    ENV.cxx11
    mkdir "bayeux.build" do
      bx_cmake_args = std_cmake_args
      bx_cmake_args << "-DCMAKE_INSTALL_LIBDIR=lib"
      bx_cmake_args << "-DBAYEUX_CXX_STANDARD=11"
      bx_cmake_args << "-DBAYEUX_COMPILER_ERROR_ON_WARNING=OFF"
      bx_cmake_args << "-DBAYEUX_WITH_QT_GUI=ON"
      bx_cmake_args << "-DBAYEUX_WITH_DEVELOPER_TOOLS=OFF" unless build.with? "devtools"
      bx_cmake_args << "-DBAYEUX_ENABLE_TESTING=ON"        if     build.with? "test"
      bx_cmake_args << "-DBAYEUX_WITH_GEANT4_MODULE=OFF"   unless build.with? "geant4"
      system "cmake", "..", *bx_cmake_args
      system "make", "-j#{ENV.make_jobs}"
      if build.with? "test"
{'fraction_non_alphanumeric': 0.13440993788819877, 'fraction_numerical': 0.03925465838509317, 'mean_word_length': 3.315112540192926, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 23, 'https://': 8, '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': '5584726', 'n_tokens_mistral': 1805, 'n_tokens_neox': 1706, 'n_words': 278}