<commit_before>from django.contrib import admin
from borme.models import Anuncio, BormeLog, Borme, Config, Company, Person


class AnuncioAdmin(admin.ModelAdmin):
    list_display = ('id_anuncio', 'year', 'company', 'borme', 'total_actos')
    search_fields = ['id_anuncio', 'year']


class BormeAdmin(admin.ModelAdmin):
    list_display = ('cve', 'date', 'province', 'section', 'total_anuncios')
    search_fields = ['cve', 'province']


class BormeLogAdmin(admin.ModelAdmin):
    list_display = ('borme', 'path', 'date_created', 'date_updated', 'date_parsed', 'parsed')
    search_fields = ['borme__cve']


class CompanyAdmin(admin.ModelAdmin):
    list_display = ('name', 'type', 'date_updated', 'in_bormes', 'anuncios', 'total_bormes', 'total_anuncios')
    search_fields = ['name']


class PersonAdmin(admin.ModelAdmin):
    list_display = ('name', 'date_updated', 'in_companies', 'in_bormes', 'total_companies', 'total_bormes')
    search_fields = ['name']


admin.site.register(Anuncio, AnuncioAdmin)
admin.site.register(Borme, BormeAdmin)
admin.site.register(BormeLog, BormeLogAdmin)
admin.site.register(Company, CompanyAdmin)
admin.site.register(Person, PersonAdmin)
admin.site.register(Config)<commit_msg>Interfaz de admin: list_filter<commit_after>from django.contrib import admin
from borme.models import Anuncio, BormeLog, Borme, Config, Company, Person


class AnuncioAdmin(admin.ModelAdmin):
    list_display = ('id_anuncio', 'year', 'company', 'borme', 'total_actos')
    list_filter = ('year',)
    search_fields = ['id_anuncio', 'year']


class BormeAdmin(admin.ModelAdmin):
    list_display = ('cve', 'date', 'province', 'section', 'total_anuncios')
    list_filter = ('province', 'section')
    search_fields = ['cve', 'province']


class BormeLogAdmin(admin.ModelAdmin):
    list_display = ('borme', 'path', 'date_created', 'date_updated', 'date_parsed', 'parsed')
    list_filter = ('parsed',)
    search_fields = ['borme__cve']


class CompanyAdmin(admin.ModelAdmin):
    list_display = ('name', 'type', 'date_updated', 'in_bormes', 'anuncios', 'total_bormes', 'total_anuncios')
    list_filter = ('type',)
    search_fields = ['name']


class PersonAdmin(admin.ModelAdmin):
    list_display = ('name', 'date_updated', 'in_companies', 'in_bormes', 'total_companies', 'total_bormes')
    search_fields = ['name']


admin.site.register(Anuncio, AnuncioAdmin)
admin.site.register(Borme, BormeAdmin)
admin.site.register(BormeLog, BormeLogAdmin)
admin.site.register(Company, CompanyAdmin)
admin.site.register(Person, PersonAdmin)
admin.site.register(Config)
{'fraction_non_alphanumeric': 0.15572815533980583, 'fraction_numerical': 0.0, 'mean_word_length': 6.2974504249291785, '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': '566589', 'n_tokens_mistral': 908, 'n_tokens_neox': 895, 'n_words': 171}