<commit_before>// derived from xeit.js
function check() {
    var html = document.head.innerHTML + document.body.innerHTML;
    return document.getElementById('XEIViewer') ||
           html.search(/IniMasPlugin|IniCrossMailObj/) > -1 ||
           document.getElementById('JXCEAL') ||
           document.getElementById('MailDec');
}

// (almost) copy of link.js
function link() {
    var doc = document;
    var xeit = doc.getElementById('xeit');
    if (xeit) {
        return;
    }

    window.addEventListener('message', function (e) {
        if (e.data == 'ready') {
            xeit.contentWindow.postMessage(attachment, '*');
        } else if (e.data == 'fallback') {
            doc.body = _body;
        }
    });

    var html = doc.documentElement;
    var attachment = html.outerHTML;
    html.style.height = '100%';
<commit_msg>Improve detection of XecureExpress module for Chrome extension<commit_after>// derived from xeit.js
function check() {
    var html = document.head.innerHTML + document.body.innerHTML;
    return document.getElementById('XEIViewer') ||
           html.search(/XEIViewer|IniMasPlugin|IniCrossMailObj/) > -1 ||
           document.getElementById('JXCEAL') ||
           document.getElementById('MailDec');
}

// (almost) copy of link.js
function link() {
    var doc = document;
    var xeit = doc.getElementById('xeit');
    if (xeit) {
        return;
    }

    window.addEventListener('message', function (e) {
        if (e.data == 'ready') {
            xeit.contentWindow.postMessage(attachment, '*');
        } else if (e.data == 'fallback') {
            doc.body = _body;
        }
    });

    var html = doc.documentElement;
    var attachment = html.outerHTML;
    html.style.height = '100%';

{'fraction_non_alphanumeric': 0.14122355631789593, 'fraction_numerical': 0.004574042309891366, 'mean_word_length': 2.54251012145749, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4910630', 'n_tokens_mistral': 537, 'n_tokens_neox': 515, 'n_words': 111}