<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

# COUCHDB SERVICE
export COUCHDB_DNS_NAME="${COUCHDB_ENV_COUCHDB_DATABASE}"
export COUCHDB_DNS_USER="${COUCHDB_ENV_COUCHDB_USER}"
export COUCHDB_DNS_PASS="${COUCHDB_ENV_COUCHDB_PASS}"
export COUCHDB_DNS_HOST="http://${COUCHDB_PORT_5984_TCP_ADDR}:${COUCHDB_PORT_5984_TCP_PORT}"

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

# MYSQL SERVICE
export DATABASE_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST-$MARIADB_PORT_3306_TCP_ADDR}:${DB_PORT-$MARIADB_PORT_3306_TCP_PORT}/${DB_NAME}"

echo "Exec'ing $@"
exec "$@"<commit_msg>add defaults<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

# COUCHDB SERVICE
export COUCHDB_DNS_NAME="${COUCHDB_ENV_COUCHDB_DATABASE}"
export COUCHDB_DNS_USER="${COUCHDB_ENV_COUCHDB_USER}"
export COUCHDB_DNS_PASS="${COUCHDB_ENV_COUCHDB_PASS}"
export COUCHDB_DNS_HOST="http://${COUCHDB_PORT_5984_TCP_ADDR}:${COUCHDB_PORT_5984_TCP_PORT}"

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

# MYSQL SERVICE
export DATABASE_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST-$MARIADB_PORT_3306_TCP_ADDR}:${DB_PORT-$MARIADB_PORT_3306_TCP_PORT}/${DB_NAME}"

echo "Exec'ing $@"
exec "$@"
{'fraction_non_alphanumeric': 0.148005148005148, 'fraction_numerical': 0.03346203346203346, 'mean_word_length': 9.79861111111111, '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': '1703619', 'n_tokens_mistral': 711, 'n_tokens_neox': 665, 'n_words': 79}