<commit_before>@(document: controllers.doc.Document, compilers: Compilers, docRoot: String, config: util.MoroConfig, user: Option[MoroUser])

@import helper._

<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="width=120">
        <title>@{
            document.name
        }</title>
        @staticImports()
        @wolfeImports()
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/statnlpbook.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/statnlpbookScrollReveal.css")">

    </head>
    <body class="wrap">
        <header>
            <nav class="mobile-nav show-on-mobiles">
                    <!--{% include primary-nav-items.html %}-->
            </nav>
            <div class="grid">
                <div class="center-on-mobiles">
                    <h1>
                        <a href="http://localhost:9000/template/statnlpbook/00_intro">
                            <h1 class="logo-text">StatNLP</h1>
                        </a>
                    </h1>
                    [<a id="toggle-view" href="">Text</a>]
                    <script>
                    $(function() {
                        var url = window.location.href;
                        var toggle = $("#toggle-view");
                        toggle.attr("href",url.replace("statnlpbookScrollReveal","statnlpbook"));
                    });
                    </script>

                </div>
            </div>
        </header>
        <section>
            <div class="grid">
                <div>
                @for(c <- compilers) {
                    @Html(c.prefixHTML)
                }
                </div>
                <div id="static_content" class="unit center-on-mobiles">
                    <h1>@Html(document.name)</h1>
                </div>
                @staticContent("static_content", document, compilers, docRoot, user, "chaos", config.allowExecution("statnlpbook"))
            </div>
        </section>
        <script src="@routes.Assets.at("javascripts/scrollReveal.min.js")" type="text/javascript"></script>
        <script>

      window.setTimeout(function() {
        //get all cell wrappers and add data-sr fields
        /*
        $(".cellWrapper").each(function (){
          $(this).attr('data-sr','')
        });
        $(".srdiv").each(function() {
            $(this).replaceWith($('<div data-sr>' + this.innerHTML + '</div>'));
        });
        */

        //in paragraphs with summary elements, remove everything else
        $("p").has('.summary').contents().filter(function(){return(this.nodeType === 3)}).remove()
        $("p").has('.summary').children().not('.summary').remove()

        //create divs at the start of each slide
        $(".newslide").after("<div class='slideStart'></div>");
        var anchors = $(".slideStart")
<commit_msg>brat can now be scaled (need to set bratSVGScale javascript variable in enclosing html)<commit_after>@(document: controllers.doc.Document, compilers: Compilers, docRoot: String, config: util.MoroConfig, user: Option[MoroUser])

@import helper._

<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="width=120">
        <title>@{
            document.name
        }</title>
        @staticImports()
        @wolfeImports()
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/statnlpbook.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/statnlpbookScrollReveal.css")">

    </head>
    <body class="wrap">
        <header>
            <nav class="mobile-nav show-on-mobiles">
                    <!--{% include primary-nav-items.html %}-->
            </nav>
            <div class="grid">
                <div class="center-on-mobiles">
                    <h1>
                        <a href="http://localhost:9000/template/statnlpbook/00_intro">
                            <h1 class="logo-text">StatNLP</h1>
                        </a>
                    </h1>
                    [<a id="toggle-view" href="">Text</a>]
                    <script>
                    $(function() {
                        var url = window.location.href;
                        var toggle = $("#toggle-view");
                        toggle.attr("href",url.replace("statnlpbookScrollReveal","statnlpbook"));
                    });
                    </script>

                </div>
            </div>
        </header>
        <section>
            <div class="grid">
                <div>
                @for(c <- compilers) {
                    @Html(c.prefixHTML)
                }
                </div>
                <div id="static_content" class="unit center-on-mobiles">
                    <h1>@Html(document.name)</h1>
                </div>
                @staticContent("static_content", document, compilers, docRoot, user, "chaos", config.allowExecution("statnlpbook"))
            </div>
        </section>
        <script src="@routes.Assets.at("javascripts/scrollReveal.min.js")" type="text/javascript"></script>
        <script>

      var bratSVGScale = 2;

      window.setTimeout(function() {
        //get all cell wrappers and add data-sr fields
        /*
        $(".cellWrapper").each(function (){
          $(this).attr('data-sr','')
        });
        $(".srdiv").each(function() {
            $(this).replaceWith($('<div data-sr>' + this.innerHTML + '</div>'));
        });
        */
        function scaleSVG(svg,scale) {
            var width = svg.width();
            var height = svg.height();
            var newWidth = scale * width;
            var newHeight = scale * height;
            svg.width(newWidth);
            svg.height(newHeight);
            svg.parent().height(newHeight);
        }
        //increase the size of brat examples
//        $(".bratsvg").each(function() {scaleSVG($(this),2)});

        //in paragraphs with summary elements, remove everything else
        $("p").has('.summary').contents().filter(function(){return(this.nodeType === 3)}).remove()
        $("p").has('.summary').children().not('.summary').remove()

        //create divs at the start of each slide
        $(".newslide").after("<div class='slideStart'></div>");
        var anchors = $(".slideStart")

{'fraction_non_alphanumeric': 0.16379446640316206, 'fraction_numerical': 0.005375494071146245, 'mean_word_length': 1.6714527027027026, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 95, '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': '5315244', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1716, 'n_words': 315}