<commit_before>import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "tests.settings")

from django.test.utils import setup_test_environment
setup_test_environment()

# Django 1.7
import django
if hasattr(django, 'setup'):
    django.setup()

from django.core.management import call_command
call_command('syncdb', interactive=False)<commit_msg>fix admin command<commit_after>import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "tests.settings")

from django.test.utils import setup_test_environment
setup_test_environment()

from django.core.management import call_command

import django
if hasattr(django, 'setup'):
    # Django 1.7+
    django.setup()
    call_command('migrate', interactive=False)
else:
    # Django 1.6
    call_command('syncdb', interactive=False)
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.007702182284980745, 'mean_word_length': 6.5, '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': '4466729', 'n_tokens_mistral': 243, 'n_tokens_neox': 240, 'n_words': 52}