<commit_before>// Shitty Modal Plugin.
// By <NAME>

(function($){
	$.fn.modal = function(control){
		// So it works in setTimeout and deferred
		var self = this;
		if (control === "hide" || control === undefined && this.hasClass("show")) {
			this.removeClass("show");
			setTimeout (function() {
				self.hide(0);
			}, 350);
			this.off("click");
		} else if (control === "show" || control === undefined && !this.hasClass("show")) {
			this.show(0).addClass("show");
			this.on("click", function(e) {
				if ($(e.target).hasClass("modal")) {
					// This feels so wrong...
					self.modal("hide");
				}
			});
		}
	};
})(jQuery);<commit_msg>Just discovered namespaces for jQuery event<commit_after>// Shitty Modal Plugin.
// By <NAME>

(function($){
	$.fn.modal = function(control){
		// So it works in setTimeout and deferred
		var self = this;
		if (control === "hide" || control === undefined && this.hasClass("show")) {
			this.removeClass("show");
			setTimeout (function() {
				self.hide(0);
			}, 350);
			this.off("click.modal");
		} else if (control === "show" || control === undefined && !this.hasClass("show")) {
			this.show(0).addClass("show");
			// Because I'm an asshole
			this.on("click.modal", function(e) {
				if ($(e.target).hasClass("modal")) {
					// This feels so wrong...
					self.modal("hide");
				}
			});
		}
	};
})(jQuery);
{'fraction_non_alphanumeric': 0.21528288023512124, 'fraction_numerical': 0.0073475385745775165, 'mean_word_length': 3.2037037037037037, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1406324', 'n_tokens_mistral': 528, 'n_tokens_neox': 442, 'n_words': 106}