<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import numpy

from setuptools import setup, Extension

# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
    os.system("python setup.py sdist upload")
    sys.exit()

# Default compile arguments.
compile_args = dict(
    libraries=[],
    define_macros=[("NDEBUG", None)],
)
if os.name == "posix":
    compile_args["libraries"].append("m")

localincl = os.path.join("cpp", "include")
compile_args["include_dirs"] = [
    localincl,
    numpy.get_include(),
]

# Check to make sure that the header files are in place
if not os.path.exists(os.path.join(localincl, "celerite", "version.h")):
    raise RuntimeError("couldn't find celerite headers")

ext = Extension("celerite.solver",
                sources=[os.path.join("celerite", "solver.cpp")],
                language="c++",
                **compile_args)

# Hackishly inject a constant into builtins to enable importing of the
# package before the library is built.
if sys.version_info[0] < 3:
    import __builtin__ as builtins
else:
    import builtins
builtins.__CELERITE_SETUP__ = True
import celerite  # NOQA
from celerite.build import build_ext  # NOQA

setup(
    name="celerite",
    version=celerite.__version__,
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/dfm/celerite",
    license="MIT",
    packages=["celerite"],
    install_requires=["numpy", "pybind11"],
    ext_modules=[ext],
    description="Scalable 1D Gaussian Processes",
    long_description=open("README.rst").read(),
    package_data={"": ["README.rst", "LICENSE",
                       os.path.join(localincl, "*.h"),
                       os.path.join(localincl, "*", "*.h")]},
    include_package_data=True,
    cmdclass=dict(build_ext=build_ext),
    classifiers=[
        # "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
    ],
)<commit_msg>zip safe<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import numpy

from setuptools import setup, Extension

# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
    os.system("python setup.py sdist upload")
    sys.exit()

# Default compile arguments.
compile_args = dict(
    libraries=[],
    define_macros=[("NDEBUG", None)],
)
if os.name == "posix":
    compile_args["libraries"].append("m")

localincl = os.path.join("cpp", "include")
compile_args["include_dirs"] = [
    localincl,
    numpy.get_include(),
]

# Check to make sure that the header files are in place
if not os.path.exists(os.path.join(localincl, "celerite", "version.h")):
    raise RuntimeError("couldn't find celerite headers")

ext = Extension("celerite.solver",
                sources=[os.path.join("celerite", "solver.cpp")],
                language="c++",
                **compile_args)

# Hackishly inject a constant into builtins to enable importing of the
# package before the library is built.
if sys.version_info[0] < 3:
    import __builtin__ as builtins
else:
    import builtins
builtins.__CELERITE_SETUP__ = True
import celerite  # NOQA
from celerite.build import build_ext  # NOQA

setup(
    name="celerite",
    version=celerite.__version__,
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/dfm/celerite",
    license="MIT",
    packages=["celerite"],
    install_requires=["numpy", "pybind11"],
    ext_modules=[ext],
    description="Scalable 1D Gaussian Processes",
    long_description=open("README.rst").read(),
    package_data={"": ["README.rst", "LICENSE",
                       os.path.join(localincl, "*.h"),
                       os.path.join(localincl, "*", "*.h")]},
    include_package_data=True,
    cmdclass=dict(build_ext=build_ext),
    classifiers=[
        # "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
    ],
    zip_safe=True,
)
{'fraction_non_alphanumeric': 0.14505597014925373, 'fraction_numerical': 0.0037313432835820895, 'mean_word_length': 3.2761714855433697, 'pattern_counts': {'":': 4, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6751909', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1348, 'n_words': 320}