<commit_before># -*- coding: utf-8 -*-

from website.models import Account, Promotion, Campaign
from django_cron import CronJobBase, Schedule
import logging

class BirthdayPromoCron(CronJobBase):
        RUN_EVERY_MINS = 1 # every 2 hours

        schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
        code = 'essere_benessere.birthday_promo_cron'    # a unique code

        def do(self):
                # Get an instance of a logger
                logger = logging.getLogger('django.request')
                logger.debug("sending birthday promo...")

                # sending birth
                campaign_obj = Campaign()
                campaign_obj.send_birthday_promotion()
                
                return True<commit_msg>birthday promo<commit_after># -*- coding: utf-8 -*-

from website.models import Account, Promotion, Campaign
from django_cron import CronJobBase, Schedule
import logging

logger = logging.getLogger('django.request')

class BirthdayPromoCron(CronJobBase):
        RUN_EVERY_MINS = 1 # every 2 hours

        schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
        code = 'essere_benessere.birthday_promo_cron'    # a unique code

        def do(self):
                # Get an instance of a logger
                logger.debug("sending birthday promo...")

                # sending birth
                campaign_obj = Campaign()
                campaign_obj.send_birthday_promotion()
                
                return True
{'fraction_non_alphanumeric': 0.07577807848443843, 'fraction_numerical': 0.0040595399188092015, 'mean_word_length': 2.126849894291755, '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': '4614154', 'n_tokens_mistral': 428, 'n_tokens_neox': 395, 'n_words': 100}