<commit_before>from django.contrib import auth
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from django.core.exceptions import ObjectDoesNotExist
from courses.forms import StudentForm, LoginForm, JoinSchoolForm, StudentItemForm
from courses.models import Student, School, CourseItem, StudentItem
from courses.methods import send_mail
from trackSchool.settings import SITE_ADDR
from django.contrib.auth.decorators import login_required
import datetime


def create_student(request):
    """
    form for creating a new student
    """
    if request.method == 'POST':
        username = request.POST['email'].split("@")[0]
        data = {'first_name': request.POST['first_name'],<commit_msg>username is now unique to email to allow for multiple schools to have same email aliases<commit_after>from django.contrib import auth
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from django.core.exceptions import ObjectDoesNotExist
from courses.forms import StudentForm, LoginForm, JoinSchoolForm, StudentItemForm
from courses.models import Student, School, CourseItem, StudentItem
from courses.methods import send_mail
from trackSchool.settings import SITE_ADDR
from django.contrib.auth.decorators import login_required
import datetime


def create_student(request):
    """
    form for creating a new student
    """
    if request.method == 'POST':
        username = request.POST['email']
        data = {'first_name': request.POST['first_name'],
{'fraction_non_alphanumeric': 0.06952743074416078, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 5.555160142348755, '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': '4107291', 'n_tokens_mistral': 474, 'n_tokens_neox': 461, 'n_words': 160}