<commit_before>cd "${INSTALLDIR}/${NAME}/"
manage="${VENV}/bin/python ${INSTALLDIR}/${NAME}/manage.py"

$manage migrate --settings=tuneme.settings.production

# process static files
$manage collectstatic --noinput --settings=tuneme.settings.production
$manage compress --settings=tuneme.settings.production

# compile i18n strings
$manage compilemessages --settings=tuneme.settings.production

# Update the search index
$manage update_index


# Malawi
# ------
$manage migrate --settings=tuneme.settings.malawi
$manage collectstatic --noinput --settings=tuneme.settings.malawi
$manage compress --settings=tuneme.settings.malawi<commit_msg>ensure update_index runs with correct settings<commit_after>cd "${INSTALLDIR}/${NAME}/"
manage="${VENV}/bin/python ${INSTALLDIR}/${NAME}/manage.py"

$manage migrate --settings=tuneme.settings.production

# process static files
$manage collectstatic --noinput --settings=tuneme.settings.production
$manage compress --settings=tuneme.settings.production

# compile i18n strings
$manage compilemessages --settings=tuneme.settings.production

# Update the search index
$manage update_index --settings=tuneme.settings.production


# Malawi
# ------
$manage migrate --settings=tuneme.settings.malawi
$manage collectstatic --noinput --settings=tuneme.settings.malawi
$manage compress --settings=tuneme.settings.malawi
{'fraction_non_alphanumeric': 0.134173461823573, 'fraction_numerical': 0.0029651593773165306, 'mean_word_length': 5.650246305418719, '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': '1174535', 'n_tokens_mistral': 418, 'n_tokens_neox': 383, 'n_words': 85}