<commit_before># -*- coding: utf-8 -*-
import codecs
import os
import re

from setuptools import setup


script_dir = os.path.dirname(os.path.abspath(__file__))


def read_text_file(path):
    with codecs.open(path, 'r', 'utf-8') as f:
        return f.read()


def find_version(*path):
    contents = read_text_file(os.path.join(script_dir, *path))

    # The version line must have the form
    # version_info = (X, Y, Z)
    m = re.search(
        r'^version_info\s*=\s*\(\s*(?P<v0>\d+)\s*,\s*(?P<v1>\d+)\s*,\s*(?P<v2>\d+)\s*\)\s*$',
        contents,
        re.MULTILINE,
    )
    if m:
        return '%s.%s.%s' % (m.group('v0'), m.group('v1'), m.group('v2'))
    raise RuntimeError('Unable to determine package version.')


setup(
    name='py-flags',
    version=find_version('src', 'flags.py'),
    description='Type-safe (bit)flags with enum-like declaration.',
    long_description=read_text_file(os.path.join(script_dir, 'README.rst')),
    keywords='flags bit flag set bitfield',

    url='https://github.com/pasztorpisti/py-flags',

    author='<NAME>',
    author_email='<EMAIL>',

    license='MIT',

    classifiers=[
        'License :: OSI Approved :: MIT License',

        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
    ],
<commit_msg>updating the library description in setup.py<commit_after># -*- coding: utf-8 -*-
import codecs
import os
import re

from setuptools import setup


script_dir = os.path.dirname(os.path.abspath(__file__))


def read_text_file(path):
    with codecs.open(path, 'r', 'utf-8') as f:
        return f.read()


def find_version(*path):
    contents = read_text_file(os.path.join(script_dir, *path))

    # The version line must have the form
    # version_info = (X, Y, Z)
    m = re.search(
        r'^version_info\s*=\s*\(\s*(?P<v0>\d+)\s*,\s*(?P<v1>\d+)\s*,\s*(?P<v2>\d+)\s*\)\s*$',
        contents,
        re.MULTILINE,
    )
    if m:
        return '%s.%s.%s' % (m.group('v0'), m.group('v1'), m.group('v2'))
    raise RuntimeError('Unable to determine package version.')


setup(
    name='py-flags',
    version=find_version('src', 'flags.py'),
    description='Type-safe (bit)flags for python 3',
    long_description=read_text_file(os.path.join(script_dir, 'README.rst')),
    keywords='flags bit flag set bitfield',

    url='https://github.com/pasztorpisti/py-flags',

    author='<NAME>',
    author_email='<EMAIL>',

    license='MIT',

    classifiers=[
        'License :: OSI Approved :: MIT License',

        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
    ],

{'fraction_non_alphanumeric': 0.17490372272143775, 'fraction_numerical': 0.006739409499358151, 'mean_word_length': 3.0959264126149804, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3237619', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1032, 'n_words': 229}