<commit_before>""" Template tags relating to tickets. """

from django import template

register = template.Library()


@register.filter(name='has_tickets')
def user_has_tickets(user, event):
    """ Return True if the user has tickets for this event. """
    return event.votes.filter(user=user).count() > 0<commit_msg>Tickets typo<commit_after>""" Template tags relating to tickets. """

from django import template

register = template.Library()


@register.filter(name='has_tickets')
def user_has_tickets(user, event):
    """ Return True if the user has tickets for this event. """
    return event.tickets.filter(user=user).count() > 0
{'fraction_non_alphanumeric': 0.12792511700468018, 'fraction_numerical': 0.0031201248049922, 'mean_word_length': 5.056603773584905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6621052', 'n_tokens_mistral': 188, 'n_tokens_neox': 183, 'n_words': 58}