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

echo "starting service..."
export SERVICE_HOST=$(hostname -i)

if [ -z ${LOGGING_TYPE} ]
then
    LOGGING_TYPE="text"
fi

echo "setting logging type to ${LOGGING_TYPE} with level ${LOG_LEVEL}"

LOGGER_CONFIG="-Dlogback.configurationFile=/var/service/config/logs/logback-${LOGGING_TYPE}.xml"
if [ -z ${LOG_LEVEL} ]<commit_msg>service-endpoint : SERVICE_HOST was systematically overriden by hostname -i. Now, only defaults to hostname -i if env is not setted<commit_after>#!/usr/bin/env sh

echo "starting service..."

if [ -z ${SERVICE_HOST} ]
then
    export SERVICE_HOST=$(hostname -i)
    echo "SERVICE_HOST not set, defaulting to $SERVICE_HOST"
fi

if [ -z ${LOGGING_TYPE} ]
then
    LOGGING_TYPE="text"
fi

echo "setting logging type to ${LOGGING_TYPE} with level ${LOG_LEVEL}"

LOGGER_CONFIG="-Dlogback.configurationFile=/var/service/config/logs/logback-${LOGGING_TYPE}.xml"
if [ -z ${LOG_LEVEL} ]
{'fraction_non_alphanumeric': 0.1388888888888889, 'fraction_numerical': 0.0, 'mean_word_length': 4.85625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2281313', 'n_tokens_mistral': 334, 'n_tokens_neox': 333, 'n_words': 84}