<commit_before>import os, glob, fnmatch
import sys
from StringIO import StringIO
from lxml import etree
import urllib
from eulxml import xmlmap
import time

XSD_SCHEMAS = ['http://www.loc.gov/standards/mods/v3/mods-3-4.xsd', 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
               'http://www.loc.gov/standards/xlink/xlink.xsd', 'http://www.loc.gov/standards/premis/premis.xsd',
               'http://www.loc.gov/standards/premis/v2/premis-v2-1.xsd', 'http://www.tei-c.org/release/xml/tei/custom/schema/xsd/tei_all.xsd']
# , 'http://www.archives.ncdcr.gov/mail-account.xsd'

class Uri(xmlmap.XmlObject):
    ROOT_NAME = 'uri'
    ROOT_NS = "urn:oasis:names:tc:entity:xmlns:xml:catalog"
    name = xmlmap.StringField('@name')
    uri = xmlmap.StringField('@uri')

class Catalog(xmlmap.XmlObject):
    ROOT_NAME = 'catalog'
    ROOT_NS = "urn:oasis:names:tc:entity:xmlns:xml:catalog"
    ROOT_NAMESPACES = {'c' : ROOT_NS}
    uri_list = xmlmap.NodeListField('c:uri', Uri)



def grab_xsd_xml():
    types = ('*.xml', '*.xsd')
    grab_files = []
    for file in types:<commit_msg>fixing setup dependencies in catalog<commit_after>import os, glob, fnmatch
import sys
from StringIO import StringIO
from xml import etree
import urllib
from eulxml import xmlmap
import time

XSD_SCHEMAS = ['http://www.loc.gov/standards/mods/v3/mods-3-4.xsd', 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
               'http://www.loc.gov/standards/xlink/xlink.xsd', 'http://www.loc.gov/standards/premis/premis.xsd',
               'http://www.loc.gov/standards/premis/v2/premis-v2-1.xsd', 'http://www.tei-c.org/release/xml/tei/custom/schema/xsd/tei_all.xsd']
# , 'http://www.archives.ncdcr.gov/mail-account.xsd'

class Uri(xmlmap.XmlObject):
    ROOT_NAME = 'uri'
    ROOT_NS = "urn:oasis:names:tc:entity:xmlns:xml:catalog"
    name = xmlmap.StringField('@name')
    uri = xmlmap.StringField('@uri')

class Catalog(xmlmap.XmlObject):
    ROOT_NAME = 'catalog'
    ROOT_NS = "urn:oasis:names:tc:entity:xmlns:xml:catalog"
    ROOT_NAMESPACES = {'c' : ROOT_NS}
    uri_list = xmlmap.NodeListField('c:uri', Uri)



def grab_xsd_xml():
    types = ('*.xml', '*.xsd')
    grab_files = []
    for file in types:
{'fraction_non_alphanumeric': 0.16833484986351227, 'fraction_numerical': 0.007279344858962694, 'mean_word_length': 3.708779443254818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 30}, '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': '2709784', 'n_tokens_mistral': 903, 'n_tokens_neox': 856, 'n_words': 127}