<commit_before>from distutils.core import setup, Extension
import sys


def get_extensions(build_type='release'):
    EXPAT_DIR = 'cextern/expat/lib'
    VO_DIR = 'astropy/io/vo/src'

    defines = [("HAVE_EXPAT_CONFIG_H", 1)]
    if sys.byteorder == 'big':
        defines.append(('BYTEORDER', '4321'))
    else:
        defines.append(('BYTEORDER', '1234'))
    if sys.platform != 'win32':
        defines.append(('HAVE_UNISTD_H', None))

    return [Extension(
        "vo.iterparser",
        [VO_DIR + "/iterparse.c",
         EXPAT_DIR + "/xmlparse.c",
         EXPAT_DIR + "/xmlrole.c",
         EXPAT_DIR + "/xmltok.c",
         EXPAT_DIR + "/xmltok_impl.c"],
        define_macros=defines,
        include_dirs=[VO_DIR, EXPAT_DIR])]


def get_package_data():
    return {
        'astropy.io.vo': [
            'data/ucd1p-words.txt', 'data/*.xsd', 'data/*.dtd'],
        'astropy.io.vo.tests': [
            'data/*.xml', 'data/*.gz', 'data/*.json', 'data/*.fits']}
<commit_msg>Fix extension module namespace.<commit_after>from distutils.core import setup, Extension
import sys


def get_extensions(build_type='release'):
    EXPAT_DIR = 'cextern/expat/lib'
    VO_DIR = 'astropy/io/vo/src'

    defines = [("HAVE_EXPAT_CONFIG_H", 1)]
    if sys.byteorder == 'big':
        defines.append(('BYTEORDER', '4321'))
    else:
        defines.append(('BYTEORDER', '1234'))
    if sys.platform != 'win32':
        defines.append(('HAVE_UNISTD_H', None))

    return [Extension(
        "astropy.io.vo.iterparser",
        [VO_DIR + "/iterparse.c",
         EXPAT_DIR + "/xmlparse.c",
         EXPAT_DIR + "/xmlrole.c",
         EXPAT_DIR + "/xmltok.c",
         EXPAT_DIR + "/xmltok_impl.c"],
        define_macros=defines,
        include_dirs=[VO_DIR, EXPAT_DIR])]


def get_package_data():
    return {
        'astropy.io.vo': [
            'data/ucd1p-words.txt', 'data/*.xsd', 'data/*.dtd'],
        'astropy.io.vo.tests': [
            'data/*.xml', 'data/*.gz', 'data/*.json', 'data/*.fits']}

{'fraction_non_alphanumeric': 0.17905236907730673, 'fraction_numerical': 0.011970074812967581, 'mean_word_length': 2.5131348511383536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '3371990', 'n_tokens_mistral': 759, 'n_tokens_neox': 718, 'n_words': 117}