<commit_before>import six

from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.message import EmailMultiAlternatives
from django.db import models
from django.template import Context, Template
from django.utils.html import strip_tags

from callisto.notification.managers import EmailNotificationQuerySet


def get_current_site_wrapper():
    try:
        return str(Site.objects.get_current().id)
    except ImproperlyConfigured:
        return None


@six.python_2_unicode_compatible
class EmailNotification(models.Model):
    """Record of Email constructed in and sent via the project"""<commit_msg>import change from SexualHealthInnovations/django-wizard-builder#30<commit_after>import six

from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.message import EmailMultiAlternatives
from django.db import models
from django.template import Context, Template
from django.utils.html import strip_tags

from callisto.notification.managers import EmailNotificationQuerySet


def get_current_site_wrapper():
    try:
        return str(Site.objects.get_current().id)
    except (ImproperlyConfigured, Site.DoesNotExist):
        return None


@six.python_2_unicode_compatible
class EmailNotification(models.Model):
    """Record of Email constructed in and sent via the project"""
{'fraction_non_alphanumeric': 0.06492589978828511, 'fraction_numerical': 0.0028228652081863093, 'mean_word_length': 5.474885844748859, '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': '1054984', 'n_tokens_mistral': 378, 'n_tokens_neox': 364, 'n_words': 109}