<commit_before>from django.core.management.base import BaseCommand
from api_v3.misc.queue import queue


class Command(BaseCommand):
    help = 'Starts the jobs queue'

    def handle(self, *args, **options):
        """Runs the queue."""
        queue.work()<commit_msg>Silence queue in production.<commit_after>import logging

from django.core.management.base import BaseCommand
from django.conf import settings
from api_v3.misc.queue import queue


class Command(BaseCommand):
    help = 'Starts the jobs queue'

    def handle(self, *args, **options):
        """Runs the queue."""
        logger = logging.getLogger('pq')

        logger.debug('Starting background processing...')

        if not settings.DEBUG:
            logger.setLevel(logging.WARNING)

        queue.work()
{'fraction_non_alphanumeric': 0.1096938775510204, 'fraction_numerical': 0.002551020408163265, 'mean_word_length': 3.266304347826087, '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': '4607306', 'n_tokens_mistral': 222, 'n_tokens_neox': 210, 'n_words': 63}