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


class TestRunner(test):

    def run(self):

        if self.distribution.install_requires:
            self.distribution.fetch_build_eggs(
                self.distribution.install_requires)
        if self.distribution.tests_require:
            self.distribution.fetch_build_eggs(self.distribution.tests_require)

        import sys
        sys.path.insert(0, 'testprj')

        from testprj import settings as test_settings
        from django.conf import settings
        settings.configure(test_settings)

        from testprj.tests import mongoforms_test_runner as test_runner

        test_suite = test_runner.build_suite(['testapp'])
        test_runner.setup_test_environment()
        result = test_runner.run_suite(test_suite)
        test_runner.teardown_test_environment()

        return result


setup(
    name='django-mongoforms',
    version='0.2.1',
    description='A Django-ModelForm clone for mongoengine',
    author='<NAME>',<commit_msg>Version 0.2.2.<commit_after>from setuptools import setup, find_packages
from setuptools.command.test import test


class TestRunner(test):

    def run(self):

        if self.distribution.install_requires:
            self.distribution.fetch_build_eggs(
                self.distribution.install_requires)
        if self.distribution.tests_require:
            self.distribution.fetch_build_eggs(self.distribution.tests_require)

        import sys
        sys.path.insert(0, 'testprj')

        from testprj import settings as test_settings
        from django.conf import settings
        settings.configure(test_settings)

        from testprj.tests import mongoforms_test_runner as test_runner

        test_suite = test_runner.build_suite(['testapp'])
        test_runner.setup_test_environment()
        result = test_runner.run_suite(test_suite)
        test_runner.teardown_test_environment()

        return result


setup(
    name='django-mongoforms',
    version='0.2.2',
    description='A Django-ModelForm clone for mongoengine',
    author='<NAME>',
{'fraction_non_alphanumeric': 0.07930549038010323, 'fraction_numerical': 0.005161895823557016, 'mean_word_length': 3.0455407969639468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4449891', 'n_tokens_mistral': 621, 'n_tokens_neox': 583, 'n_words': 116}