<commit_before>from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render, get_object_or_404
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings
from xbrowse_server.base.utils import get_projects_for_user


@login_required
@staff_member_required
def last_1000_views(request):
    views = settings.LOGGING_DB.pageviews.find({'page': {'$ne': 'home'}}).sort([('date', -1)])[:20000]
    views = [v for v in views if ('username' not in v or 'weisburd' not in v['username'])]
    return render(request, 'staff/last_1000_views.html', {
        'views': views, <commit_msg>Minor ui and wording changes<commit_after>from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render, get_object_or_404
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings
from xbrowse_server.base.utils import get_projects_for_user


@login_required
@staff_member_required
def last_1000_views(request):
    views = settings.LOGGING_DB.pageviews.find({'page': {'$ne': 'home'}}).sort([('date', -1)])[:5000]
    views = [v for v in views if ('username' not in v or 'weisburd' not in v['username'])]
    return render(request, 'staff/last_1000_views.html', {
        'views': views, 
{'fraction_non_alphanumeric': 0.11505681818181818, 'fraction_numerical': 0.0234375, 'mean_word_length': 5.806763285024155, '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': '494871', 'n_tokens_mistral': 463, 'n_tokens_neox': 433, 'n_words': 114}