<commit_before>"""Admin configuration for Lutris games"""
from django.contrib import admin

import models
import forms


class NewsAdmin(admin.ModelAdmin):
    form = forms.NewsForm


class GameAdmin(admin.ModelAdmin):
    form = forms.GameForm

    class Media:
        js = ('js/jquery-1.9.0.min.js', )


admin.site.register(models.SiteACL)
admin.site.register(models.News, NewsAdmin)
admin.site.register(models.Game, GameAdmin)
admin.site.register(models.Screenshot)
admin.site.register(models.Genre)
admin.site.register(models.Runner)
admin.site.register(models.Platform)
admin.site.register(models.Company)
admin.site.register(models.Installer)
<commit_msg>Order games by name in admin<commit_after>"""Admin configuration for Lutris games"""
from django.contrib import admin

import models
import forms


class NewsAdmin(admin.ModelAdmin):
    form = forms.NewsForm


class GameAdmin(admin.ModelAdmin):
    form = forms.GameForm
    ordering = ("name", )

    class Media:
        js = ('js/jquery-1.9.0.min.js', )


admin.site.register(models.SiteACL)
admin.site.register(models.News, NewsAdmin)
admin.site.register(models.Game, GameAdmin)
admin.site.register(models.Screenshot)
admin.site.register(models.Genre)
admin.site.register(models.Runner)
admin.site.register(models.Platform)
admin.site.register(models.Company)
admin.site.register(models.Installer)

{'fraction_non_alphanumeric': 0.12454212454212454, 'fraction_numerical': 0.004395604395604396, 'mean_word_length': 5.04424778761062, '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': '7079311', 'n_tokens_mistral': 438, 'n_tokens_neox': 427, 'n_words': 79}