<commit_before>Kwf.FrontendForm.ErrorStyle.Above = Ext.extend(Kwf.FrontendForm.ErrorStyle.Abstract, {
    showErrors: function(r) {
        var errorMessages = r.errorMessages;
        for (var fieldName in r.errorFields) {
            errorMessages.push(r.errorFields[fieldName]);
            var field = this.form.findField(fieldName);
            field.el.addClass('kwfFieldError');
        }
        if (errorMessages && errorMessages.length) {
            this._showErrorMessagesAbove(errorMessages, r);
        }
    },

    hideErrors: function()
    {
        Kwf.FrontendForm.ErrorStyle.Above.superclass.hideErrors.call(this);
        var error = this.form.el.parent().child('.webFormError');
        if (error) error.remove();
    }
});
Kwf.FrontendForm.errorStyles['above'] = Kwf.FrontendForm.ErrorStyle.Above;<commit_msg>FieldError Class remove when correct input<commit_after>Kwf.FrontendForm.ErrorStyle.Above = Ext.extend(Kwf.FrontendForm.ErrorStyle.Abstract, {
    showErrors: function(r) {
        var errorMessages = r.errorMessages;
        for (var fieldName in r.errorFields) {
            errorMessages.push(r.errorFields[fieldName]);
            var field = this.form.findField(fieldName);
            field.el.addClass('kwfFieldError');
        }
        if (errorMessages && errorMessages.length) {
            this._showErrorMessagesAbove(errorMessages, r);
        }
    },

    hideErrors: function(field)
    {
        Kwf.FrontendForm.ErrorStyle.Above.superclass.hideErrors.call(this);
        var error = this.form.el.parent().child('.webFormError');
        if (error) error.remove();
        field.el.removeClass('kwfFieldError');
        if (field.errorEl) field.errorEl.hide();
    }
});
Kwf.FrontendForm.errorStyles['above'] = Kwf.FrontendForm.ErrorStyle.Above;
{'fraction_non_alphanumeric': 0.12750556792873052, 'fraction_numerical': 0.0, 'mean_word_length': 2.8980477223427332, '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': '3297965', 'n_tokens_mistral': 550, 'n_tokens_neox': 529, 'n_words': 74}