<commit_before>#!/bin/sh

echo "$GIT_SHA" > static/revision.txt

exec gunicorn wsgi.app --config wsgi/config.py<commit_msg>add x-forwarded-for to gunicorn logformat<commit_after>#!/bin/sh

echo "$GIT_SHA" > static/revision.txt

# https://stackoverflow.com/questions/25737589/gunicorn-doesnt-log-real-ip-from-nginx
GUNICORN_LOGFORMAT='%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" %({X_Forwarded_For}i)s"'

exec gunicorn wsgi.app --access-logformat "${GUNICORN_LOGFORMAT}"--config wsgi/config.py
{'fraction_non_alphanumeric': 0.20078740157480315, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 5.697368421052632, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '2796441', 'n_tokens_mistral': 239, 'n_tokens_neox': 222, 'n_words': 33}