<commit_before>function div(elem) {
    if (isNode(elem) && /div/i.test(elem.tagName)) return elem;
    var div = createElement("div");
    if (elem) {
        if (isString(elem)) {
            div.innerHTML = elem;
        } else if (isArray(elem)) {
            appendChild(div, elem);
        } else if (isElement(elem)) {
            appendChild(div, [].concat.apply([], elem.children));
        } else if (isNode(elem)) {<commit_msg>不再依赖createElement<commit_after>function div(elem) {
    if (isNode(elem) && /div/i.test(elem.tagName)) return elem;
    var div = document.createElement("div");
    if (elem) {
        if (isString(elem)) {
            div.innerHTML = elem;
        } else if (isArray(elem)) {
            appendChild(div, elem);
        } else if (isElement(elem)) {
            appendChild(div, [].concat.apply([], elem.children));
        } else if (isNode(elem)) {
{'fraction_non_alphanumeric': 0.16310461192350956, 'fraction_numerical': 0.0, 'mean_word_length': 2.423076923076923, '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': '5652837', 'n_tokens_mistral': 278, 'n_tokens_neox': 277, 'n_words': 60}