<commit_before>var component;
var execute = function (commName, then) {
    component && remove(component);
    if (!commName) return;
    console.info(`load ${commName}!`);
    window[commName] = null;
    delete modules[commName];
    init(commName, function (comm) {
        window[commName] = function () {
            remove(component);
            try {
                component = isFunction(comm) ? comm.apply(null, arguments) : createElement(comm);
                // component && appendChild(page, component);
            } catch (e) {
            }
            return component;
        };
        try {
            component = createElement(comm);
            // component && appendChild(page, component);
        } catch (e) {

        }
        then && then(component);
    });
};<commit_msg>将出错信息抛出<commit_after>var component;
var execute = function (commName, then) {
    component && remove(component);
    if (!commName) return;
    console.info(`load ${commName}!`);
    window[commName] = null;
    delete modules[commName];
    init(commName, function (comm) {
        window[commName] = function () {
            remove(component);
            try {
                component = isFunction(comm) ? comm.apply(null, arguments) : createElement(comm);
                // component && appendChild(page, component);
            } catch (e) {
                console.error(e);
            }
            return component;
        };
        try {
            component = createElement(comm);
            // component && appendChild(page, component);
        } catch (e) {
            console.error(e);
        }
        then && then(component);
    });
};
{'fraction_non_alphanumeric': 0.1318154583582984, 'fraction_numerical': 0.0, 'mean_word_length': 1.8892733564013842, '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': '3785682', 'n_tokens_mistral': 445, 'n_tokens_neox': 442, 'n_words': 96}