<commit_before>#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

[ -n "$NET" ] && net_arg="--net $NET"

docker_bridge_ip=172.17.0.1
node_ip=0.0.0.0
consul_args="-advertise $node_ip -join $CONSUL_IP"


if [ "$ENVIRONMENT" == "dev" ] && [ "$SWARM_NODES" -eq 1 ]; then
    node_ip=$docker_bridge_ip
    consul_args="-server -advertise $node_ip -bootstrap -ui-dir /ui"
fi


cat <<EOF
<commit_msg>Fixed net arg in prod<commit_after>#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

[ -n "$NET" ] && net_arg="net $NET"

docker_bridge_ip=172.17.0.1
node_ip=0.0.0.0
consul_args="-advertise $node_ip -join $CONSUL_IP"


if [ "$ENVIRONMENT" == "dev" ] && [ "$SWARM_NODES" -eq 1 ]; then
    node_ip=$docker_bridge_ip
    consul_args="-server -advertise $node_ip -bootstrap -ui-dir /ui"
fi


cat <<EOF

{'fraction_non_alphanumeric': 0.21014492753623187, 'fraction_numerical': 0.03140096618357488, 'mean_word_length': 4.085889570552148, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '7285820', 'n_tokens_mistral': 384, 'n_tokens_neox': 355, 'n_words': 70}