<commit_before>#!/usr/bin/env python
# coding=utf-8
import sys
import os

import django
from django.conf import settings

ROOT = os.path.join(os.path.dirname(__file__), 'viewlet/tests')


def main():
    conf = {
        'DEBUG': True,
        'TEMPLATE_DEBUG': True,
        'INSTALLED_APPS': [
            'django.contrib.auth',
            'django.contrib.contenttypes',
            'django.contrib.sites',
            'django.contrib.flatpages',
            'viewlet',
            'viewlet.tests',
        ],
        'MIDDLEWARE_CLASSES': [
            'django.contrib.sessions.middleware.SessionMiddleware',
            'django.middleware.common.CommonMiddleware',
            'django.middleware.csrf.CsrfViewMiddleware',
            'django.contrib.auth.middleware.AuthenticationMiddleware',
        ],
        'MEDIA_ROOT': '/tmp/viewlet/media',
        'STATIC_ROOT': '/tmp/viewlet/static',
        'MEDIA_URL': '/media/',
        'STATIC_URL': '/static/',
        'ROOT_URLCONF': 'viewlet.tests.urls',
        'SECRET_KEY': "<KEY>

        'TEMPLATE_DEBUG': True,
        'TEMPLATE_CONTEXT_PROCESSORS': [],
        'TEMPLATE_DIRS': (os.path.join(ROOT, 'templates'),),

        'TEMPLATES': [
            {                
                'BACKEND': 'django.template.backends.django.DjangoTemplates',
                'APP_DIRS': True,
                'DIRS': (os.path.join(ROOT, 'templates'),),
                'OPTIONS': {
                    'debug': True,
                    'context_processors': [
                        'django.contrib.auth.context_processors.auth',
                        'django.template.context_processors.request',
                        'django.contrib.auth.context_processors.auth',
                        'django.contrib.messages.context_processors.messages',
                    ]
                }<commit_msg>Remove duplicated test setting.<commit_after>#!/usr/bin/env python
# coding=utf-8
import sys
import os

import django
from django.conf import settings

ROOT = os.path.join(os.path.dirname(__file__), 'viewlet/tests')


def main():
    conf = {
        'DEBUG': True,
        'TEMPLATE_DEBUG': True,
        'INSTALLED_APPS': [
            'django.contrib.auth',
            'django.contrib.contenttypes',
            'django.contrib.sites',
            'django.contrib.flatpages',
            'viewlet',
            'viewlet.tests',
        ],
        'MIDDLEWARE_CLASSES': [
            'django.contrib.sessions.middleware.SessionMiddleware',
            'django.middleware.common.CommonMiddleware',
            'django.middleware.csrf.CsrfViewMiddleware',
            'django.contrib.auth.middleware.AuthenticationMiddleware',
        ],
        'MEDIA_ROOT': '/tmp/viewlet/media',
        'STATIC_ROOT': '/tmp/viewlet/static',
        'MEDIA_URL': '/media/',
        'STATIC_URL': '/static/',
        'ROOT_URLCONF': 'viewlet.tests.urls',
        'SECRET_KEY': "iufoj=mibkpdz*%bob952x(%49rqgv8gg45k36kjcg76&-y5=!",

        'TEMPLATE_CONTEXT_PROCESSORS': [],
        'TEMPLATE_DIRS': (os.path.join(ROOT, 'templates'),),

        'TEMPLATES': [
            {                
                'BACKEND': 'django.template.backends.django.DjangoTemplates',
                'APP_DIRS': True,
                'DIRS': (os.path.join(ROOT, 'templates'),),
                'OPTIONS': {
                    'debug': True,
                    'context_processors': [
                        'django.contrib.auth.context_processors.auth',
                        'django.template.context_processors.request',
                        'django.contrib.auth.context_processors.auth',
                        'django.contrib.messages.context_processors.messages',
                    ]
                }
{'fraction_non_alphanumeric': 0.1347953998395293, 'fraction_numerical': 0.004011767852366943, 'mean_word_length': 1.7868852459016393, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1245551', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1070, 'n_words': 139}