<commit_before>from django import template
from django.shortcuts import get_object_or_404
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext, ugettext_lazy as _
from datetime import datetime, time
from django.utils import timezone

register = template.Library()

@register.filter
def display_upcoming_time(community):
    """ display only date if hour information if not set (remains at default '00:00)
    """
    when = timezone.localtime(community.upcoming_meeting_scheduled_at)
    if not when:
        return _("Not set yet")
    else:
        t = when.timetz()
        if t.hour == 0 and t.minute == 0:
            return when.date()

        else:
            return when<commit_msg>slight change to display_upcoming_time tag<commit_after>from django import template
from django.shortcuts import get_object_or_404
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext, ugettext_lazy as _
from datetime import datetime, time
from django.utils import timezone

register = template.Library()

@register.filter
def display_upcoming_time(community):
    """ display only date if hour information if not set (remains at default '00:00)
    """
    if not community.upcoming_meeting_scheduled_at:
        return _("Not set yet")
    when = timezone.localtime(community.upcoming_meeting_scheduled_at)
    t = when.timetz()
    if t.hour == 0 and t.minute == 0:
        return when.date()

    else:
        return when
{'fraction_non_alphanumeric': 0.0749665327978581, 'fraction_numerical': 0.012048192771084338, 'mean_word_length': 3.7160883280757098, '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': '6952138', 'n_tokens_mistral': 446, 'n_tokens_neox': 425, 'n_words': 138}