<commit_before>#!/bin/sh

UCHIWA_CONFIG=/opt/uchiwa.json
PUBLIC_DIR=/opt/uchiwa/src/public

cat << EOF > $UCHIWA_CONFIG
{
  "sensu": [
    $SERVER_JSON
  ],
  "uchiwa": 
   $UCHIWA_JSON
}
EOF

/opt/uchiwa/bin/uchiwa -c $UCHIWA_CONFIG -p $PUBLIC_DIR | tee /var/log/uchiwa.log<commit_msg>Removing the dynamic creation of the SENSU config. This will now depend on a config file being deployed to the filesystem<commit_after>#!/bin/sh

UCHIWA_CONFIG=/opt/uchiwa.json
PUBLIC_DIR=/opt/uchiwa/src/public

/opt/uchiwa/bin/uchiwa -c $UCHIWA_CONFIG -p $PUBLIC_DIR | tee /var/log/uchiwa.log
{'fraction_non_alphanumeric': 0.13126079447322972, 'fraction_numerical': 0.0, 'mean_word_length': 4.132743362831858, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 4, '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': '2777112', 'n_tokens_mistral': 264, 'n_tokens_neox': 237, 'n_words': 47}