<commit_before>#!/usr/bin/env python
import sys
import os
from django.conf import settings
from django.core.management import call_command

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))

# Added to support Django >= 1.7

settings.configure(
    INSTALLED_APPS=('social_widgets',),
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':MEMORY:',
        }
    }
)

import django
if django.VERSION[:2] >= (1, 7):
    django.setup()

if __name__ == "__main__":
    call_command('test', 'social_widgets')<commit_msg>Moved comment in runtests.py<commit_after>#!/usr/bin/env python
import sys
import os
from django.conf import settings
from django.core.management import call_command

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))



settings.configure(
    INSTALLED_APPS=('social_widgets',),
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':MEMORY:',
        }
    }
)

# Added to support Django >= 1.7
import django
if django.VERSION[:2] >= (1, 7):
    django.setup()

if __name__ == "__main__":
    call_command('test', 'social_widgets')
{'fraction_non_alphanumeric': 0.14848993288590603, 'fraction_numerical': 0.01174496644295302, 'mean_word_length': 3.354014598540146, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '6218423', 'n_tokens_mistral': 425, 'n_tokens_neox': 402, 'n_words': 84}