<commit_before># -*- coding: utf-8 -*-
from setuptools import setup
from distutils.extension import Extension
import platform
import sys
import warnings

if "--without-cseabreeze" in sys.argv:
    sys.argv.remove("--without-cseabreeze")  # this is a hack...
    # user requests to not install cython wrapper
    _extensions = []
else:
    # default to building the cython wrapper
    try:
        # try to import cython
        from Cython.Build import cythonize
    except ImportError:
        # if cython is not installed fall back to the provided C file
        cythonize = lambda x: x
        fn_ext = "c"
    else:
        fn_ext = "pyx"

    # The windows version of the cython wrapper depends on winusb
    if platform.system() == "Windows":
        libs = ['seabreeze', 'winusb']
    else:
        libs = ['seabreeze', 'usb']

    # define extension
    try:
        import numpy
    except ImportError:
        warnings.warn("Installation of cseabreeze backend requires numpy.")
        exit(1)

    extensions = [Extension('seabreeze.cseabreeze.wrapper',
                        ['./seabreeze/cseabreeze/wrapper.%s' % fn_ext],<commit_msg>Ensure Cython.__version__ >= 0.18<commit_after># -*- coding: utf-8 -*-
from setuptools import setup
from distutils.extension import Extension
from distutils.version import LooseVersion
import platform
import sys
import warnings

if "--without-cseabreeze" in sys.argv:
    sys.argv.remove("--without-cseabreeze")  # this is a hack...
    # user requests to not install cython wrapper
    _extensions = []
else:
    # default to building the cython wrapper
    try:
        # try to import cython
        import Cython
        # We require at least version 0.18
        if LooseVersion(Cython.__version__) < LooseVersion("0.18"):
            raise ImportError("Cython version < 0.18")
    except ImportError:
        # if not installed or too old fall back to the provided C file
        cythonize = lambda x: x
        fn_ext = "c"
    else:
        from Cython.Build import cythonize
        fn_ext = "pyx"

    # The windows version of the cython wrapper depends on winusb
    if platform.system() == "Windows":
        libs = ['seabreeze', 'winusb']
    else:
        libs = ['seabreeze', 'usb']

    # define extension
    try:
        import numpy
    except ImportError:
        warnings.warn("Installation of cseabreeze backend requires numpy.")
        exit(1)

    extensions = [Extension('seabreeze.cseabreeze.wrapper',
                        ['./seabreeze/cseabreeze/wrapper.%s' % fn_ext],
{'fraction_non_alphanumeric': 0.09536891679748823, 'fraction_numerical': 0.006279434850863423, 'mean_word_length': 2.48224043715847, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7668464', 'n_tokens_mistral': 759, 'n_tokens_neox': 741, 'n_words': 243}