<commit_before>import os
from django.core.management.base import BaseCommand
from subprocess import call

class Command(BaseCommand):
    help = 'Custom manage.py command to start celery.'

    def handle(self, *args, **options):
        if not os.path.isfile("celery_node.log"):
            with open("celery_node.log", 'w+') as f:
                f.close()
        call("celery worker --app=atmosphere --loglevel=INFO -c 5 --logfile='celery_node.log".split())<commit_msg>change log file to variable<commit_after>import os
from django.core.management.base import BaseCommand
from subprocess import call

class Command(BaseCommand):
    help = 'Custom manage.py command to start celery.'

    def handle(self, *args, **options):
        logfile = "celery_node.log"
        if not os.path.isfile(logfile):
            with open(logfile, 'w+') as f:
                f.close()
        call(("celery worker --app=atmosphere --loglevel=INFO -c 5 --logfile=%s" % logfile).split())
{'fraction_non_alphanumeric': 0.1273100616016427, 'fraction_numerical': 0.002053388090349076, 'mean_word_length': 3.0625, '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': '6334817', 'n_tokens_mistral': 298, 'n_tokens_neox': 290, 'n_words': 84}