<commit_before>#!/usr/bin/env bash

echo 'Installing PostgreSQL & PostGIS...'
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y postgresql-9.5-postgis-2.2 pgadmin3 postgresql-contrib postgis libpq-dev python-dev
sudo locale-gen en_GB.UTF-8

echo 'Installing Pip...'
apt-get -y install python-pip

echo 'Upgrade Pip...'
pip install -U pip

echo 'Installing requirements...'
pip install -r /vagrant/requirements.txt

echo 'Tidying up...'
apt-get autoclean
apt-get autoremove

echo 'Done!'
<commit_msg>set locale<commit_after>#!/usr/bin/env bash

echo 'Setting locale...'
sudo locale-gen en_GB.UTF-8

echo 'Installing PostgreSQL & PostGIS...'
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y postgresql-9.5-postgis-2.2 pgadmin3 postgresql-contrib postgis libpq-dev python-dev

echo 'Installing Pip...'
apt-get -y install python-pip

echo 'Upgrade Pip...'
pip install -U pip

echo 'Installing requirements...'
pip install -r /vagrant/requirements.txt

echo 'Tidying up...'
apt-get autoclean
apt-get autoremove

echo 'Done!'

{'fraction_non_alphanumeric': 0.13978494623655913, 'fraction_numerical': 0.010120177103099304, 'mean_word_length': 3.6122448979591835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3906012', 'n_tokens_mistral': 615, 'n_tokens_neox': 576, 'n_words': 160}