<commit_before>#!/bin/bash -x

EGG="mesos_0.15.0-rc4_amd64.egg"

echo "installing Python/Mesos..."
## NB: TODO de-Ubuntu-fy the Python parts of this install, hopefully via Anaconda/conda?
sudo aptitude -y install python-setuptools
sudo aptitude -y install python-protobuf
sudo aptitude -y install python-gevent
sudo aptitude -y install python-psutil 
sudo aptitude -y install python-dev
sudo aptitude -y install python-pip
sudo pip install git+https://github.com/kmike/hat-trie.git#egg=hat-trie

rm -rf $EGG
wget http://downloads.mesosphere.io/master/ubuntu/13.10/$EGG
sudo easy_install $EGG

echo "testing Python/Mesos..."
python -c 'import mesos'<commit_msg>resolve Issue #1, kudos to yakovkeselman<commit_after>#!/bin/bash -x

EGG="mesos_0.15.0-rc4_amd64.egg"

echo "installing Python/Mesos..."
## NB: TODO de-Ubuntu-fy the Python parts of this install, hopefully via Anaconda/conda?
sudo aptitude -y install python-setuptools
sudo aptitude -y install python-protobuf
sudo aptitude -y install python-gevent
sudo aptitude -y install python-psutil 
sudo aptitude -y install python-dev
sudo aptitude -y install python-pip
sudo pip install cython
sudo pip install git+https://github.com/kmike/hat-trie.git#egg=hat-trie

rm -rf $EGG
wget http://downloads.mesosphere.io/master/ubuntu/13.10/$EGG
sudo easy_install $EGG

echo "testing Python/Mesos..."
python -c 'import mesos'
{'fraction_non_alphanumeric': 0.11232676878191102, 'fraction_numerical': 0.016776075857038657, 'mean_word_length': 4.444444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4398812', 'n_tokens_mistral': 523, 'n_tokens_neox': 472, 'n_words': 142}