<commit_before>import subprocess
from setuptools import setup, find_packages


def readme():
    with open('README.md') as _file:
        return _file.read()


def requirements():
    with open('reqs.txt') as reqs:
        return [line.strip() for line in reqs
                if line and not line.startswith('#')]

def latest_git_tag():
    try:
        tag = subprocess.check_output(
            ['git', 'describe', '--abbrev=0', '--tags']
        ).rstrip()
    except subprocess.CalledProcessError:
        return '0.0.0'
    return tag


setup(
    name='jarvis',
    # Version is the most-recent git tag that's accessible via current commit.
    version=latest_git_tag(),
    long_description=readme(),
    description='Scripting framework for growing code.',
    author='jad-b',
    author_email='<EMAIL>',
    url='https://github.com/jad-b/jarvis',
    packages=['jarvis'],
    install_requires=requirements(),
    entry_points={
        'jarvis.plugins': ['jarvis = jarvis'],
        'console_scripts': [
            'jarvis=main:main',
        ]
    },
    zip_safe=False,
    include_package_data=True,
    classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ),
)<commit_msg>Decode git tag as bytes to string<commit_after>import subprocess
from setuptools import setup, find_packages


def readme():
    with open('README.md') as _file:
        return _file.read()


def requirements():
    with open('reqs.txt') as reqs:
        return [line.strip() for line in reqs
                if line and not line.startswith('#')]

def latest_git_tag():
    try:
        tag = subprocess.check_output(
            ['git', 'describe', '--abbrev=0', '--tags']
        ).decode().rstrip()
    except subprocess.CalledProcessError:
        return '0.0.0'
    return tag


setup(
    name='jarvis',
    # Version is the most-recent git tag that's accessible via current commit.
    version=latest_git_tag(),
    long_description=readme(),
    description='Scripting framework for growing code.',
    author='jad-b',
    author_email='<EMAIL>',
    url='https://github.com/jad-b/jarvis',
    packages=['jarvis'],
    install_requires=requirements(),
    entry_points={
        'jarvis.plugins': ['jarvis = jarvis'],
        'console_scripts': [
            'jarvis=main:main',
        ]
    },
    zip_safe=False,
    include_package_data=True,
    classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5'
    ),
)
{'fraction_non_alphanumeric': 0.1365211365211365, 'fraction_numerical': 0.006237006237006237, 'mean_word_length': 2.6544303797468354, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3642628', 'n_tokens_mistral': 887, 'n_tokens_neox': 855, 'n_words': 212}