<commit_before>from django.core.management.base import BaseCommand, CommandError
from atlas.prodtask.open_ended import check_open_ended


class Command(BaseCommand):
    args = '<request_id, request_id>'
    help = 'Extend open ended requests'

    def handle(self, *args, **options):

        if not args:
            try:
                check_open_ended()
            except Exception,e:
                raise CommandError('Some problem during request extension: %s'%e)
        self.stdout.write('Successfully finished request extension')<commit_msg>Improve logging of openended extension<commit_after>from django.core.management.base import BaseCommand, CommandError
import time
from atlas.prodtask.open_ended import check_open_ended


class Command(BaseCommand):
    args = '<request_id, request_id>'
    help = 'Extend open ended requests'

    def handle(self, *args, **options):
        self.stdout.write('Start open ended at %s'%time.ctime())
        if not args:
            try:
                check_open_ended()
            except Exception,e:
                raise CommandError('Some problem during request extension: %s'%e)
        self.stdout.write('Successfully finished request extension: %s'%time.ctime())
{'fraction_non_alphanumeric': 0.0923202614379085, 'fraction_numerical': 0.0, 'mean_word_length': 3.110738255033557, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1366424', 'n_tokens_mistral': 332, 'n_tokens_neox': 323, 'n_words': 93}