<commit_before><?php
/**
 * tobiju
 *
 * @link      https://github.com/tobiju/bookdown-bootswatch-templates for the canonical source repository
 * @copyright Copyright (c) 2015 <NAME>
 * @license   https://github.com/tobiju/bookdown-bootswatch-templates/blob/master/LICENSE.txt New BSD License
 */

$cssBootswatch = getenv('CSS_BOOTSWATCH') ?: 'cerulean';

?>
<body data-spy="scroll" data-target="#sideNav" data-offset="50" class="bbt-theme-<?php echo $cssBootswatch; ?>">
<div class="page-wrapper">
    <?php echo $this->render('core'); ?>
</div>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
        integrity="<KEY>"
        crossorigin="anonymous"></script>
<script src="https://tobiju.github.io/share/prismjs/main.js"></script>
<script src="https://tobiju.github.io/share/prismjs/prism.js"></script>
<script src="https://raw.githubusercontent.com/olivernn/lunr.js/master/lunr.min.js"></script>
<script type="text/javascript">
    var index = lunr(function () {
        this.ref('id');
        this.field('title', {boost: 10});
        this.field('body');
    });

    var store = {};

    $.getJSON("/index.json", function (data) {
        $.each(data, function (key, item) {
            index.add({
                id: item.id,
                title: item.title,
                body: item.body
            });

            store[item.id] = {title: item.title, ref: item.id}
        });
    });

    $(function () {
        var searchResults = $('.js-search-results').addClass('list-search-results');

        $('.js-search-input').keyup(function () {
            var query = $(this).val(),
                results = index.search(query);

            if (!results.length) {
                searchResults.empty();
                return;
            }

            var resultsList = results.reduce(function (ul, result) {
                var item = store[result.ref];<commit_msg>Add new lunr js cdn to make chrome work.<commit_after><?php
/**
 * tobiju
 *
 * @link      https://github.com/tobiju/bookdown-bootswatch-templates for the canonical source repository
 * @copyright Copyright (c) 2015 <NAME>
 * @license   https://github.com/tobiju/bookdown-bootswatch-templates/blob/master/LICENSE.txt New BSD License
 */

$cssBootswatch = getenv('CSS_BOOTSWATCH') ?: 'cerulean';

?>
<body data-spy="scroll" data-target="#sideNav" data-offset="50" class="bbt-theme-<?php echo $cssBootswatch; ?>">
<div class="page-wrapper">
    <?php echo $this->render('core'); ?>
</div>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
        integrity="<KEY>"
        crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/0.6.0/lunr.min.js"></script>
<script src="https://tobiju.github.io/share/prismjs/main.js"></script>
<script src="https://tobiju.github.io/share/prismjs/prism.js"></script>
<script type="text/javascript">
    $(function () {
        var index = lunr(function () {
            this.ref('id');
            this.field('title', {boost: 10});
            this.field('body');
        });
        var store = {};
        var searchResults = $('.js-search-results').addClass('list-search-results');

        $.getJSON("/index.json", function (data) {
            $.each(data, function (key, item) {
                index.add({
                    id: item.id,
                    title: item.title,
                    body: item.body
                });

                store[item.id] = {title: item.title, ref: item.id}
            });
        });

        $('.js-search-input').keyup(function () {
            var query = $(this).val(),
                results = index.search(query);

            if (!results.length) {
                searchResults.empty();
                return;
            }

            var resultsList = results.reduce(function (ul, result) {
                var item = store[result.ref];
{'fraction_non_alphanumeric': 0.1807881773399015, 'fraction_numerical': 0.007635467980295567, 'mean_word_length': 2.3645401822700913, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 43, 'https://': 14, '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': '7615855', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1250, 'n_words': 207}