text
stringlengths
0
1.05M
meta
dict
from django.views.generic import View from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.template import RequestContext, loader from django.core.urlresolvers import reverse from Login.models import User, User_request, Pass_reset from django.core...
{ "repo_name": "CubicDolphin/LicenseTracker", "path": "web/Login/views.py", "copies": "1", "size": "6801", "license": "mit", "hash": -4054238812253005300, "line_mean": 35.5698924731, "line_max": 343, "alpha_frac": 0.7301867372, "autogenerated": false, "ratio": 3.4645950076413654, "config_test": ...
from django.views.generic import View from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext, loader from Login.models import User, User_request, Pass_reset from django.core.mail import send_mail from Base.models import License from django.core.paginator import Paginator, ...
{ "repo_name": "CubicDolphin/LicenseTracker", "path": "web/Base/views.py", "copies": "1", "size": "40895", "license": "mit", "hash": 7443441351718212000, "line_mean": 35.352, "line_max": 332, "alpha_frac": 0.7118229612, "autogenerated": false, "ratio": 3.0241070768320637, "config_test": false, ...
from django.views.generic import View from django.http import HttpResponse, JsonResponse from django.contrib.auth import authenticate, login import json class LoginView(View): def post(self, request): if request.body is None or len(request.body) < 1: return HttpResponse("A request body is requ...
{ "repo_name": "narcolepticsnowman/GarageWarden", "path": "GarageWarden/login.py", "copies": "1", "size": "1845", "license": "mit", "hash": 7373379015565886000, "line_mean": 35.1764705882, "line_max": 111, "alpha_frac": 0.6536585366, "autogenerated": false, "ratio": 4.290697674418604, "config_te...
from django.views.generic import View from django.http import HttpResponse from django.template import RequestContext , loader,Template,Context from django.shortcuts import render , render_to_response from oscar.apps.catalogue import views from oscar.apps.catalogue.views import * from oscar.core.loading import get_clas...
{ "repo_name": "talhaobject90/HUNGRY-OBJECT90", "path": "hungry/views.py", "copies": "1", "size": "1688", "license": "mit", "hash": -8565401322086998000, "line_mean": 34.1875, "line_max": 68, "alpha_frac": 0.5639810427, "autogenerated": false, "ratio": 4.624657534246575, "config_test": false, ...
from django.views.generic import View from django.http import HttpResponse from tracking import register_event, generate_new_tracking_key class VerifyView(View): ''' View called by javascript to verify that cookies are enabled along with javascript ''' def post(self, request, *args, **kwargs): ...
{ "repo_name": "joebos/django-user-tracking", "path": "usertracking/views.py", "copies": "1", "size": "1608", "license": "mit", "hash": -8885800939107736000, "line_mean": 34.7555555556, "line_max": 115, "alpha_frac": 0.6641791045, "autogenerated": false, "ratio": 3.98019801980198, "config_test":...
from django.views.generic import View from django.http import HttpResponse from tracking import register_event class VerifyView(View): ''' View called by javascript to verify that cookies are enabled along with javascript ''' def post(self, request, *args, **kwargs): tracking_id = self.reques...
{ "repo_name": "rburhum/django-user-analytics", "path": "user_analytics/views.py", "copies": "1", "size": "1400", "license": "bsd-2-clause", "hash": 856765438664726400, "line_mean": 33.1707317073, "line_max": 115, "alpha_frac": 0.6607142857, "autogenerated": false, "ratio": 4.011461318051576, "c...
from django.views.generic import View from django.http import HttpResponse import os, json, datetime from django.shortcuts import redirect from django.shortcuts import render_to_response from vitcloud.models import File from django.views.decorators.csrf import csrf_exempt from listingapikeys import findResult import sy...
{ "repo_name": "biocross/VITCloud", "path": "vitcloud/views.py", "copies": "1", "size": "6403", "license": "mit", "hash": -291827505841627260, "line_mean": 36.6647058824, "line_max": 215, "alpha_frac": 0.6175230361, "autogenerated": false, "ratio": 3.6505131128848345, "config_test": false, "ha...
from django.views.generic import View from django.http import HttpResponse from forms import UserFormSet, PersonFormSet class ModelFormSetView(View): def post(self, request): formset = UserFormSet(request.POST) if formset.is_valid(): formset.save() return HttpResponse('Is ...
{ "repo_name": "Raekkeri/django-formsettesthelpers", "path": "src/formsettesthelpers/test_app/views.py", "copies": "1", "size": "1319", "license": "mit", "hash": -6113548444471246000, "line_mean": 28.9772727273, "line_max": 63, "alpha_frac": 0.6724791509, "autogenerated": false, "ratio": 4.2140575...
from django.views.generic import View from django.http import HttpResponseRedirect from django.shortcuts import render from django.contrib import admin from django.utils.decorators import classonlymethod class IntermediateAdminView(View): short_description = "Action with intermediate view" def post(...
{ "repo_name": "MichielDePaepe/adminactionview", "path": "adminactionview/views.py", "copies": "1", "size": "1726", "license": "mit", "hash": -7817509465527971000, "line_mean": 30.962962963, "line_max": 140, "alpha_frac": 0.5654692932, "autogenerated": false, "ratio": 4.677506775067751, "config_...
from django.views.generic import View from django.http import JsonResponse,Http404 from django.utils.text import slugify from fballAPI.services import get_matchups,get_scores,get_winners,get_losers import requests import json import nflgame class WeeklyMatchupView(View): def get(self,request,year,week): ye...
{ "repo_name": "ConnorH2582/fffAPI", "path": "tripleFapi/fballAPI/views.py", "copies": "1", "size": "1432", "license": "mit", "hash": 8708116313687722000, "line_mean": 35.7179487179, "line_max": 94, "alpha_frac": 0.6459497207, "autogenerated": false, "ratio": 3.4757281553398056, "config_test": f...
from django.views.generic import View from django.http import JsonResponse, HttpResponse import json from GarageWarden.models import Setting from GarageWarden import login from django.forms.models import model_to_dict reload_methods = {} class SettingView(login.AuthorizedMixin, View): def post(self, request): ...
{ "repo_name": "narcolepticsnowman/GarageWarden", "path": "GarageWarden/settingView.py", "copies": "1", "size": "2196", "license": "mit", "hash": -589034078651123500, "line_mean": 38.2142857143, "line_max": 104, "alpha_frac": 0.6197632058, "autogenerated": false, "ratio": 4.214971209213052, "con...
from django.views.generic import View from django.http import JsonResponse from chatterbot import ChatBot from chatterbot.ext.django_chatterbot import settings import json class ChatterBotViewMixin(object): chatterbot = ChatBot(**settings.CHATTERBOT) def validate(self, data): from django.core.except...
{ "repo_name": "12520054/pybot", "path": "chatterbot/ext/django_chatterbot/views.py", "copies": "1", "size": "2065", "license": "mit", "hash": 7914984392289247000, "line_mean": 28.5, "line_max": 83, "alpha_frac": 0.6387409201, "autogenerated": false, "ratio": 4.284232365145228, "config_test": fa...
from django.views.generic import View from django.http import JsonResponse from django.conf import settings from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger class CoreView(View): """ 所有API基类 """ permission_view_map = { } superuser_required_action = [] app_name = ""...
{ "repo_name": "ZhangXiaoyu-Chief/sandwich", "path": "api/libs/base.py", "copies": "1", "size": "5593", "license": "apache-2.0", "hash": -5264348515248330000, "line_mean": 31.875, "line_max": 118, "alpha_frac": 0.5352163679, "autogenerated": false, "ratio": 4.143285821455364, "config_test": fals...
from django.views.generic import View from django.http import JsonResponse from django.conf import settings from djstatuspage.models import Status class BaseStatusView(View): response_class = JsonResponse def get_context_data(self, **kwargs): return kwargs def render_to_response(self, context): ...
{ "repo_name": "redfunction/django-statuspage", "path": "djstatuspage/views.py", "copies": "1", "size": "1201", "license": "bsd-3-clause", "hash": 5829949017483593000, "line_mean": 25.7111111111, "line_max": 62, "alpha_frac": 0.6069941715, "autogenerated": false, "ratio": 4.170138888888889, "con...
from django.views.generic import View from djangopress.core.util import choose_form, get_client_ip from djangopress.forum.views import check_askmet_spam from django.http import Http404, HttpResponse from django.shortcuts import render, get_object_or_404, redirect from django.urls import reverse from django.core.paginat...
{ "repo_name": "codefisher/codefisher_apps", "path": "upvotes/views.py", "copies": "1", "size": "7142", "license": "mit", "hash": -1731594264574707000, "line_mean": 42.2909090909, "line_max": 149, "alpha_frac": 0.6282553906, "autogenerated": false, "ratio": 3.994407158836689, "config_test": fals...
from django.views.generic import View from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.exceptions import...
{ "repo_name": "cedlerouge/betwit", "path": "bets/views.py", "copies": "1", "size": "21592", "license": "apache-2.0", "hash": 1706141008973808400, "line_mean": 43.9833333333, "line_max": 157, "alpha_frac": 0.5862356428, "autogenerated": false, "ratio": 3.7531722579523725, "config_test": false, ...
from django.views.generic import View from django.shortcuts import render from django.contrib.auth.mixins import LoginRequiredMixin from django.core.paginator import Paginator from items.models import ItemPost class PostList(View): def get(self, request): page = request.GET.get("page", 1) page_...
{ "repo_name": "deadlylaid/book_connect", "path": "wef/items/views/postlist.py", "copies": "1", "size": "1463", "license": "mit", "hash": -6615004947236420000, "line_mean": 28.6808510638, "line_max": 87, "alpha_frac": 0.49390681, "autogenerated": false, "ratio": 3.5406091370558377, "config_test"...
from django.views.generic import View from django.shortcuts import render from django.http import HttpResponse from django.utils.decorators import method_decorator from apps.web.decorators import validate_request from apps.web.responsetypes import factory from apps.web.forms import AuthorizeForm from apps.tokens.model...
{ "repo_name": "RichardKnop/django-oauth2-server", "path": "oauth2server/apps/web/views.py", "copies": "1", "size": "1621", "license": "mpl-2.0", "hash": -5546142691750404000, "line_mean": 35.0444444444, "line_max": 68, "alpha_frac": 0.6693399136, "autogenerated": false, "ratio": 4.135204081632653...
from django.views.generic import View # from django.shortcuts import render from django.http import HttpResponse from .models import Question from simple_django_logger.utils import Logger from simple_django_logger.response import render class IndexView(View): template_name = 'polls/index.html' def get(self...
{ "repo_name": "eshandas/simple_django_logger", "path": "django_project/polls/views.py", "copies": "1", "size": "1159", "license": "mit", "hash": 1117122475067853000, "line_mean": 31.1944444444, "line_max": 80, "alpha_frac": 0.6962899051, "autogenerated": false, "ratio": 4.024305555555555, "conf...
from django.views.generic import View from django.shortcuts import render from django.http import JsonResponse from location.models import Location,Token import simplejson import requests class IndexView(View): template_name = 'index.html' def get(self, request, *args, **kwargs): return render(request...
{ "repo_name": "itsMagondu/GoogleFusionTest", "path": "mappy/views.py", "copies": "1", "size": "5076", "license": "apache-2.0", "hash": -3624655332187355600, "line_mean": 36.8880597015, "line_max": 148, "alpha_frac": 0.6187943262, "autogenerated": false, "ratio": 3.2790697674418605, "config_test...
from django.views.generic import View from django.shortcuts import render from items.models import ItemPost from django.core.paginator import InvalidPage, Paginator from haystack.views import SearchView """ django-haystack code link - https://github.com/django-haystack/django-haystack/blob/master/haystack/views.py ""...
{ "repo_name": "deadlylaid/book_connect", "path": "wef/items/views/search.py", "copies": "1", "size": "1706", "license": "mit", "hash": -8915660377945222000, "line_mean": 26.9672131148, "line_max": 87, "alpha_frac": 0.6055099648, "autogenerated": false, "ratio": 4.150851581508515, "config_test":...
from django.views.generic import View from django.shortcuts import render from owc_fixtureless.models import Mage from owc_fixtureless import constants class MageView(View): template = 'mage_template.html' def _get_context(self, mages): if mages.count() <= constants.HIGH_DETAIL_COUNT_LIMIT: ...
{ "repo_name": "ricomoss/open-west-2015-fixtureless", "path": "owc_fixtureless/owc_fixtureless/views.py", "copies": "1", "size": "1566", "license": "mit", "hash": 3571066215802030000, "line_mean": 29.1153846154, "line_max": 73, "alpha_frac": 0.5517241379, "autogenerated": false, "ratio": 3.9248120...
from django.views.generic import View from django.shortcuts import render, redirect from backend.models import Device, Record from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator import dateutil.parser import json class ProfileVi...
{ "repo_name": "trousev/watchme", "path": "backend/views.py", "copies": "1", "size": "2791", "license": "bsd-2-clause", "hash": -7726994557322329000, "line_mean": 37.2328767123, "line_max": 142, "alpha_frac": 0.6345395915, "autogenerated": false, "ratio": 4.261068702290077, "config_test": false,...
from django.views.generic import View from django.shortcuts import render, redirect from django.conf import settings from django.core.mail import send_mail from .forms import ContactForm class ContactView(View): title = "Contact Us" form = ContactForm template = "contacts/contact.html" confirm_message = None def ...
{ "repo_name": "closers-2015/Closers-2015_BOTS-_Final_Byte_Project", "path": "frontend/contacts/views.py", "copies": "1", "size": "1228", "license": "mit", "hash": -6017843401928784000, "line_mean": 28.9756097561, "line_max": 71, "alpha_frac": 0.7052117264, "autogenerated": false, "ratio": 3.25729...
from django.views.generic import View from django.shortcuts import render, redirect from django.contrib.auth.mixins import LoginRequiredMixin from django.core.urlresolvers import reverse from django.contrib import messages from items.models import ItemPost, BookList, BookImage from items.tasks.haystack_indexing import...
{ "repo_name": "deadlylaid/book_connect", "path": "wef/items/views/booksale.py", "copies": "1", "size": "2557", "license": "mit", "hash": -1151779140072718600, "line_mean": 28.2261904762, "line_max": 57, "alpha_frac": 0.4688391039, "autogenerated": false, "ratio": 4.196581196581197, "config_test...
from django.views.generic import View from django.shortcuts import render, redirect from django.core.urlresolvers import reverse from django.contrib.auth import login, authenticate from django.contrib import messages class LogInView(View): def get(self, request): if request.GET.get('next', ''): ...
{ "repo_name": "deadlylaid/book_connect", "path": "wef/users/views/log_in.py", "copies": "1", "size": "1400", "license": "mit", "hash": -2729126933390621700, "line_mean": 25.9166666667, "line_max": 51, "alpha_frac": 0.4922600619, "autogenerated": false, "ratio": 3.569060773480663, "config_test":...
from django.views.generic import View from django.shortcuts import render, redirect from django.core.urlresolvers import reverse from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages from users.models import User class UserProfileModifyView(LoginRequiredMixin, View): def ...
{ "repo_name": "yevgnenll/but", "path": "but/users/views/modify_profile.py", "copies": "1", "size": "1526", "license": "mit", "hash": 6592837053070064000, "line_mean": 25.2105263158, "line_max": 59, "alpha_frac": 0.5669344043, "autogenerated": false, "ratio": 4.305475504322766, "config_test": fa...
from django.views.generic import View from django.shortcuts import render, redirect from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.contrib.auth import login, authenticate, get_user_model from django.contrib import messages class SignupView(View): def get(self...
{ "repo_name": "dobestan/fastblog", "path": "fastblog/users/views/signup.py", "copies": "1", "size": "1169", "license": "mit", "hash": 982373663068977700, "line_mean": 25.5, "line_max": 67, "alpha_frac": 0.6010781671, "autogenerated": false, "ratio": 3.6254071661237783, "config_test": false, "...
from django.views.generic import View from django.shortcuts import render, redirect, reverse from django.views.generic.edit import FormView from django.contrib import messages from django.http import HttpResponse, HttpResponseRedirect import json from celery.result import AsyncResult from datacombine import models fr...
{ "repo_name": "Crimson-Star-Software/data-combine", "path": "datacombine/datacombine/views.py", "copies": "1", "size": "2709", "license": "mit", "hash": 7655733967200634000, "line_mean": 30.5, "line_max": 76, "alpha_frac": 0.5747508306, "autogenerated": false, "ratio": 4.161290322580645, "confi...
from django.views.generic import View from django.shortcuts import render_to_response, get_object_or_404 ,render from django.contrib.auth.decorators import login_required from django.http import HttpResponse , HttpResponseRedirect from django.core import serializers from django.template import RequestContext from djang...
{ "repo_name": "talhaobject90/framework.com", "path": "projectspecs/views.py", "copies": "1", "size": "36620", "license": "mit", "hash": 5180291430327887000, "line_mean": 38.7180043384, "line_max": 126, "alpha_frac": 0.4539868924, "autogenerated": false, "ratio": 4.1495750708215295, "config_test...
from django.views.generic import View from django.shortcuts import render_to_response from data.models import League, Team, Person, Game class Index(View): def get(self, request, *args, **kwargs): context = {} context['leagues'] = League.objects.count() context['teams'] = Team.objects.count...
{ "repo_name": "quidtech/quidte.ch", "path": "quidtech/views.py", "copies": "1", "size": "1187", "license": "mit", "hash": -977191875970590800, "line_mean": 28.675, "line_max": 56, "alpha_frac": 0.6225779275, "autogenerated": false, "ratio": 3.768253968253968, "config_test": false, "has_no_key...
from django.views.generic import View from django.shortcuts import render_to_response, RequestContext, Http404, HttpResponseRedirect from gge_proxy_manager.models import LogisticJob from django.core.urlresolvers import reverse from intern.forms.my import MyLogisticJobForm from .production import set_active, set_inactiv...
{ "repo_name": "mrcrgl/gge-storage", "path": "intern/views/my/logistic.py", "copies": "1", "size": "3762", "license": "mit", "hash": 5500625784606695000, "line_mean": 29.104, "line_max": 130, "alpha_frac": 0.5909090909, "autogenerated": false, "ratio": 3.964172813487882, "config_test": false, ...
from django.views.generic import View from django.shortcuts import render_to_response, RequestContext, HttpResponseRedirect from npc.forms import NonPlayerCastleForm from gge_proxy_manager.models import NonPlayerCastle from .mixins import NonPlayerCastleMixin class EditView(View, NonPlayerCastleMixin): template_n...
{ "repo_name": "mrcrgl/gge-storage", "path": "npc/views/non_player_castle.py", "copies": "1", "size": "2277", "license": "mit", "hash": 4243942723416923600, "line_mean": 26.1071428571, "line_max": 85, "alpha_frac": 0.5814668423, "autogenerated": false, "ratio": 3.826890756302521, "config_test": ...
from django.views.generic import View from django.template.response import TemplateResponse from django.core import urlresolvers from django.shortcuts import get_object_or_404, HttpResponseRedirect from django.core import mail from mailtrail.models import Email, get_recipient_model_attribute class SendEmailMixin: ...
{ "repo_name": "gitcommitpush/django-mailtrail", "path": "mailtrail/views.py", "copies": "1", "size": "3213", "license": "mit", "hash": 6154823765493560000, "line_mean": 31.7857142857, "line_max": 128, "alpha_frac": 0.6237161531, "autogenerated": false, "ratio": 4.25, "config_test": false, "ha...
from django.views.generic import View from django.urls import reverse from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.utils.html import MLStripper from urllib...
{ "repo_name": "groovy-tunes/lti_django_skeleton", "path": "lti_django_skeleton/views.py", "copies": "1", "size": "18994", "license": "mit", "hash": -3959829837349051400, "line_mean": 36.09765625, "line_max": 334, "alpha_frac": 0.6258292092, "autogenerated": false, "ratio": 3.984476610027271, "c...
from django.views.generic import View from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.utils.timezone import utc from django.conf import settings from django.utils.module_loading import import_string import json i...
{ "repo_name": "resmio/django-sendgrid", "path": "sendgrid/views.py", "copies": "1", "size": "3610", "license": "bsd-2-clause", "hash": -2199231977988606500, "line_mean": 36.6041666667, "line_max": 114, "alpha_frac": 0.5878116343, "autogenerated": false, "ratio": 4.46229913473424, "config_test":...
from django.views.generic import View from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from django.conf import settings from django.http import HttpResponse from .http import Http200, Http500, HttpError import traceback import json __all__ = ['Endpoint'] cla...
{ "repo_name": "davisein/jitsudone", "path": "restless/views.py", "copies": "1", "size": "3995", "license": "bsd-3-clause", "hash": -7958940249512904000, "line_mean": 36.3364485981, "line_max": 79, "alpha_frac": 0.6210262829, "autogenerated": false, "ratio": 4.544937428896473, "config_test": fal...
from django.views.generic import View from django.utils import simplejson from django.core.serializers.json import DjangoJSONEncoder from django.core.serializers.python import Serializer as PythonSerializer from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.db.models.query i...
{ "repo_name": "cootetom/backbonejs-django-generic-view", "path": "views.py", "copies": "1", "size": "4275", "license": "mit", "hash": -1031911655677123800, "line_mean": 37.5135135135, "line_max": 109, "alpha_frac": 0.6009356725, "autogenerated": false, "ratio": 4.547872340425532, "config_test":...
from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import HttpResponseNotFound from django.utils import translation from django.utils.decorators import method_decorator from djan...
{ "repo_name": "gnrfan/django-restful", "path": "django_restful/mixins.py", "copies": "1", "size": "3307", "license": "bsd-3-clause", "hash": -2926478850819155500, "line_mean": 35.7444444444, "line_max": 69, "alpha_frac": 0.6519504082, "autogenerated": false, "ratio": 4.44489247311828, "config_t...
from django.views.generic import View from django.views.decorators.csrf import csrf_exempt try: from django.http import StreamingHttpResponse as HttpResponse except ImportError: from django.http import HttpResponse from django.utils.decorators import method_decorator import gevent class TimeoutPolling(Excep...
{ "repo_name": "tbarbugli/django_longpolling", "path": "django_longpolling/views.py", "copies": "1", "size": "1501", "license": "bsd-3-clause", "hash": -8170804007538442000, "line_mean": 26.7962962963, "line_max": 89, "alpha_frac": 0.6455696203, "autogenerated": false, "ratio": 4.4147058823529415,...
from django.views.generic import View from django.views.decorators.csrf import csrf_protect from functools import wraps, update_wrapper, WRAPPER_ASSIGNMENTS from django.utils.decorators import method_decorator from django.core.context_processors import csrf class BaseView(View): auth_required = True # TODO(dcr...
{ "repo_name": "wanghe4096/WangBlog", "path": "src/wangblog/web/frontend/base.py", "copies": "1", "size": "3087", "license": "bsd-2-clause", "hash": -9044597674152362000, "line_mean": 35.75, "line_max": 80, "alpha_frac": 0.6501457726, "autogenerated": false, "ratio": 3.91254752851711, "config_te...
from django.views.generic import View from django.views.generic.base import TemplateResponseMixin, ContextMixin from django.views.generic.detail import SingleObjectMixin from django.forms.models import (modelform_factory, inlineformset_factory, modelformset_factory) from django.shortcut...
{ "repo_name": "prasanthn/django-cbvcrudapp", "path": "cbvcrudapp/views.py", "copies": "1", "size": "6658", "license": "mit", "hash": 1775171985275469300, "line_mean": 34.2275132275, "line_max": 90, "alpha_frac": 0.6348753379, "autogenerated": false, "ratio": 4.140547263681592, "config_test": fa...
from django.views.generic import View from django.views.generic.detail import DetailView from django.core.exceptions import ObjectDoesNotExist from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404 from django.utils import timezone from matplotlib.backends.backend_agg import Figur...
{ "repo_name": "zhenkai/xgunicorn", "path": "gunmel/views.py", "copies": "1", "size": "4854", "license": "apache-2.0", "hash": -7297874357190301000, "line_mean": 32.475862069, "line_max": 146, "alpha_frac": 0.7035434693, "autogenerated": false, "ratio": 2.985239852398524, "config_test": false, ...
from django.views.generic import View from django.views.generic import CreateView from django.views.generic import UpdateView from django.views.generic import DeleteView from .forms import CountryForm from django.shortcuts import render from django.http import HttpResponse from django.http import JsonResponse from djan...
{ "repo_name": "arnoldtan/cep_2015_sem2_assign1", "path": "stats/views.py", "copies": "2", "size": "2961", "license": "apache-2.0", "hash": 3564690196996537000, "line_mean": 40.7183098592, "line_max": 87, "alpha_frac": 0.5943937859, "autogenerated": false, "ratio": 4.445945945945946, "config_tes...
from django.views.generic import View from django.views.generic import TemplateView from django.views.generic.edit import FormMixin from django.core.urlresolvers import reverse from django.http import Http404 from django.http import HttpResponse from django.http import HttpResponseForbidden from django.http import Http...
{ "repo_name": "evertrol/TKP-web", "path": "tkpweb/apps/dataset/views.py", "copies": "1", "size": "11599", "license": "isc", "hash": -3000016290179602000, "line_mean": 36.7817589577, "line_max": 109, "alpha_frac": 0.6475558238, "autogenerated": false, "ratio": 4.0855935188446635, "config_test": ...
from django.views.generic import View from django.views.generic.list import ListView from django.views.generic.edit import CreateView, UpdateView from django.utils import timezone from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.contrib.auth.mode...
{ "repo_name": "solarpermit/solarpermit", "path": "website/views/account_views.py", "copies": "1", "size": "2174", "license": "bsd-3-clause", "hash": -6893989223577341000, "line_mean": 35.8474576271, "line_max": 81, "alpha_frac": 0.6614535419, "autogenerated": false, "ratio": 4.205029013539652, ...
from django.views.generic import View from gwells.models.Survey import Survey from django.shortcuts import get_object_or_404 from django.urls import reverse from django.shortcuts import redirect from django.template import loader from django.http import HttpResponse from django.http import HttpResponseNotAllowed from d...
{ "repo_name": "rstens/gwells", "path": "gwells/views/admin/SurveyView.py", "copies": "1", "size": "5678", "license": "apache-2.0", "hash": 9013609997312013000, "line_mean": 35.1656050955, "line_max": 120, "alpha_frac": 0.6377245509, "autogenerated": false, "ratio": 4.08195542774982, "config_tes...
from django.views.generic import View from highcharts.views.common import HighChartsDualAxisView class HighChartsHeatMapView(HighChartsDualAxisView, View): chart_type = 'heatmap' margin_top = 40 margin_bottom = 40 categories = [] _series = [] _yaxis = [] legend = {'align': 'right', ...
{ "repo_name": "ernestoarbitrio/django-highcharts", "path": "highcharts/views/heatmap.py", "copies": "1", "size": "1133", "license": "bsd-3-clause", "hash": 1439553085807930600, "line_mean": 25.3720930233, "line_max": 60, "alpha_frac": 0.5763459841, "autogenerated": false, "ratio": 3.9754385964912...
from django.views.generic import View from highcharts.views.common import HighChartsDualAxisView class HighChartsMultiAxesView(HighChartsDualAxisView, View): chart_type = '' categories = [] xlabels = {'rotation': -45} plotlines = None _series = [] _yaxis = [] xtitle = {} legend = {} ...
{ "repo_name": "ernestoarbitrio/django-highcharts", "path": "highcharts/views/multiple_axes.py", "copies": "1", "size": "3037", "license": "bsd-3-clause", "hash": -3437267051571943400, "line_mean": 21.0144927536, "line_max": 72, "alpha_frac": 0.5907145209, "autogenerated": false, "ratio": 3.839443...
from django.views.generic import View from highcharts.views.common import HighChartsDualAxisView class HighChartsPolarView(HighChartsDualAxisView, View): chart_type = 'line' polar = True pane_size = '80%' categories = [] _series = [] _yaxis = [] legend = { 'align': 'right', ...
{ "repo_name": "ernestoarbitrio/django-highcharts", "path": "highcharts/views/polar.py", "copies": "1", "size": "1193", "license": "bsd-3-clause", "hash": -7090999231564883000, "line_mean": 24.4042553191, "line_max": 67, "alpha_frac": 0.5867560771, "autogenerated": false, "ratio": 3.79936305732484...
from django.views.generic import View from . import PlayerMixin from intern.forms.my import PushoverClientForm, PushoverNotificationForm from pushover.models import Notify, Client from django.shortcuts import render_to_response, RequestContext, HttpResponseRedirect, Http404 from pushover.api.client import PushoverClien...
{ "repo_name": "mrcrgl/gge-storage", "path": "intern/views/my/push.py", "copies": "1", "size": "5262", "license": "mit", "hash": -5471852962813250000, "line_mean": 28.7344632768, "line_max": 116, "alpha_frac": 0.5769669327, "autogenerated": false, "ratio": 4.21297037630104, "config_test": false,...
from django.views.generic import View from intern.forms.tools import CastlesByDistanceForm from django.shortcuts import render_to_response, RequestContext from gge_proxy_manager.models import Castle from lib.map.utils import distance_to_castle from decimal import Decimal, getcontext class CastleByDistanceView(View): ...
{ "repo_name": "mrcrgl/gge-storage", "path": "intern/views/tools.py", "copies": "1", "size": "3455", "license": "mit", "hash": -1480751805905583900, "line_mean": 32.5533980583, "line_max": 169, "alpha_frac": 0.5672937771, "autogenerated": false, "ratio": 3.5219164118246686, "config_test": false,...
from django.views.generic import View from picopico.apps.common.mixins import \ TemplateResponseMixin, \ JSONResponseMixin, \ ContextMixin, \ RedirectResponseMixin, \ MessageMixin, \ LoginRedirectMixin, \ LoginRequiredMixin, \ FilterMixin, \ PaginationMixin # Create your views here...
{ "repo_name": "universalyouth/picopico", "path": "picopico/apps/common/views.py", "copies": "1", "size": "2623", "license": "mit", "hash": -5830038337640138000, "line_mean": 33.0649350649, "line_max": 75, "alpha_frac": 0.5966450629, "autogenerated": false, "ratio": 4.079315707620529, "config_te...
from django.views.generic import View from teachers.models import * from baseapp.models import * from teachers.forms import * from django.shortcuts import * from django.db import * from datetime import datetime from django.contrib import messages import cStringIO as StringIO from xhtml2pdf import pisa from django.contr...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_private_teacing_views.py", "copies": "2", "size": "14141", "license": "mit", "hash": -2882418192539967000, "line_mean": 37.3224932249, "line_max": 115, "alpha_frac": 0.6967682625, "autogenerated": false, "ratio": 2.99597457627...
from django.views.generic import View from teachers.models import * from schoolnew.models import * from teachers.forms import * from django.shortcuts import * from baseapp.models import Differently_abled,Language from django.contrib import messages from django.contrib.auth.decorators import login_required from django....
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_main_views.py", "copies": "2", "size": "77155", "license": "mit", "hash": -2944736666461390000, "line_mean": 50.5053404539, "line_max": 728, "alpha_frac": 0.5695159095, "autogenerated": false, "ratio": 3.7671500415018797, "c...
from django.views.generic import View from teachers.models import Teacher_action,Teacher_detail,completed_table,Teacher_posting_entry,disp_rule,action from schoolnew.models import Basicinfo from teachers.forms import Teacher_actionform from django.shortcuts import render,redirect,get_object_or_404,Http404,get_list_or_4...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_action_views.py", "copies": "2", "size": "23751", "license": "mit", "hash": 3384946465852728300, "line_mean": 57.2132352941, "line_max": 300, "alpha_frac": 0.5441876132, "autogenerated": false, "ratio": 3.7198120595144872, "...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Exam_duty,Camp_duty,Teacher_result_exam,Months,Teacher_posting_entry from teachers.forms import Teacher_result_exam_form from django.shortcuts import * from schoolnew.models import * from baseapp.models import * from django...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/exam_camp_duty.py", "copies": "2", "size": "8579", "license": "mit", "hash": 5463181086391227000, "line_mean": 45.8797814208, "line_max": 300, "alpha_frac": 0.5377083576, "autogenerated": false, "ratio": 4.039077212806026, "config_t...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Months,Teacher_posting_entry, Awards, Award_Level, Teacher_award from teachers.forms import Teacher_award_form from django.shortcuts import * from schoolnew.models import * # from baseapp.models import * from django.contrib...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/award_details.py", "copies": "2", "size": "5939", "license": "mit", "hash": 2433379685997438500, "line_mean": 41.726618705, "line_max": 123, "alpha_frac": 0.5554807207, "autogenerated": false, "ratio": 3.8665364583333335, "config_te...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_edu,Distinction,Months,Medium,Edu_subjects,Qualification from schoolnew.models import Basicinfo from teachers.forms import educationform from django.shortcuts import * from django.contrib import messages from django...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_education_views.py", "copies": "2", "size": "7093", "license": "mit", "hash": -5516809728642704000, "line_mean": 46.9256756757, "line_max": 300, "alpha_frac": 0.5770477936, "autogenerated": false, "ratio": 4.03699487763...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_family_detail,family_relationship,Teacher_nomini from baseapp.models import District,School,Block from schoolnew.models import Basicinfo from teachers.forms import Teacher_family_detailform,Teacher_detailform from d...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_family_detail_views.py", "copies": "2", "size": "10958", "license": "mit", "hash": 8703836247215263000, "line_mean": 43.3643724696, "line_max": 294, "alpha_frac": 0.6367037781, "autogenerated": false, "ratio": 3.4094586...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_GPF_loan from teachers.forms import Teacher_GPF_loanform from django.shortcuts import * from baseapp.models import * from schoolnew.models import Basicinfo from django.contrib import messages from django.db import *...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_tpf_loan_views.py", "copies": "2", "size": "6328", "license": "mit", "hash": 3084129782551082000, "line_mean": 48.0542635659, "line_max": 300, "alpha_frac": 0.5881795196, "autogenerated": false, "ratio": 3.7114369501466...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_immovalble_property from teachers.forms import Teacher_immovalble_propertyform from django.shortcuts import * from schoolnew.models import Basicinfo from django.contrib import messages from django.db import * from d...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_immovable_property_views.py", "copies": "2", "size": "8225", "license": "mit", "hash": -6650729769457440000, "line_mean": 46.5433526012, "line_max": 300, "alpha_frac": 0.5851671733, "autogenerated": false, "ratio": 3.931644359...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_loan,Teacher_loan_category from teachers.forms import Teacher_loanform from schoolnew.models import Basicinfo from django.shortcuts import * from django.contrib import messages from django.db import * from datetime ...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_loan_views.py", "copies": "2", "size": "7095", "license": "mit", "hash": 6485644058917048000, "line_mean": 50.0503597122, "line_max": 298, "alpha_frac": 0.5836504581, "autogenerated": false, "ratio": 3.7779552715654954,...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_ltc,ltc_leave_type,ltc_destination,ltc_base from teachers.forms import Teacher_ltcform from schoolnew.models import Basicinfo from django.shortcuts import * from django.contrib import messages from django.db import ...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_ltc_views.py", "copies": "2", "size": "7547", "license": "mit", "hash": -2584260465455073300, "line_mean": 45.8757763975, "line_max": 300, "alpha_frac": 0.5636676825, "autogenerated": false, "ratio": 3.8426680244399187, "con...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_movable_property from teachers.forms import Teacher_movable_propertyform from django.shortcuts import * from django.contrib import messages from schoolnew.models import Basicinfo from django.db import * from datetim...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_movable_property_views.py", "copies": "2", "size": "6547", "license": "mit", "hash": 3250352135764016000, "line_mean": 50.1484375, "line_max": 300, "alpha_frac": 0.5856117306, "autogenerated": false, "ratio": 3.96787878...
from django.views.generic import View from teachers.models import Teacher_detail,completed_table,Teacher_posting_entry,Teacher_probation_entry from teachers.forms import Teacher_probation_entryform from django.shortcuts import * from schoolnew.models import * from django.contrib import messages from django.db import * ...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_probation_views.py", "copies": "2", "size": "8815", "license": "mit", "hash": 4570199287834429000, "line_mean": 52.4242424242, "line_max": 300, "alpha_frac": 0.5531480431, "autogenerated": false, "ratio": 3.98868778280543, "...
from django.views.generic import View from teachers.models import Teacher_detail,scale_register_abstract,private_teachers_detail from schoolnew.models import Basicinfo,Staff,User_desig,Desig_subjects from django.db.models import Count, Sum from django.shortcuts import render from baseapp.models import School from djan...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_detail_categorywise_views.py", "copies": "2", "size": "21745", "license": "mit", "hash": -2635970746412323000, "line_mean": 59.4027777778, "line_max": 345, "alpha_frac": 0.5234306737, "autogenerated": false, "ratio": 4....
from django.views.generic import View from teachers.models import Teacher_detail,Teacher_test,test_master,Months,completed_table from teachers.forms import Teacher_testform from schoolnew.models import Basicinfo from django.shortcuts import * from django.contrib import messages from django.db import * from datetime imp...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_test_views.py", "copies": "2", "size": "6548", "license": "mit", "hash": 4084754482301783000, "line_mean": 46.802919708, "line_max": 300, "alpha_frac": 0.5616982285, "autogenerated": false, "ratio": 3.8047646717024985, "conf...
from django.views.generic import View from teachers.models import Teacher_posting_entry,Teacher_detail,completed_table,Posting_type from schoolnew.models import User_desig,Desig_subjects,Basicinfo,School_category,District,Block from teachers.forms import Teacher_detailform,Teacher_posting_entryform from django.shortcut...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_posting_views.py", "copies": "2", "size": "11161", "license": "mit", "hash": -6747003628449232000, "line_mean": 50.4331797235, "line_max": 300, "alpha_frac": 0.5701102052, "autogenerated": false, "ratio": 3.607304460245637, ...
from django.views.generic import View from teachers.models import Teacher_regularisation_entry,Teacher_detail,completed_table,Teacher_posting_entry from teachers.forms import Teacher_regularisation_entryform from django.shortcuts import * from django.contrib import messages from schoolnew.models import * from django.db...
{ "repo_name": "mravikumar281/staging-server", "path": "teachers/views/teacher_regularisation_views.py", "copies": "2", "size": "10634", "license": "mit", "hash": 5254396752614929000, "line_mean": 57.1092896175, "line_max": 300, "alpha_frac": 0.5620650743, "autogenerated": false, "ratio": 3.878191...
from django.views.generic import View from teachers.models import Teacher_training,Teacher_detail,completed_table from django.views.generic import * from schoolnew.models import Basicinfo from teachers.forms import Teacher_trainingform from django.shortcuts import * from django.contrib import messages from django.db im...
{ "repo_name": "tnemis/staging-server", "path": "teachers/views/teacher_training_views.py", "copies": "2", "size": "6432", "license": "mit", "hash": 5217544074016953000, "line_mean": 47.7272727273, "line_max": 300, "alpha_frac": 0.580068408, "autogenerated": false, "ratio": 4, "config_test": fal...
from django.views.generic import View from braces.views import ( AjaxResponseMixin, JSONResponseMixin, LoginRequiredMixin) from .forms import ImageForm, DocumentForm class AjaxUploadViewBase( LoginRequiredMixin, JSONResponseMixin, AjaxResponseMixin, View): form_class = None ...
{ "repo_name": "zdot/django-attachments", "path": "attachments/views.py", "copies": "1", "size": "1029", "license": "bsd-3-clause", "hash": -3935492731505959000, "line_mean": 21.3913043478, "line_max": 53, "alpha_frac": 0.5908649174, "autogenerated": false, "ratio": 4.378723404255319, "config_te...
from django.views.generic import View from directory.templatetags import directory_utils as tags from unittest import TestCase class TemplateTagsrender(TestCase): def setUp(self): self.context = { 'view': View() } def test_object_does_not_have_the_attribute_no_default_is_set___em...
{ "repo_name": "wildfish/django-directory", "path": "tests/test_teplate_tags_render.py", "copies": "1", "size": "1525", "license": "mit", "hash": -9105849154718762000, "line_mean": 27.2407407407, "line_max": 106, "alpha_frac": 0.6032786885, "autogenerated": false, "ratio": 3.692493946731235, "co...
from django.views.generic import View from django.shortcuts import render_to_response from django.shortcuts import redirect from django.template.context import RequestContext from task.models import Task from task.forms import UserCreateForm, FormTask class Home(View): template_name = 'task/home.html' conte...
{ "repo_name": "rg3915/tasks", "path": "task/views/tasks.py", "copies": "1", "size": "2149", "license": "mit", "hash": -2391238727065240600, "line_mean": 28.4383561644, "line_max": 92, "alpha_frac": 0.6351791531, "autogenerated": false, "ratio": 3.8790613718411553, "config_test": false, "has_n...
from django.views.generic import View from .exceptions import ( PopupViewAlreadyRegistered, PopupViewIsNotSubclassView, PopupViewNotRegistered, ) class RegistryPopupView(object): def __init__(self): self._registry = {} def validate(self, view_class): if not issubclass(view_class...
{ "repo_name": "djk2/django-popup-view-field", "path": "django_popup_view_field/registry.py", "copies": "1", "size": "1467", "license": "mit", "hash": 5089059618097970000, "line_mean": 31.6, "line_max": 105, "alpha_frac": 0.6598500341, "autogenerated": false, "ratio": 3.8203125, "config_test": f...
from django.views.generic import View import logging from braces.views import CsrfExemptMixin, JsonRequestResponseMixin from .models import Article logger = logging.getLogger('django.request') class OmniArticlesView(CsrfExemptMixin, JsonRequestResponseMixin, View): http_method_names = ['post'] require_json...
{ "repo_name": "archie/hackaway", "path": "hackaway/hackaway/article/views.py", "copies": "1", "size": "1379", "license": "mit", "hash": 2728920048552544000, "line_mean": 37.3055555556, "line_max": 72, "alpha_frac": 0.614213198, "autogenerated": false, "ratio": 3.798898071625344, "config_test": ...
from django.views.generic import View, TemplateView, FormView from django.http import JsonResponse from .models import DataMap, AreaMap from .utils import start_datamap_import_task from .tasks import poll_task_progress from .forms import DataMapForm, DataMapImportSettingsForm from .viewmixins import AuthenticateLoginV...
{ "repo_name": "matthewoconnor/maps", "path": "map/views.py", "copies": "1", "size": "6473", "license": "mit", "hash": -5403979379159604000, "line_mean": 30.1201923077, "line_max": 105, "alpha_frac": 0.6119264638, "autogenerated": false, "ratio": 3.750289687137891, "config_test": false, "has_n...
from django.views.generic import View, TemplateView, ListView, DetailView, UpdateView, CreateView from django.shortcuts import get_object_or_404, redirect from django.template.loader import render_to_string from bibbutler_web.models.general import Bibliography from bibbutler_web.models.entry import * from bibbutler_web...
{ "repo_name": "dolonnen/bibbutler", "path": "bibbutler_web/views.py", "copies": "1", "size": "3418", "license": "mit", "hash": 7844673255911497000, "line_mean": 30.3577981651, "line_max": 116, "alpha_frac": 0.6802223523, "autogenerated": false, "ratio": 3.5346432264736296, "config_test": false,...
from django.views.generic import View, TemplateView, ListView from django.contrib.auth import authenticate, login, logout from django.http.response import JsonResponse, HttpResponseRedirect, HttpResponse from django.shortcuts import render from django.http import QueryDict from django.urls import reverse_lazy, rev...
{ "repo_name": "mingziV5/opsweb_test", "path": "accounts/user/views.py", "copies": "1", "size": "9708", "license": "apache-2.0", "hash": -4581115253404696000, "line_mean": 35.5019762846, "line_max": 133, "alpha_frac": 0.5872865275, "autogenerated": false, "ratio": 3.97569153394803, "config_test"...
from django.views.generic import View, TemplateView from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django.core.urlresolvers import reverse from django.contrib.admin.views.decorators import staff_member_required from django.conf import settings from django import...
{ "repo_name": "andrewebdev/django-ostinato", "path": "ostinato/pages/views.py", "copies": "1", "size": "3664", "license": "mit", "hash": -444015451058742000, "line_mean": 33.5660377358, "line_max": 85, "alpha_frac": 0.6359170306, "autogenerated": false, "ratio": 3.769547325102881, "config_test"...
from django.views.generic import View, TemplateView from newsfeed.constants import NEWS_TYPE_CONTENTION, NEWS_TYPE_PREMISE, NEWS_TYPE_FALLACY, NEWS_TYPE_FOLLOWING from newsfeed.models import Entry from premises.utils import int_or_zero from premises.views import HomeView class NewsfeedView(HomeView): tab_class = ...
{ "repo_name": "beratdogan/arguman.org", "path": "web/newsfeed/views.py", "copies": "1", "size": "2699", "license": "mit", "hash": 8979499398147183000, "line_mean": 31.130952381, "line_max": 110, "alpha_frac": 0.5413115969, "autogenerated": false, "ratio": 4.10806697108067, "config_test": false,...
from django.views.generic import View,TemplateView from django.http import JsonResponse, QueryDict from opsweb.utils import GetLogger from monitor.zabbix.client import cache_host, Zabbix, create_host, unlink_template, link_template from resources.product.view import Ztree from resources.server.models import Server...
{ "repo_name": "mingziV5/opsweb_test", "path": "monitor/zabbix/views.py", "copies": "1", "size": "5581", "license": "apache-2.0", "hash": 1484380638525054200, "line_mean": 35.7013888889, "line_max": 103, "alpha_frac": 0.559056569, "autogenerated": false, "ratio": 3.8653846153846154, "config_test...
from django.views.generic import View, TemplateView from django.http import JsonResponse from django.contrib.auth.models import User from resources.product.models import Product from resources.idc.models import Idc from resources.product.form import AddProductForm, ModifyProductForm from django.shortcuts import r...
{ "repo_name": "mingziV5/opsweb_test", "path": "resources/product/view.py", "copies": "1", "size": "5169", "license": "apache-2.0", "hash": -6698655359262602000, "line_mean": 33.4236111111, "line_max": 106, "alpha_frac": 0.5559694178, "autogenerated": false, "ratio": 3.954263565891473, "config_t...
from django.views.generic import View, UpdateView from django.utils import simplejson as json from django.contrib import messages from django.http import HttpResponse from inventory.comments.models import (IpadComment, HeadphonesComment, AdapterComment, CaseComment) from inventory.comments.forms import Com...
{ "repo_name": "sloria/device-inventory", "path": "inventory/comments/views.py", "copies": "1", "size": "2359", "license": "bsd-3-clause", "hash": -7796432975980934000, "line_mean": 30.8783783784, "line_max": 72, "alpha_frac": 0.7100466299, "autogenerated": false, "ratio": 4.281306715063521, "co...
from django.views.generic.list_detail import * from django.http import Http404, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response from django.utils.http import urlquote from django.core.paginator import Paginator, InvalidPage from django.views.decorators.cac...
{ "repo_name": "kylef/lithium", "path": "lithium/forum/views.py", "copies": "1", "size": "4755", "license": "bsd-2-clause", "hash": 4048847590145961500, "line_mean": 34.7518796992, "line_max": 158, "alpha_frac": 0.6483701367, "autogenerated": false, "ratio": 4.14198606271777, "config_test": fals...
from django.views.generic.list_detail import object_detail from django.contrib.auth.decorators import login_required from django.views.generic.create_update import update_object, delete_object from django.views.generic.simple import direct_to_template, redirect_to from django.core.urlresolvers import reverse from djang...
{ "repo_name": "BraveToasterStudio/django-notes", "path": "django_notes/views.py", "copies": "2", "size": "2335", "license": "bsd-3-clause", "hash": -9159318298167638000, "line_mean": 32.8405797101, "line_max": 75, "alpha_frac": 0.6689507495, "autogenerated": false, "ratio": 4.046793760831889, "...
from django.views.generic.list_detail import object_list from django.views.generic.list_detail import object_detail from django.views.generic.create_update import create_object from django.views.generic.create_update import update_object from django.views.generic.create_update import delete_object from django.core.urlr...
{ "repo_name": "theicfire/djangofun", "path": "notes/views.py", "copies": "3", "size": "1562", "license": "bsd-3-clause", "hash": 3702886409809503700, "line_mean": 26.9107142857, "line_max": 60, "alpha_frac": 0.6517285531, "autogenerated": false, "ratio": 3.9246231155778895, "config_test": false...
from django.views.generic.list_detail import object_list from django.views.generic.list_detail import object_detail from populous.podcasts.models import Episode, Show, Enclosure def episode_detail(request, show_slug, episode_slug): """ Episode detail Template: ``podcast/episode_detail.html`` Context...
{ "repo_name": "caiges/populous", "path": "populous/podcasts/views.py", "copies": "1", "size": "3640", "license": "bsd-3-clause", "hash": 68186130596284870, "line_mean": 28.6016260163, "line_max": 121, "alpha_frac": 0.6192307692, "autogenerated": false, "ratio": 3.831578947368421, "config_test":...
from django.views.generic.list_detail import object_list, object_detail from django.conf import settings from django.http import HttpResponse from django.contrib.sites.models import Site from timelines.models import Timeline def filter_queryset(request): queryset = Timeline.objects.filter(published = True) ...
{ "repo_name": "dryan/django-timelines", "path": "timelines/views.py", "copies": "1", "size": "3195", "license": "bsd-3-clause", "hash": 2447633164365764600, "line_mean": 31.9484536082, "line_max": 154, "alpha_frac": 0.5546165884, "autogenerated": false, "ratio": 3.9298892988929888, "config_test...
from django.views.generic.list_detail import object_list,object_detail from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponseRedirect, Http404 from django.template import RequestContext from django.core.urlresolve...
{ "repo_name": "LimpidTech/django-edict", "path": "edict/views.py", "copies": "1", "size": "2750", "license": "mit", "hash": -2184001913206059500, "line_mean": 31.3529411765, "line_max": 113, "alpha_frac": 0.6650909091, "autogenerated": false, "ratio": 4.086181277860327, "config_test": false, ...
from django.views.generic.list_detail import object_list, object_detail from django.shortcuts import render_to_response, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.http import HttpResponseForbidden from django.t...
{ "repo_name": "robbie/anthill", "path": "anthill/projects/views.py", "copies": "1", "size": "8410", "license": "bsd-3-clause", "hash": 2391636427790437000, "line_mean": 43.2631578947, "line_max": 117, "alpha_frac": 0.6090368609, "autogenerated": false, "ratio": 4.177844013909588, "config_test":...
from django.views.generic.list_detail import object_list, object_detail from django.views.generic.create_update import create_object, delete_object,\ update_object from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_40...
{ "repo_name": "skyl/django-files", "path": "views.py", "copies": "1", "size": "4800", "license": "mit", "hash": 2534030741664979500, "line_mean": 25.9662921348, "line_max": 78, "alpha_frac": 0.60125, "autogenerated": false, "ratio": 3.950617283950617, "config_test": false, "has_no_keywords": ...
from django.views.generic.list_detail import object_list, object_detail from shortwave.models import Wave, Command def wave_list(request): """ A list view of all shortwaves relating to active users. Templates: :template:`shortwave/wave_list.html` Context: wave_list A list...
{ "repo_name": "benspaulding/django-shortwave", "path": "shortwave/views.py", "copies": "1", "size": "1188", "license": "bsd-3-clause", "hash": -1022690687195442300, "line_mean": 27.2857142857, "line_max": 74, "alpha_frac": 0.6607744108, "autogenerated": false, "ratio": 3.7955271565495208, "conf...
from django.views.generic.list import ListView as ListViewBase from django.views.generic.edit import UpdateView as UpdateViewBase, DeleteView as DeleteViewBase, CreateView as CreateViewBase class ListView(ListViewBase): name = None list_display = [] list_search = [] list_filter = [] list_actions ...
{ "repo_name": "Merino/poc-cbb", "path": "notes/_views/data.py", "copies": "1", "size": "6284", "license": "bsd-3-clause", "hash": 2298420908252427500, "line_mean": 34.5084745763, "line_max": 126, "alpha_frac": 0.5661998727, "autogenerated": false, "ratio": 4.34878892733564, "config_test": false...
from django.views.generic.list import ListView from calaccess_raw import get_model_list from calaccess_raw.models import RawDataVersion from calaccess_raw.annotations import FORMS from calaccess_website.views.docs.ccdc import get_processed_data_files class AbstractSitemapView(ListView): """ Abstract base clas...
{ "repo_name": "california-civic-data-coalition/django-calaccess-downloads-website", "path": "calaccess_website/sitemaps.py", "copies": "1", "size": "4202", "license": "mit", "hash": 6836173772688020000, "line_mean": 34.3109243697, "line_max": 113, "alpha_frac": 0.7099000476, "autogenerated": false,...
from django.views.generic.list import ListView from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, redirect from oppgavegen.models import Set, Chapter, Level from oppgavegen.views.login_required_mixin import LoginRequiredMixin from oppgavegen.view_logic.current_wor...
{ "repo_name": "w0pke/oppgavegenerator", "path": "oppgavegen/views/level_editor_views.py", "copies": "1", "size": "3371", "license": "bsd-3-clause", "hash": 2782510566807267000, "line_mean": 31.7281553398, "line_max": 102, "alpha_frac": 0.6440225452, "autogenerated": false, "ratio": 3.762276785714...
from django.views.generic.list import ListView from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, redirect, render from oppgavegen.models import Set, Chapter, Level from oppgavegen.views.mixins import LoginRequiredMixin from oppgavegen.view_logic.current_work impo...
{ "repo_name": "MathGen/oppgavegenerator", "path": "oppgavegen/views/level_editor_views.py", "copies": "1", "size": "3941", "license": "bsd-3-clause", "hash": 744056605533139600, "line_mean": 32.3983050847, "line_max": 102, "alpha_frac": 0.6455214413, "autogenerated": false, "ratio": 3.73200757575...
from django.views.generic.list import ListView from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from app.core.forms import RegistroDesocupado, RegistroEmpresa, ModificarEmpresa, ModificarDesocupado, ModificarTrabajo from app.core.forms import RegistroDesocupado, Re...
{ "repo_name": "Jereromanoo/agencia", "path": "app/core/views.py", "copies": "1", "size": "5858", "license": "mit", "hash": 9096035851573666000, "line_mean": 36.4358974359, "line_max": 119, "alpha_frac": 0.6816780822, "autogenerated": false, "ratio": 3.1533477321814254, "config_test": false, "...
from django.views.generic.list import ListView from django.core.exceptions import ObjectDoesNotExist from django.http.response import Http404 from hitcount.views import HitCountDetailView from .models import Article, Category class AllArticlesListView(ListView): model = Article template_name = 'list_article...
{ "repo_name": "Truqui/sergioscorner", "path": "sergioscorner/blog/views.py", "copies": "1", "size": "1836", "license": "mit", "hash": 6682736038772720000, "line_mean": 31.1929824561, "line_max": 77, "alpha_frac": 0.6610354223, "autogenerated": false, "ratio": 4.132882882882883, "config_test": f...
from django.views.generic.list import ListView from django.db.models import Count from django.core.cache import cache from academic.publishing.models import Publication from academic.people.models import Person import datetime class PublicationListView(ListView): template_name = 'academic/publication_list.html' ...
{ "repo_name": "phretor/django-academic", "path": "academic/apps/publishing/views.py", "copies": "1", "size": "2414", "license": "bsd-3-clause", "hash": 5711529636464966000, "line_mean": 38.5737704918, "line_max": 82, "alpha_frac": 0.5869925435, "autogenerated": false, "ratio": 4.272566371681416, ...