<commit_before>from django import template
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse

from hackingweek.models import UserProfile, Team

from django.template.base import Variable, VariableDoesNotExist

register = template.Library()

@register.simple_tag
def user_count():
    return User.objects.exclude(is_staff=True).count()

@register.simple_tag
def team_count():
    return Team.objects.all().count()
<commit_msg>Excluding non active users<commit_after>from django import template
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse

from hackingweek.models import UserProfile, Team

from django.template.base import Variable, VariableDoesNotExist

register = template.Library()

@register.simple_tag
def user_count():
    return User.objects.filter(is_active=True).exclude(is_staff=True).count()

@register.simple_tag
def team_count():
    return Team.objects.all().count()

{'fraction_non_alphanumeric': 0.09147609147609148, 'fraction_numerical': 0.0, 'mean_word_length': 6.133333333333334, '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': '7140374', 'n_tokens_mistral': 278, 'n_tokens_neox': 268, 'n_words': 71}