<commit_before>#!/bin/bash
set -e

if [ "$1" = '/opt/django-venv/bin/gunicorn' ]; then
    chown -R celery:celery /var/lib/celery
    /wait-for-it.sh postgres:5432
    /opt/django-venv/bin/python /opt/app/manage.py migrate --noinput
    /opt/django-venv/bin/python /opt/app/manage.py collectstatic --noinput
    exec "$@"
fi

exec "$@"<commit_msg>Move celery permission outside check<commit_after>#!/bin/bash
set -e

chown -R celery:celery /var/lib/celery
if [ "$1" = '/opt/django-venv/bin/gunicorn' ]; then
    /wait-for-it.sh postgres:5432
    /opt/django-venv/bin/python /opt/app/manage.py migrate --noinput
    /opt/django-venv/bin/python /opt/app/manage.py collectstatic --noinput
    exec "$@"
fi

exec "$@"
{'fraction_non_alphanumeric': 0.17391304347826086, 'fraction_numerical': 0.014025245441795231, 'mean_word_length': 3.0338983050847457, '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': '5863017', 'n_tokens_mistral': 297, 'n_tokens_neox': 273, 'n_words': 52}