<commit_before>from django.db import models
from django.contrib.auth.models import User
import imaplib
import os
import sys
from django_countries import CountryField
from registration.signals import *

sys.path.append(os.getcwd())
from configuration import APP_NAME
from configuration import UPLOAD_DIR

GENDER_CHOICES = (
    ('M', 'Male'),
    ('F', 'Female'),
)

SCHOOL_CHOICES = (
    (1, 'gla High'),
    (2, 'gla low'),
    (3, 'gla middle'),
)

class UserProfile(models.Model):
    user = models.OneToOneField(User)
    profile_pic = models.ImageField(upload_to=UPLOAD_DIR, blank=True, default='face.svg')
    age = models.IntegerField(null=True, blank=True)
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES, blank=True)
    school = models.CharField(max_length=128, choices=SCHOOL_CHOICES, blank=True)
    country = CountryField(blank=True)
    city = models.CharField(max_length=128, blank=True)
    xp = models.IntegerField(default=0,blank=True)
    level = models.IntegerField(default=0,blank=True)
    xp_to_next_level = models.IntegerField(default=1,blank=True)
    last_time_played = models.DateTimeField(null=True, blank=True)
    no_games_played = models.IntegerField(default=0,blank=True)
    rank = models.IntegerField(default=0,blank=True)

    def __unicode__(self):
        return self.user.username

    class Meta:
        app_label = APP_NAME

class Category(models.Model):
    name = models.CharField(max_length=128)
    icon = models.ImageField(null=True, upload_to=UPLOAD_DIR, blank=True)
    desc = models.TextField(null=True, blank=True)<commit_msg>Fixed a bug in game models.<commit_after>from django.db import models
from django.contrib.auth.models import User
import imaplib
import os
import sys
from django_countries import CountryField
from registration.signals import *

sys.path.append(os.getcwd())
from configuration import APP_NAME
from configuration import UPLOAD_DIR

GENDER_CHOICES = (
    ('M', 'Male'),
    ('F', 'Female'),
)

SCHOOL_CHOICES = (
    ('gla high', 'gla High'),
    ('gla low', 'gla low'),
    ('gla middle', 'gla middle'),
)

class UserProfile(models.Model):
    user = models.OneToOneField(User)
    profile_pic = models.ImageField(upload_to=UPLOAD_DIR, blank=True, default='face.svg')
    age = models.IntegerField(null=True, blank=True)
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES, blank=True)
    school = models.CharField(max_length=128, choices=SCHOOL_CHOICES, blank=True)
    country = CountryField(blank=True)
    city = models.CharField(max_length=128, blank=True)
    xp = models.IntegerField(default=0,blank=True)
    level = models.IntegerField(default=0,blank=True)
    xp_to_next_level = models.IntegerField(default=1,blank=True)
    last_time_played = models.DateTimeField(null=True, blank=True)
    no_games_played = models.IntegerField(default=0,blank=True)
    rank = models.IntegerField(default=0,blank=True)

    def __unicode__(self):
        return self.user.username

    class Meta:
        app_label = APP_NAME

class Category(models.Model):
    name = models.CharField(max_length=128)
    icon = models.ImageField(null=True, upload_to=UPLOAD_DIR, blank=True)
    desc = models.TextField(null=True, blank=True)
{'fraction_non_alphanumeric': 0.11719233147804577, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 4.946691176470588, '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': '786300', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1064, 'n_words': 209}