<commit_before># -*- coding: utf-8 -*-
# ###
# Copyright (c) 2013, Rice University
# This software is subject to the provisions of the GNU Affero General
# Public License version 3 (AGPLv3).
# See LICENCE.txt for details.
# ###
"""Upgrades for munging/transforming Connexions XML formats to HTML."""
import os
import re
import json
from io import BytesIO

import rhaptos.cnxmlutils
from lxml import etree

PARSER_OPTIONS={ 'load_dtd':True,
                'resolve_entities':True,
                'no_network':True,
                'attribute_defaults':False,
                }

__all__ = (
    'transform_collxml_to_html', 'transform_cnxml_to_html',
    'produce_html_for_collection', 'produce_html_for_module',<commit_msg>don't force use of our cnxml/DTD packages, just fetch them from cnx.org<commit_after># -*- coding: utf-8 -*-
# ###
# Copyright (c) 2013, Rice University
# This software is subject to the provisions of the GNU Affero General
# Public License version 3 (AGPLv3).
# See LICENCE.txt for details.
# ###
"""Upgrades for munging/transforming Connexions XML formats to HTML."""
import os
import re
import json
from io import BytesIO

import rhaptos.cnxmlutils
from lxml import etree

PARSER_OPTIONS={ 'load_dtd':True,
                'resolve_entities':True,
#                'no_network':True,  don't force loading our cnxml/DTD packages
                'attribute_defaults':False,
                }

__all__ = (
    'transform_collxml_to_html', 'transform_cnxml_to_html',
    'produce_html_for_collection', 'produce_html_for_module',
{'fraction_non_alphanumeric': 0.09993552546744036, 'fraction_numerical': 0.009026434558349452, 'mean_word_length': 3.511627906976744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '4472627', 'n_tokens_mistral': 494, 'n_tokens_neox': 481, 'n_words': 142}