<commit_before>#!/bin/bash

sudo apt-get install -y python-dev python-pip libpq-dev libxslt1-dev libxml2-dev

# Has to be done manually to activate virtualenvwrapper etc.
source ~/.bash_profile

mkvirtualenv sentry
workon sentry

cd /vagrant/apps/sentry/
pip install -Ur requirements.txt

export SENTRY_CONF=/vagrant/apps/sentry/sentry.conf.py

sentry upgrade
python setup_dev.py
sentry repair --owner=admin

sudo ln -f -s /vagrant/apps/sentry/supervisor.conf /etc/supervisor/conf.d/sentry.conf

sudo supervisorctl reload<commit_msg>Fixed supervisor not reloading sentry config<commit_after>#!/bin/bash

sudo apt-get install -y python-dev python-pip libpq-dev libxslt1-dev libxml2-dev

# Has to be done manually to activate virtualenvwrapper etc.
source ~/.bash_profile

mkvirtualenv sentry
workon sentry

cd /vagrant/apps/sentry/
pip install -Ur requirements.txt

export SENTRY_CONF=/vagrant/apps/sentry/sentry.conf.py

sentry upgrade
python setup_dev.py
sentry repair --owner=admin

sudo ln -f -s /vagrant/apps/sentry/supervisor.conf /etc/supervisor/conf.d/sentry.conf

sudo service supervisor restart
{'fraction_non_alphanumeric': 0.08884859474161379, 'fraction_numerical': 0.003626473254759746, 'mean_word_length': 4.492537313432836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4518207', 'n_tokens_mistral': 404, 'n_tokens_neox': 373, 'n_words': 103}