<commit_before>FROM python:3.8

ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt gunicorn

ENV DJANGO_SETTINGS_MODULE=censusreporter.config.prod.settings \
    PYTHONPATH=censusreporter/apps:$PYTHONPATH

ADD . .
RUN ./manage.py collectstatic --noinput

CMD gunicorn --workers 3 --bind 0.0.0.0:$PORT --statsd-host telegraf.web:8125 --statsd-prefix censusreporter censusreporter.config.prod.wsgi<commit_msg>more workers might help<commit_after>FROM python:3.8

ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt gunicorn

ENV DJANGO_SETTINGS_MODULE=censusreporter.config.prod.settings \
    PYTHONPATH=censusreporter/apps:$PYTHONPATH

ADD . .
RUN ./manage.py collectstatic --noinput

CMD gunicorn --workers 5 --bind 0.0.0.0:$PORT --statsd-host telegraf.web:8125 --statsd-prefix censusreporter censusreporter.config.prod.wsgi
{'fraction_non_alphanumeric': 0.10344827586206896, 'fraction_numerical': 0.02528735632183908, 'mean_word_length': 4.730263157894737, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5763522', 'n_tokens_mistral': 308, 'n_tokens_neox': 287, 'n_words': 62}