<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.core.validators import RegexValidator
from django.utils import timezone

from django.contrib.auth.models import User

# Create your models here.

from datetime import datetime as dt

from countries import *


class Alumni(models.Model):
	GENDERS = (
		('M', 'Male'),
		('F', 'Female'),
	)
	user = models.OneToOneField(User, null=True, blank=True)
	fname = models.CharField("First Name", max_length=200),
	lname = models.CharField("Last Name", max_length=200),
	phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.")
	phone_number = models.CharField(max_length=200, validators=[phone_regex])
	# email_regex = RegexValidator(regex=r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", message="Invalid Email Format")
	email = models.EmailField()
	gender = models.CharField(max_length=1, choices=GENDERS)
	dob = models.DateField("Date of Birth")
	addrl1 = models.CharField("Address Line 1", max_length=200)
	addrl2 = models.CharField("Address Line 2", max_length=200, null=True, blank=True)
	city = models.CharField("City", max_length=30)
	state = models.CharField("State/Province/Region", max_length=50)
	postcode = models.BigIntegerField()
	country = models.CharField("Country", max_length=5)

	verified = models.NullBooleanField(default=False)<commit_msg>basic model<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.core.validators import RegexValidator
from django.utils import timezone

from django.contrib.auth.models import User

# Create your models here.

from datetime import datetime as dt

from countries import *


class Alumni(models.Model):
	GENDERS = (
		('M', 'Male'),
		('F', 'Female'),
	)
	user = models.OneToOneField(User, null=True, blank=True)
	name = models.CharField("Name", max_length=200)
	fname = models.CharField("First Name", max_length=200)
	lname = models.CharField("Last Name", max_length=200)
	phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.")
	phone_number = models.CharField(max_length=200, validators=[phone_regex])
	# email_regex = RegexValidator(regex=r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", message="Invalid Email Format")
	email = models.EmailField()
	gender = models.CharField(max_length=1, choices=GENDERS)
	dob = models.DateField("Date of Birth")
	addrl1 = models.CharField("Address Line 1", max_length=200)
	addrl2 = models.CharField("Address Line 2", max_length=200, null=True, blank=True)
	city = models.CharField("City", max_length=30)
	state = models.CharField("State/Province/Region", max_length=50)
	postcode = models.BigIntegerField()
	country = models.CharField("Country", max_length=5)

	verified = models.NullBooleanField(default=False)
{'fraction_non_alphanumeric': 0.149313692668229, 'fraction_numerical': 0.03247405423501841, 'mean_word_length': 5.790909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6165478', 'n_tokens_mistral': 1081, 'n_tokens_neox': 999, 'n_words': 229}