<commit_before>class Nexusformat < Formula
  desc "Common data format for neutron, x-ray, and muon science"
  homepage "http://www.nexusformat.org"
  url "https://github.com/nexusformat/code/archive/v4.4.2.tar.gz"
  sha256 "3cb2860c6040415dd0761ff4cfa062915f65df660c95f6f1fee044c86eddd8a2"
  revision 1

  bottle do
    cellar :any
    sha256 "9c321f7ebfa4862fff0ae02f2144a7d14fd80f9e2322f663bbd278688c8274d9" => :el_capitan
    sha256 "3f4a3f513079aa3ee9a80ff6e30139a9519a0e12b78a343d47690f5c8c0c9c66" => :yosemite
    sha256 "6d30387aabb88d7df56ca3226a6d6f2409f57ef0f7f68b3d48798eeaf6e0708e" => :mavericks
  end

  option :cxx11

  depends_on "cmake" => :build
  depends_on "libmxml"
  cxx11dep = build.cxx11? ? ["c++11"] : []
  depends_on "hdf5" => cxx11dep
  depends_on "readline" => :recommended
  depends_on "homebrew/versions/hdf4" => :recommended
  depends_on "doxygen" => :optional

  # C++ API fails to build after selecting the C++11 or later standard.
  # https://github.com/nexusformat/code/pull/435
  patch do
    url "https://github.com/nexusformat/code/pull/435.patch"
    sha256 "bfc20b4d112a4ccb69dd8755dc78fead1e4c12c01d623c6ece5870ad29ab5f17"
  end

  def install
    ENV.cxx11 if build.cxx11?<commit_msg>nexusformat: update 4.4.2_1 bottle.<commit_after>class Nexusformat < Formula
  desc "Common data format for neutron, x-ray, and muon science"
  homepage "http://www.nexusformat.org"
  url "https://github.com/nexusformat/code/archive/v4.4.2.tar.gz"
  sha256 "3cb2860c6040415dd0761ff4cfa062915f65df660c95f6f1fee044c86eddd8a2"
  revision 1

  bottle do
    cellar :any
    sha256 "661bcf8a263f4118347657d317264ff2c729da539e7686e7a6d589e2daf7c0bc" => :el_capitan
    sha256 "503248f884f7c9377b87bcff6fb0f8dd8b793ac02b3fdd524670f9cf2a2b7384" => :yosemite
    sha256 "9015e38f6fa2fab94030e33b52ffd7cc23507e2bf87da37bbab0c1e49fc43aa7" => :mavericks
  end

  option :cxx11

  depends_on "cmake" => :build
  depends_on "libmxml"
  cxx11dep = build.cxx11? ? ["c++11"] : []
  depends_on "hdf5" => cxx11dep
  depends_on "readline" => :recommended
  depends_on "homebrew/versions/hdf4" => :recommended
  depends_on "doxygen" => :optional

  # C++ API fails to build after selecting the C++11 or later standard.
  # https://github.com/nexusformat/code/pull/435
  patch do
    url "https://github.com/nexusformat/code/pull/435.patch"
    sha256 "bfc20b4d112a4ccb69dd8755dc78fead1e4c12c01d623c6ece5870ad29ab5f17"
  end

  def install
    ENV.cxx11 if build.cxx11?
{'fraction_non_alphanumeric': 0.09951456310679611, 'fraction_numerical': 0.19093851132686085, 'mean_word_length': 4.902147971360382, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '6109107', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1090, 'n_words': 166}