<commit_before>{{> head}}
<style>
	body
	{
		text-align: center;
	}
	textarea
	{
		width: 100%;
		height: 400px;
		margin-top: 8px;
	}
</style>
<form method="post">
	<button type="button" onclick="app.copy()">
		Copy
	</button>
	<button type="submit">
		Save
	</button>
	<button type="button" onclick="app.clear() && app.save()">
		Clear
	</button>
	<button type="button" onclick="app.signOut()">
		Sign out
	</button>
	<textarea name="clipboardData">{{clipboardData}}</textarea>
</form>
<script type="text/javascript">
	'use strict';
	var textarea = document.querySelector('textarea');
	var submitButton = document.querySelector('[type="submit"]');
	window.app = {};
	app.copy = function() {
		textarea.select();
		document.execCommand('copy');
	};
	app.save = function() {
		submitButton.click();
	};
	app.clear = function() {
		textarea.value = '';
	};
	app.signOut = function() {
		window.location.href = '/sign-out';
	};
</script><commit_msg>fix: Clear button wasn't automatically saving.<commit_after>{{> head}}
<style>
	body
	{
		text-align: center;
	}
	textarea
	{
		width: 100%;
		height: 400px;
		margin-top: 8px;
	}
</style>
<form method="post">
	<button type="button" onclick="app.copy()">
		Copy
	</button>
	<button type="submit">
		Save
	</button>
	<button type="button" onclick="app.clear(); app.save()">
		Clear
	</button>
	<button type="button" onclick="app.signOut()">
		Sign out
	</button>
	<textarea name="clipboardData">{{clipboardData}}</textarea>
</form>
<script type="text/javascript">
	'use strict';
	var textarea = document.querySelector('textarea');
	var submitButton = document.querySelector('[type="submit"]');
	window.app = {};
	app.copy = function() {
		textarea.select();
		document.execCommand('copy');
	};
	app.save = function() {
		submitButton.click();
	};
	app.clear = function() {
		textarea.value = '';
	};
	app.signOut = function() {
		window.location.href = '/sign-out';
	};
</script>
{'fraction_non_alphanumeric': 0.2025974025974026, 'fraction_numerical': 0.007272727272727273, 'mean_word_length': 4.502857142857143, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '7012128', 'n_tokens_mistral': 727, 'n_tokens_neox': 667, 'n_words': 136}