text
stringlengths
0
1.05M
meta
dict
from django import forms from django.contrib.auth.models import User from ed_news.models import UserProfile from ed_news.models import Article, TextPost, Comment class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ('userna...
{ "repo_name": "ehmatthes/educator_news", "path": "educator_news/ed_news/forms.py", "copies": "1", "size": "1797", "license": "mit", "hash": 6447224152179588000, "line_mean": 25.8208955224, "line_max": 74, "alpha_frac": 0.5659432387, "autogenerated": false, "ratio": 4.1985981308411215, "config_t...
from django import forms from django.contrib.auth.models import User from friendship.models import Friend, Follow, FriendshipRequest from api.models import Post, Image, Comment, Node import uuid # i dont know what meta does ? class PostForm(forms.ModelForm): title = forms.CharField(widget=forms.Textarea(attrs={'co...
{ "repo_name": "zztimy/CMPUT404-project-socialdistribution", "path": "posts/forms.py", "copies": "3", "size": "2285", "license": "apache-2.0", "hash": -8087460692433364000, "line_mean": 30.301369863, "line_max": 110, "alpha_frac": 0.6433260394, "autogenerated": false, "ratio": 3.8532883642495785, ...
from django import forms from django.contrib.auth.models import User from market.models import Category,Goods,UserProfile,Comment class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ('username','email','password') class ...
{ "repo_name": "starbt/flea_market", "path": "market/forms.py", "copies": "1", "size": "1650", "license": "mit", "hash": -2708627460151252000, "line_mean": 37.2, "line_max": 152, "alpha_frac": 0.6858638743, "autogenerated": false, "ratio": 3.251063829787234, "config_test": false, "has_no_keywo...
from django import forms from django.contrib.auth.models import User from models.Author import Author from models.Post import Post VISIBILITY_OPTIONS = (('PUBLIC','PUBLIC'), ('PRIVATE','PRIVATE'), ('FRIENDS','FRIENDS'), ('FOAF','FOAF'), ('SERVERONLY','SERVERONLY')) CONTENT_TYPE = (('text/plain','text/plain'),('text/ma...
{ "repo_name": "CMPUT404Team/CMPUT404-project-socialdistribution", "path": "cmput404project/service/PostForm.py", "copies": "1", "size": "1631", "license": "apache-2.0", "hash": -1883943006696529200, "line_mean": 45.6, "line_max": 141, "alpha_frac": 0.6983445739, "autogenerated": false, "ratio": 3...
from django import forms from django.contrib.auth.models import User from models.document import Document from models.comment import PageComment, DocumentComment class DocumentUploadForm(forms.ModelForm): class Meta: model = Document fields = ['title', 'subject', 'file'] class PageCommentForm(form...
{ "repo_name": "muhakh/CSE371Project", "path": "forms.py", "copies": "1", "size": "1027", "license": "mit", "hash": 1430482759371239700, "line_mean": 32.1290322581, "line_max": 87, "alpha_frac": 0.7156767283, "autogenerated": false, "ratio": 3.9961089494163424, "config_test": false, "has_no_ke...
from django import forms from django.contrib.auth.models import User from .models import Category, Page, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text='Please enter category name') views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) likes = forms.Int...
{ "repo_name": "raghuraju/tango-with-django-110", "path": "rango/forms.py", "copies": "1", "size": "1080", "license": "mit", "hash": -7198171620372278000, "line_mean": 27.4473684211, "line_max": 80, "alpha_frac": 0.7462962963, "autogenerated": false, "ratio": 3.6486486486486487, "config_test": f...
from django import forms from django.contrib.auth.models import User from .models import Issue class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistration(forms.ModelForm): password = forms.CharField(label='Password', widget=for...
{ "repo_name": "yamanahlawat/Simple-Issue-Tracker-V2", "path": "SimpleIssueTracker/forms.py", "copies": "1", "size": "1112", "license": "mit", "hash": -2740827271163207700, "line_mean": 26.1463414634, "line_max": 84, "alpha_frac": 0.6600719424, "autogenerated": false, "ratio": 4.19622641509434, ...
from django import forms from django.contrib.auth.models import User from .models import List, Item, UserProfile, User from django.contrib.auth import authenticate class ListForm(forms.ModelForm): class Meta: model = List fields = ('title',) exclude = ('user',) class ItemForm(forms.Mode...
{ "repo_name": "ashlibaldwin/GearList", "path": "gear/forms.py", "copies": "1", "size": "2003", "license": "mit", "hash": -6799745237208812000, "line_mean": 27.6142857143, "line_max": 91, "alpha_frac": 0.6310534199, "autogenerated": false, "ratio": 4.43141592920354, "config_test": false, "has_...
from django import forms from django.contrib.auth.models import User from .models import Need, Information, Userdata, ContactUs, CategoriesNeeds, Groupdata from nocaptcha_recaptcha.fields import NoReCaptchaField class UserFormRegister(forms.ModelForm): class Meta: model = User fields = ['password'...
{ "repo_name": "actofgoods/actofgoods", "path": "basics/forms.py", "copies": "1", "size": "2898", "license": "mit", "hash": -8237867710186223000, "line_mean": 28.5714285714, "line_max": 90, "alpha_frac": 0.6549344375, "autogenerated": false, "ratio": 3.942857142857143, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User from .models import * from django.contrib.auth.forms import UserCreationForm, UserChangeForm, ReadOnlyPasswordHashField from django.contrib.auth.models import Group TIPO_DOC_LIST = [ ('CEDULA CUIDADANIA', 'CEDULA CUIDADANIA'), ('CEDULA EXTRAN...
{ "repo_name": "cgutierr3z/proyecto-eees", "path": "eees/forms.py", "copies": "1", "size": "3751", "license": "mit", "hash": 3602556260971678700, "line_mean": 44.1927710843, "line_max": 182, "alpha_frac": 0.658491069, "autogenerated": false, "ratio": 3.4603321033210332, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from .models import * from django.forms import inlineformset_factory, TextInput, formset_factory import datetime class TitleForm(forms.ModelForm): class Meta: model = Title fields = '__all__' class EditionForm(forms.ModelForm): class Meta: mo...
{ "repo_name": "mujinyun2009/shakespeare-census", "path": "census/forms.py", "copies": "1", "size": "2408", "license": "mit", "hash": -5295188203778755000, "line_mean": 27.3294117647, "line_max": 99, "alpha_frac": 0.698089701, "autogenerated": false, "ratio": 3.4253200568990043, "config_test": f...
from django import forms from django.contrib.auth.models import User from models import * class PartSubmissionForm(forms.ModelForm): class Meta: model = Part fields = [ 'item', 'type', 'description', 'mfgname', 'mfgpartno', 'su...
{ "repo_name": "avistel/cyckotron", "path": "partdb/forms.py", "copies": "1", "size": "1574", "license": "bsd-3-clause", "hash": -3766676637317236000, "line_mean": 28.1481481481, "line_max": 86, "alpha_frac": 0.5743329098, "autogenerated": false, "ratio": 4.2771739130434785, "config_test": false...
from django import forms from django.contrib.auth.models import User from .models import Page, Category, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) li...
{ "repo_name": "jrwiegand/tango-with-django-project", "path": "tango_with_django/rango/forms.py", "copies": "1", "size": "1685", "license": "mit", "hash": -2210158560566913500, "line_mean": 34.1041666667, "line_max": 98, "alpha_frac": 0.6706231454, "autogenerated": false, "ratio": 4.11980440097799...
from django import forms from django.contrib.auth.models import User from .models import Profile, ChatMessage from django.core.validators import RegexValidator import bleach import markdown from django.utils.html import escape import re # TODO: A supprimer # class LoginForm(forms.Form): # username = forms.CharFiel...
{ "repo_name": "delitamakanda/BukkakeGramNew", "path": "registration/forms.py", "copies": "2", "size": "2257", "license": "mit", "hash": 9192483392803849000, "line_mean": 29.0933333333, "line_max": 93, "alpha_frac": 0.5870624723, "autogenerated": false, "ratio": 3.7616666666666667, "config_test"...
from django import forms from django.contrib.auth.models import User from .models import Profile from django.forms import ModelForm class LoginForm(forms.Form): username = forms.CharField(widget=forms.TextInput()) password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelFor...
{ "repo_name": "TrapKingg/Tescha-books", "path": "users/forms.py", "copies": "1", "size": "1987", "license": "mit", "hash": -7802506883455017000, "line_mean": 39.5510204082, "line_max": 108, "alpha_frac": 0.6718671364, "autogenerated": false, "ratio": 3.85077519379845, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User from .models import Profile class ConfirmForm(forms.ModelForm): class Meta: model = Profile fields = ('user','conferma_pranzo', 'conferma_sera','conferma_inviata',) def __init__(self, *args, **kwargs): super(ConfirmForm, self).__init__(*ar...
{ "repo_name": "seciadev/django_weddingsite", "path": "savethedate/forms.py", "copies": "1", "size": "1230", "license": "mpl-2.0", "hash": -6472903451577185000, "line_mean": 38.7096774194, "line_max": 142, "alpha_frac": 0.706504065, "autogenerated": false, "ratio": 3.1139240506329116, "config_te...
from django import forms from django.contrib.auth.models import User from .models import Profile class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) """ Django also provides a UserCreationForm form that you can use, which resides in django.contrib.a...
{ "repo_name": "hiteshgarg14/Django-Social-Website", "path": "bookmarks/account/forms.py", "copies": "1", "size": "1398", "license": "mit", "hash": 5789429440063634000, "line_mean": 33.95, "line_max": 84, "alpha_frac": 0.6888412017, "autogenerated": false, "ratio": 4.22356495468278, "config_test...
from django import forms from django.contrib.auth.models import User from .models import Profile class UserForm(forms.ModelForm): first_name = forms.CharField(required=False, widget=forms.TextInput(attrs={'class':'form-control'})) last_name = forms.CharField(required=False, widget=forms.TextInput(attrs={'cla...
{ "repo_name": "SNDjango/server", "path": "snd/image_board/forms.py", "copies": "1", "size": "1806", "license": "mit", "hash": 4865426384748674000, "line_mean": 53.7272727273, "line_max": 175, "alpha_frac": 0.7165005537, "autogenerated": false, "ratio": 3.9260869565217393, "config_test": false, ...
from django import forms; from django.contrib.auth.models import User; from .models import Question, Answer; from django.forms.widgets import EmailInput, PasswordInput; class SignUpForm(forms.Form): username = forms.CharField(max_length=30); email = forms.CharField( widget=EmailInput,max_length=100); password = for...
{ "repo_name": "etanever/nginx-django-bootstrap", "path": "ask/qa/forms.py", "copies": "1", "size": "1365", "license": "mit", "hash": 8987835810122140000, "line_mean": 32.2926829268, "line_max": 103, "alpha_frac": 0.7311355311, "autogenerated": false, "ratio": 3.289156626506024, "config_test": f...
from django import forms from django.contrib.auth.models import User from models import Template from django.utils.timezone import utc import datetime, logging logger = logging.getLogger("simcon") #global logger handler class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widg...
{ "repo_name": "djorda9/Simulated-Conversations", "path": "vagrant/simcon/forms.py", "copies": "1", "size": "3817", "license": "mit", "hash": -1566407137047172900, "line_mean": 52.0138888889, "line_max": 140, "alpha_frac": 0.6261461881, "autogenerated": false, "ratio": 4.480046948356808, "config...
from django import forms #from django.contrib.auth.models import User from .models import User class UserForm(forms.ModelForm): class Meta: model = User # Add CSS class 'form-control' to all fields to allow styling widgets = { 'username': forms.TextInput(attrs={'class': 'form-c...
{ "repo_name": "amacnair/team-toolkit", "path": "clubbr/users/forms.py", "copies": "1", "size": "1358", "license": "mit", "hash": -5125288043039294000, "line_mean": 29.8636363636, "line_max": 80, "alpha_frac": 0.5625920471, "autogenerated": false, "ratio": 4.28391167192429, "config_test": false,...
from django import forms from django.contrib.auth.models import User from .models import UserProfile class SignupForm(forms.ModelForm): username = forms.CharField(max_length=10, help_text = 'Required, lest than 10 characters',widget=forms.TextInput(attrs={ 'class': 'form-control', 'placeholder': "Y...
{ "repo_name": "ClovisDj/Playconnect4", "path": "userprofile/forms.py", "copies": "1", "size": "1900", "license": "mit", "hash": -5732991796047559000, "line_mean": 33.5454545455, "line_max": 124, "alpha_frac": 0.6252631579, "autogenerated": false, "ratio": 4.016913319238901, "config_test": false...
from django import forms from django.contrib.auth.models import User from models import UserProfile, OCRObject from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, HttpResponseBadRequest from django.contrib.auth.decorators import login_required import fo...
{ "repo_name": "bbuubbi/Django-OCR", "path": "OCRSite/OCR/views.py", "copies": "1", "size": "5004", "license": "apache-2.0", "hash": 7516680378124667000, "line_mean": 34.2394366197, "line_max": 204, "alpha_frac": 0.6864508393, "autogenerated": false, "ratio": 3.0530811470408787, "config_test": f...
from django import forms from django.contrib.auth.models import User from .models import UserProfile, Point from django.contrib.auth.forms import UserCreationForm, UserChangeForm from multiselectfield import MultiSelectField from fluent_comments.forms import CompactLabelsCommentForm class RegistrationForm(UserCreation...
{ "repo_name": "steventimberman/masterDebater", "path": "debate/forms.py", "copies": "1", "size": "2117", "license": "mit", "hash": -5180966972302223000, "line_mean": 25.1358024691, "line_max": 84, "alpha_frac": 0.5965989608, "autogenerated": false, "ratio": 4.251004016064257, "config_test": fal...
from django import forms from django.contrib.auth.models import User from .models import UserProfile, Question, Answer import re class QuestionForm(forms.ModelForm): title = forms.CharField(max_length=130,help_text="Please Provide Appropriate Title",required=True) text = forms.CharField(widget=forms.Textarea) ...
{ "repo_name": "InternsAtMBM/YetAnotherQnA", "path": "YAQnA/forum/forms.py", "copies": "1", "size": "3002", "license": "mit", "hash": -8149557928434564000, "line_mean": 37.4871794872, "line_max": 143, "alpha_frac": 0.6235842771, "autogenerated": false, "ratio": 4.252124645892351, "config_test": ...
from django import forms from django.contrib.auth.models import User from .models import UserProfile, UserInfo class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class RegistrationForm(forms.ModelForm): password = forms.CharField(label='passwo...
{ "repo_name": "glon/django_test", "path": "account/forms.py", "copies": "1", "size": "1114", "license": "apache-2.0", "hash": 1826851633491540000, "line_mean": 26.1707317073, "line_max": 86, "alpha_frac": 0.6642728905, "autogenerated": false, "ratio": 4.21969696969697, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from objects.models import * from django.views.generic.edit import UpdateView class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) class Meta: model = User fields = ['first_name', 'last_nam...
{ "repo_name": "amithmkini/crm-sample", "path": "web/forms.py", "copies": "2", "size": "1629", "license": "mit", "hash": 1759102330606410800, "line_mean": 24.453125, "line_max": 83, "alpha_frac": 0.6457949662, "autogenerated": false, "ratio": 3.702272727272727, "config_test": false, "has_no_ke...
from django import forms from django.contrib.auth.models import User from openflow.optin_manager.users.models import UserProfile from openflow.optin_manager.xmlrpc_server.models import FVServerProxy from expedient.common.xmlrpc_serverproxy.forms import PasswordXMLRPCServerProxyFormHelperAddin import logging logger = l...
{ "repo_name": "dana-i2cat/felix", "path": "optin_manager/src/python/openflow/optin_manager/controls/forms.py", "copies": "4", "size": "2684", "license": "apache-2.0", "hash": 5996103134115434000, "line_mean": 40.953125, "line_max": 121, "alpha_frac": 0.6438152012, "autogenerated": false, "ratio":...
from django import forms from django.contrib.auth.models import User from rango.models import Category, Page, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter a category name") views = forms.IntegerField(widget=forms.HiddenInput(), initial = 0) likes...
{ "repo_name": "dnestoff/Tango-With-Django", "path": "rango/forms.py", "copies": "1", "size": "1290", "license": "mit", "hash": -7654894042052808000, "line_mean": 34.8333333333, "line_max": 91, "alpha_frac": 0.723255814, "autogenerated": false, "ratio": 4.018691588785047, "config_test": false, ...
from django import forms from django.contrib.auth.models import User from rango.models import Category, Page, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) ...
{ "repo_name": "apenchev/tangowithdjango", "path": "rango/forms.py", "copies": "1", "size": "2178", "license": "mit", "hash": 7676343011761237000, "line_mean": 37.8928571429, "line_max": 92, "alpha_frac": 0.6574839302, "autogenerated": false, "ratio": 4.28740157480315, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User from rango.models import Category, Page, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text='Please enter the category name') views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) ...
{ "repo_name": "JMJAC/Rango", "path": "tango_project/rango/forms.py", "copies": "1", "size": "2307", "license": "apache-2.0", "hash": 2669296656471246000, "line_mean": 33.4328358209, "line_max": 91, "alpha_frac": 0.6562635457, "autogenerated": false, "ratio": 4.149280575539568, "config_test": fa...
from django import forms from django.contrib.auth.models import User from rango.models import Page,Category,UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128,help_text="Please enter the category name.") views = forms.IntegerField(widget=forms.HiddenInput(),initial=0) likes = form...
{ "repo_name": "wangjie1492/tango_with_django_project", "path": "rango/forms.py", "copies": "1", "size": "1298", "license": "apache-2.0", "hash": 2175639108812717800, "line_mean": 31.475, "line_max": 88, "alpha_frac": 0.7349768875, "autogenerated": false, "ratio": 3.5081081081081082, "config_tes...
from django import forms from django.contrib.auth.models import User from rango.models import Page, Category, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(Category.max_length_defined, help_text="Please enter the category name.") views = forms.IntegerField(w...
{ "repo_name": "jbyrnes10/CIS-627-Web-Database-Services-Development", "path": "tango_with_django_project/rango/forms.py", "copies": "1", "size": "1541", "license": "unlicense", "hash": 6786939131060122000, "line_mean": 31.8085106383, "line_max": 76, "alpha_frac": 0.6268656716, "autogenerated": false...
from django import forms from django.contrib.auth.models import User from rango.models import Page, Category, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) ...
{ "repo_name": "richabreu/CIS-627-Web-Database-Services-Development", "path": "tango_with_django_project/rango/forms.py", "copies": "1", "size": "2234", "license": "unlicense", "hash": -4632749203301973000, "line_mean": 38.2105263158, "line_max": 95, "alpha_frac": 0.6812891674, "autogenerated": fals...
from django import forms from django.contrib.auth.models import User from rango.models import Page, Category, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length = 128, help_text = "Please enter Category Name.") views = forms.IntegerField(widget = form...
{ "repo_name": "james-w-spears/rango", "path": "tango_with_django_project/rango/forms.py", "copies": "1", "size": "2039", "license": "bsd-3-clause", "hash": 5649251812874700000, "line_mean": 30.859375, "line_max": 75, "alpha_frac": 0.5625306523, "autogenerated": false, "ratio": 4.786384976525822, ...
from django import forms from django.contrib.auth.models import User from rango.models import Page, Category, UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.IntegerField(widget=forms....
{ "repo_name": "mdesson/rango", "path": "tango_with_django_project/rango/forms.py", "copies": "1", "size": "2275", "license": "mit", "hash": -2794918724891120600, "line_mean": 34.546875, "line_max": 80, "alpha_frac": 0.6303296703, "autogenerated": false, "ratio": 4.434697855750487, "config_test"...
from django import forms from django.contrib.auth.models import User from recommender.models import UserProfile, CompleteEnrollmentData """ Import all majors at MIT. Returns a list of tuples of the majors """ def get_mit_majors(): majors = [] with open('recommender/static/recommender/majors.txt', 'r') as f: conten...
{ "repo_name": "lchu94/classfinder", "path": "recommender/forms.py", "copies": "1", "size": "1753", "license": "mit", "hash": 2400396212308225000, "line_mean": 28.2166666667, "line_max": 87, "alpha_frac": 0.7199087279, "autogenerated": false, "ratio": 3.075438596491228, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from registration.forms import RegistrationForm from training.models import Feedback, IS_A_CHOICES attrs_dict = {'class': 'required'} class ProfileForm(forms.Form): phone = forms.CharField(required=False, max_length=24) organization = for...
{ "repo_name": "sunlightlabs/sunlightacademy", "path": "training/forms.py", "copies": "1", "size": "3031", "license": "bsd-3-clause", "hash": 2106427640820270000, "line_mean": 32.3076923077, "line_max": 97, "alpha_frac": 0.6717255031, "autogenerated": false, "ratio": 4.18646408839779, "config_te...
from django import forms from django.contrib.auth.models import User from registration.forms import RegistrationForm def save_user(form_instance): """ Create a new **active** user from form data. This method is intended to replace the ``save`` of ``django-registration``s ``RegistrationForm``. Require...
{ "repo_name": "muhuk/django-inviting", "path": "invitation/forms.py", "copies": "1", "size": "1605", "license": "bsd-3-clause", "hash": 7314342083986221000, "line_mean": 31.7551020408, "line_max": 75, "alpha_frac": 0.6679127726, "autogenerated": false, "ratio": 4.125964010282776, "config_test":...
from django import forms from django.contrib.auth.models import User from registration.forms import RegistrationFormUniqueEmail class BootstrapForm(forms.Form): def __init__(self, *args, **kwargs): super(BootstrapForm, self).__init__(*args, **kwargs) for name, field in self.fields.items(): ...
{ "repo_name": "festlv/latvijas-pasta-toolis", "path": "lp_registration/forms.py", "copies": "1", "size": "1211", "license": "mit", "hash": -1737569682943747800, "line_mean": 29.275, "line_max": 72, "alpha_frac": 0.5879438481, "autogenerated": false, "ratio": 4.41970802919708, "config_test": fal...
from django import forms from django.contrib.auth.models import User from reserva.models import Libro, Reserva from functools import partial import datetime from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _ DateInput = partial(forms.DateInput, {'class': 'datepicker'}...
{ "repo_name": "fmoreyra/ReservaLibrosISOO", "path": "reserva/forms.py", "copies": "1", "size": "1921", "license": "mit", "hash": 3375303895198566000, "line_mean": 42.5681818182, "line_max": 112, "alpha_frac": 0.6864893062, "autogenerated": false, "ratio": 3.5303867403314917, "config_test": fals...
from django import forms from django.contrib.auth.models import User from rest_framework.response import Response from rest_framework.permissions import IsAdminUser from rest_framework import serializers, generics, status from .models import CandidateRating class RatingSerializer(serializers.ModelSerializer): c...
{ "repo_name": "VRSandeep/icrs", "path": "interview/views.py", "copies": "1", "size": "3503", "license": "mit", "hash": 4345019026477665300, "line_mean": 33.0097087379, "line_max": 115, "alpha_frac": 0.6463031687, "autogenerated": false, "ratio": 4.121176470588235, "config_test": false, "has_n...
from django import forms from django.contrib.auth.models import User from snowpenguin.django.recaptcha2.fields import ReCaptchaField from snowpenguin.django.recaptcha2.widgets import ReCaptchaWidget from uchicagohvz.users.models import * from uchicagohvz.game.models import Game, Player class UserRegistrationForm(for...
{ "repo_name": "kz26/uchicago-hvz", "path": "uchicagohvz/users/forms.py", "copies": "1", "size": "4328", "license": "mit", "hash": -2640001356152084500, "line_mean": 47.1, "line_max": 140, "alpha_frac": 0.6527264325, "autogenerated": false, "ratio": 3.9742883379247016, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User from studycollab.models import studygroup, course class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ('username', 'email', 'password') class infoByClassForm(forms.Form):...
{ "repo_name": "anthonyuitz/uvastudycollab", "path": "uvastudycollab/studycollab/forms.py", "copies": "1", "size": "1073", "license": "mit", "hash": 5383008815268012000, "line_mean": 36.0344827586, "line_max": 105, "alpha_frac": 0.7520969245, "autogenerated": false, "ratio": 3.541254125412541, "...
from django import forms from django.contrib.auth.models import User from suave.models import Client, Tailor, Order, Fabric, Style, SizeTable # from django.utils.safestring import * from django.utils.html import * """ @Todo Code for password verifier in comments """ class UserForm(forms.ModelForm): username = form...
{ "repo_name": "avoajaugochukwu/suaveproject", "path": "suave/forms.py", "copies": "1", "size": "4559", "license": "mit", "hash": -8891254356635676000, "line_mean": 40.0720720721, "line_max": 203, "alpha_frac": 0.6843606054, "autogenerated": false, "ratio": 3.2060478199718707, "config_test": fal...
from django import forms # from django.contrib.auth.models import User from suave.models import Client, Tailor, Order, Fabric, Style, SizeTable from django.utils.html import * class StyleForm(forms.ModelForm): SEX_CHOICE = ( ('F', 'Female'), ('M', 'Male'), ) name = forms.CharField(max_length=32, help_text="N...
{ "repo_name": "avoajaugochukwu/suaveproject", "path": "staff/forms.py", "copies": "1", "size": "1249", "license": "mit", "hash": 5165273892113778000, "line_mean": 58.5238095238, "line_max": 202, "alpha_frac": 0.7069655725, "autogenerated": false, "ratio": 3.2025641025641027, "config_test": fals...
from django import forms from django.contrib.auth.models import User from tournament.models import CompetitiveGroups, Brackets class CompetitiveGroupForm(forms.ModelForm): name = forms.CharField(max_length=255, widget=forms.TextInput(attrs=({'class': 'form-control', }))) password = forms.CharField(required=Fa...
{ "repo_name": "katembu/world-cup", "path": "world_cup/tournament/forms.py", "copies": "1", "size": "1064", "license": "mit", "hash": -3454279729468808700, "line_mean": 43.3333333333, "line_max": 107, "alpha_frac": 0.6513157895, "autogenerated": false, "ratio": 4.03030303030303, "config_test": f...
from django import forms from django.contrib.auth.models import User from UserManagement.models import Attendent from django.core.exceptions import ValidationError # --- Entitiy Management Forms ------ class UserModelForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) confirm_passwo...
{ "repo_name": "SkillSmart/ConferenceManagementSystem", "path": "Authentication/forms.py", "copies": "1", "size": "1565", "license": "mit", "hash": -83009115038651650, "line_mean": 37.1707317073, "line_max": 92, "alpha_frac": 0.7015974441, "autogenerated": false, "ratio": 4.264305177111717, "con...
from django import forms from django.contrib.auth.models import User from worldcup.predictions.models import PredictionStage2, KO_WIN_DRAW_CHOICES from worldcup.matches.models import Match from worldcup.common.msg_util import * from worldcup.teams.models import Team from worldcup.predictions.team_choice_chooser import...
{ "repo_name": "raprasad/worldcup", "path": "worldcup/worldcup/predictions/forms2.py", "copies": "1", "size": "4458", "license": "mit", "hash": 1320778917077518000, "line_mean": 33.2923076923, "line_max": 109, "alpha_frac": 0.576940332, "autogenerated": false, "ratio": 3.8900523560209423, "confi...
from django import forms from django.contrib.auth.models import User from worldcup.predictions.models import Prediction, WIN_DRAW_CHOICES, DRAW_VAL, TEAM_1_WINS_VAL, TEAM_2_WINS_VAL from worldcup.matches.models import Match class PredictionForm(forms.ModelForm): user = forms.IntegerField(widget=forms.HiddenInput(...
{ "repo_name": "raprasad/worldcup", "path": "worldcup/worldcup/predictions/forms.py", "copies": "1", "size": "2654", "license": "mit", "hash": -4821728322599838000, "line_mean": 37.4782608696, "line_max": 112, "alpha_frac": 0.5972117558, "autogenerated": false, "ratio": 4.039573820395738, "confi...
from django import forms from django.contrib.auth.models import User import datetime from library.models import Book, Checkout, Review class CheckoutForm(forms.ModelForm): user = forms.ModelChoiceField(widget=forms.HiddenInput(), queryset=User.objects.all()) book = forms.ModelChoiceField(widget=forms.HiddenIn...
{ "repo_name": "issackelly/cohpy2011", "path": "cohpy_project/apps/library/forms.py", "copies": "1", "size": "1437", "license": "bsd-3-clause", "hash": -16337981730659190, "line_mean": 36.8421052632, "line_max": 90, "alpha_frac": 0.6346555324, "autogenerated": false, "ratio": 4.082386363636363, ...
from django import forms from django.contrib.auth.models import User import re from django.db import models from django.core import validators from django.utils.translation import ugettext_lazy as _ class IHealthUser(User): tryton_username = models.CharField(_('tryton_username'), max_length=30, help_text=...
{ "repo_name": "o5k/bootcamp-ihealth", "path": "bootcamp/core/forms.py", "copies": "1", "size": "3637", "license": "mit", "hash": 5602729847608352000, "line_mean": 38.978021978, "line_max": 125, "alpha_frac": 0.6337640913, "autogenerated": false, "ratio": 3.983570646221249, "config_test": false,...
from django import forms from django.contrib.auth.models import User import re from django.utils.encoding import force_unicode class FormProcessingError(Exception): pass class FormFunctions: def field_errors_dict(self): """Return dictionary of fields and array of field errors in text format.""" ...
{ "repo_name": "originalpete/reyooz", "path": "maps/forms.py", "copies": "1", "size": "3527", "license": "bsd-3-clause", "hash": 5925108371094404000, "line_mean": 36.1263157895, "line_max": 108, "alpha_frac": 0.6660051035, "autogenerated": false, "ratio": 3.9451901565995526, "config_test": false...
from django import forms from django.contrib.auth.models import User class ContactForm(forms.Form): subject = forms.CharField(max_length=120) message = forms.CharField(widget=forms.Textarea()) class SignUpForm(forms.Form): username = forms.CharField(max_length=120) email = forms.EmailField(max_length=...
{ "repo_name": "speranskydanil/stock", "path": "stock/forms.py", "copies": "1", "size": "1206", "license": "mit", "hash": 1211661011147524600, "line_mean": 39.2, "line_max": 89, "alpha_frac": 0.688225539, "autogenerated": false, "ratio": 4.173010380622838, "config_test": false, "has_no_keyword...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): error_css_class = 'error' username = forms.RegexField( required=True, regex=r"^[a-z][a-z0-9-_]+[a-z0-9]$", label="Username", min_length=3, max_length=30, error_messages= { 'required': "Username is require...
{ "repo_name": "MitMaro/The-Blame-Game", "path": "accounts/forms.py", "copies": "1", "size": "3577", "license": "mit", "hash": -6896700702961967000, "line_mean": 24.013986014, "line_max": 78, "alpha_frac": 0.693877551, "autogenerated": false, "ratio": 3.324349442379182, "config_test": false, "...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField(label='Username', max_length=100, widget=forms.TextInput(attrs={ 'placeholder': 'Enter unique username', ...
{ "repo_name": "andela/codango", "path": "codango/account/forms.py", "copies": "1", "size": "4171", "license": "mit", "hash": 7136143529696146000, "line_mean": 36.2410714286, "line_max": 86, "alpha_frac": 0.5279309518, "autogenerated": false, "ratio": 5.031363088057901, "config_test": false, "...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class RegisterForm(forms.ModelForm): email = forms.EmailField(label='Email') password = forms.CharField(label='Password...
{ "repo_name": "zhexiao/kweets", "path": "account/forms.py", "copies": "1", "size": "1087", "license": "apache-2.0", "hash": -1658036894653937200, "line_mean": 23.7045454545, "line_max": 84, "alpha_frac": 0.6402943882, "autogenerated": false, "ratio": 4.41869918699187, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User class PasswordForm(forms.Form): password = forms.CharField(max_length=30) vpassword = forms.CharField(max_length=30) def passwordchecker(self, password): #string = cd.get('password') uval = 0 dval = 0 for ...
{ "repo_name": "porowns/Boards", "path": "Boards/app/forms.py", "copies": "1", "size": "1620", "license": "bsd-3-clause", "hash": -1597535341945421300, "line_mean": 32.0612244898, "line_max": 91, "alpha_frac": 0.562345679, "autogenerated": false, "ratio": 4.10126582278481, "config_test": false, ...
from django import forms from django.contrib.auth.models import User class POSTForm(forms.Form): username = forms.CharField( label='Username', max_length=30, help_text='Enter a unique name for your login', widget=forms.TextInput(attrs={ 'required': 'required', 'title': 'Enter a unique name for your...
{ "repo_name": "jredd23/March_Madness_Style_Bracket", "path": "march_madness/forms.py", "copies": "1", "size": "1948", "license": "mit", "hash": -1220422605136547000, "line_mean": 27.6470588235, "line_max": 99, "alpha_frac": 0.5790554415, "autogenerated": false, "ratio": 3.7606177606177607, "con...
from django import forms from django.contrib.auth.models import User class ProfileForm(forms.ModelForm): first_name = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}), max_length=30, required=False) last_name = forms.CharField(widget=forms.TextInput(attrs={'class':'f...
{ "repo_name": "shwinpiocess/bootcamp", "path": "bootcamp/core/forms.py", "copies": "14", "size": "2733", "license": "mit", "hash": -3818404524836816000, "line_mean": 38.6231884058, "line_max": 99, "alpha_frac": 0.6275155507, "autogenerated": false, "ratio": 3.978165938864629, "config_test": fal...
from django import forms from django.contrib.auth.models import User class ProfileForm(forms.ModelForm): first_name = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}), max_length=30, required=True) email = forms.CharField(widget=forms.TextInput(attrs={'class':'form-contro...
{ "repo_name": "econti/quora-clone", "path": "quora/core/forms.py", "copies": "1", "size": "2114", "license": "mit", "hash": 4224748317889542700, "line_mean": 36.75, "line_max": 98, "alpha_frac": 0.6324503311, "autogenerated": false, "ratio": 3.996219281663516, "config_test": false, "has_no_ke...
from django import forms from django.contrib.auth.models import User class RegisterForm(forms.Form): username = forms.CharField() firstname = forms.CharField() lastname = forms.CharField() email = forms.EmailField() password = forms.CharField() def clean_username(self): # Проверим уникальность юзернейм...
{ "repo_name": "anodos-ru/project", "path": "forms.py", "copies": "2", "size": "1198", "license": "mit", "hash": -450184891258791700, "line_mean": 23.9545454545, "line_max": 70, "alpha_frac": 0.7003642987, "autogenerated": false, "ratio": 2.851948051948052, "config_test": false, "has_no_keywor...
from django import forms from django.contrib.auth.models import User class RegistroUserForm(forms.Form): username = forms.CharField(min_length=5, widget=forms.TextInput(attrs={'class': 'form-control'})) email = forms.EmailField(widget=forms.TextInput(attrs={'class': 'form-co...
{ "repo_name": "vimeworks/ImpaQto", "path": "accounts/forms.py", "copies": "1", "size": "2189", "license": "mit", "hash": -5323162816917033000, "line_mean": 45.5319148936, "line_max": 119, "alpha_frac": 0.6598079561, "autogenerated": false, "ratio": 4.189655172413793, "config_test": false, "ha...
from django import forms from django.contrib.auth.models import User # form for user registration class RegistrationForm(forms.ModelForm): username = forms.CharField(label='User Name') email = forms.EmailField(label='Email Address') password = forms.CharField(label='Password', widget=forms.PasswordInput(render_v...
{ "repo_name": "Cabal-Syndicate/WebDev", "path": "src/users/forms.py", "copies": "1", "size": "1358", "license": "cc0-1.0", "hash": 5736486634284835000, "line_mean": 31.3571428571, "line_max": 104, "alpha_frac": 0.7135493373, "autogenerated": false, "ratio": 4.28391167192429, "config_test": fals...
from django import forms from django.contrib.auth.models import User #from account.models import Account from player.models import Player class EmailForm(forms.Form): email = forms.EmailField() def clean_email(self): if 'email' in self.cleaned_data: email = self.cleaned_data['email'] ...
{ "repo_name": "AfricaChess/lichesshub", "path": "core/forms.py", "copies": "1", "size": "2551", "license": "mit", "hash": -4687222605005619000, "line_mean": 33.0133333333, "line_max": 74, "alpha_frac": 0.5785966288, "autogenerated": false, "ratio": 4.475438596491228, "config_test": false, "ha...
from django import forms from django.contrib.auth.models import User from apps.jobs.models import Job, Tag class LoginForm(forms.ModelForm): username = forms.CharField(widget = forms.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Username' })) password = forms.CharField(widget = forms.Password...
{ "repo_name": "parrainc/jobs-portal-iso700", "path": "apps/home/forms.py", "copies": "1", "size": "1247", "license": "unlicense", "hash": -9000456057305255000, "line_mean": 23.92, "line_max": 64, "alpha_frac": 0.6693418941, "autogenerated": false, "ratio": 3.2532637075718016, "config_test": fal...
from django import forms from django.contrib.auth.models import User from ask.models import Profile, Question, Answer class Login(forms.Form): username = forms.CharField( label='Username', max_length=50, widget=forms.TextInput( attrs={ 'class': 'form-control', ...
{ "repo_name": "NikitaStupin/tp-web", "path": "ask_stupin/ask/forms.py", "copies": "1", "size": "3223", "license": "mit", "hash": -2525085477171254000, "line_mean": 24.3779527559, "line_max": 73, "alpha_frac": 0.4312752094, "autogenerated": false, "ratio": 4.928134556574924, "config_test": false...
from django import forms from django.contrib.auth.models import User from basicviz.constants import AVAILABLE_OPTIONS from basicviz.models import SystemOptions class Mass2MotifMetadataForm(forms.Form): metadata = forms.CharField(max_length=256, required=False, label='Annotation', widget=forms.TextInput(attrs={'s...
{ "repo_name": "sdrogers/ms2ldaviz", "path": "ms2ldaviz/massbank/forms.py", "copies": "1", "size": "4358", "license": "mit", "hash": -2670896431817792500, "line_mean": 61.2571428571, "line_max": 163, "alpha_frac": 0.6239100505, "autogenerated": false, "ratio": 3.6499162479061975, "config_test": ...
from django import forms from django.contrib.auth.models import User from booking.models import Booking, Resident class BookingForm(forms.ModelForm): class Meta: model = Booking fields = ['name', 'phone', 'visitors', 'mode'] class ResidentForm(forms.ModelForm): class Meta: model =...
{ "repo_name": "boyombo/django-stations", "path": "stations/booking/forms.py", "copies": "1", "size": "1448", "license": "mit", "hash": 8036519433629914000, "line_mean": 29.8085106383, "line_max": 76, "alpha_frac": 0.6498618785, "autogenerated": false, "ratio": 4.011080332409972, "config_test": ...
from django import forms from django.contrib.auth.models import User from captcha.fields import ReCaptchaField from wagtail.core import blocks from wagtailstreamforms.fields import BaseField, register @register('recaptcha') class ReCaptchaField(BaseField): field_class = ReCaptchaField icon = 'success' la...
{ "repo_name": "AccentDesign/wagtailstreamforms", "path": "example/wagtailstreamforms_fields.py", "copies": "1", "size": "2443", "license": "mit", "hash": -8504518344078453000, "line_mean": 29.9240506329, "line_max": 76, "alpha_frac": 0.6123618502, "autogenerated": false, "ratio": 4.10588235294117...
from django import forms from django.contrib.auth.models import User from core.cooggerapp.models import Content, Issue, OtherAddressesOfUsers, ReportModel, UTopic class UsernameForm(forms.ModelForm): class Meta: model = User fields = ["username"] class UTopicForm(forms.ModelForm): class Met...
{ "repo_name": "hakancelik96/coogger", "path": "core/cooggerapp/forms.py", "copies": "1", "size": "1243", "license": "mit", "hash": 5155011098539335000, "line_mean": 22.0185185185, "line_max": 93, "alpha_frac": 0.6460176991, "autogenerated": false, "ratio": 4.102310231023102, "config_test": fals...
from django import forms from django.contrib.auth.models import User from courses.models import ( Course, School, Section, CourseItem, StudentItem, AssignmentType, Student, BetaUser) class BetaUserForm(forms.ModelForm): """docstring for BetaUserForm""" class Meta: model = BetaUser fi...
{ "repo_name": "agundy/Whiteboard", "path": "trackSchool/courses/forms.py", "copies": "1", "size": "3221", "license": "mit", "hash": 6384748885955223000, "line_mean": 24.9758064516, "line_max": 78, "alpha_frac": 0.6131636138, "autogenerated": false, "ratio": 4.077215189873418, "config_test": fal...
from django import forms from django.contrib.auth.models import User from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Field, Fieldset, ButtonHolder, Submit, Div, Button, HTML, Hidden from crispy_forms.bootstrap import FormActions import sys class UserForm(forms.ModelForm): clas...
{ "repo_name": "jacyn/burst", "path": "webapp/userman/forms.py", "copies": "1", "size": "1565", "license": "mit", "hash": -4143635113021518300, "line_mean": 33.0217391304, "line_max": 133, "alpha_frac": 0.5840255591, "autogenerated": false, "ratio": 3.82640586797066, "config_test": false, "has...
from django import forms from django.contrib.auth.models import User from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Submit, Field from crispy_forms.bootstrap import FormActions class UserCreateForm(forms.Form): email = forms.EmailField(max_length=120) password = forms.Char...
{ "repo_name": "zapier/stripeboard", "path": "stripeboard/board/forms.py", "copies": "1", "size": "1088", "license": "mit", "hash": 359728634528269800, "line_mean": 33, "line_max": 83, "alpha_frac": 0.6764705882, "autogenerated": false, "ratio": 4.029629629629629, "config_test": false, "has_no...
from django import forms from django.contrib.auth.models import User from datetime import datetime import hashlib import random class UserForm(forms.ModelForm): """ A form that creates a user, with no privileges, from the given username and password. """ error_messages = { 'duplicate_user...
{ "repo_name": "Bryconc/JA-Social", "path": "ja_social/forms.py", "copies": "1", "size": "3436", "license": "mit", "hash": -8304889006583254000, "line_mean": 41.4197530864, "line_max": 146, "alpha_frac": 0.6233993015, "autogenerated": false, "ratio": 4.169902912621359, "config_test": false, "h...
from django import forms from django.contrib.auth.models import User from django.forms.models import ModelForm from spa.models.userprofile import UserProfile class UserForm(ModelForm): avatar_image_select = forms.ChoiceField( choices=( ('gravatar', "Use gravatar image."), ('social'...
{ "repo_name": "fergalmoran/dss", "path": "spa/forms.py", "copies": "1", "size": "2139", "license": "bsd-2-clause", "hash": 1367018124684847000, "line_mean": 29.5571428571, "line_max": 80, "alpha_frac": 0.5563347359, "autogenerated": false, "ratio": 4.244047619047619, "config_test": false, "ha...
from django import forms from django.contrib.auth.models import User from djpcms.utils import form_kwargs from djpcms.utils.html import htmlwrap, box from djpcms.utils.uniforms import FormLayout, Html, Fieldset, inlineLabels, ModelFormInlineHelper from djpcms.forms import ModelMultipleChoiceField from djpcms.views.app...
{ "repo_name": "lsbardel/flow", "path": "examples/jfsite/forms.py", "copies": "1", "size": "3684", "license": "bsd-3-clause", "hash": -717544787542151600, "line_mean": 49.4657534247, "line_max": 113, "alpha_frac": 0.532844734, "autogenerated": false, "ratio": 5.046575342465753, "config_test": fa...
from django import forms from django.contrib.auth.models import User from domain import Permissions from domain.forms import RegistrationRequestForm # Reuse to capture new user info ######################################################################################################## # # From http://www.peterbe.co...
{ "repo_name": "commtrack/commtrack-core", "path": "apps/domain/user_registration_backend/forms.py", "copies": "3", "size": "2944", "license": "bsd-3-clause", "hash": -6008740164829066000, "line_mean": 47.2786885246, "line_max": 117, "alpha_frac": 0.5472146739, "autogenerated": false, "ratio": 4.7...
from django import forms from django.contrib.auth.models import User from friends import models as friends from gmecol import models class SearchGamesForm(forms.Form): ''' Search the Giant Bomb Games Database for Games ''' name = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control...
{ "repo_name": "f4nt/gmecol", "path": "gmecol/forms.py", "copies": "1", "size": "2398", "license": "bsd-2-clause", "hash": -5636619511860902000, "line_mean": 28.243902439, "line_max": 84, "alpha_frac": 0.6230191827, "autogenerated": false, "ratio": 3.867741935483871, "config_test": false, "has...
from django import forms from django.contrib.auth.models import User from .models import Event from datetime import date class EventForm(forms.ModelForm): class Meta: model = Event fields = ['movie_title', 'theatre', 'show_time', 'date', 'members', 'owner'] class UserForm(forms.ModelForm): ...
{ "repo_name": "arnavd96/Cinemiezer", "path": "cinemizer/forms.py", "copies": "1", "size": "1063", "license": "mit", "hash": 5678744052370582000, "line_mean": 31.2121212121, "line_max": 96, "alpha_frac": 0.6876763876, "autogenerated": false, "ratio": 3.9516728624535316, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from .models import ( Call, Guideline, Notification, Review, Submission, ) class CallForm(forms.ModelForm): class Meta: model = Call fields = [ 'title', 'paid', 'genre', ...
{ "repo_name": "OpenFurry/submitify", "path": "submitify/forms.py", "copies": "1", "size": "1450", "license": "mit", "hash": -7563723300847404000, "line_mean": 20.6417910448, "line_max": 55, "alpha_frac": 0.5806896552, "autogenerated": false, "ratio": 4.142857142857143, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from .models import PerfilUsuario """ Constans """ ERROR_MESSAGE_USER = {'required' : 'el usuario es requerido', 'unique' : 'el usuario ya esta registrado','invalid' : 'el correo es invalido'} ERROR_MESSAGE_PASSWORD ={'required' : 'el usuario es r...
{ "repo_name": "andresmauro17/mediapp", "path": "src/apps/accounts/forms.py", "copies": "1", "size": "4226", "license": "mit", "hash": -8351097445313876000, "line_mean": 49.3095238095, "line_max": 183, "alpha_frac": 0.7124940842, "autogenerated": false, "ratio": 3.179834462001505, "config_test":...
from django import forms from django.contrib.auth.models import User from .models import Poll, QuestionBase class UserForm(forms.Form): name = forms.CharField(label='Name') password1 = forms.CharField(widget=forms.PasswordInput(), label='Enter password') password2 = forms....
{ "repo_name": "jacol12345/TP-ankiety-web-app", "path": "mobilepolls/polls/forms.py", "copies": "1", "size": "1945", "license": "mit", "hash": -766583122470284400, "line_mean": 34.3636363636, "line_max": 76, "alpha_frac": 0.6323907455, "autogenerated": false, "ratio": 4.20995670995671, "config_t...
from django import forms from django.contrib.auth.models import User from .models import Profile from courses.models import Course class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelForm): password = forms.CharFie...
{ "repo_name": "pauljherrera/avantiweb", "path": "account/forms.py", "copies": "1", "size": "1366", "license": "mit", "hash": 3375100549633665500, "line_mean": 25.7843137255, "line_max": 83, "alpha_frac": 0.7284040996, "autogenerated": false, "ratio": 3.575916230366492, "config_test": false, "...
from django import forms from django.contrib.auth.models import User from .models import Profile class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelForm): password = forms.CharField( label='Passw...
{ "repo_name": "ch1huizong/dj", "path": "bookmarks/account/forms.py", "copies": "1", "size": "1033", "license": "unlicense", "hash": 3213554823387074000, "line_mean": 23.023255814, "line_max": 66, "alpha_frac": 0.6360116167, "autogenerated": false, "ratio": 4.251028806584362, "config_test": fals...
from django import forms from django.contrib.auth.models import User from .models import Profile class RegistrationForm(forms.Form): TITLE_CHOICES = [('Mr.', 'Mr.'), ('Ms.', 'Ms.'), ('Mrs.', 'Mrs.')] title = forms.CharField(required=True, widget=forms.Select(attrs={'class': 'custo...
{ "repo_name": "radheygupta/editorialsnow", "path": "editorials/forms.py", "copies": "1", "size": "2509", "license": "apache-2.0", "hash": 8532078094765238000, "line_mean": 43.0175438596, "line_max": 120, "alpha_frac": 0.5508170586, "autogenerated": false, "ratio": 4.371080139372823, "config_tes...
from django import forms from django.contrib.auth.models import User from models import SocialProfile, Photo class FacebookAuthForm(forms.Form): """ Form for validating and saving Facebook user authentication data. Returns the existing or created user. """ id = forms.CharField() email = ...
{ "repo_name": "andela-uawili/photo-editing-application", "path": "neatpix/webapp/forms.py", "copies": "1", "size": "1767", "license": "mit", "hash": 6944463062286312000, "line_mean": 26.609375, "line_max": 66, "alpha_frac": 0.5568760611, "autogenerated": false, "ratio": 4.613577023498695, "conf...
from django import forms from django.contrib.auth.models import User from .models import User, WorkbenchUser class UserLoginForm(forms.Form): username = forms.CharField(required=True) password = forms.CharField(required=True, widget=forms.PasswordInput()) class WorkbenchUserForm(forms.ModelForm): netid...
{ "repo_name": "MOOCworkbench/MOOCworkbench", "path": "user_manager/forms.py", "copies": "1", "size": "1385", "license": "mit", "hash": -3138354291544803300, "line_mean": 40.9696969697, "line_max": 119, "alpha_frac": 0.6880866426, "autogenerated": false, "ratio": 4.287925696594427, "config_test"...
from django import forms from django.contrib.auth.models import User from oauth2app.models import Client from cabinet.models import BookBorrowRequest class BookBorrowRequestForm(forms.ModelForm): class Meta: model = BookBorrowRequest exclude = ('datetime', 'status') class LoginForm(forms.Form)...
{ "repo_name": "ax003d/sichu_web", "path": "sichu/apiserver/forms.py", "copies": "1", "size": "1933", "license": "mit", "hash": 5912444999039122000, "line_mean": 30.6885245902, "line_max": 74, "alpha_frac": 0.6187273668, "autogenerated": false, "ratio": 4.558962264150943, "config_test": false, ...
from django import forms from django.contrib.auth.models import User from registration.forms import RegistrationFormUniqueEmail from vumi.utils import normalize_msisdn from go.base.models import UserProfile class UserAccountForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(UserAccountFo...
{ "repo_name": "praekelt/vumi-go", "path": "go/account/forms.py", "copies": "1", "size": "2977", "license": "bsd-3-clause", "hash": 7806176744064971000, "line_mean": 33.6162790698, "line_max": 79, "alpha_frac": 0.6325159557, "autogenerated": false, "ratio": 4.152022315202231, "config_test": fals...
from django import forms from django.contrib.auth.models import User from secrets.models import SecretGroup, Trust, TrustUser class UserDeviceForm(forms.Form): name = forms.CharField(label='Device Name', max_length=100, widget=forms.TextInput(attrs={'class': 'form-control'})) public_key = forms.C...
{ "repo_name": "bsarsgard/passbrain", "path": "web/forms.py", "copies": "1", "size": "2769", "license": "mit", "hash": -914853396196264000, "line_mean": 34.0506329114, "line_max": 75, "alpha_frac": 0.5929938606, "autogenerated": false, "ratio": 4.096153846153846, "config_test": false, "has_no_...
from django import forms from django.contrib.auth.models import User from selectable import forms as selectable from timepiece.fields import UserModelMultipleChoiceField from timepiece.forms import DateForm, YearMonthForm from timepiece.crm.lookups import ProjectLookup from timepiece.crm.models import Attribute from...
{ "repo_name": "josesanch/django-timepiece", "path": "timepiece/reports/forms.py", "copies": "3", "size": "3343", "license": "mit", "hash": 9003396165765877000, "line_mean": 35.3369565217, "line_max": 78, "alpha_frac": 0.6545019444, "autogenerated": false, "ratio": 4.08679706601467, "config_test...
from django import forms from django.contrib.auth.models import User from snapboard.models import Thread, Post from snapboard.utils import RequestModelForm class ThreadForm(RequestModelForm): """ Thread creation form for use with the API. """ text = forms.CharField() subscribers = forms....
{ "repo_name": "johnboxall/snapboard", "path": "snapboard/api/forms.py", "copies": "1", "size": "1164", "license": "bsd-3-clause", "hash": 2356127679756080600, "line_mean": 29.6578947368, "line_max": 80, "alpha_frac": 0.6091065292, "autogenerated": false, "ratio": 4.2327272727272724, "config_tes...
from django import forms from django.contrib.auth.models import User from symposion.utils.signup import generate_username class GroupRegistrationForm(forms.Form): first_name = forms.CharField(required=False) last_name = forms.CharField(required=False) email = forms.EmailField() def create_user(self,...
{ "repo_name": "SaptakS/pune.pycon.org", "path": "pycon/registration/forms.py", "copies": "4", "size": "1186", "license": "bsd-3-clause", "hash": -6850054108635822000, "line_mean": 31.9444444444, "line_max": 72, "alpha_frac": 0.6155143339, "autogenerated": false, "ratio": 4.235714285714286, "con...
from django import forms from django.contrib.auth.models import User import re class registration(forms.Form): username = forms.CharField(min_length=4, max_length=15, required=True) email = forms.EmailField(required=True) password = forms.CharField(widget=forms.PasswordInput, required=True) confirm_password = fo...
{ "repo_name": "jeremyphilemon/uniqna", "path": "home/forms.py", "copies": "2", "size": "2012", "license": "bsd-3-clause", "hash": -3249505327320732700, "line_mean": 33.1016949153, "line_max": 103, "alpha_frac": 0.7524850895, "autogenerated": false, "ratio": 3.487001733102253, "config_test": fal...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField(label='Username', max_length=100, widget=forms.TextInput(attrs={ 'placeholder': 'Enter unique username', ...
{ "repo_name": "andela-ooshodi/codango-debug", "path": "codango/account/forms.py", "copies": "1", "size": "4172", "license": "mit", "hash": -6098714328914224000, "line_mean": 35.9203539823, "line_max": 86, "alpha_frac": 0.5278044104, "autogenerated": false, "ratio": 5.032569360675513, "config_te...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField( required=True, label=False, error_messages={"required": "Please type username"}, widget=forms.TextInput( attrs={ "placeholder": ...
{ "repo_name": "liyao001/BioQueue", "path": "accounts/forms.py", "copies": "1", "size": "3253", "license": "apache-2.0", "hash": -410307072519706560, "line_mean": 28.5727272727, "line_max": 115, "alpha_frac": 0.5173685828, "autogenerated": false, "ratio": 4.627311522048364, "config_test": false,...
from django import forms from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField(widget=forms.TextInput()) password = forms.CharField(widget=forms.PasswordInput(render_value=False)) class RegisterForm(forms.Form): username = forms.CharField( label="Use...
{ "repo_name": "oskargicast/student-intranet", "path": "apps/home/forms.py", "copies": "1", "size": "1575", "license": "mit", "hash": 8697194741290975000, "line_mean": 31.8125, "line_max": 78, "alpha_frac": 0.6450793651, "autogenerated": false, "ratio": 4.362880886426593, "config_test": false, ...
from django import forms from django.contrib.auth.models import User class ProfileForm(forms.ModelForm): first_name = forms.CharField( widget=forms.TextInput(attrs={'class': 'form-control'}), max_length=30, required=False) last_name = forms.CharField( widget=forms.TextInput(at...
{ "repo_name": "rg3915/spark", "path": "spark/core/forms.py", "copies": "1", "size": "2673", "license": "mit", "hash": 5538815017930680000, "line_mean": 34.1578947368, "line_max": 75, "alpha_frac": 0.6074101796, "autogenerated": false, "ratio": 4.042360060514373, "config_test": false, "has_no_...
from django import forms from django.contrib.auth.models import User class ProfileForm(forms.ModelForm): first_name = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}), max_length=30, required=False) last_name = forms.CharField(widget=forms.TextInput(attrs={'class':'f...
{ "repo_name": "ouedraog/aefat", "path": "aefat/core/forms.py", "copies": "1", "size": "2728", "license": "mit", "hash": -4726467906444276000, "line_mean": 37.9714285714, "line_max": 98, "alpha_frac": 0.6286656891, "autogenerated": false, "ratio": 3.9651162790697674, "config_test": false, "has...