<commit_before>from setuptools import setup

import sys
import imp
import os

# Check for Cython
try:
    from Cython.Build import cythonize
except ImportError:
    sys.stderr.write(
        "Error: Cython is required, but not installed. Please install Cython "
        "first with `pip install Cython`.\n")
    sys.exit(1)

# Install pre-compiler stage. Cannot use normal import because the precompile
# is a single file not in the same directory.
precompiler = imp.load_source("precompiler", os.path.join(
    os.path.dirname(__file__), "utils/transformer.py"))
precompiler.install_new_pipeline()

# Setup definitions
setup(
    name="flask-daapserver",
    version="3.0.0",
    description="DAAP server framework implemented with Flask",
    long_description=open("README.rst").read(),
    author="<NAME>",
    author_email="<EMAIL>",
    packages=["daapserver"],
    package_dir={"daapserver": "daapserver"},
    setup_requires=["nose"],
    install_requires=["flask", "zeroconf", "gevent", "enum34"],<commit_msg>Check for proper Cython version. Fix versions of gevent and flask.<commit_after>from pkg_resources import parse_version
from setuptools import setup

import sys
import imp
import os

# Check for Cython
try:
    from Cython.Build import cythonize

    if parse_version(__import__("cython").__version__) < \
            parse_version("0.23.0"):
        sys.stderr.write(
            "Error: Cython version 0.23.0 or later is required. Upgrade "
            "Cython via `pip install Cython -U`.\n")
        sys.exit(1)
except ImportError:
    sys.stderr.write(
        "Error: Cython is required, but not installed. Please install Cython "
        "first with `pip install Cython`.\n")
    sys.exit(1)

# Install pre-compiler stage. Cannot use normal import because the precompiler
# is a single file that is not in the same directory.
precompiler = imp.load_source("precompiler", os.path.join(
    os.path.dirname(__file__), "utils/transformer.py"))
precompiler.install_new_pipeline()

# Setup definitions
setup(
    name="flask-daapserver",
    version="3.0.0",
    description="DAAP server framework implemented with Flask",
    long_description=open("README.rst").read(),
    author="<NAME>",
    author_email="<EMAIL>",
    packages=["daapserver"],
    package_dir={"daapserver": "daapserver"},
    setup_requires=["nose"],
    install_requires=["flask>=0.10.0", "gevent>=1.1b1", "zeroconf", "enum34"],
{'fraction_non_alphanumeric': 0.12432878975629905, 'fraction_numerical': 0.011565468814539447, 'mean_word_length': 3.9327902240325865, 'pattern_counts': {'":': 2, '<': 8, '<?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': '2663227', 'n_tokens_mistral': 758, 'n_tokens_neox': 737, 'n_words': 205}