text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from . import pcap_analyse from . import pcap_settings from .forms import EditSettingsForm import os # Create your views here. def home(request): ...
{ "repo_name": "mohsenSy/web-pcap-reader", "path": "pcap_main/views.py", "copies": "1", "size": "1689", "license": "mit", "hash": -9024991188879135000, "line_mean": 29.7090909091, "line_max": 87, "alpha_frac": 0.6619301362, "autogenerated": false, "ratio": 3.5859872611464967, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound from django.shortcuts import get_object_or_404 import json, urllib from models import Page from django.shortcuts import render_to_response from django.template import RequestContext def index(request): return render(requ...
{ "repo_name": "Teknologforeningen/tf-info", "path": "manager/views.py", "copies": "2", "size": "1742", "license": "bsd-3-clause", "hash": -8720268193671867000, "line_mean": 34.5510204082, "line_max": 131, "alpha_frac": 0.6842709529, "autogenerated": false, "ratio": 3.690677966101695, "config_te...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound from django.template import loader from .models import Challenge from .models import User from .models import Event from .models import Submission from pprint import pprint def index(request): template = loader.get_templ...
{ "repo_name": "lupino22/hacksict", "path": "web/views.py", "copies": "1", "size": "2259", "license": "mit", "hash": 3979899266506017000, "line_mean": 27.9615384615, "line_max": 114, "alpha_frac": 0.6715360779, "autogenerated": false, "ratio": 4.012433392539965, "config_test": false, "has_no_k...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound #from django.template.loader import get_template #from django.template import Context from models import signup from django.http import HttpResponseRedirect from django.core.context_processors import csrf from django.contrib ...
{ "repo_name": "Rahul91/Django_IPL", "path": "signups/views.py", "copies": "1", "size": "2765", "license": "mit", "hash": 3438425368156829000, "line_mean": 24.8411214953, "line_max": 69, "alpha_frac": 0.6983725136, "autogenerated": false, "ratio": 3.3555825242718447, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.core import serializers from django.core.urlresolvers import reverse from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contr...
{ "repo_name": "drfrink/adminLTE_Django", "path": "loginManager/views.py", "copies": "1", "size": "4752", "license": "mit", "hash": 4003033868867201500, "line_mean": 33.4420289855, "line_max": 124, "alpha_frac": 0.7081228956, "autogenerated": false, "ratio": 3.26149622512011, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.core.urlresolvers import reverse from django.views import generic from django.contrib.auth.models import User from random import randrange from django.views.decorators.csrf import csrf_exempt from reac...
{ "repo_name": "bkbolte181/SongDump", "path": "songdump_django/songdump_django/views.py", "copies": "1", "size": "5274", "license": "mit", "hash": 1913867300771157200, "line_mean": 32.3860759494, "line_max": 149, "alpha_frac": 0.6964353432, "autogenerated": false, "ratio": 3.213893967093236, "co...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.utils import timezone from django.contrib import messages from django.contrib.auth.decorators import login_required from company.models import Company, Job, JobLocation, Attachment, Branch from consent.m...
{ "repo_name": "aakashrana1995/svnit-tnp", "path": "tnp/company/views.py", "copies": "1", "size": "10875", "license": "mit", "hash": -5804468696964633000, "line_mean": 39.5820895522, "line_max": 115, "alpha_frac": 0.5935632184, "autogenerated": false, "ratio": 3.875623663578047, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.views.generic.base import TemplateView from django.views.generic.edit import FormView from django.views.generic.detail import DetailView, BaseDetailView, \ SingleObjectTemplateResponseMixin from djang...
{ "repo_name": "sbnoemi/notorhot", "path": "notorhot/views.py", "copies": "1", "size": "7317", "license": "bsd-3-clause", "hash": -6497607716583304000, "line_mean": 35.59, "line_max": 81, "alpha_frac": 0.6365996993, "autogenerated": false, "ratio": 4.266472303206997, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from JobEntry import JobEntry, SubJobEntry import pickle from models import JobRecord import socket import json from dwolla import DwollaUser def job_submit(request): #save file into object file number_of_r...
{ "repo_name": "eddies5/morpheus-web", "path": "morpheus/views.py", "copies": "1", "size": "4558", "license": "apache-2.0", "hash": 5578554143711562000, "line_mean": 29.3866666667, "line_max": 87, "alpha_frac": 0.5873189996, "autogenerated": false, "ratio": 3.5498442367601246, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from qa.models import Question, Answer from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from qa.forms import AskForm, AnswerForm, SignupForm, LoginForm from django.core....
{ "repo_name": "ArterialThroumbus/stepic_web_technology_practice", "path": "ask/qa/views.py", "copies": "1", "size": "4739", "license": "mpl-2.0", "hash": 2754466585910073300, "line_mean": 28.9936708861, "line_max": 75, "alpha_frac": 0.5703734965, "autogenerated": false, "ratio": 3.962374581939799...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.template import RequestContext, loader from myblog.models import Post # Create your views here. def stub_view(request, *args, **kwargs): body = "Stub View\n\n" if args: body += "Args:\...
{ "repo_name": "robalford/reConstruct", "path": "myblog/views.py", "copies": "1", "size": "1047", "license": "bsd-3-clause", "hash": 47539336476427016, "line_mean": 30.7575757576, "line_max": 67, "alpha_frac": 0.6571155683, "autogenerated": false, "ratio": 3.597938144329897, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden from django.views import generic from django.shortcuts import get_object_or_404 from models import ImagrUser, Photo, Album from django.contrib.auth.decorators import login_required import random from dj...
{ "repo_name": "charlieRode/django-imagr", "path": "imagr_site/imagr_app/views.py", "copies": "1", "size": "7231", "license": "mit", "hash": 1949540939787137800, "line_mean": 36.0820512821, "line_max": 114, "alpha_frac": 0.6432028765, "autogenerated": false, "ratio": 3.7958005249343834, "config_...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect, HttpResponseNotFound from django.core.urlresolvers import reverse from .models import File,FileForm,PasswordForm import os import os.path import sys from fnmatch import fnmatch from django.contrib import messages import webbr...
{ "repo_name": "shravan097/Mero-Home-Cloud", "path": "homeserver/cloud/views.py", "copies": "1", "size": "5642", "license": "mit", "hash": 2997122588422675500, "line_mean": 32.3846153846, "line_max": 115, "alpha_frac": 0.6315136476, "autogenerated": false, "ratio": 3.8302783435166328, "config_te...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.contrib.auth import authenticate, login from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm from django.contrib.auth.decorators import login_required from .models import...
{ "repo_name": "hiteshgarg14/Django-Social-Website", "path": "bookmarks/account/views.py", "copies": "1", "size": "4816", "license": "mit", "hash": 2609571851991252000, "line_mean": 40.8782608696, "line_max": 108, "alpha_frac": 0.6499169435, "autogenerated": false, "ratio": 4.243171806167401, "c...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.shortcuts import render_to_response from django.views.decorators.csrf import csrf_exempt, csrf_protect from django.template import RequestContext from django.utils.translation import ugettext_lazy as...
{ "repo_name": "eduardolujan/trainning_site", "path": "trainning_site/trainning_site/apps/trainning/views.py", "copies": "1", "size": "1725", "license": "mit", "hash": 8342597282885207000, "line_mean": 21.4025974026, "line_max": 72, "alpha_frac": 0.7310144928, "autogenerated": false, "ratio": 3.47...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.urls import reverse from django.views import generic from django.conf import settings from django.views.decorators.csrf import csrf_exempt from django.utils import timezone from django.core import se...
{ "repo_name": "slop3n/bachelors_degree", "path": "tensorflow_api/views.py", "copies": "1", "size": "2310", "license": "apache-2.0", "hash": 6113250412355512000, "line_mean": 39.5263157895, "line_max": 130, "alpha_frac": 0.7562770563, "autogenerated": false, "ratio": 3.672496025437202, "config_t...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from ash.forms import LoginForm, RegisterForm from ash.models import* from ash.models import Creditors, DebtForm, Debtors,Task, TaskForm from django.db.models import Sum from django.contrib.auth.models import User, Group from...
{ "repo_name": "Ashaba/jash", "path": "ash/views.py", "copies": "1", "size": "9244", "license": "bsd-2-clause", "hash": 3427112474834451000, "line_mean": 33.8867924528, "line_max": 90, "alpha_frac": 0.734422328, "autogenerated": false, "ratio": 3.3873213631366803, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.conf import settings from django import forms from django.db.models import Count, Min, Sum, Avg, Q from django.utils.text import slugify from django.core.cache import cache from django.views.decorators.cache impor...
{ "repo_name": "protwis/protwis", "path": "interaction/views.py", "copies": "1", "size": "59059", "license": "apache-2.0", "hash": 3945431306707526700, "line_mean": 47.448728466, "line_max": 250, "alpha_frac": 0.5624375624, "autogenerated": false, "ratio": 4.176732673267327, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.conf import settings from django.template import loader from gatekeeper.openstack import Openstack from django.views.decorators.csrf import csrf_exempt from gatekeeper.user import User from gatekeeper.utils import...
{ "repo_name": "AfricanResearchCloud/gatekeeper", "path": "onboarding/views.py", "copies": "1", "size": "3919", "license": "mit", "hash": -1336550063713239000, "line_mean": 44.0459770115, "line_max": 338, "alpha_frac": 0.7504465425, "autogenerated": false, "ratio": 3.582266910420475, "config_tes...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from apps.users.models import Staff from django.shortcuts import get_object_or_404 # Create your views here. @login_required def profile(request, username): # re...
{ "repo_name": "andela-bojengwa/reportr", "path": "apps/users/views.py", "copies": "2", "size": "1048", "license": "mit", "hash": 2658112701681486000, "line_mean": 26.6052631579, "line_max": 64, "alpha_frac": 0.7414122137, "autogenerated": false, "ratio": 3.783393501805054, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate, login, logout import estore.queries as queries def login_user(request): context = {} logout(request) username = passw...
{ "repo_name": "sidmanu/EGBangalore", "path": "estore/views.py", "copies": "1", "size": "1537", "license": "apache-2.0", "hash": -1272609062718354400, "line_mean": 26.9454545455, "line_max": 59, "alpha_frac": 0.7319453481, "autogenerated": false, "ratio": 3.326839826839827, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User, Group, Permission from users.models import UserProfile, UserForm, UserProfileForm from reports.models import Report, Repor...
{ "repo_name": "mas2tg/cs3240-f16-team07", "path": "safecollab/views.py", "copies": "1", "size": "7877", "license": "mit", "hash": 2949240075961914400, "line_mean": 39.1887755102, "line_max": 107, "alpha_frac": 0.6893487368, "autogenerated": false, "ratio": 3.3377118644067796, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.template import RequestContext from django.contrib.auth import authenticate, logout as auth_logout, login as auth_login from library.models import Student ...
{ "repo_name": "DreamN/Smart-Library", "path": "smart_library/views.py", "copies": "1", "size": "2316", "license": "mit", "hash": 6775471104367503000, "line_mean": 35.1875, "line_max": 88, "alpha_frac": 0.6204663212, "autogenerated": false, "ratio": 4.550098231827112, "config_test": false, "ha...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.urls import reverse from .forms import CmdForm from .cmdtext import CmdText, Command, Response from slurmui.views import get_default_context, perform_logo...
{ "repo_name": "t-mertz/slurmCompanion", "path": "django-web/webcmd/views.py", "copies": "1", "size": "6198", "license": "mit", "hash": -339199248314517100, "line_mean": 31.6263157895, "line_max": 95, "alpha_frac": 0.5734107777, "autogenerated": false, "ratio": 4.30117973629424, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from .forms import AccountForm from .models import Book, Order, ShopCart, OrderBookRelation, Account, Comment from django.utils import timezone from django.contrib.aut...
{ "repo_name": "halfopen/OnlineBookshop", "path": "Bookshop/views.py", "copies": "1", "size": "4239", "license": "apache-2.0", "hash": 9131488543381045000, "line_mean": 37.5363636364, "line_max": 114, "alpha_frac": 0.6459070536, "autogenerated": false, "ratio": 3.857142857142857, "config_test": ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from pyday_calendar.forms import CreateEventForm from django.views.generic import View from pyday.views import UploadView from django.utils.decorators import method_de...
{ "repo_name": "6desislava6/PyDay", "path": "pyday_calendar/views.py", "copies": "1", "size": "4707", "license": "mit", "hash": -695293192926897900, "line_mean": 39.8771929825, "line_max": 104, "alpha_frac": 0.6173819742, "autogenerated": false, "ratio": 4.142222222222222, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import permission_required from django import forms from datetime import datetime from mediaman.models import ArtefactRepresentation, Document from cat.models import MuseumObject from parti...
{ "repo_name": "uq-eresearch/uqam", "path": "mediaman/views.py", "copies": "1", "size": "6709", "license": "bsd-3-clause", "hash": 1397931035866424000, "line_mean": 31.2548076923, "line_max": 118, "alpha_frac": 0.6398867193, "autogenerated": false, "ratio": 3.686263736263736, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import user_passes_test from django.contrib.auth.decorators import login_required from django.contrib import messages from django.utils import timezone from datetime import datetime from .m...
{ "repo_name": "BartoszMakowski/typer", "path": "typer/core/views.py", "copies": "1", "size": "7191", "license": "apache-2.0", "hash": -7501122664035687000, "line_mean": 36.7263157895, "line_max": 118, "alpha_frac": 0.6038788894, "autogenerated": false, "ratio": 3.5817091454272862, "config_test"...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.forms import UserCreationForm from django.template import loader, RequestContext from name_gen_app.models import NGram import pickle import name_generator # Load with open('ngrams/unigram_counts.pic...
{ "repo_name": "david-abel/name_generator", "path": "name_gen_app/views.py", "copies": "1", "size": "1198", "license": "mit", "hash": 2831135755728511500, "line_mean": 36.46875, "line_max": 139, "alpha_frac": 0.7420701169, "autogenerated": false, "ratio": 3.502923976608187, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout as django_logout from django.contrib.auth.models import User from .models import Author from django.contrib.auth.decorators import login_required from authors.forms ...
{ "repo_name": "CMPUT404Proj/CMPUT404-project-socialdistribution", "path": "social_dist/authors/views.py", "copies": "1", "size": "2782", "license": "apache-2.0", "hash": -6630379665562097000, "line_mean": 29.9222222222, "line_max": 100, "alpha_frac": 0.7411933861, "autogenerated": false, "ratio":...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt import logging import json from compiler import xml_co...
{ "repo_name": "bulletshot60/primer-web", "path": "blockly/views.py", "copies": "1", "size": "4432", "license": "mit", "hash": 4263748064849987000, "line_mean": 32.5833333333, "line_max": 167, "alpha_frac": 0.7186371841, "autogenerated": false, "ratio": 3.2588235294117647, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from .forms import UserForm from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.urlresolvers import revers...
{ "repo_name": "j-windsor/iRiot-WebApp", "path": "accounts/views.py", "copies": "1", "size": "4306", "license": "mit", "hash": 2148288992914523000, "line_mean": 42.4949494949, "line_max": 105, "alpha_frac": 0.6509521598, "autogenerated": false, "ratio": 4.706010928961748, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout import pygeoip from bugform.forms import BugForm, AdminForm, SimpleTable, SearchForm, EditForm from bugform.models import BugModel, AdminModel import django_tables2 ...
{ "repo_name": "Niharika29/bugtracker", "path": "bugtracker/bugform/views.py", "copies": "1", "size": "3271", "license": "mit", "hash": 2986756281484962300, "line_mean": 28.4684684685, "line_max": 79, "alpha_frac": 0.7016202996, "autogenerated": false, "ratio": 3.1665053242981607, "config_test":...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from .models import Learner, Coach from .tools_queue import Queue # The index page for the web-app def index(request):...
{ "repo_name": "sohamkor/TeachMeWebApp", "path": "TeachMe_Webapp/teachingMainApp/views.py", "copies": "1", "size": "21384", "license": "mit", "hash": 2388559162829083600, "line_mean": 39.4234404537, "line_max": 185, "alpha_frac": 0.7152543958, "autogenerated": false, "ratio": 4.194586112200863, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate from django.contrib.auth.models import Group import pprint as pp from .forms import GroupForm from django.contrib.auth.models import Group def index(request): all_groups = G...
{ "repo_name": "ruslan2k/public-files", "path": "python/04-django/polls/views.py", "copies": "1", "size": "1138", "license": "apache-2.0", "hash": -2039307338877518800, "line_mean": 31.5142857143, "line_max": 76, "alpha_frac": 0.6555360281, "autogenerated": false, "ratio": 3.992982456140351, "co...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.core.files import File from django.views.decorators.clickj...
{ "repo_name": "sirmmo/squalo", "path": "squalo_core/views.py", "copies": "1", "size": "9171", "license": "mit", "hash": -6888440803482313000, "line_mean": 31.6370106762, "line_max": 502, "alpha_frac": 0.6433322429, "autogenerated": false, "ratio": 2.8088820826952525, "config_test": false, "ha...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from registration.backends.simple.views import RegistrationView...
{ "repo_name": "smhilde/dhhd_project", "path": "dhhd/dhhd/views.py", "copies": "1", "size": "2295", "license": "apache-2.0", "hash": -7522458670135762000, "line_mean": 37.25, "line_max": 96, "alpha_frac": 0.7363834423, "autogenerated": false, "ratio": 3.246110325318246, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from django.template import RequestContext from django.contrib.auth import authenticate, login, logout from django.core.urlresolvers import reverse from django.shortcuts import red...
{ "repo_name": "leifos/treconomics", "path": "treconomics_project/treconomics/views.py", "copies": "1", "size": "20576", "license": "mit", "hash": 948333226957964200, "line_mean": 32.5660685155, "line_max": 116, "alpha_frac": 0.6563472006, "autogenerated": false, "ratio": 3.9080721747388414, "co...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib import auth from django.core.context_processors import csrf from django.template.loader import get_template # Create your views here. def login(request): c = {} c.update(csrf(request)) return render(re...
{ "repo_name": "mayc2/eMHub", "path": "accounts/views.py", "copies": "1", "size": "1063", "license": "mit", "hash": -2508613941145534500, "line_mean": 27, "line_max": 63, "alpha_frac": 0.7582314205, "autogenerated": false, "ratio": 3.5433333333333334, "config_test": false, "has_no_keywords": f...
# from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from django.shortcuts import render_to_response, render from django import forms from .models import Images, Events from .forms import PhotoForm, EventsForm, RegisterForm from d...
{ "repo_name": "darshanime/vesta", "path": "community/views.py", "copies": "1", "size": "2911", "license": "mit", "hash": -3965005635903756300, "line_mean": 34.950617284, "line_max": 128, "alpha_frac": 0.6544142906, "autogenerated": false, "ratio": 3.982216142270862, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from django.utils import timezone from django.views.decorators.csrf import csrf_exempt from webflower.models import FlowerPiAddress import pyjsonrpc from urllib2 import URLError ...
{ "repo_name": "sheinz/webflower", "path": "webflower/views.py", "copies": "1", "size": "1706", "license": "mit", "hash": 1474331943834003500, "line_mean": 28.9298245614, "line_max": 73, "alpha_frac": 0.6799531067, "autogenerated": false, "ratio": 3.8165548098434003, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from .forms import PostForm from tutorial.outlookservice import get_my_messages, send_my_message from tutorial.authhelper import get_signin_url, get_token_from_code, get_user_email...
{ "repo_name": "ossim/lately", "path": "python_tutorial/tutorial/views.py", "copies": "1", "size": "6120", "license": "mit", "hash": -7914661623858769000, "line_mean": 48.3548387097, "line_max": 674, "alpha_frac": 0.6464052288, "autogenerated": false, "ratio": 3.430493273542601, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from tutorial.authhelper import get_signin_url, get_token_from_code, get_user_email_from_id_token from tutorial.outlookservice import get_my_events, get_my_messages, get_my_contact...
{ "repo_name": "spectrumone/django-outlook-api", "path": "python_tutorial/tutorial/views.py", "copies": "1", "size": "2369", "license": "mit", "hash": 3984251768793484000, "line_mean": 36.015625, "line_max": 100, "alpha_frac": 0.7032503166, "autogenerated": false, "ratio": 3.935215946843854, "co...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse # Create your views here. from easycart import BaseCart, BaseItem from Produkte.models import Produkt from accounts.models import Kauf from Grundgeruest.views import erstelle_lis...
{ "repo_name": "wmles/scholarium", "path": "warenkorb/views.py", "copies": "1", "size": "1724", "license": "bsd-2-clause", "hash": -2552755821382226400, "line_mean": 30.3272727273, "line_max": 80, "alpha_frac": 0.6831108532, "autogenerated": false, "ratio": 2.9302721088435373, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.core.urlresolvers import reverse from django.db.models import Sum, Count from django.utils import timezone from .models import Expense from .forms import ExpenseForm def index(request): if request.method == '...
{ "repo_name": "maths22/daily-expenses", "path": "expenses/views.py", "copies": "1", "size": "1059", "license": "bsd-2-clause", "hash": 1938421836193980700, "line_mean": 36.8214285714, "line_max": 123, "alpha_frac": 0.6912181303, "autogenerated": false, "ratio": 4.026615969581749, "config_test":...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from .models import Puzzle, Solution from .forms import SolutionForm # Create your views here. def index(request): if request.method == 'POST': form = SolutionForm(re...
{ "repo_name": "dapperaeronaut/puzzle-submission", "path": "solutions/views.py", "copies": "1", "size": "1179", "license": "mit", "hash": -1047422162719175300, "line_mean": 33.6764705882, "line_max": 70, "alpha_frac": 0.5411365564, "autogenerated": false, "ratio": 4.432330827067669, "config_test...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse import urllib.request import json import requests from .forms import * # Version 2 Code ######################## def home_page(request): return render(request, 'homepage....
{ "repo_name": "Charleo85/SIS-Rebuild", "path": "webv2/web/views.py", "copies": "1", "size": "10251", "license": "bsd-3-clause", "hash": 2847316971742092000, "line_mean": 34.59375, "line_max": 90, "alpha_frac": 0.5851136474, "autogenerated": false, "ratio": 3.3676084099868593, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse import urllib.request import json from .forms import * def _make_get_request(url): req = urllib.request.Request(url) resp_json = urllib.request.urlopen(req).read().deco...
{ "repo_name": "Charleo85/SIS-Rebuild", "path": "web/web/views.py", "copies": "1", "size": "9082", "license": "bsd-3-clause", "hash": 2168152917535298300, "line_mean": 33.7969348659, "line_max": 88, "alpha_frac": 0.6046025105, "autogenerated": false, "ratio": 3.7653399668325043, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.core.urlresolvers import reverse,resolve from django import forms from django.conf import settings from django import http from django.shortcuts import redirect from django.views import generic from rq import Queu...
{ "repo_name": "jonderwaater/stravasmooth", "path": "smoothify/views.py", "copies": "2", "size": "7205", "license": "apache-2.0", "hash": -7862563981641544000, "line_mean": 29.9227467811, "line_max": 382, "alpha_frac": 0.6777238029, "autogenerated": false, "ratio": 3.706275720164609, "config_tes...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.http import JsonResponse from urllib.parse import urlparse # from urlparse import urlparse # for sending requests and parsing response import requests from bs4 import BeautifulSoup # for extracting keywords from...
{ "repo_name": "kaustubhhiware/c0derunR", "path": "coyote/views.py", "copies": "1", "size": "4246", "license": "mit", "hash": -8586281566592706000, "line_mean": 32.4330708661, "line_max": 97, "alpha_frac": 0.5426283561, "autogenerated": false, "ratio": 4.263052208835341, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib import auth def index(request): return render(request, "caproy/index.html", {'signed_in': request.user.is_authenticated...
{ "repo_name": "gazfm/CaptureRoyaleTestServer", "path": "caproy/views.py", "copies": "1", "size": "1741", "license": "apache-2.0", "hash": -516778897261059400, "line_mean": 31.8490566038, "line_max": 95, "alpha_frac": 0.6553704767, "autogenerated": false, "ratio": 3.868888888888889, "config_test...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django import forms from django.core.exceptions import ValidationError from hyquest.models import Task, Branch, Story # This generates the form that allow TimeMap-based Tasks to be created class TimeMapTaskForm(forms....
{ "repo_name": "Edmonton-Public-Library/centennial", "path": "hyquest/taskeditors/timemaptask.py", "copies": "1", "size": "4740", "license": "mit", "hash": 8929631185127300000, "line_mean": 46.4, "line_max": 121, "alpha_frac": 0.6200421941, "autogenerated": false, "ratio": 4.132519616390584, "co...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django import forms from hyquest.models import Task from timemap.models import Story # This generates the form that allows social task creation class SocialTaskForm(forms.Form): task_id = forms.CharField(widget=fo...
{ "repo_name": "Edmonton-Public-Library/centennial", "path": "hyquest/taskeditors/socialtask.py", "copies": "1", "size": "1419", "license": "mit", "hash": 8227809756871404000, "line_mean": 40.7352941176, "line_max": 109, "alpha_frac": 0.6638477801, "autogenerated": false, "ratio": 3.88767123287671...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django import forms import random from hyquest.models import Task, TaskCode # This generates the Form that allows for Task Code Generation class CodeGenForm(forms.Form): task_id = forms.CharField(widget=forms.Hid...
{ "repo_name": "Edmonton-Public-Library/centennial", "path": "hyquest/taskeditors/codegeneration.py", "copies": "1", "size": "1902", "license": "mit", "hash": 8975886229385971000, "line_mean": 40.347826087, "line_max": 149, "alpha_frac": 0.6855941115, "autogenerated": false, "ratio": 3.60227272727...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.urls import reverse import logging import jsonpickle from django.utils.datastructures import MultiValueDictKeyError logger = logging.getLogger(__name__) from .mode...
{ "repo_name": "tms1337/polls-app", "path": "polls/views.py", "copies": "1", "size": "1788", "license": "mit", "hash": 1700800963207085000, "line_mean": 29.3050847458, "line_max": 85, "alpha_frac": 0.6812080537, "autogenerated": false, "ratio": 3.9210526315789473, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.shortcuts import render,render_to_response from django.template import RequestContext from rango.models import Category,Page,UserProfile,User from rango.forms import CategoryForm,PageForm,UserProfileForm,UserForm,L...
{ "repo_name": "PJEstrada/rango", "path": "tango_with_django_project/rango/views.py", "copies": "1", "size": "13419", "license": "mit", "hash": 5316027515257766000, "line_mean": 35.4673913043, "line_max": 136, "alpha_frac": 0.6332811685, "autogenerated": false, "ratio": 4.1099540581929555, "conf...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.core.urlresolvers import reverse from .models import Movie from django.contrib.auth import logout from ...
{ "repo_name": "pronoobs/elastic-hack", "path": "lmdb/home/views.py", "copies": "1", "size": "5094", "license": "mit", "hash": 7904262872124697000, "line_mean": 31.864516129, "line_max": 136, "alpha_frac": 0.5932469572, "autogenerated": false, "ratio": 3.7986577181208054, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext, loader from django.forms.models import model_to_dict from django.forms.utils import ErrorList from django.core.context_processors imp...
{ "repo_name": "chaosphere2112/acme-web-fe", "path": "apps/web_fe/views.py", "copies": "1", "size": "31145", "license": "apache-2.0", "hash": -4065025423010140000, "line_mean": 35.4269005848, "line_max": 163, "alpha_frac": 0.5412104672, "autogenerated": false, "ratio": 4.3353285077951, "config_t...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.core import urlresolvers from django.contrib import messages import datetime import settings from models import Question,...
{ "repo_name": "dmallcott/C-Nutra", "path": "c_nutra/apps/surveys/views.py", "copies": "1", "size": "1426", "license": "mit", "hash": 6551173153610003000, "line_mean": 32.9523809524, "line_max": 115, "alpha_frac": 0.7349228612, "autogenerated": false, "ratio": 3.8128342245989306, "config_test": ...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.template import loader from django.conf import settings from django.views.generic import DetailView from django.views.generic.edit import UpdateView from django.db.models import Q #from django.urls import reverse f...
{ "repo_name": "hypercott/django-feral-cat-tracker", "path": "views.py", "copies": "1", "size": "2504", "license": "mit", "hash": -9181897085944635000, "line_mean": 32.3866666667, "line_max": 80, "alpha_frac": 0.6733226837, "autogenerated": false, "ratio": 3.799696509863429, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import loader from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.conf import settings from django.core.urlresolvers import reverse from .mode...
{ "repo_name": "sachabest/cis599", "path": "web/dashboard/views.py", "copies": "1", "size": "7123", "license": "mit", "hash": 4848827725715259000, "line_mean": 38.1428571429, "line_max": 106, "alpha_frac": 0.6525340446, "autogenerated": false, "ratio": 3.8502702702702702, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext, loader, Context from django.contrib.auth.models import User from django.contrib.auth import authenticate, login from django.core.files import File from django.core.files.base import...
{ "repo_name": "TCDocProc/arch", "path": "app/openemr/views.py", "copies": "1", "size": "2157", "license": "mit", "hash": -6403192380628148000, "line_mean": 33.7903225806, "line_max": 94, "alpha_frac": 0.6328233658, "autogenerated": false, "ratio": 4.550632911392405, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext, loader from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth import authenticate, login from django.core.urlresolvers import rever...
{ "repo_name": "rednerrus/fiveLessons", "path": "lessonApp/views.py", "copies": "1", "size": "6141", "license": "mit", "hash": -8425263895301950000, "line_mean": 34.2931034483, "line_max": 87, "alpha_frac": 0.6427291972, "autogenerated": false, "ratio": 4.166214382632293, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext, loader # from django.views.decorators.csrf import csrf_protect from .models import User from .forms import registerUserForm, loginForm import os from CryptoModule import * import ...
{ "repo_name": "danifss/sar-1516-proj-g1", "path": "Broker/core/views.py", "copies": "1", "size": "17300", "license": "mit", "hash": -3763600141736892000, "line_mean": 37.963963964, "line_max": 126, "alpha_frac": 0.5701156069, "autogenerated": false, "ratio": 4.218483296756888, "config_test": fa...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext, loader from vericloud.models import File, VerificationRun, VerificationResult, FileHierarchy, Requirement, Limitation from django.core.files import File as Filez import hashlib # C...
{ "repo_name": "leutheus/VerificationProj", "path": "vericloud/views.py", "copies": "1", "size": "4577", "license": "mit", "hash": -9124360282101144000, "line_mean": 23.7405405405, "line_max": 110, "alpha_frac": 0.6204937732, "autogenerated": false, "ratio": 3.826923076923077, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.forms.models import modelformset_factory from django.contrib import messages import django_filters from rest_framework import filters from rest_framework import generics ...
{ "repo_name": "ThreeDRadio/playlists", "path": "backend/catalogue/views.py", "copies": "1", "size": "3470", "license": "mit", "hash": -4891771837991100000, "line_mean": 38.8850574713, "line_max": 121, "alpha_frac": 0.7242074928, "autogenerated": false, "ratio": 4.247246022031824, "config_test":...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from forms import NewZWaveControllerForm from models import ZWaveController from datetime import datetime from hotqueue import HotQueue import redis import json detectStatus = redi...
{ "repo_name": "anywonder/piGates", "path": "myGates/zwave/views.py", "copies": "1", "size": "1118", "license": "apache-2.0", "hash": -333604523398062400, "line_mean": 24.4090909091, "line_max": 98, "alpha_frac": 0.7397137746, "autogenerated": false, "ratio": 3.8551724137931034, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.template import Template, Context from django.conf import settings from django.core import serializers from django.template.loader import get_template from .tables import ClinicalTrialTable from .models import Co...
{ "repo_name": "adam2392/clinicaltrials", "path": "clinicalsearch/views.py", "copies": "1", "size": "10701", "license": "apache-2.0", "hash": 6355499868927176000, "line_mean": 33.4083601286, "line_max": 182, "alpha_frac": 0.6921783011, "autogenerated": false, "ratio": 2.9841048522030116, "config...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.urls import reverse from django.contrib.auth import authenticate, login ,logout from .models import * def index(request): return HttpResponse("Hello, world. You're at the polls index.") def homepage(request):...
{ "repo_name": "perfectionist02/Stock-Market-", "path": "market/views.py", "copies": "1", "size": "3405", "license": "mit", "hash": 5283830011287230000, "line_mean": 38.1379310345, "line_max": 125, "alpha_frac": 0.6387665198, "autogenerated": false, "ratio": 4.39922480620155, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.views.decorators.http import require_POST import pygraphviz as pgv from .models import Course def index(request): courses = Course.objects.all().order_by('id') context = {'courses': courses} return ...
{ "repo_name": "jailuthra/techtree", "path": "webapp/views.py", "copies": "1", "size": "1427", "license": "mit", "hash": 8121847740428450000, "line_mean": 27.54, "line_max": 78, "alpha_frac": 0.6355991591, "autogenerated": false, "ratio": 3.532178217821782, "config_test": false, "has_no_keywor...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.views.generic.detail import SingleObjectMixin from django.views.generic import TemplateView,ListView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic.detail import...
{ "repo_name": "fim/keymaker", "path": "keymaker/core/views.py", "copies": "1", "size": "6478", "license": "bsd-2-clause", "hash": -7111443586261701000, "line_mean": 28.9907407407, "line_max": 123, "alpha_frac": 0.6676443347, "autogenerated": false, "ratio": 4.136653895274585, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.views.generic import ListView, TemplateView, FormView, View from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic.detail import DetailView from django.contrib.auth.deco...
{ "repo_name": "lzh9102/ee-voting", "path": "voting/views.py", "copies": "1", "size": "10854", "license": "mit", "hash": 4035129984484796400, "line_mean": 35.4228187919, "line_max": 105, "alpha_frac": 0.6422517044, "autogenerated": false, "ratio": 3.975824175824176, "config_test": false, "has_...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .forms import ContactForm from django.core.mail import send_mail, BadHeaderError # Create your views heres def contact_page(request): if request.method == 'POST': form = ContactForm(request.POST) i...
{ "repo_name": "michaelshin/deepCellVision", "path": "contact_me/views.py", "copies": "1", "size": "1283", "license": "mit", "hash": 2939749254821471000, "line_mean": 35.6571428571, "line_max": 69, "alpha_frac": 0.6243180047, "autogenerated": false, "ratio": 4.20655737704918, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .forms import LoginForm, PartialLoginForm from signup.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.mail import send_mail, BadHeaderError, EmailMultiAlternatives from django.co...
{ "repo_name": "kdpisda/djangootp", "path": "login/views.py", "copies": "1", "size": "3088", "license": "apache-2.0", "hash": -4828691154252611000, "line_mean": 33.3222222222, "line_max": 79, "alpha_frac": 0.6638601036, "autogenerated": false, "ratio": 3.5494252873563217, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .forms import PostForm from .models import Author from comments.models import Comment from .models import Post from django.contrib.auth import get_user_model from django.utils import timezone from django.shortcuts import...
{ "repo_name": "CMPUT404Proj/CMPUT404-project-socialdistribution", "path": "social_dist/posts/views.py", "copies": "1", "size": "1940", "license": "apache-2.0", "hash": 554069788755157500, "line_mean": 30.2903225806, "line_max": 82, "alpha_frac": 0.7432989691, "autogenerated": false, "ratio": 3.44...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .forms import RegisterForm, PartialRegisterForm from .models import User from django.core.exceptions import ObjectDoesNotExist from django.core.mail import send_mail, BadHeaderError, EmailMultiAlternatives from django.co...
{ "repo_name": "kdpisda/djangootp", "path": "signup/views.py", "copies": "1", "size": "4968", "license": "apache-2.0", "hash": -8968131369955304000, "line_mean": 35.0072463768, "line_max": 110, "alpha_frac": 0.6702898551, "autogenerated": false, "ratio": 3.4838709677419355, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .models import Category, Product def home(request): return render(request, "ecommerce/home.html") def catalog(request): items = Product.objects.filter(featured=True, status=Product.ACTIVE) return render(...
{ "repo_name": "brady-vitrano/ecommerce-demo", "path": "ecommerce/views.py", "copies": "1", "size": "3046", "license": "apache-2.0", "hash": 6216697425872100000, "line_mean": 29.7676767677, "line_max": 105, "alpha_frac": 0.6195009849, "autogenerated": false, "ratio": 3.9609882964889467, "config_...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from .models import EkFile,Content from django.views.decorators.csrf import ensure_csrf_cookie from .serialize import serialize import json,os,shutil,zipfile from .extract import extractit from .deleteExtract import deleteit ...
{ "repo_name": "Skeletrox/usb-backend-pinut", "path": "views.py", "copies": "1", "size": "1770", "license": "apache-2.0", "hash": -7600480474141754000, "line_mean": 33.0384615385, "line_max": 84, "alpha_frac": 0.704519774, "autogenerated": false, "ratio": 3.6875, "config_test": false, "has_no_...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from myforms import SubmitForm # Form to get in URL def index(request): context = { 'title': "Add an image", 'form': SubmitForm() } return render(request, 'urlparser/index.html', context) # pro...
{ "repo_name": "roopunk/seenit-image-kitchen", "path": "urlparser/views.py", "copies": "1", "size": "1725", "license": "mit", "hash": -5308619372079549000, "line_mean": 30.9444444444, "line_max": 66, "alpha_frac": 0.4933333333, "autogenerated": false, "ratio": 4.400510204081633, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from rango.models import Category,Page from rango.forms import CategoryForm,PageForm,UserForm,UserProfileForm from django.contrib.auth import authenticate,login,logout from django.contrib.auth.decorators import login_required ...
{ "repo_name": "wangjie1492/tango_with_django_project", "path": "rango/views.py", "copies": "1", "size": "4102", "license": "apache-2.0", "hash": -3421310948334630400, "line_mean": 28.5179856115, "line_max": 78, "alpha_frac": 0.7228181375, "autogenerated": false, "ratio": 3.21978021978022, "conf...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from subs.forms import UserForm, UserProfileForm from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from uuid import uuid4 from django.contrib.auth.models imp...
{ "repo_name": "astonshane/Alien-Spoilers", "path": "alienspoilers/subs/oauthHelpers.py", "copies": "1", "size": "7504", "license": "mit", "hash": -3031280672155010600, "line_mean": 34.7333333333, "line_max": 109, "alpha_frac": 0.6436567164, "autogenerated": false, "ratio": 3.947396107311941, "c...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from urllib import urlencode import random, math, os, base64 import requests from . import utils from .forms import BPMPlaylistForm # Spotify API keys CLIENT_ID= '4df0271d6b1f4768a5bd929a13091e8b' CLIENT_SECRET = os.environ....
{ "repo_name": "mvpeng/bpm-playlists", "path": "bpm_playlists/views.py", "copies": "1", "size": "2925", "license": "mit", "hash": -5192683995283099000, "line_mean": 40.8, "line_max": 119, "alpha_frac": 0.6482051282, "autogenerated": false, "ratio": 3.9, "config_test": false, "has_no_keywords":...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from uuid import uuid4 from django.contrib.auth.models import User from subs.models import UserProfile, Event from django.utils import timezone import datetime import urllib import requests from subreddit import Subreddit imp...
{ "repo_name": "astonshane/Alien-Spoilers", "path": "alienspoilers/subs/renderings.py", "copies": "1", "size": "2004", "license": "mit", "hash": -7552910680419219000, "line_mean": 29.8307692308, "line_max": 111, "alpha_frac": 0.6776447106, "autogenerated": false, "ratio": 3.8098859315589353, "co...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect import json from search.models import Object from comment.models import Comment # Create your views here. def index(request,lat,lng): lat = float(lat) lng = float(lng) dis = .0038 MINlat = lat - dis MAXlat...
{ "repo_name": "meliora000/eb_django_app", "path": "django_eb/rest/views.py", "copies": "1", "size": "1443", "license": "mit", "hash": 3756974240624805000, "line_mean": 31.0888888889, "line_max": 130, "alpha_frac": 0.5460845461, "autogenerated": false, "ratio": 3.5024271844660193, "config_test":...
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect import json from users.models import USER from search.models import Object from models import Commenta,Hashtag # Create your views here. def index(request): return HttpResponse("comment index") def post(request): p...
{ "repo_name": "meliora000/eb_django_app", "path": "django_eb/comment/views.py", "copies": "1", "size": "1815", "license": "mit", "hash": -2646103149010982400, "line_mean": 30.8596491228, "line_max": 104, "alpha_frac": 0.6198347107, "autogenerated": false, "ratio": 3.7577639751552794, "config_te...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, redirect, get_object_or_404 from django.db import connection from django.contrib.auth.decorators import login_required from .forms import ItemForm, ItemFormMark from datetime import timed...
{ "repo_name": "CraigRhodes/fs_site", "path": "freesources/views.py", "copies": "1", "size": "4497", "license": "mit", "hash": 872691206969792500, "line_mean": 41.8285714286, "line_max": 253, "alpha_frac": 0.5977318212, "autogenerated": false, "ratio": 3.7196029776674937, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .models import Ingredient_Spec, Ignore_Words from objetos.models import Ingredient # Create your views here. def index(request): lista = Ingredient_Spec.objects.order_by('-Count')[:20] return render(request,'index.ht...
{ "repo_name": "chentr/silverplate", "path": "crawler/views.py", "copies": "1", "size": "1846", "license": "mit", "hash": 6126799103683656000, "line_mean": 26.552238806, "line_max": 75, "alpha_frac": 0.7351029252, "autogenerated": false, "ratio": 2.93015873015873, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect import onenote import bitbucket # sample repo_uuid = 3d316876-a913-4b20-b183-d57e919f96dc BASE_URL = "https://afternoon-waters-2404.herokuapp.com" # DEV_URL = "https://classnotes-varunagrawal.c9.io" # Create your views h...
{ "repo_name": "varunagrawal/ClassNotes", "path": "notes/views.py", "copies": "1", "size": "4070", "license": "mit", "hash": -8333237558703668000, "line_mean": 31.3015873016, "line_max": 218, "alpha_frac": 0.6668304668, "autogenerated": false, "ratio": 3.4608843537414966, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseServerError, HttpResponseRedirect, JsonResponse from django.views import generic from django.core.cache import cache import json import httplib import os import platform import datetime import time from .models import Movie, Booking...
{ "repo_name": "jstockall/microservices-docker-django", "path": "ui/views.py", "copies": "1", "size": "20123", "license": "apache-2.0", "hash": 8736413705297396000, "line_mean": 32.3162251656, "line_max": 127, "alpha_frac": 0.5913631168, "autogenerated": false, "ratio": 4.00776737701653, "config...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse, HttpRequest, QueryDict from pprint import pprint from fractions import * from decimal import * # Create your views here. def twoPhaseMethod(inputMatrix): def minimumRowRatioIndex(matrix, columnIndex): ratioList = [] ...
{ "repo_name": "DevChrisCross/TwoPhaseSimplexMethod", "path": "website/twophasemethod/views.py", "copies": "1", "size": "6686", "license": "mit", "hash": -8248497144438929000, "line_mean": 38.3294117647, "line_max": 133, "alpha_frac": 0.6168112474, "autogenerated": false, "ratio": 3.73937360178970...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from django.contrib.humanize.templatetags.humanize import naturaltime import redis from .models import Request def index(request): alert = {'exist': False, 'label...
{ "repo_name": "atrotors/raspstart", "path": "fuse/views.py", "copies": "1", "size": "1680", "license": "mit", "hash": 3095639135192095000, "line_mean": 27.9655172414, "line_max": 76, "alpha_frac": 0.6553571429, "autogenerated": false, "ratio": 3.6129032258064515, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse, HttpResponseRedirect from django.template.context_processors import csrf from common import post_required, login_required, redirect_if_loggedin, __redirect from .models import Party ## import device ## debugging from pprint import...
{ "repo_name": "amitdhiman000/dais", "path": "politics/views.py", "copies": "1", "size": "2604", "license": "apache-2.0", "hash": 9193651189050077000, "line_mean": 29.2906976744, "line_max": 82, "alpha_frac": 0.7411674347, "autogenerated": false, "ratio": 3.0963139120095127, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from app_restaurantes.models import Restaurante, Tapa from django.contrib.auth.decorators import login_required from django import forms from rest_framework.decorators import api_view from rest_framework.response import Response from...
{ "repo_name": "JCristobal/SSBW-gestion-restaurantes", "path": "Restaurantes/app_restaurantes/views.py", "copies": "1", "size": "3794", "license": "apache-2.0", "hash": 7432652730885476000, "line_mean": 23.1656050955, "line_max": 112, "alpha_frac": 0.7369530838, "autogenerated": false, "ratio": 3....
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from campaigns.models import Campaign from scrapers import KickstarterScraper, GoFundMeScraper COLORS = ['orange', 'purple', 'green', 'blue', 'red'] def example(request): scraper = KickstarterScraper projects = scraper.find...
{ "repo_name": "lorenanicole/almost_funded", "path": "campaigns/views.py", "copies": "1", "size": "3293", "license": "mit", "hash": -7540217048516025000, "line_mean": 31.94, "line_max": 148, "alpha_frac": 0.6711205588, "autogenerated": false, "ratio": 3.552319309600863, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.conf import settings from pan_parser import parse_pan from cloud_vision import cloud_api import time import json from django.views.decorators.csrf import csrf_exempt from .models import UserPoints, UserData from django.co...
{ "repo_name": "sumit12dec/instasleuth", "path": "instasleuth/instasleuth/views.py", "copies": "1", "size": "8097", "license": "mit", "hash": -4251969384802983400, "line_mean": 37.1933962264, "line_max": 114, "alpha_frac": 0.5749042855, "autogenerated": false, "ratio": 3.704025617566331, "config...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.conf import settings from pathlib import Path import mimetypes import json import opendata.px_reader as px def nullify_codes(px_doc, heading): try: return px_doc.codes[heading] except KeyError: re...
{ "repo_name": "jussiarpalahti/rematrix", "path": "server/statapp/views.py", "copies": "1", "size": "3318", "license": "mpl-2.0", "hash": 7075873154835488000, "line_mean": 22.7, "line_max": 88, "alpha_frac": 0.5898131404, "autogenerated": false, "ratio": 3.4526534859521334, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.template import Context, loader from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from django.urls import reverse from django.utils.http import unquote_plus # login_re...
{ "repo_name": "mingziV5/opsweb_test", "path": "dashboard/views.py", "copies": "1", "size": "2985", "license": "apache-2.0", "hash": 18505016592293880, "line_mean": 30.2934782609, "line_max": 97, "alpha_frac": 0.6540465439, "autogenerated": false, "ratio": 3.519559902200489, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.template import loader from django.db.models import Count from random import randint from hashlib import md5 from models import Address, Match, User from elasticsearch import Elasticsearch import os import json import re ...
{ "repo_name": "maxf/address-matcher", "path": "match/views.py", "copies": "1", "size": "4111", "license": "mit", "hash": -4586643968746013000, "line_mean": 28.7898550725, "line_max": 92, "alpha_frac": 0.6061785454, "autogenerated": false, "ratio": 3.747493163172288, "config_test": true, "has_...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.template import loader from .models import Streak, Session, Language from datetime import datetime from django.views.decorators.csrf import csrf_exempt import uuid def index(request): template = loader.get_template('...
{ "repo_name": "arlyon/codestreak", "path": "views.py", "copies": "1", "size": "3774", "license": "mit", "hash": 2405537066488822000, "line_mean": 39.5913978495, "line_max": 95, "alpha_frac": 0.5569687334, "autogenerated": false, "ratio": 4.1701657458563535, "config_test": false, "has_no_keywo...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from django.forms.models import model_to_dict from django.conf import settings import time import os from dateutil import parser from .models import CoverageFile, Project from gen...
{ "repo_name": "LuyaoHuang/CoveragePool", "path": "coveragepool/upload/views.py", "copies": "1", "size": "4531", "license": "mit", "hash": 5854107374603720000, "line_mean": 33.0676691729, "line_max": 93, "alpha_frac": 0.5634517766, "autogenerated": false, "ratio": 3.9161624891961972, "config_tes...