<commit_before>from bonvortaro.vortaro import models
from django.conf.urls.defaults import *
from django.contrib import admin
from django.views.generic.list_detail import object_list, object_detail

admin.autodiscover()

roots = {
    "queryset": models.Root.objects.all(),
    "template_object_name": "root"
}
words = {
    "queryset": models.Word.objects.all(),
    "template_object_name": "word"
}

urlpatterns = patterns(
    '',
    
    url(r"^root/$", object_list, roots, name="roots"),
    url(r"^root/(?P<object_id>\d+)/$", object_detail, roots, name="root"),
    url(r"^word/$", object_list, words, name="words"),
    url(r"^word/(?P<object_id>\d+)/$", object_detail, words, name="word"),
    
    url(r'^admin/(.*)', admin.site.root, name="admin"),
)
<commit_msg>List words and roots alphabetically.<commit_after>from bonvortaro.vortaro import models
from django.conf.urls.defaults import *
from django.contrib import admin
from django.views.generic.list_detail import object_list, object_detail

admin.autodiscover()

roots = {
    "queryset": models.Root.objects.order_by("root"),
    "template_object_name": "root"
}
words = {
    "queryset": models.Word.objects.order_by("word"),
    "template_object_name": "word"
}

urlpatterns = patterns(
    '',
    
    url(r"^root/$", object_list, roots, name="roots"),
    url(r"^root/(?P<object_id>\d+)/$", object_detail, roots, name="root"),
    url(r"^word/$", object_list, words, name="words"),
    url(r"^word/(?P<object_id>\d+)/$", object_detail, words, name="word"),
    
    url(r'^admin/(.*)', admin.site.root, name="admin"),
)

{'fraction_non_alphanumeric': 0.1864406779661017, 'fraction_numerical': 0.0, 'mean_word_length': 4.652482269503546, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 7, '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': '5535204', 'n_tokens_mistral': 563, 'n_tokens_neox': 560, 'n_words': 100}