<commit_before>class Shark < Formula
  desc "Machine leaning library"
  homepage "http://image.diku.dk/shark/"
  url "https://github.com/Shark-ML/Shark/archive/v3.1.3.tar.gz"
  sha256 "eae0f4fa8649aaa4e1809860697373cea20f64defd8c12e3ed6014ec1a2f1b89"

  bottle do
    cellar :any
    sha256 "65fb8571660c52bc94c20272c851e010f657f275f850590afa4728589adf8765" => :el_capitan
    sha256 "7cf6ec0decb6795e7cebe8abd5d9501e15333672b21ad9c68a1a97a44e4ed0c2" => :yosemite
    sha256 "536853ce249e438b35fa3e49ba1c54f5ac3c5493bf3bc33c9374c13ebcaa20f8" => :mavericks
  end

  depends_on "cmake" => :build
  depends_on "boost"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"data.csv").write <<-EOS.undent
      1 1 0
      2 2 1
    EOS<commit_msg>shark 3.1.4<commit_after>class Shark < Formula
  desc "Machine leaning library"
  homepage "http://image.diku.dk/shark/"
  url "https://github.com/Shark-ML/Shark/archive/v3.1.4.tar.gz"
  sha256 "160c35ddeae3f6aeac3ce132ea4ba2611ece39eee347de2faa3ca52639dc6311"

  bottle do
    cellar :any
    sha256 "65fb8571660c52bc94c20272c851e010f657f275f850590afa4728589adf8765" => :el_capitan
    sha256 "7cf6ec0decb6795e7cebe8abd5d9501e15333672b21ad9c68a1a97a44e4ed0c2" => :yosemite
    sha256 "536853ce249e438b35fa3e49ba1c54f5ac3c5493bf3bc33c9374c13ebcaa20f8" => :mavericks
  end

  depends_on "cmake" => :build
  depends_on "boost"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"data.csv").write <<-EOS.undent
      1 1 0
      2 2 1
    EOS
{'fraction_non_alphanumeric': 0.09937888198757763, 'fraction_numerical': 0.21987577639751552, 'mean_word_length': 4.264705882352941, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '6656096', 'n_tokens_mistral': 911, 'n_tokens_neox': 736, 'n_words': 104}