<commit_before>#!/bin/bash
sed -i 's@/tmp/build@/app@' develop-eggs/* bin/*
MAIL_HOST="${MAIL_HOST:-localhost}"
MAIL_PORT="${MAIL_PORT:-25}"
MAIL_DEFAULT_SENDER="${MAIL_DEFAULT_SENDER:-<EMAIL>}"
SECRET="${SECRET:-dreevTatUk9}"
APPLICATION_URL="${APPLICATION_URL:-novaideo-applicationurl}"
sed -i \
    -e "s|MAIL_HOST|$MAIL_HOST|" \
    -e "s|MAIL_PORT|$MAIL_PORT|" \
    -e "s|MAIL_DEFAULT_SENDER|$MAIL_DEFAULT_SENDER|" \
    -e "s|SECRET|$SECRET|" \
    -e "s|APPLICATION_URL|$APPLICATION_URL|" \
    production-heroku.ini
exec bin/gunicorn --forwarded-allow-ips="172.17.42.1" --paste production-heroku.ini
<commit_msg>use MAIL_PORT_25_TCP_ADDR and MAIL_PORT_25_TCP_PORT en variables from container link<commit_after>#!/bin/bash
sed -i 's@/tmp/build@/app@' develop-eggs/* bin/*
MAIL_HOST="${MAIL_PORT_25_TCP_ADDR:-localhost}"
MAIL_PORT="${MAIL_PORT_25_TCP_PORT:-25}"
MAIL_DEFAULT_SENDER="${MAIL_DEFAULT_SENDER:-<EMAIL>}"
SECRET="${SECRET:-dreevTatUk9}"
APPLICATION_URL="${APPLICATION_URL:-novaideo-applicationurl}"
sed -i \
    -e "s|MAIL_HOST|$MAIL_HOST|" \
    -e "s|MAIL_PORT|$MAIL_PORT|" \
    -e "s|MAIL_DEFAULT_SENDER|$MAIL_DEFAULT_SENDER|" \
    -e "s|SECRET|$SECRET|" \
    -e "s|APPLICATION_URL|$APPLICATION_URL|" \
    production-heroku.ini
exec bin/gunicorn --forwarded-allow-ips="172.17.42.1" --paste production-heroku.ini

{'fraction_non_alphanumeric': 0.18399401645474944, 'fraction_numerical': 0.02243829468960359, 'mean_word_length': 5.401913875598086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '282861', 'n_tokens_mistral': 589, 'n_tokens_neox': 570, 'n_words': 66}