<commit_before>$(function() {
	$("select#language").change(
			function() {
				var url = "index.php?action=privacy_settings&language="
						+ $("select#language option:selected").val();
				location.replace(url);
			});
	$("#privacy_policy_checkbox_enable").change(function(e)
	{
		var checked = $(this).is(":checked");
		if (checked) {
			$("#privacy_policy_checkbox_text_container").slideDown();
		} else {
			$("#privacy_policy_checkbox_text_container").slideUp();
		}
	});
	
});<commit_msg>privacy.js kommentiert<commit_after>// Script for the "privacy settings" page
$(function() {
	// Change language
	// Privacy settings are language specific
	$("select#language").change(
			function() {
				var url = "index.php?action=privacy_settings&language="
						+ $("select#language option:selected").val();
				location.replace(url);
			});
	// expand privacy policy checkbox options when enabled
	$("#privacy_policy_checkbox_enable").change(function(e)
	{
		var checked = $(this).is(":checked");
		if (checked) {
			$("#privacy_policy_checkbox_text_container").slideDown();
		} else {
			$("#privacy_policy_checkbox_text_container").slideUp();
		}
	});
	
});
{'fraction_non_alphanumeric': 0.18158347676419967, 'fraction_numerical': 0.0, 'mean_word_length': 4.994845360824742, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '1761785', 'n_tokens_mistral': 410, 'n_tokens_neox': 366, 'n_words': 58}