<commit_before><script type="application/zook">
{
	"forced": true,
	"title": "Gadzooks options configurator",
	"description": "Toggle Gadzook options to your hearts content via a snazzy popup",
	"requires": ["core-angular"]
}
</script>
<script>
$.each($.gadzooks.loaded, function(id, zook) {
	// Angular, Angular, My Kingdom for Angular!
	$('.gadzooks-options-content').append($(
		'<div class="gadzooks-option" data-zook="' + zook.id + '">' +
			(!zook.forced ? ('<div class="gz-check"><input type="checkbox"' + (zook.state ? ' checked="checked"' : '') + '/><label></label></div>') : '<div class="gz-check-disabled">Locked</div>') +
			'<h2>' + zook.title + '</h2>' +
			'<p>' + zook.description + '</p>' +
		'</div>'
	));
});

$.gadzooks.options = function() {
	$('#gadzooks-options').toggle();
};

$('.gadzooks-option input[type=checkbox]').live('change', function() {
	var zook;
	if ($(this).closest('.gadzooks-option').data('zook')) { // jQ >1.3
		zook = $(this).closest('.gadzooks-option').data('zook');
	} else { // jQ =1.3
		zook = $(this).closest('.gadzooks-option').attr('data-zook');<commit_msg>BUGFIX: Options display no longer gets caught in a race condition if it loads before the other zooks<commit_after><script type="application/zook">
{
	"forced": true,
	"title": "Gadzooks options configurator",
	"description": "Toggle Gadzook options to your hearts content via a snazzy popup",
	"requires": ["core-angular"]
}
</script>
<script>
$.gadzooks.options = function() {
	$('#gadzooks-options').toggle();

	if (!$.gadzooks.optionsLoaded) {
		$.each($.gadzooks.loaded, function(id, zook) {
			// Angular, Angular, My Kingdom for Angular!
			$('.gadzooks-options-content').append($(
				'<div class="gadzooks-option" data-zook="' + zook.id + '">' +
					(!zook.forced ? ('<div class="gz-check"><input type="checkbox"' + (zook.state ? ' checked="checked"' : '') + '/><label></label></div>') : '<div class="gz-check-disabled">Locked</div>') +
					'<h2>' + zook.title + '</h2>' +
					'<p>' + zook.description + '</p>' +
				'</div>'
			));
		});
		$.gadzooks.optionsLoaded = true;
	}
};

$('.gadzooks-option input[type=checkbox]').live('change', function() {
	var zook;
	if ($(this).closest('.gadzooks-option').data('zook')) { // jQ >1.3
		zook = $(this).closest('.gadzooks-option').data('zook');
	} else { // jQ =1.3
		zook = $(this).closest('.gadzooks-option').attr('data-zook');
{'fraction_non_alphanumeric': 0.24341279799247176, 'fraction_numerical': 0.005018820577164366, 'mean_word_length': 4.44874715261959, 'pattern_counts': {'":': 8, '<': 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': '5480385', 'n_tokens_mistral': 963, 'n_tokens_neox': 905, 'n_words': 166}