<commit_before>"Compatibility utilites for Python/Django versions."
import sys

try:
    from urllib import parse as urlparse
except ImportError:
    from urlparse import urlparse

try:
    from django.utils.encoding import smart_text, force_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
    from django.utils.encoding import force_unicode as force_text

PY3 = sys.version_info[0] == 3

if PY3:
    string_types = str,
else:
    string_types = basestring,<commit_msg>Incorrect urlparse import on Python 3.<commit_after>"Compatibility utilites for Python/Django versions."
import sys

try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse

try:
    from django.utils.encoding import smart_text, force_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
    from django.utils.encoding import force_unicode as force_text

PY3 = sys.version_info[0] == 3

if PY3:
    string_types = str,
else:
    string_types = basestring,
{'fraction_non_alphanumeric': 0.05927342256214149, 'fraction_numerical': 0.008604206500956023, 'mean_word_length': 4.396907216494846, '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': '728179', 'n_tokens_mistral': 315, 'n_tokens_neox': 307, 'n_words': 102}