text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render from django.contrib.auth.models import User from django.http import Http404 from django.views.generic import DetailView from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.shortcuts import get_object_or_404 from ...
{ "repo_name": "ImmaculateObsession/nest", "path": "profiles/views.py", "copies": "1", "size": "1497", "license": "mit", "hash": 4936888031680211000, "line_mean": 28.3725490196, "line_max": 80, "alpha_frac": 0.6546426186, "autogenerated": false, "ratio": 4.12396694214876, "config_test": false, ...
from django.shortcuts import render from django.contrib.auth.models import User from django.http import HttpResponse,HttpRequest from django.contrib.auth import authenticate, login,logout ##from models import Personuser def login(request): if request.user.is_authenticated: logout(request) mlst=[] passwdmatch=Fals...
{ "repo_name": "y73isc00l/WishGift", "path": "myproject/polls/login.py", "copies": "1", "size": "1553", "license": "apache-2.0", "hash": 4455761817865138000, "line_mean": 37.825, "line_max": 104, "alpha_frac": 0.7417900837, "autogenerated": false, "ratio": 3.505643340857788, "config_test": false...
from django.shortcuts import render from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect from django.views.generic.detail import SingleObjectMixin from django.views.generic import TemplateView,ListView from django.views.generic.edit import CreateView, UpdateView, Delete...
{ "repo_name": "fim/locksmith-server", "path": "locksmith/core/views.py", "copies": "1", "size": "2562", "license": "bsd-2-clause", "hash": 2778206406863694300, "line_mean": 29.8674698795, "line_max": 73, "alpha_frac": 0.7021857923, "autogenerated": false, "ratio": 3.8295964125560538, "config_te...
from django.shortcuts import render from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.contrib.auth import authenticate, login from django.forms.forms import NON_FIELD_ERRORS from django.conf import settings from django.core.urlresolvers import reverse from .forms impo...
{ "repo_name": "tabdon/crmeasy-deploy-build", "path": "crmapp/subscribers/views.py", "copies": "2", "size": "2676", "license": "mit", "hash": -3315438001053985300, "line_mean": 40.1692307692, "line_max": 78, "alpha_frac": 0.5840807175, "autogenerated": false, "ratio": 4.401315789473684, "config_...
#from django.shortcuts import render from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.auth.decorators import user_passes_test from django import forms from helpdesk imp...
{ "repo_name": "boyombo/helper", "path": "tickets/views.py", "copies": "1", "size": "2175", "license": "mit", "hash": 7529778064933182000, "line_mean": 46.2826086957, "line_max": 118, "alpha_frac": 0.6671264368, "autogenerated": false, "ratio": 3.6554621848739495, "config_test": false, "has_no...
from django.shortcuts import render from django.contrib.auth.models import User from django.shortcuts import redirect, get_object_or_404 from django.core.urlresolvers import reverse from .forms import RegistroUserForm, EditarUserForm from .models import UserProfile from django.contrib.auth import authenticate, login, l...
{ "repo_name": "vimeworks/ImpaQto", "path": "accounts/views.py", "copies": "1", "size": "4370", "license": "mit", "hash": -8416406519339504000, "line_mean": 40.6095238095, "line_max": 274, "alpha_frac": 0.6456855116, "autogenerated": false, "ratio": 4.034164358264081, "config_test": false, "ha...
from django.shortcuts import render from django.contrib.auth.models import User from django.urls import reverse_lazy from queries.models import Queries, QueryInstance from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from django.views.generic.edit import UpdateView fr...
{ "repo_name": "BigQueryManager/bigquerymgr", "path": "guery_manager/queries/views.py", "copies": "1", "size": "3474", "license": "mit", "hash": -5132637946544282000, "line_mean": 36.3548387097, "line_max": 148, "alpha_frac": 0.5512377663, "autogenerated": false, "ratio": 3.62252346193952, "conf...
from django.shortcuts import render from django.contrib.auth.models import User from django.utils.text import slugify from django.core.exceptions import ObjectDoesNotExist from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.p...
{ "repo_name": "skeuomorf/Binge", "path": "binge/core/views.py", "copies": "1", "size": "1811", "license": "mit", "hash": -633399403191731600, "line_mean": 35.9591836735, "line_max": 84, "alpha_frac": 0.6824958586, "autogenerated": false, "ratio": 4.033407572383074, "config_test": false, "has_...
from django.shortcuts import render from django.contrib.auth.models import User from model_one.models import Publisher from django.http.response import HttpResponse from model_one.forms import PublisherForm # Create your views here. def hello(request): print(request.POST.get('key')) user_list = User.objects.al...
{ "repo_name": "SureeLee/TestDjango", "path": "demo/model_one/views.py", "copies": "1", "size": "2074", "license": "apache-2.0", "hash": -5165274258993467000, "line_mean": 33.6034482759, "line_max": 81, "alpha_frac": 0.6016949153, "autogenerated": false, "ratio": 3.6875, "config_test": false, ...
from django.shortcuts import render from django.contrib.auth.models import User from rest_framework import status from rest_framework.authtoken.models import Token from django.contrib import auth from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.authentication...
{ "repo_name": "pyprism/Hiren-Reminder", "path": "api/views.py", "copies": "1", "size": "1580", "license": "mit", "hash": 592939078398649500, "line_mean": 34.1111111111, "line_max": 113, "alpha_frac": 0.7398734177, "autogenerated": false, "ratio": 4.376731301939058, "config_test": false, "has_...
from django.shortcuts import render from django.contrib.auth.models import User from core.models import Species, Report, Location from core.permissions import IsOwnerOrReadOnly from rest_framework import generics, viewsets, permissions from core.serializers import SpeciesSerializer, ReportSerializer from django_facebo...
{ "repo_name": "govhack-botaniser/botaniser", "path": "core/views.py", "copies": "1", "size": "2263", "license": "mit", "hash": -1870256861166086700, "line_mean": 30.8732394366, "line_max": 74, "alpha_frac": 0.6827220504, "autogenerated": false, "ratio": 3.9911816578483243, "config_test": false,...
from django.shortcuts import render from django.contrib.auth.models import User from .forms import RegistrationForm def regform(request): # If the request method is POST, it means that the form has been submitted # and we need to validate it. if request.method == 'POST': # Create a RegistrationFor...
{ "repo_name": "SherSingh07/albums", "path": "reg/views.py", "copies": "4", "size": "2333", "license": "apache-2.0", "hash": -3223993874683359000, "line_mean": 43.8653846154, "line_max": 115, "alpha_frac": 0.6138019717, "autogenerated": false, "ratio": 4.780737704918033, "config_test": false, ...
from django.shortcuts import render from django.contrib.auth.views import login as django_login from django.contrib.auth.decorators import login_required from django.conf import settings @login_required def index(request): bootstrap_token = None if settings.DEBUG: from iconcollections.models import C...
{ "repo_name": "shanzi/myicons", "path": "frontend/views.py", "copies": "3", "size": "1027", "license": "bsd-2-clause", "hash": -4807918641848211000, "line_mean": 34.4137931034, "line_max": 101, "alpha_frac": 0.6864654333, "autogenerated": false, "ratio": 4.54424778761062, "config_test": false, ...
from django.shortcuts import render from django.contrib.auth.views import login from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse, HttpResponseRedirect from django.template import loader, RequestContext from django.shortcuts import get_object_or_404, render, render_to_response fr...
{ "repo_name": "impactlab/jps-handoff", "path": "webapp/viewer/views.py", "copies": "1", "size": "4887", "license": "mit", "hash": 1370356806529453600, "line_mean": 34.4130434783, "line_max": 79, "alpha_frac": 0.6987927154, "autogenerated": false, "ratio": 3.4832501781895937, "config_test": fals...
from django.shortcuts import render from django.contrib.gis.geoip import GeoIP from django.contrib.gis.geos import Point from haystack.query import SearchQuerySet from nearme.models import CampusLocation def coarse(request): ctx = {} ctx['demo'] = "coarse" template_name = "nearme/front/index.html" ip...
{ "repo_name": "octaflop/geovinci", "path": "apps/nearme/views/api.py", "copies": "1", "size": "2155", "license": "mit", "hash": 1799927755184301600, "line_mean": 30.6911764706, "line_max": 103, "alpha_frac": 0.5944315545, "autogenerated": false, "ratio": 3.509771986970684, "config_test": false,...
from django.shortcuts import render from django.contrib import admin from django.contrib.admin.sites import AdminSite from django.utils.translation import ugettext as _, ugettext_lazy from django.urls import NoReverseMatch, reverse from django.contrib.auth.views import password_reset, password_reset_done, password_rese...
{ "repo_name": "liuyonggg/learning_python", "path": "bookloop/bookloop/sites.py", "copies": "1", "size": "10446", "license": "mit", "hash": -6653493504657196000, "line_mean": 41.2914979757, "line_max": 137, "alpha_frac": 0.6050162742, "autogenerated": false, "ratio": 4.146883684001588, "config_t...
from django.shortcuts import render from django.contrib import admin from django.core.paginator import Paginator from django import forms from jmboarticles.models import Article from ummeli.livechat.models import LiveChat, LiveChatResponse class LiveChatAdminForm(forms.ModelForm): def __init__(self, *args, **kwa...
{ "repo_name": "praekelt/ummeli", "path": "ummeli/livechat/admin.py", "copies": "1", "size": "3486", "license": "bsd-3-clause", "hash": 4050120526477256700, "line_mean": 33.86, "line_max": 139, "alpha_frac": 0.6121629375, "autogenerated": false, "ratio": 3.856194690265487, "config_test": false, ...
from django.shortcuts import render from django.contrib import admin from django.core.paginator import Paginator from datetime import datetime from jmbo.admin import ModelBaseAdmin, ModelBaseAdminForm from livechat.models import LiveChat, LiveChatResponse class LiveChatAdminForm(ModelBaseAdminForm): class Meta:...
{ "repo_name": "praekelt/django-livechat", "path": "livechat/admin.py", "copies": "1", "size": "4836", "license": "bsd-3-clause", "hash": 7440087283647492000, "line_mean": 32.5833333333, "line_max": 84, "alpha_frac": 0.5533498759, "autogenerated": false, "ratio": 4.053646269907795, "config_test"...
from django.shortcuts import render from django.contrib import admin from django.utils.translation import ugettext as _, ugettext_lazy from django.views.generic import TemplateView from django.db.models import Q from reader.models import FriendShip, FRIEND_STATUS, Book, ReadBook from django.shortcuts import get_object_...
{ "repo_name": "liuyonggg/learning_python", "path": "bookloop/reader/views.py", "copies": "1", "size": "1537", "license": "mit", "hash": -4913875998857721000, "line_mean": 38.4102564103, "line_max": 106, "alpha_frac": 0.6616785947, "autogenerated": false, "ratio": 3.8233830845771144, "config_tes...
from django.shortcuts import render from django.contrib import auth from django.contrib.auth.decorators import login_required from django.http import HttpResponse,HttpResponseRedirect # Create your views here. def index (request): return render(request,'index.html') def login_action(request): if request.method...
{ "repo_name": "NJ-zero/Android", "path": "pydjango/guest/sign/views.py", "copies": "1", "size": "1187", "license": "mit", "hash": 2650192549945984000, "line_mean": 38.5666666667, "line_max": 87, "alpha_frac": 0.6604886268, "autogenerated": false, "ratio": 4.396296296296296, "config_test": false...
from django.shortcuts import render from django.contrib import auth from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from django.template import RequestContext, loader, Context from django.conf import settings import os from lib import git_lib def home_page(re...
{ "repo_name": "shobhitmittal/hacks_git", "path": "hc_git/hc_git_app/views.py", "copies": "1", "size": "1810", "license": "mit", "hash": -8768611457685983000, "line_mean": 36.7083333333, "line_max": 113, "alpha_frac": 0.7436464088, "autogenerated": false, "ratio": 3.370577281191806, "config_test...
from django.shortcuts import render from django.contrib import auth from django.http import HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import AuthenticationForm # Import all modules to be exported ...
{ "repo_name": "janpipek/oookbook", "path": "oookbook/views/__init__.py", "copies": "1", "size": "1267", "license": "mit", "hash": 5882351789138572000, "line_mean": 28.4651162791, "line_max": 60, "alpha_frac": 0.6985003946, "autogenerated": false, "ratio": 4.237458193979933, "config_test": false...
from django.shortcuts import render from django.contrib import auth from django.template.context_processors import csrf from django.shortcuts import render_to_response, RequestContext, HttpResponse from news.views import get_news_for_footer as nf from django.contrib.auth.models import User from django.core.mail import ...
{ "repo_name": "eprivalov/sendec", "path": "about/views.py", "copies": "1", "size": "4789", "license": "apache-2.0", "hash": 7784928005262162000, "line_mean": 31.5782312925, "line_max": 101, "alpha_frac": 0.6575485488, "autogenerated": false, "ratio": 3.472806381435823, "config_test": false, "...
from django.shortcuts import render from django.contrib import messages # Create your views here. from .forms import EmailForm, JoinForm from .models import Join def home(request): #print request.POST["email"], request.POST["email_2"] # form = EmailForm(request.POST or None) # This is using regular django forms # if...
{ "repo_name": "REALDrummer/PictureBook", "path": "joins/views.py", "copies": "1", "size": "1073", "license": "mit", "hash": 904142168361171600, "line_mean": 28.8055555556, "line_max": 88, "alpha_frac": 0.7204100652, "autogenerated": false, "ratio": 3.2222222222222223, "config_test": false, "h...
from django.shortcuts import render from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.urls import reverse from django.urls import reverse_l...
{ "repo_name": "p2pu/learning-circles", "path": "community_calendar/views.py", "copies": "1", "size": "2964", "license": "mit", "hash": 7016927383507443000, "line_mean": 35.1463414634, "line_max": 73, "alpha_frac": 0.7182860999, "autogenerated": false, "ratio": 3.9892328398384924, "config_test":...
from django.shortcuts import render from django.contrib import messages from django.core.urlresolvers import reverse from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.template.defaultfilters import slugify from django.contrib.auth.decorators import login_re...
{ "repo_name": "mozilla/gameon", "path": "gameon/submissions/views.py", "copies": "1", "size": "5177", "license": "bsd-3-clause", "hash": -8357209659306761000, "line_mean": 33.0592105263, "line_max": 84, "alpha_frac": 0.6100057949, "autogenerated": false, "ratio": 4.2055239642567015, "config_tes...
from django.shortcuts import render from django.contrib import messages from django.shortcuts import redirect from django.contrib.auth import login from django.contrib.auth.models import User from constance import config from django.contrib.auth.decorators import login_required from django.utils import timezone from dj...
{ "repo_name": "thorrak/fermentrack", "path": "firmware_flash/views.py", "copies": "1", "size": "16637", "license": "mit", "hash": -1517748442926149400, "line_mean": 45.9971751412, "line_max": 222, "alpha_frac": 0.6547454469, "autogenerated": false, "ratio": 4.117050235090324, "config_test": tru...
from django.shortcuts import render from django.contrib import messages from django.shortcuts import redirect from django.urls import reverse from django.contrib.auth.decorators import login_required from django.http import Http404 from amon.apps.dashboards.models import dashboard_model, dashboard_metrics_model from a...
{ "repo_name": "martinrusev/amonone", "path": "amon/apps/dashboards/views.py", "copies": "2", "size": "5598", "license": "mit", "hash": 3226754209400609000, "line_mean": 28.6243386243, "line_max": 130, "alpha_frac": 0.6459449804, "autogenerated": false, "ratio": 3.649282920469361, "config_test":...
from django.shortcuts import render from django.contrib import messages from django.views.generic.detail import DetailView from django.views.generic.list import ListView from django.views.generic.edit import ProcessFormView from django.views.generic.base import TemplateResponseMixin, ContextMixin, TemplateView, View fr...
{ "repo_name": "zazasa/TeaRoom", "path": "src/courses/views.py", "copies": "1", "size": "17762", "license": "mit", "hash": -7071619124404377000, "line_mean": 42.8567901235, "line_max": 209, "alpha_frac": 0.6141200315, "autogenerated": false, "ratio": 4.027664399092971, "config_test": false, "h...
from django.shortcuts import render from django.contrib import messages from django.views.generic import ListView, DetailView from django.views.generic import CreateView, UpdateView # from django.shortcuts import render # from django.shortcuts import get_object_or_404 # from django.shortcuts import get_list_or_404 # fr...
{ "repo_name": "robjordan/unesco_project", "path": "unesco/visits/views.py", "copies": "1", "size": "1634", "license": "apache-2.0", "hash": -604529758319655300, "line_mean": 27.1724137931, "line_max": 72, "alpha_frac": 0.6958384333, "autogenerated": false, "ratio": 4.147208121827411, "config_te...
from django.shortcuts import render from django.contrib.staticfiles.templatetags.staticfiles import static from django.views.generic import View from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect from ...
{ "repo_name": "6desislava6/PyDay", "path": "pyday_alarms/views.py", "copies": "1", "size": "1537", "license": "mit", "hash": -2920721278097898000, "line_mean": 42.3142857143, "line_max": 79, "alpha_frac": 0.6860158311, "autogenerated": false, "ratio": 4.075268817204301, "config_test": false, ...
from django.shortcuts import render from django.core.context_processors import csrf from django.contrib.auth.decorators import login_required from webapp.models import Purchase,POP from loginsys.models import CustomUser from django.contrib import auth from django.db.models import Sum,Count,Max,Min from django.utils imp...
{ "repo_name": "SemenMartynov/kormushka", "path": "kormushka/webapp/api/statistics_controller.py", "copies": "1", "size": "12849", "license": "mit", "hash": -133367366905856300, "line_mean": 40.6836734694, "line_max": 144, "alpha_frac": 0.711033132, "autogenerated": false, "ratio": 2.6189356700149...
from django.shortcuts import render from django.core.context_processors import csrf from django.contrib.auth import authenticate, login, logout from django.core.context_processors import csrf from django.http import HttpResponseRedirect def user_login(request): if request.method == 'GET': protected_form = {} pr...
{ "repo_name": "code-haven/django-treasurehunt", "path": "accounts/views.py", "copies": "1", "size": "1104", "license": "mit", "hash": 4290883589414651000, "line_mean": 25.9268292683, "line_max": 71, "alpha_frac": 0.7608695652, "autogenerated": false, "ratio": 3.820069204152249, "config_test": f...
from django.shortcuts import render from django.core.context_processors import csrf from django.http import HttpResponse, HttpResponseRedirect 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.core.urlresolv...
{ "repo_name": "ansal/offline-contacts", "path": "contacts/accounts/views.py", "copies": "1", "size": "2860", "license": "mit", "hash": 5989602848185351000, "line_mean": 27.61, "line_max": 63, "alpha_frac": 0.6346153846, "autogenerated": false, "ratio": 4.406779661016949, "config_test": false, ...
from django.shortcuts import render from django.core.context_processors import csrf from django.template import RequestContext from django.shortcuts import render_to_response, render from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseNotFound from django.http import * from django.conf impo...
{ "repo_name": "DESHRAJ/Sherlocked", "path": "sherlocked/views.py", "copies": "1", "size": "6548", "license": "apache-2.0", "hash": -3270409078949047300, "line_mean": 41.2516129032, "line_max": 159, "alpha_frac": 0.7382406842, "autogenerated": false, "ratio": 3.497863247863248, "config_test": fa...
from django.shortcuts import render from django.core.context_processors import request from ourplatform.models import * from django.http import * from urllib2 import Request import json from datetime import datetime, date from ourplatform import CJsonEncoder from django.core.serializers.json import DjangoJSONEncoder fr...
{ "repo_name": "redduck3/CodeRush", "path": "ourplatform/views.py", "copies": "1", "size": "11651", "license": "apache-2.0", "hash": -8725753000140927000, "line_mean": 33.8832335329, "line_max": 174, "alpha_frac": 0.6292163763, "autogenerated": false, "ratio": 3.971029311520109, "config_test": f...
from django.shortcuts import render from django.core.exceptions import ObjectDoesNotExist from django.contrib import messages from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from organi...
{ "repo_name": "amacnair/team-toolkit", "path": "clubbr/inventory/views.py", "copies": "1", "size": "4325", "license": "mit", "hash": 8404177495801945000, "line_mean": 33.3253968254, "line_max": 82, "alpha_frac": 0.6510982659, "autogenerated": false, "ratio": 4.231898238747553, "config_test": fa...
from django.shortcuts import render from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse from pastebin import settings from pastebin.util import queryset_to_list from pastes.models import Paste from comments.models import Comment from comments.forms import SubmitCommentForm fro...
{ "repo_name": "Matoking/pastebin-django", "path": "comments/views.py", "copies": "1", "size": "11159", "license": "unlicense", "hash": -478288149719149060, "line_mean": 38.7153024911, "line_max": 181, "alpha_frac": 0.5623263733, "autogenerated": false, "ratio": 4.3829536527886885, "config_test"...
from django.shortcuts import render from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.utils.decorators import method_decorator from imagestore.models import Album, Image from imagestore.models import image_applabel, image_classname from imagestore.models import...
{ "repo_name": "goldhand/art-portfolio", "path": "art-portfolio/pages/views.py", "copies": "1", "size": "2736", "license": "bsd-3-clause", "hash": 1062497729970863500, "line_mean": 37.5352112676, "line_max": 83, "alpha_frac": 0.7130847953, "autogenerated": false, "ratio": 4.241860465116279, "con...
from django.shortcuts import render from django.core.exceptions import PermissionDenied from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from django.db.models import Avg, Count, Max, ExpressionWrapper, F, CharField import json...
{ "repo_name": "pythonvietnam/nms", "path": "apps/transaction/views.py", "copies": "1", "size": "3975", "license": "mit", "hash": -8015245325682408000, "line_mean": 37.5922330097, "line_max": 204, "alpha_frac": 0.5705660377, "autogenerated": false, "ratio": 3.943452380952381, "config_test": fals...
from django.shortcuts import render from django.core.exceptions import ValidationError import os import numpy as np import pandas as pd import tensorflow as tf from .models import Champion, Position from .forms import DraftForm from .inference_models.inference_model import QNetInferenceModel, SoftmaxInferenceModel fro...
{ "repo_name": "lightd22/swainBot-web", "path": "predict/views.py", "copies": "1", "size": "5976", "license": "apache-2.0", "hash": -726070189258703100, "line_mean": 39.1073825503, "line_max": 127, "alpha_frac": 0.593875502, "autogenerated": false, "ratio": 3.422680412371134, "config_test": fals...
from django.shortcuts import render from django.core.exceptions import ValidationError, ObjectDoesNotExist from django.http import HttpResponse from django.http import Http404 from core.keyvalue.utils import get_aa, get_docstrings import simplejson as json from core.network.models import NetworkKeyValue from core.ra...
{ "repo_name": "rtucker-mozilla/inventory", "path": "core/keyvalue/views.py", "copies": "2", "size": "5100", "license": "bsd-3-clause", "hash": 4523104476132392000, "line_mean": 29.1775147929, "line_max": 76, "alpha_frac": 0.5882352941, "autogenerated": false, "ratio": 3.79182156133829, "config_...
from django.shortcuts import render from django.core.files.uploadedfile import InMemoryUploadedFile from .forms import VideoForm from .video_processing import video_processing import tensorflow as tf from PIL import Image from io import BytesIO graph = tf.get_default_graph() def home(request): return render(re...
{ "repo_name": "nikolaystanishev/traffic-sign-recognition", "path": "web/Aovek/views.py", "copies": "1", "size": "1389", "license": "mit", "hash": 2754198067425229300, "line_mean": 29.1956521739, "line_max": 79, "alpha_frac": 0.6198704104, "autogenerated": false, "ratio": 4.014450867052023, "con...
from django.shortcuts import render from django.core import serializers from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorator...
{ "repo_name": "AcademicsToday/py-academicstoday", "path": "academicstoday_project/registrar/views/courses.py", "copies": "3", "size": "2982", "license": "apache-2.0", "hash": -6294785634963309000, "line_mean": 36.7594936709, "line_max": 84, "alpha_frac": 0.6948356808, "autogenerated": false, "rat...
from django.shortcuts import render from django.core import serializers from django.core.urlresolvers import reverse from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.contrib.auth import authenticate, login, logout from .models import * import json import logging import hashlib import io...
{ "repo_name": "drfrink/adminLTE_Django", "path": "fileUpload/views.py", "copies": "1", "size": "1385", "license": "mit", "hash": -7687736078067765000, "line_mean": 35.4736842105, "line_max": 104, "alpha_frac": 0.7436823105, "autogenerated": false, "ratio": 3.3863080684596576, "config_test": fal...
from django.shortcuts import render from django.core import serializers from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.conf import settings import json import datetime from account.models import PrivateMessage from a...
{ "repo_name": "AcademicsToday/py-academicstoday", "path": "academicstoday_project/account/views/mail.py", "copies": "3", "size": "3380", "license": "apache-2.0", "hash": -1545478069555977200, "line_mean": 36.1538461538, "line_max": 104, "alpha_frac": 0.5964497041, "autogenerated": false, "ratio":...
from django.shortcuts import render from django.core import serializers from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.conf import settings from registrar.m...
{ "repo_name": "AcademicsToday/academicstoday-django", "path": "academicstoday_project/student/views/lecture_note.py", "copies": "3", "size": "2534", "license": "apache-2.0", "hash": 5173894198308791000, "line_mean": 38.59375, "line_max": 74, "alpha_frac": 0.6543014996, "autogenerated": false, "ra...
from django.shortcuts import render from django.core import serializers from django.http import JsonResponse import urllib.parse from random import randint from coffice.models import Spot, Comment from user.models import User from rest_framework.decorators import api_view from rest_framework.response import Response...
{ "repo_name": "lsdlab/awesome_coffice", "path": "coffice/views.py", "copies": "1", "size": "7718", "license": "mit", "hash": 7632494248476909000, "line_mean": 34.8976744186, "line_max": 173, "alpha_frac": 0.632547292, "autogenerated": false, "ratio": 3.6217738151102767, "config_test": false, ...
from django.shortcuts import render from django.core import serializers import json from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.conf import settings from...
{ "repo_name": "AcademicsToday/py-academicstoday", "path": "academicstoday_project/registrar/views/enrollment.py", "copies": "3", "size": "3319", "license": "apache-2.0", "hash": -2970759611849248000, "line_mean": 34.3085106383, "line_max": 87, "alpha_frac": 0.6878577885, "autogenerated": false, "...
from django.shortcuts import render from django.core import serializers import json import datetime import os from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django...
{ "repo_name": "AcademicsToday/academicstoday-django", "path": "academicstoday_project/publisher/views/my_publication.py", "copies": "3", "size": "4339", "license": "apache-2.0", "hash": -5204592473187701000, "line_mean": 38.0900900901, "line_max": 86, "alpha_frac": 0.618114773, "autogenerated": fal...
from django.shortcuts import render from django.core import serializers from landpage.models import LandpageTeamMember from landpage.models import LandpageTopPickCourse from landpage.models import LandpageCoursePreview from landpage.models import CoursePreview from landpage.models import LandpageContactMessage from la...
{ "repo_name": "AcademicsToday/academicstoday-django", "path": "academicstoday_project/landpage/views/landpage.py", "copies": "3", "size": "3089", "license": "apache-2.0", "hash": 4647996379117096000, "line_mean": 37.1358024691, "line_max": 108, "alpha_frac": 0.5888637099, "autogenerated": false, ...
from django.shortcuts import render from django.core import serializers import json from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required def login_modal(request): retu...
{ "repo_name": "donnydevito/py-academicstoday", "path": "academicstoday_project/login/views.py", "copies": "3", "size": "1642", "license": "apache-2.0", "hash": -3305843192819088400, "line_mean": 38.0952380952, "line_max": 96, "alpha_frac": 0.6175395859, "autogenerated": false, "ratio": 4.40214477...
from django.shortcuts import render from django.core.mail import EmailMessage from django.template.context_processors import csrf from django.http import HttpResponseRedirect from django.contrib import messages from .forms import ContactForm from .models import Contact # Create your views here. def contact(request)...
{ "repo_name": "Busaka/esl", "path": "src/contact/views.py", "copies": "1", "size": "1360", "license": "mit", "hash": 6474885373229075000, "line_mean": 29.2222222222, "line_max": 110, "alpha_frac": 0.6345588235, "autogenerated": false, "ratio": 4.345047923322683, "config_test": false, "has_no_...
from django.shortcuts import render from django.core.mail import send_mail from django.conf import settings from .forms import ContactForm # Create your views here. def contact(request): title = 'Contact' form = ContactForm(request.POST or None) confirm_message = None if form.is_valid(): nam...
{ "repo_name": "spham1412/ShoppingWeb", "path": "ShopKemNghia/contact/views.py", "copies": "1", "size": "1146", "license": "mit", "hash": 2874229200679857700, "line_mean": 32.7058823529, "line_max": 80, "alpha_frac": 0.6038394415, "autogenerated": false, "ratio": 4.122302158273381, "config_test"...
from django.shortcuts import render from django.core.mail import send_mail from django.conf import settings from .forms import SignUpForm, ContactForm from .models import SignUp def home(request): form = SignUpForm(request.POST or None) name = str(request.user) context = { 'title' : "Hello %s" %name.title(), ...
{ "repo_name": "Amaranthos/DjangoPlayground", "path": "src/newsletter/views.py", "copies": "1", "size": "1074", "license": "mit", "hash": 8323435254181412000, "line_mean": 21.3958333333, "line_max": 120, "alpha_frac": 0.6815642458, "autogenerated": false, "ratio": 3.0253521126760563, "config_tes...
from django.shortcuts import render from django.core.mail import send_mail from .forms import ContactForm, SignupForm, BookBearLetterForm # Create your views here. def home(request): title = "Welcome" form = SignupForm(request.POST or None) context = { 'title': title, 'form': form } if form.is_valid(): # f...
{ "repo_name": "raptattention/booksbeyondmagazine", "path": "src/newsletter/views.py", "copies": "1", "size": "1373", "license": "mit", "hash": -5622511599662200000, "line_mean": 20.8095238095, "line_max": 125, "alpha_frac": 0.7152221413, "autogenerated": false, "ratio": 3.14187643020595, "confi...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import login_required from modularodm import Q from website.project.model import Comment from .serializers import serialize_comment def get_spam_list(): query = ( ...
{ "repo_name": "GageGaskins/osf.io", "path": "admin/spam/views.py", "copies": "1", "size": "1433", "license": "apache-2.0", "hash": 3085598083919740000, "line_mean": 26.0377358491, "line_max": 72, "alpha_frac": 0.6545708304, "autogenerated": false, "ratio": 3.600502512562814, "config_test": fals...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import permission_required from wagtail.wagtailadmin.modal_workflow import render_modal_workflow from wagtail.wagtailadmin.forms import SearchForm from wagtail.wagtailsearch...
{ "repo_name": "100Shapes/wagtail", "path": "wagtail/wagtailsearch/views/queries.py", "copies": "6", "size": "1771", "license": "bsd-3-clause", "hash": -5010656205381291000, "line_mean": 32.4150943396, "line_max": 137, "alpha_frac": 0.6900056465, "autogenerated": false, "ratio": 4.080645161290323,...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q from django.contrib import messages from .models import Profile from .forms import ContactForm def home(request): template = 'core/home.html' profile = Profile.objects.all()[...
{ "repo_name": "VWApplications/VWCurriculum", "path": "vwcurriculum/core/views.py", "copies": "1", "size": "3627", "license": "mpl-2.0", "hash": -6409808521040194000, "line_mean": 28.7213114754, "line_max": 93, "alpha_frac": 0.7032542747, "autogenerated": false, "ratio": 3.853347502656748, "conf...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q from items.models import BookDetail, Periodical def search_books(request): """View to search in books.""" if request.GET.get('term'): term = request.GET.get('te...
{ "repo_name": "tony-joseph/livre", "path": "search/views.py", "copies": "1", "size": "1845", "license": "bsd-3-clause", "hash": -1792793732223091200, "line_mean": 28.7580645161, "line_max": 72, "alpha_frac": 0.6027100271, "autogenerated": false, "ratio": 3.81198347107438, "config_test": false, ...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponseRedirect from django.http import JsonResponse from django.urls import reverse, reverse_lazy from django.views.generic import ListView, DetailView, CreateView, UpdateView, Dele...
{ "repo_name": "asommer70/photolandia", "path": "albums/views.py", "copies": "1", "size": "4152", "license": "mit", "hash": 8794827710734514000, "line_mean": 35.1130434783, "line_max": 100, "alpha_frac": 0.6943641618, "autogenerated": false, "ratio": 4.070588235294117, "config_test": false, "h...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponseRedirect from download.models import Download def index(request): down_hots = Download.objects.filter(status='passed').order_by('-hits')[:15] down_lists = Download....
{ "repo_name": "huaiping/pandora", "path": "download/views.py", "copies": "1", "size": "1110", "license": "mit", "hash": 7988724513707981000, "line_mean": 37.275862069, "line_max": 90, "alpha_frac": 0.6882882883, "autogenerated": false, "ratio": 3.5806451612903225, "config_test": false, "has_n...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import Weibostatus from datetime import datetime from django.db import connection # Create your views here. def _paginate(request, paginator): page = request.GET.get('page', 1) try: ...
{ "repo_name": "gwu-libraries/sfm-weibo-datasts", "path": "weiboanalysis/datasts/views.py", "copies": "1", "size": "3995", "license": "mit", "hash": -8614809296313808000, "line_mean": 38.95, "line_max": 138, "alpha_frac": 0.5804755945, "autogenerated": false, "ratio": 3.446937014667817, "config_...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger import mhn_api.stats as stats import mhn_api.util as mhn_util def my_honeypot(request): if request.user.is_authenticated(): attacks = stats.get_user_attacks(request.user.honey_id) paginator...
{ "repo_name": "pcodes/mhn_interface", "path": "honeypots/views.py", "copies": "1", "size": "2638", "license": "mit", "hash": 3861767575706403000, "line_mean": 33.2597402597, "line_max": 108, "alpha_frac": 0.6565579985, "autogenerated": false, "ratio": 2.566147859922179, "config_test": false, ...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import * def index(request): """ Landing page """ return render(request, 'blog/index.html') def blog(request, category=None, page=1, post=None): """ List of all blog posts """ post_filter...
{ "repo_name": "jinsollee92/jinsolme", "path": "blog/views.py", "copies": "1", "size": "1448", "license": "mpl-2.0", "hash": 7104939036100635000, "line_mean": 21.640625, "line_max": 73, "alpha_frac": 0.6947513812, "autogenerated": false, "ratio": 3.022964509394572, "config_test": false, "has_n...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query def search(request): # Search sear...
{ "repo_name": "torchbox/wagtaildemo", "path": "demo/views.py", "copies": "1", "size": "1216", "license": "bsd-3-clause", "hash": -6880565464683871000, "line_mean": 30.1794871795, "line_max": 74, "alpha_frac": 0.6800986842, "autogenerated": false, "ratio": 3.8974358974358974, "config_test": fals...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailadmin.modal_workflow import render_modal_workflow from wagtail.wagtailadmin.forms import SearchForm from wagtail.wagtailsearch import models from wagtail.wagtailsearch.utils import normalis...
{ "repo_name": "jnns/wagtail", "path": "wagtail/wagtailsearch/views/queries.py", "copies": "26", "size": "1658", "license": "bsd-3-clause", "hash": -2553180882763333000, "line_mean": 31.5098039216, "line_max": 137, "alpha_frac": 0.6791314837, "autogenerated": false, "ratio": 4.053789731051345, "...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query, EditorsPick def search(request): # Search search_query = request.GET.get('query', None) if search_query:...
{ "repo_name": "lincolnloop/wagtaildemo", "path": "demo/views.py", "copies": "5", "size": "1150", "license": "bsd-3-clause", "hash": 2655402892461672000, "line_mean": 29.2631578947, "line_max": 72, "alpha_frac": 0.6660869565, "autogenerated": false, "ratio": 3.8461538461538463, "config_test": fa...
from django.shortcuts import render from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.http import Http404 from django.views.generic import DetailView from django.utils.html import escape from django.db.models import Q from defaultpw.models import Vendor, VendorModel, Password from django ...
{ "repo_name": "vagabondcoder/django-router-defaults", "path": "defaultpw/views.py", "copies": "1", "size": "1658", "license": "mit", "hash": -4245552507013439000, "line_mean": 29.1454545455, "line_max": 125, "alpha_frac": 0.6670687575, "autogenerated": false, "ratio": 3.146110056925996, "config...
from django.shortcuts import render from django.core.paginator import Paginator # Create your views here. from .models import Blog, Author, Tag def index(request, page=1): page = int(page) blogs = Blog.objects.order_by('-pub_time') tag_list = Tag.objects.all().order_by('-pub_time') p = Paginator(blog...
{ "repo_name": "kekehurry/ganzige.site", "path": "blog/views.py", "copies": "1", "size": "1755", "license": "mit", "hash": 1556235814422347300, "line_mean": 37.152173913, "line_max": 132, "alpha_frac": 0.6541310541, "autogenerated": false, "ratio": 2.9846938775510203, "config_test": false, "ha...
from django.shortcuts import render from django.core.signing import TimestampSigner, SignatureExpired, BadSignature from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.contrib import auth from lib.api_calls import password_reset_email, password_reset_sms, APIException ...
{ "repo_name": "hhauer/myinfo", "path": "PasswordReset/views.py", "copies": "1", "size": "6693", "license": "mit", "hash": 3616006075256278000, "line_mean": 43.9261744966, "line_max": 118, "alpha_frac": 0.6400717167, "autogenerated": false, "ratio": 4.282149712092131, "config_test": false, "ha...
from django.shortcuts import render from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.http import Http404 from django.core.exceptions import ObjectDoesNotExist from django.views.generic import ListView from django.view...
{ "repo_name": "eldruz/tournament_registration", "path": "tournament_registration/registration/views.py", "copies": "1", "size": "5131", "license": "bsd-3-clause", "hash": 818502792494826200, "line_mean": 32.1032258065, "line_max": 81, "alpha_frac": 0.678620152, "autogenerated": false, "ratio": 4....
from django.shortcuts import render from django.core.urlresolvers import reverse_lazy from django.views.generic import CreateView from . import forms from .forms import UserCreateForm from django.http import HttpResponse from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate f...
{ "repo_name": "srijannnd/Login-and-Register-App-in-Django", "path": "simplesocial/accounts/views.py", "copies": "1", "size": "2890", "license": "mit", "hash": -5110811760048566000, "line_mean": 36.0641025641, "line_max": 83, "alpha_frac": 0.6557093426, "autogenerated": false, "ratio": 4.176300578...
from django.shortcuts import render from django.core.urlresolvers import reverse_lazy from django.views.generic import CreateView, UpdateView, ListView, DeleteView, DetailView from django.http import HttpResponse from django.contrib import messages from rest_framework import generics, permissions, filters, viewsets, st...
{ "repo_name": "allyjweir/lackawanna", "path": "lackawanna/transcript/views.py", "copies": "1", "size": "2784", "license": "bsd-3-clause", "hash": 192203452442247550, "line_mean": 34.6923076923, "line_max": 116, "alpha_frac": 0.7295258621, "autogenerated": false, "ratio": 4.283076923076923, "con...
from django.shortcuts import render from django.core.urlresolvers import reverse_lazy, reverse from django.http import HttpResponseRedirect from django.forms.models import inlineformset_factory from singleurlcrud.views import CRUDView from .models import * # Create your views here. class AuthorCRUDView(CRUDView): ...
{ "repo_name": "harikvpy/crud", "path": "polls/views.py", "copies": "1", "size": "1610", "license": "bsd-3-clause", "hash": -4857279801926556000, "line_mean": 28.2727272727, "line_max": 72, "alpha_frac": 0.6093167702, "autogenerated": false, "ratio": 4.128205128205129, "config_test": false, "h...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.conf import settings from rest_framework import viewsets from rest_framework.response import Response from rest_framework.parsers import FormParser, MultiPartParser from rest_framework.views import APIView import os from .seri...
{ "repo_name": "oledm/shopomania_ck", "path": "shopomania_ck/orders/views.py", "copies": "1", "size": "2548", "license": "bsd-3-clause", "hash": 366326915548492860, "line_mean": 35.4, "line_max": 79, "alpha_frac": 0.6864207221, "autogenerated": false, "ratio": 3.938176197836167, "config_test": f...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect from django.views.decorators.http import require_http_methods from accounts.forms import SignupForm, ProfileForm from accounts.utils im...
{ "repo_name": "juntatalor/qexx", "path": "accounts/views.py", "copies": "1", "size": "2711", "license": "mit", "hash": 7190614800304296000, "line_mean": 37.9846153846, "line_max": 118, "alpha_frac": 0.5966850829, "autogenerated": false, "ratio": 3.8220211161387634, "config_test": false, "has_...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth import authenticate, login as dj_login from django.http import HttpResponseRedirect, Http404 from django.conf import settings from time import sleep from zeropass.models import Token from zeropass.forms import Toke...
{ "repo_name": "jamiecurle/django-zeropass", "path": "zeropass/views.py", "copies": "1", "size": "1845", "license": "bsd-3-clause", "hash": -6923823028135169000, "line_mean": 28.7580645161, "line_max": 63, "alpha_frac": 0.6406504065, "autogenerated": false, "ratio": 4.341176470588235, "config_te...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.core.exceptions import ObjectDoesNotExist from django.core.cache import cache from django.http im...
{ "repo_name": "Matoking/pastebin-django", "path": "users/views.py", "copies": "1", "size": "14332", "license": "unlicense", "hash": 809240815458060700, "line_mean": 39.2612359551, "line_max": 130, "alpha_frac": 0.6236394083, "autogenerated": false, "ratio": 3.9910888331940964, "config_test": fa...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth.views import password_reset, password_reset_confirm, \ password_reset_done, password_reset_complete from django.contrib.auth.forms import AuthenticationForm from data.forms import UserCreationForm, PostCreation...
{ "repo_name": "Solanar/CMPUT410-Project", "path": "DisSoNet/front/views/views.py", "copies": "1", "size": "3465", "license": "apache-2.0", "hash": -288367549393726600, "line_mean": 32.640776699, "line_max": 79, "alpha_frac": 0.655988456, "autogenerated": false, "ratio": 3.9554794520547945, "con...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.db.models import Q from oPOSum.apps.products.forms import * from oPOSum.apps.products.models import * from oPOSum.apps.branches.models import Branch from oPOSum.libs import utils as pos_utils from oPOSum.libs import products as...
{ "repo_name": "xirdneh/oposum", "path": "oPOSum/apps/products/views.py", "copies": "1", "size": "10558", "license": "mit", "hash": 5920181336316010000, "line_mean": 41.4016064257, "line_max": 163, "alpha_frac": 0.5789922334, "autogenerated": false, "ratio": 3.7399929153382927, "config_test": fa...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponse from django.http import HttpResponseRedirect from django.http import HttpResponseNotFound from django.http import HttpResponseServerError from django.http import HttpResponsePermanentRedirect # You wou...
{ "repo_name": "FarhansCode/file_repository", "path": "testapp/views.py", "copies": "1", "size": "2287", "license": "bsd-2-clause", "hash": -1445886477732567800, "line_mean": 37.1166666667, "line_max": 82, "alpha_frac": 0.6589418452, "autogenerated": false, "ratio": 4.364503816793893, "config_te...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from app.models import Product from share.enum import ProductTypeEnum from app.forms.productForm import ProductForm # Create your views here. #region Home def home(request): return render...
{ "repo_name": "KarateJB/Python.Practice", "path": "src/Django/venv/ShopCart/shopcart/app/views.py", "copies": "1", "size": "3522", "license": "mit", "hash": -6090679875133070000, "line_mean": 28.8559322034, "line_max": 97, "alpha_frac": 0.6314593981, "autogenerated": false, "ratio": 3.98867497168...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from classroom.models import ClassRoom from .models import Step from .forms import StepForm from django.contrib.auth.decorators import login_required @login_required def add(request, classroom...
{ "repo_name": "reinbach/tutorus", "path": "tutorus/step/views.py", "copies": "1", "size": "2171", "license": "bsd-3-clause", "hash": -1925072787707672000, "line_mean": 29.5915492958, "line_max": 94, "alpha_frac": 0.6093965914, "autogenerated": false, "ratio": 3.9908088235294117, "config_test": ...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.contrib import messages from django.core.mail import send_mail from . import forms def contact(request): form = forms.ContactForm() if request.method == "POST": fo...
{ "repo_name": "Adventure-Inc/chachas-adventures", "path": "contact/views.py", "copies": "1", "size": "1723", "license": "apache-2.0", "hash": 4768557164250117000, "line_mean": 32.7843137255, "line_max": 77, "alpha_frac": 0.5751596053, "autogenerated": false, "ratio": 4.619302949061662, "config_...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.core.context_processors import csrf from django.db.models import Max from django.http import Http404 from django.http import HttpRespo...
{ "repo_name": "FiaDot/programmer-competency-matrix", "path": "survey/views.py", "copies": "1", "size": "2685", "license": "mit", "hash": -3849043339036293600, "line_mean": 24.1028037383, "line_max": 77, "alpha_frac": 0.6223463687, "autogenerated": false, "ratio": 3.6283783783783785, "config_tes...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from openid.consumer.discover import DiscoveryFailure from openid.consumer import consumer from openid.extensions.sreg import SRegRequest fr...
{ "repo_name": "nimbis/django-allauth", "path": "allauth/socialaccount/providers/openid/views.py", "copies": "1", "size": "3907", "license": "mit", "hash": 5393974800133102000, "line_mean": 39.2783505155, "line_max": 73, "alpha_frac": 0.6009726133, "autogenerated": false, "ratio": 4.53774680603948...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.views.decorators.http import require_POST from django.db.models import Q from .models import Post from .forms import PostForm def index(request): query = request.GET.get('q', No...
{ "repo_name": "baltzar/alexandria", "path": "library/views.py", "copies": "1", "size": "1380", "license": "mit", "hash": -3403324062195481600, "line_mean": 27.75, "line_max": 119, "alpha_frac": 0.6775362319, "autogenerated": false, "ratio": 3.6997319034852545, "config_test": false, "has_no_ke...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.http import JsonResponse, Http404 from elasticsearch.exceptions import NotFoundError from elasticsearch_dsl.filter import Term, Not from catalog.elastic_models import Declaration from catalog.paginator import paginated_search...
{ "repo_name": "devrand/declarations.com.ua", "path": "declarations_site/catalog/views.py", "copies": "1", "size": "5875", "license": "mit", "hash": -6437610675524002000, "line_mean": 27.5951219512, "line_max": 77, "alpha_frac": 0.5871716138, "autogenerated": false, "ratio": 3.887267904509284, "...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.shortcuts import render_to_response from django.template import RequestContext from django.template import loader from ast import literal_eval import urllib from books_recsys_app.models imp...
{ "repo_name": "xianjunzhengbackup/code", "path": "data science/machine_learning_for_the_web/chapter_7/server_movierecsys/books_recsys_app/views.py", "copies": "1", "size": "16872", "license": "mit", "hash": -5972752028667233000, "line_mean": 35.9212253829, "line_max": 120, "alpha_frac": 0.5813181603,...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.shortcuts import render, HttpResponseRedirect, Http404 from django.contrib import messages # Create your views here. def home(request): template = 'resume.html' context = {} return render(request, template, context) def r...
{ "repo_name": "J-east/John-Bio", "path": "pages/views.py", "copies": "1", "size": "1057", "license": "mit", "hash": 4394109548291845000, "line_mean": 21.9782608696, "line_max": 66, "alpha_frac": 0.7398297067, "autogenerated": false, "ratio": 3.454248366013072, "config_test": false, "has_no_ke...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic.edit import CreateView from . import models import ipdb class ZeigenUndEintragen(CreateView): """ zeigt die bisher einzige Liste an """ template_name = 'Notizen/liste.html' model = models.Zeile f...
{ "repo_name": "wmles/olymp", "path": "Notizen/views.py", "copies": "1", "size": "1447", "license": "mit", "hash": -2844835320597261000, "line_mean": 37.8378378378, "line_max": 76, "alpha_frac": 0.6610995129, "autogenerated": false, "ratio": 3.1792035398230087, "config_test": false, "has_no_ke...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic import CreateView, UpdateView, DeleteView from imager_images.models import ImagerPhoto, ImagerAlbum class AlbumCreate(CreateView): model = ImagerAlbum context_object_name = 'album' success_url = '/pr...
{ "repo_name": "nbeck90/django-imager", "path": "imager/imager_images/views.py", "copies": "1", "size": "2562", "license": "mit", "hash": -1093023114805002200, "line_mean": 25.6875, "line_max": 74, "alpha_frac": 0.6237314598, "autogenerated": false, "ratio": 3.762114537444934, "config_test": fal...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic import ListView, DetailView, CreateView, FormView from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from django.views.generic.edit import ModelFormMixin from django...
{ "repo_name": "RadhikaG/blag", "path": "blag/views.py", "copies": "1", "size": "2681", "license": "mit", "hash": 3220919370852674600, "line_mean": 28.1413043478, "line_max": 75, "alpha_frac": 0.6695262962, "autogenerated": false, "ratio": 3.840974212034384, "config_test": false, "has_no_keywo...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic import ListView from django.views.generic.edit import CreateView from django.contrib.auth.decorators import login_required from . import models class IndexView(ListView): """ zeigt die Startseite an :) """ ...
{ "repo_name": "wmles/olymp", "path": "Ehemalige/views.py", "copies": "1", "size": "1193", "license": "mit", "hash": -5745442828353556000, "line_mean": 35.0909090909, "line_max": 76, "alpha_frac": 0.6968933669, "autogenerated": false, "ratio": 3.1507936507936507, "config_test": false, "has_no_...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic import ListView from django.views.generic import CreateView from django.views.generic import UpdateView from django.views.generic import DeleteView from django.views.generic import DetailView from simulation.model...
{ "repo_name": "lmarent/network_agents_ver2_python", "path": "simulation_site/simulation/views.py", "copies": "1", "size": "4095", "license": "mit", "hash": -9208551529309000000, "line_mean": 34.3017241379, "line_max": 94, "alpha_frac": 0.6783882784, "autogenerated": false, "ratio": 4.470524017467...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views.generic import TemplateView, View from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.contrib.auth import authenticate, login, logout from django.contrib.auth.mo...
{ "repo_name": "caiocsalvador/whats_the_craic", "path": "src/whats_the_craic/views.py", "copies": "1", "size": "2329", "license": "mit", "hash": 88538711197302660, "line_mean": 32.768115942, "line_max": 120, "alpha_frac": 0.7367969085, "autogenerated": false, "ratio": 3.4917541229385307, "config...
from django.shortcuts import render from django.core.urlresolvers import reverse from django.views import generic from django.http import HttpResponse from django.utils import timezone from mahyong_game.models import * from mahyong_game.utils import * class GameIndexView(generic.ListView): template_name = 'mahyon...
{ "repo_name": "jspitzen/mahyong", "path": "mahyong_game/views.py", "copies": "1", "size": "1314", "license": "mit", "hash": -5120851678507467000, "line_mean": 31.85, "line_max": 73, "alpha_frac": 0.701674277, "autogenerated": false, "ratio": 3.8197674418604652, "config_test": false, "has_no_k...
from django.shortcuts import render from django.core.urlresolvers import reverse from game.forms import GameForm from game.models import Game, User, Coordinate from django.http import HttpResponseRedirect, HttpResponse from django.utils import simplejson as json from game.functions import reveal, create_revealed_matrix...
{ "repo_name": "ZzCalvinzZ/minesweeper", "path": "game/views.py", "copies": "1", "size": "5450", "license": "mit", "hash": -747983437049790100, "line_mean": 34.6274509804, "line_max": 160, "alpha_frac": 0.6706422018, "autogenerated": false, "ratio": 3.51159793814433, "config_test": false, "has...
from django.shortcuts import render from django.core.urlresolvers import reverse, reverse_lazy from django.views.generic import FormView, ListView from django.utils import timezone from .forms import PunchInForm, PunchOutForm from django.http import HttpResponseRedirect import datetime from django.conf import settings ...
{ "repo_name": "mtheobaldo/clock", "path": "src/timeclock/views.py", "copies": "1", "size": "4074", "license": "mit", "hash": -1688504231127100400, "line_mean": 33.8205128205, "line_max": 109, "alpha_frac": 0.6102110947, "autogenerated": false, "ratio": 3.8985645933014355, "config_test": false, ...