text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import ensure_csrf_cookie from models import * from forms import * from django.core.exceptions import ObjectDoesNotExist from django.core import serializers import json @ensure_csrf_cookie def home...
{ "repo_name": "raoariel/PennApps-F15", "path": "pennapps/AI_chat/views.py", "copies": "1", "size": "1392", "license": "mit", "hash": -5807864744772329000, "line_mean": 32.1428571429, "line_max": 114, "alpha_frac": 0.7054597701, "autogenerated": false, "ratio": 4.106194690265487, "config_test": ...
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.views import generic from django.views.generic.edit import FormView, CreateView from django.core.urlresolvers import reverse_lazy from django.core.mail import send_mail from hacks.models import Hackathon, CodeMania, SendR...
{ "repo_name": "jsshack15/hackathon-2015", "path": "hacks/views.py", "copies": "2", "size": "6441", "license": "mit", "hash": -7954578254238314000, "line_mean": 39.7658227848, "line_max": 191, "alpha_frac": 0.7112249651, "autogenerated": false, "ratio": 3.0642245480494767, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from .models import Team, Ranking # Create your views here. def chart(request): return render(request, 'chart/nba_power_rankings.html', { 'version': '2.0' }) def info(request): most_recent = Ranking.objects....
{ "repo_name": "nathanemyers/django-nbapowerranks", "path": "statzonstatz/nbapowerranks/views.py", "copies": "2", "size": "2656", "license": "mit", "hash": 373093468383810800, "line_mean": 34.4133333333, "line_max": 98, "alpha_frac": 0.5734186747, "autogenerated": false, "ratio": 3.883040935672514...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from polaris.mysql8 import mysqlBase, mysqlHeader from index import models # Create your views here. def device_type(request): agent = request.META['HTTP_USER_AGENT'].lower() mobile = ['iphone','android','symbianos','window...
{ "repo_name": "FrederichRiver/neutrino", "path": "applications/orion/index/views.py", "copies": "1", "size": "1174", "license": "bsd-3-clause", "hash": -3789367882372841500, "line_mean": 32.5428571429, "line_max": 86, "alpha_frac": 0.66439523, "autogenerated": false, "ratio": 3.5255255255255253, ...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse import json from celery.exceptions import TaskRevokedError from celery import current_task from celery.result import ResultBase, AsyncResult, TimeoutError from celery.task.control import revoke, inspect from tasks import test import ...
{ "repo_name": "siddver007/django-celery-redis-async-server-alpha", "path": "restServer/views.py", "copies": "1", "size": "2826", "license": "mit", "hash": -5647507371523285000, "line_mean": 29.0638297872, "line_max": 110, "alpha_frac": 0.6748053786, "autogenerated": false, "ratio": 3.425454545454...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from api.models import * def index(request): return HttpResponse('success!\n') def _success(stat, data): return JsonResponse({ 'stat': stat, **data }) def _fail(stat, error_msg): return JsonResponse({ 'stat': stat, '...
{ "repo_name": "shadowgamefly/news-Digest", "path": "models/api/views.py", "copies": "1", "size": "2293", "license": "mit", "hash": -8012650385467775000, "line_mean": 30.8472222222, "line_max": 80, "alpha_frac": 0.5965983428, "autogenerated": false, "ratio": 3.6167192429022084, "config_test": fa...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse import httplib import urllib2 import json import DeviceRepository import DeviceResponse import DeviceDescriptor import DeviceState repository = DeviceRepository.DeviceRepository() HOST = '192.168.4.97' PORT = '8765' repository.a...
{ "repo_name": "msphair/django_echo_bridge", "path": "api/views.py", "copies": "1", "size": "6157", "license": "apache-2.0", "hash": 59417360822876940, "line_mean": 33.9829545455, "line_max": 168, "alpha_frac": 0.6918954036, "autogenerated": false, "ratio": 3.840923268870867, "config_test": fals...
from django.shortcuts import render from django.http import HttpResponse, JsonResponse import requests # Create your views here. def search_view(request): recurso = request.GET['recurso'] or '' url = 'http://api.museoxela.com/api/v1/piezas/exhibicion/' resultado = {} r = '' if recurso == 'piezaDet...
{ "repo_name": "museoXela/Web", "path": "sitioWeb/app/views.py", "copies": "1", "size": "3833", "license": "mit", "hash": -2724490639822116400, "line_mean": 46.925, "line_max": 148, "alpha_frac": 0.6574484738, "autogenerated": false, "ratio": 2.8266961651917404, "config_test": false, "has_no_k...
from django.shortcuts import render from django.http import HttpResponse # Create your views here. from django.contrib import messages from braces.views import LoginRequiredMixin from django.views.generic import DetailView, ListView, UpdateView, CreateView, DeleteView, TemplateView from django.core.urlresolvers import ...
{ "repo_name": "chadgates/locmaster", "path": "unlocode/views.py", "copies": "1", "size": "4729", "license": "bsd-3-clause", "hash": -7709176042380019000, "line_mean": 33.5182481752, "line_max": 103, "alpha_frac": 0.6891520406, "autogenerated": false, "ratio": 3.765127388535032, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse # Create your views here. from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers from google.appengine.api import users from django.core.serializers import serialize from ace.models import * from d...
{ "repo_name": "sers-cy/blaxcy", "path": "views.py", "copies": "1", "size": "3099", "license": "apache-2.0", "hash": -6111613220744518000, "line_mean": 25.7155172414, "line_max": 117, "alpha_frac": 0.6414972572, "autogenerated": false, "ratio": 3.9832904884318765, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse from article.models import Article from datetime import datetime from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger # Create your views here. # Show homepage def home(request): posts = Article.objects.all() paginator...
{ "repo_name": "Imyukehan/DjangoBlog", "path": "article/views.py", "copies": "1", "size": "2027", "license": "mit", "hash": 5795090159425626000, "line_mean": 33.3728813559, "line_max": 84, "alpha_frac": 0.6147015294, "autogenerated": false, "ratio": 4.0059288537549405, "config_test": false, "h...
from django.shortcuts import render from django.http import HttpResponse from article.models import Article from datetime import datetime from django.http import Http404 from django.contrib.syndication.views import Feed from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger # Create your views here....
{ "repo_name": "zhouxwyeah/huanjuan-blog", "path": "article/views.py", "copies": "1", "size": "1918", "license": "mit", "hash": 8687791388839118000, "line_mean": 24.5733333333, "line_max": 84, "alpha_frac": 0.6741397289, "autogenerated": false, "ratio": 3.7830374753451674, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse # from BeautifulSoup import BeautifulSoup # import mechanize import random import mechanicalsoup from Buses.serializers import CurrentLocationSerializer from rest_framework import generics import mechanicalsoup from bs4 import BeautifulSoup from d...
{ "repo_name": "Joezer-Ivan/fleet-manager", "path": "FleetManager/Buses/views.py", "copies": "1", "size": "6595", "license": "mit", "hash": 2369731247425027000, "line_mean": 27.30472103, "line_max": 187, "alpha_frac": 0.6777862017, "autogenerated": false, "ratio": 2.8723867595818815, "config_tes...
from django.shortcuts import render from django.http import HttpResponse from cuser.middleware import CuserMiddleware from django.middleware.csrf import get_token from django.views.generic.base import TemplateView from supra import views as supra from django.contrib.auth.models import Group import models import forms i...
{ "repo_name": "vpadillar/pventa", "path": "venta/views.py", "copies": "1", "size": "6312", "license": "mit", "hash": -3317477947422345000, "line_mean": 25.1908713693, "line_max": 142, "alpha_frac": 0.7256020279, "autogenerated": false, "ratio": 3.0835368832437715, "config_test": true, "has_no...
from django.shortcuts import render from django.http import HttpResponse from django.apps import apps from django.conf import settings from .forms import PredictorForm import predictor # def championList(): # import json, urllib2 # data = json.loads(urllib2.urlopen('https://na.api.pvp.net/api/lol/static-data...
{ "repo_name": "Sapphirine/LeaguePredictor", "path": "predictor/views.py", "copies": "1", "size": "2133", "license": "mit", "hash": -2736780687352300000, "line_mean": 32.328125, "line_max": 161, "alpha_frac": 0.6741678387, "autogenerated": false, "ratio": 2.9707520891364902, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib import messages from django.shortcuts import render, redirect from .forms im...
{ "repo_name": "L34p/HeXA-CTF-2015", "path": "account/views.py", "copies": "1", "size": "2777", "license": "mit", "hash": 5542041974644079000, "line_mean": 38.6714285714, "line_max": 106, "alpha_frac": 0.6164926179, "autogenerated": false, "ratio": 4.132440476190476, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from django.contrib.sites.models import Site from django.contrib.sites.shortcuts import get_current_site # Create your views here. from cms.models import Page from cms.api import create_page from postman.api impor...
{ "repo_name": "c4sc/arividam", "path": "arividam/djangocms_news/views.py", "copies": "1", "size": "2690", "license": "mit", "hash": -6985067460992057000, "line_mean": 41.6984126984, "line_max": 247, "alpha_frac": 0.7048327138, "autogenerated": false, "ratio": 3.679890560875513, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse, HttpRequest import core.online_file_manager as ofm import json import startup import traceback # Create your views here. ...
{ "repo_name": "pkats15/hdt_analyzer", "path": "django_test/main/main/hdt_analyzer/views.py", "copies": "1", "size": "1130", "license": "mit", "hash": 2421067060358792000, "line_mean": 27.9743589744, "line_max": 69, "alpha_frac": 0.5805309735, "autogenerated": false, "ratio": 4.2164179104477615, ...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from oscar.core.loading import get_model, get_class from paypal.express.views import RedirectView from paypal.express.exceptions import ( EmptyBasketException, MissingShippingAddressException, MissingShippi...
{ "repo_name": "canhhs91/greenpointtrees", "path": "src/oscarstore/views.py", "copies": "1", "size": "5022", "license": "mit", "hash": 6807447432171465000, "line_mean": 39.184, "line_max": 83, "alpha_frac": 0.6232576663, "autogenerated": false, "ratio": 4.303341902313624, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings import subprocess from django.views.decorators.csrf import csrf_exempt from token_gdrive.models import * from django.contrib.auth.decorators import login_required, permission_required from django.core.exceptions im...
{ "repo_name": "tranhuucuong91/mesos-admin", "path": "token_gdrive/views.py", "copies": "1", "size": "2388", "license": "mit", "hash": 7895369716657337000, "line_mean": 38.8, "line_max": 161, "alpha_frac": 0.6226968174, "autogenerated": false, "ratio": 3.9667774086378738, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings def req_test(request): output = "<html><title>Welcome to Django.</title><body><p>This is Request Test!</p>" mess = request.scheme output += 'scheme = '+ mess + '<br>' mess = str(request.bod...
{ "repo_name": "janusnic/dj-21v", "path": "unit_03/mysite/home/views.py", "copies": "1", "size": "3185", "license": "mit", "hash": 8739589755446502000, "line_mean": 34.5842696629, "line_max": 307, "alpha_frac": 0.5950726469, "autogenerated": false, "ratio": 3.3151832460732984, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from home.forms import UploadSoundForm import os import subprocess # Create your views here. def index(request): context = {} return render(request, 'home/index.html', context) def uploadSound(request): #...
{ "repo_name": "sizlo/RPiFun", "path": "pisite/home/views.py", "copies": "1", "size": "2804", "license": "mit", "hash": -503435678109130050, "line_mean": 32.7951807229, "line_max": 101, "alpha_frac": 0.6201854494, "autogenerated": false, "ratio": 4.1540740740740745, "config_test": false, "has_...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.conf import settings import json from rest_framework import permissions, viewsets, filters, status from rest_framework.response import Response import pdb import logging from...
{ "repo_name": "dmham86/CrowdBrew", "path": "crowd_brew/views.py", "copies": "1", "size": "5004", "license": "mit", "hash": 2944076302960115700, "line_mean": 38.09375, "line_max": 124, "alpha_frac": 0.6962430056, "autogenerated": false, "ratio": 4.061688311688312, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.db.models import Max, Q from apps.seguridad.models import permisos, User from apps.expediente.models import expedientes, categoria, resolucion from apps.paginacion import pagina...
{ "repo_name": "AnthonyWainer/sisJuridico", "path": "sisjuridico/apps/reportes/views.py", "copies": "1", "size": "4038", "license": "mit", "hash": -367340709547484800, "line_mean": 47.6626506024, "line_max": 223, "alpha_frac": 0.6693907875, "autogenerated": false, "ratio": 3.0247191011235954, "c...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.http import JsonResponse from shaker.shaker_core import * from shaker.nodegroups import * @login_required(login_url="/account/login/") def manage_group(request): group = N...
{ "repo_name": "net592/OneOps", "path": "groups/views.py", "copies": "2", "size": "2197", "license": "apache-2.0", "hash": 4871708717034720000, "line_mean": 29.095890411, "line_max": 82, "alpha_frac": 0.6654528903, "autogenerated": false, "ratio": 3.667779632721202, "config_test": false, "has_...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.views.generic.base import TemplateView from braces.views import LoginRequiredMixin from project.models import Project from collection.models import Collection from datapoint.m...
{ "repo_name": "allyjweir/lackawanna", "path": "lackawanna/dashboard/views.py", "copies": "1", "size": "1532", "license": "bsd-3-clause", "hash": -5139319451835266000, "line_mean": 33.8181818182, "line_max": 120, "alpha_frac": 0.7317232376, "autogenerated": false, "ratio": 4.063660477453581, "co...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from feed_management.models import IngoingFeed, OutgoingFeed, FeedMapping from calendar_unitor.views import unite_calendars from django.conf import settings def outgoing_feed(request, secr...
{ "repo_name": "kraenhansen/Calendars-United", "path": "calendars_united/feed_management/views.py", "copies": "1", "size": "1368", "license": "mit", "hash": -9070823594705224000, "line_mean": 41.78125, "line_max": 86, "alpha_frac": 0.7660818713, "autogenerated": false, "ratio": 3.272727272727273, ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from feed.models import Author from django.contrib.auth.models import User @login_required def settings(request): user_object = User.objects.get(username=request.user.username) au...
{ "repo_name": "CMPUT404W16T01/CMPUT404-project-socialdistribution", "path": "settings/views.py", "copies": "2", "size": "1772", "license": "apache-2.0", "hash": 5921519762149794000, "line_mean": 26.6875, "line_max": 66, "alpha_frac": 0.670993228, "autogenerated": false, "ratio": 3.894505494505494...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from oauth2_provider.views.generic import ProtectedResourceView from oauth2_provider.ext.rest_framework import TokenHasReadWriteScope, TokenHasScope from django.contrib.auth.models import U...
{ "repo_name": "tipsy-team/beacon-back", "path": "beaconapp/api/views.py", "copies": "1", "size": "2297", "license": "apache-2.0", "hash": -7809020896249183000, "line_mean": 34.890625, "line_max": 169, "alpha_frac": 0.8206356117, "autogenerated": false, "ratio": 3.7779605263157894, "config_test"...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from savethedate.forms import ConfirmForm, SendConfirmForm, ContactForm from django.shortcuts import redirect from .models import Profile from django.contrib.auth.models import User from d...
{ "repo_name": "seciadev/django_weddingsite", "path": "savethedate/views.py", "copies": "1", "size": "4545", "license": "mpl-2.0", "hash": -4290050830180191000, "line_mean": 35.352, "line_max": 159, "alpha_frac": 0.727712965, "autogenerated": false, "ratio": 3.0904761904761906, "config_test": fa...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from shaker.shaker_core import * from shaker.nodegroups import * from shaker.highstate import * import os import time @login_required(login_url="/account/login/") def highstate(request): ...
{ "repo_name": "net592/OneOps", "path": "states_config/views.py", "copies": "2", "size": "1880", "license": "apache-2.0", "hash": -4674359200615318000, "line_mean": 35.862745098, "line_max": 105, "alpha_frac": 0.6574468085, "autogenerated": false, "ratio": 3.411978221415608, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from shaker.tasks import grains_task import logging import subprocess from dashboard.models import * from returner.models import * from shaker.shaker_core import * from shaker.nodegroups im...
{ "repo_name": "yueyongyue/saltshaker", "path": "system_setup/views.py", "copies": "1", "size": "2961", "license": "apache-2.0", "hash": 1365059761494575000, "line_mean": 46.7580645161, "line_max": 148, "alpha_frac": 0.6933468423, "autogenerated": false, "ratio": 4.0176390773405695, "config_test...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required import datetime from mapApp.models import Incident, Hazard, Theft, AlertArea @login_required def recentReports(request): user = request.user # Get the user's alertable points in ...
{ "repo_name": "SPARLab/BikeMaps", "path": "mapApp/views/recentReports.py", "copies": "1", "size": "1914", "license": "mit", "hash": -8656550449975097000, "line_mean": 42.5, "line_max": 115, "alpha_frac": 0.7136886102, "autogenerated": false, "ratio": 3.454873646209386, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from bootcamp.decorators import ajax_required from .models import Notification @login_required def notifications(request): user = request.user all_notifications = Notification.ob...
{ "repo_name": "qulc/bootcamp", "path": "bootcamp/activities/views.py", "copies": "2", "size": "1210", "license": "mit", "hash": 4355584745755379000, "line_mean": 29.25, "line_max": 73, "alpha_frac": 0.7520661157, "autogenerated": false, "ratio": 4.172413793103448, "config_test": false, "has_n...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import login as auth_login from django.views.generic import FormView, CreateView from django.utils.decorators import method_decorator from django.views.decorators.ca...
{ "repo_name": "enlighter/ndl-question-papers-search-hub", "path": "qp_search_project/searcher/views.py", "copies": "1", "size": "2626", "license": "mit", "hash": -3871156268248248300, "line_mean": 30.6506024096, "line_max": 85, "alpha_frac": 0.6671744097, "autogenerated": false, "ratio": 3.896142...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth import authenticate, login as auth_login, logout from django.shortcuts import redirect from datetime import datetime, date from django.contrib.auth.models import User #from django.core.exceptions import DoesNotExist from...
{ "repo_name": "seet61/help", "path": "tasks/views.py", "copies": "1", "size": "21398", "license": "apache-2.0", "hash": -5949222907819637000, "line_mean": 45.8227571116, "line_max": 151, "alpha_frac": 0.5317786709, "autogenerated": false, "ratio": 4.318466195761856, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth import authenticate, login, logout from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from rango.models import Catego...
{ "repo_name": "jobinuw/rest", "path": "rango/views.py", "copies": "2", "size": "7485", "license": "mit", "hash": -248332061890133630, "line_mean": 27.6819923372, "line_max": 132, "alpha_frac": 0.6062792251, "autogenerated": false, "ratio": 3.949868073878628, "config_test": false, "has_no_keyw...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth import authenticate, login, logout import json from django.core.context_processors import csrf from django.shortcuts import render_to_response from django.core import serializers from workoutapi.models import Exercise, Se...
{ "repo_name": "JesterXL/workoutlogger", "path": "server/workoutlogger/workoutapi/views.py", "copies": "1", "size": "14552", "license": "mit", "hash": 7640898245148188000, "line_mean": 28.9423868313, "line_max": 134, "alpha_frac": 0.6881528312, "autogenerated": false, "ratio": 2.8578161822466615, ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.shortcuts import redirect from django.contrib.auth.decorators import login_required from django.conf import settings import sys from django.contrib.a...
{ "repo_name": "wasit7/visionmarker", "path": "alpha/visionmarker/wl_auth/views.py", "copies": "2", "size": "2247", "license": "mit", "hash": 570434839910436700, "line_mean": 35.2419354839, "line_max": 95, "alpha_frac": 0.6982643525, "autogenerated": false, "ratio": 3.516431924882629, "config_te...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth import authenticate, login from .forms import LoginForm, RegistrationForm, UserProfileForm from django.contrib.auth.decorators import login_required # ① from .models import UserProfile, UserInfo from django.contrib.auth.mo...
{ "repo_name": "glon/django_test", "path": "account/views.py", "copies": "1", "size": "4635", "license": "apache-2.0", "hash": 2122486574319215900, "line_mean": 43.1047619048, "line_max": 189, "alpha_frac": 0.661412222, "autogenerated": false, "ratio": 3.995685936151855, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.conf import settings import json from registrar.models import Student from registrar.models import Course from registrar.models impor...
{ "repo_name": "donnydevito/py-academicstoday", "path": "academicstoday_project/account/views/profile.py", "copies": "3", "size": "1389", "license": "apache-2.0", "hash": -7360366902189750000, "line_mean": 37.5833333333, "line_max": 90, "alpha_frac": 0.6702663787, "autogenerated": false, "ratio": ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, get_list_or_404 from fly_project import settings from api.models import Share from api.models imp...
{ "repo_name": "Oinweb/fly-django", "path": "share/views.py", "copies": "3", "size": "2128", "license": "bsd-2-clause", "hash": -3297725962861724000, "line_mean": 31.2424242424, "line_max": 79, "alpha_frac": 0.5897556391, "autogenerated": false, "ratio": 4.470588235294118, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from fly_project import settings from fly_project import constants from api.models import SavingsGoal from api.models import CreditGoal from api....
{ "repo_name": "Oinweb/py-fly", "path": "account/views.py", "copies": "3", "size": "2430", "license": "bsd-2-clause", "hash": -6140753589023350000, "line_mean": 32.75, "line_max": 96, "alpha_frac": 0.69218107, "autogenerated": false, "ratio": 3.7850467289719627, "config_test": false, "has_no_k...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib import messages from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login...
{ "repo_name": "Hikasgai/HikasgaiApp", "path": "asignaturas/views.py", "copies": "1", "size": "2330", "license": "mit", "hash": 5392365628267329000, "line_mean": 37.85, "line_max": 94, "alpha_frac": 0.7175965665, "autogenerated": false, "ratio": 3.4467455621301775, "config_test": false, "has_n...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate from tracker.models import * from datetime import datetime import sys from django.template import RequestContext from django.shortcuts import render_to_respo...
{ "repo_name": "tddawson/conference-tracker", "path": "tracker/views.py", "copies": "1", "size": "6841", "license": "mit", "hash": -4881729174800163000, "line_mean": 35.0052631579, "line_max": 189, "alpha_frac": 0.7399502997, "autogenerated": false, "ratio": 3.219294117647059, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User from models import UserAdmin from django.shortcuts import render_to_response from django.contrib.auth import authenticate, login, logout from django.http import HttpResponseRedirect from django.views.dec...
{ "repo_name": "XDSETeamA/XD_SE_TeamA", "path": "team9/1/Sharing/UserAdmin/views.py", "copies": "2", "size": "3306", "license": "mit", "hash": -6516397690259509000, "line_mean": 25.246031746, "line_max": 92, "alpha_frac": 0.5967937084, "autogenerated": false, "ratio": 3.722972972972973, "config_...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User import xlsxwriter #import StringIO import csv from datetime import datetime, date from django.db import connection def vistoBuenoExcel(request,inicio,fin): response = HttpResponse(content_type='tex...
{ "repo_name": "anderson7ru/bienestarues", "path": "reportesapp/views.py", "copies": "1", "size": "27070", "license": "mit", "hash": -3043331402577987600, "line_mean": 39.6471471471, "line_max": 589, "alpha_frac": 0.6298854821, "autogenerated": false, "ratio": 2.959763831183031, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from .forms import RegisterForm # Create your views here. def register(request): form = RegisterForm() ...
{ "repo_name": "teyrana/learn_django", "path": "weathermail/views.py", "copies": "1", "size": "1573", "license": "mit", "hash": -7293387325103939000, "line_mean": 32.4680851064, "line_max": 92, "alpha_frac": 0.6408137317, "autogenerated": false, "ratio": 4.333333333333333, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.contrib.staticfiles.templatetags.staticfiles import static import os from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import redirect from django.template.response import T...
{ "repo_name": "keyurr2/music-library", "path": "rkmusic/views.py", "copies": "1", "size": "3768", "license": "mit", "hash": -2797064099205443600, "line_mean": 34.8857142857, "line_max": 125, "alpha_frac": 0.6998407643, "autogenerated": false, "ratio": 3.1373855120732723, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.core.context_processors import csrf from django.template import loader, Context, RequestContext, Template from beast.validater import validater from beast.walters import walters from beast.corona import corona import random import js...
{ "repo_name": "moltude/kinda-sorta", "path": "kinda_sorta/beast/views.py", "copies": "1", "size": "5239", "license": "apache-2.0", "hash": -2281222095702656300, "line_mean": 29.1091954023, "line_max": 94, "alpha_frac": 0.7127314373, "autogenerated": false, "ratio": 3.3284625158831003, "config_t...
from django.shortcuts import render from django.http import HttpResponse from django.core.context_processors import csrf import json from django.core.mail import send_mail from .models import UserReports from django.contrib.auth.models import User from django.contrib import auth from django.conf import settings def u...
{ "repo_name": "eprivalov/sendec", "path": "reports/views.py", "copies": "1", "size": "1208", "license": "apache-2.0", "hash": 311760182092390000, "line_mean": 33.5428571429, "line_max": 93, "alpha_frac": 0.6763245033, "autogenerated": false, "ratio": 3.9348534201954397, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.core import serializers from django.apps import apps import os def index(request): tables = apps.get_app_config('Sim').get_models() table_names = [] for t in tables: table_names.append(t.__name__) context = {'table_names' : tabl...
{ "repo_name": "GreatDevelopers/Sim", "path": "Sim_site/Sim/views.py", "copies": "2", "size": "2363", "license": "mit", "hash": -2115567782786508300, "line_mean": 26.1609195402, "line_max": 70, "alpha_frac": 0.5890816758, "autogenerated": false, "ratio": 3.4, "config_test": false, "has_no_keyw...
from django.shortcuts import render from django.http import HttpResponse from django.core import serializers from django.views.decorators.http import require_http_methods from django.views.decorators.csrf import csrf_exempt from django.utils import timezone from temperatureLog.models import Reading from django.view...
{ "repo_name": "rconn01/temperature-control", "path": "views.py", "copies": "1", "size": "1333", "license": "mit", "hash": -3479522496158488600, "line_mean": 29.2954545455, "line_max": 65, "alpha_frac": 0.759939985, "autogenerated": false, "ratio": 3.819484240687679, "config_test": false, "has...
from django.shortcuts import render from django.http import HttpResponse from django.core import serializers from .models import Persona, Proyecto from django.core.urlresolvers import reverse_lazy from django.views.generic import ListView, CreateView, UpdateView, DeleteView from .forms import ProyectoForm from django.d...
{ "repo_name": "andresmauro17/mediapp", "path": "src/querys/temporales/autocompletado_funciona/views.py", "copies": "1", "size": "1070", "license": "mit", "hash": -2555955766218026500, "line_mean": 23.8837209302, "line_max": 77, "alpha_frac": 0.714953271, "autogenerated": false, "ratio": 2.8533333...
from django.shortcuts import render from django.http import HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from realtorApp.queryMaker import controlFlow from realtorApp.models import RealEstate as RE from realtorApp.models import EstatePictures as EP def index(request): esta...
{ "repo_name": "steinarv12/RealtorKeep", "path": "realtorApp/views.py", "copies": "1", "size": "1619", "license": "mit", "hash": -3403063907617388000, "line_mean": 27.4035087719, "line_max": 74, "alpha_frac": 0.6318715256, "autogenerated": false, "ratio": 4.057644110275689, "config_test": false,...
from django.shortcuts import render from django.http import HttpResponse from django.core.urlresolvers import reverse from django.forms import CharField, HiddenInput from django.forms.models import model_to_dict from django.db.models import FieldDoesNotExist from django.utils.translation import string_concat, ugettext_...
{ "repo_name": "jgorset/django-respite", "path": "respite/views/resource.py", "copies": "1", "size": "8535", "license": "mit", "hash": 1666595658513506300, "line_mean": 30.2637362637, "line_max": 111, "alpha_frac": 0.484592853, "autogenerated": false, "ratio": 4.506335797254488, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse from django.core.urlresolvers import reverse from django.views.generic import DeleteView from ..models.groups import Group from ..utils import paginate, get_current_group def groups_list(request): # check if we need to show only one select...
{ "repo_name": "samitnuk/studentsdb", "path": "students/views/groups.py", "copies": "1", "size": "1458", "license": "mit", "hash": -1046478606737790200, "line_mean": 27.76, "line_max": 64, "alpha_frac": 0.645340751, "autogenerated": false, "ratio": 3.7447916666666665, "config_test": false, "ha...
from django.shortcuts import render from django.http import HttpResponse from django.core.urlresolvers import reverse def index(request): return HttpResponse(''' <html> <link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,600' rel='stylesheet' type='text/css'> <!--<link href='http://fon...
{ "repo_name": "RKD314/yumstat", "path": "yumstat/views.py", "copies": "1", "size": "1393", "license": "mit", "hash": 4542978162105539000, "line_mean": 31.4186046512, "line_max": 179, "alpha_frac": 0.583632448, "autogenerated": false, "ratio": 2.8198380566801617, "config_test": false, "has_no_...
from django.shortcuts import render from django.http import HttpResponse from django.db import models from imgpage.models import ImgObject,UserObject import os import json from django.core.serializers.json import DjangoJSONEncoder from perception.settings import STATIC_PATH from os import listdir from django.db.models ...
{ "repo_name": "sudhaMR/Django-Perception", "path": "imgpage/views.py", "copies": "1", "size": "2664", "license": "mit", "hash": -6823989108414495000, "line_mean": 35, "line_max": 139, "alpha_frac": 0.6295045045, "autogenerated": false, "ratio": 3.5191545574636725, "config_test": false, "has_n...
from django.shortcuts import render from django.http import HttpResponse from django.db.models import Count, Sum import json from django.views.decorators.csrf import csrf_exempt from django.views.decorators.csrf import ensure_csrf_cookie from report.models import * import report # Create your views here. @csrf_exemp...
{ "repo_name": "klpdotorg/sikshana-reports", "path": "report/views.py", "copies": "1", "size": "5895", "license": "mit", "hash": -2487166209057641000, "line_mean": 72.6875, "line_max": 308, "alpha_frac": 0.6150975403, "autogenerated": false, "ratio": 3.3192567567567566, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse from django.db.models import Min, Count, Max from django.conf import settings from django.views.decorators.cache import cache_page from django import forms from construct.models import * from structure.models import Structure from protein.models ...
{ "repo_name": "fosfataza/protwis", "path": "construct/tool.py", "copies": "1", "size": "76002", "license": "apache-2.0", "hash": -2301085604411487700, "line_mean": 43.4716208309, "line_max": 381, "alpha_frac": 0.5591431804, "autogenerated": false, "ratio": 3.4371382054992763, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.forms.formsets import formset_factory from .models import BudgetElement, Budget from accounts.models import Currency, Account from transactions.models import Transaction, Category, Subcategory from hubs.models import Hubs import hash...
{ "repo_name": "m1k3r/gvi-accounts", "path": "gvi/budgets/views.py", "copies": "1", "size": "8981", "license": "mit", "hash": 3295193322569413600, "line_mean": 30.7349823322, "line_max": 109, "alpha_frac": 0.5776639572, "autogenerated": false, "ratio": 4.186946386946387, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.forms.models import model_to_dict from resume.models import Resume from resume.forms import ResumeForm from joboard.models import Factory import logging logger = logging.getLogger(__name__) def applysync(request): data = {} ...
{ "repo_name": "youtaya/knight", "path": "fuzzybee/resume/views.py", "copies": "1", "size": "1247", "license": "mit", "hash": -1048116854417535100, "line_mean": 29.4146341463, "line_max": 70, "alpha_frac": 0.6936647955, "autogenerated": false, "ratio": 3.5628571428571427, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.http import Http404 from django.http import HttpResponseBadRequest from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from .pycode.core import Core import json # Create your views here. @csrf_e...
{ "repo_name": "fyzjw123/dushenSB", "path": "website/raspberry/views.py", "copies": "1", "size": "1814", "license": "apache-2.0", "hash": 9046624636135186000, "line_mean": 28.737704918, "line_max": 61, "alpha_frac": 0.6179713341, "autogenerated": false, "ratio": 4.208816705336427, "config_test":...
from django.shortcuts import render from django.http import HttpResponse from django.http import Http404 from django.views.generic.dates import ArchiveIndexView from django.core.paginator import Paginator from django.core.paginator import EmptyPage from django.core.paginator import PageNotAnInteger from django.db.model...
{ "repo_name": "gooosie/django-blog", "path": "blog/views.py", "copies": "1", "size": "2531", "license": "apache-2.0", "hash": -6443020658489993000, "line_mean": 32.7466666667, "line_max": 107, "alpha_frac": 0.7013038325, "autogenerated": false, "ratio": 3.620886981402003, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from .forms import UserForm from django....
{ "repo_name": "yayoiukai/signalserver", "path": "accounts/views.py", "copies": "1", "size": "2833", "license": "mit", "hash": -8965797351281670000, "line_mean": 31.9418604651, "line_max": 74, "alpha_frac": 0.6226614896, "autogenerated": false, "ratio": 4.190828402366864, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User import datetime from .models import Fleeter, Post, Follower from .forms import AuthenticationFor...
{ "repo_name": "sohamkor/FlitterWebApp", "path": "flitterMainApp/views.py", "copies": "1", "size": "9821", "license": "mit", "hash": 3051431622085575700, "line_mean": 38.9227642276, "line_max": 210, "alpha_frac": 0.6716220344, "autogenerated": false, "ratio": 4.090379008746356, "config_test": fa...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.core import serializers from django.core.exceptions import PermissionDenied from django.forms import model_to_dict from django.template import RequestContext from django.db.models import Q f...
{ "repo_name": "Lapeth/timeline", "path": "Timeline/data/query.py", "copies": "1", "size": "14002", "license": "apache-2.0", "hash": 839056967494190600, "line_mean": 36.1405835544, "line_max": 142, "alpha_frac": 0.5219254392, "autogenerated": false, "ratio": 4.569843342036553, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django import forms from django.template import RequestContext from django.core.context_processors import csrf from django.utils.safestring import mark_safe from .models import Greeting import urll...
{ "repo_name": "dimnikolos/scratchgraph", "path": "scratchgraph/views.py", "copies": "1", "size": "2913", "license": "mit", "hash": 2617680085831381500, "line_mean": 35.8734177215, "line_max": 109, "alpha_frac": 0.6192928253, "autogenerated": false, "ratio": 4.034626038781163, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.template import loader from django.shortcuts import render from django.core import serializers from .models import Targets from .forms import ExploreForm, DownloadForm import json import h...
{ "repo_name": "AlexaVillaume/irtf_website", "path": "mysite/irtf/views.py", "copies": "1", "size": "2562", "license": "apache-2.0", "hash": -6808746957894517000, "line_mean": 28.7906976744, "line_max": 78, "alpha_frac": 0.5862607338, "autogenerated": false, "ratio": 3.4809782608695654, "config_...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.template import loader from django.urls import reverse from .forms import ApiKeyForm from .forms import InfoForm from .forms import DestroyFilesForm from .forms import ListFilesForm from ....
{ "repo_name": "sandcage/sandcage-api-django", "path": "src/apigui/views.py", "copies": "1", "size": "8682", "license": "apache-2.0", "hash": 1890096783462409500, "line_mean": 33.8674698795, "line_max": 81, "alpha_frac": 0.6101128772, "autogenerated": false, "ratio": 4.136255359695093, "config_t...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.template import RequestContext, loader from django.contrib.auth import authenticate, login, logout def home(request): "Представление: главная страница." # Импортируем from project.mode...
{ "repo_name": "anodos-ru/project", "path": "views.py", "copies": "2", "size": "20758", "license": "mit", "hash": 7202767853324141000, "line_mean": 26.4707646177, "line_max": 141, "alpha_frac": 0.7067074169, "autogenerated": false, "ratio": 2.573455056179775, "config_test": false, "has_no_keyw...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt ###外部函数 ## 验证用户 ## 输入用户名、密码 ## 输出类型+代号 F错误 T成功 F0账号不存在 F1账号密码不对应 from blog.user import login_verify ## 自动检查用户 ## 输入session ## 输出 True 已登陆 False 未登...
{ "repo_name": "blacksea3/medit", "path": "medit/blog/views.py", "copies": "1", "size": "13223", "license": "apache-2.0", "hash": -3831759518601587700, "line_mean": 32.6402266289, "line_max": 114, "alpha_frac": 0.5946947368, "autogenerated": false, "ratio": 2.9069767441860463, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from .forms import NameForm import imaplib M = imaplib.IMAP4_SSL('imap.gmail.com') def index(request): # if this is a POST request we need to process the form data if request.method == 'POST':...
{ "repo_name": "sehgalvibhor/my_story", "path": "life/emails/views.py", "copies": "1", "size": "1117", "license": "mit", "hash": -5279936980557000000, "line_mean": 30.0277777778, "line_max": 90, "alpha_frac": 0.5783348254, "autogenerated": false, "ratio": 3.9750889679715304, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from .forms import newRequest from .models import Category, Request, Available # views go here def activeRequests(request): #all active requests in list format, boring i know active_request...
{ "repo_name": "unbenchme/some-words-go-here", "path": "requests/views.py", "copies": "1", "size": "1520", "license": "mit", "hash": 7670121354165776000, "line_mean": 33.5454545455, "line_max": 76, "alpha_frac": 0.6894736842, "autogenerated": false, "ratio": 4.164383561643835, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.http import JsonResponse from django.core import serializers from django.db import DatabaseError from django.db.models import Sum # Use Token from app.utils.token import token_check # Used when http-POST from django.views.decorators...
{ "repo_name": "OIdiotLin/ClassManager-backends", "path": "app/views/finance.py", "copies": "1", "size": "3830", "license": "mit", "hash": 7885762203799394000, "line_mean": 22.0722891566, "line_max": 81, "alpha_frac": 0.644386423, "autogenerated": false, "ratio": 3.1188925081433223, "config_test...
from django.shortcuts import render from django.http import HttpResponse from django.http import JsonResponse from django.core import serializers from django.db import DatabaseError # Use Token from app.utils.token import token_check # Used when http-POST from django.views.decorators.csrf import csrf_exempt # Model...
{ "repo_name": "OIdiotLin/ClassManager-backends", "path": "app/views/activity.py", "copies": "1", "size": "5673", "license": "mit", "hash": 4732937424542875000, "line_mean": 26.4057971014, "line_max": 101, "alpha_frac": 0.6740701569, "autogenerated": false, "ratio": 3.2398629354654482, "config_t...
from django.shortcuts import render from django.http import HttpResponse from django.http import JsonResponse from django.views.generic import TemplateView from django.conf import settings import os, sys, argparse, pprint, json, shlex, subprocess, urllib2, requests, ast from irods.session import iRODSSession from irod...
{ "repo_name": "froggleston/ena_search_django", "path": "ena/ena_search/views.py", "copies": "1", "size": "2115", "license": "mit", "hash": 137798628378706610, "line_mean": 40.4705882353, "line_max": 150, "alpha_frac": 0.6690307329, "autogenerated": false, "ratio": 3.8878676470588234, "config_te...
from django.shortcuts import render from django.http import HttpResponse from django.http import JsonResponse from rest_framework.decorators import parser_classes from rest_framework.parsers import JSONParser from EcoKitchen.models import UserProfile, Location from django.core.exceptions import ObjectDoesNotExist from ...
{ "repo_name": "hariharant61/ganesh-yrg", "path": "EcoKitchen_backend/EcoKitchen/views.py", "copies": "1", "size": "6082", "license": "apache-2.0", "hash": 8878360909372563000, "line_mean": 34.567251462, "line_max": 103, "alpha_frac": 0.6445248274, "autogenerated": false, "ratio": 4.40724637681159...
from django.shortcuts import render from django.http import HttpResponse from django import forms from datetime import datetime from django.core.exceptions import ObjectDoesNotExist import re import logging logger = logging.getLogger(__name__) from django.views.generic.base import View class Uploader(View): d...
{ "repo_name": "omad/django-mediaman", "path": "mediaman/views.py", "copies": "1", "size": "5041", "license": "bsd-3-clause", "hash": -4798604582129513000, "line_mean": 32.8322147651, "line_max": 98, "alpha_frac": 0.6006744694, "autogenerated": false, "ratio": 3.975552050473186, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse from django import forms from PIL import Image from . import settings import mimetypes import os import shutil import re import tarfile import zipfile import magic path_end = r'(?P<path>[\w\d_ -/.]*)$' ActionChoices = ( ('upload', 'upload'),...
{ "repo_name": "IMGIITRoorkee/django-filemanager", "path": "filemanager/__init__.py", "copies": "1", "size": "19770", "license": "mit", "hash": -8548887007976308000, "line_mean": 37.7647058824, "line_max": 93, "alpha_frac": 0.43323217, "autogenerated": false, "ratio": 4.83492296404989, "config_t...
from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import render from rango.models import Category, Page, UserProfile from rango.forms import CategoryForm, PageForm, UserForm, UserProfileForm from django.contrib.auth.models import User from django.contrib.auth import authenti...
{ "repo_name": "DeepBurner/rango-with-django", "path": "rango/views.py", "copies": "1", "size": "4983", "license": "mit", "hash": -266691581169562300, "line_mean": 28.6607142857, "line_max": 139, "alpha_frac": 0.5884005619, "autogenerated": false, "ratio": 4.318024263431543, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import render_to_response from django.template import RequestContext from browse.models import * from django.db.models import Q from browse.browse_view_models import allEHFPI from news.models import news from search.models im...
{ "repo_name": "polojacky/ehfpi", "path": "ehf/search/views.py", "copies": "1", "size": "48192", "license": "apache-2.0", "hash": 4801347910875501000, "line_mean": 44.3367826905, "line_max": 179, "alpha_frac": 0.4912226096, "autogenerated": false, "ratio": 4.624064478986758, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader from .models import Course from apps.documents.models import Document from apps.users.models import User from apps.quiz.models import Quiz, Question, Answer, Category from apps.users.models import Person...
{ "repo_name": "Sirikam/Gravitas", "path": "apps/courses/views.py", "copies": "1", "size": "1814", "license": "mit", "hash": 4213033726242576000, "line_mean": 35.3, "line_max": 97, "alpha_frac": 0.6339581036, "autogenerated": false, "ratio": 4.238317757009346, "config_test": false, "has_no_key...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader, RequestContext from django.core.paginator import Paginator from three69.core.models import ScrappedDocument # Create your views here. top_words = ["Rusija", "BMW", "Putinas", "Kraziai", "Estonian", "...
{ "repo_name": "toinbis/369", "path": "three69/three69/core/views.py", "copies": "1", "size": "1531", "license": "mit", "hash": 9051539368165191000, "line_mean": 36.3658536585, "line_max": 131, "alpha_frac": 0.6688438929, "autogenerated": false, "ratio": 3.236786469344609, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader, RequestContext from django.shortcuts import get_object_or_404, render_to_response, redirect from django.views.generic import ListView, FormView from opportunities_app.models import Post from opportunit...
{ "repo_name": "PyLadiesDC/opportunities", "path": "diversity_webpage/opportunities_app/views.py", "copies": "1", "size": "2148", "license": "apache-2.0", "hash": 7876898234547460000, "line_mean": 36.6842105263, "line_max": 104, "alpha_frac": 0.6904096834, "autogenerated": false, "ratio": 3.665529...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader, RequestContext from django.template import loader, Context from django.shortcuts import render_to_response, redirect from django.views.decorators.csrf import csrf_exempt from django import forms import ...
{ "repo_name": "tareq89/foodbank", "path": "foodbank/rest/views.py", "copies": "2", "size": "6874", "license": "cc0-1.0", "hash": 7707471181412472000, "line_mean": 23.5535714286, "line_max": 99, "alpha_frac": 0.6403840559, "autogenerated": false, "ratio": 2.9016462642465175, "config_test": false...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader, RequestContext from Insert.models import * from Insert.functions.populateDB import * from django.template import loader, Context from django.shortcuts import render_to_response, redirect from django.vie...
{ "repo_name": "tareq89/foodbank", "path": "foodbank/Insert/views.py", "copies": "2", "size": "10412", "license": "cc0-1.0", "hash": 5236077151240914000, "line_mean": 29.0086455331, "line_max": 103, "alpha_frac": 0.5812524011, "autogenerated": false, "ratio": 3.2415940224159403, "config_test": f...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader, Context, RequestContext from mojo.models import MojoUser from hashlib import sha256 from django.shortcuts import redirect import xlrd from tools import instamojo # Create your views here. MAX_ATTEMPTS = 100 def...
{ "repo_name": "vighneshbirodkar/mojodemo", "path": "mojo/views.py", "copies": "1", "size": "4792", "license": "mit", "hash": -4928474433565278000, "line_mean": 34.7611940299, "line_max": 93, "alpha_frac": 0.5204507513, "autogenerated": false, "ratio": 4.4206642066420665, "config_test": false, ...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import JsonResponse, HttpResponseRedirect from . import utils ...
{ "repo_name": "fzenke/morla", "path": "papers/views.py", "copies": "1", "size": "5147", "license": "mit", "hash": -5788037052923422000, "line_mean": 32.8618421053, "line_max": 142, "alpha_frac": 0.6761220128, "autogenerated": false, "ratio": 3.7541940189642595, "config_test": false, "has_no_k...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.core.mail import send_mail from .models import EmailAddress, EmailAddressRegistrationRequest from datetime import datetime, timezone # Create your views here. def Index(request): template = load...
{ "repo_name": "mattfishburn/DevSite", "path": "register/views.py", "copies": "1", "size": "2926", "license": "mit", "hash": 8336245571215764000, "line_mean": 39.6388888889, "line_max": 111, "alpha_frac": 0.6917293233, "autogenerated": false, "ratio": 4.674121405750799, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.core.urlresolvers import reverse import sqlite3 as lite import itertools # import the logging library import logging # Get an instance of a logger logger = logging.getLogger(__name__) # Create your...
{ "repo_name": "edminer/iotmonui", "path": "views.py", "copies": "1", "size": "3365", "license": "apache-2.0", "hash": 8698745027856154000, "line_mean": 30.7452830189, "line_max": 149, "alpha_frac": 0.570282318, "autogenerated": false, "ratio": 3.9775413711583925, "config_test": false, "has_no...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from .models import Summary, Entry, Report, Item from fileuploads.models import Video from groups.models import Process, ...
{ "repo_name": "yayoiukai/signalserver", "path": "reports/views.py", "copies": "1", "size": "6002", "license": "mit", "hash": 8348051723192138000, "line_mean": 32.1602209945, "line_max": 79, "alpha_frac": 0.5669776741, "autogenerated": false, "ratio": 4.108145106091718, "config_test": false, "...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.shortcuts import render from .models import News import requests from bs4 import BeautifulSoup from newspaper import Article from newspaper.article import ArticleException #User_Agent = "Mozilla/5...
{ "repo_name": "andresmtz98/GoogleNews_Scraper_Django", "path": "news/views.py", "copies": "1", "size": "2776", "license": "mit", "hash": -5952045197928598000, "line_mean": 35.0519480519, "line_max": 148, "alpha_frac": 0.5515129683, "autogenerated": false, "ratio": 3.7975376196990425, "config_te...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.urls import reverse from .models import Kilpailu, Kisaaja def index(request): kisalista = Kilpailu.objects.order_by('vuosi') objects = ', '.join([k.nimi for k in kisalista]) template =...
{ "repo_name": "rahnarsson/ptkj", "path": "kisa/views.py", "copies": "1", "size": "3541", "license": "apache-2.0", "hash": -3226871249434141700, "line_mean": 33.0288461538, "line_max": 145, "alpha_frac": 0.5806725064, "autogenerated": false, "ratio": 2.804278922345483, "config_test": false, "h...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.views import generic from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Count import ltm.structs from .models import * def node_index(request): no...
{ "repo_name": "buzzsurfr/lbm", "path": "ltm/views.py", "copies": "1", "size": "5087", "license": "mit", "hash": -8896307600067372000, "line_mean": 30.79375, "line_max": 263, "alpha_frac": 0.7224297228, "autogenerated": false, "ratio": 3.0172004744958483, "config_test": false, "has_no_keywords...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import Archetype # Create your views here. def arachIndex(request): characters = Archetype.objects.all() template = loader.get_template('arach/index.html') if request.user.is_authenticat...
{ "repo_name": "sighill/shade_app", "path": "arach/views.py", "copies": "1", "size": "1918", "license": "mit", "hash": 6601715818918405000, "line_mean": 41.5333333333, "line_max": 127, "alpha_frac": 0.60553814, "autogenerated": false, "ratio": 3.9382716049382718, "config_test": false, "has_no_...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import SubReddit from django.core.exceptions import ObjectDoesNotExist from .forms import subredditForm from .reddiTest import RedditData from io import BytesIO from base64 import b64encode # Create...
{ "repo_name": "gregstarr/SentiSub", "path": "webapp/sentiments/views.py", "copies": "1", "size": "2039", "license": "mit", "hash": 5757628008777799000, "line_mean": 32.4262295082, "line_max": 120, "alpha_frac": 0.6213830309, "autogenerated": false, "ratio": 4.069860279441118, "config_test": fal...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import TweetGroup from datetime import datetime, timedelta from django.utils import timezone import pandas as pd import scrape import json from django.db.models import Max def index(request): re...
{ "repo_name": "mattcoley/oxbridge-sentiment", "path": "oxbridgesentiment/sentiment/views.py", "copies": "2", "size": "1267", "license": "mit", "hash": 76803109485068590, "line_mean": 37.3939393939, "line_max": 210, "alpha_frac": 0.6882399369, "autogenerated": false, "ratio": 3.480769230769231, ...
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from website.models import Property, SitetextRu, SitetextEn, Photos def home_ru(request): prop = Property.objects.get(name='arbatflat') template = loader.get_template('arbatflat_ru.html') location =...
{ "repo_name": "adityak2190/la_casa", "path": "arbatflat/views.py", "copies": "1", "size": "2107", "license": "mit", "hash": 7424880695759687000, "line_mean": 37.3090909091, "line_max": 67, "alpha_frac": 0.5951589938, "autogenerated": false, "ratio": 3.8170289855072466, "config_test": false, "...