<commit_before>function ensure_identity
{
	# test whether standard identities have been added to the agent already
	ssh-add -l | grep "The agent has no identities" > /dev/null
	if [ $? -eq 0 ]; then # Nope
		echo "From ensure_identity"
		ssh-add && return 0 || return 1
	fi
	return 0
}

phpunit phpunit.php > /tmp/octave-fail || (
	cat /tmp/octave-fail &&
	octave-fail 2>/dev/null
) &&
git commit -a &&
ensure_identity &&
git push &&
phpdoc -dn octave-controller -d . -t /var/www/html/projects.moongate.ro/octave-daemon -ti "Octave-daemon" > /dev/null<commit_msg>Cleanup on success<commit_after>fail=/tmp/octave-fail

function ensure_identity
{
	# test whether standard identities have been added to the agent already
	ssh-add -l | grep "The agent has no identities" > /dev/null
	if [ $? -eq 0 ]; then # Nope
		echo "From ensure_identity"
		ssh-add && return 0 || return 1
	fi
	return 0
}

phpunit phpunit.php > "$fail" || (
	cat "$fail" &&
	octave-fail 2>/dev/null
) &&
rm -f "$fail" &&
git commit -a &&
ensure_identity &&
git push &&
phpdoc -dn octave-controller -d . -t /var/www/html/projects.moongate.ro/octave-daemon -ti "Octave-daemon" > /dev/null
{'fraction_non_alphanumeric': 0.13876843018213356, 'fraction_numerical': 0.008673026886383347, 'mean_word_length': 3.421455938697318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3450619', 'n_tokens_mistral': 437, 'n_tokens_neox': 409, 'n_words': 125}