<commit_before>import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

version = '0.2.0b2'

#
# determine requirements
#
requirements = [
    "WebOb >= 1.2dev",  # py3 compat
    "simplegeneric >= 0.8",  # py3 compat
    "Mako >= 0.4.0",
    "WebTest >= 1.3.1"  # py3 compat
]

try:
    import json  # noqa
except:
    try:
        import simplejson  # noqa
    except:
        requirements.append("simplejson >= 2.1.1")

try:
    import argparse  # noqa
except:
    requirements.append('argparse')

tests_require = requirements + [
    'virtualenv',
    'Genshi',
    'Kajiki',
    'Jinja'
]
if sys.version_info < (2, 7):
    tests_require += ['unittest2']


class test(TestCommand):

    user_options = TestCommand.user_options + [(
        'functional',<commit_msg>Fix the wrong test dependency on Jinja, it's Jinja2.<commit_after>import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

version = '0.2.0b2'

#
# determine requirements
#
requirements = [
    "WebOb >= 1.2dev",  # py3 compat
    "simplegeneric >= 0.8",  # py3 compat
    "Mako >= 0.4.0",
    "WebTest >= 1.3.1"  # py3 compat
]

try:
    import json  # noqa
except:
    try:
        import simplejson  # noqa
    except:
        requirements.append("simplejson >= 2.1.1")

try:
    import argparse  # noqa
except:
    requirements.append('argparse')

tests_require = requirements + [
    'virtualenv',
    'Genshi',
    'Kajiki',
    'Jinja2'
]
if sys.version_info < (2, 7):
    tests_require += ['unittest2']


class test(TestCommand):

    user_options = TestCommand.user_options + [(
        'functional',
{'fraction_non_alphanumeric': 0.1273696682464455, 'fraction_numerical': 0.02843601895734597, 'mean_word_length': 2.983490566037736, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1575455', 'n_tokens_mistral': 606, 'n_tokens_neox': 586, 'n_words': 141}