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

: "${HEROKU_DNS_APP_NAME:?Need to set HEROKU_DNS_APP_NAME non-empty}"
: "${HEROKU_PRIVATE_IP:?Need to set HEROKU_PRIVATE_IP non-empty}"

CONSUL_CONFIG_DIR=/app/vendor/consul/

mkdir -p "$CONSUL_CONFIG_DIR"
cat >> ${CONSUL_CONFIG_DIR}/basic_config.json << EOFEOF
{
  "bind_addr": "${HEROKU_PRIVATE_IP}",
  "bootstrap_expect": 3,
  "data_dir": "/tmp/consul/",
  "datacenter": "${HEROKU_DNS_APP_NAME}",
  "leave_on_terminate": true,
  "log_level": "INFO",<commit_msg>underscore<commit_after>#!/usr/bin/env bash

: "${HEROKU_DNS_APP_NAME:?Need to set HEROKU_DNS_APP_NAME non-empty}"
: "${HEROKU_PRIVATE_IP:?Need to set HEROKU_PRIVATE_IP non-empty}"

CONSUL_CONFIG_DIR=/app/vendor/consul/

mkdir -p "$CONSUL_CONFIG_DIR"
cat >> ${CONSUL_CONFIG_DIR}/basic_config.json << EOFEOF
{
  "bind_addr": "${HEROKU_PRIVATE_IP}",
  "bootstrap_expect": 3,
  "data_dir": "/tmp/consul/",
  "datacenter": "${HEROKU_DNS_APP_NAME//./_}",
  "leave_on_terminate": true,
  "log_level": "INFO",
{'fraction_non_alphanumeric': 0.17564870259481039, 'fraction_numerical': 0.001996007984031936, 'mean_word_length': 6.42962962962963, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 7, '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': '3587512', 'n_tokens_mistral': 446, 'n_tokens_neox': 428, 'n_words': 61}