<commit_before>require "formula"

class Hevea < Formula
  homepage "http://hevea.inria.fr/"
  url "http://hevea.inria.fr/distri/hevea-2.19.tar.gz"
  sha1 "59c0d35819c83b6558490b36f1113cdb4d49e919"

  bottle do
    sha1 "85895fc6d991f57fe1a0e9ecbc083d335c7cf704" => :yosemite
    sha1 "d45bb32ad08211b304ae6c87f49727505ad81d33" => :mavericks
    sha1 "85d66fad38057feaa11c615dfdd7be4c921baca5" => :mountain_lion
  end

  depends_on "objective-caml"
  depends_on "ghostscript" => :optional

  def install
    ENV["PREFIX"] = prefix
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.tex").write <<-EOS.undent
      \\documentclass{article}
      \\begin{document}
      \\end{document}
    EOS
    system "#{bin}/hevea", "test.tex"
  end
end
<commit_msg>hevea 2.21<commit_after>require "formula"

class Hevea < Formula
  homepage "http://hevea.inria.fr/"
  url "http://hevea.inria.fr/distri/hevea-2.21.tar.gz"
  sha1 "37a13c587f008d4376a7245c43beb52d567828dd"

  bottle do
    sha1 "85895fc6d991f57fe1a0e9ecbc083d335c7cf704" => :yosemite
    sha1 "d45bb32ad08211b304ae6c87f49727505ad81d33" => :mavericks
    sha1 "85d66fad38057feaa11c615dfdd7be4c921baca5" => :mountain_lion
  end

  depends_on "objective-caml"
  depends_on "ghostscript" => :optional

  def install
    ENV["PREFIX"] = prefix
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.tex").write <<-EOS.undent
      \\documentclass{article}
      \\begin{document}
      \\end{document}
    EOS
    system "#{bin}/hevea", "test.tex"
  end
end

{'fraction_non_alphanumeric': 0.1244416081684748, 'fraction_numerical': 0.13784301212507977, 'mean_word_length': 3.6528189910979227, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '5685283', 'n_tokens_mistral': 785, 'n_tokens_neox': 671, 'n_words': 103}