<commit_before>import os
import random

from django.contrib.auth.models import User
from django.db.models import signals
from django.conf import settings

from user.models import UserProfile
from utils.system import remove_tree


def create_user_profile_signal(sender, instance, created, **kwargs):
    """
        Create UserProfile object when user signs up for the first time.
    """

    if created:
        stock_avatar_id = random.randint(0, 9) + 1
        UserProfile.objects.create(user=instance, avatar='./stock/{0}.png'.format(stock_avatar_id))


def create_user_fullname(sender, instance, created, **kwargs):
    """
        Create user's full name based on his/her first name and last name.
    """
<commit_msg>reduced the number of random avatar images to be assigned in user app signals.<commit_after>import os
import random

from django.contrib.auth.models import User
from django.db.models import signals
from django.conf import settings

from user.models import UserProfile
from utils.system import remove_tree


def create_user_profile_signal(sender, instance, created, **kwargs):
    """
        Create UserProfile object when user signs up for the first time.
    """

    if created:
        stock_avatar_id = random.randint(0, 1) + 1
        UserProfile.objects.create(user=instance, avatar='./stock/{0}.png'.format(stock_avatar_id))


def create_user_fullname(sender, instance, created, **kwargs):
    """
        Create user's full name based on his/her first name and last name.
    """

{'fraction_non_alphanumeric': 0.09054857898215465, 'fraction_numerical': 0.005287508261731659, 'mean_word_length': 3.8370607028753994, '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': '5690022', 'n_tokens_mistral': 430, 'n_tokens_neox': 415, 'n_words': 143}