text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render_to_response, HttpResponseRedirect, render, RequestContext from messenger.forms import LoginForm, MessageForm from django.views.decorators.cache import never_cache, cache_control from django.contrib.auth import logout from django.contrib.auth import login @never_cache @cache_control...
{ "repo_name": "watbe/defero", "path": "messenger/views.py", "copies": "1", "size": "2742", "license": "mit", "hash": 185870493444528930, "line_mean": 37.6338028169, "line_max": 121, "alpha_frac": 0.670678337, "autogenerated": false, "ratio": 3.9912663755458517, "config_test": false, "has_no_k...
from django.shortcuts import render_to_response from app.models import * from app.forms import RegistrationForm, DiseaseForm from django.core.urlresolvers import reverse, reverse_lazy from django.template import RequestContext from django.http import HttpResponse, HttpResponseRedirect from django.core.context_processor...
{ "repo_name": "sheeshmohsin/venturesity", "path": "flexy/app/views.py", "copies": "1", "size": "3729", "license": "mit", "hash": -8865224546051516000, "line_mean": 40.4333333333, "line_max": 123, "alpha_frac": 0.6792705819, "autogenerated": false, "ratio": 3.8762993762993765, "config_test": fal...
from django.shortcuts import render_to_response from apps.playlists.models import Genre, Playlist, UserProfile from apps.playlists.forms import PlaylistForm, FilterForm from django.template import RequestContext from django.http import HttpResponseRedirect, HttpResponse from django.core.paginator import Paginator, Inva...
{ "repo_name": "aesptux/gmaa-playlists", "path": "apps/playlists/views.py", "copies": "1", "size": "5005", "license": "apache-2.0", "hash": 4600080583640089000, "line_mean": 29.1506024096, "line_max": 82, "alpha_frac": 0.6155844156, "autogenerated": false, "ratio": 4.241525423728813, "config_tes...
from django.shortcuts import render_to_response from article.models import Article, Comment # for sessions and cookies from django.http import HttpResponse # for "create" view from forms import ArticleForm, CommentForm from django.http import HttpResponseRedirect from django.core.context_processors import csrf from dj...
{ "repo_name": "pyjosh/djangoprojects", "path": "django_test/article/views.py", "copies": "1", "size": "3467", "license": "mit", "hash": 5772357289865747000, "line_mean": 25.6769230769, "line_max": 94, "alpha_frac": 0.6558984713, "autogenerated": false, "ratio": 3.8955056179775283, "config_test"...
from django.shortcuts import render_to_response from article.models import Article from django.http import HttpResponseRedirect from forms import ArticleForm from django.core.context_processors import csrf def articles(request): return render_to_response('articles.html', {'articles':...
{ "repo_name": "meranamvarun/django_practice", "path": "article/views.py", "copies": "1", "size": "1100", "license": "mit", "hash": -6196992426811002000, "line_mean": 24.5813953488, "line_max": 79, "alpha_frac": 0.6390909091, "autogenerated": false, "ratio": 4.089219330855019, "config_test": fal...
from django.shortcuts import render_to_response from books.models import Book from books.forms import ContactForm from django.core.mail import send_mail from django.http import HttpResponseRedirect from django.template import RequestContext def search(request): errors = [] if 'q' in request.GET: q = r...
{ "repo_name": "meiavy/django_studio", "path": "books/views.py", "copies": "1", "size": "1397", "license": "apache-2.0", "hash": -2118337210566863400, "line_mean": 33.95, "line_max": 106, "alpha_frac": 0.583392985, "autogenerated": false, "ratio": 4.195195195195195, "config_test": false, "has_...
from django.shortcuts import render_to_response from core.settings import DKB_CAMPAIGN_URL from django.db import connection from core.views import initRequest, escapeInput from django.views.decorators.cache import never_cache import core.libs.CampaignPredictionHelper as cph from django.core.cache import cache import op...
{ "repo_name": "PanDAWMS/panda-bigmon-core", "path": "core/dashboards/campaingprogressDKB.py", "copies": "1", "size": "4016", "license": "apache-2.0", "hash": -4873990480263944000, "line_mean": 41.2736842105, "line_max": 144, "alpha_frac": 0.6499003984, "autogenerated": false, "ratio": 3.677655677...
from django.shortcuts import render_to_response from demoproject.chartdemo.models import MonthlyWeatherByCity from chartit import DataPool, Chart def homepage(request): ds = DataPool( series= [{'options': { 'source': MonthlyWeatherByCity.objects.all()}, 'terms': [ '...
{ "repo_name": "bastir85/django-chartit", "path": "demoproject/homepage/views.py", "copies": "4", "size": "1437", "license": "bsd-2-clause", "hash": -669427443340279600, "line_mean": 30.9555555556, "line_max": 75, "alpha_frac": 0.4363256785, "autogenerated": false, "ratio": 3.8218085106382977, "...
from django.shortcuts import render_to_response from django.conf import settings from django.template.context import RequestContext from django.http import HttpResponse import requests import json def show_debug(request): user = request.user access_token = request.session['oauth_access_token'] token_info =...
{ "repo_name": "consec/ConSec", "path": "federation-web/src/federweb/user/views/debug.py", "copies": "1", "size": "1520", "license": "bsd-3-clause", "hash": 219174153012286660, "line_mean": 29.4, "line_max": 71, "alpha_frac": 0.6407894737, "autogenerated": false, "ratio": 3.781094527363184, "con...
from django.shortcuts import render_to_response from django.conf import settings from bot.models import FoodTruckEvents, FoodTruck from bot.trucks import get_truck_frequency from datetime import datetime import requests import json import re def home(request): """home page view""" truck_list = get_truck_fre...
{ "repo_name": "vkreddy/chatbot", "path": "bot/views.py", "copies": "1", "size": "2295", "license": "bsd-3-clause", "hash": 2182929952207266600, "line_mean": 37.25, "line_max": 127, "alpha_frac": 0.5877995643, "autogenerated": false, "ratio": 3.430493273542601, "config_test": false, "has_no_ke...
from django.shortcuts import render_to_response from django.conf import settings from zookeeper_dashboard.zkadmin.models import ZKServer from zookeeper_dashboard.zktree.models import ZNode ZOOKEEPER_SERVERS = getattr(settings,'ZOOKEEPER_SERVERS').split(',') def index(request): server_data = [] for i, server ...
{ "repo_name": "lgrote/zookeeper_dashboard", "path": "zkadmin/views.py", "copies": "1", "size": "1148", "license": "apache-2.0", "hash": -3264464486696955400, "line_mean": 36.0322580645, "line_max": 69, "alpha_frac": 0.6080139373, "autogenerated": false, "ratio": 3.839464882943144, "config_test"...
# from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.models import User from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpRe...
{ "repo_name": "lingdb/CoBL-public", "path": "ielex/profiles/views.py", "copies": "1", "size": "2604", "license": "bsd-2-clause", "hash": -6650623838351832000, "line_mean": 39.0615384615, "line_max": 77, "alpha_frac": 0.6555299539, "autogenerated": false, "ratio": 4.234146341463415, "config_test...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from core.models import * from django.forms.models import modelformset_factory, inlineformset_factory from django.views.decorators.csrf import csrf_protect from django.te...
{ "repo_name": "hfrequency/django-issue-tracker", "path": "issue_tracker/core/views.py", "copies": "1", "size": "3186", "license": "mit", "hash": -1087901651373038700, "line_mean": 35.6206896552, "line_max": 126, "alpha_frac": 0.6676082863, "autogenerated": false, "ratio": 3.997490589711418, "co...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, get_object_or_404 from django.utils.translation import ugettext as _ from userprofile.forms import AvatarF...
{ "repo_name": "DarwinSalaz/django-profile", "path": "userprofile/views.py", "copies": "8", "size": "18702", "license": "bsd-2-clause", "hash": 9120229838366448000, "line_mean": 41.1216216216, "line_max": 147, "alpha_frac": 0.647043097, "autogenerated": false, "ratio": 4.043675675675676, "config...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect, HttpResponseNotAllowed from django.views.generic import simple from vt_manager.controller.users.forms import * from django.contrib.auth.forms import PasswordChangeForm ...
{ "repo_name": "ict-felix/stack", "path": "vt_manager/src/python/vt_manager/controller/users/urlHandlers.py", "copies": "4", "size": "2332", "license": "apache-2.0", "hash": 6007962533248664000, "line_mean": 26.7619047619, "line_max": 69, "alpha_frac": 0.68567753, "autogenerated": false, "ratio": ...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.template import RequestContext from django.http import HttpResponseRedirect, HttpResponse, Http404, HttpResponseServerError from django.core.exceptions import PermissionDenied from models import Folder...
{ "repo_name": "ojii/django-filer", "path": "filer/views.py", "copies": "2", "size": "5206", "license": "mit", "hash": -2377486860613387000, "line_mean": 36.7246376812, "line_max": 112, "alpha_frac": 0.6504033807, "autogenerated": false, "ratio": 3.797228300510576, "config_test": false, "has_n...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from django.conf import settings from django.http import HttpResponse from saasu_client.settings import SAASU_EROR...
{ "repo_name": "MVReddy/TMS", "path": "adlibre_tms/apps/tms/contrib/saasu/views.py", "copies": "2", "size": "2168", "license": "bsd-3-clause", "hash": 4069918790035447000, "line_mean": 38.4181818182, "line_max": 108, "alpha_frac": 0.6918819188, "autogenerated": false, "ratio": 3.542483660130719, ...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.template import RequestContext from .models import Category, UserScore, Performance def competition_detail(request): return render_to_response('leaderboards/competition_detail.html', ...
{ "repo_name": "mingot/detectme_server", "path": "detectme/leaderboards/views.py", "copies": "1", "size": "1626", "license": "mit", "hash": 557714774830372860, "line_mean": 44.1666666667, "line_max": 93, "alpha_frac": 0.6660516605, "autogenerated": false, "ratio": 4.606232294617564, "config_test...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.template import RequestContext from starbowmodweb.streams.models import StreamInfo from starbowmodweb.streams.forms import AddStreamForm @login_required def edit_stream(request): messages = [] ...
{ "repo_name": "Starbow/StarbowWebSite", "path": "starbowmodweb/streams/views.py", "copies": "1", "size": "1876", "license": "mit", "hash": -1552262692296011000, "line_mean": 44.7804878049, "line_max": 97, "alpha_frac": 0.6151385928, "autogenerated": false, "ratio": 4.488038277511961, "config_te...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse import json from distill import inference ''' @author: Anant Bhardwaj @date: Mar 21, 2013 Datahub Refiner ''' @login_r...
{ "repo_name": "RogerTangos/datahub-stub", "path": "src/apps/refiner/views.py", "copies": "1", "size": "1501", "license": "mit", "hash": -5259685388244091000, "line_mean": 27.320754717, "line_max": 73, "alpha_frac": 0.6129247169, "autogenerated": false, "ratio": 3.9708994708994707, "config_test"...
from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_http_methods from django.views.decorators.http import require_POST from django.http import HttpResponseRedirect, Http404, HttpResponseForbidden from django.shortcuts...
{ "repo_name": "sggottlieb/cmfieldguide", "path": "cmfieldguide/cmsdetector/views.py", "copies": "1", "size": "1267", "license": "unlicense", "hash": 2190589372465023700, "line_mean": 29.1666666667, "line_max": 76, "alpha_frac": 0.6953433307, "autogenerated": false, "ratio": 4.0094936708860756, ...
from django.shortcuts import render_to_response from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect, HttpResponse from django.template import RequestContext from rango.models import Category, Page, UserProfile...
{ "repo_name": "jatinshah/django_projects", "path": "tango_with_django/rango/views.py", "copies": "1", "size": "9552", "license": "mit", "hash": 4462499991452062000, "line_mean": 26.9298245614, "line_max": 105, "alpha_frac": 0.5968383585, "autogenerated": false, "ratio": 4.0491733785502335, "con...
from django.shortcuts import render_to_response from django.contrib.auth.models import * from django.template.loader import get_template from django.template import Context from django.http import HttpResponse, Http404 from lingcod.common import default_mimetypes as mimetypes from lingcod.common import utils from djan...
{ "repo_name": "google-code-export/marinemap", "path": "lingcod/kmlapp/views.py", "copies": "3", "size": "10767", "license": "bsd-3-clause", "hash": 3275156069704879000, "line_mean": 36.3854166667, "line_max": 139, "alpha_frac": 0.6724250023, "autogenerated": false, "ratio": 3.9701327433628317, ...
from django.shortcuts import render_to_response from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.template import RequestContext from drinker.models import Drinker from drinker.forms import RegistrationForm, LoginForm, EditProfile from django.contrib.auth import authen...
{ "repo_name": "OckiFals/crud-django", "path": "drinker/views.py", "copies": "1", "size": "4605", "license": "mit", "hash": -1350861792015665000, "line_mean": 34.984375, "line_max": 101, "alpha_frac": 0.5945711183, "autogenerated": false, "ratio": 4.53248031496063, "config_test": false, "has_n...
from django.shortcuts import render_to_response from django.contrib.formtools.wizard.views import NamedUrlSessionWizardView from django.views.generic import ListView from braces.views import LoginRequiredMixin from beyondthehost.models import OwnedMixin from applications.forms import AppForm from domains.forms import...
{ "repo_name": "gfavre/beyondthehost", "path": "beyondthehost/websites/views.py", "copies": "1", "size": "1297", "license": "mit", "hash": -9177762667047952000, "line_mean": 32.2564102564, "line_max": 84, "alpha_frac": 0.7093292213, "autogenerated": false, "ratio": 3.825958702064897, "config_tes...
from django.shortcuts import render_to_response from django.contrib.formtools.wizard.views import SessionWizardView from django.views.generic import TemplateView from extraball.models import ExtraBallForm1, ExtraBallForm2, ExtraBallForm3 class ExtraBallView(SessionWizardView): form_list = [ExtraBallForm1, ExtraB...
{ "repo_name": "Victory/fun-with-forms", "path": "funforms/extraball/views.py", "copies": "1", "size": "1531", "license": "apache-2.0", "hash": 1707092272266228200, "line_mean": 32.2826086957, "line_max": 77, "alpha_frac": 0.6276943174, "autogenerated": false, "ratio": 3.6626794258373208, "confi...
from django.shortcuts import render_to_response from django.contrib import auth from django.template.context import RequestContext from .forms import LoginForm # Create your views here. def login(request): if request.method == 'GET': form = LoginForm return render_to_response('login.html', Reques...
{ "repo_name": "tcqiuyu/aquam", "path": "aquam/apps/accounts/views.py", "copies": "1", "size": "1089", "license": "mit", "hash": 3041319820442575000, "line_mean": 40.8846153846, "line_max": 109, "alpha_frac": 0.6097337006, "autogenerated": false, "ratio": 4.481481481481482, "config_test": false,...
from django.shortcuts import render_to_response from django.contrib import messages from django.http import HttpRequest from social.pipeline.partial import partial from social.exceptions import InvalidEmail # See: http://psa.matiasaguirre.net/docs/pipeline.html#partial-pipeline @partial def request_user_email(backend...
{ "repo_name": "Traviskn/django_starter_template", "path": "{{cookiecutter.project_name}}/accounts/pipeline.py", "copies": "1", "size": "1975", "license": "mit", "hash": 8661727531043817000, "line_mean": 46.0238095238, "line_max": 113, "alpha_frac": 0.6303797468, "autogenerated": false, "ratio": 4...
from django.shortcuts import render_to_response from django.core.context_processors import csrf from django.conf import settings from django.views.decorators.clickjacking import xframe_options_exempt from django.http import HttpResponse from django.template import RequestContext #from members.models import User from ti...
{ "repo_name": "jsbrava/intro23andme", "path": "members/views.py", "copies": "1", "size": "6694", "license": "mit", "hash": -8116165443725279000, "line_mean": 45.4861111111, "line_max": 182, "alpha_frac": 0.6354944727, "autogenerated": false, "ratio": 3.748040313549832, "config_test": false, "...
from django.shortcuts import render_to_response from django.core.context_processors import csrf from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required import json from django.contrib.gis.geos import Point from fruitlocations.models import FruitLocations fro...
{ "repo_name": "KBratland/django_final", "path": "fruitlocations/views.py", "copies": "1", "size": "1945", "license": "apache-2.0", "hash": 2860865594172457000, "line_mean": 33.75, "line_max": 129, "alpha_frac": 0.6827763496, "autogenerated": false, "ratio": 3.662900188323917, "config_test": fal...
from django.shortcuts import render_to_response from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django import forms import os import sqlite3 import json BASE_DIR = os.path.dirname(os.path.realpath(__file__)) ...
{ "repo_name": "cansoftinc/bmprototype", "path": "wsgi/openshift/views.py", "copies": "1", "size": "1985", "license": "apache-2.0", "hash": -6091183281024732000, "line_mean": 36.4716981132, "line_max": 90, "alpha_frac": 0.6110831234, "autogenerated": false, "ratio": 3.5383244206773616, "config_t...
from django.shortcuts import render_to_response from django.core.exceptions import ValidationError from django.contrib.auth import authenticate, login, logout from jsonserial import json_response_from from django.views.decorators.csrf import csrf_exempt # TODO: Checkout ensure_csrf_cookie() when we update to Django 1....
{ "repo_name": "jeremyosborne/python", "path": "general/lies-damnlies-stats/server/auth/views.py", "copies": "1", "size": "3708", "license": "mit", "hash": -8066516856132770000, "line_mean": 31.814159292, "line_max": 80, "alpha_frac": 0.642394822, "autogenerated": false, "ratio": 4.446043165467626...
from django.shortcuts import render_to_response from django.core import serializers from django.core.paginator import Paginator, EmptyPage, InvalidPage from medialib.models import Picture ## AJAX views def media_browser(request, template='medialib/media_browser.html'): """ Our ajax view that will get the medi...
{ "repo_name": "andrewebdev/django-medialib", "path": "src/medialib/views.py", "copies": "1", "size": "1604", "license": "bsd-3-clause", "hash": -5674292742557410000, "line_mean": 27.6428571429, "line_max": 80, "alpha_frac": 0.6190773067, "autogenerated": false, "ratio": 4.123393316195373, "conf...
from django.shortcuts import render_to_response from django.core import serializers from django.http import HttpResponse from django.template import RequestContext from django.core.urlresolvers import reverse from django.conf import settings from django import forms from django.db.models import Avg, Max, Min, Count fro...
{ "repo_name": "cjmay/energyweb", "path": "graph/views.py", "copies": "1", "size": "20685", "license": "mit", "hash": 5083354548601211000, "line_mean": 41.9149377593, "line_max": 165, "alpha_frac": 0.5510273145, "autogenerated": false, "ratio": 4.071049006101161, "config_test": false, "has_no_...
from django.shortcuts import render_to_response from django.core.paginator import Paginator, EmptyPage, InvalidPage from primitivegallery.models import Image, Directory from django.http import HttpResponse, Http404 from datetime import timedelta from django.utils import timezone def list(request, size='thumbnails', s...
{ "repo_name": "ludw/django-primitivegallery", "path": "primitivegallery/views.py", "copies": "1", "size": "2799", "license": "mit", "hash": -3866400315410012700, "line_mean": 26.99, "line_max": 100, "alpha_frac": 0.5991425509, "autogenerated": false, "ratio": 3.8081632653061224, "config_test": ...
from django.shortcuts import render_to_response from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.db.models import Q from django.db import connection from tagging.models import TaggedItem from models import Movie, Person def movie(request, slug): movie = Movie.objects.select_related(...
{ "repo_name": "keimlink/sandoval", "path": "movie/views.py", "copies": "1", "size": "2290", "license": "bsd-3-clause", "hash": -423167746084016260, "line_mean": 36.5573770492, "line_max": 115, "alpha_frac": 0.6441048035, "autogenerated": false, "ratio": 3.572542901716069, "config_test": false, ...
from django.shortcuts import render_to_response from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponseForbidden, Http404 from django.template import RequestContext from django.utils.translation import ugettext, ugettext_lazy as _ from .models import (Candidate, RaceCou...
{ "repo_name": "callowayproject/django-elections", "path": "elections/views.py", "copies": "1", "size": "2040", "license": "apache-2.0", "hash": -6847341937272452000, "line_mean": 35.4464285714, "line_max": 99, "alpha_frac": 0.6245098039, "autogenerated": false, "ratio": 4.08, "config_test": fal...
from django.shortcuts import render_to_response from django.db import models from articles.models import Article from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.conf import settings def articles_all(request): first_article = Article.objects.all().order_by('-pub_date')[0] ar...
{ "repo_name": "vinilios/feincms-1", "path": "articles/views.py", "copies": "1", "size": "1248", "license": "bsd-3-clause", "hash": 7949357164211140000, "line_mean": 45.2222222222, "line_max": 144, "alpha_frac": 0.7091346154, "autogenerated": false, "ratio": 3.6814159292035398, "config_test": fa...
from django.shortcuts import render_to_response from django.db import models from news.models import New from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.conf import settings def news_all(request): news_list = New.objects.all().order_by('-pub_date') paginator = Paginator(ne...
{ "repo_name": "vinilios/feincms-1", "path": "news/views.py", "copies": "1", "size": "1061", "license": "bsd-3-clause", "hash": 5753481247318779000, "line_mean": 36.8928571429, "line_max": 92, "alpha_frac": 0.6936852026, "autogenerated": false, "ratio": 3.524916943521595, "config_test": false, ...
from django.shortcuts import render_to_response from django.db.models import Q from django.template import RequestContext from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.translation import ugettext as _ from main.models import Post, Tag from main.forms import PostForm from ut...
{ "repo_name": "entwanne/Rodolphe", "path": "rodolphe/main/views/tag.py", "copies": "2", "size": "1805", "license": "bsd-2-clause", "hash": -4771190324839397000, "line_mean": 32.4259259259, "line_max": 72, "alpha_frac": 0.6609418283, "autogenerated": false, "ratio": 3.7840670859538785, "config_t...
from django.shortcuts import render_to_response from django.http import Http404, HttpResponse, HttpResponseRedirect from django.template import RequestContext import sqlitedb import datetime # Create your views here. title=("SELECT Title from db_table WHERE Keyword=mobile") price=("SELECT Price from db_table WHERE Ke...
{ "repo_name": "shailendert/Vertical-Search-Engine", "path": "verticalsearch/views.py", "copies": "1", "size": "1524", "license": "apache-2.0", "hash": 4608839022732913700, "line_mean": 29.48, "line_max": 71, "alpha_frac": 0.6732283465, "autogenerated": false, "ratio": 3.5359628770301623, "confi...
from django.shortcuts import render_to_response from django.http import Http404, HttpResponse from django.template import Context, Template from django.contrib.contenttypes.models import ContentType JSON_TEMPLATE = '''[{% for obj in objects %}{contentTypeId:'{{ obj.content_type_id }}',contentTypeText:'{{ obj.content_...
{ "repo_name": "caiges/populous", "path": "populous/admin/views.py", "copies": "1", "size": "1650", "license": "bsd-3-clause", "hash": 8938188794106760000, "line_mean": 38.3095238095, "line_max": 252, "alpha_frac": 0.6151515152, "autogenerated": false, "ratio": 3.6912751677852347, "config_test":...
from django.shortcuts import render_to_response from django.http import Http404 from django.contrib.sites.models import Site from django.template import RequestContext, loader, Context from django.core.mail import send_mail from shoppy.product.models import Product, MixProduct from shoppy.mailfriend.models import * fr...
{ "repo_name": "pocketone/django-shoppy", "path": "shoppy/mailfriend/views.py", "copies": "1", "size": "5559", "license": "bsd-3-clause", "hash": 6280341921529794000, "line_mean": 41.1212121212, "line_max": 125, "alpha_frac": 0.5607123583, "autogenerated": false, "ratio": 3.892857142857143, "con...
from django.shortcuts import render_to_response from django.http import HttpResponseBadRequest, HttpResponseRedirect, Http404 from django.template import RequestContext from django.db import transaction from django.core import paginator from reversion import models from reversion import revision from wikify.models imp...
{ "repo_name": "cburgmer/django-wikify", "path": "src/wikify/views.py", "copies": "1", "size": "5822", "license": "bsd-3-clause", "hash": 3846699207867659300, "line_mean": 41.496350365, "line_max": 80, "alpha_frac": 0.5405358983, "autogenerated": false, "ratio": 4.768222768222768, "config_test":...
from django.shortcuts import render_to_response from django.http import HttpResponse, Http404, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseNotAllowed from django.template import RequestContext from django.conf import settings from django.utils import simplejson from bundestagger.helper.utils import is_g...
{ "repo_name": "stefanw/Bundestagger", "path": "bundestagger/search/views.py", "copies": "1", "size": "1190", "license": "mit", "hash": 256348671726028320, "line_mean": 40.0689655172, "line_max": 168, "alpha_frac": 0.7176470588, "autogenerated": false, "ratio": 3.6956521739130435, "config_test":...
from django.shortcuts import render_to_response from django.http import HttpResponse, Http404 from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.db import transaction, IntegrityError from django.db.models import Q from django.core.urlresolvers import reverse...
{ "repo_name": "sameenjalal/mavenize-beta", "path": "mavenize/apps/movie/views.py", "copies": "1", "size": "5137", "license": "mit", "hash": 4626093280926551000, "line_mean": 34.9230769231, "line_max": 85, "alpha_frac": 0.6048277205, "autogenerated": false, "ratio": 4.067300079176563, "config_te...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpRequest, HttpResponseRedirect from django.template import RequestContext, loader from django.contrib.auth import authenticate,login,logout from django.contrib.auth.hashers import check_password,make_password from .models import Us...
{ "repo_name": "parthz/buku", "path": "core/authentication/views.py", "copies": "2", "size": "2089", "license": "mit", "hash": -2130737340823640600, "line_mean": 35.649122807, "line_max": 177, "alpha_frac": 0.5926280517, "autogenerated": false, "ratio": 3.8973880597014925, "config_test": false, ...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpRequest from station.models import StationData, LaunchInfo, Relationship import os import logging import uuid from urlparse import urlparse import belaylibs.dj_belay as bcap logger = logging.getLogger('default') # Django middle...
{ "repo_name": "brownplt/k3", "path": "dj-station/station/views.py", "copies": "1", "size": "3233", "license": "apache-2.0", "hash": 8385836368585736000, "line_mean": 31.9897959184, "line_max": 77, "alpha_frac": 0.679245283, "autogenerated": false, "ratio": 3.746234067207416, "config_test": fals...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpRequest, QueryDict from doge.models import Response from doge.models import Response2 from doge.models import ResponseGood from doge.models import ResponseBad from doge.models import ResponseNeutral from doge.models import GoodFor...
{ "repo_name": "dstess/dogeteller", "path": "doge/views.py", "copies": "1", "size": "3456", "license": "mit", "hash": 648546168059132700, "line_mean": 32.5631067961, "line_max": 66, "alpha_frac": 0.6247106481, "autogenerated": false, "ratio": 3.18232044198895, "config_test": false, "has_no_key...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseNotAllowed, HttpRequest, HttpResponseNotFound import os import logging import uuid from apply.models import * from django.db import IntegrityError import belaylibs.dj_belay as bcap from lib.py.common import logWith404 from...
{ "repo_name": "brownplt/k3", "path": "dj-apply/apply/views.py", "copies": "1", "size": "16586", "license": "apache-2.0", "hash": -3694666412468648400, "line_mean": 30.0018691589, "line_max": 100, "alpha_frac": 0.6621246835, "autogenerated": false, "ratio": 3.582289416846652, "config_test": fals...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect, Http404 from nymdesign.portfolio.models import * def view_single_project(request, portfolio_slug, image_number=1): """ View a single project including it's images and other projects in that category ...
{ "repo_name": "raprasad/worldcup", "path": "worldcup/worldcup/teams/views.py", "copies": "1", "size": "1221", "license": "mit", "hash": -9042335371070286000, "line_mean": 32.027027027, "line_max": 83, "alpha_frac": 0.678951679, "autogenerated": false, "ratio": 4.043046357615894, "config_test": ...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect, Http404 from worldcup.matches.models import * """ matches = '''1 Fri Jun 11, 2010 16:00 South Africa Mexico Johannesburg - JSC 2 Fri Jun 11, 2010 20:30 Uruguay France Cape Town 3 Sat Jun 12, 2010 16:00 A...
{ "repo_name": "raprasad/worldcup", "path": "worldcup/worldcup/matches/views.py", "copies": "1", "size": "3960", "license": "mit", "hash": -2651166518659200000, "line_mean": 49.7692307692, "line_max": 103, "alpha_frac": 0.7176767677, "autogenerated": false, "ratio": 2.1075039914848324, "config_t...
from django.shortcuts import render_to_response from django.http import HttpResponse,HttpResponseRedirect from django.template import RequestContext from django.contrib.auth.models import User from django.contrib.auth import authenticate,login from django.contrib import messages # 使用django内置auth模块制作用户认证系统. def signin...
{ "repo_name": "vashzsun/fund_analysis", "path": "user/views.py", "copies": "1", "size": "2263", "license": "apache-2.0", "hash": -4067060819302716000, "line_mean": 55.0789473684, "line_max": 135, "alpha_frac": 0.648991084, "autogenerated": false, "ratio": 3.8258527827648114, "config_test": fals...
from django.shortcuts import render_to_response from django.http import HttpResponse,HttpResponseRedirect from django.template import RequestContext from django.contrib import auth from django.contrib.auth.forms import UserCreationForm from controller.models import Usertable import uuid import os def login(request): i...
{ "repo_name": "ray6/sdn", "path": "sdn_mysite/sdn_mysite/views.py", "copies": "1", "size": "1552", "license": "mit", "hash": -7668384856696865000, "line_mean": 33.4888888889, "line_max": 76, "alpha_frac": 0.731314433, "autogenerated": false, "ratio": 3.5353075170842825, "config_test": false, ...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.db.models import Count, Q from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.shortcuts import get_object_or_404, redirect import ...
{ "repo_name": "friendofrobots/air-toolkit", "path": "air/air_explorer/views.py", "copies": "1", "size": "9488", "license": "mit", "hash": 5947634656033181000, "line_mean": 40.0735930736, "line_max": 97, "alpha_frac": 0.5659780776, "autogenerated": false, "ratio": 4.396663577386469, "config_test...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.http import Http404 from django.core.exceptions import ObjectDoesNotExist from models import * import forms from pygooglechart import PieChart2D def index(r...
{ "repo_name": "swiharta/radres", "path": "polls/views.py", "copies": "1", "size": "3554", "license": "mit", "hash": -1613262436652895700, "line_mean": 34.55, "line_max": 85, "alpha_frac": 0.6426561621, "autogenerated": false, "ratio": 3.884153005464481, "config_test": false, "has_no_keywords"...
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect from django.utils.translation import string_concat, ugettext as _ from django.contrib import messages import logging try: import reportlab from reportlab.graphics.shapes import Drawing f...
{ "repo_name": "lukaszb/django-projector", "path": "projector/views/reports.py", "copies": "1", "size": "1883", "license": "bsd-3-clause", "hash": -2031081235186345200, "line_mean": 33.2363636364, "line_max": 84, "alpha_frac": 0.6797663303, "autogenerated": false, "ratio": 3.758483033932136, "co...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.core import serializers as cereal from django.core.context_processors import csrf import simplejson as json from .models import Activity def index(request): collection = Activity.objects.all() return HttpResponse(cere...
{ "repo_name": "MFoster/breeze", "path": "breeze/api/views.py", "copies": "1", "size": "1310", "license": "bsd-3-clause", "hash": 8935254358082808000, "line_mean": 30.1904761905, "line_max": 67, "alpha_frac": 0.720610687, "autogenerated": false, "ratio": 3.7971014492753623, "config_test": false,...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template.context import RequestContext import json from scripts.django_cam_controller import * def get_num_images(request): num = num_images() data = { "num_images": num } return HttpRe...
{ "repo_name": "davis1410/django_cam_controller", "path": "views.py", "copies": "1", "size": "1361", "license": "mit", "hash": -5241639990324036000, "line_mean": 20.28125, "line_max": 74, "alpha_frac": 0.6414401176, "autogenerated": false, "ratio": 4.014749262536873, "config_test": false, "has...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template.context_processors import csrf from django.template import loader import os from subprocess import check_output, CalledProcessError CODE_PATH = os.path.dirname(os.path.realpath(__file__)) CONTAINER_PATH = "/src/c...
{ "repo_name": "CWelshE/dataquest", "path": "codeparser/views.py", "copies": "1", "size": "1197", "license": "mit", "hash": -8536814165550230000, "line_mean": 27.5, "line_max": 69, "alpha_frac": 0.5806182122, "autogenerated": false, "ratio": 4.11340206185567, "config_test": false, "has_no_keyw...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from clients.models import Client, Dependent def index(request): context = RequestContext(request) client_list = Client.objects.all() client_dict = {'clients': client_list} ...
{ "repo_name": "eklinger-UofA/3DOrthotics", "path": "orthotics_project/clients/views.py", "copies": "1", "size": "1074", "license": "apache-2.0", "hash": 3895278928022930000, "line_mean": 30.5882352941, "line_max": 75, "alpha_frac": 0.6675977654, "autogenerated": false, "ratio": 4.1953125, "conf...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from agency.models import Customer from planner.models import EVENT_TYPE from product.prod...
{ "repo_name": "SBillion/aegroupware", "path": "portal/views.py", "copies": "1", "size": "1521", "license": "mit", "hash": -7851813369768338000, "line_mean": 34.3720930233, "line_max": 196, "alpha_frac": 0.7619986851, "autogenerated": false, "ratio": 3.5208333333333335, "config_test": false, "...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.decorators import login_required from chat.models import AppModel from cortex import SessionPool, Channel, WebsocketHandler Sessions = SessionPool(); # Establish a c...
{ "repo_name": "holdensmagicalunicorn/cortex", "path": "examples/chat/apps/chat/views.py", "copies": "1", "size": "2765", "license": "mit", "hash": -3691325336044205000, "line_mean": 25.8446601942, "line_max": 66, "alpha_frac": 0.6499095841, "autogenerated": false, "ratio": 3.8349514563106797, "...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.decorators import login_required from drag.models import AppModel from cortex import SessionPool, Channel, WebsocketHandler Sessions = SessionPool(); # Establish a c...
{ "repo_name": "holdensmagicalunicorn/cortex", "path": "examples/drag/apps/drag/views.py", "copies": "1", "size": "2150", "license": "mit", "hash": 4578903104560472000, "line_mean": 24.2941176471, "line_max": 62, "alpha_frac": 0.663255814, "autogenerated": false, "ratio": 3.7521815008726005, "co...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.decorators import login_required from game.models import AppModel from cortex import SessionPool, Channel, WebsocketHandler Sessions = SessionPool(); # Establish a c...
{ "repo_name": "holdensmagicalunicorn/cortex", "path": "examples/game/apps/game/views.py", "copies": "1", "size": "2193", "license": "mit", "hash": -1663353340430800400, "line_mean": 24.2068965517, "line_max": 62, "alpha_frac": 0.6611947104, "autogenerated": false, "ratio": 3.7551369863013697, "...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.decorators import login_required import api import datetime as dt def index(request): if request.user.is_authenticated(): return activity_feed(request) ...
{ "repo_name": "sameenjalal/mavenize-beta", "path": "mavenize/apps/activity_feed/views.py", "copies": "1", "size": "1561", "license": "mit", "hash": -5874025425537556000, "line_mean": 30.22, "line_max": 69, "alpha_frac": 0.6591928251, "autogenerated": false, "ratio": 4.054545454545455, "config_t...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.template.loader import render_to_string from django.conf import settings from django.shortcuts import render from facegame.faceguessing.models import Player, UserStats from facega...
{ "repo_name": "futurice/facegame", "path": "facegame/nameguessing/views.py", "copies": "1", "size": "4122", "license": "mit", "hash": -8892484485283722000, "line_mean": 39.4117647059, "line_max": 231, "alpha_frac": 0.6974769529, "autogenerated": false, "ratio": 3.7920883164673413, "config_test"...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template import RequestContext from django.views.decorators.csrf import csrf_protect from django.template import Template, Context from omg_a_blog.blog.models import Blog from omg_a_blog.blog.forms import ContactForm from d...
{ "repo_name": "AeroNotix/omg_a_blog", "path": "views.py", "copies": "1", "size": "1409", "license": "bsd-3-clause", "hash": -4129520378394782700, "line_mean": 28.9787234043, "line_max": 61, "alpha_frac": 0.5741660752, "autogenerated": false, "ratio": 4.530546623794212, "config_test": false, "...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.template.loader import get_template from django.template import Context from django.views.generic.base import TemplateView from django.views.generic import ListView from blog.models import Blog import json # Create your vi...
{ "repo_name": "cryanperkins/PoolRyde", "path": "poolryde/blog/views.py", "copies": "1", "size": "1579", "license": "apache-2.0", "hash": -3391272682561593300, "line_mean": 24.8852459016, "line_max": 75, "alpha_frac": 0.6434452185, "autogenerated": false, "ratio": 3.795673076923077, "config_test...
from django.shortcuts import render_to_response from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_GET from django.template import RequestContext import requests import json def home(request): """ View to render homepage ...
{ "repo_name": "dannysellers/school_mapper", "path": "mapper/views.py", "copies": "1", "size": "1544", "license": "mit", "hash": -4933071589840058000, "line_mean": 25.6379310345, "line_max": 82, "alpha_frac": 0.6509067358, "autogenerated": false, "ratio": 3.557603686635945, "config_test": false,...
from django.shortcuts import render_to_response from django.http import HttpResponse from yelpapi.yelpapi import YelpAPI import json from rest_framework import viewsets, serializers from rest_framework.renderers import JSONRenderer from hello import models from hello.models import Violation, Restaurant, Address def h...
{ "repo_name": "Veeva-Hackers/bootstrap", "path": "django/hello_world/hello/views.py", "copies": "1", "size": "3016", "license": "mit", "hash": -5229815446730150000, "line_mean": 31.4301075269, "line_max": 103, "alpha_frac": 0.6727453581, "autogenerated": false, "ratio": 3.548235294117647, "conf...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect, Http404 from django.core.urlresolvers import reverse from django.template.context import RequestContext from django.conf import settings from django.contrib.auth.decorators import user_passes_test from django.contrib.contentty...
{ "repo_name": "adriaant/django-datatrans", "path": "datatrans/views.py", "copies": "1", "size": "9054", "license": "bsd-3-clause", "hash": 3976543387726493000, "line_mean": 35.3614457831, "line_max": 139, "alpha_frac": 0.6170753258, "autogenerated": false, "ratio": 3.9815303430079156, "config_t...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect, HttpResponse, Http404 from decimal import * from math import floor from django.template import RequestContext import logging, traceback #import simplejson #from django.contrib import auth from django.http import HttpRequest #f...
{ "repo_name": "poeks/twitterbelle", "path": "helpers.py", "copies": "1", "size": "4109", "license": "apache-2.0", "hash": 1067138863104641000, "line_mean": 26.5771812081, "line_max": 99, "alpha_frac": 0.7118520321, "autogenerated": false, "ratio": 3.3057119871279164, "config_test": false, "ha...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect, HttpResponse, Http404 from django.template import RequestContext from datetime import date from apps.clanlabs.models import SeizureLocationType, ManufacturingMethod, ClandestineLabReport def view_august_2014(request): ...
{ "repo_name": "raprasad/indiana-meth-labs", "path": "methlabs/apps/clanlabs/views.py", "copies": "1", "size": "5526", "license": "mit", "hash": -5153422698484464000, "line_mean": 35.1176470588, "line_max": 97, "alpha_frac": 0.5168295331, "autogenerated": false, "ratio": 4.033576642335767, "conf...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect, HttpResponse from django.core.urlresolvers import reverse from django.template import RequestContext from django_socketio import events def home(request, template='index.html'): context = {"room": "ping",} return re...
{ "repo_name": "ajfisher/sketching-conf-demo", "path": "sketching/sketching/views.py", "copies": "1", "size": "1374", "license": "bsd-3-clause", "hash": 6159312466069211000, "line_mean": 30.2272727273, "line_max": 73, "alpha_frac": 0.6186317322, "autogenerated": false, "ratio": 3.8923512747875355,...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect, HttpResponse from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from instance.models import Host, Instance from dashboard.views import sort_host from webvirtmgr.server import Con...
{ "repo_name": "selboo/starl-mangle", "path": "webvirtmgr/instance/views.py", "copies": "1", "size": "8776", "license": "apache-2.0", "hash": 5195440603651165000, "line_mean": 38.8909090909, "line_max": 125, "alpha_frac": 0.483135825, "autogenerated": false, "ratio": 4.7566395663956635, "config_...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.conf import settings from django.template import RequestContext from django.shortcuts import redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User import u...
{ "repo_name": "friendofrobots/air-toolkit", "path": "air/fbauth/views.py", "copies": "1", "size": "2874", "license": "mit", "hash": 3198877227979226600, "line_mean": 38.3698630137, "line_max": 78, "alpha_frac": 0.5981210856, "autogenerated": false, "ratio": 4.264094955489615, "config_test": fal...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers i...
{ "repo_name": "howiworkdaily/scofield-project", "path": "scofield/account/views.py", "copies": "1", "size": "4935", "license": "bsd-3-clause", "hash": 6570465897613460000, "line_mean": 43.8636363636, "line_max": 127, "alpha_frac": 0.6419452888, "autogenerated": false, "ratio": 4.182203389830509, ...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.contrib import auth from django.contrib.auth.models import User from django.core.context_processors import csrf from django.contrib.auth.forms import UserCreationForm from django.core.urlresolvers import reverse imp...
{ "repo_name": "alotofdavid/fmc", "path": "weekly_fmc/views.py", "copies": "1", "size": "5208", "license": "bsd-3-clause", "hash": -3365195854206498000, "line_mean": 33.2631578947, "line_max": 92, "alpha_frac": 0.7206221198, "autogenerated": false, "ratio": 3.2920353982300883, "config_test": fal...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.contrib import auth from django.core.context_processors import csrf # for registration from forms import MyRegistrationForm # for form wizard from django.contrib.formtools.wizard.views import SessionWizardView from ...
{ "repo_name": "pyjosh/djangoprojects", "path": "django_test/django_test/views.py", "copies": "1", "size": "2687", "license": "mit", "hash": -8282608685346781000, "line_mean": 27, "line_max": 72, "alpha_frac": 0.678451805, "autogenerated": false, "ratio": 3.9055232558139537, "config_test": false...
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 django.contrib.auth.decorators import user_passes_test from .serializer import * from rest_framework import generics, permissions class User...
{ "repo_name": "Hastu/educ_plateform", "path": "educ/authentification/views.py", "copies": "1", "size": "2223", "license": "mit", "hash": 8001209073351051000, "line_mean": 25.1529411765, "line_max": 95, "alpha_frac": 0.6941070625, "autogenerated": false, "ratio": 3.9767441860465116, "config_test...
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 django.template import RequestContext from django.contrib.auth.decorators import login_required from django.contrib import messages from user...
{ "repo_name": "thenaterhood/django-user", "path": "views.py", "copies": "1", "size": "6947", "license": "bsd-3-clause", "hash": -3333135353765590500, "line_mean": 28.1890756303, "line_max": 93, "alpha_frac": 0.649345041, "autogenerated": false, "ratio": 4.205205811138015, "config_test": false, ...
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 RegistrationForm, LoginForm, PostForm, SearchForm from models import User, Post , Photo from django.views.generic import ListVie...
{ "repo_name": "rsubra13/dtc", "path": "twitterclone/views.py", "copies": "1", "size": "10193", "license": "apache-2.0", "hash": -1122646933838841300, "line_mean": 31.4617834395, "line_max": 117, "alpha_frac": 0.5602864711, "autogenerated": false, "ratio": 4.286375105130362, "config_test": false...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.contrib import auth from django.core.context_processors import csrf def log_in(request): c={} c.update(csrf(request)) return render_to_response('login.html',c) def auth_view(request): username = re...
{ "repo_name": "aviisekh/farmer_mrkt_soln", "path": "login/views.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": 2686759162298099700, "line_mean": 28.9166666667, "line_max": 156, "alpha_frac": 0.7228412256, "autogenerated": false, "ratio": 3.9450549450549453, "config_test": ...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.core.context_processors import csrf from django.contrib.auth.decorators import login_required from forms import UserProfileForm import json from django.http import HttpResponse from .models import UserProfile # Cr...
{ "repo_name": "moniquemtucker/simply-good", "path": "simply_good_django/userprofile/views.py", "copies": "1", "size": "1372", "license": "apache-2.0", "hash": 2770865559390097400, "line_mean": 28.2127659574, "line_max": 78, "alpha_frac": 0.665451895, "autogenerated": false, "ratio": 3.80055401662...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.core.context_processors import csrf #from django.views.generic import ListView from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from .models import UserProfile f...
{ "repo_name": "cryanperkins/PoolRyde", "path": "poolryde/userprofile/views.py", "copies": "1", "size": "1843", "license": "apache-2.0", "hash": -8876336638567920000, "line_mean": 31.3333333333, "line_max": 84, "alpha_frac": 0.6945198047, "autogenerated": false, "ratio": 3.8078512396694215, "con...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.template import RequestContext from system.models import * def requestView(request): request_list = Request.objects.all() vote_list = Vote.objects.filter(user=r...
{ "repo_name": "XMLPro/ManagementSystem", "path": "system/controllers/requestView.py", "copies": "1", "size": "1078", "license": "mit", "hash": -346021208926507260, "line_mean": 30.7058823529, "line_max": 73, "alpha_frac": 0.6734693878, "autogenerated": false, "ratio": 3.8776978417266186, "confi...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.contrib.auth.models import User from django.http import Http404 from dreams.models import Dream def IndexView(request): dreams = Dream.objects.all() template_n...
{ "repo_name": "KellyChan/Python", "path": "python/django/elf/dailydream/dailydream/dreams/views.py", "copies": "3", "size": "2518", "license": "mit", "hash": 4868495377669862000, "line_mean": 31.2820512821, "line_max": 112, "alpha_frac": 0.6727561557, "autogenerated": false, "ratio": 3.7582089552...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from instance.models import Host, Flavor, Instance from dashboard.views import sort_host from newvm.forms import FlavorAddForm, ...
{ "repo_name": "selboo/starl-mangle", "path": "webvirtmgr/newvm/views.py", "copies": "1", "size": "5368", "license": "apache-2.0", "hash": -1769408539188397300, "line_mean": 44.4915254237, "line_max": 112, "alpha_frac": 0.4517511177, "autogenerated": false, "ratio": 5.097815764482431, "config_te...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from libvirt import libvirtError from instance.models import Host, Instance from webvirtmgr.server import ConnServer import re def console(request, host_id, vname): """ VNC ...
{ "repo_name": "selboo/starl-mangle", "path": "webvirtmgr/console/views.py", "copies": "1", "size": "1504", "license": "apache-2.0", "hash": 7020770124923542000, "line_mean": 29.693877551, "line_max": 78, "alpha_frac": 0.5385638298, "autogenerated": false, "ratio": 4.744479495268139, "config_tes...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from sam.models import SiteImage, Tag, Comment, Post from django.db.models import Q from sam.forms.tag_filter import TagFilterForm from sam.forms.contact import ContactForm from django...
{ "repo_name": "samolds/samster", "path": "sam/views/art.py", "copies": "1", "size": "8247", "license": "mit", "hash": 8678061314238274000, "line_mean": 34.7012987013, "line_max": 123, "alpha_frac": 0.5184915727, "autogenerated": false, "ratio": 4.127627627627628, "config_test": false, "has_no...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.contrib.auth.decorators import login_required from notification.models import NoticeSetting, NoticeType, NOTICE_MEDIA @login_required def notice_settings(request): ...
{ "repo_name": "affan2/django-notification", "path": "notification/views.py", "copies": "1", "size": "2481", "license": "mit", "hash": -6321692344725219000, "line_mean": 37.765625, "line_max": 89, "alpha_frac": 0.6174929464, "autogenerated": false, "ratio": 4.307291666666667, "config_test": fals...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from google.appengine.api import users import logging class Authentication(object): ADMIN_EMAIL = 'hexvector@gmail.com' # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # authenticate admin # ~~~~...
{ "repo_name": "codecollision/Gamedex-Backend", "path": "gamedex/authentication.py", "copies": "1", "size": "1340", "license": "bsd-3-clause", "hash": 7845270748271623000, "line_mean": 28.7777777778, "line_max": 75, "alpha_frac": 0.4992537313, "autogenerated": false, "ratio": 5.654008438818566, ...
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from sb_demo.models import Comment from djangobayes.filter import filter def index(request): """ Display all comments to date. """ return render_to_response('comments.html', \ {'comments':...
{ "repo_name": "waylan/django-spambayes", "path": "sb_demo/views.py", "copies": "2", "size": "1719", "license": "bsd-3-clause", "hash": 9066497021381323000, "line_mean": 33.38, "line_max": 68, "alpha_frac": 0.5567190227, "autogenerated": false, "ratio": 4.30827067669173, "config_test": false, ...
from django.shortcuts import render_to_response from django.http.response import HttpResponse, HttpResponseBadRequest, \ HttpResponseServerError, HttpResponseRedirect, HttpResponseRedirectBase from json import dumps from re import compile, sub # Views def main_page(request): return render_to_response('django_...
{ "repo_name": "csparpa/django-httpbin", "path": "django_httpbin/httpbin/views.py", "copies": "1", "size": "3161", "license": "mit", "hash": 1938631490405746700, "line_mean": 30.9393939394, "line_max": 89, "alpha_frac": 0.648212591, "autogenerated": false, "ratio": 3.8084337349397592, "config_te...
from django.shortcuts import render_to_response from django import forms from django import VERSION as DJANGO_VERSION from django.template import RequestContext from django.db.models import signals as signalmodule from django.http import HttpResponse from django.conf import settings from django.core.serializers.json im...
{ "repo_name": "artscoop/django-annoying", "path": "annoying/decorators.py", "copies": "1", "size": "7997", "license": "bsd-3-clause", "hash": -888341171616717400, "line_mean": 31.5081300813, "line_max": 107, "alpha_frac": 0.6058521946, "autogenerated": false, "ratio": 4.455153203342618, "config...
from django.shortcuts import render_to_response from django import forms from django.template import RequestContext from django.db.models import signals as signalmodule from django.http import HttpResponse from django.utils import simplejson __all__ = ['render_to', 'signals', 'ajax_request', 'autostrip'] try: fr...
{ "repo_name": "educreations/django-annoying", "path": "annoying/decorators.py", "copies": "3", "size": "5827", "license": "bsd-3-clause", "hash": 1282757916241275600, "line_mean": 29.0360824742, "line_max": 111, "alpha_frac": 0.6073451176, "autogenerated": false, "ratio": 4.4996138996139, "conf...
from django.shortcuts import render_to_response from django import http from horizon import views from horizon import tabs from .tabs import MonitorTabs from .tables import MonitorTable #from openstack_dashboard import api from horizon import api import os import whisper import time import utils class MonitoredDom...
{ "repo_name": "arunpn123/cloudmon", "path": "src/horizon_monitor/ubuntu/horizon/dashboards/nova/monitor/views.py", "copies": "1", "size": "4753", "license": "mit", "hash": 5878114732641353000, "line_mean": 30.2697368421, "line_max": 89, "alpha_frac": 0.5817378498, "autogenerated": false, "ratio":...
from django.shortcuts import render_to_response from django import template from django import forms from django.utils.functional import update_wrapper from django.contrib import admin from django.http import HttpResponseRedirect from django.contrib.admin.util import unquote from django.core.exceptions import Permissio...
{ "repo_name": "philippbosch/django-campaign", "path": "campaign/admin.py", "copies": "1", "size": "4221", "license": "bsd-3-clause", "hash": 2740543617315310000, "line_mean": 37.7247706422, "line_max": 233, "alpha_frac": 0.6114664771, "autogenerated": false, "ratio": 4.1958250497017895, "config...
from django.shortcuts import render_to_response from django import template from django import forms try: from django.utils.functional import update_wrapper except ImportError: from functools import update_wrapper from django.conf.urls import patterns, url from django.conf import settings from django.contrib im...
{ "repo_name": "hbielenia/django-campaign", "path": "campaign/admin.py", "copies": "1", "size": "5190", "license": "bsd-3-clause", "hash": -3247348997747612700, "line_mean": 36.0714285714, "line_max": 219, "alpha_frac": 0.6375722543, "autogenerated": false, "ratio": 4.086614173228346, "config_te...