<commit_before>import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pypnrstatus.settings")
from django.conf import settings

from pypnrstatus.tasks import *
from pypnrstatus.models import *
from datetime import timedelta, datetime
import time

while True:
    print 'I am doing something'
    pnr_notifications = PNRNotification.objects.filter(next_schedule_time__lte=datetime.now()+timedelta(minutes=1))
    print pnr_notifications
    begin = time.time()
    for pnr_notification in pnr_notifications:
        schedule_pnr_notification(pnr_notification)
    print 'sleeping for 1 min'
    time.sleep(1*60)<commit_msg>check in bracket of 1 min<commit_after>import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pypnrstatus.settings")
from django.conf import settings

from pypnrstatus.tasks import *
from pypnrstatus.models import *
from datetime import timedelta, datetime
import time

while True:
    print 'I am doing something'
    pnr_notifications = PNRNotification.objects.filter(next_schedule_time__lte=datetime.now()+timedelta(minutes=1),
            next_schedule_time__gte=datetime.now()-timedelta(minutes=1))
    print pnr_notifications
    begin = time.time()
    for pnr_notification in pnr_notifications:
        schedule_pnr_notification(pnr_notification)
    end = time.time()
    sleep_time = int(end-begin)
    print 'sleep time %s' % sleep_time
    print 'sleeping for 1 min'
    time.sleep(1*60)
{'fraction_non_alphanumeric': 0.0819327731092437, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 4.929460580912863, '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': '698520', 'n_tokens_mistral': 454, 'n_tokens_neox': 445, 'n_words': 104}