<commit_before>import addAttributes from '../addAttributes';
import createDOMElements from '../createDOMElements';
import createDOMNode from '../createDOMNode';

export default {
    addAttributes,
    createElement(tag, is) {

            switch (tag) {
                case 'div':
                case 'span':
                case 'button':
                case 'em':
                case 'form':
                case 'img':
                case 'a':
                case 'ol':
                case 'p':
                case 'table':
                case 'ul':
                case 'ol':
                case 'p':

				return createDOMNode(tag, false, is);
				
                default:

                    let DOMElementsInfo = createDOMElements[tag.toLowerCase()];

                    if (DOMElementsInfo !== undefined) {
                        // add SVG namespace
                        if (DOMElementsInfo.isSVG) {
                            return createDOMNode(tag, 'http://www.w3.org/2000/svg', is);
                        }
                        // add mathML namespace
                        if (DOMElementsInfo.isMathML) {
							return createDOMNode(tag, 'http://www.w3.org/1998/Math/MathML', is);
                        }
                    }
                    // all others
						return createDOMNode(tag, false, is);
            }
        },
        createTextNode: text => document.createTextNode(text),
        createEmptyText: () => document.createTextNode(''),
        createEmptyDiv: () => document.createElement('div')
};<commit_msg>removed whitespace<commit_after>import addAttributes from '../addAttributes';
import createDOMElements from '../createDOMElements';
import createDOMNode from '../createDOMNode';

export default {
    addAttributes,
    createElement(tag, is) {

        switch (tag) {
            case 'div':
            case 'span':
            case 'button':
            case 'em':
            case 'form':
            case 'img':
            case 'a':
            case 'ol':
            case 'p':
            case 'table':
            case 'ul':
            case 'ol':
            case 'p':

                return createDOMNode(tag, false, is);

            default:

                let DOMElementsInfo = createDOMElements[tag.toLowerCase()];

                if (DOMElementsInfo !== undefined) {
                    // add SVG namespace
                    if (DOMElementsInfo.isSVG) {
                        return createDOMNode(tag, 'http://www.w3.org/2000/svg', is);
                    }
                    // add mathML namespace
                    if (DOMElementsInfo.isMathML) {
                        return createDOMNode(tag, 'http://www.w3.org/1998/Math/MathML', is);
                    }
                }
                // all others
                return createDOMNode(tag, false, is);
        }
    },
    createTextNode: text => document.createTextNode(text),
    createEmptyText: () => document.createTextNode(''),
    createEmptyDiv: () => document.createElement('div')
};
{'fraction_non_alphanumeric': 0.11263916175507531, 'fraction_numerical': 0.006548788474132285, 'mean_word_length': 1.2952667167543201, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3069646', 'n_tokens_mistral': 830, 'n_tokens_neox': 741, 'n_words': 175}