<commit_before>#!/usr/bin/env python
# Filename: setup.py


import os
import sys
import bigtempo
from pkgutil import walk_packages


try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup


def packages(path=None, prefix="", exclude=None):
    try:
        return find_packages(exclude=exclude)
    except:
        return [name for _, name, ispkg in walk_packages(path, prefix) if ispkg]


def read(*rnames):
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()


if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()


setup(
    name='bigtempo',
    version=bigtempo.__version__,
    description='Powerful processment of temporal data.',
    long_description=read('README.md'),
    license=read('LICENSE'),

    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/rhlobo/bigtempo',

    install_requires=[],
    zip_safe=False,

    package_dir={'bigtempo': 'bigtempo'},
    packages=packages(bigtempo.__path__,
                      bigtempo.__name__,
                      exclude=["*.tests",
                               "*.tests.*",
                               "tests.*",
                               "tests"]),
    include_package_data=True,
    package_data={'': ['LICENSE', 'requirements.txt']},

    classifiers=(
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Financial and Insurance Industry',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Software Development :: Libraries :: Python Modules'
    )
)<commit_msg>Improved setup.py organization.<commit_after>#!/usr/bin/env python
# Filename: setup.py


import os
import sys
import bigtempo
from pkgutil import walk_packages


try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup


def packages(path=None, prefix="", exclude=None):
    try:
        return find_packages(exclude=exclude)
    except:
        return [name for _, name, ispkg in walk_packages(path, prefix) if ispkg]


def read(*rnames):
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()


if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()


setup(
    name='bigtempo',
    version=bigtempo.__version__,
    description='Powerful processment of temporal data.',
    long_description=read('README.md'),
    license=read('LICENSE'),

    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/rhlobo/bigtempo',

    classifiers=(
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Financial and Insurance Industry',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ),


    install_requires=read('requirements.txt').split('\n'),
    package_data={'': ['LICENSE', 'requirements.txt']},
    package_dir={'bigtempo': 'bigtempo'},
    packages=packages(bigtempo.__path__,
                      bigtempo.__name__,
                      exclude=["*.tests",
                               "*.tests.*",
                               "tests.*",
                               "tests"]),

    include_package_data=True,
    zip_safe=False
)
{'fraction_non_alphanumeric': 0.13205718439544464, 'fraction_numerical': 0.001938454082868912, 'mean_word_length': 2.6693333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1126120', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1128, 'n_words': 272}