<commit_before>#!/usr/bin/env bash

set -e

source env/bin/activate
source production-settings.sh

export FLASK_ENV=production

GUNICORN_SOCKET=/tmp/dexter-gunicorn.sock
GUNICORN_WORKERS=2

exec gunicorn \
    -w $GUNICORN_WORKERS \
    -b unix:$GUNICORN_SOCKET \
    --worker-class gevent \
    --timeout 120 \
    --pid gunicorn.pid \
    app:app
    2>&1<commit_msg>Only one gunicorn worker is needed.<commit_after>#!/usr/bin/env bash

set -e

source env/bin/activate
source production-settings.sh

export FLASK_ENV=production

GUNICORN_SOCKET=/tmp/dexter-gunicorn.sock
GUNICORN_WORKERS=1

exec gunicorn \
    -w $GUNICORN_WORKERS \
    -b unix:$GUNICORN_SOCKET \
    --worker-class gevent \
    --timeout 120 \
    --pid gunicorn.pid \
    app:app
    2>&1
{'fraction_non_alphanumeric': 0.1118421052631579, 'fraction_numerical': 0.015789473684210527, 'mean_word_length': 2.9842931937172774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6370710', 'n_tokens_mistral': 320, 'n_tokens_neox': 290, 'n_words': 56}