<commit_before>{% load xmlutil %}
{% for query, article_ids in queries.items %}
    <Classification ID="{{ query.query|xmlescape }}">
        <Name>{{ query.label|quoteattr }}</Name>
        <SuperClass refs="root" />
        <Objects objectIDs="{{ article_ids|join:' ' }}" />
    </Classification>
{% endfor %}<commit_msg>use quoteattr to quote attrs<commit_after>{% load xmlutil %}
{% for query, article_ids in queries.items %}
    <Classification ID={{ query.query|quoteattr }}>
        <Name>{{ query.label|quoteattr }}</Name>
        <SuperClass refs="root" />
        <Objects objectIDs="{{ article_ids|join:' ' }}" />
    </Classification>
{% endfor %}
{'fraction_non_alphanumeric': 0.18512898330804248, 'fraction_numerical': 0.0, 'mean_word_length': 3.6153846153846154, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '4740416', 'n_tokens_mistral': 211, 'n_tokens_neox': 200, 'n_words': 46}