<commit_before>#!/bin/bash

if [[ $TRAVIS = "true" ]]; then
	if [[ $TRAVIS_BRANCH = "master" && $TRAVIS_PULL_REQUEST = "false" ]]; then
		echo "Deploying!"
		# The output of this must be redirected to /dev/null to prevent leakage of $GH_TOKEN.
		git subtree push --prefix output https://PyConUK-user:$GH_TOKEN@github.com/PyconUK/pyconuk.org gh-pages >/dev/null
		if [[ $? -eq 0 ]]; then
			echo "Deployed successfully!"
		else
			echo "Deployment failed!"
		fi
	else
		echo "Not deploying!"
	fi
else
	git subtree push --prefix output origin gh-pages
fi
<commit_msg>Try harder not to leak GitHub token<commit_after>#!/bin/bash

if [[ $TRAVIS = "true" ]]; then
	if [[ $TRAVIS_BRANCH = "master" && $TRAVIS_PULL_REQUEST = "false" ]]; then
		echo "Deploying!"
		git config credential.helper "store --file=.git/credentials"
		echo "https://$GH_TOKEN:@github.com" > .git/credentials
		git subtree push --prefix output https://PyConUK-user@github.com/PyconUK/pyconuk.org gh-pages
		rm .git/credentials
	else
		echo "Not deploying!"
	fi
else
	git subtree push --prefix output origin gh-pages
fi

{'fraction_non_alphanumeric': 0.13812154696132597, 'fraction_numerical': 0.0009208103130755065, 'mean_word_length': 3.874439461883408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6901233', 'n_tokens_mistral': 424, 'n_tokens_neox': 392, 'n_words': 111}