<commit_before>require "formula"

class Pypy < Formula
  homepage "http://pypy.org/"
  url "https://bitbucket.org/pypy/pypy/downloads/pypy-2.4.0-src.tar.bz2"
  sha1 "e2e0bcf8457c0ae5a24f126a60aa921dabfe60fb"
  bottle do
    cellar :any
    revision 3
    sha1 "0c73377c31d8eee09906a4fdb11072c50576bcfd" => :yosemite
    sha1 "404ca9b256757b65e6436f7c2d97ce7e9c468cb4" => :mavericks
    sha1 "865f5c7ca87aeb9cb0e6f03fd6fe48fb6012dc7a" => :mountain_lion
  end

  revision 2

  depends_on :arch => :x86_64
  depends_on "pkg-config" => :build
  depends_on "openssl"

  resource "setuptools" do
    url "https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.tar.gz"
    sha1 "735a65e0df5781b43a542ffc7fe1ffb42fede843"
  end

  resource "pip" do
    url "https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz"
    sha1 "e6cd9e6f2fd8d28c9976313632ef8aa8ac31249e"
  end

  # https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/187391
  fails_with :gcc<commit_msg>pypy: setuptools 8.0.2<commit_after>require "formula"

class Pypy < Formula
  homepage "http://pypy.org/"
  url "https://bitbucket.org/pypy/pypy/downloads/pypy-2.4.0-src.tar.bz2"
  sha1 "e2e0bcf8457c0ae5a24f126a60aa921dabfe60fb"
  bottle do
    cellar :any
    revision 3
    sha1 "0c73377c31d8eee09906a4fdb11072c50576bcfd" => :yosemite
    sha1 "404ca9b256757b65e6436f7c2d97ce7e9c468cb4" => :mavericks
    sha1 "865f5c7ca87aeb9cb0e6f03fd6fe48fb6012dc7a" => :mountain_lion
  end

  revision 2

  depends_on :arch => :x86_64
  depends_on "pkg-config" => :build
  depends_on "openssl"

  resource "setuptools" do
    url "https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.2.tar.gz"
    sha1 "bacdf139b210ea6c16ffa98eefa2eb8074dc7869"
  end

  resource "pip" do
    url "https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz"
    sha1 "e6cd9e6f2fd8d28c9976313632ef8aa8ac31249e"
  end

  # https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/187391
  fails_with :gcc
{'fraction_non_alphanumeric': 0.11961479979726306, 'fraction_numerical': 0.16928535225544855, 'mean_word_length': 4.1139896373057, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3986018', 'n_tokens_mistral': 1098, 'n_tokens_neox': 935, 'n_words': 113}