<commit_before>var FormUtils = function() {

    this.hasError = function(input) {
        return !input.$focused && input.$dirty && input.$invalid;
    };

    this.hasPropertyError = function(input, property) {
        return !input.$focused && input.$dirty && input.$error[property];
    };

};

FormUtils.$inject = [];
module.exports = FormUtils;<commit_msg>show form error even if input not dirty<commit_after>var FormUtils = function() {

    this.hasError = function(input) {
        return !input.$focused && input.$invalid;
    };

    this.hasPropertyError = function(input, property) {
        return !input.$focused && input.$error[property];
    };

};

FormUtils.$inject = [];
module.exports = FormUtils;
{'fraction_non_alphanumeric': 0.1532033426183844, 'fraction_numerical': 0.0, 'mean_word_length': 3.4382716049382718, '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': '3437324', 'n_tokens_mistral': 210, 'n_tokens_neox': 200, 'n_words': 42}