5af45811edefe691168bbe23d0c218d00bb66d55,app/server/api_urls.py,,,#,12

Before Change


from .api import StatisticsAPI


urlpatterns = [
    path("projects", ProjectList.as_view(), name="project_list"),
    path("projects/<int:project_id>", ProjectDetail.as_view(), name="project_detail"),
    path("projects/<int:project_id>/statistics",
         StatisticsAPI.as_view(), name="statistics"),
    path("projects/<int:project_id>/labels",
         LabelList.as_view(), name="label_list"),
    path("projects/<int:project_id>/labels/<int:label_id>",
         LabelDetail.as_view(), name="label_detail"),
    path("projects/<int:project_id>/docs",
         DocumentList.as_view(), name="doc_list"),
    path("projects/<int:project_id>/docs/<int:doc_id>",
         DocumentDetail.as_view(), name="doc_detail"),
    path("projects/<int:project_id>/docs/<int:doc_id>/entities",
         EntityList.as_view(), name="entity_list"),
    path("projects/<int:project_id>/docs/<int:doc_id>/entities/<int:entity_id>",
         EntityDetail.as_view(), name="entity_detail"),
    path("projects/<int:project_id>/plain_uploader",
         PlainTextUploadAPI.as_view(), name="plain_uploader"),
    path("projects/<int:project_id>/conll_uploader",
         CoNLLFileUploadAPI.as_view(), name="conll_uploader"),
    path("projects/<int:project_id>/csv_uploader",
         CSVUploadAPI.as_view(), name="csv_uploader"),
    path("projects/<int:project_id>/json_uploader",
         JSONLUploadAPI.as_view(), name="json_uploader"),
]

urlpatterns = format_suffix_patterns(urlpatterns, allowed=["json", "xml"])

After Change


from .api import StatisticsAPI


urlpatterns = [
    path("projects", ProjectList.as_view(), name="project_list"),
    path("projects/<int:project_id>", ProjectDetail.as_view(), name="project_detail"),
    path("projects/<int:project_id>/statistics",
         StatisticsAPI.as_view(), name="statistics"),
    path("projects/<int:project_id>/labels",
         LabelList.as_view(), name="label_list"),
    path("projects/<int:project_id>/labels/<int:label_id>",
         LabelDetail.as_view(), name="label_detail"),
    path("projects/<int:project_id>/docs",
         DocumentList.as_view(), name="doc_list"),
    path("projects/<int:project_id>/docs/<int:doc_id>",
         DocumentDetail.as_view(), name="doc_detail"),
    path("projects/<int:project_id>/docs/<int:doc_id>/entities",
         EntityList.as_view(), name="entity_list"),
    path("projects/<int:project_id>/docs/<int:doc_id>/entities/<int:entity_id>",
         EntityDetail.as_view(), name="entity_detail"),
    path("projects/<int:project_id>/docs/upload",
         TextUploadAPI.as_view(), name="doc_uploader")
]

urlpatterns = format_suffix_patterns(urlpatterns, allowed=["json", "xml"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: chakki-works/doccano
Commit Name: 5af45811edefe691168bbe23d0c218d00bb66d55
Time: 2019-02-28
Author: hiroki.nakayama.py@gmail.com
File Name: app/server/api_urls.py
Class Name:
Method Name:


Project Name: comic/grand-challenge.org
Commit Name: d018f4185cf7dd87fa56f47a8e55d5f0eacd0292
Time: 2020-01-22
Author: code@jmsmkn.com
File Name: app/grandchallenge/subdomains/urls.py
Class Name:
Method Name:


Project Name: comic/grand-challenge.org
Commit Name: a9bcad68c05242655875827c334c9d31f5618c01
Time: 2020-01-28
Author: code@jmsmkn.com
File Name: app/grandchallenge/pages/urls.py
Class Name:
Method Name: