<commit_before>echo -e "\033[1;33mCreating and activating a temporary VirtualEnv\033[0m"
ENV_NAME=${1:-env}
virtualenv $ENV_NAME
source $ENV_NAME/bin/activate

echo -e ""
echo -e "\033[1;33mCreating symbolic links for using PyGTK (with matplotlib) in the virtualenv\033[0m"
ln -sf /usr/lib/python2.7/dist-packages/{glib,gobject,cairo,gtk-2.0,pygtk.py,pygtk.pth} $ENV_NAME/lib/python2.7/site-packages

echo -e ""
echo -e "\033[1;33mConfiguring SSL for pip in the VirtualEnv\033[0m"
pip install -U pyopenssl ndg-httpsclient pyasn1

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mgprof2dot\033[1;33m for visualising profiler data\033[0m"
pip install -U gprof2dot

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mrequests\033[1;33m for downloading files\033[0m"
pip install -U requests

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mnumpy\033[1;33m in the VirtualEnv\033[0m"
pip install -U numpy
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mpandas\033[1;33m in the VirtualEnv\033[0m"
pip install -U pandas
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mscipy\033[1;33m in the VirtualEnv\033[0m"
pip install -U scipy
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mnltk\033[1;33m in the VirtualEnv\033[0m"
pip install -U nltk
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mscikit-learn\033[1;33m in the VirtualEnv\033[0m"
pip install -U scikit-learn
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mmatplotlib\033[1;33m in the VirtualEnv\033[0m"
pip install -U matplotlib
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mTheano\033[1;33m in the VirtualEnv\033[0m"
pip install -U Theano
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mpsycopg2\033[1;33m in the VirtualEnv\033[0m"
pip install -U psycopg2

. prep-basemap.sh

echo -e ""
echo -e "\033[1;33mPip list inside the VirtualEnv\033[0m"
pip list<commit_msg>Removed installation of basemap from general virtualenv creation.<commit_after>echo -e "\033[1;33mCreating and activating a temporary VirtualEnv\033[0m"
ENV_NAME=${1:-env}
virtualenv $ENV_NAME
source $ENV_NAME/bin/activate

echo -e ""
echo -e "\033[1;33mCreating symbolic links for using PyGTK (with matplotlib) in the virtualenv\033[0m"
ln -sf /usr/lib/python2.7/dist-packages/{glib,gobject,cairo,gtk-2.0,pygtk.py,pygtk.pth} $ENV_NAME/lib/python2.7/site-packages

echo -e ""
echo -e "\033[1;33mConfiguring SSL for pip in the VirtualEnv\033[0m"
pip install -U pyopenssl ndg-httpsclient pyasn1

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mgprof2dot\033[1;33m for visualising profiler data\033[0m"
pip install -U gprof2dot

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mrequests\033[1;33m for downloading files\033[0m"
pip install -U requests

echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mnumpy\033[1;33m in the VirtualEnv\033[0m"
pip install -U numpy
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mpandas\033[1;33m in the VirtualEnv\033[0m"
pip install -U pandas
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mscipy\033[1;33m in the VirtualEnv\033[0m"
pip install -U scipy
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mnltk\033[1;33m in the VirtualEnv\033[0m"
pip install -U nltk
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mscikit-learn\033[1;33m in the VirtualEnv\033[0m"
pip install -U scikit-learn
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mmatplotlib\033[1;33m in the VirtualEnv\033[0m"
pip install -U matplotlib
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mTheano\033[1;33m in the VirtualEnv\033[0m"
pip install -U Theano
echo -e ""
echo -e "\033[1;33mInstalling \033[1;32mpsycopg2\033[1;33m in the VirtualEnv\033[0m"
pip install -U psycopg2

# . prep-basemap.sh

echo -e ""
echo -e "\033[1;33mPip list inside the VirtualEnv\033[0m"
pip list
{'fraction_non_alphanumeric': 0.14385026737967915, 'fraction_numerical': 0.14545454545454545, 'mean_word_length': 4.685410334346504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1166507', 'n_tokens_mistral': 1867, 'n_tokens_neox': 1560, 'n_words': 390}