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

set -eo pipefail

[ -n "$ENVIRONMENT" ] || (echo "ENVIRONMENT is not defined" && exit 1)

echo -n "" > docker.env

env_vars=(
    ENVIRONMENT
    BUILD_ID
    TEST_NUMBER
    FUNCTIONAL_TEST_EMAIL
    FUNCTIONAL_TEST_PASSWORD
    NOTIFY_ADMIN_URL
    NOTIFY_API_URL
    NOTIFY_SERVICE_API_KEY
    SERVICE_ID
    API_KEY
    ZENDESK_API_KEY
    NOTIFY_RESEARCH_MODE_EMAIL
    NOTIFY_RESEARCH_MODE_EMAIL_PASSWORD
    NOTIFY_RESEARCH_SERVICE_ID
    NOTIFY_RESEARCH_SERVICE_API_KEY
    NOTIFY_RESEARCH_SERVICE_API_TEST_KEY
    JENKINS_BUILD_EMAIL_TEMPLATE_ID
    JENKINS_BUILD_SMS_TEMPLATE_ID
    JENKINS_BUILD_LETTER_TEMPLATE_ID
    NOTIFY_RESEARCH_SERVICE_NAME
    NOTIFY_RESEARCH_EMAIL_REPLY_TO
    NOTIFY_RESEARCH_SERVICE_EMAIL_AUTH_ACCOUNT
    NOTIFY_RESEARCH_ORGANISATION_ID
    DOCUMENT_DOWNLOAD_API_HOST
    DOCUMENT_DOWNLOAD_API_KEY
)

for env_var in "${env_vars[@]}"; do
    if [ -n "${!env_var}" ]; then
      echo "${env_var}=${!env_var}" >> docker.env
    fi
done<commit_msg>add new variables to generate_docker_env file<commit_after>#!/usr/bin/env bash

set -eo pipefail

[ -n "$ENVIRONMENT" ] || (echo "ENVIRONMENT is not defined" && exit 1)

echo -n "" > docker.env

env_vars=(
    ENVIRONMENT
    BUILD_ID

    TEST_NUMBER
    FUNCTIONAL_TEST_EMAIL
    FUNCTIONAL_TEST_PASSWORD

    NOTIFY_ADMIN_URL
    NOTIFY_API_URL
    NOTIFY_SERVICE_API_KEY

    SERVICE_ID
    API_KEY
    ZENDESK_API_KEY

    NOTIFY_RESEARCH_MODE_EMAIL
    NOTIFY_RESEARCH_MODE_EMAIL_PASSWORD
    NOTIFY_RESEARCH_SERVICE_ID
    NOTIFY_RESEARCH_SERVICE_API_KEY
    NOTIFY_RESEARCH_SERVICE_API_TEST_KEY
    JENKINS_BUILD_EMAIL_TEMPLATE_ID
    JENKINS_BUILD_SMS_TEMPLATE_ID
    JENKINS_BUILD_LETTER_TEMPLATE_ID
    NOTIFY_RESEARCH_SERVICE_NAME
    NOTIFY_RESEARCH_EMAIL_REPLY_TO
    NOTIFY_RESEARCH_SERVICE_EMAIL_AUTH_ACCOUNT
    NOTIFY_RESEARCH_ORGANISATION_ID
    NOTIFY_RESEARCH_SERVICE_INBOUND_NUMBER

    DOCUMENT_DOWNLOAD_API_HOST
    DOCUMENT_DOWNLOAD_API_KEY

    MMG_INBOUND_SMS_USERNAME
    MMG_INBOUND_SMS_AUTH
)

for env_var in "${env_vars[@]}"; do
    if [ -n "${!env_var}" ]; then
      echo "${env_var}=${!env_var}" >> docker.env
    fi
done
{'fraction_non_alphanumeric': 0.057931034482758624, 'fraction_numerical': 0.0009195402298850574, 'mean_word_length': 4.243373493975904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '946629', 'n_tokens_mistral': 902, 'n_tokens_neox': 887, 'n_words': 121}