<commit_before>$(document).ready(function () {
	$("#parseButton").click(function () {
		var example = window.ReverseRegexThing.parse($("#regex").val());
		$("<div class=\"regexExample\" />").text(example).prependTo($("#exampleOutput"));
	});
});<commit_msg>Added support for supplying pattern as GET param.<commit_after>$(document).ready(function () {
	$("#parseButton").click(function () {
		var example = window.ReverseRegexThing.parse($("#regex").val());
		$("<div class=\"regexExample\" />").text(example).prependTo($("#exampleOutput"));
	});
	
	if (window.location.search) {
		var getItems = window.location.search.substr(1).split('&');
		var getParameters = {};
		for (var i = 0; i < getItems.length; i++) {
			var keyVal = getItems[i].split('=');
			getParameters[keyval[0]] = keyVal[1];
		}
		
		if (getParameters["pattern"]) {
			$("#regex").val(decodeURIComponent(getParameters["pattern"]));
		}
	}
});
{'fraction_non_alphanumeric': 0.23574561403508773, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 5.475177304964539, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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': '6895706', 'n_tokens_mistral': 309, 'n_tokens_neox': 288, 'n_words': 45}