<commit_before>(function($) {
	'use strict';

	function init() {
		$('.spoilers-button').each(function() {
			var $this = $(this),
				$parent = $this.parent(),
				showMsg = $parent.attr('data-showtext') || mw.msg('spoilers_show_default'),
				hideMsg = $parent.attr('data-hidetext') || mw.msg('spoilers_hide_default');
			$this
				.text($parent.children('.spolers-body:visible').length ? showMsg : hideMsg);
				.click(function() {
					var $parent = $(this).parent(),
					$parent.children('.spoilers-button').text($parent.children('.spolers-body:visible').length ? hideMsg : showMsg);
					$parent.children('.spoilers-body').slideToggle();
				});
	}

	$(init);<commit_msg>Changes for PR #24<commit_after>(function($) {
	'use strict';

	function init() {
		$('.spoilers-button').each(function() {
			var $this = $(this),
				$parent = $this.parent(),
				showMsg = $parent.attr('data-showtext') || mw.msg('spoilers_show_default'),
				hideMsg = $parent.attr('data-hidetext') || mw.msg('spoilers_hide_default');
			$this
				.text($parent.children('.spolers-body:visible').length ? showMsg : hideMsg)
				.click(function() {
					$parent.children('.spoilers-button').text($parent.children('.spolers-body:visible').length ? hideMsg : showMsg);
					$parent.children('.spoilers-body').slideToggle();
				});
		});
	}

	$(init);
{'fraction_non_alphanumeric': 0.21519939804364183, 'fraction_numerical': 0.0015048908954100827, 'mean_word_length': 4.256916996047431, 'pattern_counts': {'":': 0, '<': 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': '6133411', 'n_tokens_mistral': 523, 'n_tokens_neox': 452, 'n_words': 59}