<commit_before>
# TODO i think this should work with asyncxml as well
# FIXME  this should be in an own package

jquerify = (tpl) ->
    tpl.xml._children = []
    tpl.on 'add', (el) ->
        el._children = [] unless el._jquery?

    tpl.on 'close', (el) ->
        el._jquery = $(el.toString())<commit_msg>add todo<commit_after>
# TODO i think this should work with asyncxml as well
# FIXME  this should be in an own package
# TODO listen on data and use innerHTML to create all dom elems at once
#       http://blog.stevenlevithan.com/archives/faster-than-innerhtml

jquerify = (tpl) ->
    tpl.xml._children = []
    tpl.on 'add', (el) ->
        el._children = [] unless el._jquery?

    tpl.on 'close', (el) ->
        el._jquery = $(el.toString())
{'fraction_non_alphanumeric': 0.1337748344370861, 'fraction_numerical': 0.0, 'mean_word_length': 2.7241379310344827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5478188', 'n_tokens_mistral': 249, 'n_tokens_neox': 249, 'n_words': 81}