<commit_before>#!/usr/bin/env python
import os
import sys

from django.conf import settings
from django.core.management import execute_from_command_line


_INSTALLED_APPS = (
    'sharding_utils',
)


_DATABASES = {
    'default': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },

    # Sharded databases.
    'shard_001': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'shard_002': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'shard_003': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },

    # Feature partitioned databases
    'feature_A': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'feature_B': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'feature_C': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
}


if not settings.configured:
    settings.configure(DATABASES=_DATABASES,INSTALLED_APPS=_INSTALLED_APPS)


def run_tests():
    test_args = ['sharding_utils', ]
    from django.test.simple import DjangoTestSuiteRunner
    failures = DjangoTestSuiteRunner(verbosity=1, interactive=True, failfast=False).run_tests(test_args)
    sys.exit(failures)



if __name__ == '__main__':
    run_tests()<commit_msg>Default to running the whole app<commit_after>#!/usr/bin/env python
import os
import sys

from django.conf import settings
from django.core.management import execute_from_command_line


_INSTALLED_APPS = (
    'sharding_utils',
)


_DATABASES = {
    'default': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },

    # Sharded databases.
    'shard_001': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'shard_002': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'shard_003': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },

    # Feature partitioned databases
    'feature_A': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'feature_B': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
    'feature_C': {
        'NAME': ':memory:',
        'ENGINE': 'django.db.backends.sqlite3'
    },
}


if not settings.configured:
    settings.configure(DATABASES=_DATABASES,INSTALLED_APPS=_INSTALLED_APPS)


def run_tests():
    from django.test.simple import DjangoTestSuiteRunner
    failures = DjangoTestSuiteRunner(verbosity=1, interactive=True, failfast=False).run_tests([])
    sys.exit(failures)



if __name__ == '__main__':
    run_tests()
{'fraction_non_alphanumeric': 0.1560798548094374, 'fraction_numerical': 0.012341197822141561, 'mean_word_length': 2.8926553672316384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7408487', 'n_tokens_mistral': 1032, 'n_tokens_neox': 961, 'n_words': 158}