<commit_before># Create venv
virtualenv venv

# Add path file
pwd -LP > venv/lib/python2.7/site-packages/testliveserver.pth

# Download and extract Chromedriver according to OS architecture
if [ `getconf LONG_BIT` = "64" ]
then
	wget https://chromedriver.googlecode.com/files/chromedriver_linux64_2.2.zip
	unzip chromedriver_linux64_2.2.zip
	rm chromedriver_linux64_2.2.zip
else
    wget https://chromedriver.googlecode.com/files/chromedriver_linux32_2.2.zip
	unzip chromedriver_linux32_2.2.zip
	rm chromedriver_linux32_2.2.zip
fi

# Move the executable and change permissions
mv chromedriver venv/bin
chmod 777 venv/bin/chromedriver

# Activate venv
. venv/bin/activate

# Install requirements
pip install --requirement requirements.txt

# Deactivate venv (redundant?)
deactivate<commit_msg>Improved the script for venv setup.<commit_after>#!/bin/sh

# Fancy colors
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
NORMAL=$(tput sgr0)

# Create venv
virtualenv venv

# Add path file
pwd -LP > venv/lib/python2.7/site-packages/testliveserver.pth

# Download and extract Chromedriver according to OS architecture
if [ `getconf LONG_BIT` = "64" ]
then
	wget https://chromedriver.googlecode.com/files/chromedriver_linux64_2.2.zip
	unzip chromedriver_linux64_2.2.zip
	rm chromedriver_linux64_2.2.zip
else
    wget https://chromedriver.googlecode.com/files/chromedriver_linux32_2.2.zip
	unzip chromedriver_linux32_2.2.zip
	rm chromedriver_linux32_2.2.zip
fi

# Move the executable and change permissions
mv chromedriver venv/bin
chmod 777 venv/bin/chromedriver

# Activate venv
. venv/bin/activate

# Install requirements
pip install --requirement requirements.txt

#########################
# Google App Engine SDK #
#########################

echo "${YELLOW}Downloading Google App Engine SDK.${NORMAL}"

wget $QUIET http://googleappengine.googlecode.com/files/google_appengine_1.8.3.zip
unzip $QUIET google_appengine_1.8.3.zip
rm google_appengine_1.8.3.zip

echo "${GREEN}Installing Google App Engine SDK to:${NORMAL} venv/bin/google_appengine"
mv google_appengine venv/bin

PTH=venv/lib/python2.7/site-packages/gae.pth
echo "${GREEN}Adding pth file:${NORMAL} $PTH"
echo "$(pwd -LP)/venv/bin/google_appengine/" >> $PTH
echo "import dev_appserver; dev_appserver.fix_sys_path()" >> $PTH

# Deactivate venv (redundant?)
deactivate
{'fraction_non_alphanumeric': 0.12232289950576607, 'fraction_numerical': 0.033360790774299834, 'mean_word_length': 5.342036553524804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2677853', 'n_tokens_mistral': 938, 'n_tokens_neox': 883, 'n_words': 199}