<commit_before>#!/bin/bash

# install PyPy
PYPY_VERSION="1.9"
PYPY_PREFIX="/usr/local"
PYPY_URL="http://cdn.bitbucket.org/pypy/pypy/downloads/pypy-$PYPY_VERSION-linux.tar.bz2"

if [ ! -d "$PYPY_PREFIX/pypy-$PYPY_VERSION" ]; then
    echo ">>> Installing PyPy-$PYPY_VERSION into $PYPY_PREFIX/pypy-$PYPY_VERSION <<<"
    pushd "$PYPY_PREFIX"
        # bootstrap
        wget -O - "$PYPY_URL" | sudo tar xj
        PYPY="pypy-$PYPY_VERSION/bin/pypy"
        wget -O - "http://python-distribute.org/distribute_setup.py" | sudo "$PYPY"
        sudo "pypy-$PYPY_VERSION/bin/easy_install" pip
        # symlinks
        sudo mkdir -p bin
        sudo ln -s "../$PYPY" bin/pypy
        sudo ln -s "../pypy-$PYPY_VERSION/bin/pip" bin/pip-pypy
        # packages
        sudo pip-pypy install tornado
    popd
fi
echo "=== PyPy-$PYPY_VERSION is installed at $PYPY_PREFIX/pypy-$PYPY_VERSION ==="<commit_msg>used curl instead of wget<commit_after>#!/bin/bash

# install PyPy
PYPY_VERSION="1.9"
PYPY_PREFIX="/usr/local"
PYPY_URL="http://cdn.bitbucket.org/pypy/pypy/downloads/pypy-$PYPY_VERSION-linux.tar.bz2"

if [ ! -d "$PYPY_PREFIX/pypy-$PYPY_VERSION" ]; then
    echo ">>> Installing PyPy-$PYPY_VERSION into $PYPY_PREFIX/pypy-$PYPY_VERSION <<<"
    pushd "$PYPY_PREFIX"
        # bootstrap
        curl "$PYPY_URL" | sudo tar xj
        PYPY="pypy-$PYPY_VERSION/bin/pypy"
        curl "http://python-distribute.org/distribute_setup.py" | sudo "$PYPY"
        sudo "pypy-$PYPY_VERSION/bin/easy_install" pip
        # symlinks
        sudo mkdir -p bin
        sudo ln -s "../$PYPY" bin/pypy
        sudo ln -s "../pypy-$PYPY_VERSION/bin/pip" bin/pip-pypy
        # packages
        sudo pip-pypy install tornado
    popd
fi
echo "=== PyPy-$PYPY_VERSION is installed at $PYPY_PREFIX/pypy-$PYPY_VERSION ==="
{'fraction_non_alphanumeric': 0.14827201783723523, 'fraction_numerical': 0.0033444816053511705, 'mean_word_length': 2.8436830835117775, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '3047379', 'n_tokens_mistral': 726, 'n_tokens_neox': 729, 'n_words': 124}