<commit_before>import os.path
import sys

try:
    from setuptools import find_packages, setup
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import find_packages, setup
from setuptools.command.test import test
from earthreader.web.version import VERSION


def readme():
    try:
        with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
            return f.read()
    except (IOError, OSError):
        return ''


class pytest(test):

    def finalize_options(self):
        test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        from pytest import main
        errno = main(self.test_args)
        raise SystemExit(errno)


install_requires = [
    'Flask >= 0.10',
    'libearth >= 0.1.1',
    'waitress'
]
if sys.version_info < (2, 7):
    install_requires.append('argparse >= 1.2.1')


setup(
    name='EarthReader-Web',<commit_msg>pip 1.5 disallow external download_url<commit_after>import os.path
import sys

try:
    from setuptools import find_packages, setup
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import find_packages, setup
from setuptools.command.test import test
from earthreader.web.version import VERSION


def readme():
    try:
        with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
            return f.read()
    except (IOError, OSError):
        return ''


class pytest(test):

    def finalize_options(self):
        test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        from pytest import main
        errno = main(self.test_args)
        raise SystemExit(errno)


install_requires = [
    'Flask >= 0.10',
    'libearth >= 0.1.1',
    'waitress'
]
if sys.version_info < (2, 7):
    install_requires.append('argparse >= 1.1')


setup(
    name='EarthReader-Web',
{'fraction_non_alphanumeric': 0.1059001512859304, 'fraction_numerical': 0.011598587997982855, 'mean_word_length': 2.944333996023857, 'pattern_counts': {'":': 0, '<': 5, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3325307', 'n_tokens_mistral': 676, 'n_tokens_neox': 643, 'n_words': 155}