<commit_before># from captcha.fields import CaptchaField
from django import forms
# from .validator import checkUsername


class GenerateKeyForm(forms.Form):
    """docstring for GenerateKeyForm.
    Represents the form shown on /generate"""
    API = forms.CharField(label='API key', widget=forms.Textarea)
    encryption_password = forms.CharField(widget=forms.PasswordInput)


class decrypt_form(forms.Form):
    """docstring for decrypt_form.
    Represents the form shown on /decrypt
    This form can be replaced with a form directly on HTML
    """
    encrypted_file = forms.FileField()
    encryption_password = forms.CharField(widget=forms.PasswordInput)<commit_msg>Confirm password<commit_after># from captcha.fields import CaptchaField
from django import forms
# from .validator import checkUsername


class GenerateKeyForm(forms.Form):
    """docstring for GenerateKeyForm.
    Represents the form shown on /generate"""
    API = forms.CharField(label='API key', widget=forms.Textarea)
    encryption_password = forms.CharField(widget=forms.PasswordInput)
    confirm_password = forms.CharField(widget=forms.PasswordInput)

    def clean(self):
        password = self.cleaned_data.get('encryption_password')
        confirm_password = self.cleaned_data.get('confirm_password')

        if password != confirm_password:
            raise forms.ValidationError('Passwords do not match')
        return self.cleaned_data


class decrypt_form(forms.Form):
    """docstring for decrypt_form.
    Represents the form shown on /decrypt
    This form can be replaced with a form directly on HTML
    """
    encrypted_file = forms.FileField()
    encryption_password = forms.CharField(widget=forms.PasswordInput)
{'fraction_non_alphanumeric': 0.08498253783469151, 'fraction_numerical': 0.0, 'mean_word_length': 4.273006134969325, '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': '3463276', 'n_tokens_mistral': 466, 'n_tokens_neox': 464, 'n_words': 130}