<commit_before>require 'formula'

class Mpfr < Formula
  homepage 'http://www.mpfr.org/'
  url 'http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.bz2'
  version '3.1.1-p2'
  sha256 '7b66c3f13dc8385f08264c805853f3e1a8eedab8071d582f3e661971c9acd5fd'

  depends_on 'gmp'

  option '32-bit'

  # Segfaults under superenv with clang 4.1/421. See:
  # https://github.com/mxcl/homebrew/issues/15061
  env :std

  def patches
    "http://www.mpfr.org/mpfr-current/allpatches"
  end

  def install<commit_msg>mpfr: work around upstream being down<commit_after>require 'formula'

class Mpfr < Formula
  homepage 'http://www.mpfr.org/'
  # Upstream is down a lot, so use the GNU mirror + Gist for patches
  url 'http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.1.tar.bz2'
  version '3.1.1-p2'
  sha1 'f632d43943ff9f13c184fa13b9a6e8c7f420f4dd'

  depends_on 'gmp'

  option '32-bit'

  # Segfaults under superenv with clang 4.1/421. See:
  # https://github.com/mxcl/homebrew/issues/15061
  env :std

  def patches
    "https://gist.github.com/raw/4472199/42c0b207037a133527083d12adc9028b4da429ee/gistfile1.txt"
  end

  def install
{'fraction_non_alphanumeric': 0.12692656391659113, 'fraction_numerical': 0.13327289211242066, 'mean_word_length': 3.5809128630705396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, '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': '3657909', 'n_tokens_mistral': 562, 'n_tokens_neox': 486, 'n_words': 83}