<commit_before>"""
Created on Thurs May 21 22:23:22 2015

@author: <NAME>
"""

import sys
import xml.etree.ElementTree as ET
import helper as help
import time

#get filename from commandline
file = sys.argv[1]

#begin parsing, gets single atom.
tree = ET.parse(file)
root = tree.getroot()
atomList = root.findall('./atomArray/atom')
bondList = root.findall('./bondArray/bond')<commit_msg>switch<commit_after>"""
Created on Thurs May 21 22:23:22 2015

@author: <NAME>
"""

import sys
import xml.etree.ElementTree as ET
import helper as help
import time
import parse

#get filename from commandline
file = sys.argv[1]

#begin parsing, gets single atom.
tree = ET.parse(file)
root = tree.getroot()
atomList = root.findall('./atomArray/atom')
bondList = root.findall('./bondArray/bond')
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.03324808184143223, 'mean_word_length': 4.977099236641221, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4830460', 'n_tokens_mistral': 286, 'n_tokens_neox': 257, 'n_words': 83}