f4f55b4b03bf8b74385a277e9b293171d40ba89d,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>/conll_uploader",
         CoNLLFileUploadAPI.as_view(), name="conll_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>/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"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 24

Instances


Project Name: chakki-works/doccano
Commit Name: f4f55b4b03bf8b74385a277e9b293171d40ba89d
Time: 2019-02-26
Author: light.tree.1.13@gmail.com
File Name: app/server/api_urls.py
Class Name:
Method Name:


Project Name: chakki-works/doccano
Commit Name: 739b1b68c7f2a32b206841c0cc3b76ff94a2497a
Time: 2019-03-04
Author: light.tree.1.13@gmail.com
File Name: app/server/api_urls.py
Class Name:
Method Name:


Project Name: comic/grand-challenge.org
Commit Name: 8f80aefe55d0042d7fd55aab0ad5c3c3e8af0c3c
Time: 2019-12-02
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/urls.py
Class Name:
Method Name: