<commit_before>/**
 * @class CM_Form_Abstract
 * @extends CM_View_Abstract
 */
var CM_Form_Abstract = CM_View_Abstract.extend({
	_class: 'CM_Form_Abstract',

	_fields: {},

	events: {
		'reset': function() {
			this.resetErrors();
			_.each(this._fields, function(field) {
				field.reset();
			});
		}
	},

	ready: function() {
	},

	initialize: function() {
		CM_View_Abstract.prototype.initialize.call(this);
<commit_msg>first reset the fields, and then the errors<commit_after>/**
 * @class CM_Form_Abstract
 * @extends CM_View_Abstract
 */
var CM_Form_Abstract = CM_View_Abstract.extend({
	_class: 'CM_Form_Abstract',

	_fields: {},

	events: {
		'reset': function() {
			_.each(this._fields, function(field) {
				field.reset();
			});
			this.resetErrors();
		}
	},

	ready: function() {
	},

	initialize: function() {
		CM_View_Abstract.prototype.initialize.call(this);

{'fraction_non_alphanumeric': 0.15831435079726652, 'fraction_numerical': 0.0, 'mean_word_length': 4.232142857142857, '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': '4794289', 'n_tokens_mistral': 335, 'n_tokens_neox': 302, 'n_words': 53}