<commit_before>from django.conf.urls import patterns, include, url

urlpatterns = patterns(
    "postweb.views",
    url(r"^$", "index", name="index"),
    url(r"^posts/(?P<pk>.*)$", "post_detail", name="post-detail"),
    url(r"^compose$", "compose", name="compose"),
)

urlpatterns += patterns(
    "django.contrib.auth.views",
    url(r"^login/$", "login", name="login"),
    url(r"^logout/$", "logout_then_login", name="logout"),
)<commit_msg>postweb/urls: upgrade to Django 4.x<commit_after>from django.urls import path

from postweb import views as postweb
from django.contrib.auth import views as auth

app_name = "postweb"
urlpatterns = [
    path("", postweb.index, name="index"),
    path("posts/<int:pk>", postweb.post_detail, name="post-detail"),
    path("compose", postweb.compose, name="compose"),
]

urlpatterns += [
    path("login/", auth.LoginView.as_view(), name="login"),
    path("logout/", auth.logout_then_login, name="logout"),
]
{'fraction_non_alphanumeric': 0.19811320754716982, 'fraction_numerical': 0.0010482180293501049, 'mean_word_length': 5.161290322580645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1725130', 'n_tokens_mistral': 337, 'n_tokens_neox': 336, 'n_words': 66}