text
stringlengths
0
1.05M
meta
dict
from django.urls import path from . import views from realms.backends.ldap.urls import urlpatterns as ldap_urlpatterns from realms.backends.saml.urls import urlpatterns as saml_urlpatterns from realms.backends.openidc.urls import urlpatterns as openidc_urlpatterns app_name = "realms" urlpatterns = [ path('', view...
{ "repo_name": "zentralopensource/zentral", "path": "server/realms/urls.py", "copies": "1", "size": "1597", "license": "apache-2.0", "hash": -204405965685990270, "line_mean": 35.2954545455, "line_max": 93, "alpha_frac": 0.6712586099, "autogenerated": false, "ratio": 3.6797235023041477, "config_t...
from django.urls import path from . import views urlpatterns = [ # Homepage path('', views.index, name='index'), # Legal notice path('impressum', views.legal_notice, name='impressum'), # Church Service path('worship', views.worship, name='worship'), path('supergemeinde', views.sunday_scho...
{ "repo_name": "0neStone/charisma-ev", "path": "ch_website/main_website/urls.py", "copies": "1", "size": "1156", "license": "apache-2.0", "hash": -4856585977700320000, "line_mean": 32.0285714286, "line_max": 69, "alpha_frac": 0.6539792388, "autogenerated": false, "ratio": 3.284090909090909, "con...
# from django.urls import path # from invoices.views import * # app_name = "invoices" # urlpatterns = [ # path("", invoices_list, name="invoices_list"), # path("create/", invoices_create, name="invoices_create"), # path("detail/<int:invoice_id>/", invoice_details, name="invoice_details"), # path("edi...
{ "repo_name": "MicroPyramid/Django-CRM", "path": "invoices/urls.py", "copies": "1", "size": "1454", "license": "mit", "hash": -3917109412634084400, "line_mean": 43.0606060606, "line_max": 89, "alpha_frac": 0.6299862448, "autogenerated": false, "ratio": 3.274774774774775, "config_test": false, ...
from django.urls import path from referral.models import Referral, Record, Task from referral import views # URL patterns for Referral objects urlpatterns = [ path("referrals/create/", views.ReferralCreate.as_view(), name="referral_create"), path("referrals/recent/", views.ReferralRecent.as_view(), name="refe...
{ "repo_name": "ropable/prs", "path": "prs2/referral/urls.py", "copies": "2", "size": "4456", "license": "apache-2.0", "hash": 3760070792667878000, "line_mean": 69.7301587302, "line_max": 142, "alpha_frac": 0.7030969479, "autogenerated": false, "ratio": 3.2336719883889695, "config_test": false, ...
from django.urls import path from .views import * urlpatterns = [ path('add', AddSource.as_view(), name='add'), path('detail/<int:pk>', SourceDetail.as_view(), name='detail'), path('edit/<int:pk>', SourceEdit.as_view(), name='edit'), path('<int:pk>/delete', DeleteView.as_view(), name='delete'), pat...
{ "repo_name": "WebArchivCZ/Seeder", "path": "Seeder/source/urls.py", "copies": "1", "size": "1162", "license": "mit", "hash": -6496708168524113000, "line_mean": 47.4166666667, "line_max": 74, "alpha_frac": 0.6583476764, "autogenerated": false, "ratio": 3.7124600638977636, "config_test": false, ...
from django.urls import path from dcim.views import CableCreateView, CableTraceView from extras.views import ObjectChangeLogView from . import views from .models import Circuit, CircuitTermination, CircuitType, Provider app_name = 'circuits' urlpatterns = [ # Providers path(r'providers/', views.ProviderListV...
{ "repo_name": "lampwins/netbox", "path": "netbox/circuits/urls.py", "copies": "1", "size": "3579", "license": "apache-2.0", "hash": 3953209115769233400, "line_mean": 70.58, "line_max": 204, "alpha_frac": 0.7323274658, "autogenerated": false, "ratio": 3.421606118546845, "config_test": false, "...
from django.urls import path from dcim.views import CableCreateView, PathTraceView from extras.views import ObjectChangeLogView from . import views from .models import Circuit, CircuitTermination, CircuitType, Provider app_name = 'circuits' urlpatterns = [ # Providers path('providers/', views.ProviderListVie...
{ "repo_name": "digitalocean/netbox", "path": "netbox/circuits/urls.py", "copies": "1", "size": "3659", "license": "apache-2.0", "hash": -189917318782265340, "line_mean": 72.18, "line_max": 203, "alpha_frac": 0.7297075704, "autogenerated": false, "ratio": 3.590775269872424, "config_test": false,...
from django.urls import path from extras import views from extras.models import ConfigContext, Tag app_name = 'extras' urlpatterns = [ # Tags path('tags/', views.TagListView.as_view(), name='tag_list'), path('tags/add/', views.TagEditView.as_view(), name='tag_add'), path('tags/import/', views.TagBul...
{ "repo_name": "digitalocean/netbox", "path": "netbox/extras/urls.py", "copies": "1", "size": "2766", "license": "apache-2.0", "hash": 308793152583541950, "line_mean": 56.625, "line_max": 150, "alpha_frac": 0.7028199566, "autogenerated": false, "ratio": 3.564432989690722, "config_test": true, ...
from django.urls import path from extras.views import ObjectChangeLogView from . import views from .models import Aggregate, IPAddress, Prefix, RIR, Role, RouteTarget, Service, VLAN, VLANGroup, VRF app_name = 'ipam' urlpatterns = [ # VRFs path('vrfs/', views.VRFListView.as_view(), name='vrf_list'), path(...
{ "repo_name": "digitalocean/netbox", "path": "netbox/ipam/urls.py", "copies": "1", "size": "8769", "license": "apache-2.0", "hash": -3110921615335921700, "line_mean": 72.075, "line_max": 138, "alpha_frac": 0.6965446459, "autogenerated": false, "ratio": 3.4320939334637965, "config_test": false, ...
from django.urls import path from extras.views import ObjectChangeLogView from . import views from .models import Tenant, TenantGroup app_name = 'tenancy' urlpatterns = [ # Tenant groups path('tenant-groups/', views.TenantGroupListView.as_view(), name='tenantgroup_list'), path('tenant-groups/add/', views...
{ "repo_name": "digitalocean/netbox", "path": "netbox/tenancy/urls.py", "copies": "1", "size": "1785", "license": "apache-2.0", "hash": -1582975658243075600, "line_mean": 58.5, "line_max": 141, "alpha_frac": 0.7165266106, "autogenerated": false, "ratio": 3.548707753479125, "config_test": false, ...
from django.urls import path from extras.views import ObjectChangeLogView from ipam.views import ServiceCreateView from . import views from .models import Cluster, ClusterGroup, ClusterType, VirtualMachine app_name = 'virtualization' urlpatterns = [ # Cluster types path(r'cluster-types/', views.ClusterTypeLi...
{ "repo_name": "lampwins/netbox", "path": "netbox/virtualization/urls.py", "copies": "1", "size": "4792", "license": "apache-2.0", "hash": -6424333257791456000, "line_mean": 77.5573770492, "line_max": 148, "alpha_frac": 0.7393572621, "autogenerated": false, "ratio": 3.622071050642479, "config_te...
from django.urls import path from .feeds import FBInstantArticles, LatestEntriesFeed, TagFeed from .settings import get_setting from .views import ( AuthorEntriesView, CategoryEntriesView, PostArchiveView, PostDetailView, PostListView, TaggedListView, ) def get_urls(): urls = get_setting(...
{ "repo_name": "nephila/djangocms-blog", "path": "djangocms_blog/urls.py", "copies": "1", "size": "1338", "license": "bsd-3-clause", "hash": -7807171889957549000, "line_mean": 33.3076923077, "line_max": 91, "alpha_frac": 0.6718983558, "autogenerated": false, "ratio": 3.5396825396825395, "config_...
from django.urls import path from .feeds import json_availability_feed, json_lesson_feed from .views import ( BookPrivateLessonView, PrivateLessonStudentInfoView, InstructorAvailabilityView, AddAvailabilitySlotView, UpdateAvailabilitySlotView ) urlpatterns = [ # JSON private lesson availability feeds ...
{ "repo_name": "django-danceschool/django-danceschool", "path": "danceschool/private_lessons/urls.py", "copies": "1", "size": "1961", "license": "bsd-3-clause", "hash": -2065344449186332200, "line_mean": 44.6046511628, "line_max": 113, "alpha_frac": 0.7210606833, "autogenerated": false, "ratio": 3...
from django.urls import path from grandchallenge.algorithms.forms import algorithm_upload_widget from grandchallenge.algorithms.views import ( AlgorithmList, AlgorithmCreate, AlgorithmDetail, AlgorithmExecutionSessionCreate, ) from grandchallenge.cases.forms import upload_raw_files_widget app_name = "...
{ "repo_name": "comic/comic-django", "path": "app/grandchallenge/algorithms/urls.py", "copies": "1", "size": "1024", "license": "apache-2.0", "hash": 6213699646599730000, "line_mean": 30.0303030303, "line_max": 70, "alpha_frac": 0.67578125, "autogenerated": false, "ratio": 3.893536121673004, "co...
from django.urls import path from grandchallenge.cases.forms import upload_raw_files_widget from grandchallenge.datasets.forms import labels_upload_widget from grandchallenge.datasets.views import ( ImageSetList, ImageSetDetail, AddImagesToImageSet, ImageSetUpdate, AnnotationSetList, Annotation...
{ "repo_name": "comic/comic-django", "path": "app/grandchallenge/datasets/urls.py", "copies": "1", "size": "2206", "license": "apache-2.0", "hash": 8187759879449981000, "line_mean": 28.0263157895, "line_max": 80, "alpha_frac": 0.6273798731, "autogenerated": false, "ratio": 3.751700680272109, "co...
from django.urls import path from grandchallenge.workstations.forms import workstation_image_upload_widget from grandchallenge.workstations.views import ( WorkstationList, WorkstationCreate, WorkstationDetail, WorkstationUpdate, WorkstationImageCreate, WorkstationImageDetail, SessionCreate,...
{ "repo_name": "comic/comic-django", "path": "app/grandchallenge/workstations/urls.py", "copies": "1", "size": "1750", "license": "apache-2.0", "hash": 2094507166316795600, "line_mean": 25.9230769231, "line_max": 83, "alpha_frac": 0.6057142857, "autogenerated": false, "ratio": 3.854625550660793, ...
from django.urls import path from . import views urlpatterns = [ path("", views.CaseListView.as_view(), name="list"), path("sprawa-<int:pk>/edytuj/", views.CaseUpdateView.as_view(), name="edit"), path("sprawa-<int:pk>/zamknij/", views.CaseCloseView.as_view(), name="close"), path( "sprawa-<int:...
{ "repo_name": "rwakulszowa/poradnia", "path": "poradnia/cases/urls.py", "copies": "3", "size": "1077", "license": "mit", "hash": -4216393008038867000, "line_mean": 31.6363636364, "line_max": 82, "alpha_frac": 0.6239554318, "autogenerated": false, "ratio": 3.1958456973293767, "config_test": fals...
from django.urls import path from members.views.ajax_views import ( ajax_people, ajax_person, ajax_adults, ajax_password, ajax_postcode, ajax_dob, ajax_set_pin, ajax_task_status, ) from members.views.billing_views import BillingView, SetYearView, FinanceAnalysisView, YearEndView from me...
{ "repo_name": "ianastewart/cwltc-admin", "path": "members/urls.py", "copies": "1", "size": "11605", "license": "mit", "hash": 1662658050983578600, "line_mean": 45.235059761, "line_max": 109, "alpha_frac": 0.6996122361, "autogenerated": false, "ratio": 3.4273479031305376, "config_test": false, ...
from django.urls import path from paypal.express_checkout import views from paypal.express_checkout.gateway import buyer_pays_on_paypal base_patterns = [ # Views for normal flow that starts on the basket page path('redirect/', views.PaypalRedirectView.as_view(), name='express-checkout-redirect'), path('ca...
{ "repo_name": "lpakula/django-oscar-paypal", "path": "paypal/express_checkout/urls.py", "copies": "3", "size": "1270", "license": "bsd-3-clause", "hash": -1947951186102077000, "line_mean": 35.2857142857, "line_max": 92, "alpha_frac": 0.7047244094, "autogenerated": false, "ratio": 3.43243243243243...
from django.urls import path from ..views.content import ( ApproveContribute, Contribute, Create, Detail, Embed, RejectContribute, TreeDetail, Update ) urlpatterns = [ path("embed/@<username>/<permlink>/", Embed.as_view(), name="embed"), path("@<username>/<permlink>/", Detail.as_view(), name="content-...
{ "repo_name": "hakancelik96/coogger", "path": "core/cooggerapp/urls/content.py", "copies": "1", "size": "1059", "license": "mit", "hash": -1990375002412829200, "line_mean": 31.0909090909, "line_max": 81, "alpha_frac": 0.6024551464, "autogenerated": false, "ratio": 3.5777027027027026, "config_te...
from django.urls import path from .views import flowchart, processinstance from .views.list import ListWF, MyWF, Todo from .views.transition import ( AddAssigneeView, BatchExecuteAgreeTransitionView, BatchExecuteGiveUpTransitionView, BatchExecuteRejectTransitionView, ExecuteAgreeTransitionView, ...
{ "repo_name": "vicalloy/django-lb-workflow", "path": "lbworkflow/urls.py", "copies": "1", "size": "2577", "license": "mit", "hash": -1751068241815492900, "line_mean": 33.36, "line_max": 79, "alpha_frac": 0.6321303842, "autogenerated": false, "ratio": 3.4268617021276597, "config_test": false, ...
from django.urls import path from .views import index, new_campaign, campaign_detail, campaign_edit, \ new_character, character_list, character_detail, character_edit, \ new_faction, faction_list, faction_detail, faction_edit, \ new_item, item_list, item_detail, item_edit, \ new_location, location_list...
{ "repo_name": "devenney/reverie", "path": "campaign/urls.py", "copies": "1", "size": "2416", "license": "mit", "hash": 2927677885678704600, "line_mean": 55.1860465116, "line_max": 101, "alpha_frac": 0.6825331126, "autogenerated": false, "ratio": 3.6167664670658684, "config_test": false, "has_...
from django.urls import path from .views import ( EventRegistrationSummaryView, EventRegistrationSelectView, EventRegistrationJsonView, ) from .classreg import ( RegistrationOfflineView, ClassRegistrationView, SingleClassRegistrationView, ClassRegistrationReferralView, RegistrationSummaryView, Student...
{ "repo_name": "django-danceschool/django-danceschool", "path": "danceschool/core/urls_registration.py", "copies": "1", "size": "2676", "license": "bsd-3-clause", "hash": -8876085855963021000, "line_mean": 40.1692307692, "line_max": 108, "alpha_frac": 0.7186098655, "autogenerated": false, "ratio":...
from django.urls import path from wagtail.admin.views import workflows app_name = 'wagtailadmin_workflows' urlpatterns = [ path('list/', workflows.Index.as_view(), name='index'), path('add/', workflows.Create.as_view(), name='add'), path('enable/<int:pk>/', workflows.enable_workflow, name='enable'), ...
{ "repo_name": "kaedroho/wagtail", "path": "wagtail/admin/urls/workflows.py", "copies": "9", "size": "1368", "license": "bsd-3-clause", "hash": 8214672890588017000, "line_mean": 56, "line_max": 105, "alpha_frac": 0.6717836257, "autogenerated": false, "ratio": 3.241706161137441, "config_test": fa...
from django.urls import path from wagtail.images.views import chooser, images, multiple app_name = 'wagtailimages' urlpatterns = [ path('', images.IndexView.as_view(), name='index'), path('results/', images.ListingResultsView.as_view(), name='listing_results'), path('<int:image_id>/', images.edit, name='...
{ "repo_name": "zerolab/wagtail", "path": "wagtail/images/admin_urls.py", "copies": "5", "size": "1667", "license": "bsd-3-clause", "hash": 7004571426115269000, "line_mean": 58.5357142857, "line_max": 165, "alpha_frac": 0.6940611878, "autogenerated": false, "ratio": 3.451345755693582, "config_te...
from django.urls import path from wagtail.snippets.views import chooser, snippets app_name = 'wagtailsnippets' urlpatterns = [ path('', snippets.index, name='index'), path('choose/', chooser.choose, name='choose_generic'), path('choose/<slug:app_label>/<slug:model_name>/', chooser.choose, name='choose')...
{ "repo_name": "wagtail/wagtail", "path": "wagtail/snippets/urls.py", "copies": "5", "size": "1563", "license": "bsd-3-clause", "hash": -4329642320356258300, "line_mean": 51.1, "line_max": 105, "alpha_frac": 0.669865643, "autogenerated": false, "ratio": 3.4052287581699345, "config_test": false, ...
from django.urls import path, register_converter from django.urls.converters import StringConverter from django.views.generic import RedirectView from . import views class EmailConverter(StringConverter): regex = r"[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}" class UsernameConverter(StringConverter): regex = r...
{ "repo_name": "mathjazz/pontoon", "path": "pontoon/contributors/urls.py", "copies": "2", "size": "2700", "license": "bsd-3-clause", "hash": 921157805753939000, "line_mean": 30.0344827586, "line_max": 87, "alpha_frac": 0.6562962963, "autogenerated": false, "ratio": 4.029850746268656, "config_tes...
from django.urls import path, re_path, include from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from django.urls.base import reverse_lazy from django.views.generic import RedirectView from django.conf.urls.i18n import i18n_patterns from www import news_admin_...
{ "repo_name": "WebArchivCZ/Seeder", "path": "Seeder/urls.py", "copies": "1", "size": "3201", "license": "mit", "hash": -1759377389582294300, "line_mean": 39.0125, "line_max": 100, "alpha_frac": 0.6610434239, "autogenerated": false, "ratio": 3.5566666666666666, "config_test": false, "has_no_ke...
from django.urls import path, re_path, include from .ajax_util import get_all_ajax_functions from .views import ( get_boxes_codes, get_clerk_codes, get_counter_commands, checkout_view, overseer_view, vendor_view, accept_terms, get_items, all_to_print, item_add, item_hide, ...
{ "repo_name": "jlaunonen/kirppu", "path": "kirppu/urls.py", "copies": "1", "size": "3576", "license": "mit", "hash": -5245580837678435000, "line_mean": 37.8695652174, "line_max": 100, "alpha_frac": 0.6711409396, "autogenerated": false, "ratio": 2.9949748743718594, "config_test": false, "has_n...
from django.urls import path, re_path from cradmin_legacy.apps.cradmin_resetpassword.views.begin import BeginPasswordResetView from cradmin_legacy.apps.cradmin_resetpassword.views.email_sent import EmailSentView from cradmin_legacy.apps.cradmin_resetpassword.views.reset import ResetPasswordView urlpatterns = [ pa...
{ "repo_name": "devilry/devilry-django", "path": "devilry/devilry_resetpassword/urls.py", "copies": "1", "size": "1316", "license": "bsd-3-clause", "hash": 618557894012712300, "line_mean": 36.6, "line_max": 90, "alpha_frac": 0.7082066869, "autogenerated": false, "ratio": 3.331645569620253, "conf...
from django.urls import path, re_path from django.conf import settings from django.contrib.auth import views as auth_views urlpatterns = [ re_path( 'login/', auth_views.LoginView.as_view(template_name='dj_auth/login.html'), name='login'), re_path( 'logout/', auth_views....
{ "repo_name": "mava-ar/sgk", "path": "src/dj_auth/urls.py", "copies": "1", "size": "1618", "license": "apache-2.0", "hash": 6913949425628375000, "line_mean": 38.4634146341, "line_max": 107, "alpha_frac": 0.631025958, "autogenerated": false, "ratio": 3.392033542976939, "config_test": false, "h...
from django.urls import path, re_path from django.contrib.auth.views import LogoutView from . import views app_name = 'account_app' urlpatterns = [ path('', views.AccountsListView.as_view(), name='accounts_list'), path('login/', views.CustomLoginView.as_view(), name='login'), path('logout/', LogoutView.a...
{ "repo_name": "bashmak/djing", "path": "accounts_app/urls.py", "copies": "2", "size": "1691", "license": "unlicense", "hash": -4869600595702651000, "line_mean": 47.3142857143, "line_max": 143, "alpha_frac": 0.6712004731, "autogenerated": false, "ratio": 3.2707930367504834, "config_test": false,...
from django.urls import path, re_path from django.contrib import admin from .feeds import EventFeed, json_event_feed from .views import ( SubmissionRedirectView, InstructorStatsView, OtherInstructorStatsView, IndividualClassView, IndividualPublicEventView, StaffDirectoryView, EmailConfirmationView, SendEma...
{ "repo_name": "django-danceschool/django-danceschool", "path": "danceschool/core/urls.py", "copies": "1", "size": "7745", "license": "bsd-3-clause", "hash": 2875466746237012000, "line_mean": 47.40625, "line_max": 114, "alpha_frac": 0.7065203357, "autogenerated": false, "ratio": 3.8171513060620996...
from django.urls import path, re_path from django.views.decorators.csrf import csrf_exempt from paypal.express import views from paypal.express.gateway import buyer_pays_on_paypal base_patterns = [ # Views for normal flow that starts on the basket page path('redirect/', views.RedirectView.as_view(), name='pay...
{ "repo_name": "lpakula/django-oscar-paypal", "path": "paypal/express/urls.py", "copies": "3", "size": "1456", "license": "bsd-3-clause", "hash": 2097101004441283000, "line_mean": 39.4444444444, "line_max": 118, "alpha_frac": 0.7039835165, "autogenerated": false, "ratio": 3.442080378250591, "con...
from django.urls import path, re_path from django.views.generic import TemplateView from . import views app_name = "direct-sharing" urlpatterns = [ path( "projects/oauth2/create/", views.CreateOAuth2DataRequestProjectView.as_view(), name="create-oauth2", ), path( "projects...
{ "repo_name": "OpenHumans/open-humans", "path": "private_sharing/urls.py", "copies": "2", "size": "5120", "license": "mit", "hash": -4581266336010493000, "line_mean": 30.6049382716, "line_max": 88, "alpha_frac": 0.5904296875, "autogenerated": false, "ratio": 3.4664861205145567, "config_test": f...
from django.urls import path, re_path from utils.common import states from .views import ( jurisdiction_list, people_list, people_matcher, apply_match, apply_retirement, new_legislator, apply_new_legislator, apply_bulk_edits, ) # Only allow valid state abbreviations state_abbrs = [s.abb...
{ "repo_name": "openstates/openstates.org", "path": "people_admin/urls.py", "copies": "1", "size": "1470", "license": "mit", "hash": -5565316860649434000, "line_mean": 23.5, "line_max": 84, "alpha_frac": 0.5557823129, "autogenerated": false, "ratio": 3.259423503325942, "config_test": false, "h...
from django.urls import path, re_path from .views.other import styleguide, home, state, site_search from .views.legislators import legislators, person, find_your_legislator from .views.bills import BillList, BillListFeed, bill, vote from .views.fallback import fallback, legislator_fallback from utils.common import stat...
{ "repo_name": "openstates/openstates.org", "path": "public/urls.py", "copies": "1", "size": "1947", "license": "mit", "hash": 9015874024885541000, "line_mean": 35.0555555556, "line_max": 88, "alpha_frac": 0.5896250642, "autogenerated": false, "ratio": 2.8930163447251114, "config_test": false, ...
from django.urls import path, re_path from . import views from .models import Event, Work app_name = "events" # Will be like 'movies|plays|concerts' etc: event_kind_slugs = "|".join(Event.get_valid_kind_slugs()) # Will be like 'classical-works|dance-pieces' etc: work_kind_slugs = "|".join(Work.get_valid_kind_slugs...
{ "repo_name": "philgyford/django-spectator", "path": "spectator/events/urls.py", "copies": "1", "size": "1382", "license": "mit", "hash": -1515869323027308300, "line_mean": 25.5769230769, "line_max": 73, "alpha_frac": 0.5535455861, "autogenerated": false, "ratio": 3.030701754385965, "config_tes...
from django.urls import path, re_path from . import views app_name = 'authentication' urlpatterns = [ # Muestra el formulario de registro. path( route='register/', view=views.RegisterUserFormView.as_view(), name='register' ), # El registro ha sido satisfactorio. path( ...
{ "repo_name": "snicoper/django-boilerplate", "path": "src/apps/authentication/urls.py", "copies": "1", "size": "3012", "license": "mit", "hash": 4092851823861671000, "line_mean": 24.9137931034, "line_max": 83, "alpha_frac": 0.5931470393, "autogenerated": false, "ratio": 3.491289198606272, "conf...
from django.urls import path, re_path from mezzanine.blog import views from mezzanine.conf import settings # Trailing slahes for urlpatterns based on setup. _slash = "/" if settings.APPEND_SLASH else "" # Blog patterns. urlpatterns = [ path( "feeds/<format>" + _slash, views.blog_post_feed, ...
{ "repo_name": "jerivas/mezzanine", "path": "mezzanine/blog/urls.py", "copies": "2", "size": "2017", "license": "bsd-2-clause", "hash": -8954014635691444000, "line_mean": 27.8142857143, "line_max": 80, "alpha_frac": 0.5324739712, "autogenerated": false, "ratio": 3.0653495440729484, "config_test"...
from django.urls import path, re_path from .views import ( AWSDataFileAccessLogView, DataFileDownloadView, DataTypesCreateView, DataTypesDetailView, DataTypesListView, DataTypesUpdateView, NewDataFileAccessLogView, ) app_name = "data-management" urlpatterns = [ re_path( r"^dat...
{ "repo_name": "OpenHumans/open-humans", "path": "data_import/urls.py", "copies": "2", "size": "1227", "license": "mit", "hash": 146414134300410800, "line_mean": 25.1063829787, "line_max": 85, "alpha_frac": 0.6169519152, "autogenerated": false, "ratio": 3.6194690265486726, "config_test": false, ...
from django.urls import path, re_path from .views import ( StaffMemberPaymentsView, OtherStaffMemberPaymentsView, FinancesByMonthView, FinancesByDateView, FinancesByEventView, AllExpensesViewCSV, AllRevenuesViewCSV, FinancialDetailView, ExpenseReportingView, RevenueReportingView, CompensationRuleUpdate...
{ "repo_name": "django-danceschool/django-danceschool", "path": "danceschool/financial/urls.py", "copies": "1", "size": "4792", "license": "bsd-3-clause", "hash": -5124007648896459000, "line_mean": 38.6033057851, "line_max": 105, "alpha_frac": 0.665066778, "autogenerated": false, "ratio": 3.474981...
from django.urls import path, re_path from .views import ScenarioList, ScenarioDetail, ScenarioDownload, ScenarioManual, \ MDSView, MDSViewOld, \ DescriptiveStatsView, FragmentTableView, \ FragmentTableViewMDS, UpsetView, SankeyView, SankeyManual urlpatterns = [ # List views path('scenarios/', Sc...
{ "repo_name": "UUDigitalHumanitieslab/timealign", "path": "stats/urls.py", "copies": "1", "size": "1923", "license": "mit", "hash": 7846416123351733000, "line_mean": 43.7209302326, "line_max": 119, "alpha_frac": 0.616224649, "autogenerated": false, "ratio": 2.8573551263001487, "config_test": fa...
from django.urls import path, re_path from wagtail.admin.views import page_privacy from wagtail.admin.views.pages import ( convert_alias, copy, create, delete, edit, history, lock, moderation, move, ordering, preview, revisions, search, unpublish, usage, workflow) app_name = 'wagtailadmin_pages' urlpatterns ...
{ "repo_name": "wagtail/wagtail", "path": "wagtail/admin/urls/pages.py", "copies": "7", "size": "3976", "license": "bsd-3-clause", "hash": 3233349832904552400, "line_mean": 67.5517241379, "line_max": 178, "alpha_frac": 0.703722334, "autogenerated": false, "ratio": 3.3838297872340424, "config_tes...
from django.urls import path, reverse_lazy from django.views.generic.base import RedirectView from extforms import views urlpatterns = [ # these views create a some sort of workshop-request - # a request for SWC, or for DC workshop, or a request for self-organized DC # workshop path('request_training/...
{ "repo_name": "swcarpentry/amy", "path": "amy/extforms/urls.py", "copies": "2", "size": "1481", "license": "mit", "hash": -8813987506603151000, "line_mean": 66.3181818182, "line_max": 125, "alpha_frac": 0.7501688049, "autogenerated": false, "ratio": 3.638820638820639, "config_test": false, "h...
from django.urls import path from ibms.models import GLPivDownload, IBMData, ServicePriorityMappings from ibms.views import (DownloadView, UploadView, ReloadView, CodeUpdateView, ServicePriorityDataView, DataAmendmentView, ClearGLPivotView, IbmsModelFieldJSON, Service...
{ "repo_name": "parksandwildlife/ibms", "path": "ibms_project/ibms/urls.py", "copies": "1", "size": "3017", "license": "apache-2.0", "hash": -6522703505785276000, "line_mean": 84.2, "line_max": 182, "alpha_frac": 0.7401392111, "autogenerated": false, "ratio": 3.670316301703163, "config_test": fa...
from django.urls import re_path from django.shortcuts import redirect from olympia.addons.urls import ADDON_ID from olympia.reviewers import views # All URLs under /reviewers/ urlpatterns = ( re_path(r'^$', views.dashboard, name='reviewers.dashboard'), re_path( r'^dashboard$', lambda request: redirec...
{ "repo_name": "mozilla/addons-server", "path": "src/olympia/reviewers/urls.py", "copies": "1", "size": "4323", "license": "bsd-3-clause", "hash": -6190375130750392000, "line_mean": 33.0393700787, "line_max": 88, "alpha_frac": 0.6095304187, "autogenerated": false, "ratio": 3.3615863141524107, "c...
from django.urls import re_path from django.views.generic.base import RedirectView from kuma.core.decorators import shared_cache_control from . import views WEEK = 60 * 60 * 24 * 7 lang_urlpatterns = [ re_path(r"^revisions$", views.revisions, name="dashboards.revisions"), re_path(r"^user_lookup$", views.u...
{ "repo_name": "a2sheppy/kuma", "path": "kuma/dashboards/urls.py", "copies": "2", "size": "1058", "license": "mpl-2.0", "hash": 8859588212965251000, "line_mean": 36.7857142857, "line_max": 86, "alpha_frac": 0.6748582231, "autogenerated": false, "ratio": 3.673611111111111, "config_test": false, ...
from django.urls import re_path from django.views.generic.list import ListView from schedule.feeds import CalendarICalendar, UpcomingEventsFeed from schedule.models import Calendar from schedule.periods import Day, Month, Week, Year from schedule.views import ( CalendarByPeriodsView, CalendarView, CancelOc...
{ "repo_name": "llazzaro/django-scheduler", "path": "schedule/urls.py", "copies": "1", "size": "4763", "license": "bsd-3-clause", "hash": -6792889819634657000, "line_mean": 33.5144927536, "line_max": 138, "alpha_frac": 0.5807264329, "autogenerated": false, "ratio": 3.2803030303030303, "config_te...
from django.urls import re_path from devilry.devilry_gradeform.views.setup_create_gradeform import CreateGradeForm urlpatterns = [ re_path(r'^create/(?P<assignment_id>[0-9]+)', CreateGradeForm.as_view(), name='create-setup-gradeform'), # url(r'^$', # grade_form.AdvancedGradeForm.render_setup(AdvancedG...
{ "repo_name": "devilry/devilry-django", "path": "devilry/devilry_gradeform/urls.py", "copies": "1", "size": "1110", "license": "bsd-3-clause", "hash": -9113509233091363000, "line_mean": 40.1111111111, "line_max": 108, "alpha_frac": 0.6738738739, "autogenerated": false, "ratio": 2.9919137466307277...
from django.urls import re_path from . import views app_name = 'comercial' urlpatterns = [ re_path(r'^$', views.index, name='index'), re_path(r'^ficha_cliente/$', views.FichaCliente.as_view(), name='ficha_cliente'), re_path(r'^ficha_cliente/(?P<cnpj>.+)/$', views.FichaCliente.as_view(), ...
{ "repo_name": "anselmobd/fo2", "path": "src/comercial/urls.py", "copies": "1", "size": "2562", "license": "mit", "hash": -4118804669309996500, "line_mean": 28.4482758621, "line_max": 75, "alpha_frac": 0.5819672131, "autogenerated": false, "ratio": 2.722635494155154, "config_test": false, "has...
from django.urls import re_path from . import views group_re = r'(?P<group>' + '|'.join(views.SERIES_GROUPS) + ')' group_date_re = r'(?P<group>' + '|'.join(views.SERIES_GROUPS_DATE) + ')' range_re = r'(?P<start>\d{8})-(?P<end>\d{8})' format_re = r'(?P<format>' + '|'.join(views.SERIES_FORMATS) + ')' series_re = r'%s-...
{ "repo_name": "mozilla/addons-server", "path": "src/olympia/stats/urls.py", "copies": "4", "size": "3989", "license": "bsd-3-clause", "hash": -6148737186685290000, "line_mean": 27.9057971014, "line_max": 88, "alpha_frac": 0.5460015041, "autogenerated": false, "ratio": 3.7003710575139146, "confi...
from django.urls import re_path from . import views urlpatterns = [ re_path(r'^$', views.stats, name='rq_home'), re_path(r'^stats.json/(?P<token>[\w]+)?/?$', views.stats_json, name='rq_home_json'), re_path(r'^queues/(?P<queue_index>[\d]+)/$', views.jobs, name='rq_jobs'...
{ "repo_name": "ui/django-rq", "path": "django_rq/urls.py", "copies": "1", "size": "2123", "license": "mit", "hash": -6855880861153138000, "line_mean": 48.3720930233, "line_max": 81, "alpha_frac": 0.5430993877, "autogenerated": false, "ratio": 3.0857558139534884, "config_test": false, "has_no_...
from django.urls import resolve from django.utils.deprecation import MiddlewareMixin from django.utils.text import slugify from ..choices import LANGUAGES from ..models import Content from ..views.utils import model_filter class SortMiddleware(MiddlewareMixin): valid_urls = [ "index", "filter", ...
{ "repo_name": "hakancelik96/coogger", "path": "core/cooggerapp/middleware/sort.py", "copies": "1", "size": "2858", "license": "mit", "hash": -8104542848784469000, "line_mean": 31.4772727273, "line_max": 86, "alpha_frac": 0.5836249125, "autogenerated": false, "ratio": 4.451713395638629, "config_...
from django.urls import resolve from premis_event_service import views def test_app(): url = resolve('/APP/') assert url.func == views.app def test_app_event_without_identifier(): url = resolve('/APP/event/') assert url.func == views.app_event def test_app_event_with_identifier(): url = resol...
{ "repo_name": "unt-libraries/django-premis-event-service", "path": "tests/test_urls.py", "copies": "1", "size": "1798", "license": "bsd-3-clause", "hash": -7303958651948584000, "line_mean": 22.0512820513, "line_max": 84, "alpha_frac": 0.680756396, "autogenerated": false, "ratio": 3.63232323232323...
from django.urls import reverse_lazy as reverse from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from ..forms.messages import MessageFilterForm from ..models.messages import MessageRecipient from .generic import BackViewMixin, DetailView, FilteredListView class MessageLis...
{ "repo_name": "leprikon-cz/leprikon", "path": "leprikon/views/messages.py", "copies": "1", "size": "1158", "license": "bsd-3-clause", "hash": -6984033797258414000, "line_mean": 27.95, "line_max": 64, "alpha_frac": 0.6796200345, "autogenerated": false, "ratio": 4.006920415224913, "config_test": ...
from django.urls import reverse_lazy as reverse from django.utils.translation import ugettext_lazy as _ from ..forms.parent import ParentForm from ..models.roles import Parent from .generic import CreateView, DeleteView, UpdateView class ParentCreateView(CreateView): model = Parent form_class = ParentForm ...
{ "repo_name": "leprikon-cz/leprikon", "path": "leprikon/views/parents.py", "copies": "1", "size": "1846", "license": "bsd-3-clause", "hash": 7313249549003527000, "line_mean": 31.3859649123, "line_max": 105, "alpha_frac": 0.6543878657, "autogenerated": false, "ratio": 4.048245614035087, "config_...
from django.urls import reverse_lazy as reverse from django.utils.translation import ugettext_lazy as _ from ..forms.participant import ParticipantForm from ..models.roles import Participant from ..utils import reverse_with_back from .generic import CreateView, DeleteView, ListView, UpdateView class ParticipantListV...
{ "repo_name": "leprikon-cz/leprikon", "path": "leprikon/views/participants.py", "copies": "1", "size": "2444", "license": "bsd-3-clause", "hash": 1390717222000189000, "line_mean": 32.4794520548, "line_max": 113, "alpha_frac": 0.6853518822, "autogenerated": false, "ratio": 4.013136288998358, "co...
from django.urls import reverse_lazy as reverse from drf_haystack.serializers import HaystackSerializer from rest_framework.serializers import ( ModelSerializer, SerializerMethodField, ) from rest_framework_gis.serializers import GeoFeatureModelSerializer from outpost.django.campusonline import serializers as ...
{ "repo_name": "medunigraz/outpost", "path": "src/outpost/django/signage/serializers.py", "copies": "1", "size": "4026", "license": "bsd-2-clause", "hash": -8238279660248205000, "line_mean": 19.96875, "line_max": 68, "alpha_frac": 0.6025832091, "autogenerated": false, "ratio": 4.278427205100956, ...
from django.urls import reverse_lazy from django.conf.urls import include, url from django.contrib.auth.views import LoginView from django.views.generic import ListView from django.contrib import admin admin.autodiscover() from baya import requires from baya import RolesNode as g from baya.membership import DynamicRol...
{ "repo_name": "counsyl/baya", "path": "baya/tests/urls.py", "copies": "1", "size": "1944", "license": "mit", "hash": 5006350606464938000, "line_mean": 34.3454545455, "line_max": 95, "alpha_frac": 0.6697530864, "autogenerated": false, "ratio": 3.2837837837837838, "config_test": false, "has_no_...
from django.urls import reverse_lazy from django.conf.urls import url, include from . import views app_name = 'account' addresses = [ url(r'^$', views.AddressList.as_view(), name='addresses'), url(r'^add_address/$', views.add_address, name='add_address'), url( r'^edit_address/(?P<pk>[1-9]\d*)/$', ...
{ "repo_name": "PrestonMonteWest/compmart", "path": "account/urls.py", "copies": "1", "size": "2385", "license": "apache-2.0", "hash": -369555417792126400, "line_mean": 28.0853658537, "line_max": 83, "alpha_frac": 0.5438155136, "autogenerated": false, "ratio": 3.307905686546463, "config_test": f...
from django.urls import reverse_lazy from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied from base.utils import check_operator from django.views.generic import DetailView, TemplateView from django.views.generic.list import ListView from django.views.generic.e...
{ "repo_name": "kurniantoska/ichsan_proj", "path": "unisan/lemlit/views.py", "copies": "1", "size": "3102", "license": "apache-2.0", "hash": 7131170355272961000, "line_mean": 32.7173913043, "line_max": 94, "alpha_frac": 0.778207608, "autogenerated": false, "ratio": 3.139676113360324, "config_tes...
from django.urls import reverse_lazy from django.urls import include, path from django.contrib import admin from django.views.generic import TemplateView from django.views.generic.base import RedirectView from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .feeds import AllBlog...
{ "repo_name": "censurfridns/blog.censurfridns.dk", "path": "src/blog/urls.py", "copies": "1", "size": "2148", "license": "bsd-3-clause", "hash": 3489598723423817700, "line_mean": 44.7021276596, "line_max": 126, "alpha_frac": 0.6862197393, "autogenerated": false, "ratio": 3.4589371980676327, "co...
from django.urls import reverse_lazy from django.utils.text import format_lazy DEBUG = True ROOT_URLCONF = 'testshop.urls' SECRET_KEY = 'test' SITE_ID = 1 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } STATIC_URL = '/static/' MEDIA_URL = '/media...
{ "repo_name": "awesto/django-shop", "path": "tests/testshop/settings.py", "copies": "1", "size": "6174", "license": "bsd-3-clause", "hash": 2312267561870325000, "line_mean": 26.6860986547, "line_max": 119, "alpha_frac": 0.6528992549, "autogenerated": false, "ratio": 3.57498552403011, "config_te...
from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from django.views.generic import UpdateView from watchdog_id.auth_factories.password.forms import PasswordForm, PasswordSettingsForm from watchdog_id.auth_factories.password.models import PasswordSettings from watchdog_id.aut...
{ "repo_name": "watchdogpolska/watchdog-id", "path": "watchdog_id/auth_factories/password/views.py", "copies": "1", "size": "1366", "license": "mit", "hash": 310452092281083700, "line_mean": 40.3939393939, "line_max": 115, "alpha_frac": 0.7840409956, "autogenerated": false, "ratio": 4.216049382716...
from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from core.constants import ACTIONS class ActionSerializer(serializers.ModelSerializer): action_list = serializers.SerializerMethodField() model = serializers.StringRelatedField...
{ "repo_name": "ikcam/django-skeleton", "path": "core/api/serializers.py", "copies": "1", "size": "1841", "license": "bsd-3-clause", "hash": -1190268704590002000, "line_mean": 31.875, "line_max": 72, "alpha_frac": 0.5306898425, "autogenerated": false, "ratio": 4.425480769230769, "config_test": f...
from django.urls import reverse_lazy from django.views.generic import CreateView, DeleteView, DetailView, ListView from boilerplate.mixins import ( ActionListMixin, CreateMessageMixin, DeleteMessageMixin ) from core import tasks from core.models import Invite from core.views.mixins import ( CompanyCreateMixin...
{ "repo_name": "ikcam/django-skeleton", "path": "panel/views/invite.py", "copies": "1", "size": "1867", "license": "bsd-3-clause", "hash": -1730030377179579400, "line_mean": 26.0579710145, "line_max": 77, "alpha_frac": 0.6898768077, "autogenerated": false, "ratio": 3.81799591002045, "config_test...
from django.urls import reverse_lazy from django.views.generic import (CreateView, DeleteView, DetailView, ListView, UpdateView) from guardian.mixins import PermissionRequiredMixin, PermissionListMixin from guardian.shortcuts import assign_perm from articles.models import Article cla...
{ "repo_name": "rmgorman/django-guardian", "path": "example_project/articles/views.py", "copies": "1", "size": "1495", "license": "bsd-2-clause", "hash": -6592673016925011000, "line_mean": 34.5952380952, "line_max": 79, "alpha_frac": 0.7157190635, "autogenerated": false, "ratio": 4.235127478753541...
from django.urls import reverse_lazy from django.views.generic import CreateView, DeleteView, DetailView, ListView, UpdateView from .forms import CoachForm, ParticipantForm, PerformanceForm, TeamForm from .models import Coach, Participant, Performance, Team class ParticipantList(ListView): model = Participant ...
{ "repo_name": "wearespindle/subscriptionform", "path": "sports/views.py", "copies": "1", "size": "2473", "license": "mit", "hash": -6398649883499154000, "line_mean": 20.8849557522, "line_max": 89, "alpha_frac": 0.7120905782, "autogenerated": false, "ratio": 3.7871362940275652, "config_test": fa...
from django.urls import reverse_lazy from django.views.generic import CreateView, DeleteView, ListView, UpdateView from boilerplate.mixins import ( ActionListMixin, CreateMessageMixin, DeleteMessageMixin, UpdateMessageMixin ) from django_addanother.views import CreatePopupMixin from core.models import Role from c...
{ "repo_name": "ikcam/django-skeleton", "path": "panel/views/role.py", "copies": "1", "size": "1573", "license": "bsd-3-clause", "hash": 711357261496191100, "line_mean": 27.0892857143, "line_max": 79, "alpha_frac": 0.7368086459, "autogenerated": false, "ratio": 3.7186761229314422, "config_test":...
from django.urls import reverse_lazy from django.views.generic import CreateView, DeleteView, UpdateView from django.views.generic.detail import DetailView from django.views.generic.list import ListView from .models import Company, Country, Label, Talk from .forms import TalkForm # ----------------------------------...
{ "repo_name": "samitnuk/talks_keeper", "path": "talks_keeper/views.py", "copies": "1", "size": "4763", "license": "mit", "hash": 8695081727250111000, "line_mean": 26.5317919075, "line_max": 77, "alpha_frac": 0.6172580307, "autogenerated": false, "ratio": 3.897708674304419, "config_test": false,...
from django.urls import reverse_lazy from django.views.generic import CreateView, UpdateView, DetailView, ListView from django.contrib import messages from django.shortcuts import render, get_object_or_404, redirect from django.template import RequestContext from account.mixins import LoginRequiredMixin from .forms...
{ "repo_name": "postpdm/ich_bau", "path": "ich_bau/profiles/views.py", "copies": "1", "size": "8455", "license": "apache-2.0", "hash": 5391403496267233000, "line_mean": 37.3778801843, "line_max": 147, "alpha_frac": 0.6541786744, "autogenerated": false, "ratio": 3.699689027099067, "config_test": ...
from django.urls import reverse_lazy from django.views.generic import DetailView, ListView from django.views.generic.edit import CreateView from braces.views import LoginRequiredMixin from apps.edu.models import * from apps.edu.forms import * class CompetenciaAreaCreateView(CreateView): model = CompetenciaArea ...
{ "repo_name": "local-host-club/cms", "path": "apps/edu/views.py", "copies": "1", "size": "2536", "license": "mit", "hash": -5186453661530864000, "line_mean": 28.488372093, "line_max": 79, "alpha_frac": 0.7038643533, "autogenerated": false, "ratio": 3.3858477970627505, "config_test": false, "h...
from django.urls import reverse_lazy from django.views.generic import ( CreateView, DeleteView, DetailView, ListView, UpdateView ) from boilerplate.mixins import ( ActionListMixin, CreateMessageMixin, DeleteMessageMixin, UpdateMessageMixin, UserCreateMixin ) from core.models import Link from core.views.mi...
{ "repo_name": "ikcam/django-skeleton", "path": "panel/views/link.py", "copies": "1", "size": "1869", "license": "bsd-3-clause", "hash": -3854562060444515000, "line_mean": 29.1451612903, "line_max": 75, "alpha_frac": 0.7223113965, "autogenerated": false, "ratio": 3.775757575757576, "config_test"...
from django.urls import reverse_lazy from django.views import generic from django.shortcuts import get_object_or_404, Http404 from . import forms from . import models class ProfileView(generic.DetailView): model = models.UserProfile template_name = 'profiles/profile.html' context_object_name = 'profile' ...
{ "repo_name": "kennethlove/django_bookmarks", "path": "dj_bookmarks/profiles/views.py", "copies": "1", "size": "1095", "license": "bsd-3-clause", "hash": 2603676724776028700, "line_mean": 29.4166666667, "line_max": 70, "alpha_frac": 0.6730593607, "autogenerated": false, "ratio": 3.855633802816901...
from django.urls import reverse_lazy from rest_framework import serializers from zentral.core.probes import register_probe_class from zentral.core.probes.base import BaseProbe, BaseProbeSerializer, PayloadFilter class MunkiInstallProbeSerializer(BaseProbeSerializer): install_types = serializers.MultipleChoiceFiel...
{ "repo_name": "zentralopensource/zentral", "path": "zentral/contrib/munki/probes.py", "copies": "1", "size": "2194", "license": "apache-2.0", "hash": 7567433357918512000, "line_mean": 37.4912280702, "line_max": 83, "alpha_frac": 0.6540565178, "autogenerated": false, "ratio": 3.953153153153153, ...
from django.urls import reverse from autoslug.fields import AutoSlugField from django.db import models from django.utils.translation import ugettext_lazy as _ from django.db.models import Q, Count from model_utils.models import TimeStampedModel from feder.monitorings.models import Monitoring class TagQuerySet(models...
{ "repo_name": "watchdogpolska/feder", "path": "feder/cases_tags/models.py", "copies": "1", "size": "1838", "license": "mit", "hash": -8693535015457023000, "line_mean": 29.131147541, "line_max": 83, "alpha_frac": 0.6327529924, "autogenerated": false, "ratio": 3.927350427350427, "config_test": fa...
from django.urls import reverse from django_comments.models import Comment from fiscal.forms import OrganizationCreateForm, OrganizationForm from workshops.models import Event, Organization from workshops.tests.base import TestBase class TestOrganization(TestBase): def setUp(self): super().setUp() ...
{ "repo_name": "pbanaszkiewicz/amy", "path": "amy/fiscal/tests/test_organization.py", "copies": "1", "size": "4627", "license": "mit", "hash": -4420588080791263700, "line_mean": 37.8823529412, "line_max": 86, "alpha_frac": 0.5753187811, "autogenerated": false, "ratio": 4.3692162417374885, "confi...
from django.urls import reverse from django.conf import settings from django import template from django.utils.encoding import smart_str register = template.Library() import re kwarg_re = re.compile(r"(?:(\w+)=)?(.+)") class URLNode(template.Node): def __init__(self, view_name, args, kwargs): self.view...
{ "repo_name": "martinrusev/amonone", "path": "amon/templatetags/baseurl.py", "copies": "2", "size": "1396", "license": "mit", "hash": 2360572686845819400, "line_mean": 24.3818181818, "line_max": 80, "alpha_frac": 0.590974212, "autogenerated": false, "ratio": 3.772972972972973, "config_test": fa...
from django.urls import reverse from django.conf import settings from rest_framework.test import APIClient from mysite.base_test import AbstractBaseTest from kids.tests import create_kid from .models import Unit, Expectation, MonetaryReward def create_expectation(kid): total = 5 return Expectation.objects.cre...
{ "repo_name": "bfrick22/monetary-rewards", "path": "mysite/rewards/tests.py", "copies": "1", "size": "3492", "license": "unlicense", "hash": 2953297885544772000, "line_mean": 31.3333333333, "line_max": 91, "alpha_frac": 0.6420389462, "autogenerated": false, "ratio": 3.775135135135135, "config_t...
from django.urls import reverse from django.conf import settings import json class IIIFObject(object): ''' IIIF Object is the base object for IIIF presentation classes. This class contains shared behaviors and methods that should be implemented. See also: http://iiif.io/api/presentation/2.0/ ''' ...
{ "repo_name": "Harvard-ATG/media_management_api", "path": "media_management_api/media_service/iiif/objects.py", "copies": "1", "size": "9480", "license": "bsd-3-clause", "hash": -8518652847607274000, "line_mean": 32.8571428571, "line_max": 101, "alpha_frac": 0.5465189873, "autogenerated": false, ...
from django.urls import reverse from django.conf.urls import url from pinax_theme_tester.views import as_view class ViewConfig(object): def __init__(self, name, pattern, template, pattern_kwargs, menu=True, display_name=None, template_source=None, **kwargs): self.name = name self.pattern = patte...
{ "repo_name": "pinax/pinax_theme_tester", "path": "pinax_theme_tester/configs/base.py", "copies": "1", "size": "1602", "license": "mit", "hash": 2890726150952255500, "line_mean": 33.8260869565, "line_max": 126, "alpha_frac": 0.6510611735, "autogenerated": false, "ratio": 3.926470588235294, "con...
from django.urls import reverse from django.contrib.auth.decorators import login_required, permission_required from django.shortcuts import redirect, render from django.views.decorators.http import require_POST from django.utils.translation import ugettext as _ from django.http import HttpRequest from course.models im...
{ "repo_name": "fsr/course-management", "path": "course/views/news.py", "copies": "1", "size": "2596", "license": "bsd-3-clause", "hash": -5120399313925693000, "line_mean": 26.0416666667, "line_max": 94, "alpha_frac": 0.6074730354, "autogenerated": false, "ratio": 3.993846153846154, "config_test...
from django.urls import reverse from django.contrib.auth.models import User from rest_framework import status from rest_framework.test import APITestCase from lists.models import TodoList class UserTests(APITestCase): def setUp(self): User.objects.create_user('test', 'test@example.com', 'test') ...
{ "repo_name": "0xfoo/django-todolist", "path": "api/tests.py", "copies": "1", "size": "9837", "license": "mit", "hash": -8322601108664038000, "line_mean": 37.7283464567, "line_max": 78, "alpha_frac": 0.6246823218, "autogenerated": false, "ratio": 3.619205298013245, "config_test": true, "has_n...
from django.urls import reverse from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404 from rest_framework.response import Response from levit_report.models import Document from drf_auto_endpoint.endpoints import Endpoint from drf_auto_endpoint.decorators import cus...
{ "repo_name": "drf-forms/ember_sample", "path": "back/accounting/endpoints.py", "copies": "1", "size": "2848", "license": "mit", "hash": 387654453628860350, "line_mean": 33.313253012, "line_max": 101, "alpha_frac": 0.549508427, "autogenerated": false, "ratio": 3.890710382513661, "config_test": ...
from django.urls import reverse from django.contrib import admin from django.db import models from django.forms import TextInput, Textarea from taggit.forms import TagField from taggit_labels.widgets import LabelWidget from conference import admin as cadmin from conference import models as cmodels class VotoTalkAdm...
{ "repo_name": "EuroPython/epcon", "path": "p3/admin.py", "copies": "1", "size": "7977", "license": "bsd-2-clause", "hash": 24101316097659400, "line_mean": 25.9425675676, "line_max": 96, "alpha_frac": 0.5104702194, "autogenerated": false, "ratio": 4.1299844640082854, "config_test": false, "has...
from django.urls import reverse from django.contrib import admin from django.utils.safestring import mark_safe from .. import models from .base import ( ModelAdmin, ReadOnlyTabularInline, IdentifierInline, ContactDetailInline, OtherNameInline, ) class PersonIdentifierInline(IdentifierInline): ...
{ "repo_name": "opencivicdata/python-opencivicdata-django", "path": "opencivicdata/core/admin/person.py", "copies": "2", "size": "2689", "license": "bsd-3-clause", "hash": 4882829506436076000, "line_mean": 26.4387755102, "line_max": 82, "alpha_frac": 0.5912978803, "autogenerated": false, "ratio": ...
from django.urls import reverse from django.contrib import admin from .. import models from .base import ( ModelAdmin, ReadOnlyTabularInline, IdentifierInline, LinkInline, ContactDetailInline, OtherNameInline, ) class OrganizationIdentifierInline(IdentifierInline): model = models.Organizat...
{ "repo_name": "opencivicdata/python-opencivicdata", "path": "opencivicdata/core/admin/organization.py", "copies": "2", "size": "2888", "license": "bsd-3-clause", "hash": -5053631669179990000, "line_mean": 25.7407407407, "line_max": 79, "alpha_frac": 0.6568559557, "autogenerated": false, "ratio": ...
from django.urls import reverse from django.contrib import messages from django.http import HttpResponseRedirect from django.utils.translation import ugettext as _ from django.shortcuts import render from django.utils.html import format_html from utilities.decorators import dialog_view from utilities.permissions impor...
{ "repo_name": "CloudBoltSoftware/cloudbolt-forge", "path": "ui_extensions/office365/views.py", "copies": "1", "size": "4165", "license": "apache-2.0", "hash": -6883071503360980000, "line_mean": 32.5887096774, "line_max": 120, "alpha_frac": 0.6509003601, "autogenerated": false, "ratio": 4.05155642...
from django.urls import reverse from django.contrib import sitemaps from django.contrib.flatpages.sitemaps import FlatPageSitemap from django.contrib.admin.models import LogEntry from django.contrib.contenttypes.models import ContentType from .dictionary.models import Gloss class StaticViewSitemap(sitemaps.Sitemap):...
{ "repo_name": "Signbank/FinSL-signbank", "path": "signbank/sitemaps.py", "copies": "1", "size": "1195", "license": "bsd-3-clause", "hash": -951973681659356800, "line_mean": 25.5555555556, "line_max": 118, "alpha_frac": 0.7046025105, "autogenerated": false, "ratio": 3.7111801242236027, "config_t...
from django.urls import reverse from django.core.cache import cache from django_webtest import WebTest from apps.shop.models import Manufacturer, Product from .. import utils class ManufacturerWebTests(WebTest): fixtures = ['.././load_data.json'] def test_manufacturer_creating_by_regular_user(self): ...
{ "repo_name": "samitnuk/online_shop", "path": "apps/shop/tests/test_manufacturer.py", "copies": "1", "size": "7559", "license": "mit", "hash": 2201174416450744300, "line_mean": 38.21875, "line_max": 79, "alpha_frac": 0.5442231076, "autogenerated": false, "ratio": 4.47415329768271, "config_test"...
from django.urls import reverse from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.contrib import messages from django.db.models import Q from django.http import HttpResponseRedirect, Http404, JsonResponse from django.views.generic import FormView, RedirectView, TemplateView, View from d...
{ "repo_name": "django-danceschool/django-danceschool", "path": "danceschool/core/classreg.py", "copies": "1", "size": "81742", "license": "bsd-3-clause", "hash": -5138893855144701000, "line_mean": 41.7074190178, "line_max": 118, "alpha_frac": 0.5777201439, "autogenerated": false, "ratio": 4.63363...
from django.urls import reverse from django.core.files.base import File from users.tests.ext_test_case import ExtTestCase from viewcv.models import Css class UploadCvTest(ExtTestCase): def test_reverse(self): self.assertEqual(reverse('upload_css'), '/upload-css/') def test_uses_correct_template(self)...
{ "repo_name": "jarnoln/cvdb", "path": "viewcv/tests/test_upload_css.py", "copies": "1", "size": "1110", "license": "mit", "hash": -5387019542928392000, "line_mean": 38.6428571429, "line_max": 77, "alpha_frac": 0.6567567568, "autogenerated": false, "ratio": 3.535031847133758, "config_test": true...
from django.urls import reverse from django.core.files.base import File from users.tests.ext_test_case import ExtTestCase from viewcv.models import Cv, Personal, Work, Education, Volunteer, Skill, Language, Project class UploadCvTest(ExtTestCase): def test_reverse(self): self.assertEqual(reverse('upload')...
{ "repo_name": "jarnoln/cvdb", "path": "viewcv/tests/test_upload_cv.py", "copies": "1", "size": "4703", "license": "mit", "hash": -7461791568442074000, "line_mean": 47.4845360825, "line_max": 92, "alpha_frac": 0.6563895386, "autogenerated": false, "ratio": 3.6316602316602316, "config_test": true...
from django.urls import reverse from django.db import models, IntegrityError from django.utils.translation import gettext_lazy as _ CONTACT_STATUS = ( ("N", _("New")), ("O", _("Ongoing")), ("R", _("Resolved")), ("C", _("Closed")), ("I", _("Invalid")), ) class Contact(models.Model): status = ...
{ "repo_name": "osantana/quickstartup", "path": "quickstartup/qs_contacts/models.py", "copies": "1", "size": "1408", "license": "mit", "hash": -6865259975704727000, "line_mean": 32.5238095238, "line_max": 93, "alpha_frac": 0.6228693182, "autogenerated": false, "ratio": 3.889502762430939, "config...
from django.urls import reverse from django.db import models from django.contrib.auth.models import User from meadery.models import Product from inventory.models import Jar class BaseOrderInfo(models.Model): class Meta: abstract = True # contact info email = models.EmailField(max_length=50) p...
{ "repo_name": "mathuin/pyment", "path": "django/checkout/models.py", "copies": "1", "size": "3570", "license": "mit", "hash": -8045226369140101000, "line_mean": 28.0243902439, "line_max": 125, "alpha_frac": 0.6526610644, "autogenerated": false, "ratio": 3.6690647482014387, "config_test": false,...
from django.urls import reverse from django.db import models from django.core.cache import cache import random import string class Game(models.Model): cop_team = models.ForeignKey('Team', related_name='cops') robber_team = models.ForeignKey('Team', related_name='robbers') has_ended = models.BooleanField(d...
{ "repo_name": "frvannes16/Cops-Robbers-Coding-Challenge", "path": "src/server_code/challenge/models.py", "copies": "1", "size": "4780", "license": "apache-2.0", "hash": -6896369875351828000, "line_mean": 32.661971831, "line_max": 122, "alpha_frac": 0.6127615063, "autogenerated": false, "ratio": 3...
from django.urls import reverse from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.utils.text import slugify from django.conf import settings class Account(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, ...
{ "repo_name": "patcurry/WebGIS", "path": "accounts/models.py", "copies": "1", "size": "1302", "license": "mit", "hash": -250805793493281300, "line_mean": 34.1891891892, "line_max": 74, "alpha_frac": 0.6827956989, "autogenerated": false, "ratio": 3.773913043478261, "config_test": false, "has_n...
from django.urls import reverse from django.db import models from django.utils.encoding import python_2_unicode_compatible import getpaid from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Order(models.Model): """ This is an example Order object. This one is very ...
{ "repo_name": "anih/django-getpaid", "path": "getpaid_test_project/getpaid_test_project/orders/models.py", "copies": "1", "size": "1359", "license": "mit", "hash": -3342469994860177000, "line_mean": 37.8285714286, "line_max": 107, "alpha_frac": 0.6364974246, "autogenerated": false, "ratio": 4.273...
from django.urls import reverse from django.db import models from django.utils import formats from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.timezone import now, localtime from re import match, sub, split from . import utils class SiteRelated(models.Model): o...
{ "repo_name": "jonge-democraten/zues", "path": "zues/models.py", "copies": "1", "size": "26825", "license": "mit", "hash": -8394785166268286000, "line_mean": 34.9571045576, "line_max": 160, "alpha_frac": 0.5567029526, "autogenerated": false, "ratio": 3.1868836877747415, "config_test": false, ...