<commit_before><!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Hermes Demo</title>
    </head>

    <body>
        <h1>Hermes Demo</h1>
        <h2>Open this page in multiple tabs.</h2>
        <h2>Clicking anywhere on this page will send a message to all the other opened tabs.</h2>

        <ul></ul>

        <script src="hermes.js"></script>
        <script>
            document.addEventListener('click', function() {
                hermes.send('event', new Date());
            });

            const ul = document.querySelector('ul');

            hermes.on('event', function(data) {
                const li = document.createElement('li');
                li.textContent = data;
                ul.appendChild(li);
            });
        </script>
    </body>
</html><commit_msg>update demo page to reflect includeSelf support<commit_after><!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Hermes Demo</title>
    </head>

    <body>
        <h1>Hermes Demo</h1>
        <h2>Open this page in multiple tabs.</h2>

        <button id="others">Send data to other tabs</button>
        <button id="all">Send data to all tabs (including self)</button>

        <ul></ul>

        <script src="hermes.js"></script>
        <script>
            const othersBtn = document.querySelector('#others');
            const allBtn = document.querySelector('#all');
            const ul = document.querySelector('ul');

            othersBtn.onclick = () => hermes.send('event', new Date());
            allBtn.onclick = () => hermes.send('event', new Date(), true);

            hermes.on('event', function(data) {
                const li = document.createElement('li');
                li.textContent = data;
                ul.appendChild(li);
            });
        </script>
    </body>
</html>
{'fraction_non_alphanumeric': 0.15016146393972013, 'fraction_numerical': 0.006458557588805167, 'mean_word_length': 1.8911353032659408, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 51, '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': '4059758', 'n_tokens_mistral': 549, 'n_tokens_neox': 526, 'n_words': 126}