text
stringlengths
0
1.05M
meta
dict
from django import forms from django.contrib.auth.forms import PasswordResetForm from django.contrib.auth.models import User from captcha.fields import ReCaptchaField from .models import UserProfile from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit cla...
{ "repo_name": "babsey/django-forums-bootstrap", "path": "accounts/forms.py", "copies": "1", "size": "5873", "license": "bsd-3-clause", "hash": 1990848561639144400, "line_mean": 36.8903225806, "line_max": 184, "alpha_frac": 0.6339179295, "autogenerated": false, "ratio": 4.168204400283889, "confi...
from django import forms from django.contrib.auth.forms import PasswordResetForm, UserCreationForm, AuthenticationForm from django.utils.translation import gettext_lazy as _ from django.contrib.auth import get_user_model from captcha.fields import ReCaptchaField from django.conf import settings class CaptchaPasswordRe...
{ "repo_name": "wallysalami/gamified-education", "path": "course/forms/forms.py", "copies": "1", "size": "2232", "license": "mit", "hash": -3009645332758492000, "line_mean": 35.606557377, "line_max": 93, "alpha_frac": 0.6671146953, "autogenerated": false, "ratio": 4.014388489208633, "config_test...
from django import forms from django.contrib.auth.forms import PasswordResetForm, UserCreationForm from django.contrib.auth.models import User from twobuntu.accounts.models import Profile from twobuntu.captcha.fields import CaptchaField class RegistrationForm(UserCreationForm): """ Form for new user registra...
{ "repo_name": "2buntu/2buntu-blog", "path": "twobuntu/accounts/forms.py", "copies": "1", "size": "1560", "license": "apache-2.0", "hash": -2960894037237901300, "line_mean": 27.8888888889, "line_max": 103, "alpha_frac": 0.6615384615, "autogenerated": false, "ratio": 4.227642276422764, "config_te...
from django import forms from django.contrib.auth.forms import (ReadOnlyPasswordHashField, AuthenticationForm, PasswordResetForm, SetPasswordForm, PasswordChangeForm, AdminPasswordChangeForm) from django.utils.translation import ugettext_lazy as _ from .models import User __all__ = ( 'UserCreationForm', ...
{ "repo_name": "dfunckt/django-emailauth", "path": "emailauth/forms.py", "copies": "1", "size": "3127", "license": "mit", "hash": 2890177054533552600, "line_mean": 33.3626373626, "line_max": 79, "alpha_frac": 0.6229613048, "autogenerated": false, "ratio": 4.486370157819225, "config_test": false,...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from brambling.models import Person class PersonCreationForm(forms.ModelForm): """A form for creating new users. Includes all the required fields, plus a repeated password.""" password1 = forms.CharField(label='Passwo...
{ "repo_name": "j-po/django-brambling", "path": "brambling/admin/forms.py", "copies": "2", "size": "2018", "license": "bsd-3-clause", "hash": -8221421732725011000, "line_mean": 38.568627451, "line_max": 90, "alpha_frac": 0.6674925669, "autogenerated": false, "ratio": 4.524663677130045, "config_t...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.admin import widgets from django.forms import PasswordInput from core.admin.forms import OneToOneUserAdminForm from ..models import Staff class StaffAdminForm(OneToOneUserAdminForm): chs_password = ReadO...
{ "repo_name": "ministryofjustice/cla_backend", "path": "cla_backend/apps/cla_provider/admin/forms.py", "copies": "1", "size": "1478", "license": "mit", "hash": -4196552340081505000, "line_mean": 30.4468085106, "line_max": 105, "alpha_frac": 0.6251691475, "autogenerated": false, "ratio": 4.2108262...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth import get_user_model from django.utils.translation import ugettext_lazy as _ from .models import EmailUser class EmailUserCreationForm(forms.ModelForm): """ A form for creating new users. Includ...
{ "repo_name": "luanfonceca/django-first-step", "path": "first_step/accounts/forms.py", "copies": "1", "size": "3067", "license": "unlicense", "hash": 6369037546472834000, "line_mean": 36.8641975309, "line_max": 78, "alpha_frac": 0.6475383111, "autogenerated": false, "ratio": 4.400286944045911, ...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth import get_user_model from myprofile.models import User,UserAvatar from django.forms.extras.widgets import SelectDateWidget class UserCreationForm(forms.ModelForm): password1 = forms.CharField( ...
{ "repo_name": "etovrodeya/hotel_project2", "path": "myprofile/forms.py", "copies": "1", "size": "3878", "license": "mit", "hash": -8862992342445591000, "line_mean": 35.801980198, "line_max": 114, "alpha_frac": 0.6066720474, "autogenerated": false, "ratio": 3.820143884892086, "config_test": fals...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth import get_user_model class UserCreationForm(forms.ModelForm): """ Форма регистрации пользователя """ password1 = forms.CharField( label='Пароль', widget=forms.PasswordInpu...
{ "repo_name": "AndreyRem/polls", "path": "polls/polls/apps/auth_service/forms.py", "copies": "1", "size": "1645", "license": "apache-2.0", "hash": -6962839195487065000, "line_mean": 25.1034482759, "line_max": 78, "alpha_frac": 0.6311962987, "autogenerated": false, "ratio": 3.415349887133183, "c...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib import admin from OJCR.models import User,CodeEntry from django.contrib.auth.admin import UserAdmin class UserCreationForm(forms.ModelForm): password1 = forms.CharField(label='Password', widget=forms.Passw...
{ "repo_name": "ahmad-amiri/Django-Sample-OJCR", "path": "OJCR/admin.py", "copies": "1", "size": "2811", "license": "mit", "hash": -2914722083533567500, "line_mean": 32.4761904762, "line_max": 96, "alpha_frac": 0.6225542512, "autogenerated": false, "ratio": 4.127753303964758, "config_test": fals...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from django.forms import widgets from .models import * class CustomUserCreationForm(forms.ModelForm): """ A form that creates a user, with no privileges, from the gi...
{ "repo_name": "othreecodes/MY-RIDE", "path": "app/forms.py", "copies": "1", "size": "7260", "license": "mit", "hash": 6000312947718515000, "line_mean": 46.1428571429, "line_max": 120, "alpha_frac": 0.5932506887, "autogenerated": false, "ratio": 4.285714285714286, "config_test": false, "has_no...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from accounts.models import CtsUser from accounts.utils import canonical_email CTS_USER_FIELDS = [ 'name', 'email', 'mobile', 'skype', 'role', 'is_a...
{ "repo_name": "stbenjam/CTS", "path": "accounts/forms.py", "copies": "2", "size": "5687", "license": "bsd-3-clause", "hash": 395676735748147600, "line_mean": 34.1049382716, "line_max": 92, "alpha_frac": 0.6078776156, "autogenerated": false, "ratio": 4.314871016691957, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from custom_auth.models import User class UserCreationForm(forms.ModelForm): """ A form for creating new users. Includes all the required fields, plus a repeated pa...
{ "repo_name": "neuromat/nira", "path": "custom_auth/forms.py", "copies": "1", "size": "2541", "license": "mpl-2.0", "hash": 5750545970540906000, "line_mean": 39.9838709677, "line_max": 118, "alpha_frac": 0.639905549, "autogenerated": false, "ratio": 4.645338208409506, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from .models import CustomUser class CustomUserCreationForm(forms.ModelForm): """ A form that creates a user, with no privileges, from the given username and pa...
{ "repo_name": "jonathanchu/django-custom-user-example", "path": "customuser/accounts/forms.py", "copies": "3", "size": "4198", "license": "mit", "hash": 6093851731297545000, "line_mean": 43.6595744681, "line_max": 111, "alpha_frac": 0.579561696, "autogenerated": false, "ratio": 4.759637188208616,...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from .models import User class UserCreationForm(forms.ModelForm): """A form for creating new users. Includes all the required fields, plus a repeated password.""" ...
{ "repo_name": "mayapurmedia/tovp", "path": "tovp/users/forms.py", "copies": "2", "size": "4361", "license": "mit", "hash": 4986104465014213000, "line_mean": 33.6111111111, "line_max": 106, "alpha_frac": 0.6282962623, "autogenerated": false, "ratio": 4.547445255474453, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from rtl_django_tools.models import User class BasicUserCreationForm(forms.ModelForm): """ A form that creates a user, with no privileges, from the given username a...
{ "repo_name": "Rethought/rtl_django_tools", "path": "src/rtl_django_tools/forms.py", "copies": "1", "size": "3529", "license": "bsd-3-clause", "hash": 6570411378075286000, "line_mean": 39.1022727273, "line_max": 79, "alpha_frac": 0.5868517994, "autogenerated": false, "ratio": 4.69281914893617, ...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext_lazy as _ from sandbox.apps.user import models class UserCreationForm(forms.ModelForm): """A form for creating new users. Includes all the required fields, plus a repeated pa...
{ "repo_name": "LabD/wagtail-personalisation", "path": "sandbox/sandbox/apps/user/forms.py", "copies": "1", "size": "2166", "license": "mit", "hash": 8249735333222969000, "line_mean": 33.380952381, "line_max": 78, "alpha_frac": 0.649122807, "autogenerated": false, "ratio": 4.484472049689441, "co...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext, ugettext_lazy as _ from django.contrib.auth.hashers import MAXIMUM_PASSWORD_LENGTH from .models import CustomUser class CustomUserCreationForm(forms.ModelForm): """ A form t...
{ "repo_name": "jonathanchu/django-statusboard", "path": "statusboard/accounts/forms.py", "copies": "1", "size": "3651", "license": "mit", "hash": 4819487781695783000, "line_mean": 40.4886363636, "line_max": 79, "alpha_frac": 0.6203779786, "autogenerated": false, "ratio": 4.404101326899879, "con...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext, ugettext_lazy as _ from members.models import * import hashlib import base64 def sha1(email): m = hashlib.sha1() m.update(email) return base64.b64encode(m.digest()) cla...
{ "repo_name": "ngpitt/wrpi-web", "path": "members/forms.py", "copies": "1", "size": "2969", "license": "apache-2.0", "hash": -7839517051506545000, "line_mean": 33.1264367816, "line_max": 78, "alpha_frac": 0.6598181206, "autogenerated": false, "ratio": 4.095172413793104, "config_test": false, ...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import ugettext, ugettext_lazy as _ from ..models import User class UserForm(forms.ModelForm): email = forms.EmailField(label=_("Email"), error_messages={ 'invalid': _("Please enter a val...
{ "repo_name": "Maachi/Gestion", "path": "users/forms/admin.py", "copies": "1", "size": "2540", "license": "mit", "hash": 5724966901012968000, "line_mean": 35.2857142857, "line_max": 78, "alpha_frac": 0.6145669291, "autogenerated": false, "ratio": 4.479717813051146, "config_test": false, "has_...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from riders.models import Teammate # Form to create new riders in the admin area class TeammateCreationForm(forms.ModelForm): # Ask for a password password1 = forms.CharField(label = 'Password', widget = forms.Passwor...
{ "repo_name": "ethanperez/t4k-rms", "path": "riders/forms.py", "copies": "1", "size": "1659", "license": "mit", "hash": 1055562548324353000, "line_mean": 34.3191489362, "line_max": 81, "alpha_frac": 0.6588306209, "autogenerated": false, "ratio": 4.582872928176796, "config_test": false, "has_n...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from accounts.models import AccountsUser class AccountsUserCreationForm(forms.ModelForm): """ A form for creating new users. Includes all the required fields, plus a repeated password. View should have correct permi...
{ "repo_name": "JTarball/tetherbox", "path": "docker/app/app/backend/apps/_archive/accounts_maybe_good?/profiles/forms.py", "copies": "4", "size": "2319", "license": "isc", "hash": -7409367199349795000, "line_mean": 37.65, "line_max": 148, "alpha_frac": 0.6727037516, "autogenerated": false, "ratio...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from apps.content.models import Post # class AccountsUserCreationForm(forms.ModelForm): # """ A form for creating new users. Includes all the required fields, plus a repeated password. # View should have correct per...
{ "repo_name": "JTarball/tetherbox", "path": "docker/app/app/backend/apps/_archive/content/forms/forms.py", "copies": "8", "size": "2437", "license": "isc", "hash": -7829232606655942000, "line_mean": 35.9242424242, "line_max": 148, "alpha_frac": 0.6360279032, "autogenerated": false, "ratio": 3.936...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from apps.users.models import User class UserCreationForm(forms.ModelForm): """ A form for creating new users. Includes all the required fields, plus a repeated password """ password1 = forms.CharField(label=...
{ "repo_name": "vchaptsev/cookiecutter-django-vue", "path": "{{cookiecutter.project_slug}}/backend/apps/users/forms.py", "copies": "1", "size": "1968", "license": "bsd-3-clause", "hash": 3169866738920460300, "line_mean": 35.4444444444, "line_max": 97, "alpha_frac": 0.6666666667, "autogenerated": fal...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Fieldset, HTML, Field, Div, Submit from crispy_forms.bootstrap import FormActions from .models import Member from .widgets import PendingEmailFiel...
{ "repo_name": "Alofoxx/club-websystem", "path": "src/clubmembers/forms.py", "copies": "2", "size": "2505", "license": "mit", "hash": -7294548723498506000, "line_mean": 34.2816901408, "line_max": 224, "alpha_frac": 0.6355289421, "autogenerated": false, "ratio": 3.7166172106824926, "config_test":...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.conf import settings from registration_withemail.models import EldonUser from django.contrib.auth.forms import AuthenticationForm from django.utils.translation import ugettext_lazy as _ class UserCreationForm(forms.Mo...
{ "repo_name": "kamagatos/django-registration-withemail", "path": "registration_withemail/forms.py", "copies": "1", "size": "4468", "license": "bsd-2-clause", "hash": 8225146332643938000, "line_mean": 35.631147541, "line_max": 152, "alpha_frac": 0.6387645479, "autogenerated": false, "ratio": 4.463...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import MyUser class RegisterForm(forms.Form): username = forms.CharField() email = forms.EmailField() password1 = forms.CharField(label='Password', widget=forms.PasswordInput) password2 = forms.CharF...
{ "repo_name": "codingforentrepreneurs/srvup-rest-framework", "path": "src/accounts/forms.py", "copies": "6", "size": "3384", "license": "apache-2.0", "hash": -7235516665547579000, "line_mean": 33.8865979381, "line_max": 115, "alpha_frac": 0.6817375887, "autogenerated": false, "ratio": 4.240601503...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import TemuUser, Post, FriendRequest, Relationship import logging logger = logging.getLogger(__name__) class SignupForm(forms.ModelForm): error_messages = [ {'password_mismatch': "The two password fie...
{ "repo_name": "eyohansa/temu", "path": "social/forms.py", "copies": "1", "size": "2067", "license": "mit", "hash": 5635212685094019000, "line_mean": 27.3150684932, "line_max": 76, "alpha_frac": 0.6231253024, "autogenerated": false, "ratio": 4.315240083507307, "config_test": false, "has_no_key...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import User class UserCreationForm(forms.ModelForm): """ Form for creating new users. Includes all the required fields, plus a repeated password. """ PASSWORDS_DONT_MATCH = "Passwords don't ma...
{ "repo_name": "FreeMusicNinja/api.freemusic.ninja", "path": "users/forms.py", "copies": "1", "size": "1661", "license": "bsd-3-clause", "hash": 3815104697855704600, "line_mean": 27.6379310345, "line_max": 77, "alpha_frac": 0.6453943408, "autogenerated": false, "ratio": 4.429333333333333, "confi...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import User class UserCreationForm(forms.ModelForm): password1 = forms.CharField(label='Password', widget=forms.PasswordInput) password2 = forms.CharField(label='Confirm', widget=forms.PasswordInput) cl...
{ "repo_name": "pyshopml/jobs-backend", "path": "jobs_backend/users/forms.py", "copies": "1", "size": "1481", "license": "mit", "hash": -6476359341781463000, "line_mean": 31.9111111111, "line_max": 77, "alpha_frac": 0.6738690074, "autogenerated": false, "ratio": 4.381656804733728, "config_test":...
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import MyUser class UserCreationForm(forms.ModelForm): """A form for creating new users. Includes all the required fields, plus a repeated password.""" password1 = forms.CharField(label='Password', widge...
{ "repo_name": "moertoe1/moertoe123.github.io", "path": "src/accounts/__forms__.py", "copies": "1", "size": "1818", "license": "mit", "hash": 4666748987358745000, "line_mean": 36.1224489796, "line_max": 103, "alpha_frac": 0.6760176018, "autogenerated": false, "ratio": 4.318289786223278, "config_...
from django import forms from django.contrib.auth.forms import SetPasswordForm from .models import SurmandlUser class UserProfileForm(forms.ModelForm): class Meta: model = SurmandlUser fields = {'email', 'first_name', 'last_name', 'relation'} widgets = { 'first_name': forms.T...
{ "repo_name": "dsimandl/teamsurmandl", "path": "profiles/forms.py", "copies": "1", "size": "1114", "license": "mit", "hash": 6722374825010928000, "line_mean": 40.2592592593, "line_max": 110, "alpha_frac": 0.6005385996, "autogenerated": false, "ratio": 4.301158301158301, "config_test": false, ...
from django import forms from django.contrib.auth.forms import UserChangeForm, UserCreationForm, AdminPasswordChangeForm from django_roles.models import DRUser __author__ = 'cenk' class DRUserChangeForm(UserChangeForm): class Meta: model = DRUser fields = '__all__' class DRUserCreationForm(Us...
{ "repo_name": "cenkbircanoglu/django-roles", "path": "django_roles/forms.py", "copies": "1", "size": "1080", "license": "mit", "hash": -4666949389324093000, "line_mean": 25.3414634146, "line_max": 95, "alpha_frac": 0.6592592593, "autogenerated": false, "ratio": 4.354838709677419, "config_test":...
from django import forms from django.contrib.auth.forms import UserChangeForm, UserCreationForm from cognitive.apps.users.models import User from crispy_forms.bootstrap import TabHolder from crispy_forms.layout import Layout from crispy_forms.helper import FormHelper class UserCreateForm(UserCreationForm): email...
{ "repo_name": "poldracklab/cogat", "path": "cognitive/apps/users/forms.py", "copies": "1", "size": "1957", "license": "mit", "hash": 7011605670240629000, "line_mean": 29.1076923077, "line_max": 70, "alpha_frac": 0.6213592233, "autogenerated": false, "ratio": 3.777992277992278, "config_test": fa...
from django import forms from django.contrib.auth.forms import UserCreationForm as AuthUserCreationForm, AuthenticationForm as AuthAuthenticationForm from django.forms.models import inlineformset_factory from confucius.models import Activation, Address, Email, Language, User class AuthenticationForm(AuthAuthenticati...
{ "repo_name": "jfouca/confucius", "path": "confucius/forms/account.py", "copies": "1", "size": "4842", "license": "bsd-3-clause", "hash": 2624196912297769500, "line_mean": 31.7162162162, "line_max": 124, "alpha_frac": 0.6232961586, "autogenerated": false, "ratio": 4.393829401088929, "config_tes...
from django import forms from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm from django.contrib.auth.forms import UserChangeForm as BaseUserChangeForm from django.forms import ModelForm from .models import User, Membership class UserCreationForm(BaseUserCreationForm): class Meta(BaseU...
{ "repo_name": "demvher/pythondotorg", "path": "users/forms.py", "copies": "1", "size": "3046", "license": "apache-2.0", "hash": 8773928278635581000, "line_mean": 27.4672897196, "line_max": 87, "alpha_frac": 0.6024294156, "autogenerated": false, "ratio": 4.207182320441989, "config_test": false, ...
from django import forms from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.forms.models import inlineformset_factory f...
{ "repo_name": "jorge-marques/wagtail", "path": "wagtail/wagtailusers/forms.py", "copies": "4", "size": "8822", "license": "bsd-3-clause", "hash": 4618714040156540000, "line_mean": 36.0672268908, "line_max": 107, "alpha_frac": 0.6484924054, "autogenerated": false, "ratio": 4.375992063492063, "co...
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth.models import User from sirtrevor.forms import SirTrevorFormField from sirtrevor.widgets import SirTrevorWidget from models import * class UserAuthenticationForm(AuthenticationForm): # add y...
{ "repo_name": "Tarun12345/rat-notes", "path": "src/note/forms.py", "copies": "1", "size": "3094", "license": "apache-2.0", "hash": -6814743915146083000, "line_mean": 32.2688172043, "line_max": 106, "alpha_frac": 0.6370394312, "autogenerated": false, "ratio": 4.108897742363878, "config_test": fa...
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth.models import User class DoctorLoginForm(AuthenticationForm): username = forms.CharField(label='Username', widget=forms.TextInput( ...
{ "repo_name": "vribeiro1/plainsboro_221", "path": "plainsboro/doctor_subscriptions/forms.py", "copies": "1", "size": "5707", "license": "mit", "hash": 1079571641079769000, "line_mean": 43.5078125, "line_max": 81, "alpha_frac": 0.4523433386, "autogenerated": false, "ratio": 5.48315688161694, "co...
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm, PasswordResetForm, UserChangeForm, PasswordChangeForm from django.forms import ModelForm from webshop.models import Address """ Address form. Author(s): Markku Laine """ class AddressForm( ModelForm ): class Meta...
{ "repo_name": "mplaine/nintendo-gw-web-shop", "path": "src/nintendo_gw_web_shop/webshop/forms.py", "copies": "1", "size": "9135", "license": "mit", "hash": -7008189540515832000, "line_mean": 73.8852459016, "line_max": 402, "alpha_frac": 0.61893815, "autogenerated": false, "ratio": 3.4747052111068...
from django import forms from django.contrib.auth.forms import UserCreationForm from accounts.models import User from django.core.exceptions import ValidationError class UserRegistrationForm(UserCreationForm): MONTH_ABBREVIATIONS = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept'...
{ "repo_name": "GunnerJnr/_CodeInstitute", "path": "Stream-3/Full-Stack-Development/13.Stripe-Subscriptions/3.Renewing-A-Subscription/challenge_solution/we_are_social/accounts/forms.py", "copies": "29", "size": "1888", "license": "mit", "hash": -1857758486459977500, "line_mean": 30.4666666667, "line_max...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.conf import settings from django.contrib.auth import get_user_model from SimpleMooc.core.utils import generate_hash_key from .models import PasswordReset from SimpleMooc.core.mail import send_email_template from SimpleMooc.core....
{ "repo_name": "andersondss/LearningDjango", "path": "udemy/SimpleMooc/SimpleMooc/accounts/forms.py", "copies": "1", "size": "2145", "license": "mit", "hash": 3013293522208029000, "line_mean": 31.0149253731, "line_max": 77, "alpha_frac": 0.6461538462, "autogenerated": false, "ratio": 3.97959183673...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth.models import Group from .models import MyUser class LoginForm(forms.Form): email = forms.CharField(label=u'Email', required=True) password =...
{ "repo_name": "kch8qx/osf.io", "path": "admin/common_auth/forms.py", "copies": "5", "size": "1214", "license": "apache-2.0", "hash": 7500904361621918000, "line_mean": 35.7878787879, "line_max": 108, "alpha_frac": 0.6713344316, "autogenerated": false, "ratio": 3.980327868852459, "config_test": f...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from frequencia.vinculos.models import Setor User = get_user_model() class RegisterForm(forms.ModelForm): password1 = forms.CharField(label='Se...
{ "repo_name": "bczmufrn/frequencia", "path": "frequencia/accounts/forms.py", "copies": "1", "size": "1121", "license": "mit", "hash": 9060827875826142000, "line_mean": 24.3863636364, "line_max": 71, "alpha_frac": 0.7403760072, "autogenerated": false, "ratio": 3.2660818713450293, "config_test": ...
from django import forms # from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model from simplemooc.core.utils import generate_hash_key from simplemooc.core.mail import send_mail_template from simplemooc.accounts.models import PasswordReset, Professor User = get_user_model...
{ "repo_name": "mazulo/simplemooc", "path": "simplemooc/accounts/forms.py", "copies": "1", "size": "2295", "license": "mit", "hash": -2410490143819775000, "line_mean": 27.6, "line_max": 74, "alpha_frac": 0.6499125874, "autogenerated": false, "ratio": 3.8779661016949154, "config_test": false, "...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from app.core.models import * class RegistroDesocupado(UserCreationForm): DNI = forms.CharField(max_length=10) fecha_de_nacimiento = forms.CharField() profesion = forms.CharField() ...
{ "repo_name": "YumiBunny/Gusoktor", "path": "app/core/forms.py", "copies": "1", "size": "3554", "license": "mit", "hash": 3510287038916442600, "line_mean": 39.8045977011, "line_max": 114, "alpha_frac": 0.6676056338, "autogenerated": false, "ratio": 3.1724754244861484, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from app.core.models import * class RegistroDesocupado(UserCreationForm): DNI = forms.CharField(max_length=10) fecha_de_nacimiento = forms.CharField() profesion = forms.CharField() ...
{ "repo_name": "agustinhansen/SIDECO", "path": "app/core/forms.py", "copies": "1", "size": "3768", "license": "mit", "hash": 6016891257853959000, "line_mean": 37.0202020202, "line_max": 91, "alpha_frac": 0.6639213603, "autogenerated": false, "ratio": 3.1419031719532553, "config_test": false, "...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from core.models import Profile, ContactUs class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=False, help_text='Optional.') last_name = forms.CharField(ma...
{ "repo_name": "coetzeevs/chiron", "path": "mysite/core/forms.py", "copies": "1", "size": "1558", "license": "mit", "hash": 7985319824465687000, "line_mean": 42.2777777778, "line_max": 105, "alpha_frac": 0.7522464698, "autogenerated": false, "ratio": 3.493273542600897, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from createprofile.models import Employee_Profile,Employer_Profile, Document, Profile_Picture, Listing, Logo class CreateProfileFromEE(forms.ModelForm): class Meta: model = Employee_Profile ...
{ "repo_name": "coetzeevs/chiron", "path": "mysite/createprofile/forms.py", "copies": "1", "size": "1234", "license": "mit", "hash": -3360813030212752400, "line_mean": 20.6666666667, "line_max": 108, "alpha_frac": 0.6401944895, "autogenerated": false, "ratio": 3.535816618911175, "config_test": f...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.contrib.auth import authenticate from .models import Usuario #Signup Form class NewUserCreationForm(UserCreationForm): email = forms.EmailField() first_name = forms.CharField() la...
{ "repo_name": "diego-d5000/Estudiala", "path": "estudiala/estudiala/usuarios/forms.py", "copies": "1", "size": "1601", "license": "mit", "hash": 6787298976136103000, "line_mean": 29.2075471698, "line_max": 66, "alpha_frac": 0.7101811368, "autogenerated": false, "ratio": 3.214859437751004, "conf...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ValidationError from citizengrid.models import UserInfo from citizengrid.models import ApplicationFile fro...
{ "repo_name": "ImperialCollegeLondon/citizengrid", "path": "dashboard/citizengrid/forms.py", "copies": "2", "size": "7418", "license": "bsd-3-clause", "hash": 3857896341468302000, "line_mean": 41.632183908, "line_max": 160, "alpha_frac": 0.6685090321, "autogenerated": false, "ratio": 3.9311075781...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.exceptions import ValidationError from captcha.fields import ReCaptchaField from indabom.settings import DEBUG class UserForm(UserCreationForm): first_name = forms.CharField...
{ "repo_name": "mpkasp/indabom", "path": "indabom/forms.py", "copies": "1", "size": "1235", "license": "mit", "hash": 268618495942466140, "line_mean": 35.3235294118, "line_max": 87, "alpha_frac": 0.6728744939, "autogenerated": false, "ratio": 4.0359477124183005, "config_test": false, "has_no_k...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.exceptions import ValidationError from .validators import validate_user_email_exists class CreateUser(UserCreationForm): email = forms.EmailField( required=True, ...
{ "repo_name": "pythonph/jobs-board", "path": "jobsboard/accounts/forms.py", "copies": "1", "size": "2199", "license": "mit", "hash": -4281221203231579000, "line_mean": 27.5584415584, "line_max": 69, "alpha_frac": 0.5848112779, "autogenerated": false, "ratio": 4.610062893081761, "config_test": f...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.db import models from django.utils.translation import ugettext_lazy class UserProfile(models.Model): user = models.ForeignKey(User) @property def name(self): ret...
{ "repo_name": "OmegaDroid/quokka", "path": "accounts/models.py", "copies": "1", "size": "1051", "license": "mit", "hash": 6961255215438547000, "line_mean": 28.1944444444, "line_max": 82, "alpha_frac": 0.6698382493, "autogenerated": false, "ratio": 3.9511278195488724, "config_test": false, "ha...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm from .models import Camp, Rate class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=True) last_name = forms.CharFie...
{ "repo_name": "mayank-agarwal-96/go-camping", "path": "camp/forms.py", "copies": "1", "size": "1510", "license": "mit", "hash": 1445956638089820700, "line_mean": 34.1395348837, "line_max": 97, "alpha_frac": 0.6463576159, "autogenerated": false, "ratio": 3.9528795811518322, "config_test": false,...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm from .models import Course, Submission, Assignment class SignUpForm(UserCreationForm): def clean_email(self): email = self.cleaned_data.get('email')...
{ "repo_name": "BilalZaib/AutoGrader", "path": "AutoGrade/forms.py", "copies": "1", "size": "1273", "license": "mit", "hash": 2862604411887997000, "line_mean": 31.641025641, "line_max": 94, "alpha_frac": 0.6653574234, "autogenerated": false, "ratio": 4.106451612903226, "config_test": false, "h...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm from .models import Profile class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=True) last_name = forms.CharField(m...
{ "repo_name": "mayank-agarwal-96/CSI-WIP", "path": "complaint/forms.py", "copies": "1", "size": "1854", "license": "mit", "hash": -1438261696882447400, "line_mean": 33.3518518519, "line_max": 97, "alpha_frac": 0.6278317152, "autogenerated": false, "ratio": 3.9956896551724137, "config_test": fal...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm from recipemaster.recipes.models import Recipe, RecipeCollection class RecipeForm(ModelForm): class Meta: model = Recipe fields = ['title'...
{ "repo_name": "agnethesoraa/recipemaster", "path": "recipemaster/recipes/forms.py", "copies": "1", "size": "1215", "license": "mit", "hash": 5812943176108776000, "line_mean": 24.8510638298, "line_max": 75, "alpha_frac": 0.646090535, "autogenerated": false, "ratio": 3.957654723127036, "config_te...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from swiper.models import Group, GroupManager, Match, MatchManager, Restaurant, UserProfile class SignUpForm(UserCreationForm): """ Form f...
{ "repo_name": "GFynbo/GoudaTime", "path": "swiper/forms.py", "copies": "1", "size": "4930", "license": "mit", "hash": 1561668335908973800, "line_mean": 33.9645390071, "line_max": 91, "alpha_frac": 0.661663286, "autogenerated": false, "ratio": 3.754760091393755, "config_test": false, "has_no_k...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User import datetime from django.forms import TextInput class Registration_Form(UserCreationForm): username = forms.RegexField( label="Username", max_length=30, regex=r"^[\w.@+-]+$", h...
{ "repo_name": "Piotr95/Yummy_Pies", "path": "UserManagement/forms.py", "copies": "1", "size": "3457", "license": "mit", "hash": 6400167305573928000, "line_mean": 33.2376237624, "line_max": 153, "alpha_frac": 0.5180792595, "autogenerated": false, "ratio": 4.684281842818428, "config_test": false,...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from models import * from pygments import lexers # Add preferred lexers here. This list will not be explicitly sorted. preferred_lexers = [ 'TextLexer', 'ActionScriptLexer', ...
{ "repo_name": "justinvh/gitpaste", "path": "saic/paste/forms.py", "copies": "1", "size": "3835", "license": "bsd-3-clause", "hash": -2516923694546289000, "line_mean": 26.5899280576, "line_max": 74, "alpha_frac": 0.5973924381, "autogenerated": false, "ratio": 4.003131524008351, "config_test": fa...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SnoRegForm(UserCreationForm): """ форма регистрации СНО """ class Meta: model = User fields = ('sno_short_name', 'username', 'email', 'password1', 'passwo...
{ "repo_name": "glad-web-developer/zab_sno", "path": "src/users/forms/SnoRegForm.py", "copies": "1", "size": "1554", "license": "apache-2.0", "hash": -4104685428146325000, "line_mean": 24.9454545455, "line_max": 110, "alpha_frac": 0.6047652418, "autogenerated": false, "ratio": 3.185267857142857, ...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.core.exceptions import ValidationError from accounts.models import User class UserRegistrationForm(UserCreationForm): MONTH_ABBREVIATIONS = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept...
{ "repo_name": "GunnerJnr/_CodeInstitute", "path": "Stream-3/Full-Stack-Development/19.Djangos-Testing-Framework/4.How-To-Test-Models/we_are_social/accounts/forms.py", "copies": "8", "size": "1889", "license": "mit", "hash": 404499046444078000, "line_mean": 29.9672131148, "line_max": 74, "alpha_frac":...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.forms import extras from django.contrib.auth.models import User from localflavor.ar.forms import ARDNIField from .choices import * years = ( '1956', '1957', '1958', '1959', '1960', '1961', '1962', '1963', '1964', '1965'...
{ "repo_name": "fmoreyra/ReservaLibrosISOO", "path": "login/forms.py", "copies": "1", "size": "2083", "license": "mit", "hash": 4325291979786347500, "line_mean": 33.0983606557, "line_max": 73, "alpha_frac": 0.5394230769, "autogenerated": false, "ratio": 3.204930662557781, "config_test": false, ...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.utils.translation import ugettext_lazy as _ from .models import User, ProjectPermission class CustomUserCreationForm(UserCreationForm): """ Custom freation form for a user creation""" class Meta: model = User ...
{ "repo_name": "qdqmedia/wiggum", "path": "wiggum/users/forms.py", "copies": "1", "size": "3975", "license": "bsd-3-clause", "hash": -3998895581283138000, "line_mean": 36.8571428571, "line_max": 99, "alpha_frac": 0.5803773585, "autogenerated": false, "ratio": 4.883292383292384, "config_test": fa...
from django import forms from django.contrib.auth.forms import UserCreationForm from user.models import * class MyUserCreationForm(UserCreationForm): email = forms.EmailField(label="Email", error_messages={'invalid': "This value may contain only letters, numbers and @/. characters."}, widget = form...
{ "repo_name": "28harishkumar/django-diary", "path": "user/forms.py", "copies": "1", "size": "1633", "license": "apache-2.0", "hash": 4754107221673344000, "line_mean": 37, "line_max": 125, "alpha_frac": 0.6221677893, "autogenerated": false, "ratio": 4.389784946236559, "config_test": false, "ha...
from django import forms from django.contrib.auth.forms import UserCreationForm class AddChef(UserCreationForm): first_name = forms.CharField(required=True) last_name = forms.CharField(required=True) email = forms.EmailField(required=True) chef_picture = forms.ImageField(required=False) class AddRecipe(forms.For...
{ "repo_name": "sanderej/bakeoff", "path": "appRecipe/forms.py", "copies": "1", "size": "1628", "license": "mit", "hash": 2974058564559904300, "line_mean": 35.1777777778, "line_max": 111, "alpha_frac": 0.7352579853, "autogenerated": false, "ratio": 3.2365805168986084, "config_test": false, "ha...
from django import forms from django.contrib.auth.forms import UserCreationForm from dash.cluster.models import ClusterTemplate, Disk, AwsCredential import dash.ec2utils class ClusterTemplateForm(forms.ModelForm): class Meta: model = ClusterTemplate fields = [ 'name', 'number_of_nodes', 'type_of_n...
{ "repo_name": "godber/crunch.io-dashboard", "path": "cluster/forms.py", "copies": "1", "size": "1619", "license": "mit", "hash": 4741913191187994000, "line_mean": 32.0408163265, "line_max": 116, "alpha_frac": 0.5867819642, "autogenerated": false, "ratio": 4.216145833333333, "config_test": false...
from django import forms from django.contrib.auth.forms import UserCreationForm from .models import Profile class PublicProfileForm(forms.ModelForm): """ Allows for profile and settings updates. Note that template checks for "Open board links" label. Anything below that will be in a 'settings' fields...
{ "repo_name": "tBaxter/Tango", "path": "tango_user/forms.py", "copies": "2", "size": "1084", "license": "mit", "hash": 9146382293744843000, "line_mean": 21.1224489796, "line_max": 59, "alpha_frac": 0.5341328413, "autogenerated": false, "ratio": 4.775330396475771, "config_test": false, "has_no...
from django import forms from django.contrib.auth.forms import UserCreationForm from .models import Subscriber class AddressMixin(forms.ModelForm): class Meta: model = Subscriber fields = ('address_one', 'address_two', 'city', 'state',) widgets = { 'address_one': forms.TextInp...
{ "repo_name": "tabdon/crmeasyapp", "path": "crmapp/subscribers/forms.py", "copies": "2", "size": "1328", "license": "mit", "hash": -7142087810531935000, "line_mean": 35.8888888889, "line_max": 81, "alpha_frac": 0.6378012048, "autogenerated": false, "ratio": 4.098765432098766, "config_test": fal...
from django import forms from django.contrib.auth.forms import UserCreationForm, PasswordChangeForm, \ AuthenticationForm, PasswordResetForm, SetPasswordForm from django.template.defaultfilters import filesizeformat from django.core.files.uploadedfile import InMemoryUploadedFile from django.utils.translation import...
{ "repo_name": "maur1th/naxos", "path": "app/forum/user/forms.py", "copies": "2", "size": "7122", "license": "apache-2.0", "hash": 2792663887215331000, "line_mean": 36.1884816754, "line_max": 79, "alpha_frac": 0.6101647191, "autogenerated": false, "ratio": 4.058857142857143, "config_test": false...
from django import forms from django.contrib.auth.forms import UserCreationForm, SetPasswordForm from django.forms.extras.widgets import SelectDateWidget from django.core.files.images import ImageFile from django.contrib.auth import get_user_model from datetime import date from PIL import Image try: from cStringI...
{ "repo_name": "amikrop/django-uaccounts", "path": "uaccounts/forms.py", "copies": "1", "size": "6457", "license": "bsd-3-clause", "hash": 4200815305447213000, "line_mean": 36.1091954023, "line_max": 79, "alpha_frac": 0.5581539415, "autogenerated": false, "ratio": 4.569709837225761, "config_test...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth import get_user_model from account.models import CustomUser attributes = {"class": "required"} class RegistrationForm(forms.Form): username = forms.RegexField( regex=r'^[\w.@+-]+$', ...
{ "repo_name": "crcollins/chemtools-webapp", "path": "account/forms.py", "copies": "1", "size": "2176", "license": "mit", "hash": -6964153255673485000, "line_mean": 30.5362318841, "line_max": 77, "alpha_frac": 0.6079963235, "autogenerated": false, "ratio": 4.4227642276422765, "config_test": fals...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from selectable import forms as selectable from timepiece.utils.search import SearchForm from timepiece.crm.lookups import...
{ "repo_name": "gaga3966/django-timepiece", "path": "timepiece/crm/forms.py", "copies": "1", "size": "5350", "license": "mit", "hash": 4943939969424679000, "line_mean": 32.2298136646, "line_max": 82, "alpha_frac": 0.6446728972, "autogenerated": false, "ratio": 4.077743902439025, "config_test": f...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.models import User from selectable import forms as selectable from timepiece.utils.search import SearchForm from timepiece.crm.lookups import (BusinessLookup, ProjectLookup, UserLookup, Qu...
{ "repo_name": "josesanch/django-timepiece", "path": "timepiece/crm/forms.py", "copies": "2", "size": "5144", "license": "mit", "hash": -864363483544617300, "line_mean": 32.6209150327, "line_max": 82, "alpha_frac": 0.6450233281, "autogenerated": false, "ratio": 4.069620253164557, "config_test": ...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import Employee, Client, Applicant, SkillMatching, JobOpportunity, Specialized from django.contrib.auth import authenticate, login, logout # Custom Input class DateInput(forms.DateInput): input_type = 'da...
{ "repo_name": "zobeltran/webdevtproject", "path": "jobportal/forms.py", "copies": "1", "size": "11670", "license": "apache-2.0", "hash": 6319891712025699000, "line_mean": 39.2413793103, "line_max": 124, "alpha_frac": 0.5341902314, "autogenerated": false, "ratio": 4.338289962825279, "config_test...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm, PasswordChangeForm from cognitive.apps.users.models import User from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions, TabHolder, Tab, StrictButton from crispy_forms.layout import Layout, HTML, Button...
{ "repo_name": "rwblair/cogat", "path": "cognitive/apps/users/forms.py", "copies": "1", "size": "2104", "license": "mit", "hash": 4164905062810967000, "line_mean": 32.3968253968, "line_max": 105, "alpha_frac": 0.6307034221, "autogenerated": false, "ratio": 3.790990990990991, "config_test": false...
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm, ReadOnlyPasswordHashField from core.models import CollabUser from core.models import OrgGroup, OfficeLocation from django.conf import settings required_validator = { 'first_name': 'Your first name is required.', 'l...
{ "repo_name": "gboone/collab", "path": "core/forms.py", "copies": "4", "size": "6707", "license": "cc0-1.0", "hash": 1139095247748857500, "line_mean": 40.4012345679, "line_max": 97, "alpha_frac": 0.6296406739, "autogenerated": false, "ratio": 4.129926108374384, "config_test": false, "has_no_k...
from django import forms from django.contrib.auth.forms import UserCreationForm, UsernameField from django.contrib.auth.models import User from .models import ( FriendGroup, Profile, ) class RegisterForm(UserCreationForm): """A form for registering as a new user""" email = forms.EmailField( l...
{ "repo_name": "makyo/honeycomb", "path": "usermgmt/forms.py", "copies": "2", "size": "1207", "license": "mit", "hash": 8591211541632862000, "line_mean": 25.8222222222, "line_max": 75, "alpha_frac": 0.6056338028, "autogenerated": false, "ratio": 4.295373665480427, "config_test": false, "has_no...
from django import forms from django.contrib.auth.forms import UsernameField import ldap from realms.forms import RealmForm from . import get_ldap_connection class LDAPRealmForm(RealmForm): login_session_expiry = forms.IntegerField( required=False, min_value=0, max_value=1296000, initial=0, help_...
{ "repo_name": "zentralopensource/zentral", "path": "server/realms/backends/ldap/forms.py", "copies": "1", "size": "3131", "license": "apache-2.0", "hash": -8580749636635526000, "line_mean": 42.4305555556, "line_max": 109, "alpha_frac": 0.6184841701, "autogenerated": false, "ratio": 3.899002493765...
from django import forms from django.contrib.auth.hashers import check_password from django.contrib.auth.password_validation import ( password_validators_help_texts, validate_password, ) from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from pretix.base.models import User cla...
{ "repo_name": "Flamacue/pretix", "path": "src/pretix/base/forms/user.py", "copies": "1", "size": "4077", "license": "apache-2.0", "hash": -7943048699516574000, "line_mean": 35.7297297297, "line_max": 101, "alpha_frac": 0.5580083395, "autogenerated": false, "ratio": 4.421908893709327, "config_te...
from django import forms from django.contrib.auth.hashers import check_password from django.db.models import Q from django.utils.translation import ugettext_lazy as _ # from pytz import common_timezones from pretix.base.models import User class UserSettingsForm(forms.ModelForm): error_messages = { 'dupli...
{ "repo_name": "Unicorn-rzl/pretix", "path": "src/pretix/base/forms/user.py", "copies": "1", "size": "3407", "license": "apache-2.0", "hash": -266160777243203800, "line_mean": 35.2446808511, "line_max": 101, "alpha_frac": 0.5429997065, "autogenerated": false, "ratio": 4.542666666666666, "config_...
from django import forms from django.contrib.auth.hashers import check_password from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from pretix.base.models import User class UserSettingsForm(forms.ModelForm): error_messages = { 'duplicate_identifier': _("There already i...
{ "repo_name": "akuks/pretix", "path": "src/pretix/base/forms/user.py", "copies": "1", "size": "3325", "license": "apache-2.0", "hash": -245332419366823070, "line_mean": 35.1413043478, "line_max": 101, "alpha_frac": 0.5380451128, "autogenerated": false, "ratio": 4.536152796725784, "config_test":...
from django import forms from django.contrib.auth.hashers import check_password from django.utils.translation import ugettext_lazy as _ class RepoShareForm(forms.Form): """ Form for sharing repo to user or group. """ email_or_group = forms.CharField(max_length=512) repo_id = forms.CharField(max_le...
{ "repo_name": "skmezanul/seahub", "path": "seahub/share/forms.py", "copies": "5", "size": "1813", "license": "apache-2.0", "hash": 1353118297120337000, "line_mean": 33.8653846154, "line_max": 90, "alpha_frac": 0.6508549366, "autogenerated": false, "ratio": 4.111111111111111, "config_test": fals...
from django import forms from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from django.forms import ModelForm from models import UserProfile class UserForm(ModelForm): password = forms.CharField(widget=forms.PasswordInput) confirm_password = forms.CharField(wid...
{ "repo_name": "VahidGh/ChannelWorm", "path": "channelworm/account/form.py", "copies": "4", "size": "1305", "license": "mit", "hash": -2069984549935955000, "line_mean": 31.65, "line_max": 97, "alpha_frac": 0.6704980843, "autogenerated": false, "ratio": 4.278688524590164, "config_test": false, ...
from django import forms from django.contrib.auth import (authenticate, get_user_model, login, logout) User = get_user_model() class UserLoginForm(forms.Form): email = forms.EmailField(label='Email address') password = forms.CharField(widget=forms.PasswordInput) def clean(self, *args, **kwargs): ...
{ "repo_name": "aminhp93/learning_python", "path": "src/accounts/forms.py", "copies": "1", "size": "1687", "license": "mit", "hash": -8439683777769570000, "line_mean": 26.6557377049, "line_max": 81, "alpha_frac": 0.6188500296, "autogenerated": false, "ratio": 4.381818181818182, "config_test": fa...
from django import forms from django.contrib.auth import authenticate, get_user_model, login, logout User = get_user_model() class UserLoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) def clean(self, *args, **kwargs): username = self.clea...
{ "repo_name": "qrizan/moopy", "path": "moopy/accounts/forms.py", "copies": "1", "size": "2175", "license": "mit", "hash": -3111988781674352000, "line_mean": 37.1754385965, "line_max": 81, "alpha_frac": 0.6285057471, "autogenerated": false, "ratio": 4.298418972332016, "config_test": false, "ha...
from django import forms from django.contrib.auth import authenticate, get_user_model from django.contrib.auth.backends import ModelBackend from django.db import transaction from django.utils.crypto import get_random_string from django.utils.translation import ugettext_lazy as _ from . import settings from .forms impo...
{ "repo_name": "misli/django-verified-email-field", "path": "verified_email_field/auth.py", "copies": "1", "size": "2645", "license": "bsd-3-clause", "hash": 8405011978041456000, "line_mean": 33.3506493506, "line_max": 115, "alpha_frac": 0.5913043478, "autogenerated": false, "ratio": 4.68141592920...
from django import forms from django.contrib.auth import authenticate, get_user_model from django.contrib.auth.forms import ( AuthenticationForm as BaseAuthenticationForm, PasswordResetForm as BasePasswordResetForm, SetPasswordForm as BaseSetPasswordForm, ReadOnlyPasswordHashField, ) from django.contrib...
{ "repo_name": "ccwang002/biocloud-server-kai", "path": "src/users/forms.py", "copies": "1", "size": "10644", "license": "mit", "hash": -1910379400631919600, "line_mean": 31.0602409639, "line_max": 79, "alpha_frac": 0.5452837279, "autogenerated": false, "ratio": 4.627826086956522, "config_test":...
from django import forms from django.contrib.auth import authenticate, get_user_model from django.utils.text import capfirst from django.utils.translation import ugettext_lazy as _ import poplib from .constants import LOGIN_SERVERS class WebmailLoginForm(forms.Form): """ Webmail authentication Form. It work...
{ "repo_name": "narenchoudhary/django-iitg-auth", "path": "iitgauth/forms.py", "copies": "1", "size": "2881", "license": "bsd-3-clause", "hash": 9140267369170187000, "line_mean": 34.1341463415, "line_max": 86, "alpha_frac": 0.6292953835, "autogenerated": false, "ratio": 4.139367816091954, "confi...
from django import forms from django.contrib.auth import authenticate, get_user_model User = get_user_model() class UserLoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) def clean(self): username = self.cleaned_data.get('username') password = self.clea...
{ "repo_name": "loafbaker/django_blog", "path": "accounts/forms.py", "copies": "1", "size": "1893", "license": "mit", "hash": -516305724968680600, "line_mean": 31.6551724138, "line_max": 82, "alpha_frac": 0.735340729, "autogenerated": false, "ratio": 3.592030360531309, "config_test": false, "h...
from django import forms from django.contrib.auth import authenticate, login, get_user_model from django.utils.translation import ugettext_lazy as _ from base_accounts.utils import create_email_user class SignupFormMixin(object): def clean_email(self, *args, **kwargs): # Get lowercase email ema...
{ "repo_name": "Nomadblue/django-nomad-base-accounts", "path": "base_accounts/forms.py", "copies": "1", "size": "4329", "license": "bsd-3-clause", "hash": 2071453943535100400, "line_mean": 33.632, "line_max": 95, "alpha_frac": 0.6315546316, "autogenerated": false, "ratio": 4.186653771760155, "co...
from django import forms from django.contrib.auth import authenticate, login, logout from django.shortcuts import redirect from pyalp.utils import render_to_response from .models import UserMetadata from apps.techsupport.models import TechSupportRequest from pyalp_translation.customization import custom_gettext _ = ...
{ "repo_name": "Mause/pyalp", "path": "pyalp/accounts/views.py", "copies": "1", "size": "2845", "license": "mit", "hash": -8258836755835271000, "line_mean": 23.9561403509, "line_max": 65, "alpha_frac": 0.5936731107, "autogenerated": false, "ratio": 4.105339105339105, "config_test": false, "has...
from django import forms from django.contrib.auth import authenticate, login from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.utils.translation import ugettext_lazy as _ from .models import User, ResetPassword class SigninForm(forms.Form): email = forms.EmailField(label=_("E-ma...
{ "repo_name": "gileno/sofia", "path": "sofia/apps/accounts/forms.py", "copies": "1", "size": "2940", "license": "mit", "hash": -543887463153882200, "line_mean": 25.9449541284, "line_max": 76, "alpha_frac": 0.6132107593, "autogenerated": false, "ratio": 4.11344537815126, "config_test": false, ...
from django import forms from django.contrib.auth import authenticate, login from django.contrib.auth.forms import UserCreationForm from django_cbv_utils.forms import SetFromControlMixin, SetDateTimePickerMixin from tutorial.master.models import Category from tutorial.todo.models import ToDoUser, ToDo class ToDoUser...
{ "repo_name": "okwrtdsh/django_tutorial", "path": "src/tutorial/todo/forms.py", "copies": "1", "size": "2823", "license": "mit", "hash": 832297891500063700, "line_mean": 28.7311827957, "line_max": 83, "alpha_frac": 0.573960217, "autogenerated": false, "ratio": 4.060205580029368, "config_test": ...
from django import forms from django.contrib.auth import authenticate, login from django.contrib.auth.models import User as AuthUser from django.core.urlresolvers import reverse from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Button from users.models import User from datetime impor...
{ "repo_name": "PrincessTeruko/TsunArt", "path": "auth_users/forms.py", "copies": "1", "size": "2102", "license": "mit", "hash": -8935034046051004000, "line_mean": 25.6075949367, "line_max": 76, "alpha_frac": 0.6712654615, "autogenerated": false, "ratio": 3.1656626506024095, "config_test": false...
from django import forms from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from qa.models import Question, Answer class AskForm(forms.Form) : title = forms.CharField(max_length=255) text = forms.CharField(widget=forms.Textarea) author = 1 def clean_title(self) : ti...
{ "repo_name": "ArterialThroumbus/stepic_web_technology_practice", "path": "ask/qa/forms.py", "copies": "1", "size": "2676", "license": "mpl-2.0", "hash": 3552293057445408300, "line_mean": 24.7403846154, "line_max": 95, "alpha_frac": 0.7051569507, "autogenerated": false, "ratio": 3.220216606498195...
from django import forms from django.contrib.auth import authenticate, login from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import get_user_model class ContactForm(forms.Form): sender_name = forms.CharField() sender_email = forms.EmailField() subject = forms.CharField(ma...
{ "repo_name": "endthestart/schwag", "path": "schwag/schwag/forms.py", "copies": "1", "size": "2932", "license": "mit", "hash": -8634206177063719000, "line_mean": 36.1265822785, "line_max": 103, "alpha_frac": 0.6139154161, "autogenerated": false, "ratio": 4.545736434108528, "config_test": false,...
from django import forms from django.contrib.auth import authenticate, login from django.utils.translation import ugettext_lazy as _ class LoginForm(forms.Form): """ Form for to log in to the site. """ email = forms.EmailField(label=_("Email")) password = forms.CharField(label=_("Password"), widge...
{ "repo_name": "endthestart/tinsparrow", "path": "tinsparrow/tinsparrow/forms.py", "copies": "1", "size": "1506", "license": "mit", "hash": -9130729479995558000, "line_mean": 35.7317073171, "line_max": 103, "alpha_frac": 0.5750332005, "autogenerated": false, "ratio": 4.858064516129033, "config_t...
from django import forms from django.contrib.auth import authenticate, login from user.models import User class UserRegistrationForm(forms.Form): email = forms.EmailField(label='Email') username = forms.CharField(label='username', max_length=20) password = forms.CharField(widget=forms.PasswordInput()) ...
{ "repo_name": "fyaretskiy/website", "path": "shopping/user/forms.py", "copies": "1", "size": "1064", "license": "mit", "hash": 2164603211977859000, "line_mean": 29.4, "line_max": 66, "alpha_frac": 0.6287593985, "autogenerated": false, "ratio": 4.547008547008547, "config_test": false, "has_no_...