<commit_before>import pdb
from warnings import warn

__all__ = ['load_hoomxml', 'save_hoomdxml']

def load_hoomdxml(filename, optional_nodes=False):
    """Load a HOOMD-blue XML file form disk.

    Args:
        filename (str): Path to xml file.
        optional_nodes(bool, optional):

    Returns:
        traj (md.Trajectory):
    """

    import xml.etree.cElementTree as etree<commit_msg>registered .hoomdxml extension<commit_after>import pdb
from warnings import warn

from mdtraj.formats.registry import _FormatRegistry

__all__ = ['load_hoomxml', 'save_hoomdxml']

@_FormatRegistry.register_loader('.hoomdxml')
def load_hoomdxml(filename, optional_nodes=False):
    """Load a HOOMD-blue XML file form disk.

    Args:
        filename (str): Path to xml file.
        optional_nodes(bool, optional):

    Returns:
        traj (md.Trajectory):
    """

    import xml.etree.cElementTree as etree
{'fraction_non_alphanumeric': 0.09955752212389381, 'fraction_numerical': 0.0, 'mean_word_length': 3.61734693877551, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '3277939', 'n_tokens_mistral': 298, 'n_tokens_neox': 290, 'n_words': 76}