text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.views.generic.edit import CreateView, UpdateView, DeleteView from models import Photo, Album from profiles.models import ImagerProfile from forms import AlbumForm @login_required def library(request): ...
{ "repo_name": "joelstanner/django-imager", "path": "imager/imager_images/views.py", "copies": "1", "size": "2953", "license": "mit", "hash": -6073866818978029000, "line_mean": 31.097826087, "line_max": 79, "alpha_frac": 0.6522180833, "autogenerated": false, "ratio": 3.9060846560846563, "config_...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.views.generic import View from django.http import Http404, HttpResponseRedirect from django.core.exceptions import ObjectDoesNotExist from VetApp.translate import g_save_tests from VetApp.forms import * ...
{ "repo_name": "mape90/VetAppDjango", "path": "VetApp/views.py", "copies": "1", "size": "6314", "license": "mit", "hash": -4989132998326722000, "line_mean": 30.57, "line_max": 130, "alpha_frac": 0.6363636364, "autogenerated": false, "ratio": 3.593625498007968, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.views import generic from wisemailer.models import Campaign from wiseutils.formatters import datetime_str, float_str from mongoengine.django.shortcuts import get_document_or_404 from wiseadmin.forms impor...
{ "repo_name": "harabchuk/wisemessage", "path": "wiseadmin/views/campaign.py", "copies": "1", "size": "5855", "license": "mit", "hash": 35031547576209556, "line_mean": 32.6494252874, "line_max": 114, "alpha_frac": 0.60529462, "autogenerated": false, "ratio": 3.8646864686468647, "config_test": fa...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from .models import CookedAt, Recipe from .forms import CookedAtForm, RecipeForm from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.contrib import auth from django.contrib...
{ "repo_name": "pyprism/Hiren-Recipes", "path": "recipe/views.py", "copies": "1", "size": "5031", "license": "mit", "hash": -1531292907052860000, "line_mean": 28.0809248555, "line_max": 98, "alpha_frac": 0.620552574, "autogenerated": false, "ratio": 3.8171471927162366, "config_test": false, "h...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from .models import Pattern, Alarm, Timetable, CalendarEntry from .forms import SetActiveForm from django.conf import settings import csengő import datetime # Create your views here. def homepage(request): atable ...
{ "repo_name": "Easimer/csengo", "path": "csengő_app/views.py", "copies": "1", "size": "2648", "license": "bsd-2-clause", "hash": 4293867923047987000, "line_mean": 23.9150943396, "line_max": 81, "alpha_frac": 0.7015151515, "autogenerated": false, "ratio": 3.0841121495327104, "config_test": false...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from mongoengine.django.shortcuts import get_document_or_404 from wisemailer.models import Segment, Subscriber from wiseadmin.forms import SegmentForm import logging from helpers import render_json from django.core.u...
{ "repo_name": "harabchuk/wisemessage", "path": "wiseadmin/views/segments.py", "copies": "1", "size": "3753", "license": "mit", "hash": 1144716816747701100, "line_mean": 31.0854700855, "line_max": 129, "alpha_frac": 0.5955235811, "autogenerated": false, "ratio": 3.8690721649484536, "config_test"...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from .forms import RegistrationForm from .models import Account class RegistrationView(BaseRegistrationView): form_class = ...
{ "repo_name": "kboard/kboard", "path": "kboard/accounts/views.py", "copies": "5", "size": "1049", "license": "mit", "hash": -3902561112228957700, "line_mean": 24.5853658537, "line_max": 85, "alpha_frac": 0.6854146806, "autogenerated": false, "ratio": 4.065891472868217, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from schmankerlapp.forms import UserForm, RestaurantForm, UserFormForEdit, MealForm from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from schmankerlapp.models import Mea...
{ "repo_name": "MarxDimitri/schmankerl", "path": "schmankerlapp/views.py", "copies": "1", "size": "3066", "license": "apache-2.0", "hash": -5810782415558510000, "line_mean": 34.2413793103, "line_max": 105, "alpha_frac": 0.675146771, "autogenerated": false, "ratio": 3.663082437275986, "config_tes...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from wisemailer.models import MailList from wiseutils.formatters import datetime_str, percent_str from mongoengine.django.shortcuts import get_document_or_404 from wiseadmin.forms import MailListForm import logging f...
{ "repo_name": "harabchuk/wisemessage", "path": "wiseadmin/views/maillist.py", "copies": "1", "size": "3051", "license": "mit", "hash": -8791689305423137000, "line_mean": 32.1630434783, "line_max": 138, "alpha_frac": 0.5843985578, "autogenerated": false, "ratio": 3.891581632653061, "config_test"...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from .models import WishlistItem from .forms import WishlistForm @login_required def wishlist_add_item(request): if request.method == "POST": form = WishlistForm(request.POST) if form.is_valid()...
{ "repo_name": "jmickela/stalkexchange", "path": "wishlist/views.py", "copies": "1", "size": "1627", "license": "apache-2.0", "hash": 4117470102829448000, "line_mean": 30.3076923077, "line_max": 97, "alpha_frac": 0.6256914567, "autogenerated": false, "ratio": 3.4764957264957266, "config_test": f...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from oppgavegen.view_logic.statistics import * from oppgavegen.models import Set, Level @login_required def set_stats_view(request, set_id): """Returns a render of statview.html with all the templates""" s...
{ "repo_name": "w0pke/oppgavegenerator", "path": "oppgavegen/views/stat_views.py", "copies": "1", "size": "1835", "license": "bsd-3-clause", "hash": -6610408868806334000, "line_mean": 40.7272727273, "line_max": 115, "alpha_frac": 0.6910081744, "autogenerated": false, "ratio": 3.7448979591836733, ...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from pkg_resources import get_distribution @login_required() def dashboard(request): return render(request, 'dashboard.html', { 'server_version': get_distribution('lisa-server').version }) def login(reque...
{ "repo_name": "Seraf/LISA", "path": "lisa/server/web/interface/views.py", "copies": "1", "size": "1473", "license": "mit", "hash": -6846255681997169000, "line_mean": 34.0952380952, "line_max": 104, "alpha_frac": 0.66598778, "autogenerated": false, "ratio": 4.281976744186046, "config_test": fals...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from wisemailer.models import Subscriber from wiseutils.formatters import datetime_str from mongoengine.django.shortcuts import get_document_or_404 import logging from helpers import render_json log = logging.getL...
{ "repo_name": "harabchuk/wisemessage", "path": "wiseadmin/views/subscriber.py", "copies": "1", "size": "2071", "license": "mit", "hash": -6440296908550286000, "line_mean": 30.8615384615, "line_max": 105, "alpha_frac": 0.5910188315, "autogenerated": false, "ratio": 3.998069498069498, "config_tes...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from wishlist.models import WishlistItem from .models import GardenItem from .forms import AddProduceForm, ProduceSearchForm @login_required def add_produce_to_profile(request): form = None if request.met...
{ "repo_name": "jmickela/stalkexchange", "path": "produce/views.py", "copies": "1", "size": "1792", "license": "apache-2.0", "hash": 2473378059673845000, "line_mean": 31.5818181818, "line_max": 92, "alpha_frac": 0.6529017857, "autogenerated": false, "ratio": 3.725571725571726, "config_test": fal...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required import sys from minutes.models import Minute from minutes.forms import MinuteForm from organizations.models import Organization from users.models import DataBlock # Create your views here. @login_required(login_ur...
{ "repo_name": "amacnair/team-toolkit", "path": "clubbr/minutes/views.py", "copies": "1", "size": "2019", "license": "mit", "hash": 7771972780459556000, "line_mean": 28.6911764706, "line_max": 95, "alpha_frac": 0.6210995542, "autogenerated": false, "ratio": 3.943359375, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_http_methods, require_GET, require_POST from django.http import HttpResponse from django.contrib.auth import l...
{ "repo_name": "Diksha-Rathi/Smart-Bin-GHC", "path": "registration/views.py", "copies": "1", "size": "2040", "license": "mit", "hash": 1927906753795943200, "line_mean": 32.4590163934, "line_max": 88, "alpha_frac": 0.6975490196, "autogenerated": false, "ratio": 4.129554655870446, "config_test": f...
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import authenticate, login, logout from django.views.generic import View from django.contrib.auth.mixins import LoginRequiredMixin class LoginRegister(View): template_n...
{ "repo_name": "the-kid89/LearningWithWebsockets", "path": "user_profile/views.py", "copies": "1", "size": "2892", "license": "bsd-2-clause", "hash": -9031999946113939000, "line_mean": 32.2413793103, "line_max": 81, "alpha_frac": 0.6123789765, "autogenerated": false, "ratio": 4.348872180451128, ...
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import authenticate, login, logout def sign_out(request): logout(request) return redirect('/') def sign_in(request): if request.method == "POST": form =...
{ "repo_name": "mpgarate/OST-fauxra", "path": "accounts/views.py", "copies": "1", "size": "1343", "license": "mit", "hash": 2258150959512958000, "line_mean": 31.756097561, "line_max": 74, "alpha_frac": 0.625465376, "autogenerated": false, "ratio": 4.432343234323432, "config_test": false, "has_...
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import login, logout from django.contrib.auth.decorators import login_required # Create your views here. @login_required(login_url="/accounts/login/") def signup_view(reque...
{ "repo_name": "barliant/fnc-id", "path": "django_project/old/hoaxdetector/accounts/views.py", "copies": "2", "size": "1124", "license": "apache-2.0", "hash": 430143888078657340, "line_mean": 28.5789473684, "line_max": 96, "alpha_frac": 0.7330960854, "autogenerated": false, "ratio": 3.375375375375...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login as auth_login, logout as auth_logout from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from college.models import Pr...
{ "repo_name": "pramodhkp/pes", "path": "college/views.py", "copies": "1", "size": "5795", "license": "mit", "hash": 8870506497268565000, "line_mean": 30.8406593407, "line_max": 88, "alpha_frac": 0.7081967213, "autogenerated": false, "ratio": 3.2230255839822024, "config_test": false, "has_no_k...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from Web_App.models import Fir,general_diary from collections import OrderedDict #from operator import itemgette...
{ "repo_name": "Ghost-script/Online-FIR-General-Diary-lodging-System", "path": "Web_App/users/views.py", "copies": "1", "size": "2089", "license": "mit", "hash": 87442418226839950, "line_mean": 31.65625, "line_max": 101, "alpha_frac": 0.6821445668, "autogenerated": false, "ratio": 3.71047957371225...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from .models import Nota from .forms import CategoriaForm, NotaForm, CrearClienteForm def registrar(request): form = CrearClienteForm() if request....
{ "repo_name": "0sw4l/Cuke", "path": "TodoList/views.py", "copies": "1", "size": "3673", "license": "mit", "hash": -2549861991219703000, "line_mean": 27.4728682171, "line_max": 102, "alpha_frac": 0.5869861149, "autogenerated": false, "ratio": 3.5148325358851675, "config_test": false, "has_no_k...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from Web_App.models import Fir,general_diary from django.contrib.auth.models import User from functools import wraps from django.http import HttpResponse fr...
{ "repo_name": "Ghost-script/Online-FIR-General-Diary-lodging-System", "path": "Web_App/police/views.py", "copies": "1", "size": "2297", "license": "mit", "hash": 5352802763647031000, "line_mean": 32.2898550725, "line_max": 106, "alpha_frac": 0.6739225076, "autogenerated": false, "ratio": 3.899830...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from authenticate.forms import UserRegForm from userprofile.models import UserProfile def user_login(request): template_path = 'authenticate/login.ht...
{ "repo_name": "starkdee/courseware", "path": "authenticate/views.py", "copies": "1", "size": "1776", "license": "mit", "hash": 1536127078870559500, "line_mean": 28.6, "line_max": 108, "alpha_frac": 0.6221846847, "autogenerated": false, "ratio": 4.406947890818858, "config_test": false, "has_no...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required def app_login(request): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') ...
{ "repo_name": "m1k3r/gvi-accounts", "path": "gvi/users_m/views.py", "copies": "1", "size": "1082", "license": "mit", "hash": 6917936290456143000, "line_mean": 35.0666666667, "line_max": 98, "alpha_frac": 0.6340110906, "autogenerated": false, "ratio": 4.3983739837398375, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_GET, require_http_methods @require_http_methods(...
{ "repo_name": "pclements12/PyWishlist", "path": "wishlist_app/views/operations.py", "copies": "1", "size": "1323", "license": "mit", "hash": -7525179329715653000, "line_mean": 31.2682926829, "line_max": 83, "alpha_frac": 0.6885865457, "autogenerated": false, "ratio": 3.961077844311377, "config_...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from .models import Usuario from django.views.generic import View, TemplateView from django.contrib.auth.decorators import login_required f...
{ "repo_name": "diego-d5000/Estudiala", "path": "estudiala/estudiala/usuarios/views.py", "copies": "1", "size": "3609", "license": "mit", "hash": -2385573983059325000, "line_mean": 27.1953125, "line_max": 75, "alpha_frac": 0.7154336381, "autogenerated": false, "ratio": 3.3760523854069224, "confi...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.contrib import messages from getraenkewart.forms import RegistrationForm REGISTRATION_SUCCESS = "Neuen Benutzer erfolgreich angelegt. Bitte warte auf deine ...
{ "repo_name": "Faerbit/getraenkewart.de", "path": "getraenkewart/views.py", "copies": "1", "size": "2415", "license": "mit", "hash": 4033179960855898600, "line_mean": 37.9516129032, "line_max": 96, "alpha_frac": 0.6525879917, "autogenerated": false, "ratio": 3.7268518518518516, "config_test": f...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.http import HttpResponse from apps.session.models import UserProfile, Message from django.contrib.auth.decorators import login_required import re import json ...
{ "repo_name": "sparcs-kaist/araplus", "path": "apps/session/views.py", "copies": "1", "size": "4472", "license": "mit", "hash": -6609343476063286000, "line_mean": 35.064516129, "line_max": 78, "alpha_frac": 0.5968246869, "autogenerated": false, "ratio": 4.392927308447937, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.template.defaultfilters import slugify from unidecode import unidecode from zhihuuser.forms import LoginForm, SignUpForm from zhihuuser.models import ZhihuUse...
{ "repo_name": "threegirl2014/zhihuCopy", "path": "zhihuuser/views.py", "copies": "1", "size": "9958", "license": "mit", "hash": -7120314435456493000, "line_mean": 38.9959839357, "line_max": 111, "alpha_frac": 0.5721028319, "autogenerated": false, "ratio": 3.97207818109294, "config_test": false,...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from .models import Profile from reviewapp.models import Review def login_view(request): context = {} if request.method=="POST": user_id = request.POST['username'] ...
{ "repo_name": "bestgunman/Gitwaxingproduct", "path": "Projectreview/accountapp/views.py", "copies": "1", "size": "2517", "license": "mit", "hash": -9060810932410883000, "line_mean": 30.6666666667, "line_max": 64, "alpha_frac": 0.7094736842, "autogenerated": false, "ratio": 2.6896942242355606, "...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from accounts.forms import LoginForm, RegistrationForm from lists.forms import TodoForm def login_view(request): if request.method == 'POST': form = LoginF...
{ "repo_name": "0xfoo/django-todolist", "path": "accounts/views.py", "copies": "2", "size": "1550", "license": "mit", "hash": 4863376984672419000, "line_mean": 30.6326530612, "line_max": 76, "alpha_frac": 0.5883870968, "autogenerated": false, "ratio": 4.505813953488372, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse from .forms import UserForm, UserProfileForm from .models import Sobre, ComoFunciona # Create your views here. def home(request): return render(request, 'core/index.html') ...
{ "repo_name": "fandrefh/mutirao", "path": "mutirao/core/views.py", "copies": "1", "size": "1939", "license": "mit", "hash": 7869635457170691000, "line_mean": 26.7142857143, "line_max": 84, "alpha_frac": 0.727694688, "autogenerated": false, "ratio": 3.043956043956044, "config_test": false, "ha...
from django.shortcuts import render,redirect from django.contrib.auth import authenticate, login, logout from django.views.generic import View, RedirectView from users.forms import UserForm,UserProfileForm,UserExtendedProfileForm from users.models import User, UserProfile from game.models import Team, League, TeamPick ...
{ "repo_name": "ConnorH2582/pickem_football", "path": "pickem_football/interface/views.py", "copies": "2", "size": "24605", "license": "mit", "hash": -2529872167847700500, "line_mean": 53.0769230769, "line_max": 261, "alpha_frac": 0.6191424507, "autogenerated": false, "ratio": 3.751334044823906, ...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from .forms import * from leaveapp.models import * from .models import * from datetime import date from workdays import networkdays # Create your views here. def home(request): if not request.user.is_authentic...
{ "repo_name": "avinash795k/leaveProject", "path": "userpanel/views.py", "copies": "1", "size": "14538", "license": "mit", "hash": -7581856868338905000, "line_mean": 68.2333333333, "line_max": 289, "alpha_frac": 0.6588251479, "autogenerated": false, "ratio": 3.9994497936726274, "config_test": fa...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from auth.forms import SignUpForm from django.contrib.auth.models import User from feeds.models import Feed def signup(request): if request.method == 'POST': form = SignUpForm(request.POST) if not form...
{ "repo_name": "kngeno/gis_kenya", "path": "apps/auth/views.py", "copies": "1", "size": "1065", "license": "mit", "hash": 2961703744302671400, "line_mean": 43.375, "line_max": 94, "alpha_frac": 0.6422535211, "autogenerated": false, "ratio": 4.143968871595331, "config_test": false, "has_no_keyw...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from bootcamp.authentication.forms import SignUpForm from django.contrib.auth.models import User from bootcamp.feeds.models import Feed def signup(request): if request.method == 'POST': form = SignUpForm(requ...
{ "repo_name": "JeromeRisselin/PRJ-medtec_sigproc", "path": "echopen-leaderboard/bootcamp/authentication/views.py", "copies": "3", "size": "1277", "license": "mit", "hash": 8319400083039624000, "line_mean": 40.1935483871, "line_max": 79, "alpha_frac": 0.580266249, "autogenerated": false, "ratio": ...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from bootcamp.authentication.forms import SignUpForm, ResetForm from django.contrib.auth.models import User from bootcamp.feeds.models import Feed from django.conf import settings from django.contrib.auth.models import Use...
{ "repo_name": "hackolite/PRJ-medtec_sigproc", "path": "echopen-leaderboard/bootcamp/authentication/views.py", "copies": "1", "size": "2889", "license": "mit", "hash": -6925455574348950000, "line_mean": 38.0405405405, "line_max": 154, "alpha_frac": 0.6420906888, "autogenerated": false, "ratio": 4....
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from bootcamp.auth.forms import SignUpForm from django.contrib.auth.models import User from bootcamp.feeds.models import Feed def signup(request): if request.method == 'POST': form = SignUpForm(request.POST) ...
{ "repo_name": "o5k/bootcamp-ihealth", "path": "bootcamp/auth/views.py", "copies": "12", "size": "1083", "license": "mit", "hash": -6537187629893519000, "line_mean": 44.125, "line_max": 94, "alpha_frac": 0.6463527239, "autogenerated": false, "ratio": 4.11787072243346, "config_test": false, "ha...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from ception.auth.forms import SignUpForm from django.contrib.auth.models import User from ception.feeds.models import Feed def signup(request): if request.method == 'POST': form = SignUpForm(request.POST) ...
{ "repo_name": "zyshin/Ception", "path": "ception/auth/views.py", "copies": "1", "size": "1082", "license": "mit", "hash": -56773282927911160, "line_mean": 42.28, "line_max": 94, "alpha_frac": 0.6451016636, "autogenerated": false, "ratio": 4.114068441064639, "config_test": false, "has_no_keywo...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from depotwork.auth.forms import SignUpForm from django.contrib.auth.models import User from depotwork.feeds.models import Feed def signup(request): if request.method == 'POST': form = SignUpForm(request.POST)...
{ "repo_name": "lirui0081/depotwork", "path": "depotwork/auth/views.py", "copies": "1", "size": "1085", "license": "mit", "hash": -8937561747399062000, "line_mean": 44.2083333333, "line_max": 94, "alpha_frac": 0.6470046083, "autogenerated": false, "ratio": 4.1254752851711025, "config_test": fals...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib import messages from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from video.models impo...
{ "repo_name": "apikler/VideoStore", "path": "site/intro/views.py", "copies": "1", "size": "2115", "license": "bsd-2-clause", "hash": 1069070136128289200, "line_mean": 27.2, "line_max": 109, "alpha_frac": 0.7290780142, "autogenerated": false, "ratio": 3.411290322580645, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from Application.forms import UserForm from Application.models import UserProfile def home(request): return render(request, 'index.html', {}) def bad_request(request): return render(request, 'errors/error400.h...
{ "repo_name": "andjimrio/LTN", "path": "Application/views.py", "copies": "1", "size": "1461", "license": "mit", "hash": 7744595204578025000, "line_mean": 24.6315789474, "line_max": 80, "alpha_frac": 0.6290212183, "autogenerated": false, "ratio": 4.002739726027397, "config_test": false, "has_n...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.contrib.auth import logout as auth_logout from django.contrib.auth.decorators import login_required from django.utils import timezone from entree.models import * fro...
{ "repo_name": "cs411-entree-app/entree", "path": "entree_project/entree/views.py", "copies": "1", "size": "9981", "license": "apache-2.0", "hash": 589406762664902900, "line_mean": 28.7053571429, "line_max": 119, "alpha_frac": 0.604147881, "autogenerated": false, "ratio": 3.8477255204317657, "co...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.contrib.auth import logout as auth_logout from .forms import * def index(request): return render(request, 'index.html') def login(request): if request.u...
{ "repo_name": "crocs-muni/RTTWebInterface", "path": "RTTWebInterface/views.py", "copies": "1", "size": "3339", "license": "mit", "hash": 2867396960001820700, "line_mean": 30.5, "line_max": 89, "alpha_frac": 0.5447738844, "autogenerated": false, "ratio": 4.440159574468085, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib.auth import authenticate from django.contrib.auth import login as login_user from django.contrib.auth import logout as logout_user from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404 from django.contr...
{ "repo_name": "samitnuk/urlsaver_django", "path": "urlsaver/views.py", "copies": "1", "size": "6079", "license": "mit", "hash": 6868712300968436000, "line_mean": 33.1516853933, "line_max": 77, "alpha_frac": 0.5966441849, "autogenerated": false, "ratio": 3.9940867279894876, "config_test": false,...
from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate, logout from django.contrib.auth.decorators import login_required from django.db.models import Count from django.contrib.auth.models import User from django.http import Http404 from django.core.exceptions import ObjectDoes...
{ "repo_name": "bkold/CarbonCopy", "path": "ribbit_app/views.py", "copies": "1", "size": "4567", "license": "mit", "hash": -3441151044744966000, "line_mean": 33.0820895522, "line_max": 109, "alpha_frac": 0.6049923363, "autogenerated": false, "ratio": 3.7681518151815183, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate, logout from django.contrib.auth.decorators import login_required import logging log = logging.getLogger(__name__) def login_view(request): invalid_user_or_pwd = False user_blocked = False username = "" ...
{ "repo_name": "harabchuk/wisemessage", "path": "wiseadmin/views/user.py", "copies": "1", "size": "1209", "license": "mit", "hash": -7177742513584860000, "line_mean": 26.4772727273, "line_max": 65, "alpha_frac": 0.6195202647, "autogenerated": false, "ratio": 4.112244897959184, "config_test": fal...
from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate, logout from django.views.generic import View from .forms import LoginForm class Login(View): form_class = LoginForm template_name = 'client_login_page/login.html' def get(self, request): if request....
{ "repo_name": "Josowsky/Simple-Site-Monitor", "path": "client_login_page/views.py", "copies": "1", "size": "1709", "license": "mit", "hash": 727957381959034000, "line_mean": 31.2452830189, "line_max": 69, "alpha_frac": 0.5693387946, "autogenerated": false, "ratio": 4.509234828496043, "config_te...
from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate from django.contrib.auth.models import Group from republica.forms import RepublicaForm from autenticacao.forms import UserForm from financas.models import Caixa def signup(request): if request.method == 'POST': ...
{ "repo_name": "rafaelnsantos/batfinancas", "path": "autenticacao/views.py", "copies": "1", "size": "1158", "license": "mit", "hash": -1852891761496372700, "line_mean": 41.9259259259, "line_max": 114, "alpha_frac": 0.6692573402, "autogenerated": false, "ratio": 3.6529968454258674, "config_test":...
from django.shortcuts import render, redirect from django.contrib.auth import login, logout, authenticate from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.generic import View from django import forms class LoginForm(forms.Form): usern...
{ "repo_name": "TheCheshireFox/foxy-player", "path": "foxy_player/frontend/views.py", "copies": "1", "size": "1501", "license": "apache-2.0", "hash": 6743012292392915000, "line_mean": 30.9361702128, "line_max": 120, "alpha_frac": 0.6562291805, "autogenerated": false, "ratio": 4.216292134831461, ...
from django.shortcuts import render, redirect from django.contrib.auth import login, logout, update_session_auth_hash, authenticate from django.contrib.auth.decorators import login_required from django.http import Http404 from .forms import LoginForm, RegistrationForm, TestForm def login_view(request): """ Fun...
{ "repo_name": "AllanMukundi/Pomodoro", "path": "users/views.py", "copies": "1", "size": "2129", "license": "mit", "hash": -3481497537839789600, "line_mean": 32.265625, "line_max": 85, "alpha_frac": 0.6181305777, "autogenerated": false, "ratio": 4.344897959183673, "config_test": false, "has_no...
from django.shortcuts import render, redirect from django.contrib.auth import login, logout, update_session_auth_hash from django.contrib.auth.decorators import login_required from .user_form import AdminUserForm, AdminUpdateForm, MemberUpdateForm from .models import Project, AdminUser, MemberUser, LeaderUser from .bac...
{ "repo_name": "mmunchkinn/Hex-Omega", "path": "users/views.py", "copies": "1", "size": "13520", "license": "mit", "hash": -6024618804685274000, "line_mean": 32.4678217822, "line_max": 117, "alpha_frac": 0.6082100592, "autogenerated": false, "ratio": 3.8683834048640917, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib.auth import logout from django.contrib.auth.decorators import login_required from django.contrib import messages from .forms import UserRegistrationForm, ProfileForm, UserChangeForm from .models import Profile @login_required def profile(request): ...
{ "repo_name": "sorz/isi", "path": "store/account/views.py", "copies": "1", "size": "2284", "license": "mit", "hash": -8900079031382215000, "line_mean": 31.1690140845, "line_max": 75, "alpha_frac": 0.6598073555, "autogenerated": false, "ratio": 4.269158878504673, "config_test": false, "has_no_...
from django.shortcuts import render, redirect from django.contrib.auth import logout from django.contrib.auth.decorators import login_required from django.http import HttpResponse from forms import UserBasicProfileForm, UserProfileForm, \ UserLinksForm, UserPhoneForm from controller import UserController def index...
{ "repo_name": "vividvilla/cconnect", "path": "users/views.py", "copies": "1", "size": "3374", "license": "mit", "hash": 215794753161533220, "line_mean": 23.273381295, "line_max": 58, "alpha_frac": 0.7125074096, "autogenerated": false, "ratio": 3.050632911392405, "config_test": false, "has_no_...
from django.shortcuts import render, redirect from django.contrib.auth import logout from django.core.mail import send_mail from django.utils.translation import ugettext as _ from django.contrib import messages from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorato...
{ "repo_name": "minimail/minimail", "path": "user_management/views.py", "copies": "1", "size": "6518", "license": "mit", "hash": 3287002060132879400, "line_mean": 34.0322580645, "line_max": 95, "alpha_frac": 0.6143339472, "autogenerated": false, "ratio": 4.198453608247423, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib.auth import logout from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from azure_ad_auth.utils import get_logout_url from django.contrib.auth.decorators import login_required import requests, json from .models impo...
{ "repo_name": "csabatini/deploy-azurerm-django", "path": "azure_deploy/views.py", "copies": "1", "size": "1301", "license": "bsd-3-clause", "hash": 7657376585773019000, "line_mean": 29.2558139535, "line_max": 76, "alpha_frac": 0.7302075327, "autogenerated": false, "ratio": 3.804093567251462, "c...
from django.shortcuts import render, redirect from django.contrib.auth import logout from .forms import ExtraDataForm from django.views.generic import View, DetailView from .models import User from discuss.apps.discuss.models import Question class ExtraDataView(View): def get(self,request, *args, **kwargs): ...
{ "repo_name": "brapastor/djdiscuss", "path": "discuss/discuss/apps/users/views.py", "copies": "1", "size": "2548", "license": "mit", "hash": -3950452243960496600, "line_mean": 37.0298507463, "line_max": 111, "alpha_frac": 0.6483516484, "autogenerated": false, "ratio": 3.901990811638591, "config...
from django.shortcuts import render, redirect from django.contrib.auth import logout from django.contrib.auth import ( REDIRECT_FIELD_NAME, get_user_model, login as auth_login, logout as auth_logout, update_session_auth_hash, ) from django.contrib.auth.forms import ( AuthenticationForm, PasswordChangeFor...
{ "repo_name": "AyudaEcuador/emergencyreport", "path": "accounts/views.py", "copies": "1", "size": "1094", "license": "apache-2.0", "hash": -8666938252533177000, "line_mean": 27.0512820513, "line_max": 79, "alpha_frac": 0.5941499086, "autogenerated": false, "ratio": 4.082089552238806, "config_te...
from django.shortcuts import render, redirect from django.contrib.auth import ( authenticate, login as django_login, logout as django_logout, get_user_model ) from django.contrib.auth.decorators import login_required from .forms import RegistrationForm, AuthenticationForm, EditUserDbvForm from .utils import...
{ "repo_name": "mazulo/SGT", "path": "sgt/accounts/views.py", "copies": "1", "size": "2941", "license": "mit", "hash": -7156259128260253000, "line_mean": 27.5533980583, "line_max": 72, "alpha_frac": 0.6456987419, "autogenerated": false, "ratio": 3.8595800524934383, "config_test": false, "has_n...
from django.shortcuts import render, redirect from django.contrib.auth import ( authenticate, login, logout, ) from .forms import UserLoginForm, UserRegisterForm def login_view(request): print(request.user.is_authenticated()) form = UserLoginForm(request.POST or None) if form.is_valid(): ...
{ "repo_name": "FeodorM/splitmoney", "path": "accounts/views.py", "copies": "1", "size": "1265", "license": "mit", "hash": -2522564026380590000, "line_mean": 27.75, "line_max": 82, "alpha_frac": 0.652173913, "autogenerated": false, "ratio": 3.9905362776025237, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect from django.contrib.auth import ( authenticate, get_user_model, login, logout, ) from .forms import UserLoginForm, UserRegisterForm def login_view(request): print(request.user.is_authenticated()) next = request.GET.get('next') form = UserLoginForm(request.POST or ...
{ "repo_name": "tyagow/AdvancingTheBlog", "path": "src/accounts/views.py", "copies": "1", "size": "1262", "license": "mit", "hash": -15360203156226880, "line_mean": 22.8301886792, "line_max": 68, "alpha_frac": 0.7131537242, "autogenerated": false, "ratio": 3.1788413098236776, "config_test": fals...
from django.shortcuts import render, redirect from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.views import logout as auth_logout from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.decorators import login_required from models import UserPrivacy @login_required...
{ "repo_name": "wenshin/gulosity", "path": "gulosity/apps/accounts/views.py", "copies": "1", "size": "1468", "license": "mit", "hash": -6468085547209540000, "line_mean": 27.2307692308, "line_max": 74, "alpha_frac": 0.6485013624, "autogenerated": false, "ratio": 3.7737789203084833, "config_test":...
from django.shortcuts import render, redirect from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.decorators import login_required from django.http import JsonResponse, HttpResponse from django.views.generic import TemplateView from .models import * from .forms import * import pdb class...
{ "repo_name": "TrumanZCM/ChurchFinance", "path": "cashier/views.py", "copies": "1", "size": "6288", "license": "apache-2.0", "hash": 3753687893370078000, "line_mean": 33.7403314917, "line_max": 114, "alpha_frac": 0.62706743, "autogenerated": false, "ratio": 3.9250936329588013, "config_test": fa...
from django.shortcuts import render, redirect from django.contrib.auth.mixins import LoginRequiredMixin from django.views import generic from django.urls import reverse, reverse_lazy from django.utils import timezone from .models import ItemData, TitleReplace from .domeme_parser import Domeme from .naver_parser import...
{ "repo_name": "lindychi/mnec", "path": "store/views.py", "copies": "1", "size": "17918", "license": "mit", "hash": 7699353539252142000, "line_mean": 38.4627906977, "line_max": 192, "alpha_frac": 0.6298915606, "autogenerated": false, "ratio": 2.680145316695625, "config_test": false, "has_no_ke...
from django.shortcuts import render, redirect from django.contrib.auth.models import User as User_model from django.contrib.auth import login from django.http import HttpResponse #from django.template import Context from maps import settings from maps import forms def getUserIdFromUserName(userName): user = User...
{ "repo_name": "agilman/django-maps", "path": "maps/views.py", "copies": "2", "size": "2004", "license": "mit", "hash": -2513253735226288000, "line_mean": 31.8524590164, "line_max": 158, "alpha_frac": 0.6516966068, "autogenerated": false, "ratio": 4.254777070063694, "config_test": false, "has_...
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.contrib import messages from users.forms import UserEditProfileForm, ProfileForm from django.views.generic import View from users.models import Category, UserCategory, Profile, Language, UserLanguage from events.servic...
{ "repo_name": "thiagoferreiraw/mixapp", "path": "users/views/user_edit_profile_view.py", "copies": "1", "size": "3430", "license": "mit", "hash": -1369595919411138800, "line_mean": 40.8292682927, "line_max": 127, "alpha_frac": 0.6335276968, "autogenerated": false, "ratio": 4.0736342042755345, "...
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.http import Http404, HttpResponse from django import forms from django.utils.translation import ugettext, ugettext_lazy as _ from social_auth.utils import setting def username_available(request): if request.method...
{ "repo_name": "iXce/git-a-thing", "path": "gitathing_web/auth_views.py", "copies": "1", "size": "2490", "license": "apache-2.0", "hash": 2576757764251392500, "line_mean": 40.5, "line_max": 111, "alpha_frac": 0.6261044177, "autogenerated": false, "ratio": 4.3304347826086955, "config_test": false...
from django.shortcuts import render, redirect from django.contrib.auth.models import User import django.contrib.auth as auth from mainmodels.models import Profile, Course, Category, Transaction from django.urls import reverse from datetime import datetime from django.db.models import F import json # Create your views ...
{ "repo_name": "PNNutkung/Coursing-Field", "path": "account/views.py", "copies": "1", "size": "5730", "license": "apache-2.0", "hash": -6886242633752246000, "line_mean": 43.4263565891, "line_max": 256, "alpha_frac": 0.6366492147, "autogenerated": false, "ratio": 3.9246575342465753, "config_test"...
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.http import HttpResponse from django.conf import settings from django.contrib.auth import login from maps import forms def getUserIdFromUserName(userName): try: user = User.object...
{ "repo_name": "agilman/django_maps2", "path": "maps/views.py", "copies": "1", "size": "1400", "license": "mit", "hash": 204801022712526460, "line_mean": 27, "line_max": 77, "alpha_frac": 0.6892857143, "autogenerated": false, "ratio": 4.057971014492754, "config_test": false, "has_no_keywords":...
from django.shortcuts import render, redirect from django.contrib.auth.views import logout, login from django.contrib.auth.models import User from django.contrib.auth import forms from django.contrib.auth.decorators import login_required #from . import forms @login_required def user_create(request): user = User()...
{ "repo_name": "beatdown0514/mahjong", "path": "accounts/views.py", "copies": "1", "size": "1236", "license": "mit", "hash": 2238882612291264000, "line_mean": 31.5526315789, "line_max": 72, "alpha_frac": 0.6796116505, "autogenerated": false, "ratio": 3.8990536277602525, "config_test": false, "...
from django.shortcuts import render, redirect from django.contrib import auth from django.contrib import messages from django.conf import settings from django.contrib.auth.decorators import login_required from github.models import Hiren import requests # Create your views here. def index(request): return render(r...
{ "repo_name": "pyprism/Hiren-Git-Commit-Reminder", "path": "github/views.py", "copies": "1", "size": "2696", "license": "mit", "hash": -2936200159825335000, "line_mean": 32.7, "line_max": 116, "alpha_frac": 0.6138724036, "autogenerated": false, "ratio": 3.89033189033189, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib import auth from django.core.context_processors import csrf from django.contrib.auth.decorators import login_required from webapp.models import Purchase,Depart,Category,PO,POP from webapp.forms import PurchaseForm from loginsys.models import CustomUser f...
{ "repo_name": "SemenMartynov/kormushka", "path": "kormushka/webapp/views.py", "copies": "1", "size": "5857", "license": "mit", "hash": -4034971201218219500, "line_mean": 44.1052631579, "line_max": 192, "alpha_frac": 0.7413457799, "autogenerated": false, "ratio": 2.5095168374816983, "config_test...
from django.shortcuts import render, redirect from django.contrib import auth from polls.apps.auth_service.forms import LoginForm, UserCreationForm def login(request): args = dict() args['form'] = LoginForm() if request.POST: user_form = LoginForm(request.POST) if user_form.is_valid(): ...
{ "repo_name": "AndreyRem/polls", "path": "polls/polls/apps/auth_service/views.py", "copies": "1", "size": "1534", "license": "apache-2.0", "hash": -1693705536027597300, "line_mean": 33.1111111111, "line_max": 138, "alpha_frac": 0.5899608866, "autogenerated": false, "ratio": 4.068965517241379, "...
from django.shortcuts import render, redirect; from django.contrib import auth; def logout(request): auth.logout(request) return redirect('/') def login(request): if request.method == "GET": return render(request, "auth/login.html"); elif request.method == "POST": username = request.PO...
{ "repo_name": "khansrk/khanadvocates", "path": "advocates/auth.py", "copies": "2", "size": "2173", "license": "bsd-3-clause", "hash": -1025705033184415600, "line_mean": 40, "line_max": 128, "alpha_frac": 0.5830648873, "autogenerated": false, "ratio": 4.480412371134021, "config_test": false, "...
from django.shortcuts import render, redirect; from django.contrib import auth; def logout(request): auth.logout(request) return render(request,'newsapp/logout.html') def login(request): if request.method == "GET": return render(request, "newsapp/login.html"); elif request.method == "POST": ...
{ "repo_name": "khansrk/newsappsrk", "path": "newsapp/auth.py", "copies": "1", "size": "2008", "license": "mit", "hash": 7202225242542064000, "line_mean": 42.652173913, "line_max": 128, "alpha_frac": 0.6210159363, "autogenerated": false, "ratio": 4.318279569892473, "config_test": false, "has_n...
from django.shortcuts import render,redirect from django.contrib import messages from datospersonalesapp.models import Paciente from signosvitalesapp.models import SignosVitales from .forms import NutricionForm, DatosNutricionalesForm from .models import Nutricion, GruposAlimentos, AlimentosGrupo import json # Create y...
{ "repo_name": "anderson7ru/bienestarues", "path": "nutricionapp/views.py", "copies": "1", "size": "2197", "license": "mit", "hash": 165794455139894270, "line_mean": 42.96, "line_max": 135, "alpha_frac": 0.6836595357, "autogenerated": false, "ratio": 3.085674157303371, "config_test": false, "h...
from django.shortcuts import render, redirect from django.contrib import messages from django.conf import settings from io import BytesIO from django.http import HttpResponse from reportlab.pdfgen import canvas from reportlab.lib.enums import TA_CENTER,TA_JUSTIFY from reportlab.lib.pagesizes import A4,LEGAL,landscape f...
{ "repo_name": "anderson7ru/bienestarues", "path": "psicologiaapp/views.py", "copies": "1", "size": "23571", "license": "mit", "hash": -5996938483862920000, "line_mean": 44.1570881226, "line_max": 173, "alpha_frac": 0.6684060922, "autogenerated": false, "ratio": 2.8004039443982416, "config_test"...
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth import ( login as auth_login, logout as auth_logout ) from profiles.forms import RegistrationForm, LoginForm def register(request): form = Re...
{ "repo_name": "kemalbsoylu/veganmekan", "path": "profiles/views.py", "copies": "1", "size": "1300", "license": "mit", "hash": -7501353807724921000, "line_mean": 21.1551724138, "line_max": 61, "alpha_frac": 0.5813229572, "autogenerated": false, "ratio": 3.893939393939394, "config_test": false, ...
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm, AuthenticationForm, PasswordResetForm from django.contrib.auth import login, authenticate, logout, get_user_model from django.contrib.auth...
{ "repo_name": "anderson7ru/bienestarues", "path": "bienestarhome/views.py", "copies": "1", "size": "3979", "license": "mit", "hash": -6659937622019813000, "line_mean": 36.8952380952, "line_max": 130, "alpha_frac": 0.7220407137, "autogenerated": false, "ratio": 3.1183385579937304, "config_test":...
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth.views import login as login_view from django.db.models import Q from .forms import VendorRegistrationForm def _vendor_account_exists(): return User.objects.filter...
{ "repo_name": "sorz/isi", "path": "store/account_admin/views.py", "copies": "1", "size": "1198", "license": "mit", "hash": -2727272379430928000, "line_mean": 28.2195121951, "line_max": 87, "alpha_frac": 0.6886477462, "autogenerated": false, "ratio": 4.074829931972789, "config_test": false, "h...
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.models import User from users.forms import UserInvitationForm from django.views.generic import View from users.models import SignupInvitation from django.core.mail import send_mail class UserInvitationView(View)...
{ "repo_name": "thiagoferreiraw/mixapp", "path": "users/views/user_invitation_view.py", "copies": "1", "size": "1546", "license": "mit", "hash": 5499435756903964000, "line_mean": 45.8484848485, "line_max": 155, "alpha_frac": 0.6895213454, "autogenerated": false, "ratio": 3.6635071090047395, "con...
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib import auth from django.contrib.auth.models import User from accounting.helpers import AccHelper from django.db import IntegrityError, transaction from django.contrib.auth.decorators import login_required from django.c...
{ "repo_name": "pyprism/MoneyBag", "path": "base/views.py", "copies": "2", "size": "8717", "license": "mit", "hash": -2142334504959262200, "line_mean": 39.1705069124, "line_max": 105, "alpha_frac": 0.6265917173, "autogenerated": false, "ratio": 4.143060836501901, "config_test": false, "has_no_...
from django.shortcuts import render, redirect from django.contrib import messages from django.core.urlresolvers import reverse from django.views.decorators.http import require_POST from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework import status from .form...
{ "repo_name": "shakib609/django-url-shortener", "path": "apps/shortener/views.py", "copies": "1", "size": "1560", "license": "mit", "hash": -4603639294385066000, "line_mean": 26.8571428571, "line_max": 78, "alpha_frac": 0.6762820513, "autogenerated": false, "ratio": 3.832923832923833, "config_t...
from django.shortcuts import render, redirect from django.contrib import messages from django.db import IntegrityError from .models import Link, Bookmark from .forms import BookmarkForm def index(request, template_name='bookmarks/index.html', context={}): form = BookmarkForm(request.POST or None) bookmarl_l...
{ "repo_name": "gchandrasa/linkclone", "path": "linkclone/apps/bookmarks/views.py", "copies": "1", "size": "1674", "license": "mit", "hash": -7247727422861584000, "line_mean": 27.8620689655, "line_max": 86, "alpha_frac": 0.6403823178, "autogenerated": false, "ratio": 3.902097902097902, "config_t...
from django.shortcuts import render, redirect from django.contrib import messages from django.urls import reverse from django.template import RequestContext from django.apps import apps import hmac, base64, hashlib, binascii, os import shopify def _new_session(shop_url): api_version = apps.get_app_config('shopify_...
{ "repo_name": "Shopify/shopify_django_app", "path": "shopify_app/views.py", "copies": "1", "size": "2796", "license": "mit", "hash": 311580839186581950, "line_mean": 38.9428571429, "line_max": 95, "alpha_frac": 0.6795422031, "autogenerated": false, "ratio": 3.6549019607843136, "config_test": fa...
from django.shortcuts import render, redirect from django.contrib import messages from events.forms import EventForm from django.views.generic import View from events.services import PlacesService from users.user_service import UserService from users.user_enums import UserGroupsEnum class EventCreateView(View): t...
{ "repo_name": "thiagoferreiraw/mixapp", "path": "events/views/create_event_view.py", "copies": "1", "size": "1568", "license": "mit", "hash": 3554925264028527600, "line_mean": 37.243902439, "line_max": 98, "alpha_frac": 0.6696428571, "autogenerated": false, "ratio": 3.989821882951654, "config_t...
from django.shortcuts import render, redirect from django.contrib import messages from .models import User,Stock,Basket def login(request): context = {'user_username': request.POST['name'],'user_pass': request.POST['pass']} result = User.objects.loginchecks(context) userobject = context['user_username'] response ...
{ "repo_name": "kylemaa/Futuro", "path": "futuro/apps/first_app/views.py", "copies": "1", "size": "3033", "license": "mit", "hash": 326257394359467700, "line_mean": 26.3243243243, "line_max": 104, "alpha_frac": 0.6890867128, "autogenerated": false, "ratio": 3.5390898483080515, "config_test": fal...
from django.shortcuts import render, redirect from django.contrib import messages from depot.models import Station, Area, Brand from depot.forms import StationForm, SearchForm, EntryForm def add_station(request): if request.method == 'POST': form = StationForm(request.POST) if form.is_valid(): ...
{ "repo_name": "boyombo/django-stations", "path": "stations/depot/views.py", "copies": "1", "size": "2139", "license": "mit", "hash": -8008287989665751000, "line_mean": 37.1964285714, "line_max": 77, "alpha_frac": 0.6044880785, "autogenerated": false, "ratio": 3.9104204753199268, "config_test": ...
from django.shortcuts import render, redirect from django.contrib.sites.models import Site from forms import AdminForm from django.contrib.auth.models import User def require_no_users(func): """ Decorator to ensure that once a user is created, the wizard is disabled. """ def inner(*args, **kwargs): if ...
{ "repo_name": "jscott1989/holloway", "path": "wizard/views.py", "copies": "1", "size": "1706", "license": "mit", "hash": 2378869670420516000, "line_mean": 28.9298245614, "line_max": 159, "alpha_frac": 0.6359906213, "autogenerated": false, "ratio": 3.7827050997782705, "config_test": false, "ha...
from django.shortcuts import render, redirect from django.contrib.staticfiles.views import serve from storemanage.models import Ticket, Currency from customermanage.models import Coupon from django.contrib.auth.decorators import login_required, permission_required from django.http import JsonResponse import requests ...
{ "repo_name": "Go-In/go-coup", "path": "web/storemanage/views/getCoupon.py", "copies": "1", "size": "1353", "license": "mit", "hash": -3209062179120518700, "line_mean": 30.4651162791, "line_max": 78, "alpha_frac": 0.5883222469, "autogenerated": false, "ratio": 4.087613293051359, "config_test": ...
from django.shortcuts import render, redirect from django.contrib.staticfiles.views import serve from storemanage.models import Ticket, Currency from customermanage.models import Wallet, Qrcode from usermanage.models import Store from django.http import JsonResponse import requests # Create your views here. def index...
{ "repo_name": "Go-In/go-coup", "path": "web/index/views.py", "copies": "1", "size": "4222", "license": "mit", "hash": 292508026957272400, "line_mean": 29.1571428571, "line_max": 86, "alpha_frac": 0.6032685931, "autogenerated": false, "ratio": 3.716549295774648, "config_test": false, "has_no_k...
from django.shortcuts import render, redirect from django.core.cache import cache from redbox.client import fetch_inventory def index(request): # If zip code entered, without javascript working, # we'll receive the zip code here. Let's handle that # and redirect to the proper place: zip_code = request...
{ "repo_name": "thinkjson/movies.thinkjson.com", "path": "movies/redbox/views.py", "copies": "1", "size": "1136", "license": "mit", "hash": 1242285781232668200, "line_mean": 35.6451612903, "line_max": 66, "alpha_frac": 0.6628521127, "autogenerated": false, "ratio": 3.7740863787375414, "config_te...
from django.shortcuts import render, redirect from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.core.urlresolvers import reverse from rest_framework import viewsets from django.core import serializers from serializers im...
{ "repo_name": "xran-deex/Toury-Django", "path": "Toury/views.py", "copies": "1", "size": "4101", "license": "mit", "hash": -723577401682412500, "line_mean": 33.7627118644, "line_max": 86, "alpha_frac": 0.6405754694, "autogenerated": false, "ratio": 3.5910683012259192, "config_test": false, "h...
from django.shortcuts import render, redirect from django.core.exceptions import ObjectDoesNotExist from django.contrib import messages from results.models import ContestResult from contests.models import Contest from tags.models import Tag from .forms import FlagForm from .models import Challenge def index(request)...
{ "repo_name": "super1337/Super1337-CTF", "path": "challenges/views.py", "copies": "1", "size": "4896", "license": "mit", "hash": -321462514452467460, "line_mean": 44.3333333333, "line_max": 114, "alpha_frac": 0.6192810458, "autogenerated": false, "ratio": 4.24263431542461, "config_test": true, ...
from django.shortcuts import render, redirect from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.utils import timezone from django.http import JsonResponse from django.core.mail import EmailMultiAlternatives from django.template import Context from django.temp...
{ "repo_name": "GzkV/bookstore_project", "path": "store/views.py", "copies": "1", "size": "9467", "license": "mit", "hash": -7912699214988054000, "line_mean": 33.3043478261, "line_max": 114, "alpha_frac": 0.5348051125, "autogenerated": false, "ratio": 4.463460631777464, "config_test": false, "...
from django.shortcuts import render, redirect from django.core.exceptions import ObjectDoesNotExist, PermissionDenied from django.contrib.auth.decorators import login_required, permission_required from django.views.decorators.http import require_http_methods from django.contrib import messages from tracker.models impo...
{ "repo_name": "KenN7/LifeTracker", "path": "lifetracker/tracker/views.py", "copies": "1", "size": "1262", "license": "apache-2.0", "hash": 352890842000070500, "line_mean": 28.3488372093, "line_max": 78, "alpha_frac": 0.6735340729, "autogenerated": false, "ratio": 3.931464174454829, "config_test...
from django.shortcuts import render, redirect from django.core.exceptions import SuspiciousOperation, ValidationError from django.contrib import messages from helpers.form_helpers import extract_model_field_meta_data from .forms import ContactForm from .models import ContactFormMessage def contact_page(request): i...
{ "repo_name": "kieranmathieson/feds", "path": "contact/views.py", "copies": "1", "size": "2031", "license": "apache-2.0", "hash": 5902355714042663000, "line_mean": 37.320754717, "line_max": 79, "alpha_frac": 0.5420974889, "autogenerated": false, "ratio": 4.723255813953489, "config_test": false,...
from django.shortcuts import render, redirect from django.core.mail import EmailMultiAlternatives from django.core.urlresolvers import reverse from django.contrib.auth.views import password_reset, password_reset_confirm from django.contrib import messages from django.contrib.auth import authenticate, login from django....
{ "repo_name": "spatialcollective/watsan", "path": "user_control/views.py", "copies": "1", "size": "5179", "license": "mit", "hash": 3413811720551924000, "line_mean": 38.8461538462, "line_max": 186, "alpha_frac": 0.7134581966, "autogenerated": false, "ratio": 3.4027595269382394, "config_test": f...
from django.shortcuts import render, redirect from django.core.management import call_command from django.contrib.auth.decorators import login_required from .forms import UserForm, RegisterForm from .models import UserRepository, DeployKey, Token # Create your views here. @login_required def key_list(request, respon...
{ "repo_name": "vicaroni/fetch", "path": "fetchkeys/fetch/views.py", "copies": "1", "size": "1720", "license": "mit", "hash": 6604769615922314000, "line_mean": 32.0769230769, "line_max": 119, "alpha_frac": 0.6447674419, "autogenerated": false, "ratio": 3.8826185101580135, "config_test": false, ...