<commit_before>#!/bin/bash

# Generate the config file from environment variables
echo "{\"app_secret\":\"$APP_SECRET\",\"pass_reqs\":$PASS_REQS,\"serial_tty\":\"/dev/ttyUSB0\"}" > /infinitude/infinitude.json

if [ -z ${MODE+x} ]; then 
	echo "MODE is not set.  Defaulting to Production";
	MODE=Production
else 
	echo "MODE is set to $MODE"; 
fi

cd /infinitude && ./infinitude daemon -m $MODE<commit_msg>add ENV passing for serial/socket docker config<commit_after>#!/bin/bash

# Generate the config file from environment variables
echo "{\"app_secret\":\"$APP_SECRET\",\"pass_reqs\":$PASS_REQS,\"serial_tty\":\"$SERIAL_TTY\",\"serial_socket\":\"$SERIAL_SOCKET\"}" > /infinitude/infinitude.json

if [ -z ${MODE+x} ]; then 
	echo "MODE is not set.  Defaulting to Production";
	MODE=Production
else 
	echo "MODE is set to $MODE"; 
fi

cd /infinitude && ./infinitude daemon -m $MODE
{'fraction_non_alphanumeric': 0.1693181818181818, 'fraction_numerical': 0.0011363636363636363, 'mean_word_length': 4.50625, 'pattern_counts': {'":': 7, '<': 3, '<?xml version=': 0, '>': 5, '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': '877730', 'n_tokens_mistral': 322, 'n_tokens_neox': 312, 'n_words': 81}