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

from django.conf import settings
from django.core.mail import send_mail
import logging
#import traceback

def cronos_debug(msg, logfile):
    '''
    To be deprecated, along with the import logging and settings
    '''
    logging.basicConfig(level = logging.DEBUG, format = '%(asctime)s: %(message)s', filename = settings.LOGDIR + logfile, filemode = 'a+')
    logging.debug(msg)

def mail_cronos_admin(title, message):
    '''
    Wrapper function of send_mail
    '''
    try:
        send_mail(title, message, '<EMAIL>', ['<EMAIL>'])
    except:
        pass

class CronosError(Exception):
    '''<commit_msg>Remove cronos_debug, un-hardcode the mail address in mail_cronos_admin<commit_after># -*- coding: utf-8 -*-

from django.conf import settings
from django.core.mail import send_mail

def mail_cronos_admin(title, message):
    '''
    Wrapper function of send_mail
    '''
    try:
        send_mail(title, message, '<EMAIL>', [settings.ADMIN[0][1]])
    except:
        pass

class CronosError(Exception):
    '''
{'fraction_non_alphanumeric': 0.13051643192488263, 'fraction_numerical': 0.003755868544600939, 'mean_word_length': 3.5555555555555554, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6238263', 'n_tokens_mistral': 340, 'n_tokens_neox': 335, 'n_words': 89}