<commit_before>from __future__ import print_function

import os
import sys
from setuptools import setup, extension

setup_kwargs = {}

try:
    import numpy
    from Cython import Build

    setup_kwargs['ext_modules'] = Build.cythonize([
        extension.Extension(
            'stl._speedups',
            ['stl/_speedups.pyx'],
            include_dirs=[numpy.get_include()],
        ),
    ])
except ImportError:
    print('WARNING', file=sys.stderr)
    print('Cython and Numpy is required for building extension.',
          file=sys.stderr)
    print('Falling back to pure Python implementation.', file=sys.stderr)

# To prevent importing about and thereby breaking the coverage info we use this
# exec hack
about = {}
with open('stl/__about__.py') as fp:
    exec(fp.read(), about)


if os.path.isfile('README.rst'):
    long_description = open('README.rst').read()
else:
    long_description = 'See http://pypi.python.org/pypi/%s/' % (
        about['__package_name__'])

install_requires = [
    'numpy',
    'nine',
    'python-utils>=1.6.2',
]

try:
    import enum
    assert enum
except ImportError:
    install_requires.append('enum34')


if '--no-pytest-runner' in sys.argv:
    tests_require = []
    setup_requires = []
else:
    tests_require = ['pytest']
    setup_requires = ['pytest-runner']


if __name__ == '__main__':
    setup(
        name=about['__package_name__'],
        version=about['__version__'],
        author=about['__author__'],
        author_email=about['__author_email__'],
        description=about['__description__'],<commit_msg>siwtch to environment variable for skipping pytest runner<commit_after>from __future__ import print_function

import os
import sys
from setuptools import setup, extension

setup_kwargs = {}

try:
    import numpy
    from Cython import Build

    setup_kwargs['ext_modules'] = Build.cythonize([
        extension.Extension(
            'stl._speedups',
            ['stl/_speedups.pyx'],
            include_dirs=[numpy.get_include()],
        ),
    ])
except ImportError:
    print('WARNING', file=sys.stderr)
    print('Cython and Numpy is required for building extension.',
          file=sys.stderr)
    print('Falling back to pure Python implementation.', file=sys.stderr)

# To prevent importing about and thereby breaking the coverage info we use this
# exec hack
about = {}
with open('stl/__about__.py') as fp:
    exec(fp.read(), about)


if os.path.isfile('README.rst'):
    long_description = open('README.rst').read()
else:
    long_description = 'See http://pypi.python.org/pypi/%s/' % (
        about['__package_name__'])

install_requires = [
    'numpy',
    'nine',
    'python-utils>=1.6.2',
]

try:
    import enum
    assert enum
except ImportError:
    install_requires.append('enum34')


if os.environ.get('PYTEST_RUNNER', '').lower() == 'false':
    tests_require = []
    setup_requires = []
else:
    tests_require = ['pytest']
    setup_requires = ['pytest-runner']


if __name__ == '__main__':
    setup(
        name=about['__package_name__'],
        version=about['__version__'],
        author=about['__author__'],
        author_email=about['__author_email__'],
        description=about['__description__'],
{'fraction_non_alphanumeric': 0.13036714374611078, 'fraction_numerical': 0.0031113876789047915, 'mean_word_length': 3.2470277410832233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1126398', 'n_tokens_mistral': 1012, 'n_tokens_neox': 985, 'n_words': 226}