<commit_before>/**
 * @class Create User
 * @extend Juxta.FloatBox
 * @param {jQuery} element
 */
Juxta.CreateUser = function(element) {

	Juxta.FloatBox.prototype.constructor.call(this, element, {title: 'Add a User'});

	var that = this;

	this.container.find('.buttons input[value=Create]').click(function() {
		that.hide();
		Jux.notify('User created');
	});
}

Juxta.Lib.extend(Juxta.CreateUser, Juxta.FloatBox);

/**
 * Show the box
 */
Juxta.CreateUser.prototype.show = function() {
	this.container.find('input[type=text]').attr('value', null);
	Juxta.FloatBox.prototype.show.apply(this, arguments);

	return this;
}

<commit_msg>Remove global variable from Juxta.CreateUser<commit_after>/**
 * @class Create User
 * @extend Juxta.FloatBox
 * @param {jQuery} element
 */
Juxta.CreateUser = function(element) {

	Juxta.FloatBox.prototype.constructor.call(this, element, {title: 'Add a User'});

	var that = this;

	this.container.find('.buttons input[value=Create]').click(function() {
		that.hide();
		that.trigger('notify', 'User created');
	});
}

Juxta.Lib.extend(Juxta.CreateUser, Juxta.FloatBox);

/**
 * Show the box
 * @return {Juxta.CreateUser}
 */
Juxta.CreateUser.prototype.show = function() {
	this.container.find('input[type=text]').attr('value', null);
	Juxta.FloatBox.prototype.show.apply(this, arguments);

	return this;
}
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.0, 'mean_word_length': 4.946902654867257, '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': '299986', 'n_tokens_mistral': 493, 'n_tokens_neox': 467, 'n_words': 83}