<commit_before><div id="mfrGrid" style="width: {width}px; height: {height}px;"></div>

<script>
(function(){{
    var columns = {columns};
    var rows = {rows};
    var options = {options}
    var grid = new Slick.Grid("#mfrGrid", rows, columns, options);
    }})();
</script><commit_msg>use setInterval to ensure tabular grid loads on first injection<commit_after><div id="mfrGrid" style="width: {width}px; height: {height}px;"></div>

<script>
$().ready(function () {{
    // Workaround allows the slickgrid css to load ahead of the grid object.
    // Specifically using setInterval rather than setTimeout allows this to work
    // on the first dynamic injection/render of the grid.
    function loadGrid() {{
        var columns = {columns};
        var rows = {rows};
        var options = {options};
        var grid = new Slick.Grid("#mfrGrid", rows, columns, options);
        clearInterval(timer);
    }}

    var timer = setInterval(loadGrid, 0);
}});
</script>
{'fraction_non_alphanumeric': 0.1500513874614594, 'fraction_numerical': 0.0010277492291880781, 'mean_word_length': 3.509259259259259, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1443045', 'n_tokens_mistral': 288, 'n_tokens_neox': 283, 'n_words': 95}