<commit_before>networkMap.widget = networkMap.widget || {};

networkMap.widget.TextInput = new Class ({
	Implements: [Options, Events],
	options: {
		class: 'nm-input-text',
		type: 'text'
	},
	wrapper: null,
	label: null,
	input: null,
	initialize: function(label, value, options){
		this.setOptions(options);
		this.wrapper = new Element('div', {
			class: this.options.class
		});
		this.label = new Element('span', {
			text: label
		});
		this.input = new Element('input', {
			type: this.options.type,
			value: value
		}); <commit_msg>Added change event<commit_after>networkMap.widget = networkMap.widget || {};

networkMap.widget.TextInput = new Class ({
	Implements: [Options, Events],
	options: {
		class: 'nm-input-text',
		type: 'text'
	},
	wrapper: null,
	label: null,
	input: null,
	initialize: function(label, value, options){
		this.setOptions(options);
		this.wrapper = new Element('div', {
			class: this.options.class
		});
		this.label = new Element('span', {
			text: label
		});
		this.input = new Element('input', {
			type: this.options.type,
			value: value
		}).addEvent('change', function(e){
			this.fireEvent('change', [e]);
		}.bind(this)); 
{'fraction_non_alphanumeric': 0.1707941929974381, 'fraction_numerical': 0.0, 'mean_word_length': 4.030042918454936, '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': '6311095', 'n_tokens_mistral': 431, 'n_tokens_neox': 393, 'n_words': 89}