<commit_before>#!/bin/bash
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
tar -xvf Python-3.5.1.tar.xz
cd Python-3.5.1
./configure
sudo make
sudo make install

wget https://bootstrap.pypa.io/get-pip.py
python3.5 get-pip.py
pip install virtualenv

virtualenv -p python3.5 $HOME/venv/python3.5
# Install pip packages
. $HOME/venv/python3.5/bin/activate
pip install --upgrade wheel
pip install pyopenssl ndg-httpsclient pyasn1
pip install nose mock pytest coverage
CFLAGS="-O0" pip install lxml
deactivate<commit_msg>adds python2.5 support. installing through apt-get instead of compiling from source<commit_after>#!/bin/bash
sudo apt-get install python3.5
wget https://bootstrap.pypa.io/get-pip.py
python3.5 get-pip.py
pip install virtualenv

virtualenv -p python3.5 $HOME/venv/python3.5
# Install pip packages
. $HOME/venv/python3.5/bin/activate
pip install --upgrade wheel
pip install nose mock pytest coverage
deactivate
{'fraction_non_alphanumeric': 0.11182108626198083, 'fraction_numerical': 0.0362087326943557, 'mean_word_length': 4.251396648044692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 1}, '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': '3165997', 'n_tokens_mistral': 356, 'n_tokens_neox': 330, 'n_words': 89}