text stringlengths 0 1.05M | meta dict |
|---|---|
# from django.shortcuts import render
from django.http import JsonResponse
from django.views.generic import ListView, CreateView, DetailView
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.db.models import Count
from braces.views import OrderableListMixin, AjaxRes... | {
"repo_name": "watchdogpolska/django-one-petition",
"path": "petition/views.py",
"copies": "1",
"size": "3452",
"license": "mit",
"hash": -385417036851976000,
"line_mean": 36.1182795699,
"line_max": 93,
"alpha_frac": 0.6396292005,
"autogenerated": false,
"ratio": 3.8873873873873874,
"config_tes... |
from django.shortcuts import render
from django.http import JsonResponse
from .forms import WeeklyTimeForm
import logging
from activity.models import Activity, Priority
import datetime
import pytz
import utils
from django.contrib.auth.decorators import login_required,user_passes_test
# Create your views here.
timesheet... | {
"repo_name": "scotthuang1989/timesheet",
"path": "summary/views.py",
"copies": "1",
"size": "4132",
"license": "apache-2.0",
"hash": 7518330313678576000,
"line_mean": 41.5979381443,
"line_max": 130,
"alpha_frac": 0.679090029,
"autogenerated": false,
"ratio": 3.24078431372549,
"config_test": fa... |
from django.shortcuts import render
from django.http import JsonResponse
from .models import Product, Order
from django.http import HttpResponse
from django.views.decorators.csrf import ensure_csrf_cookie
from django.middleware.csrf import rotate_token
import json
import sys
uname='wasit'
#@ensure_csrf_cookie
def home... | {
"repo_name": "wasit7/PythonDay",
"path": "django/mysite5/mydata/views.py",
"copies": "1",
"size": "1461",
"license": "bsd-3-clause",
"hash": -586121286006235900,
"line_mean": 33,
"line_max": 83,
"alpha_frac": 0.7036276523,
"autogenerated": false,
"ratio": 3.3897911832946637,
"config_test": fal... |
from django.shortcuts import render
from django.http import JsonResponse
from .models import User
import logging
from django.views.decorators.csrf import csrf_exempt
logger = logging.getLogger(__name__)
# Create your views here.
@csrf_exempt
def do_auth(request):
'''
You can test this view with the supplied... | {
"repo_name": "nicc777/django-rauth",
"path": "rauth/views.py",
"copies": "1",
"size": "2474",
"license": "bsd-2-clause",
"hash": 6675360678465666000,
"line_mean": 32.4324324324,
"line_max": 109,
"alpha_frac": 0.4636216653,
"autogenerated": false,
"ratio": 5.028455284552845,
"config_test": fals... |
from django.shortcuts import render
from django.http import JsonResponse
from visualization.elasticsedata import *
from django.http import HttpResponse
from django.core.paginator import Paginator
from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
# Create your views here.
d... | {
"repo_name": "Madongming/admin",
"path": "visualization/views.py",
"copies": "1",
"size": "2472",
"license": "unlicense",
"hash": 6199621033647729000,
"line_mean": 31.5263157895,
"line_max": 84,
"alpha_frac": 0.7063106796,
"autogenerated": false,
"ratio": 3.6299559471365637,
"config_test": fal... |
from django.shortcuts import render
from django.http import JsonResponse
import os
import authority.module as userModule
# Create your views here.
def login(request):
return render(request,"login.html")
def auth(request):
p=request.POST
try:
username=p["user"]
passwd=p["password"]
pw=userModule.getPasswd(us... | {
"repo_name": "Macuilxochitl/blacklist",
"path": "bl/views.py",
"copies": "1",
"size": "2686",
"license": "apache-2.0",
"hash": 8591316450084530000,
"line_mean": 22.3125,
"line_max": 62,
"alpha_frac": 0.7203065134,
"autogenerated": false,
"ratio": 2.764830508474576,
"config_test": false,
"has... |
from django.shortcuts import render
from django.http import JsonResponse
from . import tasks
import storage.rcache as rcache
# Create your views here.
def update_stock_info(request):
resp_dict = {}
if request.method == 'POST' and request.is_ajax():
resp_dict['status'] = '成功'
tasks.update_sto... | {
"repo_name": "flychensc/orange",
"path": "storage/views.py",
"copies": "1",
"size": "2664",
"license": "apache-2.0",
"hash": -4967763712619723000,
"line_mean": 31.9,
"line_max": 83,
"alpha_frac": 0.6120820669,
"autogenerated": false,
"ratio": 3.1408114558472553,
"config_test": false,
"has_no... |
from django.shortcuts import render
from django.http import JsonResponse
from tethys_gizmos.templatetags.tethys_gizmos import HighchartsDateEncoder
from tethys_sdk.gizmos import HighChartsPolarPlot, PlotView
from tethys_gizmos.gizmo_options import MVLegendClass, MVLayer, MapView, MVDraw, MVView
from model import Cann... | {
"repo_name": "CI-WATER/tethysapp-canned_gssha",
"path": "tethysapp/canned_gssha/controllers.py",
"copies": "1",
"size": "9583",
"license": "bsd-2-clause",
"hash": 990888595513096100,
"line_mean": 32.6245614035,
"line_max": 109,
"alpha_frac": 0.4013356986,
"autogenerated": false,
"ratio": 4.29538... |
from django.shortcuts import render
from django.http import JsonResponse
from zoogle_pb2 import Void, Query
from zoogle.zdocs.models import Zdoc
from zoogle.zmail.models import Zmail
from zoogle.contribs.clients.zmail import zmail_stub
from zoogle.contribs.clients.zdocs import zdocs_stub
def index(request):
retu... | {
"repo_name": "dhilipsiva/talks",
"path": "assets/2020-01-18/zoogle/contribs/views.py",
"copies": "1",
"size": "1388",
"license": "mit",
"hash": 3168279071328915500,
"line_mean": 26.76,
"line_max": 63,
"alpha_frac": 0.6808357349,
"autogenerated": false,
"ratio": 3.328537170263789,
"config_test"... |
from django.shortcuts import render
from django.http import JsonResponse
def get_hierachy_paths(request):
hierachy_paths = [
["/m/0dgw9r", "/m/09l8g", "/m/09x0r", "/m/05zppz"],
["/t/dd00123", "/m/07bm98", "/m/01b7fy"],
["/t/dd00098", "/m/028v0c"],
["/m/0dgw9r", "/m/09l8g", "/m/09x0... | {
"repo_name": "AudioCommons/ac-annotator",
"path": "annotator/views.py",
"copies": "1",
"size": "2605",
"license": "apache-2.0",
"hash": -211073643632338000,
"line_mean": 25.8556701031,
"line_max": 59,
"alpha_frac": 0.4268714012,
"autogenerated": false,
"ratio": 3.097502972651605,
"config_test"... |
from django.shortcuts import render
from django.http import *
from django.contrib.auth import authenticate, login,logout
from datetime import datetime
from article.models import *
from django.core.urlresolvers import reverse
from .forms import *
from django.views.generic import ListView
import markdown2
class HomePageV... | {
"repo_name": "a0919610611/My-blog",
"path": "blog/views.py",
"copies": "1",
"size": "1990",
"license": "mit",
"hash": -3282293009300328400,
"line_mean": 39.612244898,
"line_max": 95,
"alpha_frac": 0.7,
"autogenerated": false,
"ratio": 4.154488517745302,
"config_test": false,
"has_no_keywords... |
from django.shortcuts import render
from django.http import StreamingHttpResponse
from django.views.decorators.http import require_http_methods
from django.core import serializers
import requests
import json
from django.http import HttpResponse
from models import Book
@require_http_methods(['GET'])
def add_book(requ... | {
"repo_name": "tencrance/cool-config",
"path": "DjangoVue/HelloWorld/books/views.py",
"copies": "1",
"size": "1212",
"license": "mit",
"hash": -6286042373364552000,
"line_mean": 24.8085106383,
"line_max": 78,
"alpha_frac": 0.5915841584,
"autogenerated": false,
"ratio": 4.2377622377622375,
"conf... |
from django.shortcuts import render
from django.http.response import HttpResponse, Http404
from django.template.loader import get_template
from django.template import Context
from django.shortcuts import render_to_response, redirect
from article.models import Article, Comments
from django.core.exceptions import ObjectD... | {
"repo_name": "Timurdov/bionicprojectpython",
"path": "shadrus/article/views.py",
"copies": "1",
"size": "3141",
"license": "apache-2.0",
"hash": -3987488790912538000,
"line_mean": 28.9142857143,
"line_max": 136,
"alpha_frac": 0.670805476,
"autogenerated": false,
"ratio": 3.8825710754017306,
"c... |
from django.shortcuts import render
from django.http.response import HttpResponse, HttpResponseBadRequest,\
HttpResponseRedirect
from django.views.generic.base import View
from authentication.forms import RegisterForm, LoginForm
from django.contrib.auth.models import User
from lib.utils import RequestUtils
from dja... | {
"repo_name": "tomaslu/map_editor",
"path": "authentication/views.py",
"copies": "1",
"size": "2770",
"license": "mit",
"hash": -5676001760794691000,
"line_mean": 39.75,
"line_max": 115,
"alpha_frac": 0.5895306859,
"autogenerated": false,
"ratio": 4.9200710479573715,
"config_test": false,
"ha... |
from django.shortcuts import render
from django.http.response import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
from django.contrib.auth import authenticate, login
from django.template import RequestContext
from login.models import user_details, user_login
from django.utils impor... | {
"repo_name": "mdsafwan/Deal-My-Stuff",
"path": "login/views.py",
"copies": "1",
"size": "5448",
"license": "apache-2.0",
"hash": 5001163010187996000,
"line_mean": 38.7737226277,
"line_max": 122,
"alpha_frac": 0.5690161527,
"autogenerated": false,
"ratio": 4.283018867924528,
"config_test": fals... |
from django.shortcuts import render
from django.http.response import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import json
import os
import djangoueditor.settings as UEDITOR_SETTINGS
from datetime import datetime
# Create your views here.
uploadSettings = {
#图片相关
... | {
"repo_name": "it-ailen/django-ueditor",
"path": "djangoueditor/views.py",
"copies": "1",
"size": "2701",
"license": "mit",
"hash": 7719414415477104000,
"line_mean": 40.4461538462,
"line_max": 166,
"alpha_frac": 0.5803936131,
"autogenerated": false,
"ratio": 3.9085631349782295,
"config_test": f... |
from django.shortcuts import render
from django.http.response import HttpResponse
from api.client import get_connection
from slumber.exceptions import HttpClientError
from cla_auth.utils import cla_provider_zone_required
from cla_common.constants import SPECIFIC_BENEFITS
@cla_provider_zone_required
def dashboard(r... | {
"repo_name": "ministryofjustice/cla_frontend",
"path": "cla_frontend/apps/cla_provider/views.py",
"copies": "1",
"size": "2121",
"license": "mit",
"hash": -2607826340989686300,
"line_mean": 34.9491525424,
"line_max": 92,
"alpha_frac": 0.6129184347,
"autogenerated": false,
"ratio": 3.849364791288... |
from django.shortcuts import render
from django.http.response import HttpResponseRedirect, HttpResponse
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from django.contrib.auth.decorators import login_required
from djang... | {
"repo_name": "vollov/django-blog",
"path": "auth/views.py",
"copies": "1",
"size": "1679",
"license": "mit",
"hash": 5046532449581110000,
"line_mean": 36.3111111111,
"line_max": 86,
"alpha_frac": 0.6688505063,
"autogenerated": false,
"ratio": 4.62534435261708,
"config_test": false,
"has_no_k... |
from django.shortcuts import render
from django.http.response import HttpResponseRedirect, HttpResponse
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.contrib.auth import logout
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_req... | {
"repo_name": "codeforgood2015/bnb",
"path": "bnbvolunteer/volunteers/views.py",
"copies": "1",
"size": "22995",
"license": "mit",
"hash": -5234888264848476000,
"line_mean": 40.2096774194,
"line_max": 267,
"alpha_frac": 0.6308762775,
"autogenerated": false,
"ratio": 3.974935177182368,
"config_t... |
from django.shortcuts import render
from django.http.response import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
import os
from .utils import editor_settings
@csrf_exempt
def upload_image(request):
"""
upload images, handle and save image.
"""
if ... | {
"repo_name": "fcfangcc/django-editor-md",
"path": "editor_md/views.py",
"copies": "1",
"size": "2017",
"license": "bsd-3-clause",
"hash": 7200087369221486000,
"line_mean": 43.8222222222,
"line_max": 104,
"alpha_frac": 0.588497769,
"autogenerated": false,
"ratio": 4.167355371900826,
"config_tes... |
from django.shortcuts import render
from django.http.response import JsonResponse
from .models import Supervisor
from .models import SupervisorService
from django.views.decorators.csrf import csrf_exempt
from .monitor import Monitor
# Create your views here.
def index(request):
return render(request, "supervisor... | {
"repo_name": "x007007007/supervisor-monitor",
"path": "src/supervisor_monitor/views.py",
"copies": "1",
"size": "5703",
"license": "mit",
"hash": -318024336001109200,
"line_mean": 32.5529411765,
"line_max": 131,
"alpha_frac": 0.597054182,
"autogenerated": false,
"ratio": 4.36676875957121,
"con... |
from django.shortcuts import render
from django import db
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from starbowmodweb.ladder.forms import CrashReportForm, CrashReport
from starbowmodweb.ladder.helpers import get_matchhistory
from starbowmodweb.ladder.models import C... | {
"repo_name": "Starbow/StarbowWebSite",
"path": "starbowmodweb/ladder/views.py",
"copies": "1",
"size": "5026",
"license": "mit",
"hash": 3267273640774463000,
"line_mean": 40.5371900826,
"line_max": 146,
"alpha_frac": 0.631914047,
"autogenerated": false,
"ratio": 3.884080370942813,
"config_test... |
from django.shortcuts import render
from django import forms
from django.http import HttpResponse
from cat.models import MuseumObject
import django_tables2 as tables
from django_tables2 import RequestConfig
from django_tables2.utils import AttributeDict
from django_tables2.utils import A
import refinery
from django.db.... | {
"repo_name": "uq-eresearch/uqam",
"path": "cat/admin_views.py",
"copies": "1",
"size": "11486",
"license": "bsd-3-clause",
"hash": -5383316993202123000,
"line_mean": 33.5963855422,
"line_max": 178,
"alpha_frac": 0.6175343897,
"autogenerated": false,
"ratio": 3.9484358886215194,
"config_test": ... |
from django.shortcuts import render
from django import forms
from django.http import HttpResponse
from models import User
from models import Photo
from forms import PhotoForm
import datetime
import json
import time
import random
# Create your views here.
#class UserForm(forms.Form):
# username = forms.CharField()... | {
"repo_name": "sundyCoder/parapod",
"path": "server/mysite/parapod/views.py",
"copies": "1",
"size": "2792",
"license": "apache-2.0",
"hash": 5519779497849813000,
"line_mean": 32.2380952381,
"line_max": 78,
"alpha_frac": 0.5648280802,
"autogenerated": false,
"ratio": 3.7628032345013476,
"config... |
from django.shortcuts import render
from django import forms
import django.contrib.auth as auth
from django.http import HttpResponse, HttpResponseRedirect
from osmapi import OsmApi
from django.conf import settings
from biz.models import *
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.... | {
"repo_name": "sirmmo/UF3",
"path": "biz/views.py",
"copies": "1",
"size": "3727",
"license": "mit",
"hash": 4337254309343930000,
"line_mean": 25.8129496403,
"line_max": 152,
"alpha_frac": 0.6965387711,
"autogenerated": false,
"ratio": 2.988773055332799,
"config_test": false,
"has_no_keywords... |
from django.shortcuts import render
from django import forms
import models
from bigtree import BigTree
from db_cbs_kv import CBS
from operator import itemgetter
import operator
class FormBuildsSelector(forms.Form):
def __init__(self, *args, **kwargs):
builds_choices = self.get_build_choices()
base... | {
"repo_name": "agyryk/dailyp",
"path": "dailyp_site/dailyp_dashboard/views.py",
"copies": "1",
"size": "6073",
"license": "apache-2.0",
"hash": -4313488316156536000,
"line_mean": 49.6166666667,
"line_max": 121,
"alpha_frac": 0.6044788408,
"autogenerated": false,
"ratio": 4.235006973500697,
"con... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404, get_list_or_404
from django.http import HttpResponseBadRequest
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.core.management import call_command
from django.utils.trans... | {
"repo_name": "Oinweb/py-fly",
"path": "learning/views.py",
"copies": "3",
"size": "6706",
"license": "bsd-2-clause",
"hash": -5801083198085242000,
"line_mean": 33.7461139896,
"line_max": 104,
"alpha_frac": 0.6689531763,
"autogenerated": false,
"ratio": 3.9354460093896715,
"config_test": false,... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from django.http import HttpResponseRedirect, HttpResponseForbidden
from .models import BlogPost, BlogComment
f... | {
"repo_name": "andreagrandi/bloggato",
"path": "blog/views.py",
"copies": "1",
"size": "3440",
"license": "mit",
"hash": 2579393416408768000,
"line_mean": 32.7254901961,
"line_max": 88,
"alpha_frac": 0.6409883721,
"autogenerated": false,
"ratio": 3.8478747203579418,
"config_test": false,
"has... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.contrib import messages
# Create your views here.
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.core.urlresolvers import reverse
from django.views import generic
from .models ... | {
"repo_name": "srijannnd/Login-and-Register-App-in-Django",
"path": "simplesocial/groups/views.py",
"copies": "1",
"size": "1918",
"license": "mit",
"hash": 1198057311796020700,
"line_mean": 32.0862068966,
"line_max": 82,
"alpha_frac": 0.6710114703,
"autogenerated": false,
"ratio": 4.169565217391... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.http import Http404
from django.core.urlresolvers import reverse
from django.utils import timezone
from django.core.mail import send_mail
from django.http import HttpResponse, HttpResponseRedirect
#from django.template impor... | {
"repo_name": "rsdk/labaccess",
"path": "labaccess/views.py",
"copies": "1",
"size": "3939",
"license": "bsd-2-clause",
"hash": -2804838715884988400,
"line_mean": 33.814159292,
"line_max": 92,
"alpha_frac": 0.6847991866,
"autogenerated": false,
"ratio": 3.0007627765064835,
"config_test": false,... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.http import HttpResponse,HttpResponseRedirect
from django.http import Http404
from polls.models import Poll,Choice
from django.core.urlresolvers import reverse
# Create your views here.
def index(request):
latest_poll_li... | {
"repo_name": "shaoweizhang/mysite",
"path": "polls/views.py",
"copies": "1",
"size": "1570",
"license": "apache-2.0",
"hash": -4714911265160072000,
"line_mean": 36.380952381,
"line_max": 75,
"alpha_frac": 0.6808917197,
"autogenerated": false,
"ratio": 3.838630806845966,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from team.models import Team
from member.models import Member
from comment.models import Comment
@csrf_exempt
def upvote_comment(request, hash, ... | {
"repo_name": "feedbacksonline/feedback",
"path": "comment/views.py",
"copies": "1",
"size": "1168",
"license": "apache-2.0",
"hash": 447273816757738200,
"line_mean": 33.3529411765,
"line_max": 85,
"alpha_frac": 0.716609589,
"autogenerated": false,
"ratio": 3.5393939393939395,
"config_test": fa... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.utils.functional import cached_property
from django.db.models import fields as django_fields
from django.core.paginator import (
Paginator,
EmptyPage,
)
from django.http import Http404
from rest_framework import vie... | {
"repo_name": "mlalic/TumCampusAppBackend",
"path": "tca/chat/views.py",
"copies": "1",
"size": "20769",
"license": "bsd-3-clause",
"hash": -3403137141281049600,
"line_mean": 31.9666666667,
"line_max": 79,
"alpha_frac": 0.6375848621,
"autogenerated": false,
"ratio": 4.548620236530881,
"config_t... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import generics
from . models import Product
from .serializers import ProductSerializer
# Cre... | {
"repo_name": "nickjstevens/eCIP",
"path": "app/views.py",
"copies": "1",
"size": "1194",
"license": "mit",
"hash": 8070429996616688000,
"line_mean": 24.4042553191,
"line_max": 93,
"alpha_frac": 0.7328308208,
"autogenerated": false,
"ratio": 3.8516129032258064,
"config_test": false,
"has_no_k... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404, render, redirect, render_to_response
from django.http import HttpResponse
from django.views import generic
from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
... | {
"repo_name": "AtenrevCode/scChat",
"path": "chat/views.py",
"copies": "1",
"size": "5571",
"license": "mit",
"hash": 7487254101237870000,
"line_mean": 30.7828571429,
"line_max": 104,
"alpha_frac": 0.6326860841,
"autogenerated": false,
"ratio": 3.9559032716927454,
"config_test": false,
"has_n... |
from django.shortcuts import render
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from models import Dial
GRADE_N_COLOR = ((15, "#ED1C24"), # < 15% red color
(60, "#F7AA1E"), # < 60% orange color
(100, "#509E33"),# green ... | {
"repo_name": "OriHoch/Open-Knesset",
"path": "dials/views.py",
"copies": "3",
"size": "1026",
"license": "bsd-3-clause",
"hash": -3835486910347841000,
"line_mean": 31.0625,
"line_max": 66,
"alpha_frac": 0.5886939571,
"autogenerated": false,
"ratio": 3.477966101694915,
"config_test": false,
"... |
from django.shortcuts import render
from django.shortcuts import HttpResponse
from django.core import serializers
from django.http import JsonResponse
from allframe import models
from itertools import chain
from bokeh.plotting import figure
from bokeh.resources import CDN
from bokeh.embed import components
# Create ... | {
"repo_name": "plain1994/DLRanking",
"path": "allframe/views.py",
"copies": "1",
"size": "2980",
"license": "mit",
"hash": 1882302548052536600,
"line_mean": 25.8468468468,
"line_max": 86,
"alpha_frac": 0.6510067114,
"autogenerated": false,
"ratio": 3.4530706836616454,
"config_test": false,
"h... |
from django.shortcuts import render
from django.shortcuts import HttpResponse
from django.shortcuts import HttpResponseRedirect
from django.contrib.auth.models import User, Group
from django.shortcuts import render_to_response
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.decorators im... | {
"repo_name": "ClaudeZoo/iDashBoardWeb",
"path": "Web/views.py",
"copies": "2",
"size": "4833",
"license": "unlicense",
"hash": -3130128674642588000,
"line_mean": 35.6136363636,
"line_max": 115,
"alpha_frac": 0.6178357128,
"autogenerated": false,
"ratio": 4.3151785714285715,
"config_test": fals... |
from django.shortcuts import render
from django.shortcuts import HttpResponse
from rest_framework import viewsets
#from models import Remitente,Destinatario,Mail
from models import Mail
#from serializer import RemitenteSerializer,DestinatarioSerializer,MailSerializer
from serializer import MailSerializer
from rest_fram... | {
"repo_name": "AlexEnriquez/PyQtMail",
"path": "PyDrillQT/PyDrill/views.py",
"copies": "1",
"size": "2220",
"license": "mit",
"hash": -2191102114778399500,
"line_mean": 39.3636363636,
"line_max": 90,
"alpha_frac": 0.6833333333,
"autogenerated": false,
"ratio": 3.9153439153439153,
"config_test":... |
from django.shortcuts import render
from django.shortcuts import HttpResponse
# Create your views here.
from django.template import loader
from django.urls import NoReverseMatch, reverse
from django.views.decorators.cache import never_cache
from django.shortcuts import HttpResponseRedirect, render_to_response
from dj... | {
"repo_name": "windskyer/web",
"path": "wvpn/views.py",
"copies": "1",
"size": "3303",
"license": "apache-2.0",
"hash": -5880970860336340000,
"line_mean": 31.702970297,
"line_max": 80,
"alpha_frac": 0.689373297,
"autogenerated": false,
"ratio": 4.12875,
"config_test": false,
"has_no_keywords"... |
from django.shortcuts import render
from django.shortcuts import redirect
from dictionary.forms import LoginForm
from dictionary.models import Record
from django.contrib import auth
from django.contrib import messages
from datetime import datetime
from dictionary.dictionary import Dictionary
from django.contrib.auth.de... | {
"repo_name": "elliott-wen/Dictionary-Django",
"path": "dictionary/views.py",
"copies": "1",
"size": "2873",
"license": "apache-2.0",
"hash": 8563838537935725000,
"line_mean": 32.8,
"line_max": 96,
"alpha_frac": 0.6230421163,
"autogenerated": false,
"ratio": 4.080965909090909,
"config_test": fa... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required
from django.http import JsonResponse
from django.core import serializers
# Create your views here.
from django.http import HttpResponse
from django.template import loader
from django.views... | {
"repo_name": "openbacchus/bacchus",
"path": "scheduler/views.py",
"copies": "1",
"size": "6658",
"license": "apache-2.0",
"hash": -2897032571077821400,
"line_mean": 37.0457142857,
"line_max": 212,
"alpha_frac": 0.61835386,
"autogenerated": false,
"ratio": 3.8597101449275364,
"config_test": fal... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib.auth import get_user_model
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect
from django.core.urlr... | {
"repo_name": "Towhidn/django-boilerplate",
"path": "account/views.py",
"copies": "1",
"size": "7504",
"license": "mit",
"hash": 2262697007373235000,
"line_mean": 28.431372549,
"line_max": 107,
"alpha_frac": 0.7104211087,
"autogenerated": false,
"ratio": 3.2883435582822087,
"config_test": false... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib.auth import logout as django_logout
from django.contrib.auth.views import login as django_login
from django.views.generic import TemplateView
from django.conf import settings
from tracker.models import Character
import pycrest... | {
"repo_name": "paftree/WHturk",
"path": "home/views.py",
"copies": "1",
"size": "3951",
"license": "mit",
"hash": -5165349145625092000,
"line_mean": 35.9252336449,
"line_max": 101,
"alpha_frac": 0.6327512022,
"autogenerated": false,
"ratio": 3.6617238183503242,
"config_test": false,
"has_no_k... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib import auth
from django.utils.translation import ugettext
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from account.helpers import allauth as allauth_helpers
from . import form... | {
"repo_name": "iakovleva/allauth-login-page",
"path": "account/views.py",
"copies": "1",
"size": "1439",
"license": "mit",
"hash": -5569493057303324000,
"line_mean": 34.0487804878,
"line_max": 118,
"alpha_frac": 0.7118997912,
"autogenerated": false,
"ratio": 3.9262295081967213,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm
from datetime import datetime
from rango.webhose_search import run_query
fro... | {
"repo_name": "jxltom/tango_with_django_19",
"path": "code/tango_with_django_project/rango/views_ajax.py",
"copies": "2",
"size": "2005",
"license": "apache-2.0",
"hash": 5467503231477265000,
"line_mean": 28.5,
"line_max": 83,
"alpha_frac": 0.6379052369,
"autogenerated": false,
"ratio": 3.6992619... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from rango.models import Category, Page, UserProfile
from rango.forms import CategoryForm, PageForm, UserProfileForm
from datetime import datetime
from rango.webhos... | {
"repo_name": "leifos/tango_with_django_19",
"path": "code/tango_with_django_project/rango/views.py",
"copies": "1",
"size": "10235",
"license": "apache-2.0",
"hash": -6858552897957522000,
"line_mean": 34.7902097902,
"line_max": 114,
"alpha_frac": 0.6280410357,
"autogenerated": false,
"ratio": 4.... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.db.models import Count, Min, Sum, Avg
# Create your views here.
from django.http import HttpResponse
from auction.models import Customer, Item, Transaction
#from auction.forms import CheckoutForm
def index(request):
if request.P... | {
"repo_name": "changgengli/BarnAuction",
"path": "pyweb/auction/views.py",
"copies": "1",
"size": "1726",
"license": "mit",
"hash": -3282155033131017000,
"line_mean": 37.3555555556,
"line_max": 177,
"alpha_frac": 0.6633835458,
"autogenerated": false,
"ratio": 4.061176470588236,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.utils.html import mark_safe
# Create your views here.
from flad.models import Locus,Allele,FLADkey
from myflq.MyFLq import complement,Alig... | {
"repo_name": "beukueb/myflq",
"path": "src/MyFLsite/flad/views.py",
"copies": "1",
"size": "4626",
"license": "mit",
"hash": -2907052743321539000,
"line_mean": 39.2260869565,
"line_max": 98,
"alpha_frac": 0.654561176,
"autogenerated": false,
"ratio": 3.900505902192243,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_protect
from login.models import User_Profiles
from login import auth, google
login_providers = {"google" : google.Google_Oauth}
def isLogin(request):
resp... | {
"repo_name": "sonicyang/chiphub",
"path": "login/views.py",
"copies": "1",
"size": "3224",
"license": "mit",
"hash": -9002492897466602000,
"line_mean": 35.6363636364,
"line_max": 106,
"alpha_frac": 0.5316377171,
"autogenerated": false,
"ratio": 4.76218611521418,
"config_test": false,
"has_no... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.views.generic import View
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_me... | {
"repo_name": "theonaun/theo_site",
"path": "app_hms/views.py",
"copies": "1",
"size": "2076",
"license": "mit",
"hash": 1475401794622486000,
"line_mean": 26.3157894737,
"line_max": 71,
"alpha_frac": 0.6791907514,
"autogenerated": false,
"ratio": 3.984644913627639,
"config_test": false,
"has_... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.views.generic import View
from .models import SurnameToRace
from .models import ZCTAToRace
from .models import ForenameToGender
from .models import UserToHMAC
from .forms import SurnameForm
from ... | {
"repo_name": "theonaun/theo_site",
"path": "app_surgeo/views.py",
"copies": "1",
"size": "2824",
"license": "mit",
"hash": -4930323395392024000,
"line_mean": 33.4390243902,
"line_max": 82,
"alpha_frac": 0.5842776204,
"autogenerated": false,
"ratio": 4.706666666666667,
"config_test": false,
"... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from perfis.models import Perfil
from perfis.models import Convite
def index(request):
context = {
'perfis' : Perfil.objects.all(),
'perfil_logado' : get_perfil_logado(request)
}
return render(request,... | {
"repo_name": "danieldeveloper001/Learning",
"path": "Python/03_MVC/ConnectedIn/perfis/views.py",
"copies": "1",
"size": "1035",
"license": "mit",
"hash": -1681575305928741400,
"line_mean": 27.75,
"line_max": 55,
"alpha_frac": 0.747826087,
"autogenerated": false,
"ratio": 2.6269035532994924,
"c... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from Server.models import SerialConnections
from Server.SerialConnectionProvider import SerialConnectionProvider
from xbee_module.models import xbee_module
def index(request):
serial_list = SerialConnect... | {
"repo_name": "EricJones89/SmartHome",
"path": "SmartHome/Server/views.py",
"copies": "1",
"size": "1423",
"license": "mit",
"hash": -7450920420134903000,
"line_mean": 42.1515151515,
"line_max": 163,
"alpha_frac": 0.7568517217,
"autogenerated": false,
"ratio": 4.3121212121212125,
"config_test":... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from user_profiles.forms import UserForm
from django.contrib.auth.models import User
from user_profiles... | {
"repo_name": "benwilburn/fitist",
"path": "FITist_project/user_profiles/views.py",
"copies": "1",
"size": "1555",
"license": "mit",
"hash": 1203703665777574400,
"line_mean": 32.8043478261,
"line_max": 77,
"alpha_frac": 0.6572347267,
"autogenerated": false,
"ratio": 4.1466666666666665,
"config_... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.http import HttpResponse
from django.http import HttpResponseForbidden
from django.http import HttpResponseBadRequest
from django.contrib import messages
from django.db.models import Q
fr... | {
"repo_name": "holzenburg/feedshare",
"path": "feedshare/feedlists/views.py",
"copies": "1",
"size": "7827",
"license": "mit",
"hash": -7004405333164076000,
"line_mean": 30.6882591093,
"line_max": 79,
"alpha_frac": 0.5873259231,
"autogenerated": false,
"ratio": 3.90763854218672,
"config_test": ... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.utils import timezone
from .forms import QuestionForm
from .forms import AnswerForm
from .models import Question
from .models import Answer
def question_list(request):
questions = Qu... | {
"repo_name": "jhoon2816/KU-PL",
"path": "qna/views.py",
"copies": "1",
"size": "2284",
"license": "mit",
"hash": -1837270818692227300,
"line_mean": 34.5,
"line_max": 101,
"alpha_frac": 0.6456866197,
"autogenerated": false,
"ratio": 3.930795847750865,
"config_test": false,
"has_no_keywords": ... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.template import RequestContext
from .forms import CaseForm
from cases.models import Case
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.shortcuts import get_object_or_404
fr... | {
"repo_name": "raonyguimaraes/mendelmd",
"path": "cases/views.py",
"copies": "1",
"size": "7135",
"license": "bsd-3-clause",
"hash": -6155468583462613000,
"line_mean": 32.980952381,
"line_max": 84,
"alpha_frac": 0.6264891381,
"autogenerated": false,
"ratio": 3.7513144058885386,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from amon.apps.cloudservers.forms import (
AmazonForm,
DigitalOceanForm,
LinodeForm,
RackspaceForm,
... | {
"repo_name": "martinrusev/amonone",
"path": "amon/apps/cloudservers/views.py",
"copies": "1",
"size": "3728",
"license": "mit",
"hash": -31938544932965856,
"line_mean": 30.3277310924,
"line_max": 128,
"alpha_frac": 0.6891094421,
"autogenerated": false,
"ratio": 3.7732793522267207,
"config_test... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.utils import timezone
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.db.models import Q
from django.http import HttpResponse
from django.db import connection
import json
from... | {
"repo_name": "anderson7ru/bienestarues",
"path": "datospersonalesapp/views.py",
"copies": "1",
"size": "16418",
"license": "mit",
"hash": 2218230726133688600,
"line_mean": 42.9010695187,
"line_max": 260,
"alpha_frac": 0.6979534657,
"autogenerated": false,
"ratio": 2.464055230376707,
"config_te... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.utils import timezone
from django.contrib import messages
from django.db import connection
from django.contrib.auth.decorators import login_required
from empleadosapp.models import Empleado, Especialidad, Doctor
from empleadosapp.for... | {
"repo_name": "anderson7ru/bienestarues",
"path": "empleadosapp/views.py",
"copies": "1",
"size": "6154",
"license": "mit",
"hash": -7243421309858696000,
"line_mean": 49.867768595,
"line_max": 225,
"alpha_frac": 0.7494312642,
"autogenerated": false,
"ratio": 2.8139003200731594,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.views.decorators.http import require_http_methods
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from utils import q, to_json, redis_conn, required_login
from api.exceptions imp... | {
"repo_name": "zhy0216/random-read",
"path": "account/views.py",
"copies": "1",
"size": "1384",
"license": "mit",
"hash": -6671710957770962000,
"line_mean": 26.137254902,
"line_max": 69,
"alpha_frac": 0.713150289,
"autogenerated": false,
"ratio": 3.988472622478386,
"config_test": false,
"has_... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.views.generic import TemplateView
from www.models.rightscale_account import rightscale_account
import rightscale
class new(TemplateView):
template_name = 'rightscale/account/new.html'
def post(self, request):
accoun... | {
"repo_name": "rgeyer/terminator_for_rs_ss",
"path": "www/controllers/web/rightscale/account/new.py",
"copies": "1",
"size": "2574",
"license": "mit",
"hash": -9176311865071216000,
"line_mean": 32.4285714286,
"line_max": 143,
"alpha_frac": 0.627039627,
"autogenerated": false,
"ratio": 3.325581395... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.views.generic import TemplateView
from blog.models import Blog
class HomeView(TemplateView):
#template_name = "index.html"
def get_section(self):
return self.kwargs.get('section') or 'home'
def get_template_na... | {
"repo_name": "ktucec/miniblog",
"path": "miniblog/apps/blog/views.py",
"copies": "1",
"size": "1797",
"license": "mit",
"hash": -7570156603980062000,
"line_mean": 25.0434782609,
"line_max": 80,
"alpha_frac": 0.6026711185,
"autogenerated": false,
"ratio": 3.9407894736842106,
"config_test": fals... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.views import View
from django.views.generic.edit import CreateView
from django.views.generic.edit import FormView
from django.core.urlresolvers import reverse
from django.contrib.auth import authenticate
from django.contrib.auth impor... | {
"repo_name": "uehara1414/serverctl-prototype",
"path": "serverctl/views.py",
"copies": "1",
"size": "3754",
"license": "mit",
"hash": 7807143731250890000,
"line_mean": 31.3620689655,
"line_max": 109,
"alpha_frac": 0.6981885988,
"autogenerated": false,
"ratio": 3.870103092783505,
"config_test":... |
from django.shortcuts import render
from django.shortcuts import redirect
from event.models import Event
from tag.models import Tag
from django.conf import settings
def index(request):
if request.user.is_anonymous or request.user.role == "helper":
return redirect('/event/top')
else:
return red... | {
"repo_name": "internship2016/sovolo",
"path": "app/sovolo/views.py",
"copies": "1",
"size": "1846",
"license": "mit",
"hash": -5848020999947238000,
"line_mean": 24.1944444444,
"line_max": 118,
"alpha_frac": 0.6102535832,
"autogenerated": false,
"ratio": 3.416195856873823,
"config_test": false,... |
from django.shortcuts import render
from django.shortcuts import redirect
from decks import list_decks, load_deck
from deck_parser import parse_md
from django.http import HttpResponse
from django.http import JsonResponse
from models import Result, Deck
def index(request):
return redirect('/quizzes/list/')
def n... | {
"repo_name": "edublancas/learning",
"path": "quizzes/views.py",
"copies": "1",
"size": "2440",
"license": "mit",
"hash": 4546174009834668500,
"line_mean": 31.9864864865,
"line_max": 77,
"alpha_frac": 0.6709016393,
"autogenerated": false,
"ratio": 3.436619718309859,
"config_test": false,
"has... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import Http404
from school.models import Student, Section
from school.models import Professor
from school.models import Course
from school.forms import StudentForm
from school.forms import ProfessorForm
from school.forms impor... | {
"repo_name": "theplue/djangoApp",
"path": "school/views.py",
"copies": "1",
"size": "2929",
"license": "mit",
"hash": -7639381935420461000,
"line_mean": 28.0099009901,
"line_max": 75,
"alpha_frac": 0.6848753841,
"autogenerated": false,
"ratio": 3.351258581235698,
"config_test": false,
"has_n... |
from django.shortcuts import render
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from .models import Wishlist, Fvote
from .forms import Create_wishlist_item
from django.db.models import Q
from ... | {
"repo_name": "junaidq1/greendot",
"path": "src/wishlist/views.py",
"copies": "1",
"size": "2205",
"license": "mit",
"hash": 4422779623649339400,
"line_mean": 31.4264705882,
"line_max": 106,
"alpha_frac": 0.7532879819,
"autogenerated": false,
"ratio": 3.32579185520362,
"config_test": false,
"... |
from django.shortcuts import render
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.contrib.auth import logout as auth_logout
from django.contrib.auth.models import Use... | {
"repo_name": "ACE-VSIT/Library-Portal",
"path": "acelibraryapp/views.py",
"copies": "2",
"size": "4576",
"license": "mit",
"hash": 6278604536648833000,
"line_mean": 30.3424657534,
"line_max": 149,
"alpha_frac": 0.7156905594,
"autogenerated": false,
"ratio": 3.2826398852223817,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import render, get_object_or_404
from django.shortcuts import render_to_response
from django.shortcuts import HttpResponseRedirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.views import generic
from django.db.m... | {
"repo_name": "polojacky/ehfpi",
"path": "ehf/browse/views.py",
"copies": "1",
"size": "35206",
"license": "apache-2.0",
"hash": 2898840039907407000,
"line_mean": 39.1448118586,
"line_max": 150,
"alpha_frac": 0.5624325399,
"autogenerated": false,
"ratio": 4.317106069895769,
"config_test": false... |
from django.shortcuts import render
from django.shortcuts import render,get_object_or_404
from django.shortcuts import render_to_response
from django.shortcuts import HttpResponseRedirect
from django.template import RequestContext
from django.core.mail import send_mail
from browse.models import *
from browse.browse_vie... | {
"repo_name": "polojacky/ehfpi",
"path": "ehf/about/views.py",
"copies": "1",
"size": "3836",
"license": "apache-2.0",
"hash": 3062232314878621700,
"line_mean": 33.8727272727,
"line_max": 146,
"alpha_frac": 0.6389468196,
"autogenerated": false,
"ratio": 4.054968287526427,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from device.models import Env, Meter, Inverter, Site
from device.models import Env_minor, Meter_minor, In... | {
"repo_name": "mageelen/snow",
"path": "device/views.py",
"copies": "1",
"size": "4755",
"license": "mit",
"hash": 4948200455457236000,
"line_mean": 30.8986486486,
"line_max": 94,
"alpha_frac": 0.5753018428,
"autogenerated": false,
"ratio": 3.533682634730539,
"config_test": false,
"has_no_key... |
from django.shortcuts import render
from django.shortcuts import render, HttpResponseRedirect
from apps.calc.measurement import measurement_obj
from django.contrib.auth.decorators import login_required
from django.http import JsonResponse
import json
from apps.analysis.json import NumPyArangeEncoder
@login_required
d... | {
"repo_name": "IT-PM-OpenAdaptronik/Webapp",
"path": "apps/tess/views.py",
"copies": "1",
"size": "2057",
"license": "mit",
"hash": 604548272333778700,
"line_mean": 37.0925925926,
"line_max": 121,
"alpha_frac": 0.7194944093,
"autogenerated": false,
"ratio": 4.1305220883534135,
"config_test": fa... |
from django.shortcuts import render
from django.shortcuts import render
from django.http import HttpResponseRedirect,request
from django.views.generic.base import RedirectView
from django.views.generic.edit import FormView
from django.views.generic.list import ListView
from django.views.generic import DetailView
from... | {
"repo_name": "buildbuild/buildbuild",
"path": "buildbuild/projects/views.py",
"copies": "1",
"size": "12758",
"license": "bsd-3-clause",
"hash": -5852339525431717000,
"line_mean": 38.2553846154,
"line_max": 148,
"alpha_frac": 0.5953127449,
"autogenerated": false,
"ratio": 4.038619816397595,
"c... |
# from django.shortcuts import render
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.http import JsonResponse
from django.views.generic import CreateView
from django.views.generic import ListView
from django.views.generic import DetailView
from django.views.generic import... | {
"repo_name": "ad-m/pru",
"path": "pru/registers/views.py",
"copies": "1",
"size": "3163",
"license": "bsd-3-clause",
"hash": 1092708273872640000,
"line_mean": 32.6489361702,
"line_max": 90,
"alpha_frac": 0.6923806513,
"autogenerated": false,
"ratio": 3.7124413145539905,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render, redirect, get_object_or_404
from .models import Analysis
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.detail import DetailView
from django.urls import reverse_lazy
from django.shortcuts impo... | {
"repo_name": "raonyguimaraes/mendelmd",
"path": "analyses/views.py",
"copies": "1",
"size": "5679",
"license": "bsd-3-clause",
"hash": -7093602889652321000,
"line_mean": 29.2074468085,
"line_max": 110,
"alpha_frac": 0.6016904385,
"autogenerated": false,
"ratio": 4.100361010830325,
"config_test... |
from django.shortcuts import render
from django.shortcuts import render,redirect
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from .models import Profile
from django.db import models
from .forms import AdminProfileForm,UpdateProfileForm,DisplayProfile
from djang... | {
"repo_name": "OSDLabs/QuarkWebsite2017",
"path": "panel/views.py",
"copies": "3",
"size": "2038",
"license": "apache-2.0",
"hash": 94715629400324690,
"line_mean": 32.9833333333,
"line_max": 153,
"alpha_frac": 0.7561334642,
"autogenerated": false,
"ratio": 3.3741721854304636,
"config_test": fal... |
from django.shortcuts import render
from django.shortcuts import render, redirect
from django.views import generic
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
from django.contrib.auth.mixins import LoginRequiredMixin
... | {
"repo_name": "AtenrevCode/scChat",
"path": "users/views.py",
"copies": "1",
"size": "3645",
"license": "mit",
"hash": 9195839939405206000,
"line_mean": 35.0396039604,
"line_max": 94,
"alpha_frac": 0.5527472527,
"autogenerated": false,
"ratio": 4.590163934426229,
"config_test": false,
"has_no... |
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from django.template.context import RequestContext
from rest_framework import viewsets
from rest_framework.authentication import SessionAuthentication, BasicAuthentication, TokenAuthentication
from rest_framework.perm... | {
"repo_name": "gabrielferreira/apprelease",
"path": "release/views.py",
"copies": "1",
"size": "2796",
"license": "apache-2.0",
"hash": -821102585556665500,
"line_mean": 45.6,
"line_max": 127,
"alpha_frac": 0.7904148784,
"autogenerated": false,
"ratio": 4.715008431703204,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
# Create your views here.
from profiles.models import GeoLevel, GeoRecord, DataDomain
from userguides.models import AboutTopic, StayInTouchUser
from userguides.models import ... | {
"repo_name": "216software/Profiles",
"path": "communityprofiles/userguides/views.py",
"copies": "2",
"size": "2497",
"license": "mit",
"hash": -5302494298076643000,
"line_mean": 42.8070175439,
"line_max": 114,
"alpha_frac": 0.6896275531,
"autogenerated": false,
"ratio": 3.812213740458015,
"con... |
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from blog.models import Blog, Topic, Tag
from django.core.paginator import Paginator, EmptyPage
from itertools import chain
# Create your views here.
def blogs(request, selec... | {
"repo_name": "mvtuong/mysite",
"path": "v1/blog/views.py",
"copies": "1",
"size": "3954",
"license": "apache-2.0",
"hash": -1705110174422624800,
"line_mean": 37.3980582524,
"line_max": 116,
"alpha_frac": 0.6322711179,
"autogenerated": false,
"ratio": 3.4991150442477874,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from forms import MessageForm
from models import Message
def add_msg(request):
# A HTTP POST?
if request.method == 'POST':
form = MessageForm(request.POST)
# Have we been provided with a val... | {
"repo_name": "vollov/helensauto.ca",
"path": "django/eauto/message/views.py",
"copies": "1",
"size": "1832",
"license": "mit",
"hash": 302497342865085950,
"line_mean": 28.564516129,
"line_max": 83,
"alpha_frac": 0.5687772926,
"autogenerated": false,
"ratio": 3.7851239669421486,
"config_test": ... |
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from message.forms import MessageForm
from models import Message
def add_msg(request):
# A HTTP POST?
if request.method == 'POST':
form = MessageForm(request.POST)
# Have we been provided wi... | {
"repo_name": "vollov/egallery",
"path": "gallery/message/views.py",
"copies": "1",
"size": "2153",
"license": "mit",
"hash": -6579266737410366000,
"line_mean": 29.7714285714,
"line_max": 83,
"alpha_frac": 0.5499303298,
"autogenerated": false,
"ratio": 3.692967409948542,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.conf import settings
from home.models import *
import requests
import os
import json
from django.contrib.auth.decorators import login_required
from website.settings import GOOGLE_PLUS_KEY
# Create your views here.
def index... | {
"repo_name": "AIS-BYU/ais-site",
"path": "website/home/views.py",
"copies": "1",
"size": "2219",
"license": "mit",
"hash": -8969963646770477000,
"line_mean": 31.6470588235,
"line_max": 153,
"alpha_frac": 0.7102298333,
"autogenerated": false,
"ratio": 3.202020202020202,
"config_test": false,
... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.core.context_processors import csrf
from django.template import Context, loader, RequestContext
from cards.forms import UploadScansForm
from cards.models import *
from datetime import datetime
#import datetime
from tasty... | {
"repo_name": "i-DAT-Qualia/Card-Backend",
"path": "cards/views.py",
"copies": "1",
"size": "6765",
"license": "apache-2.0",
"hash": 835458003354046200,
"line_mean": 33.3401015228,
"line_max": 106,
"alpha_frac": 0.5268292683,
"autogenerated": false,
"ratio": 4.1810877626699625,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.db.models.loading import get_model
from django.http import HttpResponse, HttpResponseRedirect
from models import Checklist, ChecklistV2, ChecklistElement, Device, UnregisteredDevice, Data, AuditTrail
from django.contrib.auth... | {
"repo_name": "timothyclemans/checklistsforglass",
"path": "checklistsforglass/views.py",
"copies": "1",
"size": "13909",
"license": "apache-2.0",
"hash": -4845937057156813000,
"line_mean": 39.1994219653,
"line_max": 193,
"alpha_frac": 0.6518081818,
"autogenerated": false,
"ratio": 3.735965619124... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from .forms import PurchaseForm
from models import PurchaseOrder
from django.template.context_processors import csrf
from django.views.decorators.csrf import csrf_exempt
@cs... | {
"repo_name": "toinbis/gatest",
"path": "gatest/apps/core/views.py",
"copies": "1",
"size": "1226",
"license": "mit",
"hash": 5864245354698667000,
"line_mean": 24.5625,
"line_max": 87,
"alpha_frac": 0.6305057096,
"autogenerated": false,
"ratio": 4.425992779783393,
"config_test": false,
"has_n... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse, JsonResponse
from models import User, Game, Score, Match
import json
import datetime
# Create your views here.
def index(request):
return render_to_response('index.html', {})
def users(req... | {
"repo_name": "hyades/foot-match",
"path": "games/views.py",
"copies": "1",
"size": "3483",
"license": "mit",
"hash": -2413254294722283500,
"line_mean": 23.8785714286,
"line_max": 64,
"alpha_frac": 0.5730691932,
"autogenerated": false,
"ratio": 3.5981404958677685,
"config_test": false,
"has_n... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse
from books.models import Book
from django.core.mail import send_mail
from django.http import HttpResponseRedirect
from django import forms
from forms import ContactForm
# Create your views here.
de... | {
"repo_name": "tongxindao/shiyanlou",
"path": "shiyanlou_cs30-43c7d81b0b/mysite/books/views.py",
"copies": "1",
"size": "2117",
"license": "apache-2.0",
"hash": 7724736096242251000,
"line_mean": 30.5970149254,
"line_max": 69,
"alpha_frac": 0.6003778932,
"autogenerated": false,
"ratio": 3.86313868... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.template.context import RequestContext
from django.contrib.auth.models import User
from .models import Task
def viewHome(request):
context = RequestContext(request)
context.upda... | {
"repo_name": "aazhbd/task_planner",
"path": "planner/views.py",
"copies": "1",
"size": "1953",
"license": "bsd-3-clause",
"hash": -8865408412020644000,
"line_mean": 37.2941176471,
"line_max": 116,
"alpha_frac": 0.6185355863,
"autogenerated": false,
"ratio": 4.1553191489361705,
"config_test": f... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse
from .models import Docs
from django.template import loader
from .form import QueryForm
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
import json
from tweetmining import *
... | {
"repo_name": "warrencrowell/cs4300sp2016-TweetBeat",
"path": "project_template/views.py",
"copies": "1",
"size": "9993",
"license": "mit",
"hash": 8198021109349319000,
"line_mean": 43.4133333333,
"line_max": 123,
"alpha_frac": 0.5458821175,
"autogenerated": false,
"ratio": 4.075448613376835,
"... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect,Http404
from teacher.models import Paper,Score,Question,Score
from IMS.models import Class_info,Student_user,Course_info,Faculty_user,class_table
import re
# Create your views here.
def Vi... | {
"repo_name": "yuanpengX/SE-NE",
"path": "djcode/student/views.py",
"copies": "1",
"size": "3229",
"license": "mit",
"hash": 3104221779528694300,
"line_mean": 39.3625,
"line_max": 111,
"alpha_frac": 0.6234128213,
"autogenerated": false,
"ratio": 3.8486293206197852,
"config_test": false,
"has_... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.contrib import auth
from django.core.context_processors import csrf
from forms import MyRegistrationForm
def home(request):
return render(request,"home.html")
def login(req... | {
"repo_name": "meranamvarun/django_practice",
"path": "tutorial2/views.py",
"copies": "1",
"size": "1556",
"license": "mit",
"hash": 3726405236630758400,
"line_mean": 25.3728813559,
"line_max": 69,
"alpha_frac": 0.690874036,
"autogenerated": false,
"ratio": 4.127320954907161,
"config_test": fal... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.http import HttpResponseNotFound
from django.template import RequestContext
from images.models import *
from posts.models import *
from django.contrib.sites.models import Site
fro... | {
"repo_name": "CMPUT410W15/cmput410-project",
"path": "images/views.py",
"copies": "1",
"size": "1496",
"license": "apache-2.0",
"hash": 1918323430637766700,
"line_mean": 30.829787234,
"line_max": 70,
"alpha_frac": 0.6998663102,
"autogenerated": false,
"ratio": 4.190476190476191,
"config_test":... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.shortcuts import redirect
from datetime import datetime
from app.models import Commodity
from django.http import HttpResponse
from dwebsocket import require_websocket
from dwebsocket.decorators import accept_websocket,requi... | {
"repo_name": "zhu913104/KMdriod",
"path": "HW/app/views.py",
"copies": "1",
"size": "5814",
"license": "mit",
"hash": 7332742878341457000,
"line_mean": 35.7388535032,
"line_max": 203,
"alpha_frac": 0.6302011096,
"autogenerated": false,
"ratio": 3.4580335731414866,
"config_test": false,
"has_... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.http import JsonResponse
from django.template import RequestContext
from django.contrib.auth.de... | {
"repo_name": "sprenge/energywizard",
"path": "main/views.py",
"copies": "1",
"size": "2844",
"license": "mit",
"hash": 576293223548510850,
"line_mean": 32.4588235294,
"line_max": 92,
"alpha_frac": 0.6571729958,
"autogenerated": false,
"ratio": 4.244776119402985,
"config_test": false,
"has_no... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext, loader
from django.http import HttpResponse
from django.views.generic import View
from ws4redis.redis_store import RedisMessage
from ws4redis.publisher import RedisPublisher
from ws4redis.redi... | {
"repo_name": "parthz/djchat",
"path": "core/views.py",
"copies": "1",
"size": "1050",
"license": "mit",
"hash": -4325166736585920500,
"line_mean": 35.2413793103,
"line_max": 101,
"alpha_frac": 0.7466666667,
"autogenerated": false,
"ratio": 4.150197628458498,
"config_test": false,
"has_no_key... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.core.urlresolvers import reverse
from article.models import Document
from article.forms import DocumentForm
# Create your views here.
from django.http import HttpResponse
from djang... | {
"repo_name": "rajmohanperiyasamy/pollapp",
"path": "article/views.py",
"copies": "1",
"size": "11268",
"license": "mit",
"hash": -7443733727078793000,
"line_mean": 34.4371069182,
"line_max": 162,
"alpha_frac": 0.650514732,
"autogenerated": false,
"ratio": 3.6920052424639582,
"config_test": fal... |
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse
import googlemaps
from vets.models import VetSpot
gmaps = googlemaps.Client(key='AIzaSyA0tl-yTrvyi_9UESPKQ27Ny4L0ONoktj8')
def index(request):
return re... | {
"repo_name": "Famguy/PetCare",
"path": "petcare/vets/views.py",
"copies": "1",
"size": "3570",
"license": "mit",
"hash": 2669964006883390500,
"line_mean": 32.6886792453,
"line_max": 109,
"alpha_frac": 0.6910364146,
"autogenerated": false,
"ratio": 3.053892215568862,
"config_test": false,
"ha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.