<commit_before>#!/bin/bash
set -e

echo "Cleaning the old virtualenv"
rm -rf *.egg-info
rm -rf ${PWD##*/}_lamp


echo "Installing various python packages"
sudo apt-get -y install python3-pip python3-setuptools python3-virtualenv virtualenv > /dev/null
sudo pip install --upgrade pip > /dev/null
sudo pip install autoenv > /dev/null

echo ""
echo "If you want to automatically load the current virtualenvironment, check that you have something like "
echo "'echo \"source `which activate.sh`\"' in your bashrc"
echo ""

echo "Creating the virtualenv"
virtualenv -p /usr/bin/python3 ${PWD##*/}_lamp > /dev/null
source ${PWD##*/}_lamp/bin/activate > /dev/null
pip3 install click clint > /dev/null
pip3 install -e . > /dev/null

echo "Leaving the virtualenv. To enter it again do : "
echo "   source \${PWD##*/}_lamp/bin/activate"
deactivate > /dev/null<commit_msg>Updated install to do everything with pip3<commit_after>#!/bin/bash
set -e

echo "Cleaning the old virtualenv"
rm -rf *.egg-info
rm -rf ${PWD##*/}_lamp


echo "Installing various python packages"
sudo apt-get -y install python3-pip python3-setuptools python3-virtualenv virtualenv > /dev/null
sudo pip3 install -q --upgrade pip > /dev/null
sudo pip3 install -q autoenv > /dev/null

echo ""
echo "If you want to automatically load the current virtualenvironment, check that you have something like "
echo "'echo \"source `which activate.sh`\"' in your ~/.bashrc"
echo ""

echo "Creating the virtualenv"
virtualenv -p /usr/bin/python3 ${PWD##*/}_lamp > /dev/null
source ${PWD##*/}_lamp/bin/activate > /dev/null
pip3 install click clint > /dev/null
pip3 install -e . > /dev/null

echo "Leaving the virtualenv. To enter it again do : "
echo "   source \${PWD##*/}_lamp/bin/activate"
deactivate > /dev/null
{'fraction_non_alphanumeric': 0.13110102156640183, 'fraction_numerical': 0.00851305334846765, 'mean_word_length': 3.9661971830985916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6902627', 'n_tokens_mistral': 602, 'n_tokens_neox': 573, 'n_words': 207}