<commit_before>
function toArray(value)
{
    return Array.prototype.slice.call(value);
}

// Manually implement this so that Shadow DOM polyfill works.
// https://github.com/Polymer/ShadowDOM/issues/395
Element.prototype.remove = function()
{
    if (!this.parentNode)
        return;
    this.parentNode.removeChild(this);
}

// We only have String#contains if "Experimental JavaScript is enabled."
if (!String.prototype.contains) {
    String.prototype.contains = function(text)
    {
        return this.indexOf(text) != -1;
    }
}<commit_msg>Don't override Element#remove if the browser supports it.<commit_after>
function toArray(value)
{
    return Array.prototype.slice.call(value);
}

// Manually implement this so that Shadow DOM polyfill works.
// https://github.com/Polymer/ShadowDOM/issues/395
if (!Element.prototype.remove) {
    Element.prototype.remove = function() {
        if (!this.parentNode)
            return;
        this.parentNode.removeChild(this);
    }
}

// We only have String#contains if "Experimental JavaScript is enabled."
if (!String.prototype.contains) {
    String.prototype.contains = function(text) {
        return this.indexOf(text) != -1;
    }
}
{'fraction_non_alphanumeric': 0.12594458438287154, 'fraction_numerical': 0.006717044500419815, 'mean_word_length': 3.3663003663003663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6830375', 'n_tokens_mistral': 347, 'n_tokens_neox': 342, 'n_words': 83}