<commit_before>class Xgboost < Formula
  desc "Scalable, Portable and Distributed Gradient Boosting Library"
  homepage "https://xgboost.ai/"
  url "https://github.com/dmlc/xgboost.git",
      :tag      => "v0.90",
      :revision => "515f5f5c4779ff5361dcd796e22d55937e1048ea"

  bottle do
    cellar :any
    sha256 "c1f4c85c24798e3e64d0c3b4312eadb89bd0c1ae057058d450bf1414c12b8925" => :catalina
    sha256 "280fe55391f3b02fd7424afbcda34bbd861175567fe7b6b8fc4e45514bc12914" => :mojave
    sha256 "f419cdc75ffc06ca1f2247474317b782031f019fa66bc7e2cba668dfc5761c9c" => :high_sierra
  end

  depends_on "cmake" => :build

  def install
    mkdir "build" do
      system "cmake", *std_cmake_args, "-DUSE_OPENMP=0", ".."
      system "make"
      system "make", "install"
    end
    pkgshare.install "demo"
  end
<commit_msg>xgboost: use openmp on linux<commit_after>class Xgboost < Formula
  desc "Scalable, Portable and Distributed Gradient Boosting Library"
  homepage "https://xgboost.ai/"
  url "https://github.com/dmlc/xgboost.git",
      :tag      => "v0.90",
      :revision => "515f5f5c4779ff5361dcd796e22d55937e1048ea"

  bottle do
    cellar :any
    sha256 "c1f4c85c24798e3e64d0c3b4312eadb89bd0c1ae057058d450bf1414c12b8925" => :catalina
    sha256 "280fe55391f3b02fd7424afbcda34bbd861175567fe7b6b8fc4e45514bc12914" => :mojave
    sha256 "f419cdc75ffc06ca1f2247474317b782031f019fa66bc7e2cba668dfc5761c9c" => :high_sierra
  end

  depends_on "cmake" => :build

  def install
    mkdir "build" do
      system "cmake", *std_cmake_args,
        ("-DUSE_OPENMP=0" if OS.mac?),
        ".."
      system "make"
      system "make", "install"
    end
    pkgshare.install "demo"
  end

{'fraction_non_alphanumeric': 0.10142348754448399, 'fraction_numerical': 0.18979833926453143, 'mean_word_length': 3.9327485380116958, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, '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': '4395123', 'n_tokens_mistral': 889, 'n_tokens_neox': 715, 'n_words': 114}