<commit_before>#!/usr/bin/env python
import re
import sys

from setuptools import find_packages, setup


needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []


# Get version without importing, which avoids dependency issues
def get_version():
    with open('chardet/version.py') as version_file:
        return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
                         version_file.read()).group('version')


def readme():
    with open('README.rst') as f:
        return f.read()


setup(name='chardet',
      version=get_version(),
      description='Universal encoding detector for Python 2 and 3',
      long_description=readme(),
      author='<NAME>',
      author_email='<EMAIL>',
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      url='https://github.com/chardet/chardet',
      license="LGPL",
      keywords=['encoding', 'i18n', 'xml'],
      classifiers=["Development Status :: 4 - Beta",<commit_msg>Doc the chardet package suitable for production (#144)<commit_after>#!/usr/bin/env python
import re
import sys

from setuptools import find_packages, setup


needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []


# Get version without importing, which avoids dependency issues
def get_version():
    with open('chardet/version.py') as version_file:
        return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
                         version_file.read()).group('version')


def readme():
    with open('README.rst') as f:
        return f.read()


setup(name='chardet',
      version=get_version(),
      description='Universal encoding detector for Python 2 and 3',
      long_description=readme(),
      author='<NAME>',
      author_email='<EMAIL>',
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      url='https://github.com/chardet/chardet',
      license="LGPL",
      keywords=['encoding', 'i18n', 'xml'],
      classifiers=["Development Status :: 5 - Production/Stable",
{'fraction_non_alphanumeric': 0.16270218839200762, 'fraction_numerical': 0.007136060894386299, 'mean_word_length': 3.662971175166297, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2662926', 'n_tokens_mistral': 681, 'n_tokens_neox': 649, 'n_words': 144}