<commit_before>/*
 * A directive for integrating Angular forms with server-side validation.
 *
 * Usage:
 *   <form ... form-errors='errorObject'> ...
 *
 * The error object must contain the validation errors from the server in the
 * following format:
 *   {
 *     field1: ['error msg 1', 'error msg 2', ...],
 *     field2: ['...'],
 *       :
 *   }
 * where field1, field2 etc. must correspond to the names of the form fields.
 * This object may be null or empty.
 *
 * Note that although this directive adds the appropriate ng-invalid classes,
 * the actual error messages must be displayed manually. This can be done by
 * adding this snippet of code below an input named, say, 'field1':
 *   <span ng-show="errorObject['field1']"><commit_msg>fixed comment format in form_errors.js<commit_after>/*
 * A directive for integrating Angular forms with server-side validation.
 *
 * Usage:
 *   <form ... form-errors='errorObject'> ...
 *
 * The error object must contain the validation errors from the server in the
 * following format:
 *
 *   {
 *     field1: ['error msg 1', 'error msg 2', ...],
 *     field2: ['...'],
 *       :
 *   }
 *
 * where field1, field2 etc. must correspond to the names of the form fields.
 * This object may be null or empty.
 *
 * Note that although this directive adds the appropriate ng-invalid classes,
 * the actual error messages must be displayed manually. This can be done by
 * adding this snippet of code below an input named, say, 'field1':
 *
 *   <span ng-show="errorObject['field1']">
{'fraction_non_alphanumeric': 0.11603650586701435, 'fraction_numerical': 0.010430247718383311, 'mean_word_length': 3.1263440860215055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4739596', 'n_tokens_mistral': 432, 'n_tokens_neox': 415, 'n_words': 187}