<commit_before>import sys
import warnings


pytest_plugins = 'setuptools.tests.fixtures'


def pytest_addoption(parser):
    parser.addoption(
        "--package_name", action="append", default=[],
        help="list of package_name to pass to test functions",
    )


collect_ignore = [
    'tests/manual_test.py',
    'setuptools/tests/mod_with_constant.py',
    'setuptools/_distutils',
    '_distutils_hack',
    'setuptools/extern',
    'pkg_resources/extern',
    'pkg_resources/tests/data',
    'setuptools/_vendor',
    'pkg_resources/_vendor',
]


if sys.version_info < (3, 6):
    collect_ignore.append('docs/conf.py')  # uses f-strings
    collect_ignore.append('pavement.py')


if sys.version_info > (3, 10):
    # https://github.com/pypa/setuptools/pull/2865#issuecomment-965700112
    warnings.filterwarnings(
        'ignore',
        'The distutils.sysconfig module is deprecated, use sysconfig instead',
    )<commit_msg>Suppress 'Distutils was imported before Setuptools' warning on PyPy due to pypa/setuptools#2868.<commit_after>import sys
import warnings


pytest_plugins = 'setuptools.tests.fixtures'


def pytest_addoption(parser):
    parser.addoption(
        "--package_name", action="append", default=[],
        help="list of package_name to pass to test functions",
    )


collect_ignore = [
    'tests/manual_test.py',
    'setuptools/tests/mod_with_constant.py',
    'setuptools/_distutils',
    '_distutils_hack',
    'setuptools/extern',
    'pkg_resources/extern',
    'pkg_resources/tests/data',
    'setuptools/_vendor',
    'pkg_resources/_vendor',
]


if sys.version_info < (3, 6):
    collect_ignore.append('docs/conf.py')  # uses f-strings
    collect_ignore.append('pavement.py')


if sys.version_info > (3, 10):
    # https://github.com/pypa/setuptools/pull/2865#issuecomment-965700112
    warnings.filterwarnings(
        'ignore',
        'The distutils.sysconfig module is deprecated, use sysconfig instead',
    )


is_pypy = '__pypy__' in sys.builtin_module_names
if is_pypy:
    # Workaround for pypa/setuptools#2868
    warnings.filterwarnings(
        'ignore',
        'Distutils was imported before setuptools',
    )
    warnings.filterwarnings(
        'ignore',
        'Setuptools is replacing distutils',
    )
{'fraction_non_alphanumeric': 0.12130569033965594, 'fraction_numerical': 0.01940891045434495, 'mean_word_length': 3.4822134387351777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1911354', 'n_tokens_mistral': 788, 'n_tokens_neox': 753, 'n_words': 139}