<commit_before>from django import forms

class LoginForm(forms.Form):
	username = forms.CharField()
	password = forms.CharField(widget=forms.PasswordInput())

class StudentRegisterForm(forms.Form):
	username = forms.CharField()
	first_name = forms.CharField()
	last_name = forms.CharField()
	email = forms.EmailField(help_text='A valid email address')
	school = forms.CharField()
	year = forms.CharField()
	Class = forms.CharField()
	reg_password = forms.CharField(widget=forms.PasswordInput())
	repeat_password = forms.CharField(widget=forms.PasswordInput())

	def clean_repeat_password(self):
		password1 = self.cleaned_data.get("password", "")
		password2 = self.cleaned_data['repeat_password']
		if password1 != password2:
			raise forms.ValidationError(_("The passwords you entered did not match!"))
		return password2

class TeacherRegisterForm(forms.Form):
	username = forms.CharField()
	first_name = forms.CharField()
	last_name = forms.CharField()
	email = forms.EmailField(help_text='A valid email address')
	school = forms.CharField()
	reg_password = forms.CharField(widget=forms.PasswordInput())
	repeat_password = forms.CharField(widget=forms.PasswordInput())
	def clean_repeat_password(self):
		password1 = self.cleaned_data.get("password", "")
		password2 = self.cleaned_data['repeat_password']
		if password1 != password2:
			raise forms.ValidationError(_("The passwords you entered did not match!"))
		return password2

class SubmitCodeForm(forms.Form):
	code = forms.CharField(widget=forms.Textarea)
<commit_msg>changed the fields for username for the register forms<commit_after>from django import forms

class LoginForm(forms.Form):
	username = forms.CharField()
	password = forms.CharField(widget=forms.PasswordInput())

class StudentRegisterForm(forms.Form):
	reg_username = forms.CharField()
	first_name = forms.CharField()
	last_name = forms.CharField()
	email = forms.EmailField(help_text='A valid email address')
	school = forms.CharField()
	year = forms.CharField()
	Class = forms.CharField()
	reg_password = forms.CharField(widget=forms.PasswordInput())
	repeat_password = forms.CharField(widget=forms.PasswordInput())

	def clean_repeat_password(self):
		password1 = self.cleaned_data.get("password", "")
		password2 = self.cleaned_data['repeat_password']
		if password1 != password2:
			raise forms.ValidationError(_("The passwords you entered did not match!"))
		return password2

class TeacherRegisterForm(forms.Form):
	reg_username = forms.CharField()
	first_name = forms.CharField()
	last_name = forms.CharField()
	email = forms.EmailField(help_text='A valid email address')
	school = forms.CharField()
	reg_password = forms.CharField(widget=forms.PasswordInput())
	repeat_password = forms.CharField(widget=forms.PasswordInput())
	def clean_repeat_password(self):
		password1 = self.cleaned_data.get("password", "")
		password2 = self.cleaned_data['<PASSWORD>']
		if password1 != password2:
			raise forms.ValidationError(_("The passwords you entered did not match!"))
		return password2

class SubmitCodeForm(forms.Form):
	code = forms.CharField(widget=forms.Textarea)

{'fraction_non_alphanumeric': 0.11855670103092783, 'fraction_numerical': 0.006443298969072165, 'mean_word_length': 6.375296912114014, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3360805', 'n_tokens_mistral': 958, 'n_tokens_neox': 925, 'n_words': 196}