<commit_before>from xml.dom.minidom import Text, Element, parseString
import re
import codecs
import json
import copy
import unicodecsv as csv
import xlrd
import sys
try:
    unicode("str")
except NameError:
    unicode = str
    basestring = str
    unichr = chr
else:
     try:
        unicode = unicode
        basestring = basestring
        unichr = unichr
     except NameError:# special cases where unicode is defined in python3 
        unicode = str
        basestring = str
        unichr = chr

SEP = "_"
<commit_msg>Update utils.py<commit_after>from xml.dom.minidom import Text, Element, parseString
import re
import codecs
import json
import copy
import unicodecsv as csv
import xlrd
try:
    unicode("str")
except NameError:
    unicode = str
    basestring = str
    unichr = chr
else:
     try:
        unicode = unicode
        basestring = basestring
        unichr = unichr
     except NameError:# special cases where unicode is defined in python3 
        unicode = str
        basestring = str
        unichr = chr

SEP = "_"

{'fraction_non_alphanumeric': 0.05635148042024833, 'fraction_numerical': 0.0019102196752626551, 'mean_word_length': 2.57679180887372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1951047', 'n_tokens_mistral': 331, 'n_tokens_neox': 311, 'n_words': 113}