<commit_before># -*- coding: utf-8 -*-

from datetime import datetime, timedelta

def todayhelper():
    today = datetime.today()
    return datetime(day=today.day, year=today.year, month=today.month)

def format_single_helper(t):
    now = datetime.now()
    today = todayhelper()
    tomorrow = today + timedelta(days=1)
    the_day_after_tomorrow = today + timedelta(days=2) # Must honor the movie!
    
    if t < now:
        return "päättynyt"
    elif t >= now and t < tomorrow:
        return "tänään klo. " + t.strftime("%H:%M")
    elif t >= tomorrow and t < the_day_after_tomorrow:
        return "huomenna klo. " + t.strftime("%H:%M")
    elif t >= the_day_after_tomorrow and t < today+timedelta(days=3):
        return "ylihuomenna klo. " + t.strftime("%H:%M")
    else:
        return t.strftime("%d.%m.%Y klo. %H:%M")

def format_single(t):
    return format_single_helper(t).capitalize()

def format_between(t1, t2):
    now = datetime.now()
    today = todayhelper()
    tomorrow = today + timedelta(days=1)
    the_day_after_tomorrow = today + timedelta(days=2) # Must honor the movie!
    
    if t1 < now and t2 > now:
        left = t2-now
        l_hours = int(left.total_seconds() / timedelta(hours=1).total_seconds())
        l_minutes = int((left.total_seconds() - timedelta(hours=l_hours).total_seconds()) / 60)
        if(l_hours == 0):<commit_msg>Compo time formatter fixes<commit_after># -*- coding: utf-8 -*-

from datetime import datetime, timedelta

def todayhelper():
    today = datetime.today()
    return datetime(day=today.day, year=today.year, month=today.month)

def format_single_helper(t):
    now = datetime.now()
    today = todayhelper()
    tomorrow = today + timedelta(days=1)
    the_day_after_tomorrow = today + timedelta(days=2) # Must honor the movie!
    
    if t < now:
        return "päättynyt"
    elif t >= now and t < tomorrow:
        return "tänään klo. " + t.strftime("%H:%M")
    elif t >= tomorrow and t < the_day_after_tomorrow:
        return "huomenna klo. " + t.strftime("%H:%M")
    elif t >= the_day_after_tomorrow and t < today+timedelta(days=3):
        return "ylihuomenna klo. " + t.strftime("%H:%M")
    else:
        return t.strftime("%d.%m.%Y klo. %H:%M")

def format_single(t):
    return format_single_helper(t).capitalize()

def format_between(t1, t2):
    now = datetime.now()
    today = todayhelper()
    tomorrow = today + timedelta(days=1)
    the_day_after_tomorrow = today + timedelta(days=2) # Must honor the movie!
    
    if t2 < now:
        return "Päättynyt"
    elif t1 < now and t2 > now:
        left = t2-now
        l_hours = int(left.total_seconds() / timedelta(hours=1).total_seconds())
        l_minutes = int((left.total_seconds() - timedelta(hours=l_hours).total_seconds()) / 60)
        if(l_hours == 0):
{'fraction_non_alphanumeric': 0.13883944464222142, 'fraction_numerical': 0.011035955856176576, 'mean_word_length': 3.0843023255813953, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 11, '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': '7378933', 'n_tokens_mistral': 1023, 'n_tokens_neox': 972, 'n_words': 227}