<commit_before>import logging
from optparse import make_option

from django.core.management.base import BaseCommand
from django.utils.log import dictConfig

from redis.exceptions import ConnectionError

from django_rq.workers import get_worker

from rq import use_connection


# Setup logging for RQWorker if not already configured
logger = logging.getLogger('rq.worker')
if not logger.handlers:
    dictConfig({
        "version": 1,
        "disable_existing_loggers": False,

        "formatters": {
            "rq_console": {
                "format": "%(asctime)s %(message)s",
                "datefmt": "%H:%M:%S",
            },
        },

        "handlers": {
            "rq_console": {
                "level": "DEBUG",
                #"class": "logging.StreamHandler",
                "class": "rq.utils.ColorizingStreamHandler",
                "formatter": "rq_console",
                "exclude": ["%(asctime)s"],
            },
        },<commit_msg>- dictConfig wrong import<commit_after>import logging
from optparse import make_option

from django.core.management.base import BaseCommand
from logging.config import dictConfig

from redis.exceptions import ConnectionError

from django_rq.workers import get_worker

from rq import use_connection


# Setup logging for RQWorker if not already configured
logger = logging.getLogger('rq.worker')
if not logger.handlers:
    dictConfig({
        "version": 1,
        "disable_existing_loggers": False,

        "formatters": {
            "rq_console": {
                "format": "%(asctime)s %(message)s",
                "datefmt": "%H:%M:%S",
            },
        },

        "handlers": {
            "rq_console": {
                "level": "DEBUG",
                #"class": "logging.StreamHandler",
                "class": "rq.utils.ColorizingStreamHandler",
                "formatter": "rq_console",
                "exclude": ["%(asctime)s"],
            },
        },
{'fraction_non_alphanumeric': 0.11897435897435897, 'fraction_numerical': 0.0010256410256410256, 'mean_word_length': 2.1775244299674266, 'pattern_counts': {'":': 26, '<': 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': '7046636', 'n_tokens_mistral': 553, 'n_tokens_neox': 523, 'n_words': 129}