<commit_before>from django.urls import path, reverse_lazy
from django.views.generic import TemplateView, RedirectView

from . import views
from .views import api

api_urls = [
    path(
        "api/people/retrieve/",
        api.RetrievePersonView.as_view(),
        name="api_people_retrieve",
    ),
    path(
        "api/people/subscription/",
        api.SubscriptionAPIView.as_view(),
        name="api_people_subscription",
    ),
    path("api/inscription/", api.SignupAPIView.as_view(), name="api_people_signup",),
    path(
        "api/user/profile/",
        api.PersonProfileAPIView.as_view(),
        name="api_people_profile",
    ),
    path(
        "api/people/newsletters/",
        api.ManageNewslettersAPIView.as_view(),
        name="api_people_newsletters",
    ),
    path("api/people/counter/", api.CounterAPIView.as_view(), name="api_counter",),
    path(
        "api/people/referrer/<str:referrer_id>/",
        api.ReferrerInformationView.as_view(),
        name="api_referrer_information",
    ),
]

subscribe_urls = [
    path(
        "inscription/etranger/",
        RedirectView.as_view(url=reverse_lazy("signup")),
        name="subscription_overseas",
    ),
    path(
        "inscription/confirmer/",
        views.ConfirmSubscriptionView.as_view(),
        name="subscription_confirm",
    ),
]

profile_urls = [
    path("profil/supprimer/", views.DeleteAccountView.as_view(), name="delete_account"),
    path(
        "profil/identite/",
        views.PersonalInformationsView.as_view(),
        name="personal_information",
    ),
    path("profil/competences", views.SkillsView.as_view(), name="skills"),
    path("profil/engagement/", views.VolunteerView.as_view(), name="volunteer"),
    path("profil/contact/", views.ContactView.as_view(), name="contact"),
    path(
        "profil/contact/adresses/",
        views.AddEmailMergeAccountView.as_view(),
        name="manage_account",
    ),
    path(
        "profil/contact/adresses/confirmer",
        views.ConfirmMergeAccountView.as_view(),
        name="confirm_merge_account",
    ),
    path(
        "profil/contact/adresses/<int:pk>/principale/",
        views.ChangePrimaryEmailView.as_view(),
        name="change_primary_mail",
    ),
    path(
        "profil/contact/adresses/fusion_attente/",
        views.SendConfirmationMergeAccountView.as_view(),
        name="confirm_merge_account_sent",
    ),
    path(
        "profil/contact/adresses/<int:pk>/supprimer/",
        views.DeleteEmailAddressView.as_view(),
        name="delete_email",
    ),
    path(
        "profil/adresses/confirmer",
        views.ConfirmChangeMailView.as_view(),
        name="confirm_change_mail",
    ),
    path("profil/mandats/", views.MandatsView.as_view(), name="mandats"),
    path(
        "profil/confidentialite/",
        views.PersonalDataView.as_view(),
        name="personal_data",
    ),
    path("profil/paiements/", views.PaymentsView.as_view(), name="view_payments"),
    path(
        "telephone/sms",
        views.SendValidationSMSView.as_view(),
        name="send_validation_sms",
    ),
    path(
        "telephone/validation",
        views.CodeValidationView.as_view(),
        name="sms_code_validation",
    ),
]

unsubscribe_urls = [
    path("desinscription/", views.UnsubscribeView.as_view(), name="unsubscribe"),
    path("desabonnement/", views.UnsubscribeView.as_view(), name="unsubscribe"),
    path(
        "desabonnement/succes/",
        TemplateView.as_view(template_name="people/unsubscribe_success.html"),
        name="unsubscribe_success",
    ),
    path(
        "supprimer/succes",
        TemplateView.as_view(
            template_name="people/profile/delete_account_success.html"
        ),
        name="delete_account_success",
    ),
]


form_urls = [
    path(
        "formulaires/<slug:slug>/",
        views.PeopleFormNewSubmissionView.as_view(),
        name="view_person_form",
    ),
    path(
        "formulaires/<slug:slug>/edit/<pk>",
        views.PeopleFormEditSubmissionView.as_view(),
        name="edit_person_form_submission",
    ),
    path(
        "formulaires/<slug:slug>/reponses/",
        views.PeopleFormSubmissionsPublicView.as_view(),
        name="person_form_submissions",
    ),
    path(
        "formulaires/<slug:slug>/confirmation/",
        views.PeopleFormConfirmationView.as_view(),
        name="person_form_confirmation",
    ),
    path(
        "formulaires/resultats/<uuid:uuid>/",
        views.PeopleFormSubmissionsPrivateView.as_view(),
        name="person_form_private_submissions",
    ),
]


dashboard_urls = [  # dashboard
    path("recherche", views.SearchView.as_view(), name="dashboard_search"),
]<commit_msg>fix: broken dashboard_search url config<commit_after>from django.urls import path, reverse_lazy
from django.views.generic import TemplateView, RedirectView

from . import views
from .views import api

api_urls = [
    path(
        "api/people/retrieve/",
        api.RetrievePersonView.as_view(),
        name="api_people_retrieve",
    ),
    path(
        "api/people/subscription/",
        api.SubscriptionAPIView.as_view(),
        name="api_people_subscription",
    ),
    path("api/inscription/", api.SignupAPIView.as_view(), name="api_people_signup",),
    path(
        "api/user/profile/",
        api.PersonProfileAPIView.as_view(),
        name="api_people_profile",
    ),
    path(
        "api/people/newsletters/",
        api.ManageNewslettersAPIView.as_view(),
        name="api_people_newsletters",
    ),
    path("api/people/counter/", api.CounterAPIView.as_view(), name="api_counter",),
    path(
        "api/people/referrer/<str:referrer_id>/",
        api.ReferrerInformationView.as_view(),
        name="api_referrer_information",
    ),
]

subscribe_urls = [
    path(
        "inscription/etranger/",
        RedirectView.as_view(url=reverse_lazy("signup")),
        name="subscription_overseas",
    ),
    path(
        "inscription/confirmer/",
        views.ConfirmSubscriptionView.as_view(),
        name="subscription_confirm",
    ),
]

profile_urls = [
    path("profil/supprimer/", views.DeleteAccountView.as_view(), name="delete_account"),
    path(
        "profil/identite/",
        views.PersonalInformationsView.as_view(),
        name="personal_information",
    ),
    path("profil/competences", views.SkillsView.as_view(), name="skills"),
    path("profil/engagement/", views.VolunteerView.as_view(), name="volunteer"),
    path("profil/contact/", views.ContactView.as_view(), name="contact"),
    path(
        "profil/contact/adresses/",
        views.AddEmailMergeAccountView.as_view(),
        name="manage_account",
    ),
    path(
        "profil/contact/adresses/confirmer",
        views.ConfirmMergeAccountView.as_view(),
        name="confirm_merge_account",
    ),
    path(
        "profil/contact/adresses/<int:pk>/principale/",
        views.ChangePrimaryEmailView.as_view(),
        name="change_primary_mail",
    ),
    path(
        "profil/contact/adresses/fusion_attente/",
        views.SendConfirmationMergeAccountView.as_view(),
        name="confirm_merge_account_sent",
    ),
    path(
        "profil/contact/adresses/<int:pk>/supprimer/",
        views.DeleteEmailAddressView.as_view(),
        name="delete_email",
    ),
    path(
        "profil/adresses/confirmer",
        views.ConfirmChangeMailView.as_view(),
        name="confirm_change_mail",
    ),
    path("profil/mandats/", views.MandatsView.as_view(), name="mandats"),
    path(
        "profil/confidentialite/",
        views.PersonalDataView.as_view(),
        name="personal_data",
    ),
    path("profil/paiements/", views.PaymentsView.as_view(), name="view_payments"),
    path(
        "telephone/sms",
        views.SendValidationSMSView.as_view(),
        name="send_validation_sms",
    ),
    path(
        "telephone/validation",
        views.CodeValidationView.as_view(),
        name="sms_code_validation",
    ),
]

unsubscribe_urls = [
    path("desinscription/", views.UnsubscribeView.as_view(), name="unsubscribe"),
    path("desabonnement/", views.UnsubscribeView.as_view(), name="unsubscribe"),
    path(
        "desabonnement/succes/",
        TemplateView.as_view(template_name="people/unsubscribe_success.html"),
        name="unsubscribe_success",
    ),
    path(
        "supprimer/succes",
        TemplateView.as_view(
            template_name="people/profile/delete_account_success.html"
        ),
        name="delete_account_success",
    ),
]


form_urls = [
    path(
        "formulaires/<slug:slug>/",
        views.PeopleFormNewSubmissionView.as_view(),
        name="view_person_form",
    ),
    path(
        "formulaires/<slug:slug>/edit/<pk>",
        views.PeopleFormEditSubmissionView.as_view(),
        name="edit_person_form_submission",
    ),
    path(
        "formulaires/<slug:slug>/reponses/",
        views.PeopleFormSubmissionsPublicView.as_view(),
        name="person_form_submissions",
    ),
    path(
        "formulaires/<slug:slug>/confirmation/",
        views.PeopleFormConfirmationView.as_view(),
        name="person_form_confirmation",
    ),
    path(
        "formulaires/resultats/<uuid:uuid>/",
        views.PeopleFormSubmissionsPrivateView.as_view(),
        name="person_form_private_submissions",
    ),
]


dashboard_urls = [  # dashboard
    path("recherche/", views.SearchView.as_view(), name="dashboard_search"),
]
{'fraction_non_alphanumeric': 0.14139062334638586, 'fraction_numerical': 0.0, 'mean_word_length': 2.9276807980049875, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5902499', 'n_tokens_mistral': 3023, 'n_tokens_neox': 3029, 'n_words': 312}