<commit_before>require "formula"

class CabalInstall < Formula
  homepage "http://www.haskell.org/haskellwiki/Cabal-Install"
  url "http://hackage.haskell.org/package/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz"
  sha1 "444448b0f704420e329e8fc1989b6743c1c8546d"
  revision 1

  bottle do
    cellar :any
    sha1 "12a7a0ed49eef251fb8454bf882187aa9f495e75" => :mavericks
    sha1 "c1c4d78116c9fb9cec8e021f074a7b2d78f13fd8" => :mountain_lion
    sha1 "1e201a29a5535edc30654402e407f985017ef518" => :lion
  end

  depends_on "ghc"

  fails_with :clang if MacOS.version < :mavericks # Same as ghc.rb

  def install
    # use a temporary package database instead of ~/.cabal or ~/.ghc
    pkg_db = "#{Dir.pwd}/package.conf.d"
    system "ghc-pkg", "init", pkg_db
    ENV["EXTRA_CONFIGURE_OPTS"] = "--package-db=#{pkg_db}"
    ENV["PREFIX"] = Dir.pwd
    inreplace "bootstrap.sh", "list --global",
      "list --global --no-user-package-db"
<commit_msg>cabal-install: add Yosemite bottle.<commit_after>require "formula"

class CabalInstall < Formula
  homepage "http://www.haskell.org/haskellwiki/Cabal-Install"
  url "http://hackage.haskell.org/package/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz"
  sha1 "444448b0f704420e329e8fc1989b6743c1c8546d"
  revision 1

  bottle do
    cellar :any
    sha1 "3e14c600962c09a3bff687e66989766d236134d3" => :yosemite
    sha1 "12a7a0ed49eef251fb8454bf882187aa9f495e75" => :mavericks
    sha1 "c1c4d78116c9fb9cec8e021f074a7b2d78f13fd8" => :mountain_lion
    sha1 "1e201a29a5535edc30654402e407f985017ef518" => :lion
  end

  depends_on "ghc"

  fails_with :clang if MacOS.version < :mavericks # Same as ghc.rb

  def install
    # use a temporary package database instead of ~/.cabal or ~/.ghc
    pkg_db = "#{Dir.pwd}/package.conf.d"
    system "ghc-pkg", "init", pkg_db
    ENV["EXTRA_CONFIGURE_OPTS"] = "--package-db=#{pkg_db}"
    ENV["PREFIX"] = Dir.pwd
    inreplace "bootstrap.sh", "list --global",
      "list --global --no-user-package-db"

{'fraction_non_alphanumeric': 0.13019529293940912, 'fraction_numerical': 0.1387080620931397, 'mean_word_length': 3.9211822660098523, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, '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': '6517359', 'n_tokens_mistral': 1005, 'n_tokens_neox': 855, 'n_words': 138}