<commit_before>from distutils.core import setup

setup(
    name='PyStyl',
    version='0.0.1',
    author='<NAME> and <NAME>',
    author_email='<EMAIL>',
    packages=['app', 'PyStyl', 'PyStyl.clustering'],
    url='http://pypi.python.org/pypi/PyStyl/',
    license='LICENSE.txt',
    description='Computational Stylistics in Python',
    long_description=open('README.md').read(),
    install_requires=[
        'numpy',
        'scikit-learn',
        'seaborn',
        'nltk',
        'pylab',
        'matplotlib',
        'ete2', # or ete3
        'flask',
        'scipy',
        'pandas',
        'bokeh',
    ],
)<commit_msg>improved setup for py2 and py3<commit_after>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
import sys

if sys.version_info[0] == 2:
    ete_requirement = 'ete2'
elif sys.version_info[0] == 3:
    ete_requirement = 'ete3'
    
setup(
    name='PyStyl',
    version='0.0.1',
    author='<NAME> and <NAME>',
    author_email='<EMAIL>',
    packages=['app', 'PyStyl', 'PyStyl.clustering'],
    url='http://pypi.python.org/pypi/PyStyl/',
    license='LICENSE.txt',
    description='Computational Stylistics in Python',
    long_description=open('README.md').read(),
    install_requires=[
        'numpy',
        'scikit-learn',
        'seaborn',
        'nltk',
        'matplotlib',
        ete_requirement,
        'flask',
        'scipy',
        'pandas',
        'bokeh',
    ],
)
{'fraction_non_alphanumeric': 0.16337644656228728, 'fraction_numerical': 0.010891763104152484, 'mean_word_length': 2.5853658536585367, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '2414272', 'n_tokens_mistral': 535, 'n_tokens_neox': 520, 'n_words': 91}