c9ee8bb2613ba89ba3074dc9677364f6e9b93462,dvaapp/urls.py,,,#,6

Before Change


router.register(r"clustercodes", views.ClusterCodesViewSet)


urlpatterns = [
    url(r"^$", views.index, name="app"),
    url(r"^app$", views.index, name="app"),
    url(r"^status$", views.status, name="status"),
    url(r"^tasks", views.tasks, name="tasks"),
    url(r"^indexes", views.indexes, name="indexes"),
    url(r"^detections", views.detections, name="detections"),
    url(r"^textsearch", views.textsearch, name="textsearch"),
    url(r"^clustering/$", views.clustering, name="clustering"),
    url(r"^external", views.external, name="external"),
    url(r"^youtube$", views.yt, name="youtube"),
    url(r"^export_video", views.export_video, name="export_video"),
    url(r"^import_dataset", views.import_dataset, name="import_dataset"),
    url(r"^import_s3", views.import_s3, name="import_s3"),
    url(r"^video_send_task", views.video_send_task, name="video_send_task"),
    url(r"^assign_video_labels", views.assign_video_labels, name="assign_video_labels"),
    // url(r"^delete_labels", views.delete_label, name="delete_labels"),
    url(r"^videos/$", views.VideoList.as_view(),name="video_list"),
    url(r"^queries/$", views.QueryList.as_view()),
    url(r"^Search$", views.search),
    url(r"^videos/(?P<pk>\d+)/$", views.VideoDetail.as_view(), name="video_detail"),
    url(r"^clustering/(?P<pk>\d+)/$", views.ClustersDetails.as_view(), name="clusters_detail"),
    url(r"^vdn_datasets/(?P<pk>\d+)/$", views.VDNDatasetDetail.as_view(), name="vdn_dataset_detail"),
    url(r"^frames/$", views.FrameList.as_view()),
    url(r"^frames/(?P<pk>\d+)/$", views.FrameDetail.as_view(), name="frame_detail"),
    url(r"^queries/(?P<pk>\d+)/$", views.QueryDetail.as_view(), name="query_detail"),
    url(r"^retry/(?P<pk>\d+)/$", views.retry_task, name="restart_task"),
    url(r"^push/(?P<video_id>\d+)/$", views.push, name="push"),
    url(r"^coarse_code/(?P<pk>\d+)/(?P<coarse_code>\w+)$", views.coarse_code_detail, name="coarse_code_detail"),
    url(r"^requery/(?P<query_pk>\d+)/$", views.index, name="requery"),
    url(r"^query_frame/(?P<frame_pk>\d+)/$", views.index, name="query_frame"),
    url(r"^query_detection/(?P<detection_pk>\d+)/$", views.index, name="query_detection"),
    url(r"^annotate_frame/(?P<frame_pk>\d+)/$", views.annotate, name="annotate_frame"),
    url(r"^annotate_entire_frame/(?P<frame_pk>\d+)/$", views.annotate_entire_frame, name="annotate_entire_frame"),
    url(r"^delete", views.delete_object, name="delete_object"),
    url(r"^api/", include(router.urls)),
    url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework")),
    url(r"^login/$", auth_views.login, name="login"),
    url(r"^logout/$", auth_views.logout, name="logout"),
    url(r"^accounts/login/$", auth_views.login, name="login"),
    url(r"^accounts/logout/$", auth_views.logout, name="logout"),
    url(r"^password_reset/$", auth_views.password_reset, name="password_reset"),
    url(r"^accounts/profile/$", views.index, name="profile"),
]

After Change


    url(r"^accounts/logout/$", auth_views.logout, name="logout"),
    url(r"^password_reset/$", auth_views.password_reset, name="password_reset"),
    url(r"^accounts/profile/$", views.index, name="profile"),
] + [url(r"^$", views.home, name="home"),] if settings.DVA_PRIVATE_ENABLE else [url(r"^$", views.index, name="app_home"),]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: c9ee8bb2613ba89ba3074dc9677364f6e9b93462
Time: 2017-05-18
Author: akshayubhat@gmail.com
File Name: dvaapp/urls.py
Class Name:
Method Name:


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f932777975d8430003ea4496f3d933e11bb77650
Time: 2017-01-17
Author: akshayubhat@gmail.com
File Name: dvaapp/urls.py
Class Name:
Method Name:


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 11949e34e797dba1109bcbf7c489768de19c8ef0
Time: 2017-09-18
Author: akshayubhat@gmail.com
File Name: dvaapp/urls.py
Class Name:
Method Name: