<commit_before>#!/bin/bash

set -eo pipefail

token=$(openssl rand -hex 32)

cat >~/cgi-bin/update-website <<__EOF__
#!/bin/bash

echo "Content-Type: text/plain"
echo ""

if [ "\$QUERY_STRING" = "token=$token" ]; then
	echo "Deployment started"

	nohup ~/projects/website/deploy/trigger.sh "$USER" >~/projects/website-update.log &
else
	echo "Meh"
fi
__EOF__
<commit_msg>Redirect stderr<commit_after>#!/bin/bash

set -eo pipefail

token=$(openssl rand -hex 32)

cat >~/cgi-bin/update-website <<__EOF__
#!/bin/bash

echo "Content-Type: text/plain"
echo ""

if [ "\$QUERY_STRING" = "token=$token" ]; then
	echo "Deployment started"

	nohup ~/projects/website/deploy/trigger.sh "$USER" >~/projects/website-update.log 2>&1 &
else
	echo "Meh"
fi
__EOF__

{'fraction_non_alphanumeric': 0.17356475300400534, 'fraction_numerical': 0.00801068090787717, 'mean_word_length': 4.39568345323741, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '7412018', 'n_tokens_mistral': 317, 'n_tokens_neox': 285, 'n_words': 66}