<commit_before>#!/bin/sh
set -e

: ${MNEMOSYNED_PORT:=8080}
: ${MNEMOSYNED_HOST:=0.0.0.0}
: ${MNEMOSYNED_TTL:=24m}
: ${MNEMOSYNED_TTC:=1m}
: ${MNEMOSYNED_CLUSTER_LISTEN:=$(hostname):$MNEMOSYNED_PORT}
: ${MNEMOSYNED_CLUSTER_SEEDS:=}
: ${MNEMOSYNED_LOG_ENVIRONMENT:=production}
: ${MNEMOSYNED_LOG_LEVEL:=6}
: ${MNEMOSYNED_STORAGE:=postgres}
: ${MNEMOSYNED_MONITORING:=false}
: ${MNEMOSYNED_POSTGRES_ADDRESS:=postgres://postgres:postgres@postgres/postgres?sslmode=disable}
: ${MNEMOSYNED_POSTGRES_TABLE:=session}
: ${MNEMOSYNED_POSTGRES_SCHEMA:=mnemosyne}
: ${MNEMOSYNED_POSTGRES_DEBUG:=false}
: ${MNEMOSYNED_TLS_ENABLED:=false}

if [ "$1" = 'mnemosyned' ]; then
exec mnemosyned -host=${MNEMOSYNED_HOST} \
	-port=${MNEMOSYNED_PORT} \
	-ttl=${MNEMOSYNED_TTL} \
	-ttc=${MNEMOSYNED_TTC} \
	-cluster.listen=${MNEMOSYNED_CLUSTER_LISTEN} \
	-cluster.seeds=${MNEMOSYNED_CLUSTER_SEEDS} \
	-storage=${MNEMOSYNED_STORAGE} \
	-log.environment=${MNEMOSYNED_LOG_ENVIRONMENT} \
	-log.level=${MNEMOSYNED_LOG_LEVEL} \
	-monitoring=${MNEMOSYNED_MONITORING} \
	-postgres.address=${MNEMOSYNED_POSTGRES_ADDRESS} \
	-postgres.table=${MNEMOSYNED_POSTGRES_TABLE} \
	-postgres.schema=${MNEMOSYNED_POSTGRES_SCHEMA} \
	-tls=${MNEMOSYNED_TLS_ENABLED} \<commit_msg>docker-entrypoint.sh - logger settings passed<commit_after>#!/bin/sh
set -e

: ${MNEMOSYNED_PORT:=8080}
: ${MNEMOSYNED_HOST:=0.0.0.0}
: ${MNEMOSYNED_TTL:=24m}
: ${MNEMOSYNED_TTC:=1m}
: ${MNEMOSYNED_CLUSTER_LISTEN:=$(hostname):$MNEMOSYNED_PORT}
: ${MNEMOSYNED_CLUSTER_SEEDS:=}
: ${MNEMOSYNED_LOGGER_ENVIRONMENT:=production}
: ${MNEMOSYNED_LOGGER_LEVEL:=6}
: ${MNEMOSYNED_STORAGE:=postgres}
: ${MNEMOSYNED_MONITORING:=false}
: ${MNEMOSYNED_POSTGRES_ADDRESS:=postgres://postgres:postgres@postgres/postgres?sslmode=disable}
: ${MNEMOSYNED_POSTGRES_TABLE:=session}
: ${MNEMOSYNED_POSTGRES_SCHEMA:=mnemosyne}
: ${MNEMOSYNED_POSTGRES_DEBUG:=false}
: ${MNEMOSYNED_TLS_ENABLED:=false}

if [ "$1" = 'mnemosyned' ]; then
exec mnemosyned -host=${MNEMOSYNED_HOST} \
	-port=${MNEMOSYNED_PORT} \
	-ttl=${MNEMOSYNED_TTL} \
	-ttc=${MNEMOSYNED_TTC} \
	-cluster.listen=${MNEMOSYNED_CLUSTER_LISTEN} \
	-cluster.seeds=${MNEMOSYNED_CLUSTER_SEEDS} \
	-storage=${MNEMOSYNED_STORAGE} \
	-logger.environment=${MNEMOSYNED_LOGGER_ENVIRONMENT} \
	-logger.level=${MNEMOSYNED_LOGGER_LEVEL} \
	-monitoring=${MNEMOSYNED_MONITORING} \
	-postgres.address=${MNEMOSYNED_POSTGRES_ADDRESS} \
	-postgres.table=${MNEMOSYNED_POSTGRES_TABLE} \
	-postgres.schema=${MNEMOSYNED_POSTGRES_SCHEMA} \
	-tls=${MNEMOSYNED_TLS_ENABLED} \
{'fraction_non_alphanumeric': 0.17116759332803813, 'fraction_numerical': 0.010325655281969817, 'mean_word_length': 8.541666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7561494', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1176, 'n_words': 79}