<commit_before><html>
    <head>
        <title>httpinvoke demo</title>
    </head>
    <body>
        <p>Hello and welcome to a demonstration of <a href="https://github.com/jakutis/httpinvoke">httpinvoke</a>, an HTTP client for JavaScript.</p>
        <p>You are encouraged to view the source of this demo web page. Also, check the network traffic in your dev tools (press F12).</p>
        <hr>
        <p>Uploaded: <span id="uploaded"></span></p>
        <p>Downloaded: <span id="downloaded"></span></p>
        <p>Response status: <span id="status"></span></p>
        <p>Response headers: <span id="headers"></span></p>
        <p>Response: <span id="response"></span></p>
        <button id="demonstrate">Demonstrate</button>
        <script>
            if(typeof JSON === 'undefined') {
                document.write('<' + 'script src="./json2.js"><' + '/script>');
            }
        </script>
        <script src="./httpinvoke.js"></script>
        <script>
            var entity = 'I will not waste chalk.\n';
            for(var i = 0; i < 16; i += 1) {
                entity += entity;
            }
            document.getElementById('demonstrate').removeAttribute('disabled');
            document.getElementById('demonstrate').onclick = function() {
                document.getElementById('demonstrate').setAttribute('disabled', 'disabled');
                httpinvoke('./', 'POST', {<commit_msg>demo: index.html: add link to web server source code<commit_after><html>
    <head>
        <title>httpinvoke demo</title>
    </head>
    <body>
        <p>Hello and welcome to a demonstration of <a href="https://github.com/jakutis/httpinvoke">httpinvoke</a>, an HTTP client for JavaScript.</p>
        <p>You are encouraged to view the source of this demo web page and <a href="https://github.com/jakutis/httpinvoke/blob/master/demo/index.js">web server</a>. Also, check the network traffic in your dev tools (press F12).</p>
        <hr>
        <p>Uploaded: <span id="uploaded"></span></p>
        <p>Downloaded: <span id="downloaded"></span></p>
        <p>Response status: <span id="status"></span></p>
        <p>Response headers: <span id="headers"></span></p>
        <p>Response: <span id="response"></span></p>
        <button id="demonstrate">Demonstrate</button>
        <script>
            if(typeof JSON === 'undefined') {
                document.write('<' + 'script src="./json2.js"><' + '/script>');
            }
        </script>
        <script src="./httpinvoke.js"></script>
        <script>
            var entity = 'I will not waste chalk.\n';
            for(var i = 0; i < 16; i += 1) {
                entity += entity;
            }
            document.getElementById('demonstrate').removeAttribute('disabled');
            document.getElementById('demonstrate').onclick = function() {
                document.getElementById('demonstrate').setAttribute('disabled', 'disabled');
                httpinvoke('./', 'POST', {
{'fraction_non_alphanumeric': 0.1702557200538358, 'fraction_numerical': 0.004710632570659489, 'mean_word_length': 2.3745743473325764, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 89, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1303041', 'n_tokens_mistral': 864, 'n_tokens_neox': 825, 'n_words': 208}