<commit_before>class Root5 < Formula
   homepage "http://root.cern.ch"

   stable do
     version "5.34.36"
     sha256 "fc868e5f4905544c3f392cc9e895ef5571a08e48682e7fe173bd44c0ba0c7dcd"
     url "https://root.cern.ch/download/root_v#{version}.source.tar.gz"
     mirror "http://ftp.riken.jp/pub/ROOT/root_v#{version}.source.tar.gz"
   end

   head do
     url "https://github.com/root-mirror/root.git", :branch => "v5-34-00-patches"
   end

   depends_on "cmake" => :build
   option :cxx11

   depends_on "openssl"
   depends_on "supernemo-dbd/cadfael/gsl" => :recommended
   depends_on :python => :recommended

   def install
     # When building the head, temp patch for ROOT-8032
     if build.head? || build.devel?
       inreplace "cmake/modules/RootBuildOptions.cmake", "thread|cxx11|cling|builtin_llvm|builtin_ftgl|explicitlink", "thread|cxx11|cling|builtin_llvm|builtin_ftgl|explicitlink|python|mathmore|asimage|gnuinstall|rpath|soversion|opengl|builtin_glew"
     end

     mkdir "hb-build-root" do
       ENV.cxx11 if build.cxx11?<commit_msg>root5: use core GSL formula<commit_after>class Root5 < Formula
   homepage "http://root.cern.ch"

   stable do
     version "5.34.36"
     sha256 "fc868e5f4905544c3f392cc9e895ef5571a08e48682e7fe173bd44c0ba0c7dcd"
     url "https://root.cern.ch/download/root_v#{version}.source.tar.gz"
     mirror "http://ftp.riken.jp/pub/ROOT/root_v#{version}.source.tar.gz"
   end

   head do
     url "https://github.com/root-mirror/root.git", :branch => "v5-34-00-patches"
   end

   depends_on "cmake" => :build
   option :cxx11

   depends_on "openssl"
   depends_on "gsl" => :recommended
   depends_on :python => :recommended

   def install
     # When building the head, temp patch for ROOT-8032
     if build.head? || build.devel?
       inreplace "cmake/modules/RootBuildOptions.cmake", "thread|cxx11|cling|builtin_llvm|builtin_ftgl|explicitlink", "thread|cxx11|cling|builtin_llvm|builtin_ftgl|explicitlink|python|mathmore|asimage|gnuinstall|rpath|soversion|opengl|builtin_glew"
     end

     mkdir "hb-build-root" do
       ENV.cxx11 if build.cxx11?
{'fraction_non_alphanumeric': 0.12488083889418494, 'fraction_numerical': 0.06434699714013346, 'mean_word_length': 3.927230046948357, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1304684', 'n_tokens_mistral': 882, 'n_tokens_neox': 806, 'n_words': 123}