<commit_before>require 'formula'

class Pypy < Formula
  homepage 'http://pypy.org/'
  url 'https://bitbucket.org/pypy/pypy/downloads/pypy-2.4.0-osx64.tar.bz2'
  version '2.4.0'
  sha1 'b9f87df364617c1a8c43303a467d698e4a3e1935'

  depends_on :arch => :x86_64

  resource 'setuptools' do
    url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-5.8.tar.gz'
    sha1 '21e2ee6a61c4f71711956fa99803283f0168041a'
  end

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

  def install
    # Having PYTHONPATH set can cause the build to fail if another
    # Python is present, e.g. a Homebrew-provided Python 2.x
    # See https://github.com/Homebrew/homebrew/issues/24364
    ENV['PYTHONPATH'] = ''

    rmtree 'site-packages'

    # The PyPy binary install instructions suggest installing somewhere
    # (like /opt) and symlinking in binaries as needed. Specifically,
    # we want to avoid putting PyPy's Python.h somewhere that configure
    # scripts will find it.
    libexec.install Dir['*']<commit_msg>Update for the real pypy 2.4.0 final<commit_after>require 'formula'

class Pypy < Formula
  homepage 'http://pypy.org/'
  url 'https://bitbucket.org/pypy/pypy/downloads/pypy-2.4.0-osx64.tar.bz2'
  sha1 'aa7f9b41d8bfda16239b629cd1b8dc884c2ad808'
  version '2.4.0'
  revision 1

  depends_on :arch => :x86_64

  resource 'setuptools' do
    url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-5.8.tar.gz'
    sha1 '21e2ee6a61c4f71711956fa99803283f0168041a'
  end

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

  def install
    # Having PYTHONPATH set can cause the build to fail if another
    # Python is present, e.g. a Homebrew-provided Python 2.x
    # See https://github.com/Homebrew/homebrew/issues/24364
    ENV['PYTHONPATH'] = ''

    rmtree 'site-packages'

    # The PyPy binary install instructions suggest installing somewhere
    # (like /opt) and symlinking in binaries as needed. Specifically,
    # we want to avoid putting PyPy's Python.h somewhere that configure
    # scripts will find it.
    libexec.install Dir['*']
{'fraction_non_alphanumeric': 0.10955302366345311, 'fraction_numerical': 0.09465381244522349, 'mean_word_length': 3.502958579881657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '201342', 'n_tokens_mistral': 998, 'n_tokens_neox': 870, 'n_words': 189}