<commit_before>/*!
 * Dynamic Textarea v0.0.1
 * https://github.com/web-stories/dynamic-textarea
 *
 * Copyright 2015 Web Stories
 * Released under the MIT license
 */
(function( init ) {
	if ( typeof define === "function" && define.amd ) {
		define(function() {
			return init();
		});
	} else {
		document.addEventListener( "DOMContentLoaded", init );
	}
}(function() {
	var originalHeight;
	function refresh( textarea ) {
		originalHeight = originalHeight || window.getComputedStyle( textarea ).height;
		textarea.style.overflow = "hidden";
		textarea.style.height = originalHeight;
		if ( textarea.scrollHeight > textarea.clientHeight ) {
			textarea.style.height = textarea.scrollHeight + "px";
		}
	};
	[ "keyup", "keydown" ].forEach(function( eventType ) {
		document.addEventListener( eventType, function( event ) {
			var element = event.target;
			if ( element.nodeName !== "TEXTAREA" ) {
				return;
			}
			if ( !element.dataset.hasOwnProperty( "dynamic" ) ) {<commit_msg>Pass the function reference straight as the callback<commit_after>/*!
 * Dynamic Textarea v0.0.1
 * https://github.com/web-stories/dynamic-textarea
 *
 * Copyright 2015 Web Stories
 * Released under the MIT license
 */
(function( init ) {
	if ( typeof define === "function" && define.amd ) {
		define( init );
	} else {
		document.addEventListener( "DOMContentLoaded", init );
	}
}(function() {
	var originalHeight;
	function refresh( textarea ) {
		originalHeight = originalHeight || window.getComputedStyle( textarea ).height;
		textarea.style.overflow = "hidden";
		textarea.style.height = originalHeight;
		if ( textarea.scrollHeight > textarea.clientHeight ) {
			textarea.style.height = textarea.scrollHeight + "px";
		}
	};
	[ "keyup", "keydown" ].forEach(function( eventType ) {
		document.addEventListener( eventType, function( event ) {
			var element = event.target;
			if ( element.nodeName !== "TEXTAREA" ) {
				return;
			}
			if ( !element.dataset.hasOwnProperty( "dynamic" ) ) {
{'fraction_non_alphanumeric': 0.14199090449722082, 'fraction_numerical': 0.007074279939363315, 'mean_word_length': 3.9874055415617127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4518431', 'n_tokens_mistral': 662, 'n_tokens_neox': 600, 'n_words': 140}