<commit_before>@ignore = []

@record_is_ignored = (name) ->
  ($.inArray name, ignore) isnt -1

render_field = ->
  if field.attr
    v = xml.attr name
  else
    x = xml.children field.name
    v = x.text()
  with_mixin {xml: x, value: v}, fieldview

@render_record = ->
  for f in schema
    if not record_is_ignored f.name
      with_mixin {field: f}, render_field<commit_msg>Set XML for attribute nodes.<commit_after>@ignore = []

@record_is_ignored = (name) ->
  ($.inArray name, ignore) isnt -1

render_field = ->
  if field.attr
    x = xml
    v = xml.attr name
  else
    x = xml.children field.name
    v = x.text()
  with_mixin {parent: xml, xml: x, value: v}, fieldview

@render_record = ->
  for f in schema
    if not record_is_ignored f.name
      with_mixin {field: f}, render_field
{'fraction_non_alphanumeric': 0.12280701754385964, 'fraction_numerical': 0.002506265664160401, 'mean_word_length': 2.897560975609756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '6857902', 'n_tokens_mistral': 292, 'n_tokens_neox': 293, 'n_words': 85}