<commit_before>from django.contrib import admin
from django.contrib import auth
from django.utils.translation import ugettext_lazy as _

from . import models


class UserAdmin(auth.admin.UserAdmin):
    fieldsets = (
        (None, {'fields': ('username', 'email', 'password')}),
        (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),
        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
    )
    add_fieldsets = (
        (None, {
            'classes': ('wide',),
            'fields': ('username', 'email', '<PASSWORD>', '<PASSWORD>'),
        }),
    )
    readonly_fields = ('date_joined', 'last_login')
    list_display = (
        'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',
        'is_superuser'
    )
    list_filter = ('is_staff', 'is_superuser', 'last_login')
    search_fields = ('username', 'email')


admin.site.register(models.User, UserAdmin)
<commit_msg>search by id<commit_after>from django.contrib import admin
from django.contrib import auth
from django.utils.translation import ugettext_lazy as _

from . import models


class UserAdmin(auth.admin.UserAdmin):
    fieldsets = (
        (None, {'fields': ('username', 'email', 'password')}),
        (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),
        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
    )
    add_fieldsets = (
        (None, {
            'classes': ('wide',),
            'fields': ('username', 'email', '<PASSWORD>', '<PASSWORD>'),
        }),
    )
    readonly_fields = ('date_joined', 'last_login')
    list_display = (
        'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',
        'is_superuser'
    )
    list_filter = ('is_staff', 'is_superuser', 'last_login')
    search_fields = ('username', 'email', 'id')


admin.site.register(models.User, UserAdmin)

{'fraction_non_alphanumeric': 0.1831286705819541, 'fraction_numerical': 0.0, 'mean_word_length': 3.440758293838863, 'pattern_counts': {'":': 0, '<': 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': '1857323', 'n_tokens_mistral': 586, 'n_tokens_neox': 591, 'n_words': 127}