<commit_before>function main() {
    var page = div();
    page.innerHTML = template;
    renderWithDefaults(page, {
        status: [],
        version: data.from("version"),
        hrtime: data.from("uptime", a => Date.now() - a * 1000),
        filterTime,
        async run(id) {
            var info = await data.from("run", {
                run: id
            }).loading_promise;
            if (info) alert(info, 'pass');
        },
        async logout() {
            data.setSource({});
            await user.Logout();
            zimoli.switch();
            zimoli();
        }
    });
    return page;
}<commit_msg>添加2秒的等待时间<commit_after>function main() {
    var page = div();
    page.innerHTML = template;
    renderWithDefaults(page, {
        status: [],
        version: data.from("version"),
        hrtime: data.from("uptime", a => Date.now() - a * 1000),
        filterTime,
        async run(id) {
            await new Promise(ok => setTimeout(ok, 2000));
            var info = await data.from("run", {
                run: id
            }).loading_promise;
            if (info) alert(info, 'pass');
        },
        async logout() {
            data.setSource({});
            await user.Logout();
            zimoli.switch();
            zimoli();
        }
    });
    return page;
}
{'fraction_non_alphanumeric': 0.14859742228961334, 'fraction_numerical': 0.009855951478392721, 'mean_word_length': 1.553191489361702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4408943', 'n_tokens_mistral': 397, 'n_tokens_neox': 388, 'n_words': 85}