<commit_before>#!/bin/sh

set -e

source venv/bin/activate
git pull
pip install --upgrade -r requirements.txt
bower install
./manage.py compilemessages
./manage.py migrate
./manage.py collectstatic --noinput<commit_msg>source virtual env only if we are not already in it<commit_after>#!/bin/sh

set -e

# only source the virtual env if we are not already in it
if [ -z ${VIRTUAL_ENV+x} ]; then
    source venv/bin/activate
fi
git pull
pip install --upgrade -r requirements.txt
bower install
./manage.py compilemessages
./manage.py migrate
./manage.py collectstatic --noinput
{'fraction_non_alphanumeric': 0.10278745644599303, 'fraction_numerical': 0.0, 'mean_word_length': 3.7916666666666665, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5956732', 'n_tokens_mistral': 193, 'n_tokens_neox': 177, 'n_words': 68}