text
stringlengths
0
1.05M
meta
dict
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from Web_App.models import Fir,general_diary,lookup_table from police.models import Stationdata from users.models import PanModel,VoterModel,RationModel,AadharModel from django.utils import timezon...
{ "repo_name": "Ghost-script/Online-FIR-General-Diary-lodging-System", "path": "Web_App/Web_App/views.py", "copies": "1", "size": "9453", "license": "mit", "hash": -363685814999529600, "line_mean": 34.4082397004, "line_max": 126, "alpha_frac": 0.6295355972, "autogenerated": false, "ratio": 3.51151...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from gulosity.apps.accounts.models import UserPrivacy from models import RestaurantPublic from gulosity.libs.decorators import need_real_auth def index(request): restaurants = RestaurantPub...
{ "repo_name": "wenshin/gulosity", "path": "gulosity/apps/restaurant/views.py", "copies": "1", "size": "1383", "license": "mit", "hash": -5581084041583180000, "line_mean": 28.4255319149, "line_max": 74, "alpha_frac": 0.6456977585, "autogenerated": false, "ratio": 3.747967479674797, "config_test"...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from .models import Organization from .forms import OrganizationForm @login_required def add(request): data = request.POST if request.POST else None form = OrganizationForm(data, user=re...
{ "repo_name": "vladimiroff/humble-media", "path": "humblemedia/organizations/views.py", "copies": "1", "size": "1557", "license": "mit", "hash": 2947971345552599600, "line_mean": 32.1276595745, "line_max": 79, "alpha_frac": 0.7039177906, "autogenerated": false, "ratio": 3.9618320610687023, "con...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import permission_required from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.translation import ugettext as _ from django.views.decorators.va...
{ "repo_name": "lojack/wagtail", "path": "wagtail/wagtailsearch/views/editorspicks.py", "copies": "6", "size": "5701", "license": "bsd-3-clause", "hash": 9218642283107913000, "line_mean": 37.7823129252, "line_max": 161, "alpha_frac": 0.6497105771, "autogenerated": false, "ratio": 3.937154696132596...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import permission_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from django...
{ "repo_name": "iho/wagtail", "path": "wagtail/wagtailredirects/views.py", "copies": "5", "size": "4817", "license": "bsd-3-clause", "hash": 7237364649252365000, "line_mean": 36.6328125, "line_max": 126, "alpha_frac": 0.6713722234, "autogenerated": false, "ratio": 4.068412162162162, "config_test...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import permission_required, user_passes_test from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from wagtail.wagtailcore.models import Site from wagtail.wagtailsites.forms i...
{ "repo_name": "KimGlazebrook/wagtail-experiment", "path": "wagtail/wagtailsites/views.py", "copies": "6", "size": "2532", "license": "bsd-3-clause", "hash": 2943270835560041500, "line_mean": 31.0506329114, "line_max": 95, "alpha_frac": 0.6275671406, "autogenerated": false, "ratio": 3.877488514548...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.forms import (UserCreationForm, PasswordChangeForm, SetPasswordForm) from django.contrib.auth import authenticate, login, get_user_model from django.contrib.auth.decorators import login_required from django.conf import setting...
{ "repo_name": "andersondss/LearningDjango", "path": "udemy/SimpleMooc/SimpleMooc/accounts/views.py", "copies": "1", "size": "3047", "license": "mit", "hash": 7620973434261237000, "line_mean": 30.412371134, "line_max": 76, "alpha_frac": 0.6632753528, "autogenerated": false, "ratio": 4.014492753623...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login, logout, password_validation from django.core.exceptions import ValidationError from django.utils.datastructures import MultiValueDictKeyError from django.contrib import messages from django.db import In...
{ "repo_name": "robotgear/robotgear", "path": "users/views.py", "copies": "1", "size": "11119", "license": "mit", "hash": -2616583906241294300, "line_mean": 37.3413793103, "line_max": 119, "alpha_frac": 0.6566237971, "autogenerated": false, "ratio": 4.161302395209581, "config_test": false, "ha...
from django.shortcuts import render,redirect, get_object_or_404 from django.contrib.auth import authenticate, login from django.http import HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.views.generic import TemplateView, FormView from django.contrib.auth.mixins import...
{ "repo_name": "Qlwentt/qually", "path": "jobs/views.py", "copies": "1", "size": "6187", "license": "mit", "hash": 7095178152138974000, "line_mean": 31.0621761658, "line_max": 131, "alpha_frac": 0.6820753192, "autogenerated": false, "ratio": 3.3227712137486574, "config_test": false, "has_no_ke...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login from django.views.generic import View, CreateView, UpdateView, DeleteView from .forms import UserForm from django.contrib.auth.decorators import login_required from django.contrib import messages from dj...
{ "repo_name": "geromath/ToDoMe", "path": "root/todolist/views.py", "copies": "1", "size": "8659", "license": "mit", "hash": -7598892879507116000, "line_mean": 31.7992424242, "line_max": 139, "alpha_frac": 0.6214343458, "autogenerated": false, "ratio": 3.8314159292035397, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login from django.views.generic import View from django.contrib.auth.models import User from .forms import UserForm from .models import UserProfile, Project, Tag from .search import get_query def Leaderboard...
{ "repo_name": "mclark4386/volunteer_connection", "path": "volunteerapp/views.py", "copies": "1", "size": "2628", "license": "mit", "hash": -7272221482681040000, "line_mean": 36.014084507, "line_max": 110, "alpha_frac": 0.6350837139, "autogenerated": false, "ratio": 3.981818181818182, "config_te...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import get_user_model from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.http import HttpResponse from treatment_sheets.forms import TxSheetForm, TxItemForm f...
{ "repo_name": "onnudilol/vetcalc", "path": "treatment_sheets/views.py", "copies": "1", "size": "7011", "license": "mit", "hash": -4029905826374374000, "line_mean": 30.4394618834, "line_max": 115, "alpha_frac": 0.6093281985, "autogenerated": false, "ratio": 3.7252922422954304, "config_test": fal...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import get_user_model from django.contrib.auth.decorators import permission_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib import messages from django.db.models import Q from ...
{ "repo_name": "helenwarren/pied-wagtail", "path": "wagtail/wagtailusers/views/users.py", "copies": "9", "size": "3721", "license": "bsd-3-clause", "hash": 8509628868345824000, "line_mean": 31.9292035398, "line_max": 146, "alpha_frac": 0.6320881483, "autogenerated": false, "ratio": 3.8360824742268...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import get_user_model from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.urlresolvers import reverse from django.db.models import Q from django.utils.translation import ugettext as _ from dja...
{ "repo_name": "WQuanfeng/wagtail", "path": "wagtail/wagtailusers/views/users.py", "copies": "11", "size": "4527", "license": "bsd-3-clause", "hash": 1932286944470578400, "line_mean": 35.216, "line_max": 150, "alpha_frac": 0.6313231721, "autogenerated": false, "ratio": 3.7725, "config_test": fal...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django.db.models import Q from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from wagtail.utils.pagi...
{ "repo_name": "JoshBarr/wagtail", "path": "wagtail/wagtailusers/views/users.py", "copies": "4", "size": "4425", "license": "bsd-3-clause", "hash": -6977796061269405000, "line_mean": 34.4, "line_max": 95, "alpha_frac": 0.609039548, "autogenerated": false, "ratio": 3.8952464788732395, "config_tes...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import login as user_login, logout as user_logout from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.urlresolvers import reverse_lazy from django.core.cache impor...
{ "repo_name": "raybesiga/congress", "path": "congress/conference/views.py", "copies": "1", "size": "3869", "license": "bsd-3-clause", "hash": -8568523803735404000, "line_mean": 29.4645669291, "line_max": 111, "alpha_frac": 0.5911088136, "autogenerated": false, "ratio": 4.021829521829522, "confi...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import Group from django.contrib.auth.decorators import permission_required, user_passes_test from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.urlresolvers import reverse from django...
{ "repo_name": "chimeno/wagtail", "path": "wagtail/wagtailusers/views/groups.py", "copies": "3", "size": "5092", "license": "bsd-3-clause", "hash": 5615066034737636000, "line_mean": 32.0649350649, "line_max": 97, "alpha_frac": 0.6304006284, "autogenerated": false, "ratio": 4.096540627514079, "co...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import Group from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.views.decorators.vary import ...
{ "repo_name": "rjsproxy/wagtail", "path": "wagtail/wagtailusers/views/groups.py", "copies": "11", "size": "4499", "license": "bsd-3-clause", "hash": 2178598698591185700, "line_mean": 32.8270676692, "line_max": 97, "alpha_frac": 0.625027784, "autogenerated": false, "ratio": 4.067811934900543, "c...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import Group from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from wagtail.utils.pagination import paginate from wagta...
{ "repo_name": "Tivix/wagtail", "path": "wagtail/wagtailusers/views/groups.py", "copies": "7", "size": "4268", "license": "bsd-3-clause", "hash": 4851226974884671000, "line_mean": 33.144, "line_max": 97, "alpha_frac": 0.6248828491, "autogenerated": false, "ratio": 4.0999039385206535, "config_tes...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from rest_framework import status from rest_framework.decorators import api_view...
{ "repo_name": "stvnrlly/thehichannel", "path": "his/views.py", "copies": "1", "size": "3524", "license": "cc0-1.0", "hash": -6147444015091796000, "line_mean": 32.8846153846, "line_max": 90, "alpha_frac": 0.6574914869, "autogenerated": false, "ratio": 3.8056155507559395, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import User from django.core.paginator import Paginator from quora.questions.models import Question from django.contrib.auth.decorators import login_required from quora.core.forms import ProfileForm, ChangePasswordForm from...
{ "repo_name": "econti/quora-clone", "path": "quora/core/views.py", "copies": "1", "size": "3572", "license": "mit", "hash": -4072196990262759000, "line_mean": 34.72, "line_max": 109, "alpha_frac": 0.6548152296, "autogenerated": false, "ratio": 3.903825136612022, "config_test": false, "has_no_...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import User from peekaboo.base.utils import superuser_required from peekaboo.main.models import Location from . import forms @superuser_required def home(request): context = {} if request.method == 'POST': ...
{ "repo_name": "peterbe/peekaboo", "path": "peekaboo/locations/views.py", "copies": "2", "size": "1760", "license": "mpl-2.0", "hash": 2108659765959061200, "line_mean": 29.3448275862, "line_max": 69, "alpha_frac": 0.6284090909, "autogenerated": false, "ratio": 3.981900452488688, "config_test": f...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.views.decorators.http import require_http_methods from django.conf import settings from django.db...
{ "repo_name": "tjcsl/director", "path": "web3/apps/vms/views.py", "copies": "1", "size": "6821", "license": "mit", "hash": 8814161518364027000, "line_mean": 34.5260416667, "line_max": 136, "alpha_frac": 0.6415481601, "autogenerated": false, "ratio": 3.6262626262626263, "config_test": false, "...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.translation import ugettext as _ from django.views.decorators.va...
{ "repo_name": "lojack/wagtail", "path": "wagtail/wagtailredirects/views.py", "copies": "6", "size": "4484", "license": "bsd-3-clause", "hash": 1885722761331359000, "line_mean": 35.4552845528, "line_max": 126, "alpha_frac": 0.6748438894, "autogenerated": false, "ratio": 4.025134649910234, "confi...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.forms import PasswordChangeForm, SetPasswordForm from django.contrib.auth.decorators import login_required from rest_framework.views import AP...
{ "repo_name": "VWApplications/VWCourses", "path": "accounts/views.py", "copies": "1", "size": "2743", "license": "mpl-2.0", "hash": -2036706998649355800, "line_mean": 28.4946236559, "line_max": 82, "alpha_frac": 0.7305869486, "autogenerated": false, "ratio": 3.778236914600551, "config_test": fa...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.contrib.auth import login, authenticate from django.views.generic import ListView, TemplateView, DetailView, View, FormView from django.views.generic.edit import CreateView, UpdateView, DeleteView from djang...
{ "repo_name": "itofchrz/gigsblog", "path": "apps/blog/views.py", "copies": "1", "size": "7018", "license": "mit", "hash": 6394736056782775000, "line_mean": 29.1201716738, "line_max": 105, "alpha_frac": 0.6526075805, "autogenerated": false, "ratio": 3.62687338501292, "config_test": false, "has...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import permission_required from django.core.exceptions import PermissionDenied from django.utils.translation i...
{ "repo_name": "willcodefortea/wagtail", "path": "wagtail/wagtaildocs/views/documents.py", "copies": "3", "size": "6017", "license": "bsd-3-clause", "hash": -709627917034164600, "line_mean": 33.5804597701, "line_max": 111, "alpha_frac": 0.6436762506, "autogenerated": false, "ratio": 4.049125168236...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.http import HttpResponse from django.core.servers.basehttp import FileWrapper import os from mimetypes import guess_type from .forms import DirectoryForm, FileForm from .models import Directory, File from...
{ "repo_name": "plumdog/mainstay_files", "path": "views.py", "copies": "1", "size": "2773", "license": "mit", "hash": 10534852311603456, "line_mean": 30.5113636364, "line_max": 78, "alpha_frac": 0.6693112153, "autogenerated": false, "ratio": 3.747297297297297, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.utils import timezone from parcel.forms import ClientForm, ParcelForm, LoadForm, ArrivalForm,\ SearchForm, StatusForm from parcel.models import Parcel from api.sms import send_message def format_numbe...
{ "repo_name": "boyombo/django-stations", "path": "stations/parcel/views.py", "copies": "1", "size": "4925", "license": "mit", "hash": 4028721565642557000, "line_mean": 34.1785714286, "line_max": 129, "alpha_frac": 0.5997969543, "autogenerated": false, "ratio": 3.823757763975155, "config_test": ...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.utils.translation import ugettext as _ from abdallah.models import Project def project(request, name): import time; time.sleep(3) project = get_object_or_404(Project.objects.filter(name=name)) ...
{ "repo_name": "ZuluPro/abdallah", "path": "abdallah/views.py", "copies": "1", "size": "1601", "license": "bsd-3-clause", "hash": 8426581450216423000, "line_mean": 35.3863636364, "line_max": 76, "alpha_frac": 0.6708307308, "autogenerated": false, "ratio": 3.4578833693304536, "config_test": false...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.utils.translation import ugettext as _ from proposal.forms import ProposalForm from proposal.models import Proposal def proposal_list(request): proposals = Proposal.objects.all().select_related() ...
{ "repo_name": "arscariosus/django-mango", "path": "mango/apps/proposal/views.py", "copies": "1", "size": "1727", "license": "isc", "hash": -6546291331225034000, "line_mean": 29.8392857143, "line_max": 77, "alpha_frac": 0.6213086277, "autogenerated": false, "ratio": 4.232843137254902, "config_te...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from events.forms import EventTemplateForm, EventTemplate from django.views.generic import View class EventTemplateEditView(View): template_name = "events/event_template_form.html" form_action = "Create" ...
{ "repo_name": "thiagoferreiraw/mixapp", "path": "events/views/edit_event_template_view.py", "copies": "1", "size": "1133", "license": "mit", "hash": 1536794186918339000, "line_mean": 40.962962963, "line_max": 93, "alpha_frac": 0.6716681377, "autogenerated": false, "ratio": 4.046428571428572, "c...
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from xyberville.apps.users.decorators import super_user_required from xyberville.apps.keluarga.models import Keluarga from xyberville.apps.logs.models import KeluargaLogs from .forms import KeluargaCreationForm, Keluarg...
{ "repo_name": "ahmadcahyana/xyberville", "path": "xyberville/backoffice/keluarga/views.py", "copies": "1", "size": "2788", "license": "mit", "hash": 7914108982337916000, "line_mean": 28.0416666667, "line_max": 78, "alpha_frac": 0.6359397418, "autogenerated": false, "ratio": 2.9071949947862357, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.exceptions import ObjectDoesNotExist, PermissionDenied from django.contrib.auth.decorators import login_required, permission_required from django.views.decorators.http import require_http_methods from django.contrib import messages from...
{ "repo_name": "KenN7/GentillesseApp", "path": "gentilesse/tracker/views.py", "copies": "1", "size": "3393", "license": "apache-2.0", "hash": -9102991786492551000, "line_mean": 25.7165354331, "line_max": 91, "alpha_frac": 0.6077217801, "autogenerated": false, "ratio": 3.696078431372549, "config_...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.exceptions import PermissionDenied from django.contrib.auth import logout, login, authenticate from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse, Http404 from .form_utilities ...
{ "repo_name": "harlanhaskins/QuoteMaker", "path": "QuoteMaker/quote/views.py", "copies": "2", "size": "7022", "license": "mit", "hash": 4788922712258193000, "line_mean": 33.7623762376, "line_max": 109, "alpha_frac": 0.6680432925, "autogenerated": false, "ratio": 4.001139601139601, "config_test"...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.exceptions import PermissionDenied from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from django.core.urlresolvers import reverse from wagtail.utils.pagination import paginate fro...
{ "repo_name": "hanpama/wagtail", "path": "wagtail/wagtaildocs/views/documents.py", "copies": "4", "size": "5830", "license": "bsd-3-clause", "hash": 8972159352739055000, "line_mean": 33.2941176471, "line_max": 124, "alpha_frac": 0.6319039451, "autogenerated": false, "ratio": 4.108527131782946, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import login_required from .models import Artist from .forms import ArtistForm, SearchForm def search_artists(request): form = SearchForm()...
{ "repo_name": "perna/bandhunter", "path": "artists/views.py", "copies": "1", "size": "2000", "license": "mit", "hash": -5877026886173112000, "line_mean": 27.1690140845, "line_max": 72, "alpha_frac": 0.6715, "autogenerated": false, "ratio": 3.6968576709796674, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import permission_required from django.core.exceptions import PermissionDenied from django.utils.translation import ugettext as _ from django.view...
{ "repo_name": "darith27/wagtail", "path": "wagtail/wagtaildocs/views/documents.py", "copies": "5", "size": "6491", "license": "bsd-3-clause", "hash": -6948013311219360000, "line_mean": 32.9842931937, "line_max": 124, "alpha_frac": 0.6273301494, "autogenerated": false, "ratio": 4.077261306532663, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.exceptions import PermissionDenied from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from django.core.urlre...
{ "repo_name": "WQuanfeng/wagtail", "path": "wagtail/wagtaildocs/views/documents.py", "copies": "11", "size": "6547", "license": "bsd-3-clause", "hash": -990093632092089000, "line_mean": 33.277486911, "line_max": 124, "alpha_frac": 0.6289903773, "autogenerated": false, "ratio": 4.071517412935323, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from django.core.urlresolvers import reverse from wagtail.wagtailadmin.ed...
{ "repo_name": "WQuanfeng/wagtail", "path": "wagtail/wagtailredirects/views.py", "copies": "10", "size": "4821", "license": "bsd-3-clause", "hash": 6852152495657133000, "line_mean": 37.2619047619, "line_max": 129, "alpha_frac": 0.675585978, "autogenerated": false, "ratio": 4.061499578770008, "co...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse_lazy from django.views.generic.list import ListView from django.views.generic import View from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.core.mail import EmailMessage from ...
{ "repo_name": "nasa/39A", "path": "spaceapps/registration/views.py", "copies": "1", "size": "5465", "license": "apache-2.0", "hash": -1728396610041952300, "line_mean": 34.7254901961, "line_max": 76, "alpha_frac": 0.5344922232, "autogenerated": false, "ratio": 5.229665071770335, "config_test": f...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.contrib.admin.views.decorators import staff_member_required from .models import Order, Product from .forms import OrderCreateForm from .tasks import order_created # Create your views here. def ord...
{ "repo_name": "pauljherrera/avantiweb", "path": "orders/views.py", "copies": "1", "size": "1085", "license": "mit", "hash": -1372924284102812700, "line_mean": 30, "line_max": 78, "alpha_frac": 0.7281105991, "autogenerated": false, "ratio": 3.3282208588957056, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.contrib.auth import authenticate, login, logout as auth_logout from django.views.generic import View from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.decorators import...
{ "repo_name": "henocdz/livelink", "path": "links/views.py", "copies": "1", "size": "2925", "license": "mit", "hash": -1197089718283067400, "line_mean": 25.3603603604, "line_max": 74, "alpha_frac": 0.7247863248, "autogenerated": false, "ratio": 3.2681564245810057, "config_test": false, "has_no...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.core.context_processors import csrf from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.contrib import messages from django.http...
{ "repo_name": "andela-uawili/django-bucketlist-application", "path": "bucketlist/dashboard/views.py", "copies": "1", "size": "12460", "license": "mit", "hash": 5528187366129042000, "line_mean": 29.9950248756, "line_max": 79, "alpha_frac": 0.6028089888, "autogenerated": false, "ratio": 4.265662444...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.core.exceptions import PermissionDenied from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import AnonymousUser, Permission, Group from .models import Team, ...
{ "repo_name": "lmorchard/django-teamwork", "path": "teamwork/shortcuts.py", "copies": "1", "size": "2703", "license": "mpl-2.0", "hash": -2533819541663746000, "line_mean": 35.04, "line_max": 75, "alpha_frac": 0.6063633, "autogenerated": false, "ratio": 3.8394886363636362, "config_test": false, ...
from django.shortcuts import render ,redirect,get_object_or_404 from django.core.urlresolvers import reverse from django.http import HttpResponse from django.contrib.auth import authenticate, login , logout from django.contrib.auth.decorators import login_required import json from .models import MyUser,Media import re ...
{ "repo_name": "MassyMeniche/Project_Y", "path": "WebSite/views.py", "copies": "1", "size": "8228", "license": "mit", "hash": -208198710939891840, "line_mean": 45.75, "line_max": 180, "alpha_frac": 0.6792659212, "autogenerated": false, "ratio": 3.329825981384055, "config_test": false, "has_no_...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group from .admin import ExperimentCreationForm, Sampl...
{ "repo_name": "fenglb/mysite", "path": "schedule/views.py", "copies": "1", "size": "12717", "license": "cc0-1.0", "hash": 3320282073413567000, "line_mean": 40.2966666667, "line_max": 107, "alpha_frac": 0.5864880136, "autogenerated": false, "ratio": 3.8836990595611285, "config_test": false, "h...
from django.shortcuts import render,redirect, get_object_or_404 from django.core.urlresolvers import reverse from .forms import LoginForm from django.http import HttpResponse from django.views.decorators.http import require_http_methods, require_GET, require_POST from django.contrib.auth.models import User from django....
{ "repo_name": "Diksha-Rathi/Smart-Bin-GHC", "path": "userDetails/views.py", "copies": "1", "size": "1574", "license": "mit", "hash": 8164231835932991000, "line_mean": 32.5106382979, "line_max": 88, "alpha_frac": 0.6880559085, "autogenerated": false, "ratio": 3.905707196029777, "config_test": fa...
from django.shortcuts import render, redirect, get_object_or_404 from django.core.urlresolvers import reverse from openiv.settings import * # Create your views here. def index(request): return redirect(reverse('public:event')) # Comment the above to have an independent home page. context = { 'imagesource': ...
{ "repo_name": "amoschou/openiv", "path": "public/views.py", "copies": "1", "size": "3942", "license": "mpl-2.0", "hash": 7215305885067329000, "line_mean": 44.2643678161, "line_max": 426, "alpha_frac": 0.6993397664, "autogenerated": false, "ratio": 3.3288250211327135, "config_test": false, "ha...
from django.shortcuts import render, redirect, get_object_or_404 from django.forms import ModelForm from django.core.exceptions import NON_FIELD_ERRORS from desafio.models import Solicitante, Teleconsultor, Solicitacao def home(request, template_name='home.html'): data = {} return render(request, template_na...
{ "repo_name": "vinigfer/desafio_telesaude", "path": "desafio/views.py", "copies": "1", "size": "5815", "license": "mit", "hash": -993182290433802900, "line_mean": 33.5654761905, "line_max": 89, "alpha_frac": 0.6478388152, "autogenerated": false, "ratio": 3.477245508982036, "config_test": false,...
from django.shortcuts import render, redirect, get_object_or_404 from django.forms import ModelForm from servers.models import Server class ServerForm(ModelForm): class Meta: model = Server fields = '__all__' # changed in 1.8.x def server_list(request, template_name='servers/server_list.html'): ...
{ "repo_name": "OckiFals/crud-django", "path": "servers/views.py", "copies": "1", "size": "1317", "license": "mit", "hash": 5693677063578776000, "line_mean": 33.6842105263, "line_max": 83, "alpha_frac": 0.6780561883, "autogenerated": false, "ratio": 3.7098591549295774, "config_test": false, "h...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import Http404, HttpResponse from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate, login, logout from django.db.models import F # Mimetypes for images from mimetypes import guess_type # ...
{ "repo_name": "kar288/jcollege", "path": "app/views.py", "copies": "1", "size": "10390", "license": "mit", "hash": 2477215707174940000, "line_mean": 31.5705329154, "line_max": 248, "alpha_frac": 0.6471607315, "autogenerated": false, "ratio": 3.5412406271301977, "config_test": false, "has_no_k...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from bootcamp.articles.models import Article, Tag, ArticleComment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.articles.forms import ArticleForm from dj...
{ "repo_name": "benchoufi/PRJ-medtec_sigproc", "path": "echopen-leaderboard/bootcamp/articles/views.py", "copies": "5", "size": "4702", "license": "mit", "hash": 7548166572674309000, "line_mean": 31.6527777778, "line_max": 103, "alpha_frac": 0.6137813696, "autogenerated": false, "ratio": 4.1907308...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from bootcamp.inventories.models import Inventory from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.inventories.forms import InventoryForm from django.contri...
{ "repo_name": "davismathew/netbot-django", "path": "bootcamp/inventories/views.py", "copies": "1", "size": "10362", "license": "mit", "hash": -6293218247369288000, "line_mean": 38.8538461538, "line_max": 197, "alpha_frac": 0.5957344142, "autogenerated": false, "ratio": 3.713978494623656, "confi...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from bootcamp.results.models import Result from bootcamp.tasks.models import Task from bootcamp.inventories.models import Inventory from django.core.paginator import Paginator, EmptyPage, PageNo...
{ "repo_name": "davismathew/netbot-django", "path": "bootcamp/results/views.py", "copies": "1", "size": "13545", "license": "mit", "hash": -6971165061994442000, "line_mean": 34.8333333333, "line_max": 197, "alpha_frac": 0.6213362865, "autogenerated": false, "ratio": 3.640150497178178, "config_te...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from bootcamp.tasks.models import Task from bootcamp.inventories.models import Inventory from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.tasks.forms import...
{ "repo_name": "davismathew/netbot-django", "path": "bootcamp/tasks/views.py", "copies": "1", "size": "7369", "license": "mit", "hash": 4473341052484371500, "line_mean": 33.1157407407, "line_max": 118, "alpha_frac": 0.5908535758, "autogenerated": false, "ratio": 3.6534457114526524, "config_test"...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from bootcamp.tasks.models import Task from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.tasks.forms import TaskForm from django.contrib.auth.decorators impo...
{ "repo_name": "davismathew/netbot-django", "path": "bootcamp/traceroute/views.py", "copies": "1", "size": "10645", "license": "mit", "hash": 8124859245447939000, "line_mean": 35.2074829932, "line_max": 184, "alpha_frac": 0.6495068107, "autogenerated": false, "ratio": 3.447215025906736, "config_...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.confcreator.forms import ConfCreatorForm from bootcamp.confcreator.models import ConfCreator from django.co...
{ "repo_name": "davismathew/netbot-django", "path": "bootcamp/confcreator/views.py", "copies": "1", "size": "13123", "license": "mit", "hash": 4070485079433713700, "line_mean": 39.6284829721, "line_max": 657, "alpha_frac": 0.6147222434, "autogenerated": false, "ratio": 3.460706751054852, "config...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseForbidden, HttpResponseBadRequest, HttpResponse from articles.models import Article, Tag, ArticleComment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from articles.forms import ArticleForm fr...
{ "repo_name": "kngeno/gis_kenya", "path": "apps/articles/views.py", "copies": "1", "size": "4463", "license": "mit", "hash": -6831228705686140000, "line_mean": 35.2926829268, "line_max": 126, "alpha_frac": 0.644857719, "autogenerated": false, "ratio": 4.042572463768116, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseForbidden, HttpResponseBadRequest, HttpResponse from bootcamp.articles.models import Article, Tag, ArticleComment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.articles.forms imp...
{ "repo_name": "maxpinto/Ptz", "path": "bootcamp/articles/views.py", "copies": "1", "size": "4877", "license": "mit", "hash": -482404861893829600, "line_mean": 36.5230769231, "line_max": 126, "alpha_frac": 0.6477342629, "autogenerated": false, "ratio": 4.0073952341824155, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseForbidden, HttpResponseBadRequest, HttpResponse from depotwork.articles.models import Article, Tag, ArticleComment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from depotwork.articles.forms i...
{ "repo_name": "lirui0081/depotwork", "path": "depotwork/articles/views.py", "copies": "1", "size": "4483", "license": "mit", "hash": -8064252626278186000, "line_mean": 35.4552845528, "line_max": 126, "alpha_frac": 0.6462190497, "autogenerated": false, "ratio": 4.049683830171635, "config_test": ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseForbidden from django.http import HttpResponse from django.utils.translation import ugettext as _ from flatblocks.models import FlatBlock from flatblocks.forms import FlatBlockForm def edit(request, pk, modelform_cla...
{ "repo_name": "Ecotrust/floodplain-restoration", "path": "dst/flatblocks/views.py", "copies": "1", "size": "2953", "license": "mit", "hash": -1448161833813608200, "line_mean": 38.3733333333, "line_max": 78, "alpha_frac": 0.6498476126, "autogenerated": false, "ratio": 4.414050822122571, "config_...
from django.shortcuts import render,redirect,get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, Http404, HttpResponseNotFound,QueryDict from django.core.urlresolvers import reverse, reverse_lazy from django.template.loader import render_to_string from django.db.models...
{ "repo_name": "kinsney/sport", "path": "bike/views.py", "copies": "1", "size": "14512", "license": "mit", "hash": 2386373335346058000, "line_mean": 40.4670487106, "line_max": 152, "alpha_frac": 0.574212272, "autogenerated": false, "ratio": 3.8726251003478724, "config_test": false, "has_no_key...
from django.shortcuts import render,redirect,get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, Http404, HttpResponseNotFound,QueryDict from .models import Order,Comments,Transaction from bike.models import Bike,Photo from participator.models import Participator from ...
{ "repo_name": "kinsney/sport", "path": "order/views.py", "copies": "1", "size": "6680", "license": "mit", "hash": 8098270220060456000, "line_mean": 43.5771812081, "line_max": 124, "alpha_frac": 0.6484492623, "autogenerated": false, "ratio": 3.5461825947677523, "config_test": false, "has_no_ke...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from bootcamp.feeds.models import Feed from bootcamp.activities.models import Activity, Notification from django.core.paginator import Paginator, EmptyPage, PageNotAnInteg...
{ "repo_name": "raphaelfruneaux/bootcamp", "path": "bootcamp/feeds/views.py", "copies": "8", "size": "5919", "license": "mit", "hash": -8860355859384524000, "line_mean": 31, "line_max": 88, "alpha_frac": 0.6323703328, "autogenerated": false, "ratio": 3.5421903052064634, "config_test": false, "...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from bootcamp.feeds.models import Feed from django.contrib.auth.models import User from bootcamp.activities.models import Activity, Notification from django.core.paginator...
{ "repo_name": "maxpinto/Ptz", "path": "bootcamp/feeds/views.py", "copies": "1", "size": "6045", "license": "mit", "hash": -3796913486551788000, "line_mean": 30.9894179894, "line_max": 88, "alpha_frac": 0.6340777502, "autogenerated": false, "ratio": 3.53302162478083, "config_test": false, "has...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from ception.feeds.models import Feed from ception.activities.models import Activity, Notification from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger...
{ "repo_name": "zyshin/Ception", "path": "ception/feeds/views.py", "copies": "1", "size": "5916", "license": "mit", "hash": -1570953768261529300, "line_mean": 30.9837837838, "line_max": 88, "alpha_frac": 0.632183908, "autogenerated": false, "ratio": 3.540394973070018, "config_test": false, "ha...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from depotwork.feeds.models import Feed from depotwork.activities.models import Activity, Notification from django.core.paginator import Paginator, EmptyPage, PageNotAnInt...
{ "repo_name": "lirui0081/depotwork", "path": "depotwork/feeds/views.py", "copies": "1", "size": "5923", "license": "mit", "hash": -9075700714414503000, "line_mean": 31.0216216216, "line_max": 88, "alpha_frac": 0.6324497721, "autogenerated": false, "ratio": 3.54458408138839, "config_test": false...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from feeds.models import Feed from activities.models import Activity, Notification from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.tem...
{ "repo_name": "kngeno/gis_kenya", "path": "apps/feeds/views.py", "copies": "1", "size": "5903", "license": "mit", "hash": -3292967851911312000, "line_mean": 30.9135135135, "line_max": 88, "alpha_frac": 0.6313738777, "autogenerated": false, "ratio": 3.538968824940048, "config_test": false, "ha...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseBadRequest from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.decorators import login_required from bootcamp.decorators import ajax_required from django.contr...
{ "repo_name": "mvfsilva/bootcamp", "path": "bootcamp/messages/views.py", "copies": "12", "size": "4028", "license": "mit", "hash": 9035282951922117000, "line_mean": 36.6542056075, "line_max": 106, "alpha_frac": 0.6638530288, "autogenerated": false, "ratio": 3.9412915851272015, "config_test": fa...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseForbidden from bootcamp.questions.models import Question, Answer from bootcamp.questions.forms import QuestionForm, AnswerForm from bootcamp.activities.models import Activity from django.db.models import Q...
{ "repo_name": "jroqueweb/bootcamp", "path": "bootcamp/questions/views.py", "copies": "8", "size": "4873", "license": "mit", "hash": 85897049097242060, "line_mean": 33.5602836879, "line_max": 140, "alpha_frac": 0.6698132567, "autogenerated": false, "ratio": 3.9975389663658736, "config_test": fal...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseForbidden from ception.questions.models import Question, Answer from ception.questions.forms import QuestionForm, AnswerForm from ception.activities.models import Activity from django.db.models import Q fr...
{ "repo_name": "zyshin/Ception", "path": "ception/questions/views.py", "copies": "1", "size": "4869", "license": "mit", "hash": 2108390265702129400, "line_mean": 33.5319148936, "line_max": 140, "alpha_frac": 0.6695420004, "autogenerated": false, "ratio": 3.9942575881870384, "config_test": false,...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseForbidden from depotwork.questions.models import Question, Answer from depotwork.questions.forms import QuestionForm, AnswerForm from depotwork.activities.models import Activity from django.db.models impor...
{ "repo_name": "lirui0081/depotwork", "path": "depotwork/questions/views.py", "copies": "1", "size": "4795", "license": "mit", "hash": -1447113214759908400, "line_mean": 35.3257575758, "line_max": 140, "alpha_frac": 0.6815432742, "autogenerated": false, "ratio": 3.9693708609271523, "config_test"...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseForbidden from questions.models import Question, Answer from questions.forms import QuestionForm, AnswerForm from activities.models import Activity from django.db.models import Q from django.contrib.auth.d...
{ "repo_name": "kngeno/gis_kenya", "path": "apps/questions/views.py", "copies": "1", "size": "4765", "license": "mit", "hash": 5374346157929701000, "line_mean": 35.0984848485, "line_max": 140, "alpha_frac": 0.6799580273, "autogenerated": false, "ratio": 3.964226289517471, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden from userprofile.forms import UserForm, UserProfileForm, MyLocationForm, FavPlacesForm from django.contrib.auth.decorators import login_required from django.contrib.auth.mod...
{ "repo_name": "dylanleong/mysite", "path": "userprofile/views.py", "copies": "1", "size": "4060", "license": "mit", "hash": -533291298033445400, "line_mean": 30.480620155, "line_max": 86, "alpha_frac": 0.6556650246, "autogenerated": false, "ratio": 3.6842105263157894, "config_test": false, "h...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django import template from django.template.loader import get_template from django.views.generic import View from blog.models.models import Person from blog.forms import PersonForm from djang...
{ "repo_name": "ajaycode/django1", "path": "blog/views.py", "copies": "1", "size": "3254", "license": "apache-2.0", "hash": 3812077420083288600, "line_mean": 32.8958333333, "line_max": 80, "alpha_frac": 0.6247695144, "autogenerated": false, "ratio": 3.9490291262135924, "config_test": false, "h...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from .forms import ImageUploadForm, ImageChoiceForm from .models import Image, Choice, TotalVotes from .serializers import ImageSerializer from numpy.random impor...
{ "repo_name": "notsambeck/siftsite", "path": "labeller/views.py", "copies": "1", "size": "3887", "license": "mit", "hash": -5753272469815888000, "line_mean": 31.6638655462, "line_max": 79, "alpha_frac": 0.6097247234, "autogenerated": false, "ratio": 3.9582484725050917, "config_test": false, "...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from .forms import RegisterForm, ProfileForm from django.contrib.auth import views, authenticate, login, get_user_model from django.contrib import messages from django.urls import reverse from dja...
{ "repo_name": "ploggingdev/ploghub", "path": "ploghubapp/views.py", "copies": "1", "size": "25118", "license": "mit", "hash": -4126935964560363500, "line_mean": 41.7921635434, "line_max": 195, "alpha_frac": 0.581973087, "autogenerated": false, "ratio": 4.223642172523961, "config_test": false, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from perspectivesx.forms import ActivityForm, LearnerForm, LearnerSubmissionItemForm, TemplateCreatorForm, TemplateItemForm, \ ItemCuratorForm, ItemChooseForm, deleteForm, AddLearnerSubmission...
{ "repo_name": "UQ-UQx/PerspectivesX", "path": "perspectivesx_project/perspectivesx/views.py", "copies": "1", "size": "35330", "license": "mit", "hash": -9148034861621743000, "line_mean": 44.7050452781, "line_max": 328, "alpha_frac": 0.6462213416, "autogenerated": false, "ratio": 4.091962010655548...
from django.shortcuts import render, redirect, get_object_or_404 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 django.core import serializ...
{ "repo_name": "avoajaugochukwu/suaveproject", "path": "staff/views.py", "copies": "1", "size": "6257", "license": "mit", "hash": -1295078997944608000, "line_mean": 21.6739130435, "line_max": 100, "alpha_frac": 0.7263864472, "autogenerated": false, "ratio": 3.1745306950786403, "config_test": fal...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, JsonResponse from django.views.generic.edit import FormView from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse_la...
{ "repo_name": "Ilias95/guitarchords", "path": "chords/views.py", "copies": "1", "size": "9157", "license": "mit", "hash": 2650047549214113000, "line_mean": 36.2235772358, "line_max": 88, "alpha_frac": 0.6266244403, "autogenerated": false, "ratio": 3.6093811588490343, "config_test": false, "ha...
from django.shortcuts import render,redirect,get_object_or_404 from django.http import HttpResponse,JsonResponse from .forms import ImageForm from .models import Image as img from .models import AccessKey from django.conf import settings import base64,os from PIL import Image from django.core.exceptions import ObjectD...
{ "repo_name": "hehaichi/django-imagemanagement", "path": "imagemanagement/views.py", "copies": "1", "size": "4528", "license": "mit", "hash": 3817391193058263600, "line_mean": 30.8873239437, "line_max": 139, "alpha_frac": 0.7239399293, "autogenerated": false, "ratio": 3.049158249158249, "config...
from django.shortcuts import render,redirect,get_object_or_404 from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate,login,logout def Index(request): return render(request,'Home/index.html') def Signup(request): #Se usa el metodo POST cu...
{ "repo_name": "kevotovar/Realty", "path": "modules/Home/views.py", "copies": "1", "size": "1838", "license": "mit", "hash": -2851170930017107000, "line_mean": 31.8214285714, "line_max": 102, "alpha_frac": 0.6026129559, "autogenerated": false, "ratio": 4.175, "config_test": false, "has_no_keyw...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse from django.contrib import messages # Create your views here. from .models import User, start_user_session, check_if_auth_user, stop_user_session from .mail import mail_send_to def check_login(request): if check_if_a...
{ "repo_name": "pandeydivesh15/item_sharing_portal", "path": "src/User/views.py", "copies": "1", "size": "3098", "license": "mit", "hash": 3162637334670518300, "line_mean": 29.99, "line_max": 83, "alpha_frac": 0.6936733376, "autogenerated": false, "ratio": 3.110441767068273, "config_test": false...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse from django.contrib import messages # Create your views here. from User.models import User, check_if_auth_user from .models import Chat # def recv_chat(request, id = None): # check = check_if_auth_user(request) # if...
{ "repo_name": "pandeydivesh15/item_sharing_portal", "path": "src/chat_start/views.py", "copies": "1", "size": "1808", "license": "mit", "hash": -6699987483744186000, "line_mean": 33.7692307692, "line_max": 82, "alpha_frac": 0.6814159292, "autogenerated": false, "ratio": 2.825, "config_test": fa...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse from django.template import loader from .models import Todo import operator import string import sys from datetime import datetime # Create your views here. def index(request): todos = Todo.objects.all() templ...
{ "repo_name": "SozialeNetzwerke2016/Hausaufgabe2", "path": "Hausaufgabe2/todoApp/views.py", "copies": "1", "size": "2813", "license": "mit", "hash": 3552080433428777000, "line_mean": 29.9120879121, "line_max": 166, "alpha_frac": 0.6363313189, "autogenerated": false, "ratio": 3.430487804878049, ...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse from django.template import RequestContext, loader from django.core.urlresolvers import reverse from django.contrib.contenttypes.models import ContentType from nodemanager.models import ConceptNode from ranking.models...
{ "repo_name": "kevincwebb/conceptum", "path": "conceptum/ranking/views.py", "copies": "1", "size": "5622", "license": "bsd-3-clause", "hash": 5978967477899209000, "line_mean": 33.2804878049, "line_max": 109, "alpha_frac": 0.5926716471, "autogenerated": false, "ratio": 4.2785388127853885, "confi...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseRedirect from apps.accounts.forms import CreateAccountForm from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from apps.accounts.forms import ProfileForm from apps.acco...
{ "repo_name": "tiradoe/fourteeners-updated", "path": "fourteeners/apps/accounts/views.py", "copies": "1", "size": "2975", "license": "mit", "hash": 8928522043649879000, "line_mean": 28.4554455446, "line_max": 66, "alpha_frac": 0.6638655462, "autogenerated": false, "ratio": 3.588661037394451, "c...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import JsonResponse, Http404 from django.urls import reverse from django.utils import timezone from django.conf import settings from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required ...
{ "repo_name": "greenstatic/maas-reservation-system", "path": "maas_reservation_system/reservation_system/views.py", "copies": "1", "size": "17504", "license": "mit", "hash": 6788959981041803000, "line_mean": 39.0549199085, "line_max": 188, "alpha_frac": 0.6452239488, "autogenerated": false, "rati...
from django.shortcuts import render, redirect, get_object_or_404 from django.http import JsonResponse from pcs.models.extern_data_models import Param from pcs.models.report_models import Report from pcs.forms import ChooseReportForm def index(request): params = Param.objects.all() context = {'params': params...
{ "repo_name": "Igelinmist/etools", "path": "etools/apps/pcs/views.py", "copies": "1", "size": "1687", "license": "bsd-3-clause", "hash": -5753873753829546000, "line_mean": 32.9166666667, "line_max": 120, "alpha_frac": 0.6523341523, "autogenerated": false, "ratio": 3.0429906542056075, "config_te...
from django.shortcuts import render, redirect, get_object_or_404 from django import forms from meibos.models import Meibo, Gendar, Busyo class MeiboForm(forms.ModelForm): dob = forms.DateField( widget=forms.DateInput(attrs={'type':'date'})) class Meta: model = Meibo def index(request): d...
{ "repo_name": "tshm/django_meibo_experiment", "path": "meibos/views.py", "copies": "1", "size": "1096", "license": "mit", "hash": 8211544814290176000, "line_mean": 27.8421052632, "line_max": 65, "alpha_frac": 0.6414233577, "autogenerated": false, "ratio": 3.271641791044776, "config_test": false...
from django.shortcuts import render, redirect, get_object_or_404 from django.template import * from django.conf import settings from django.template import Template, Library from django_tables2 import RequestConfig from django.core.urlresolvers import reverse from mmg.jobtrak.core.tables import * from mmg.jobtrak.core ...
{ "repo_name": "MarconiMediaGroup/JobTrak", "path": "web/code/mmg/jobtrak/core/views.py", "copies": "1", "size": "1510", "license": "apache-2.0", "hash": -1843321554914890500, "line_mean": 35.8292682927, "line_max": 73, "alpha_frac": 0.6913907285, "autogenerated": false, "ratio": 3.728395061728395...
from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required, permission_required from django.views.decorators.http import require_safe, require_POST from dj...
{ "repo_name": "ivandeex/dz", "path": "dz/tables/views.py", "copies": "1", "size": "7296", "license": "mit", "hash": 375730512208320260, "line_mean": 35.1188118812, "line_max": 88, "alpha_frac": 0.6313048246, "autogenerated": false, "ratio": 3.764705882352941, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from mainmodels.models import Course, Category, FeaturedCourse, Transaction # Create your views here. def browseIndex(req): categories = Category....
{ "repo_name": "PNNutkung/Coursing-Field", "path": "browse/views.py", "copies": "1", "size": "4676", "license": "apache-2.0", "hash": 2561680139420164000, "line_mean": 81.0526315789, "line_max": 380, "alpha_frac": 0.753421728, "autogenerated": false, "ratio": 3.67032967032967, "config_test": fal...
from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse from mainmodels.models import * from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.model...
{ "repo_name": "PNNutkung/Coursing-Field", "path": "course/views.py", "copies": "1", "size": "16257", "license": "apache-2.0", "hash": -8377633351698427000, "line_mean": 50.2839116719, "line_max": 376, "alpha_frac": 0.648889709, "autogenerated": false, "ratio": 3.9545122841157867, "config_test":...
from django.shortcuts import render, redirect, get_object_or_404 from django.utils import timezone from django.contrib.auth.decorators import login_required from .models import Post, Comment from .forms import PostForm, CommentForm def post_list(request): posts = Post.objects.filter( published_dat...
{ "repo_name": "volkandkaya/djangogirls", "path": "blog/views.py", "copies": "1", "size": "2872", "license": "apache-2.0", "hash": 3054198298308258000, "line_mean": 29.5531914894, "line_max": 85, "alpha_frac": 0.6465877437, "autogenerated": false, "ratio": 3.4436450839328536, "config_test": fals...
from django.shortcuts import render, redirect, get_object_or_404 from django.utils import timezone from .models import DropCard, BuildCard from .forms import DropCardForm, BuildCardForm def index(request): return render(request, 'kcacmemo/index.html') def drop_list(request): dropcards = DropCard.objects.filt...
{ "repo_name": "mimikun/KCAC_Memo", "path": "kcacmemo/views.py", "copies": "1", "size": "1141", "license": "mit", "hash": 4135861077827485000, "line_mean": 26.8292682927, "line_max": 90, "alpha_frac": 0.6844872918, "autogenerated": false, "ratio": 3.4059701492537315, "config_test": false, "has...
from django.shortcuts import render, redirect, get_object_or_404 from django.utils import timezone from .models import Post from .forms import PostForm # Create your views here. def post_list(request): posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date') return render(requ...
{ "repo_name": "hansnoordhof/my-first-blog", "path": "blog/views.py", "copies": "1", "size": "1704", "license": "apache-2.0", "hash": 6161053310287664000, "line_mean": 36.0434782609, "line_max": 94, "alpha_frac": 0.6361502347, "autogenerated": false, "ratio": 3.527950310559006, "config_test": fa...
from django.shortcuts import render, redirect, get_object_or_404 from django.utils import timezone from .models import Post from .forms import PostForm def post_list(request): posts = Post.objects.order_by('-published_date') return render(request, 'blog/post_list.html', {'posts': posts}) def post_detail(reque...
{ "repo_name": "New-Village/lab-apps", "path": "blog/views.py", "copies": "1", "size": "1431", "license": "mit", "hash": -2592167185718497300, "line_mean": 34.775, "line_max": 67, "alpha_frac": 0.6135569532, "autogenerated": false, "ratio": 3.6412213740458017, "config_test": false, "has_no_key...
from django.shortcuts import render, redirect, get_object_or_404 from django.utils.translation import get_language from django import http from tekis.flatpages.models import LocalFlatpage, PAGE, PAGE_SEPARATOR def flatpage(request, url): lang = get_language() try: page = LocalFlatpage.objects.get( ...
{ "repo_name": "hylje/tekis", "path": "tekis/flatpages/views.py", "copies": "1", "size": "1296", "license": "bsd-3-clause", "hash": -6169571388981656000, "line_mean": 32.2307692308, "line_max": 80, "alpha_frac": 0.5979938272, "autogenerated": false, "ratio": 4.207792207792208, "config_test": fal...