<commit_before>from django.urls import re_path
from rdrf.services.rest.views import api_views
from rdrf.routing.custom_rest_router import DefaultRouterWithSimpleViews


router = DefaultRouterWithSimpleViews()
router.register(r'registries', api_views.RegistryList, basename='registry')
router.register(r'users', api_views.CustomUserViewSet)
router.register(r'doctors', api_views.DoctorViewSet)
router.register(r'nextofkinrelationship', api_views.NextOfKinRelationshipViewSet)
router.register(r'workinggroups', api_views.WorkingGroupViewSet)
router.register(r'countries', api_views.ListCountries, base_name='country')
router.register(r'genes', api_views.LookupGenes, base_name='gene')
router.register(r'laboratories', api_views.LookupLaboratories, base_name='laboratory')
router.register(r'registries/(?P<registry_code>\w+)/indices',
                api_views.LookupIndex, base_name='index')
router.register(r'registries/(?P<registry_code>\w+)/clinicians',
                api_views.ListClinicians, base_name='clinician')
router.register(r'calculatedcdes', api_views.CalculatedCdeValue, base_name='calculatedcde')
router.register(r'tasks/(?P<task_id>[0-9a-z_\-]+)', api_views.TaskInfoView, base_name='task')
router.register(r'taskdownloads/(?P<task_id>[0-9a-z_\-]+)',
                api_views.TaskResultDownloadView, base_name='download')

urlpatterns = [
    re_path(r'registries/(?P<code>\w+)/$', api_views.RegistryDetail.as_view(), name='registry-detail'),
    re_path(r'registries/(?P<registry_code>\w+)/patients/$',
            api_views.PatientList.as_view(), name='patient-list'),
    re_path(r'registries/(?P<registry_code>\w+)/patients/(?P<pk>\d+)/$',<commit_msg>rdrf #1605 Replaced missed instances of 'base_name' with 'basename' for router.register()<commit_after>from django.urls import re_path
from rdrf.services.rest.views import api_views
from rdrf.routing.custom_rest_router import DefaultRouterWithSimpleViews


router = DefaultRouterWithSimpleViews()
router.register(r'registries', api_views.RegistryList, basename='registry')
router.register(r'users', api_views.CustomUserViewSet)
router.register(r'doctors', api_views.DoctorViewSet)
router.register(r'nextofkinrelationship', api_views.NextOfKinRelationshipViewSet)
router.register(r'workinggroups', api_views.WorkingGroupViewSet)
router.register(r'countries', api_views.ListCountries, basename='country')
router.register(r'genes', api_views.LookupGenes, basename='gene')
router.register(r'laboratories', api_views.LookupLaboratories, basename='laboratory')
router.register(r'registries/(?P<registry_code>\w+)/indices',
                api_views.LookupIndex, basename='index')
router.register(r'registries/(?P<registry_code>\w+)/clinicians',
                api_views.ListClinicians, basename='clinician')
router.register(r'calculatedcdes', api_views.CalculatedCdeValue, basename='calculatedcde')
router.register(r'tasks/(?P<task_id>[0-9a-z_\-]+)', api_views.TaskInfoView, basename='task')
router.register(r'taskdownloads/(?P<task_id>[0-9a-z_\-]+)',
                api_views.TaskResultDownloadView, basename='download')

urlpatterns = [
    re_path(r'registries/(?P<code>\w+)/$', api_views.RegistryDetail.as_view(), name='registry-detail'),
    re_path(r'registries/(?P<registry_code>\w+)/patients/$',
            api_views.PatientList.as_view(), name='patient-list'),
    re_path(r'registries/(?P<registry_code>\w+)/patients/(?P<pk>\d+)/$',
{'fraction_non_alphanumeric': 0.15425219941348975, 'fraction_numerical': 0.0035190615835777126, 'mean_word_length': 7.239130434782608, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5988360', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1137, 'n_words': 123}