<commit_before># This global callback will be called for any field that fails validation.
window.Parsley.on 'field:error', (e) ->
  @$element.siblings(".glyphicon").remove()

  if @$element.attr('data-parsley-reset')
    @$element.removeAttr('data-parsley-reset')
    .parsley().reset()
  else if ParsleyField.constraints.length && @$element.parents('.float-form-group').hasClass('has-feedback')
    @$element.next("label").after '<span class="glyphicon glyphicon-remove form-control-feedback"></span>'
  return
<commit_msg>ParsleyField constraints is not defined.<commit_after># This global callback will be called for any field that fails validation.
window.Parsley.on 'field:error', (e) ->
  @$element.siblings(".glyphicon").remove()

  if @$element.attr('data-parsley-reset')
    @$element.removeAttr('data-parsley-reset')
    .parsley().reset()
  else if @$element.parents('.float-form-group').hasClass('has-feedback')
    @$element.next("label").after '<span class="glyphicon glyphicon-remove form-control-feedback"></span>'
  return

{'fraction_non_alphanumeric': 0.17211538461538461, 'fraction_numerical': 0.0, 'mean_word_length': 5.196428571428571, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2016587', 'n_tokens_mistral': 326, 'n_tokens_neox': 313, 'n_words': 65}