<commit_before>from django.core.management.base import BaseCommand, CommandError
from django_thermostat.rules import evaluate
from time import localtime, strftime


class Command(BaseCommand):
    args = ''
    help = 'Evaluate rules realted to heater status. The result will start or stop the heater'

    def handle(self, *args, **options):
        try:
            self.stdout.write("Starting at %s" % strftime("%d.%m.%Y %h:%m:%s", localtime())
            evaluate()
            self.stdout.write("Ended at %s" % strftime("%d.%m.%Y %h:%m:%s", localtime())
        except Exception, ex:
<commit_msg>fixed a bug at evaluation command<commit_after>from django.core.management.base import BaseCommand, CommandError
from django_thermostat.rules import evaluate
from time import localtime, strftime


class Command(BaseCommand):
    args = ''
    help = 'Evaluate rules realted to heater status. The result will start or stop the heater'

    def handle(self, *args, **options):
        try:
            self.stdout.write("Starting at %s" % strftime("%d.%m.%Y %h:%m:%s", localtime()))
            evaluate()
            self.stdout.write("Ended at %s" % strftime("%d.%m.%Y %h:%m:%s", localtime()))
        except Exception, ex:

{'fraction_non_alphanumeric': 0.13213703099510604, 'fraction_numerical': 0.0, 'mean_word_length': 3.351063829787234, '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': '5042646', 'n_tokens_mistral': 374, 'n_tokens_neox': 347, 'n_words': 111}