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

import datetime
import typing as t


def format_duration(duration: int):
    duration_delta = datetime.timedelta(milliseconds=duration)

    mm, ss = divmod(duration_delta.seconds, 60)
    hh, mm = divmod(mm, 60)

    s = "%d:%02d:%02d" % (hh, mm, ss)

    return s


def format_timestamp(timestamp: t.Union[int, float], fmt: str):
    return datetime.datetime.fromtimestamp(timestamp).strftime(f'{fmt}')<commit_msg>Add return types<commit_after># -*- coding: utf-8 -*-

import datetime
import typing as t


def format_duration(duration: int) -> str:
    duration_delta = datetime.timedelta(milliseconds=duration)

    mm, ss = divmod(duration_delta.seconds, 60)
    hh, mm = divmod(mm, 60)

    s = "%d:%02d:%02d" % (hh, mm, ss)

    return s


def format_timestamp(timestamp: t.Union[int, float], fmt: str) -> str:
    return datetime.datetime.fromtimestamp(timestamp).strftime(f'{fmt}')
{'fraction_non_alphanumeric': 0.14639397201291712, 'fraction_numerical': 0.0193756727664155, 'mean_word_length': 4.138121546961326, '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': '6054600', 'n_tokens_mistral': 335, 'n_tokens_neox': 308, 'n_words': 77}