<commit_before>(function ($) {
	$(document).on('change', '.preference :checkbox', function () {
		var childBlock = $(this).data('tiki-admin-child-block')
			, childMode = $(this).data('tiki-admin-child-mode')
			, checked = $(this).is(':checked')
			, disabled = $(this).prop('disabled')
			;

		if (childMode === 'invert') {
			checked = ! checked;
		}

		if (disabled || ! checked) {
			$(childBlock).hide('fast');
		} else {
			$(childBlock).show('fast');
		}
	});

	$(document).on('click', '.pref-reset-wrapper a', function () {
		var box = $(this).closest('span').find(':checkbox');
		box.click();
		var $i = $(this).find("img");
		if ($i.attr("src").indexOf("undo") > -1) {
			$i.attr({
				"src": $i.attr("src").replace("undo", "redo"),
				"title": "Restore current value",
				"alt": "Restore current value"
			});
		} else {
			$i.attr({
				"src": $i.attr("src").replace("redo", "undo"),
				"title": "Reset to default",
				"alt": "Reset to default"
			});
		}
		return false;<commit_msg>[FIX] Forced enable should display child container<commit_after>(function ($) {
	$(document).on('change', '.preference :checkbox', function () {
		var childBlock = $(this).data('tiki-admin-child-block')
			, childMode = $(this).data('tiki-admin-child-mode')
			, checked = $(this).is(':checked')
			, disabled = $(this).prop('disabled')
			;

		if (childMode === 'invert') {
			checked = ! checked;
		}

		if (disabled && checked) {
			$(childBlock).show('fast');
		} else if (disabled || ! checked) {
			$(childBlock).hide('fast');
		} else {
			$(childBlock).show('fast');
		}
	});

	$(document).on('click', '.pref-reset-wrapper a', function () {
		var box = $(this).closest('span').find(':checkbox');
		box.click();
		var $i = $(this).find("img");
		if ($i.attr("src").indexOf("undo") > -1) {
			$i.attr({
				"src": $i.attr("src").replace("undo", "redo"),
				"title": "Restore current value",
				"alt": "Restore current value"
			});
		} else {
			$i.attr({
				"src": $i.attr("src").replace("redo", "undo"),
				"title": "Reset to default",
				"alt": "Reset to default"
			});
		}
		return false;
{'fraction_non_alphanumeric': 0.24857414448669202, 'fraction_numerical': 0.0009505703422053232, 'mean_word_length': 3.5661605206073754, 'pattern_counts': {'":': 12, '<': 3, '<?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': '5691383', 'n_tokens_mistral': 850, 'n_tokens_neox': 732, 'n_words': 142}