<commit_before>from django.core import management
from django.core.management.commands import test
from django.core.management.commands import syncdb

class Command(test.Command):
    
    def handle(self, *args, **kwargs):
        # point at the core syncdb command when creating tests
        # tests should always be up to date with the most recent model structure
        management.get_commands()
        management._commands['syncdb'] = 'django.core'
        super(Command, self).handle(*args, **kwargs)<commit_msg>Allow migrate-before-tests to be turned back on with the SOUTH_TESTS_MIGRATE setting.<commit_after>from django.core import management
from django.core.management.commands import test
from django.core.management.commands import syncdb
from django.conf import settings

class Command(test.Command):
    
    def handle(self, *args, **kwargs):
        if not hasattr(settings, "SOUTH_TESTS_MIGRATE") or settings.SOUTH_TESTS_MIGRATE:
            # point at the core syncdb command when creating tests
            # tests should always be up to date with the most recent model structure
            management.get_commands()
            management._commands['syncdb'] = 'django.core'
        super(Command, self).handle(*args, **kwargs)
{'fraction_non_alphanumeric': 0.08226837060702875, 'fraction_numerical': 0.0, 'mean_word_length': 3.640740740740741, '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': '7120713', 'n_tokens_mistral': 323, 'n_tokens_neox': 326, 'n_words': 111}