<commit_before>#!/bin/bash

cat >> /home/ubuntu/hero-env-from-user << EOF
export HERO_FIRST_NAME=${HERO_FIRST_NAME}
export HERO_LAST_NAME=${HERO_LAST_NAME}
export HERO_NAME=${HERO_NAME}
export HERO_EMAIL=${HERO_EMAIL}
export HERO_TWITTER=${HERO_TWITTER}
export HERO_TOKEN=${HERO_TOKEN}
EOF

python /home/ubuntu/Hero/clients/python/Hero-Bot-Client.py > register-hero.log 2>&1 &<commit_msg>send output to cloud init log<commit_after>#!/bin/bash

echo "HERO_FIRST_NAME=${HERO_FIRST_NAME}"
echo "HERO_LAST_NAME=${HERO_LAST_NAME}"
echo "HERO_NAME=${HERO_NAME}"
echo "HERO_EMAIL=${HERO_EMAIL}"
echo "HERO_TWITTER=${HERO_TWITTER}"
echo "HERO_TOKEN=${HERO_TOKEN}"
echo "HERO_ENGINE_IP=${HERO_ENGINE_IP}"

python /home/ubuntu/Hero/clients/python/Hero-Bot-Client.py
{'fraction_non_alphanumeric': 0.1509933774834437, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 8.45, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4005036', 'n_tokens_mistral': 330, 'n_tokens_neox': 312, 'n_words': 43}