<commit_before>from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^blog/posts/$', views.PostListView.as_view(), name='post_list'),
]<commit_msg>Creating a foundation for writing flexible URLs.<commit_after>from django.conf import settings
from django.conf.urls import url

from . import views

# Making blog URLs flexible by updating the default URLs with custom URLS
# Using this updated dictionary for generating URLs
BLOG_URLS = {
    'post_list': r'^posts/$',
}
BLOG_URLS.update(getattr(settings, 'BLOG_URLS', {}))


urlpatterns = [
    # URL to display the list of paginated blog posts
    url(BLOG_URLS['post_list'], views.PostListView.as_view(),
        name='post_list'),
]
{'fraction_non_alphanumeric': 0.11251758087201125, 'fraction_numerical': 0.0, 'mean_word_length': 4.696, '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': '6145876', 'n_tokens_mistral': 225, 'n_tokens_neox': 216, 'n_words': 65}