<commit_before>from django.contrib import admin
from . import models


class LaneAdmin(admin.ModelAdmin):
    list_filter = ('cluster__name',)

admin.site.register(models.Lane, LaneAdmin)

admin.site.register(models.LaneReservation)

admin.site.register(models.FullTimeValidator)
admin.site.register(models.GivenHoursAndWeekdaysValidator)
admin.site.register(models.TimeIntervalValidator)
admin.site.register(models.NotWithinPeriodValidator)
admin.site.register(models.MaxReservationsPerUserValidator)


class PeriodInline(admin.TabularInline):
    model = models.Period


class WithinPeriodValidatorAdmin(admin.ModelAdmin):
    inlines = [PeriodInline]


admin.site.register(models.WithinPeriodValidator, WithinPeriodValidatorAdmin)<commit_msg>update admin<commit_after>from django.contrib import admin
from . import models


class LaneAdmin(admin.ModelAdmin):
    list_filter = ('cluster__name',)

admin.site.register(models.Lane, LaneAdmin)

admin.site.register(models.LaneReservation)

admin.site.register(models.LFullTimeValidator)
admin.site.register(models.LGivenHoursAndWeekdaysValidator)
admin.site.register(models.LTimeIntervalValidator)
admin.site.register(models.LNotWithinPeriodValidator)
admin.site.register(models.LMaxReservationsPerUserValidator)


class PeriodInline(admin.TabularInline):
    model = models.Period


class WithinPeriodValidatorAdmin(admin.ModelAdmin):
    inlines = [PeriodInline]


admin.site.register(models.LWithinPeriodValidator, WithinPeriodValidatorAdmin)
{'fraction_non_alphanumeric': 0.09364548494983277, 'fraction_numerical': 0.0, 'mean_word_length': 7.6976744186046515, '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': '4461311', 'n_tokens_mistral': 438, 'n_tokens_neox': 428, 'n_words': 58}