<commit_before>import re
from setuptools import setup
import tldextract

# I don't want to learn reStructuredText right now, so strip Markdown links
# that make pip barf.
long_description_markdown = tldextract.tldextract.__doc__
long_description = re.sub(r'\[(.*?)\]\((http.*?)\)', r' \1 (\2)', long_description_markdown, flags=re.DOTALL)

setup(
    name = "tldextract",
    version = tldextract.__version__,
    author = "<NAME>",
    author_email = "<EMAIL>",
    description = ("Accurately separate the gTLD/ccTLD component from the "
        "registered domain and subdomains of a URL."),
    license = "BSD License",
    keywords = "tld domain subdomain url parse extract urlparse",
    url = "https://github.com/john-kurkowski/tldextract",
    packages = ['tldextract'],
    long_description = long_description,
    classifiers = [
        "Development Status :: 5 - Production/Stable",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
    ],
)
<commit_msg>Make setup.py 2.5+ compatible<commit_after>import re
from setuptools import setup
import tldextract

# I don't want to learn reStructuredText right now, so strip Markdown links
# that make pip barf.
long_description_markdown = tldextract.tldextract.__doc__
long_description = re.sub(r'(?s)\[(.*?)\]\((http.*?)\)', r'\1', long_description_markdown)

setup(
    name = "tldextract",
    version = tldextract.__version__,
    author = "<NAME>",
    author_email = "<EMAIL>",
    description = ("Accurately separate the gTLD/ccTLD component from the "
        "registered domain and subdomains of a URL."),
    license = "BSD License",
    keywords = "tld domain subdomain url parse extract urlparse",
    url = "https://github.com/john-kurkowski/tldextract",
    packages = ['tldextract'],
    long_description = long_description,
    classifiers = [
        "Development Status :: 5 - Production/Stable",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
        "Programming Language :: Python :: 2.5",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
    ],
)

{'fraction_non_alphanumeric': 0.1302717900656045, 'fraction_numerical': 0.006091846298031865, 'mean_word_length': 3.4665271966527196, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1281869', 'n_tokens_mistral': 657, 'n_tokens_neox': 628, 'n_words': 184}