<commit_before>require "language/haskell"

class Pandoc < Formula
  include Language::Haskell::Cabal

  homepage "http://johnmacfarlane.net/pandoc/"
  url "https://hackage.haskell.org/package/pandoc-1.13.2/pandoc-1.13.2.tar.gz"
  sha1 "20f6e4c8d17748979efd011ef870dbfd1fb6dbb3"

  bottle do
    revision 1
    sha1 "acceca6830120f47cc7b1ee9d05988dadc2b5f99" => :yosemite
    sha1 "5e268465b7024f5241b6a6c88db849b78580d7cf" => :mavericks
    sha1 "ff4aa7be2a28afb3d404c15a17b266bb4ef8f14b" => :mountain_lion
  end

  depends_on "ghc" => :build
  depends_on "cabal-install" => :build
  depends_on "gmp"

  fails_with(:clang) { build 425 } # clang segfaults on Lion

  def install
    cabal_sandbox do
      cabal_install "--only-dependencies"
      cabal_install "--prefix=#{prefix}"
    end
    cabal_clean_lib
  end

  test do
    system "pandoc", "-o", "output.html", prefix/"README"
    assert (Pathname.pwd/"output.html").read.include? '<h1 id="synopsis">Synopsis</h1>'
  end
end
<commit_msg>pandoc: update 1.13.2 bottle.<commit_after>require "language/haskell"

class Pandoc < Formula
  include Language::Haskell::Cabal

  homepage "http://johnmacfarlane.net/pandoc/"
  url "https://hackage.haskell.org/package/pandoc-1.13.2/pandoc-1.13.2.tar.gz"
  sha1 "20f6e4c8d17748979efd011ef870dbfd1fb6dbb3"

  bottle do
    sha1 "b4d98399c366b63faed06a6184bb2a9d3c7bacf2" => :yosemite
    sha1 "f8c3ba25bc44c7e8da1bf14d1fdeef04e2793926" => :mavericks
    sha1 "592f4c65d534317172ce377a0d4524340e7177a8" => :mountain_lion
  end

  depends_on "ghc" => :build
  depends_on "cabal-install" => :build
  depends_on "gmp"

  fails_with(:clang) { build 425 } # clang segfaults on Lion

  def install
    cabal_sandbox do
      cabal_install "--only-dependencies"
      cabal_install "--prefix=#{prefix}"
    end
    cabal_clean_lib
  end

  test do
    system "pandoc", "-o", "output.html", prefix/"README"
    assert (Pathname.pwd/"output.html").read.include? '<h1 id="synopsis">Synopsis</h1>'
  end
end

{'fraction_non_alphanumeric': 0.12255148166750376, 'fraction_numerical': 0.11351079859367152, 'mean_word_length': 4.120822622107969, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '6241427', 'n_tokens_mistral': 963, 'n_tokens_neox': 856, 'n_words': 133}