<commit_before>/*
 * Author: CM
 */
(function($) {
	$.fn.extend({
		disable: function(message) {
			$.blockUI.defaults.overlayCSS = {opacity: 0.3};
			$.blockUI.defaults.css = {};
			return this.each(function() {
				$(this).block({
					fadeIn: 50,
					message: message ? message : null
				});
			});
		},

		enable: function() {
			return this.each(function() {
				$(this).unblock({
					fadeOut: 0
				});
			});
		},

		scrollBottom: function() {
			this.scrollTop(this.prop("scrollHeight"));
		},

		scrollTo: function(target) {
			if (target.length == 0) {
				return;
			}
			this.scrollTop(target.offset().top);
		},

		changetext: function(handler) {
			var callback = function() {
				var value_old = $(this).data('value_last');
				var value_new = $(this).val();
				if (value_new != value_old) {
					$(this).data('value_last', value_new);
					return handler.call(this);
				}
			};
			this.bind("propertychange keyup input cut paste", callback);
			$(this).watch('value', callback);<commit_msg>Pass value to $.changetext callback<commit_after>/*
 * Author: CM
 */
(function($) {
	$.fn.extend({
		disable: function(message) {
			$.blockUI.defaults.overlayCSS = {opacity: 0.3};
			$.blockUI.defaults.css = {};
			return this.each(function() {
				$(this).block({
					fadeIn: 50,
					message: message ? message : null
				});
			});
		},

		enable: function() {
			return this.each(function() {
				$(this).unblock({
					fadeOut: 0
				});
			});
		},

		scrollBottom: function() {
			this.scrollTop(this.prop("scrollHeight"));
		},

		scrollTo: function(target) {
			if (target.length == 0) {
				return;
			}
			this.scrollTop(target.offset().top);
		},

		changetext: function(handler) {
			var callback = function() {
				var value_old = $(this).data('value_last');
				var value_new = $(this).val();
				if (value_new != value_old) {
					$(this).data('value_last', value_new);
					return handler.call(this, value_new);
				}
			};
			this.bind("propertychange keyup input cut paste", callback);
			$(this).watch('value', callback);
{'fraction_non_alphanumeric': 0.1873479318734793, 'fraction_numerical': 0.00583941605839416, 'mean_word_length': 3.0392927308447937, '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': '7586811', 'n_tokens_mistral': 872, 'n_tokens_neox': 684, 'n_words': 130}