<commit_before><!DOCTYPE html>

<html>
    <head>
        <title>simple hypergrid demo</title>
        <script src="index.min.js"></script>

        <script>
            window.onload = function() {
                getJSON('simpleData.json', function(data) {
                    var div = document.querySelector('div#json-example'),
                        jsonGrid = new fin.Hypergrid(div, getContainer),
                        jsonModel = jsonGrid.getBehavior();

                    jsonModel.setData(data);

                    function getContainer(grid) {
                        return new fin.Hypergrid.behaviors.JSON(grid, data);
                    }
                });
            };

            function getJSON(url, callback) {
                var my_JSON_object;
                var http_request = new XMLHttpRequest();
                http_request.open("GET", url, true);
                http_request.onreadystatechange = function () {
                    var done = 4, ok = 200;
                    if (http_request.readyState === done && http_request.status === ok) {
                        callback(JSON.parse(http_request.responseText));
                    }
                };
                http_request.send(null);
            }
        </script>
    </head>
    <body>
        <p>JSON example. Put your JSON in <code>simple.json</code>.</p>
        <div id="json-example" style="position:relative; width:250px; height:100px"></div>
        <p><small><em>Note: Must be served. JSON does not work with file:// protocol.</em></samll></p>
    </body>
</html><commit_msg>fixed typos in siple.html example<commit_after><!DOCTYPE html>

<html>
    <head>
        <title>simple hypergrid demo</title>
        <script src="index.min.js"></script>

        <script>
            window.onload = function() {
                getJSON('simpledata.json', function(data) {
                    var div = document.querySelector('div#json-example'),
                        jsonGrid = new fin.Hypergrid(div, getContainer),
                        jsonModel = jsonGrid.getBehavior();

                    jsonModel.setData(data);

                    function getContainer(grid) {
                        return new fin.Hypergrid.behaviors.JSON(grid, data);
                    }
                });
            };

            function getJSON(url, callback) {
                var my_JSON_object;
                var http_request = new XMLHttpRequest();
                http_request.open("GET", url, true);
                http_request.onreadystatechange = function () {
                    var done = 4, ok = 200;
                    if (http_request.readyState === done && http_request.status === ok) {
                        callback(JSON.parse(http_request.responseText));
                    }
                };
                http_request.send(null);
            }
        </script>
    </head>
    <body>
        <p>JSON example. Put your JSON in <code>simpledata.json</code>.</p>
        <div id="json-example" style="position:relative; width:250px; height:100px"></div>
        <p><small><em>Note: Must be served; AJAX does not work with file:// protocol.</em></samll></p>
    </body>
</html>
{'fraction_non_alphanumeric': 0.12414436838830119, 'fraction_numerical': 0.006222775357809583, 'mean_word_length': 1.5215686274509803, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '4062093', 'n_tokens_mistral': 887, 'n_tokens_neox': 815, 'n_words': 171}