<commit_before>
import * as Logger from "../logging/logger";

interface ActiveUsers {
    [channelName: string]: {
        [userId: string]: number;
    }[];
}

export class Active {
    activeUsers: ActiveUsers;

    constructor() { }

    addUser(uuid: string, channel: string) {
        this.activeUsers[channel].push({ uuid: 0 });
    }

    deleteUser(uuid: string, channel: string) {
        // TODO
    }
}<commit_msg>Begin activeUsers<commit_after>
import * as Logger from "../logging/logger";

interface ActiveUsers {
    [channelName: string]: {
        [userId: string]: number;
    }[];
}

export class Active {
    activeUsers: ActiveUsers;
    activeTime: number;

    constructor(activeTime?: number) {
        if (activeTime != null) {
            this.activeTime = 4;
        } else {
            this.activeTime = activeTime;
        }
    }

    addUser(uuid: string, channel: string) {
        this.activeUsers[channel].push({ uuid: 0 });
    }

    deleteUser(uuid: string, channel: string) {
        // TODO
    }

    watch() {
        let time = new Date().getTime();
    }
}
{'fraction_non_alphanumeric': 0.13739763421292084, 'fraction_numerical': 0.00272975432211101, 'mean_word_length': 2.3132530120481927, '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': '5750171', 'n_tokens_mistral': 331, 'n_tokens_neox': 323, 'n_words': 79}