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

set -ex

# App Defaults
export WORKERS=${WORKERS-4}
export LOGFILE=${LOGFILE-/srv/log/web.log}
export PORT=${PORT-8000}

# alias docker links variables

# SMTP SERVICE
export EMAIL_HOST="${SMTP_PORT_25_TCP_ADDR-localhost}"
export EMAIL_PORT="${SMTP_PORT_25_TCP_PORT-25}"

# MYSQL SERVICE
export DATABASE_NAME=${DATABASE_NAME-mail}
export DATABASE_USER=${DATABASE_USER-root}
export DATABASE_PASS=${DATABASE_PASS}
export DATABASE_HOST=${DATABASE_HOST-$MARIADB_PORT_3306_TCP_ADDR}
export DATABASE_PORT=${DATABASE_PORT-$MARIADB_PORT_3306_TCP_PORT}

echo "Exec'ing $@"
exec "$@"<commit_msg>allow override EMAIL_HOST / EMAIL_PORT<commit_after>#!/usr/bin/env bash

set -ex

# App Defaults
export WORKERS=${WORKERS:-4}
export LOGFILE=${LOGFILE:-/srv/log/web.log}
export PORT=${PORT:-8000}

# alias docker links variables

# SMTP SERVICE
export EMAIL_HOST=${EMAIL_HOST:-${SMTP_PORT_25_TCP_ADDR:-localhost}}
export EMAIL_PORT=${EMAIL_PORT:-${SMTP_PORT_25_TCP_PORT:-25}}

# MYSQL SERVICE
export DATABASE_NAME=${DATABASE_NAME:-mail}
export DATABASE_USER=${DATABASE_USER:-root}
export DATABASE_PASS=${DATABASE_PASS}
export DATABASE_HOST=${DATABASE_HOST:-$MARIADB_PORT_3306_TCP_ADDR}
export DATABASE_PORT=${DATABASE_PORT:-$MARIADB_PORT_3306_TCP_PORT}

echo "Exec'ing $@"
exec "$@"
{'fraction_non_alphanumeric': 0.13671274961597543, 'fraction_numerical': 0.029185867895545316, 'mean_word_length': 8.442028985507246, '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': '5156204', 'n_tokens_mistral': 549, 'n_tokens_neox': 514, 'n_words': 77}