<commit_before>#!/usr/bin/env python

import os
import sys
import optparse

from django.conf import settings
from django.core.management import call_command, setup_environ

parser = optparse.OptionParser()
opts, args = parser.parse_args()

directory = os.path.abspath('%s' % os.path.dirname(__file__))

if not settings.configured:
    jenkins = []
    db_name = 'django_timepiece'
    if 'jenkins' in args:
        jenkins = ['django_jenkins']
        db_name = os.environ.get('TESTENV', db_name)

    settings.configure(
        DATABASES={
            'default': {
                'ENGINE': 'django.db.backends.postgresql_psycopg2',
                'NAME': db_name,
                'USER': '',
                'PASSWORD': '',
                'HOST': '',
                'PORT': '',
            }
        },
        INSTALLED_APPS=[
            'django.contrib.auth',
            'django.contrib.contenttypes',
            'django.contrib.sessions',
            'django.contrib.sites',
            'django.contrib.messages',
            'django.contrib.staticfiles',
            'django.contrib.admin',
            'django.contrib.markup',
            'timepiece',
            'pagination',
        ] + jenkins,
        SITE_ID=1,
        ROOT_URLCONF='example_project.urls',
        PROJECT_APPS=('timepiece',),
        JENKINS_TASKS=(
            'django_jenkins.tasks.with_coverage',
            'django_jenkins.tasks.django_tests',
            'django_jenkins.tasks.run_pep8',
        ),
        MIDDLEWARE_CLASSES=(<commit_msg>use TEST_NAME<commit_after>#!/usr/bin/env python

import os
import sys
import optparse

from django.conf import settings
from django.core.management import call_command, setup_environ

parser = optparse.OptionParser()
opts, args = parser.parse_args()

directory = os.path.abspath('%s' % os.path.dirname(__file__))

if not settings.configured:
    jenkins = []
    db_name = 'django_timepiece'
    if 'jenkins' in args:
        jenkins = ['django_jenkins']
        db_name = "timepiece_%s" % os.environ.get('TESTENV', db_name)

    settings.configure(
        DATABASES={
            'default': {
                'ENGINE': 'django.db.backends.postgresql_psycopg2',
                'NAME': 'django_timepiece',
                'USER': '',
                'PASSWORD': '',
                'HOST': '',
                'PORT': '',
                'TEST_NAME': db_name,
            }
        },
        INSTALLED_APPS=[
            'django.contrib.auth',
            'django.contrib.contenttypes',
            'django.contrib.sessions',
            'django.contrib.sites',
            'django.contrib.messages',
            'django.contrib.staticfiles',
            'django.contrib.admin',
            'django.contrib.markup',
            'timepiece',
            'pagination',
        ] + jenkins,
        SITE_ID=1,
        ROOT_URLCONF='example_project.urls',
        PROJECT_APPS=('timepiece',),
        JENKINS_TASKS=(
            'django_jenkins.tasks.with_coverage',
            'django_jenkins.tasks.django_tests',
            'django_jenkins.tasks.run_pep8',
        ),
        MIDDLEWARE_CLASSES=(
{'fraction_non_alphanumeric': 0.12579821200510855, 'fraction_numerical': 0.0019157088122605363, 'mean_word_length': 1.9225746268656716, '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': '6665163', 'n_tokens_mistral': 970, 'n_tokens_neox': 940, 'n_words': 145}