<commit_before># -*- coding: utf-8 -*-

"""URL patterns for views to modify user profiles."""

from django.conf.urls import url

from readthedocs.core.forms import UserProfileForm
from readthedocs.profiles import views


urlpatterns = [
    url(
        r'^edit/',
        views.edit_profile,
        {
            'form_class': UserProfileForm,
            'template_name': 'profiles/private/edit_profile.html',
        },
        name='profiles_profile_edit',
    ),
    url(r'^delete/', views.delete_account, name='delete_account'),
    url(
        r'^advertising/$',
        views.account_advertising,
        name='account_advertising',
    ),
]

tokens_urls = [
    url(
        r'^tokens/$',<commit_msg>Split urlpatterns accordingly<commit_after># -*- coding: utf-8 -*-

"""URL patterns for views to modify user profiles."""

from django.conf.urls import url

from readthedocs.core.forms import UserProfileForm
from readthedocs.profiles import views

# Split URLs into different lists to be able to selectively import them from a
# another application (like Read the Docs Corporate), where we may don't need to
# define Token URLs, for example.
urlpatterns = []

account_urls = [
    url(
        r'^edit/',
        views.edit_profile,
        {
            'form_class': UserProfileForm,
            'template_name': 'profiles/private/edit_profile.html',
        },
        name='profiles_profile_edit',
    ),
    url(r'^delete/', views.delete_account, name='delete_account'),
    url(
        r'^advertising/$',
        views.account_advertising,
        name='account_advertising',
    ),
]

urlpatterns += account_urls

tokens_urls = [
    url(
        r'^tokens/$',
{'fraction_non_alphanumeric': 0.12030970815961882, 'fraction_numerical': 0.0011911852293031567, 'mean_word_length': 2.7837837837837838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3612729', 'n_tokens_mistral': 518, 'n_tokens_neox': 500, 'n_words': 120}