<commit_before>import binascii
import datetime
import os
import hashlib
from PIL import Image

from django.db import models
from django.core.files import File
from django.core.files.base import ContentFile
from django.core.files.storage import get_storage_class
from django.utils.module_loading import import_string
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import force_text
from django.db.models import signals

from avatar.conf import settings
from avatar.utils import get_username, force_bytes, invalidate_cache

try:
    from django.utils.timezone import now
except ImportError:
    now = datetime.datetime.now

# Issue 182: six no longer included with Django 3.0
try:
    from django.utils import six
except ImportError:<commit_msg>Django 4.0: ugettext_lazy -> gettext_lazy<commit_after>import binascii
import datetime
import os
import hashlib
from PIL import Image

from django.db import models
from django.core.files import File
from django.core.files.base import ContentFile
from django.core.files.storage import get_storage_class
from django.utils.module_loading import import_string
from django.utils.translation import gettext_lazy as _
from django.utils.encoding import force_text
from django.db.models import signals

from avatar.conf import settings
from avatar.utils import get_username, force_bytes, invalidate_cache

try:
    from django.utils.timezone import now
except ImportError:
    now = datetime.datetime.now

# Issue 182: six no longer included with Django 3.0
try:
    from django.utils import six
except ImportError:
{'fraction_non_alphanumeric': 0.04921135646687697, 'fraction_numerical': 0.007570977917981073, 'mean_word_length': 5.2687747035573125, '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': '59865', 'n_tokens_mistral': 446, 'n_tokens_neox': 428, 'n_words': 162}