<commit_before>import { fillZero } from "../Helper/Util";

export class TimeSpan {
    private epochMilliSeconds: number;
    constructor(date: Date);
    constructor(epochMilliSeconds: number);
    constructor(hours: number, minutes: number, seconds: number, milliSeconds?: number);
    constructor(hours: number | Date, minutes?: number, seconds?: number, milliSeconds?: number) {
        if (hours instanceof Date) {
            milliSeconds = hours.getMilliseconds();
            seconds = hours.getSeconds();
            minutes = hours.getMinutes();
            hours = hours.getHours();
        }
        else if (arguments.length === 1) {
            this.epochMilliSeconds = hours;
            return;
        }

        this.epochMilliSeconds = hours * 3600000;<commit_msg>* constructor: TimeSpan(string)<commit_after>import { fillZero } from "../Helper/Util";

export class TimeSpan {
    private epochMilliSeconds: number;
    constructor(date: Date);
    constructor(timeString: string);
    constructor(epochMilliSeconds: number);
    constructor(hours: number, minutes: number, seconds: number, milliSeconds?: number);
    constructor(hours: number | Date | string, minutes?: number, seconds?: number, milliSeconds?: number) {
        if (hours instanceof Date) {
            milliSeconds = hours.getMilliseconds();
            seconds = hours.getSeconds();
            minutes = hours.getMinutes();
            hours = hours.getHours();
        }
        else if (typeof hours === "string") {
            return TimeSpan.parse(hours);
        }
        else if (arguments.length === 1) {
            this.epochMilliSeconds = hours;
            return;
        }

        this.epochMilliSeconds = hours * 3600000;
{'fraction_non_alphanumeric': 0.11458333333333333, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 2.6171548117154813, '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': '2717471', 'n_tokens_mistral': 465, 'n_tokens_neox': 445, 'n_words': 117}