<commit_before>import datetime
import hashlib
import random
import re

from django.conf import settings
from django.db import models
from django.db import transaction
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from django import VERSION as DJANGO_VERSION
from django.db.models import get_model

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


SHA1_RE = re.compile('^[a-f0-9]{40}$')

def get_user_model():
    if (DJANGO_VERSION[0] == 1 and DJANGO_VERSION[1] >= 5) \
            or DJANGO_VERSION[0] > 1:
        
        return get_model(*settings.AUTH_USER_MODEL.split('.'))
    else:
        from django.contrib.auth.models import User
        return User

User = get_user_model()

def get_username_field_name():
    return getattr(User, 'USERNAME_FIELD', 'username')<commit_msg>changed get user model<commit_after>import datetime
import hashlib
import random
import re

from django.conf import settings
from django.db import models
from django.db import transaction
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from django import VERSION as DJANGO_VERSION
from django.contrib.auth import get_user_model

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


SHA1_RE = re.compile('^[a-f0-9]{40}$')

User = get_user_model()

def get_username_field_name():
    return getattr(User, 'USERNAME_FIELD', 'username')
{'fraction_non_alphanumeric': 0.07929515418502203, 'fraction_numerical': 0.010069225928256766, 'mean_word_length': 4.618374558303887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7622490', 'n_tokens_mistral': 486, 'n_tokens_neox': 477, 'n_words': 142}