<commit_before>from django.utils.simplejson.encoder import JSONEncoder
from django.http import Http404, HttpResponse
from django.template import RequestContext, Context, loader
from django.shortcuts import render_to_response
from django.conf import settings
from tracking.models import Visitor
from datetime import datetime

def update_active_users(request):
    """
    Returns a list of all active users
    """
    if request.is_ajax():<commit_msg>Trying to fix a unicode error<commit_after>from django.utils.simplejson.encoder import JSONEncoder
from django.http import Http404, HttpResponse
from django.template import RequestContext, Context, loader
from django.shortcuts import render_to_response
from django.conf import settings
from tracking.models import Visitor
from datetime import datetime
import unicodedata

def update_active_users(request):
    """
    Returns a list of all active users
    """
    if request.is_ajax():
{'fraction_non_alphanumeric': 0.0576307363927428, 'fraction_numerical': 0.0064034151547491995, 'mean_word_length': 5.424657534246576, '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': '2083162', 'n_tokens_mistral': 240, 'n_tokens_neox': 232, 'n_words': 90}