<commit_before>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

import numpy
import os
import sys

if sys.platform == "darwin":
    if os.path.exists("/opt/local/include/ta-lib"):
        include_talib_dir = "/opt/local/include"
        lib_talib_dir = "/opt/local/lib"
    else:
        include_talib_dir = "/usr/local/include/"
        lib_talib_dir = "/usr/local/lib/"

elif sys.platform == "linux2" or "freebsd" in sys.platform:
    include_talib_dir = "/usr/local/include/"
    lib_talib_dir = "/usr/local/lib/"

elif sys.platform == "win32":
    include_talib_dir = r"c:\msys\1.0\local\include"
    lib_talib_dir = r"c:\msys\1.0\local\lib"

else:
    raise NotImplementedError(sys.platform)

common_ext = Extension('talib.common_c', ['talib/common_c.pyx'],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=["ta_lib"]
)

func_ext = Extension("talib.func", ["talib/func.pyx"],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=["ta_lib"]
)

abstract_ext = Extension('talib.abstract', ['talib/abstract.pyx'],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=['ta_lib']
)

setup(
    name = 'TA-Lib',
    version = '0.4.2',
    description = 'Python wrapper for TA-Lib',
    author = '<NAME>',
    author_email = '<EMAIL>',
    url = 'http://github.com/mrjbq7/ta-lib',
    download_url = 'https://github.com/mrjbq7/ta-lib/archive/TA_Lib-0.4.2.zip',
    classifiers = [
        "Development Status :: 4 - Beta",
        "Topic :: Scientific/Engineering :: Mathematics",
        "License :: OSI Approved :: BSD License",
    ],
    packages=['talib', 'talib.tests'],
    ext_modules=[common_ext, func_ext, abstract_ext],
    cmdclass = {'build_ext': build_ext}
)<commit_msg>update and organize distutils package classifiers<commit_after>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

import numpy
import os
import sys

if sys.platform == "darwin":
    if os.path.exists("/opt/local/include/ta-lib"):
        include_talib_dir = "/opt/local/include"
        lib_talib_dir = "/opt/local/lib"
    else:
        include_talib_dir = "/usr/local/include/"
        lib_talib_dir = "/usr/local/lib/"

elif sys.platform == "linux2" or "freebsd" in sys.platform:
    include_talib_dir = "/usr/local/include/"
    lib_talib_dir = "/usr/local/lib/"

elif sys.platform == "win32":
    include_talib_dir = r"c:\msys\1.0\local\include"
    lib_talib_dir = r"c:\msys\1.0\local\lib"

else:
    raise NotImplementedError(sys.platform)

common_ext = Extension('talib.common_c', ['talib/common_c.pyx'],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=["ta_lib"]
)

func_ext = Extension("talib.func", ["talib/func.pyx"],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=["ta_lib"]
)

abstract_ext = Extension('talib.abstract', ['talib/abstract.pyx'],
    include_dirs=[numpy.get_include(), include_talib_dir],
    library_dirs=[lib_talib_dir],
    libraries=['ta_lib']
)

setup(
    name = 'TA-Lib',
    version = '0.4.2',
    description = 'Python wrapper for TA-Lib',
    author = '<NAME>',
    author_email = '<EMAIL>',
    url = 'http://github.com/mrjbq7/ta-lib',
    download_url = 'https://github.com/mrjbq7/ta-lib/archive/TA_Lib-0.4.2.zip',
    classifiers = [
        "License :: OSI Approved :: BSD License",
        "Development Status :: 4 - Beta",
        "Operating System :: Unix",
        "Operating System :: POSIX",
        "Operating System :: MacOS :: MacOS X",
        "Programming Language :: Python",
        "Programming Language :: Cython",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Financial and Insurance Industry",
    ],
    packages=['talib', 'talib.tests'],
    ext_modules=[common_ext, func_ext, abstract_ext],
    cmdclass = {'build_ext': build_ext}
)
{'fraction_non_alphanumeric': 0.15222537878787878, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 3.5675675675675675, 'pattern_counts': {'":': 4, '<': 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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '28965', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1463, 'n_words': 260}