text stringlengths 0 1.05M | meta dict |
|---|---|
from django.shortcuts import render_to_response
from django.template import RequestContext
from django import forms
from django.core.mail import send_mail
from subscription.forms import SubscriptionForm
from subscription.models import Subscription
from django.shortcuts import get_object_or_404
from django.core.urlreso... | {
"repo_name": "rrmartins/eventex",
"path": "subscription/views.py",
"copies": "1",
"size": "1699",
"license": "apache-2.0",
"hash": -8500825590245693000,
"line_mean": 32.3137254902,
"line_max": 90,
"alpha_frac": 0.6986462625,
"autogenerated": false,
"ratio": 3.988262910798122,
"config_test": fa... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django_sensible import oauth2
from django_sensible import SECURE_CONFIG
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
def refresh_token(user):
p... | {
"repo_name": "MIT-Model-Open-Data-and-Identity-System/SensibleData-Apps-SensibleExplorer",
"path": "sensible_explorer/render/views.py",
"copies": "1",
"size": "1073",
"license": "mit",
"hash": -6670556997383174000,
"line_mean": 41.92,
"line_max": 256,
"alpha_frac": 0.7772600186,
"autogenerated": f... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import get_object_or_404
from preferences.forms import UpdatePreferencesForm
from preferences.models import UserPreferences
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators im... | {
"repo_name": "linkfloyd/linkfloyd",
"path": "linkfloyd/preferences/views.py",
"copies": "1",
"size": "1334",
"license": "bsd-3-clause",
"hash": 8409886615089189000,
"line_mean": 36.0555555556,
"line_max": 66,
"alpha_frac": 0.6551724138,
"autogenerated": false,
"ratio": 4.95910780669145,
"confi... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import redirect
from django.contrib.auth.models import User
from django.contrib import messages
from models import Team, Point
from forms import AddPointForm
import service
def index(request):
data = {
... | {
"repo_name": "MitMaro/The-Blame-Game",
"path": "game/views.py",
"copies": "1",
"size": "1310",
"license": "mit",
"hash": 5750450653248763000,
"line_mean": 25.22,
"line_max": 95,
"alpha_frac": 0.7198473282,
"autogenerated": false,
"ratio": 3.179611650485437,
"config_test": false,
"has_no_keyw... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from system.controllers.utils import reverse_or_404
def resolve_name_and_title(name, title):
default_urlname = "system:top"
default_titl... | {
"repo_name": "XMLPro/ManagementSystem",
"path": "system/controllers/postFinishView.py",
"copies": "1",
"size": "1830",
"license": "mit",
"hash": -7991735623453120000,
"line_mean": 26.8983050847,
"line_max": 78,
"alpha_frac": 0.6038882139,
"autogenerated": false,
"ratio": 3.020183486238532,
"co... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from registrations.models import Registration
from registrations.forms import RegistrationForm, UpdateForm, UpdateDataForm
#### Initial signup f... | {
"repo_name": "greencoder/hopefullysunny-django",
"path": "registrations/views.py",
"copies": "1",
"size": "3051",
"license": "mit",
"hash": 651893376224636500,
"line_mean": 30.78125,
"line_max": 85,
"alpha_frac": 0.6342182891,
"autogenerated": false,
"ratio": 4.4605263157894735,
"config_test":... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.template.context_processors import csrf
from qmpy.models import Formation, MetaData
from qmpy.utils import *
from ..tools import get_globals
def disco_view(request):
search = None
data = get_globals()
... | {
"repo_name": "wolverton-research-group/qmpy",
"path": "qmpy/web/views/materials/discovery.py",
"copies": "1",
"size": "2502",
"license": "mit",
"hash": -5292960273272574000,
"line_mean": 33.75,
"line_max": 92,
"alpha_frac": 0.6119104716,
"autogenerated": false,
"ratio": 3.4227086183310536,
"co... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.template.loader import render_to_string
from django.views.generic import TemplateView
from django.utils.decorators import method_decorator
from django.core.urlresolvers import reverse, resolve
from django.http import ... | {
"repo_name": "Mercy-Nekesa/sokoapp",
"path": "sokoapp/feedback/views.py",
"copies": "1",
"size": "1470",
"license": "mit",
"hash": -425510370094295500,
"line_mean": 31.6888888889,
"line_max": 103,
"alpha_frac": 0.7530612245,
"autogenerated": false,
"ratio": 3.712121212121212,
"config_test": fa... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils import simplejson
from django.contrib.auth import logout
from django.contrib.messages import debug, info, success, warning, error, add_message
from django.core.urlresolvers import reverse
from django.http import... | {
"repo_name": "ojii/django-utils",
"path": "utils/views.py",
"copies": "1",
"size": "7069",
"license": "bsd-3-clause",
"hash": 1058323281382180600,
"line_mean": 37.8461538462,
"line_max": 133,
"alpha_frac": 0.5658508983,
"autogenerated": false,
"ratio": 5.09661139149243,
"config_test": false,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.translation import ugettext as _
from django.views.decorators.cache import never_cache
from livesettings import config_get_group
from payment.views import payship
from payment.views.confirm import ConfirmControl... | {
"repo_name": "rctay/satchmo-payment-dumb",
"path": "views.py",
"copies": "1",
"size": "2203",
"license": "bsd-3-clause",
"hash": 2222134325647733000,
"line_mean": 39.0545454545,
"line_max": 131,
"alpha_frac": 0.7349069451,
"autogenerated": false,
"ratio": 3.9409660107334528,
"config_test": tru... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.translation import ugettext_lazy as _, ugettext
from satchmo_ext.newsletter.forms import NewsletterForm
def add_subscription(request, template="newsletter/subscribe_form.html",
result_template="newsletter/... | {
"repo_name": "grengojbo/satchmo",
"path": "satchmo/apps/satchmo_ext/newsletter/views.py",
"copies": "13",
"size": "2078",
"license": "bsd-3-clause",
"hash": -5097847611739750000,
"line_mean": 38.2075471698,
"line_max": 81,
"alpha_frac": 0.6843118383,
"autogenerated": false,
"ratio": 4.3655462184... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.translation import ugettext_lazy as _, ugettext
from satchmo.newsletter.forms import NewsletterForm
def add_subscription(request, template="newsletter/subscribe_form.html",
result_template="newsletter/upda... | {
"repo_name": "sankroh/satchmo",
"path": "satchmo/newsletter/views.py",
"copies": "2",
"size": "2041",
"license": "bsd-3-clause",
"hash": -975389265353228800,
"line_mean": 36.7962962963,
"line_max": 81,
"alpha_frac": 0.6805487506,
"autogenerated": false,
"ratio": 4.379828326180258,
"config_test... |
from django.shortcuts import render_to_response
# from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from comment_react.models import Comments
from django.http import HttpResponse
import json
import urllib2
from django.http import QueryDict
@csrf_exempt
def home(request):
... | {
"repo_name": "anistark/django-react-comments",
"path": "django_comments/django_comments/views.py",
"copies": "1",
"size": "1421",
"license": "mit",
"hash": 3155139382997273000,
"line_mean": 32.0465116279,
"line_max": 78,
"alpha_frac": 0.6206896552,
"autogenerated": false,
"ratio": 3.882513661202... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.decorators.http import require_POST
from django.views.decorators.csrf import csrf_exempt
from django.utils.translation import get_language
from django.utils.translation import ugettext as _
def about(request):... | {
"repo_name": "RodolpheOrg/Rodolphe",
"path": "rodolphe/main/views/about.py",
"copies": "2",
"size": "1650",
"license": "bsd-2-clause",
"hash": 8603456087195714000,
"line_mean": 34.1063829787,
"line_max": 72,
"alpha_frac": 0.543030303,
"autogenerated": false,
"ratio": 3.75,
"config_test": false... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.generic import View
from main.models import Member, Location
class HomeView(View):
def get(self, request, *args, **kwargs):
context = {}
# how many people are in the home hole?
me... | {
"repo_name": "all-out/lightswitch",
"path": "lightswitch/main/views.py",
"copies": "1",
"size": "2024",
"license": "mit",
"hash": -872060143051578000,
"line_mean": 32.75,
"line_max": 87,
"alpha_frac": 0.6027667984,
"autogenerated": false,
"ratio": 3.8333333333333335,
"config_test": false,
"h... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from geolocator import google_geocoding, forms, models
from geolocator.ldap_reader import LDAPReader
# Pass query to ldap reader
# Store results in database, check if we have cached geocoded results
# Geocode results not yet geo... | {
"repo_name": "theaeolianmachine/hokiefinder",
"path": "hokiefinder/geolocator/views.py",
"copies": "1",
"size": "3223",
"license": "mit",
"hash": 7799266627644551000,
"line_mean": 43.1506849315,
"line_max": 95,
"alpha_frac": 0.5435929258,
"autogenerated": false,
"ratio": 4.746686303387334,
"co... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from inevent.forms import IneventSearchForm
from django.shortcuts import render_to_response
import datetime
import json
from inevent.views.utils import get_most_recent_events, get_event
from django.conf import settings
#from in... | {
"repo_name": "idiap/inevent",
"path": "inevent/views/portal.py",
"copies": "1",
"size": "1512",
"license": "mit",
"hash": 2256888617716378000,
"line_mean": 38.7894736842,
"line_max": 98,
"alpha_frac": 0.7433862434,
"autogenerated": false,
"ratio": 3.073170731707317,
"config_test": false,
"ha... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from loader.forms import UploadFileForm
from loader.handler import loader
from django.conf import settings
from loader.validators import get_extension
import pyexcel
import os
def upload(request):
if request.method == "POST... | {
"repo_name": "mitrofun/kids2",
"path": "src/apps/loader/views.py",
"copies": "1",
"size": "1788",
"license": "mit",
"hash": -8389846826371344000,
"line_mean": 34.7959183673,
"line_max": 75,
"alpha_frac": 0.5553021665,
"autogenerated": false,
"ratio": 4.088578088578089,
"config_test": false,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from locater.models import Location
from locater.forms import SearchForm
from geopy import geocoders
from geopy import distance
def find_nearest(request):
errors = []
if request.method == 'POST':
form = SearchFor... | {
"repo_name": "pigmonkey/django-locater",
"path": "locater/views.py",
"copies": "1",
"size": "3376",
"license": "bsd-3-clause",
"hash": 2872018194279411700,
"line_mean": 42.2820512821,
"line_max": 172,
"alpha_frac": 0.5174763033,
"autogenerated": false,
"ratio": 5.115151515151515,
"config_test"... |
from django.shortcuts import render_to_response
from django.template import RequestContext
#from madrona.raster_stats.models import RasterDataset, zonal_stats
from settings import *
from general.utils import default_value, sq_meters_to_sq_miles
from .models import *
'''
'''
def display_sdc_analysis(request, sdc, templ... | {
"repo_name": "Ecotrust/PEW-EFH",
"path": "mp/scenarios/sdc_analysis.py",
"copies": "1",
"size": "1688",
"license": "apache-2.0",
"hash": -1567797943962964200,
"line_mean": 43.4473684211,
"line_max": 120,
"alpha_frac": 0.6913507109,
"autogenerated": false,
"ratio": 3.3492063492063493,
"config_t... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from MapReduce.forms import UploadFileForm
from MapReduce.forms import UploadMapForm
from MapReduce.forms import UploadReduceForm
import cPickle
import boto.sqs
import boto.s3
import os
from boto.sqs.message import Message
ACCES... | {
"repo_name": "karanahujax/MapReduceApp",
"path": "MapReduceApp/views.py",
"copies": "1",
"size": "3433",
"license": "mit",
"hash": -6869055285634933000,
"line_mean": 39.3882352941,
"line_max": 119,
"alpha_frac": 0.7914360618,
"autogenerated": false,
"ratio": 3.235626767200754,
"config_test": f... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from metropol_abogados.services import PersonService
from metropol_abogados.models import Person, Role
from metropol_abogados.forms import PersonListFilterForm, PersonForm
from django.shortcuts import get_object_or_404
from djang... | {
"repo_name": "carborgar/metropol",
"path": "metropol_abogados/views/PersonViews.py",
"copies": "1",
"size": "3138",
"license": "mit",
"hash": 7622636497021354000,
"line_mean": 37.7407407407,
"line_max": 136,
"alpha_frac": 0.7039515615,
"autogenerated": false,
"ratio": 3.7990314769975786,
"conf... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from models import Plugin
from django.contrib.auth.decorators import login_required
import requests, json
from lisa.server.web.weblisa.utils import method_restricted_to
from pkg_resources import get_distribution
@method_restric... | {
"repo_name": "Seraf/LISA",
"path": "lisa/server/web/manageplugins/views.py",
"copies": "1",
"size": "1180",
"license": "mit",
"hash": -2704838550630855000,
"line_mean": 42.7037037037,
"line_max": 103,
"alpha_frac": 0.6228813559,
"autogenerated": false,
"ratio": 4.244604316546763,
"config_test"... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from models import Post
import datetime
def index(request):
if request.method == 'POST':
# save new post
title = request.POST['title']
content = request.POST['content']
#print(request.POST[all])
... | {
"repo_name": "heartstchr/monex",
"path": "blogapp/views.py",
"copies": "1",
"size": "1730",
"license": "mit",
"hash": -2973499227773849000,
"line_mean": 30.4727272727,
"line_max": 89,
"alpha_frac": 0.5976878613,
"autogenerated": false,
"ratio": 4.119047619047619,
"config_test": false,
"has_n... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from piston.handler import BaseHandler
from IsraKotzApp.HotelSearcher import getHotelData
from IsraKotzApp.collectNumbeoData import getNumbeoData
from IsraKotzApp.models import City, Product
__author__ = 'Nir'
class BudgetHandle... | {
"repo_name": "NnNHackTeam/israkotz",
"path": "IsraKotzApp/handler.py",
"copies": "1",
"size": "1683",
"license": "mit",
"hash": -7108824680482857000,
"line_mean": 45.7777777778,
"line_max": 115,
"alpha_frac": 0.5995246583,
"autogenerated": false,
"ratio": 4.197007481296758,
"config_test": fals... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm, UserForm, UserProfileForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpRespo... | {
"repo_name": "JBAnderson/Django-CherryPy-PyInstaller-Standalone",
"path": "Standalone_win_single_file/source/rango/views.py",
"copies": "3",
"size": "5231",
"license": "mit",
"hash": -1666325823936281300,
"line_mean": 26.3926701571,
"line_max": 118,
"alpha_frac": 0.6339132097,
"autogenerated": fal... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from registry.models import ResourceCollection
from django.http import HttpResponse, HttpResponseBadRequest
import json
def browse(req):
# Find all the collections that do not have parents
top = ResourceCollection.object... | {
"repo_name": "usgin/metadata-repository",
"path": "ui/repository/browse.py",
"copies": "2",
"size": "1153",
"license": "bsd-3-clause",
"hash": -63114621641844190,
"line_mean": 40.2142857143,
"line_max": 123,
"alpha_frac": 0.7467476149,
"autogenerated": false,
"ratio": 4.557312252964427,
"confi... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from sam.models import Post, Tag, Comment, SiteImage
from django.db.models import Q
from sam.forms.tag_filter import TagFilterForm
from sam.forms.contact import ContactForm
from django.http import HttpResponseRedirect
from django... | {
"repo_name": "samolds/samster",
"path": "sam/views/blog.py",
"copies": "1",
"size": "7622",
"license": "mit",
"hash": 1488200919720691700,
"line_mean": 34.1244239631,
"line_max": 123,
"alpha_frac": 0.5102335345,
"autogenerated": false,
"ratio": 4.462529274004684,
"config_test": false,
"has_n... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from sam.models import Tag, Post, SiteImage
from django.core.cache import cache
from django.db.models import Q
def education(request):
education = cache.get("education")
if not education:
tag = Tag.objects.filte... | {
"repo_name": "samolds/samster",
"path": "sam/views/education.py",
"copies": "1",
"size": "1661",
"license": "mit",
"hash": -8092430529922028000,
"line_mean": 30.9423076923,
"line_max": 78,
"alpha_frac": 0.5683323299,
"autogenerated": false,
"ratio": 3.9453681710213777,
"config_test": false,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from socialregistration.contrib.facebook.models import FacebookProfile
from socialregistration.contrib.foursquare.models import FoursquareProfile
from socialregistration.contrib.github.models import GithubProfile
from socialregis... | {
"repo_name": "brodie/django-socialregistration",
"path": "tests/app/views.py",
"copies": "1",
"size": "1180",
"license": "mit",
"hash": 2644888622367149600,
"line_mean": 48.1666666667,
"line_max": 74,
"alpha_frac": 0.7771186441,
"autogenerated": false,
"ratio": 4.521072796934866,
"config_test"... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from talk.models import Talk, Topic, Level
from delegate.models import Delegate_Profile, Occupation, Location
def get_name_count(qs, model, field_attr):
lst = []
for item in qs:
num_by_item = model.objects.filter... | {
"repo_name": "theju/confista",
"path": "apps/statistics/views.py",
"copies": "1",
"size": "1498",
"license": "mit",
"hash": 4442828469962660000,
"line_mean": 54.4814814815,
"line_max": 112,
"alpha_frac": 0.6214953271,
"autogenerated": false,
"ratio": 3.6271186440677967,
"config_test": false,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from userservice.user import UserService
from authz_group import Group
from django.conf import settings
from django.http import Http404
from datetime import datetime
import logging
from django import template
from django.contrib.... | {
"repo_name": "uw-it-aca/django-dateoverride",
"path": "dateoverride/views.py",
"copies": "1",
"size": "3310",
"license": "apache-2.0",
"hash": -3437996003948496400,
"line_mean": 32.7755102041,
"line_max": 79,
"alpha_frac": 0.6873111782,
"autogenerated": false,
"ratio": 4.096534653465347,
"conf... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from utkik.decorators import http_methods
from utkik.utils import uncamel
class ContextData(object):
"""
A container for attributes to store on the template context.
All the attributes are later collected as a dict... | {
"repo_name": "aino/aino-utkik",
"path": "utkik/base.py",
"copies": "1",
"size": "4582",
"license": "bsd-3-clause",
"hash": 8786770069368593000,
"line_mean": 34.519379845,
"line_max": 80,
"alpha_frac": 0.6263640332,
"autogenerated": false,
"ratio": 4.401536983669549,
"config_test": false,
"ha... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from webinars_web.webinars.views import syncs
from django.http import HttpResponse, HttpResponseRedirect
def show(request, sync_id):
from webinars_web.webinars import models as wm
event_sync = wm.EventSync.objects.select... | {
"repo_name": "prior/webinars",
"path": "webinars_web/webinars/views/event_syncs.py",
"copies": "1",
"size": "2406",
"license": "apache-2.0",
"hash": 8687603499754296000,
"line_mean": 45.2692307692,
"line_max": 140,
"alpha_frac": 0.7310889443,
"autogenerated": false,
"ratio": 3.1825396825396823,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from webinars_web.webinars.views import syncs
from django.http import HttpResponse, HttpResponseRedirect
def show(request, sync_id):
from webinars_web.webinars import models as wm
account_sync = wm.AccountSync.objects.s... | {
"repo_name": "prior/webinars",
"path": "webinars_web/webinars/views/account_syncs.py",
"copies": "1",
"size": "3099",
"license": "apache-2.0",
"hash": -4843505869376011000,
"line_mean": 51.5254237288,
"line_max": 197,
"alpha_frac": 0.7121652146,
"autogenerated": false,
"ratio": 3.146192893401015... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from webinars_web.webinars.views import syncs
def show(request, sync_id):
from webinars_web.webinars import models as wm
return syncs._show(request, 'hub', wm.HubSync.objects.select_related('hub').get(pk=sync_id))
def n... | {
"repo_name": "prior/webinars",
"path": "webinars_web/webinars/views/hub_syncs.py",
"copies": "1",
"size": "1234",
"license": "apache-2.0",
"hash": -5901687470172046000,
"line_mean": 48.36,
"line_max": 188,
"alpha_frac": 0.7333873582,
"autogenerated": false,
"ratio": 3.062034739454094,
"config_... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from xml.dom.minidom import parseString
import libvirt
import threading
import time
import subprocess
import os
import socket
from novnc.websockify import WebSocketProxy
from vmmanager import get_virt_hostname, create_virConnect
... | {
"repo_name": "amiq11/cloud2014-A2",
"path": "vmfront/vmmanager/vnc.py",
"copies": "1",
"size": "3405",
"license": "mit",
"hash": 5425521381753938000,
"line_mean": 35.6129032258,
"line_max": 82,
"alpha_frac": 0.5538913363,
"autogenerated": false,
"ratio": 4.12227602905569,
"config_test": false,... |
from django.shortcuts import render_to_response
from django.template import RequestContext
import json
# Create your views here.
import importlib
from django.http import HttpResponse
from django_markup.markup import formatter
def build_doc(request):
try:
from project.settings import API_OBJECT_LOCATION
... | {
"repo_name": "matheuscas/django-tastypie-simple-api-doc",
"path": "tastypie_api_doc/views.py",
"copies": "1",
"size": "1877",
"license": "mit",
"hash": 5164288195655743000,
"line_mean": 44.7804878049,
"line_max": 161,
"alpha_frac": 0.6457112413,
"autogenerated": false,
"ratio": 4.246606334841629... |
from django.shortcuts import render_to_response
from django.template import RequestContext
import os
from qmpy.models import Calculation
from qmpy.analysis.vasp.calculation import VaspError
from ..tools import get_globals
from bokeh.embed import components
def calculation_view(request, calculation_id):
calculat... | {
"repo_name": "wolverton-research-group/qmpy",
"path": "qmpy/web/views/analysis/calculation.py",
"copies": "1",
"size": "1236",
"license": "mit",
"hash": -4237178941055898000,
"line_mean": 32.4054054054,
"line_max": 70,
"alpha_frac": 0.6666666667,
"autogenerated": false,
"ratio": 3.71171171171171... |
from django.shortcuts import render_to_response
from django.template import RequestContext
import pdb
from openpds.visualization.internal import getInternalDataStore
from openpds.core.models import Profile, FluQuestions, ProfileStartEnd, FB_Connection, Emoji, Emoji2, emoji_choices, QuestionInstance, QuestionType, Fireb... | {
"repo_name": "eschloss/FluFuture",
"path": "openpds/visualization/stats.py",
"copies": "1",
"size": "6302",
"license": "mit",
"hash": 6003946626061600000,
"line_mean": 39.1464968153,
"line_max": 174,
"alpha_frac": 0.5410980641,
"autogenerated": false,
"ratio": 3.453150684931507,
"config_test":... |
from django.shortcuts import render_to_response
from django.template import RequestContext
import xml.etree.ElementTree as ET
import json
import naf_constituency
def get_target_ids(element):
references_element = element.find('references')
if references_element is not None:
return get_target_ids(referen... | {
"repo_name": "Elhuyar/Moodmap",
"path": "src/behagunea/behagunea_app/naf_controller.py",
"copies": "2",
"size": "5844",
"license": "bsd-3-clause",
"hash": 7933889539399234000,
"line_mean": 30.4193548387,
"line_max": 93,
"alpha_frac": 0.5319986311,
"autogenerated": false,
"ratio": 3.9566689234935... |
from django.shortcuts import render_to_response
from django.template import RequestContext
# Library for creating pagination
from djangoappengine.db.utils import get_cursor, set_cursor
from ideas.models import Idea
from ideas.utils import convert_to_int
from ideas.forms import IdeaForm
def main_page(request):
con... | {
"repo_name": "Laimiux/mydeatree",
"path": "views.py",
"copies": "1",
"size": "1968",
"license": "bsd-3-clause",
"hash": -2866275414950474000,
"line_mean": 40,
"line_max": 125,
"alpha_frac": 0.637195122,
"autogenerated": false,
"ratio": 3.611009174311927,
"config_test": false,
"has_no_keyword... |
from django.shortcuts import render_to_response
from django.template import RequestContext
def home(request):
return render_to_response('pages/index.html', context_instance=RequestContext(request))
def part_home(request):
return render_to_response('partials/home.html', context_instance=RequestContext(request)... | {
"repo_name": "acreations/rockit-server",
"path": "rockit/site/views/nodes.py",
"copies": "1",
"size": "1290",
"license": "mit",
"hash": -7926243161220474000,
"line_mean": 43.4827586207,
"line_max": 111,
"alpha_frac": 0.7899224806,
"autogenerated": false,
"ratio": 3.8165680473372783,
"config_te... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from core.forms import FruitForm, ChainedForm, FarmFormset
def index(request):
if request.method == 'POST':
form = FruitForm(request.POST)
else:
if request.GET:
form = FruitForm(initial=req... | {
"repo_name": "makinacorpus/django-selectable",
"path": "example/core/views.py",
"copies": "1",
"size": "1168",
"license": "bsd-2-clause",
"hash": -8447467051820919000,
"line_mean": 26.1627906977,
"line_max": 109,
"alpha_frac": 0.6446917808,
"autogenerated": false,
"ratio": 3.945945945945946,
"... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django_filters2.filterset import FilterSet
def object_filter(request, model=None, queryset=None, template_name=None, extra_context=None,
context_processors=None, filter_class=None):
if model is None... | {
"repo_name": "dndtools/dndtools",
"path": "dndtools/django_filters2/views.py",
"copies": "3",
"size": "1172",
"license": "mit",
"hash": -3884852322355077000,
"line_mean": 38.0666666667,
"line_max": 102,
"alpha_frac": 0.6322525597,
"autogenerated": false,
"ratio": 3.9328859060402683,
"config_te... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django_filters.filterset import FilterSet
def object_filter(request, model=None, queryset=None, template_name=None, extra_context=None,
context_processors=None, filter_class=None):
if model is None and filter_class... | {
"repo_name": "yrik/django-filter",
"path": "django_filters/views.py",
"copies": "2",
"size": "1139",
"license": "bsd-3-clause",
"hash": -1029078050447251200,
"line_mean": 39.6785714286,
"line_max": 102,
"alpha_frac": 0.6496927129,
"autogenerated": false,
"ratio": 3.835016835016835,
"config_tes... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django import forms
import random
# Create your views here.
class FAQForm(forms.Form):
error_css_class='error'
required_css_class = 'required'
# just for fun, placeholder questions
questions = ['I sw... | {
"repo_name": "HM2MC/Webfront",
"path": "m2m/faq/views.py",
"copies": "2",
"size": "3961",
"license": "mit",
"hash": -9080078679894921000,
"line_mean": 34.0619469027,
"line_max": 79,
"alpha_frac": 0.4607422368,
"autogenerated": false,
"ratio": 4.665488810365136,
"config_test": false,
"has_no_... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from dndtools.django_filters2.filterset import FilterSet
def object_filter(request, model=None, queryset=None, template_name=None, extra_context=None,
context_processors=None, filter_class=None):
if model is None and fi... | {
"repo_name": "gregpechiro/dndtools",
"path": "dndtools/django_filters2/views.py",
"copies": "1",
"size": "1149",
"license": "mit",
"hash": 2092204538692015900,
"line_mean": 40.0357142857,
"line_max": 102,
"alpha_frac": 0.6518711923,
"autogenerated": false,
"ratio": 3.8046357615894038,
"config_... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from example.core.forms import FruitForm, ChainedForm, FarmFormset
def index(request):
if request.method == 'POST':
form = FruitForm(request.POST)
else:
if request.GET:
form = FruitForm(ini... | {
"repo_name": "mozilla/betafarm",
"path": "vendor-local/lib/python/example/core/views.py",
"copies": "1",
"size": "1176",
"license": "bsd-3-clause",
"hash": -5144944141324311000,
"line_mean": 26.3488372093,
"line_max": 109,
"alpha_frac": 0.6462585034,
"autogenerated": false,
"ratio": 3.9463087248... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from forms import Example1, Example2, Example3, Example4
def example1(request, form_class=Example1,
template_name="foo/example1.html"):
message = None
if request.method == "POST":
form = form_class(requ... | {
"repo_name": "timsavage/django-ajax-forms",
"path": "example/foo/views.py",
"copies": "1",
"size": "1857",
"license": "bsd-3-clause",
"hash": -710399867376443500,
"line_mean": 28.015625,
"line_max": 56,
"alpha_frac": 0.6106623586,
"autogenerated": false,
"ratio": 3.8526970954356847,
"config_te... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from logger.models import Entry
from tick.models import Announcement, Notice
def home(request):
recent_resources = Entry.objects.get_for_model('tick', 'resource', action='Published')[0:4]
tick_prize = Notice.objects.lat... | {
"repo_name": "katemsu/kate_website",
"path": "kate3/pages/views.py",
"copies": "1",
"size": "1191",
"license": "mit",
"hash": -9060769742444364000,
"line_mean": 40.0689655172,
"line_max": 95,
"alpha_frac": 0.644836272,
"autogenerated": false,
"ratio": 4.208480565371024,
"config_test": false,
... |
from django.shortcuts import render_to_response
from django.template import RequestContext, TemplateDoesNotExist
from django.core import context_processors, signals
from django.conf import settings
from django.core.handlers.wsgi import STATUS_CODE_TEXT
from django.core.exceptions import PermissionDenied
from django.htt... | {
"repo_name": "jaylett/django_exceptional_middleware",
"path": "exceptional_middleware/middleware.py",
"copies": "1",
"size": "6976",
"license": "mit",
"hash": 4997506949745783000,
"line_mean": 45.5066666667,
"line_max": 118,
"alpha_frac": 0.6287270642,
"autogenerated": false,
"ratio": 4.95806680... |
from django.shortcuts import render_to_response
from django.template import RequestContext, TemplateDoesNotExist
from django.http import HttpResponse, Http404
from django.utils import simplejson
__all__ = ['render_to', 'ajax_request']
import logging
logger = logging.getLogger('spl.django.service')
try:
from func... | {
"repo_name": "splunk/splunk-webframework",
"path": "server/splunkdj/decorators/render.py",
"copies": "1",
"size": "3838",
"license": "apache-2.0",
"hash": 5755495145087391000,
"line_mean": 32.3739130435,
"line_max": 103,
"alpha_frac": 0.6026576342,
"autogenerated": false,
"ratio": 4.761786600496... |
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.template import RequestContext
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden
from buspeople.decorators import json_view
from models import Person, Service, Activation
from ... | {
"repo_name": "rozap/aircooledrescue",
"path": "core/views.py",
"copies": "1",
"size": "3284",
"license": "mit",
"hash": -2252867288001963800,
"line_mean": 26.5966386555,
"line_max": 95,
"alpha_frac": 0.7101096224,
"autogenerated": false,
"ratio": 3.431556948798328,
"config_test": false,
"has... |
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.template import RequestContext
from django.template import TemplateDoesNotExist
from django.http import HttpResponse
from django.views.decorators.cache import cache_page
import settings
import django
import ... | {
"repo_name": "geonition/softgis-api",
"path": "softgis_client/views.py",
"copies": "1",
"size": "3616",
"license": "mit",
"hash": -7574919180488070000,
"line_mean": 32.1743119266,
"line_max": 101,
"alpha_frac": 0.5887721239,
"autogenerated": false,
"ratio": 4.588832487309645,
"config_test": fa... |
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.cache import never_cache
from django.conf import settings
from reg.models import *
from reg.for... | {
"repo_name": "sunlightlabs/tcamp",
"path": "tcamp/reg/views.py",
"copies": "1",
"size": "11619",
"license": "bsd-3-clause",
"hash": -6609255196461562000,
"line_mean": 38.6552901024,
"line_max": 308,
"alpha_frac": 0.5728548068,
"autogenerated": false,
"ratio": 4.182505399568035,
"config_test": ... |
from django.shortcuts import render_to_response
from django.utils.decorators import method_decorator
from django.views.generic import View
from silk.auth import login_possibly_required, permissions_possibly_required
from silk.models import Profile, Request
from silk.views.sql_detail import _code
class ProfilingDetail... | {
"repo_name": "vandersonmota/silk",
"path": "silk/views/profile_detail.py",
"copies": "4",
"size": "1519",
"license": "mit",
"hash": -8911105724850333000,
"line_mean": 37.9487179487,
"line_max": 84,
"alpha_frac": 0.6109282423,
"autogenerated": false,
"ratio": 4.007915567282322,
"config_test": f... |
from django.shortcuts import render_to_response
from django.utils.safestring import mark_safe
from django.db import transaction
from djangosphinx.apis.api278 import *
from search.models import File
from browseNet.models import Path
from stats.models import Status, Log
import re, time
from datetime import datetime
... | {
"repo_name": "blampe/M2M",
"path": "m2m/search/views.py",
"copies": "1",
"size": "18321",
"license": "mit",
"hash": -4816650915126705000,
"line_mean": 33.6988636364,
"line_max": 106,
"alpha_frac": 0.4611647836,
"autogenerated": false,
"ratio": 4.784800208931836,
"config_test": true,
"has_no_... |
from django.shortcuts import render_to_response
from django.utils.safestring import mark_safe
from django.db import transaction
from sphinx.api278 import *
from search.models import File
from browseNet.models import Path
from stats.models import Status, Log
import re, time
from datetime import datetime
DEBUG = Fal... | {
"repo_name": "HM2MC/Webfront",
"path": "m2m/search/views.py",
"copies": "1",
"size": "18781",
"license": "mit",
"hash": 8855235535354701000,
"line_mean": 33.9089219331,
"line_max": 106,
"alpha_frac": 0.4617432512,
"autogenerated": false,
"ratio": 4.758297441094502,
"config_test": true,
"has_... |
from django.shortcuts import render_to_response
from django.utils.timezone import datetime, timedelta, now
from django.contrib.auth.decorators import login_required
from categories.models import Category
from core.context import ArZeitContext
from timers.models import Interval
from reports import utils
PX_PER_HOUR = ... | {
"repo_name": "peap/djarzeit",
"path": "reports/views.py",
"copies": "1",
"size": "6569",
"license": "mit",
"hash": 6474975189554348000,
"line_mean": 34.3172043011,
"line_max": 81,
"alpha_frac": 0.6191201096,
"autogenerated": false,
"ratio": 3.5994520547945204,
"config_test": false,
"has_no_k... |
from django.shortcuts import render_to_response
from django.views.decorators.cache import cache_page
# Create your views here.
from BeautifulSoup import BeautifulSoup, Tag, NavigableString
from datetime import datetime
import requests
import re
def classless(tag):
try:
return tag.attrMap['class'] == None... | {
"repo_name": "HM2MC/Webfront",
"path": "m2m/menu/views.py",
"copies": "1",
"size": "14732",
"license": "mit",
"hash": -2905823312885548500,
"line_mean": 30.7521551724,
"line_max": 129,
"alpha_frac": 0.5298669563,
"autogenerated": false,
"ratio": 3.503448275862069,
"config_test": false,
"has_... |
from django.shortcuts import render_to_response
from django.views.decorators.http import require_http_methods
from django.template import RequestContext
from django.http import HttpResponseRedirect, HttpResponse
from django.utils.translation import ugettext as _
from django.conf import settings
from django.core.urlreso... | {
"repo_name": "laplacesdemon/django-youtube",
"path": "django_youtube/views.py",
"copies": "1",
"size": "10744",
"license": "bsd-3-clause",
"hash": 8021839080004053000,
"line_mean": 33,
"line_max": 112,
"alpha_frac": 0.6178332092,
"autogenerated": false,
"ratio": 4.43783560512185,
"config_test"... |
from django.shortcuts import render_to_response
from django.views.generic import CreateView
from store.models import cloud_users
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.core.context_processors import csrf
from django.core.urlresolvers import reverse_lazy
from ... | {
"repo_name": "cparawhore/ProyectoSubastas",
"path": "store/views.py",
"copies": "1",
"size": "2791",
"license": "mit",
"hash": -4040458948736811000,
"line_mean": 35.7368421053,
"line_max": 109,
"alpha_frac": 0.7545682551,
"autogenerated": false,
"ratio": 3.4757160647571608,
"config_test": fals... |
from django.shortcuts import render_to_response
from django.views.generic import CreateView, UpdateView, DeleteView, DetailView
from installer_config.models import EnvironmentProfile, UserChoice
from installer_config.forms import EnvironmentForm
class CreateEnvironmentProfile(CreateView):
model = EnvironmentProfi... | {
"repo_name": "ezPy-co/ezpy",
"path": "installer/installer_config/views.py",
"copies": "1",
"size": "2127",
"license": "mit",
"hash": -8233914918828882000,
"line_mean": 35.6724137931,
"line_max": 91,
"alpha_frac": 0.7094499295,
"autogenerated": false,
"ratio": 4.211881188118812,
"config_test": ... |
from django.shortcuts import render_to_response
from django.views.generic import View
from silk.models import Profile, Request
from silk.views.sql_detail import _code
class ProfilingDetailView(View):
def get(self, request, *_, **kwargs):
profile_id = kwargs['profile_id']
silk_request_id = kwargs.... | {
"repo_name": "wavelets/silk",
"path": "django_silky/silk/views/profile_detail.py",
"copies": "4",
"size": "1288",
"license": "mit",
"hash": 7112107392753509000,
"line_mean": 36.8823529412,
"line_max": 84,
"alpha_frac": 0.5729813665,
"autogenerated": false,
"ratio": 3.950920245398773,
"config_t... |
from django.shortcuts import render_to_response
from django.views.generic import View
from silk.models import Request, SQLQuery, Profile
from silk.utils.pagination import _page
from silk.views.method_map_view import MethodMapView
__author__ = 'mtford'
class SQLView(View):
def get(self, request, *_, **kwargs):
... | {
"repo_name": "svisser/silk",
"path": "django_silky/silk/views/sql.py",
"copies": "4",
"size": "1170",
"license": "mit",
"hash": 4701138895051569000,
"line_mean": 36.7741935484,
"line_max": 93,
"alpha_frac": 0.6247863248,
"autogenerated": false,
"ratio": 3.762057877813505,
"config_test": false,... |
from django.shortcuts import render_to_response
from form import PaperGenerateForm,CHQuestionAddForm,JUQuestionAddForm,QuestionSearchForm
from django.http import Http404,HttpResponseRedirect,HttpResponse
from math import exp
import random
from models import Paper, Question, Score, History
from IMS.models import Class_i... | {
"repo_name": "yuanpengX/SE-NE",
"path": "djcode/teacher/views.py",
"copies": "1",
"size": "9393",
"license": "mit",
"hash": 8459762060267601000,
"line_mean": 37.028340081,
"line_max": 113,
"alpha_frac": 0.5507292665,
"autogenerated": false,
"ratio": 4.281221513217867,
"config_test": false,
"... |
from django.shortcuts import render_to_response
from goalmatrix.models import Employee, Team, Goal, Assignment
from django.template.context import RequestContext
import re
from decimal import Decimal
from django.utils.translation import ugettext as _
from django.http.response import HttpResponse
def index(request):
... | {
"repo_name": "luiscberrocal/rango_tutorial",
"path": "goalmatrix/views.py",
"copies": "1",
"size": "3768",
"license": "apache-2.0",
"hash": -3520818306518898700,
"line_mean": 38.6631578947,
"line_max": 103,
"alpha_frac": 0.6159766454,
"autogenerated": false,
"ratio": 3.904663212435233,
"config... |
from django.shortcuts import render_to_response
from grapher.models import LoadType
from grapher.models import Location
from grapher.models import Eport
from grapher.models import Eguage
from grapher.models import EnergyData
from django.template import RequestContext
import time
import json
import datetime
from xml.dom... | {
"repo_name": "holachek/ecosense",
"path": "app/grapher/views.py",
"copies": "1",
"size": "7362",
"license": "mit",
"hash": -1719048305183297800,
"line_mean": 33.8909952607,
"line_max": 192,
"alpha_frac": 0.5896495518,
"autogenerated": false,
"ratio": 3.591219512195122,
"config_test": false,
... |
from django.shortcuts import render_to_response
from jsonrpc import *
from gaedjangononrelpuremvcblog.post.models import Post
service = JSONRPCService()
def index(request):
return render_to_response('index.html')
@jsonremote(service)
def get_post(request, num):
post = Post.objects.get(id=num)
return [(st... | {
"repo_name": "spaceone/pyjs",
"path": "examples/misc/gaedjangononrelpuremvcblog/post/views.py",
"copies": "6",
"size": "1164",
"license": "apache-2.0",
"hash": -6721429601752336000,
"line_mean": 26.7142857143,
"line_max": 94,
"alpha_frac": 0.7104810997,
"autogenerated": false,
"ratio": 3.1122994... |
from django.shortcuts import render_to_response
from kannada.models import Movie
from kannada.forms import MovieForm
from django.template.context import RequestContext
import json
from django.http import HttpResponse
def search(request):
try:
movies = Movie.objects.all()
except Movie.DoesNotExist as e:
print e
... | {
"repo_name": "kns003/taglines",
"path": "kannada/views.py",
"copies": "1",
"size": "1839",
"license": "apache-2.0",
"hash": -523000905346026240,
"line_mean": 29.1475409836,
"line_max": 92,
"alpha_frac": 0.7183251767,
"autogenerated": false,
"ratio": 3.2263157894736842,
"config_test": false,
... |
from django.shortcuts import render_to_response
from models import Animal
from django.views.generic import DetailView
from django.http import Http404
from django.db.models import F
from django.template import RequestContext
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from forms import Anima... | {
"repo_name": "atimothee/django-playground",
"path": "django_playground/animalia/views.py",
"copies": "1",
"size": "1969",
"license": "bsd-3-clause",
"hash": 7009887468207418000,
"line_mean": 45.9047619048,
"line_max": 203,
"alpha_frac": 0.6968004063,
"autogenerated": false,
"ratio": 3.58,
"con... |
from django.shortcuts import render_to_response
from .models import DivisionGeometry, Division, TemporalSet
from boundaries.models import Boundary
from django.http import Http404
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.conf import settings
from django.db.mo... | {
"repo_name": "AGarrow/blank_locust",
"path": "locust/views.py",
"copies": "1",
"size": "2314",
"license": "bsd-3-clause",
"hash": 2433638261663997000,
"line_mean": 29.0519480519,
"line_max": 90,
"alpha_frac": 0.6240276577,
"autogenerated": false,
"ratio": 3.479699248120301,
"config_test": fals... |
from django.shortcuts import render_to_response
from models import Movie
from django.views.generic import DetailView
from django.http import Http404
from django.db.models import F
from django.template import RequestContext
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth... | {
"repo_name": "atimothee/django-playground",
"path": "django_playground/movie_library/views.py",
"copies": "1",
"size": "5421",
"license": "bsd-3-clause",
"hash": 7970154373312611000,
"line_mean": 41.3515625,
"line_max": 147,
"alpha_frac": 0.682899834,
"autogenerated": false,
"ratio": 3.914079422... |
from django.shortcuts import render_to_response
from models import *
from utils import *
import time
import pprint
import urllib2
import simplejson as json
def test(request):
return renderTextResponse("abc")
"""
-> mywalk.com/subscribe?guid=[string]&uri=[string]&extra=[string]
"""
def subscribe(request):
... | {
"repo_name": "lugia/Python-MyWalk",
"path": "base/views.py",
"copies": "1",
"size": "6682",
"license": "apache-2.0",
"hash": -2565471635307816000,
"line_mean": 30.2242990654,
"line_max": 109,
"alpha_frac": 0.5616581862,
"autogenerated": false,
"ratio": 4.096873083997547,
"config_test": false,
... |
from django.shortcuts import render_to_response
from models import UserProfile
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect, HttpResponseNotAllowed
from django.views.generic import simple
from openflow.optin_manager.opts.models import UserFlowSpace, UserOpts, Op... | {
"repo_name": "avlach/univbris-ocf",
"path": "optin_manager/src/python/openflow/optin_manager/users/views.py",
"copies": "4",
"size": "5184",
"license": "bsd-3-clause",
"hash": -8704236647401591000,
"line_mean": 38.5801526718,
"line_max": 101,
"alpha_frac": 0.5497685185,
"autogenerated": false,
"... |
# from django.shortcuts import render_to_response
from pyalp.utils import render_to_response
from .models import TechSupportRequest
# Create your views here.
from vanilla import View
class TechSupportRequestView(View):
def get(self, request):
queue = TechSupportRequest.objects.all().order_by('itemtime')
... | {
"repo_name": "Mause/pyalp",
"path": "pyalp/apps/techsupport/views.py",
"copies": "1",
"size": "1608",
"license": "mit",
"hash": -3162050286688447500,
"line_mean": 29.9230769231,
"line_max": 90,
"alpha_frac": 0.6281094527,
"autogenerated": false,
"ratio": 3.837708830548926,
"config_test": false... |
from django.shortcuts import render_to_response
from survey.models import Answer
from django.db.models import Q
from django.template.loader import render_to_string
from django.http import HttpResponse
from django.utils.cache import add_never_cache_headers
import json
from datetime import datetime,timedelta
def show_pa... | {
"repo_name": "sfdye/ntusurvey",
"path": "survey/util.py",
"copies": "2",
"size": "10362",
"license": "mit",
"hash": -5161219418954386000,
"line_mean": 47.2,
"line_max": 177,
"alpha_frac": 0.6245898475,
"autogenerated": false,
"ratio": 3.5891929338413577,
"config_test": false,
"has_no_keyword... |
from django.shortcuts import render_to_response
from todo.models import Item, List, Comment
from todo.forms import AddListForm, AddItemForm, EditItemForm, AddExternalItemForm, SearchForm
from todo import settings
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404
from django.temp... | {
"repo_name": "jwiltshire/django-todo",
"path": "todo/views.py",
"copies": "1",
"size": "17523",
"license": "bsd-3-clause",
"hash": -1661802440093636000,
"line_mean": 40.622327791,
"line_max": 119,
"alpha_frac": 0.6182160589,
"autogenerated": false,
"ratio": 4.0912911510623395,
"config_test": t... |
from django.shortcuts import render_to_response
from twilio.rest import TwilioRestClient
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.contrib import auth
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.views.decorators.c... | {
"repo_name": "sooham/Udown",
"path": "UdownService/views.py",
"copies": "1",
"size": "2759",
"license": "mit",
"hash": -6825617442987818000,
"line_mean": 34.3717948718,
"line_max": 147,
"alpha_frac": 0.6922798115,
"autogenerated": false,
"ratio": 3.474811083123426,
"config_test": false,
"has... |
from django.shortcuts import render_to_response
from user_profile.models import UserProfile
from controller.models import Slide
from product.models import Product
from django.template import RequestContext
from django.shortcuts import get_list_or_404, get_object_or_404
from cart import Cart
def fetchMostPurchasedProdu... | {
"repo_name": "freyWill/Amper",
"path": "Amper/views.py",
"copies": "2",
"size": "1775",
"license": "mit",
"hash": -572504418241871800,
"line_mean": 31.8703703704,
"line_max": 149,
"alpha_frac": 0.7476056338,
"autogenerated": false,
"ratio": 3.507905138339921,
"config_test": false,
"has_no_ke... |
from django.shortcuts import render_to_response
import datetime
import urllib
import urllib2
import os
from dixy_viz import qfa_parser
from django.template import RequestContext
def get_input_list(site='dixy'):
if site == 'dixy':
input_list = ['YKU70_23GIS_NEW.txt',
'CDC13-1_20GIS_NEW.txt',
... | {
"repo_name": "Bioinformatics-Support-Unit/dixy",
"path": "dixy/dixy_viz/views.py",
"copies": "1",
"size": "9546",
"license": "mit",
"hash": -4366471423621884000,
"line_mean": 36.4352941176,
"line_max": 119,
"alpha_frac": 0.5297506809,
"autogenerated": false,
"ratio": 3.1577902745616937,
"confi... |
from django.shortcuts import render_to_response
import datetime, pickle, os
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.... | {
"repo_name": "Nucleoos/condor-copasi",
"path": "web_frontend/views.py",
"copies": "2",
"size": "2620",
"license": "artistic-2.0",
"hash": 9051798696138729000,
"line_mean": 34.4054054054,
"line_max": 156,
"alpha_frac": 0.6603053435,
"autogenerated": false,
"ratio": 4.410774410774411,
"config_te... |
from django.shortcuts import render_to_response
import os, email, re
from spamparser.models import Publisher, Sender, Recipient, Spam
path = '/Users/john/Local sites/Maildir/Maildir/new'
def update_email_db():
files = os.listdir(path)
email_files = [i for i in files if i[-9:] == 'signature']
for i in ema... | {
"repo_name": "yellowcap/academicspam",
"path": "apps/spamparser/views.py",
"copies": "1",
"size": "2570",
"license": "mit",
"hash": -4928185466727118000,
"line_mean": 31.9615384615,
"line_max": 122,
"alpha_frac": 0.5509727626,
"autogenerated": false,
"ratio": 4.199346405228758,
"config_test": ... |
from django.shortcuts import render_to_response
# Create your views here.
from app_stat.tool import StatProvider
def stat_home(request):
simple_soccer_stat = StatProvider.GetLeagues()
return render_to_response('app_stat/templates/home.html', locals())
def stat_league(request):
leagues = StatProvider.Ge... | {
"repo_name": "nkwsqyyzx/bet.statistic",
"path": "handlers/statistics/tool/views.py",
"copies": "1",
"size": "4041",
"license": "apache-2.0",
"hash": 5491879205371110000,
"line_mean": 35.4054054054,
"line_max": 101,
"alpha_frac": 0.6208859193,
"autogenerated": false,
"ratio": 3.0201793721973096,
... |
from django.shortcuts import render_to_response
from account.auth import *
from distill import inference
'''
@author: Anant Bhardwaj
@date: Mar 21, 2013
Datahub Refiner
'''
@login_required
def index(request):
return render_to_response("refiner.html", {
'login': get_login(request)
})
@csrf_exempt
def ref... | {
"repo_name": "zjsxzy/datahub",
"path": "src/apps/refiner/views.py",
"copies": "4",
"size": "1238",
"license": "mit",
"hash": 4010685670685325000,
"line_mean": 24.7916666667,
"line_max": 71,
"alpha_frac": 0.6437802908,
"autogenerated": false,
"ratio": 3.5472779369627507,
"config_test": false,
... |
from django.shortcuts import render_to_response
from catalogue.models import BookItem, BookCategory, BookAttribute, BookAttributeType
from catalogue.entities import RU_ru
from django.conf import settings
def index(request):
bookCategoryList = BookCategory.objects.filter(active=True).order_by('category_name')
... | {
"repo_name": "andriyboychenko/books-online",
"path": "catalogue/views/common.py",
"copies": "1",
"size": "6747",
"license": "apache-2.0",
"hash": -7576054652225445000,
"line_mean": 64.5145631068,
"line_max": 134,
"alpha_frac": 0.6479917,
"autogenerated": false,
"ratio": 4.1648148148148145,
"co... |
from django.shortcuts import render_to_response
from cyder.cydns.nameserver.nameserver.forms import NameserverForm
from cyder.cydns.nameserver.nameserver.forms import NSDelegated
from cyder.cydns.nameserver.nameserver.models import Nameserver
from cyder.cydns.nameserver.views import *
from cyder.cydns.address_record.... | {
"repo_name": "ngokevin/cyder",
"path": "cyder/cydns/nameserver/nameserver/views.py",
"copies": "1",
"size": "1933",
"license": "bsd-3-clause",
"hash": 3907151076533137000,
"line_mean": 29.203125,
"line_max": 72,
"alpha_frac": 0.6544231764,
"autogenerated": false,
"ratio": 3.850597609561753,
"c... |
from django.shortcuts import render_to_response
from .models import Kitten
from . import constants
def random_kitten_view(request, *args, **context):
kitten = Kitten.objects.get_random()
context['kitten'] = kitten
context['kittens_home'] = constants.KITTEN_HOMEPAGE
return render_to_response("kittens/... | {
"repo_name": "Wilduck/django-kittens",
"path": "django_kittens/views.py",
"copies": "1",
"size": "1271",
"license": "mit",
"hash": -3957973353783143000,
"line_mean": 32.4473684211,
"line_max": 67,
"alpha_frac": 0.6821400472,
"autogenerated": false,
"ratio": 3.0774818401937045,
"config_test": f... |
from django.shortcuts import render_to_response
import meetup.api
import datetime
import pytz
def home_page(request):
return render_to_response(
'home.html',
{
},
# context_instance=RequestContext(request)
)
def get_involved(request):
return render_to_response(
... | {
"repo_name": "Mause/pdpdmeetup",
"path": "home/views.py",
"copies": "1",
"size": "1574",
"license": "mit",
"hash": 3347711203266544600,
"line_mean": 24.3870967742,
"line_max": 119,
"alpha_frac": 0.5984752224,
"autogenerated": false,
"ratio": 3.7387173396674585,
"config_test": false,
"has_no_... |
from django.shortcuts import render_to_response
import random
from datetime import datetime
# Create your views here.
# name them year<year> so that the manager can grab them
def year2011(request):
'''April Fools 2011 Random Attack determiner'''
choice = random.choice(range(14)) #makes the last choice m... | {
"repo_name": "blampe/M2M",
"path": "m2m/aprilfools/views.py",
"copies": "1",
"size": "5319",
"license": "mit",
"hash": 520401113823337900,
"line_mean": 37.8248175182,
"line_max": 189,
"alpha_frac": 0.5305508554,
"autogenerated": false,
"ratio": 3.6282401091405183,
"config_test": false,
"has_... |
from django.shortcuts import render_to_response
import random
from datetime import datetime
# Create your views here.
# name them year<year> so that the manager can grab them
YOUTUBE_EMBED = """<iframe width="560" height="315" src="http://www.youtube.com/embed/{}?rel=0&autoplay=1" frameborder="0"></iframe>"""
def y... | {
"repo_name": "HM2MC/Webfront",
"path": "m2m/aprilfools/views.py",
"copies": "1",
"size": "9143",
"license": "mit",
"hash": -8047865289667473000,
"line_mean": 37.5780590717,
"line_max": 189,
"alpha_frac": 0.510335776,
"autogenerated": false,
"ratio": 3.589713388299961,
"config_test": false,
"... |
from django.shortcuts import render_to_response, redirect, get_list_or_404
from django.contrib.auth import authenticate, login, logout
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
from django.utils.translation import ugettext as... | {
"repo_name": "ricardosncosta/django-accounts",
"path": "views.py",
"copies": "1",
"size": "8076",
"license": "bsd-2-clause",
"hash": 4683188735059268000,
"line_mean": 27.9498207885,
"line_max": 94,
"alpha_frac": 0.7142149579,
"autogenerated": false,
"ratio": 3.5405523893029374,
"config_test": ... |
from django.shortcuts import render_to_response, redirect, get_object_or_404, HttpResponse
from django.core.urlresolvers import reverse
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from models import Group
from forms import GroupForm, GroupLocationForm, EditGroupF... | {
"repo_name": "fabteam1/komsukomsuhuhu",
"path": "komsukomsuhuu/groups/views.py",
"copies": "1",
"size": "11546",
"license": "mit",
"hash": -1313735670337331200,
"line_mean": 36.7320261438,
"line_max": 119,
"alpha_frac": 0.5657370518,
"autogenerated": false,
"ratio": 4.089975203684024,
"config_... |
from django.shortcuts import render_to_response, redirect, get_object_or_404, HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
from django.core.urlresolvers import reverse
from models import Topic, Post
from forms import TopicForm, P... | {
"repo_name": "fabteam1/komsukomsuhuhu",
"path": "komsukomsuhuu/entities/views.py",
"copies": "1",
"size": "6272",
"license": "mit",
"hash": 4065698944558422000,
"line_mean": 33.8444444444,
"line_max": 112,
"alpha_frac": 0.6139987245,
"autogenerated": false,
"ratio": 4.075373619233268,
"config_... |
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.forms.models import modelformset_factory
from django.contrib.auth.models import User
from django.template import RequestContext
from django.core.urlresolvers impor... | {
"repo_name": "CleanData/data-network",
"path": "app/CleanData/data_connections/views.py",
"copies": "1",
"size": "26451",
"license": "bsd-2-clause",
"hash": -2208639155191754500,
"line_mean": 34.7445945946,
"line_max": 189,
"alpha_frac": 0.6984991116,
"autogenerated": false,
"ratio": 3.229276034... |
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.http import HttpResponse
from django.core.context_processors import csrf
from paste.form import PasteForm
from paste.models import Paste
from pygments import highlight
from pygments import lexers
from pygments.formatters import Ht... | {
"repo_name": "spezifanta/Paste-It",
"path": "paste/views.py",
"copies": "1",
"size": "2596",
"license": "mit",
"hash": -7234568176376958000,
"line_mean": 32.2820512821,
"line_max": 107,
"alpha_frac": 0.5847457627,
"autogenerated": false,
"ratio": 3.921450151057402,
"config_test": false,
"has... |
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext
from django.forms import ModelForm
from django.contrib.auth.decorators import login_required
from nippou_app.models import nippou_data
from nippou_app.models import Task, User
from django import forms... | {
"repo_name": "ykoga-kyutech/nippou_proj",
"path": "nippou_app/views.py",
"copies": "1",
"size": "10565",
"license": "mit",
"hash": -8644737643500075000,
"line_mean": 26.1983240223,
"line_max": 129,
"alpha_frac": 0.5751258088,
"autogenerated": false,
"ratio": 2.782,
"config_test": false,
"has... |
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext
from django.http import HttpResponse
from django.utils import timezone
from main.models import Post
from main.forms import PostForm, DeletePostForm
from main.views.thread import view
from main.views.... | {
"repo_name": "RodolpheOrg/Rodolphe",
"path": "rodolphe/main/views/post.py",
"copies": "2",
"size": "2578",
"license": "bsd-2-clause",
"hash": -2870990197924322300,
"line_mean": 30.0602409639,
"line_max": 76,
"alpha_frac": 0.6004654771,
"autogenerated": false,
"ratio": 3.6776034236804565,
"conf... |
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext
from django.views.decorators.http import require_POST
from recipes.forms import recipe_form_map, BuildoutForm
from project.models import Project
import buildout_manage.parser
from cStringIO import St... | {
"repo_name": "pnomolos/greatbigcrane",
"path": "greatbigcrane/recipes/views.py",
"copies": "1",
"size": "3758",
"license": "apache-2.0",
"hash": 7713693849355886000,
"line_mean": 42.1954022989,
"line_max": 92,
"alpha_frac": 0.6865353912,
"autogenerated": false,
"ratio": 3.695181907571288,
"con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.