<commit_before>import operator
import functools

import re
from urllib.parse import urlparse, urlencode, urlunparse, parse_qsl

from django.conf import settings
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.template import Context, Template
from django.template.loader import render_to_string
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.importlib import import_module
from django.core.mail import EmailMultiAlternatives
from django.utils.html import strip_tags
from django.contrib.sites.models import Site
from django.contrib.auth import get_user_model

from djcelery_email.utils import chunked
from feincms.templatetags.feincms_tags import feincms_render_region

from squeezemail import CELERY_EMAIL_CHUNK_SIZE
from squeezemail.tasks import send_drip
from .models import SendDrip, Open, Drip

from django.utils.timezone import now
import timedelta as djangotimedelta

import logging
<commit_msg>fixed urlparse py2 imports<commit_after>import sys
import operator
import functools

PY3 = sys.version_info > (3, 0)

import re
if PY3:
    from urllib.parse import urlparse, urlencode, urlunparse, parse_qsl
else:
    from urlparse import urlparse, urlunparse, parse_qsl
    from urllib import urlencode

from django.conf import settings
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.template import Context, Template
from django.template.loader import render_to_string
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.importlib import import_module
from django.core.mail import EmailMultiAlternatives
from django.utils.html import strip_tags
from django.contrib.sites.models import Site
from django.contrib.auth import get_user_model


from feincms.templatetags.feincms_tags import feincms_render_region

from . import CELERY_EMAIL_CHUNK_SIZE
from .tasks import send_drip
from .models import SendDrip, Open, Drip
from .utils import chunked

from django.utils.timezone import now
import timedelta as djangotimedelta

import logging

{'fraction_non_alphanumeric': 0.04184297132110954, 'fraction_numerical': 0.0023507287259050304, 'mean_word_length': 6.069767441860465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7522456', 'n_tokens_mistral': 618, 'n_tokens_neox': 611, 'n_words': 209}