<commit_before><commit_msg>Created initial XML parser<commit_after>#!/usr/bin/env python

import sys
from xml.dom import minidom

def main():
	if len(sys.argv) < 2:
		print "Usage: " + sys.argv[0] + " <filename.xml>"
		sys.exit(1)

	filename = sys.argv[1]

	try:
		pmltree = minidom.parse(filename)
		print pmltree.toxml()
	except IOError:
		print "File IO error."

main()
{'fraction_non_alphanumeric': 0.14516129032258066, 'fraction_numerical': 0.010752688172043012, 'mean_word_length': 4.109589041095891, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '237216', 'n_tokens_mistral': 151, 'n_tokens_neox': 141, 'n_words': 35}