<commit_before><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>{{title}}</title>
        <script type="text/javascript">
            for(var e,l='article aside footer header nav section time'.split(' ');e=l.pop();document.createElement(e));
        </script>

        <link href="/css/typeahead.js-bootstrap.css" media="all" type="text/css" rel="stylesheet">
        {{{block 'styles'}}}
        <!--<link rel="stylesheet/less" type="text/css" href="/css/style.less" />
        <script type="text/javascript">
            less = {
                env: "development", // or "production"
                     async: false,       // load imports async
                     fileAsync: false,   // load imports async when in a page under
                                         // a file protocol
                     poll: 1000,         // when in watch mode, time in ms between polls
                     functions: {},      // user functions, keyed by name
                     dumpLineNumbers: "comments", // or "mediaQuery" or "all"
                     relativeUrls: false,// whether to adjust url's to be relative
                                         // if false, url's are already relative to the
                                         // entry less file
            };
        </script>
        <script src="/lib/js/less.min.js"></script>-->
	<link rel="stylesheet" type="text/css" href="/css/style.css" />
        <!--[if lt IE 9]>
            <link rel="stylesheet" type="text/css" href="/css/style-ie.css" />
        <![endif]-->
    </head>

    <body class="show-help {{view}}-view">
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="brand" href="/">Biblionarrator</a>
                    <div class="navbar-controls">
                        <ul class="nav pull-left">
                            <li class="dropdown">
                                <a href="#" id="dropdown-new" data-toggle="dropdown" class="dropdown-toggle">New <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="/record/new" id="new-blank" class="new-record">Blank record</a></li>
                                    <li class="divider"></li>
                                    <li><span>Templates</span></li>
                                    {{#templates}}
                                        <li><a href="/record/new/template/{{id}}" id="new-template-{{id}}" class="new-record">{{name}}</a></li>
                                    {{/templates}}
                                </ul>
                            </li>
                            <li class=""><a class="caret-before" href="/search">Search</a></li>
                            <li class="hidden-phone dropdown">
                                <a href="#" class="dropdown-toggle caret-after" data-toggle="dropdown"><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><span>Saved searches</span></li>
                                </ul>
                            </li>
                            <li class="divider-vertical"></li>
                            <li class="visible-desktop visible-tablet"><form class="navbar-search" action="/search" method="get" accept-charset="UTF-8">
                                <input type="text" class="search-query" name="q" placeholder="Quick search" value="{{query}}"></input><button class="search-button" type="submit"><i class="icon-search icon-white"></i></button>
                            </form></li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="dropdown visible-desktop"><a class="show-bookmarks" href="#"><i class="icon-bookmark icon-white"></i><span class="bookmark-count">{{bookmarks.length}}</span></a>
                            <ul id="bookmark-dropdown" class="dropdown-menu"><li><span id="bookmark-message"></span></li></ul>
                            </li>
                            <li class="dropdown">
                                <a href="/user/login" class="hidden-desktop"><i class="icon-user icon-white"></i></a>
                                <a href="#" class="dropdown-toggle visible-desktop" data-toggle="dropdown">
                                    <i class="icon-user icon-white"></i><b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                        <form id="navbarLogin" action="/user/login" method="post" accept-charset="UTF-8">
                                            <input id="navbarLoginUser" type="text" name="username" placeholder="Username"></input>
                                            <input id="navbarLoginPassword" type="password" name="password" placeholder="Password"></input>
                                            <input type="hidden" name="redirect" value="{{url}}"></input>
                                            <button id="navbarLoginSubmit" class="btn btn-primary btn-small" type="submit">Sign in</button>
                                        </form>
                                    <li><span>{{user.email}}</span></li>
                                    <li><a href="/user/settings">Settings</a></li>
                                    <li><a href="/user/templates">My templates</a></li>
                                    <li class="divider"></li>
                                    <li><a href="/user/logout">Sign out</a></li>
                                </ul>
                            </li>
                            <li class="dropdown visible-desktop">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench icon-white"></i><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="/admin">Home</a></li>
                                    <li><a href="/admin/field">Fields</a></li>
                                    <li><a href="/admin/user">Users</a></li>
                                    <li><a href="/admin/collection">Collections</a></li>
                                    <li><a href="/admin/recordtype">Record types</a></li>
                                    <li><a href="/admin/settings">Settings</a></li>
                                    <li><a href="/admin/templates">Templates</a></li>
                                </ul>
                            </li>
                            <li class="dropdown visible-desktop">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-question-sign icon-white"></i><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><label class="checkbox"><input type="checkbox" id="show-help" checked="checked" data-toggle="cookie-view" data-default="enabled" data-cookie="show_help" data-class="show-help" data-target="body">Show help</input></label></li>
                                    <li><a href="/about">About</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </nav>

        {{{body}}}

        <!--<nav class="navbar navbar-fixed-bottom hidden-desktop">
            <div class="navbar-inner">
            <ul class="nav">
                <li><a class="show-bookmarks" href="#">Bookmarks
                    <span class="bookmark-count">{{bookmarks.length}}</span></a></li>

                <li><a href="/user">
                <! --@if (Auth::guest())
                    Log in
                @else
                    User settings
                @endif-- >
                </a></li>
                <li><a href="/admin">System administration</a></li>
                <li><span>{{user.email}}</span></li>
                <li><a href="/help">Help</a></li>
            </ul>
            </div>
        </nav>-->
        <!--<footer>
            <p class="copyright">&copy; C &amp; P Bibliography Services 2013</p>    
        </footer>-->
        <div id="confirm" data-autoclose="true" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="confirmLabel" aria-hidden="true">
            <div class="modal-header">
                <h3 id="confirmLabel"> confirmation</h3>
            </div>
            <div id="confirmBody" class="modal-body">
            </div>
            <div class="modal-footer">
                <button id="confirmCancel" class="btn" data-dismiss="modal" aria-hidden="true">No</button>
                <button id="confirmOK" class="btn btn-primary btn-ok">Yes</button>
            </div>
        </div>
        {{{block 'modals'}}}
        
        <script src="/lib/js/jquery.js"></script>
        <script src="/lib/js/jquery.history.js"></script>
        <script src="/lib/js/jquery.form.js"></script>
        <script src="/js/biblionarrator.js"></script>
        <script src="/js/bookmarks.js"></script>
        <script src="/lib/bootstrap/js/bootstrap.min.js"></script>
        <script src="/lib/js/typeahead.js"></script>
        <script src="/lib/js/modernizr-latest.js"></script>
        <script src="/lib/js/jquery.cookie.js"></script>
        <!--<script src="/lib/js/jquery.indexeddb.js"></script>-->
        <script src="/js/generated/formathandlers.js"></script>
        <script src="/js/generated/templates.js"></script>
        <!--<script src="/svc/bndb_initializer.js"></script>-->
        {{{block 'javascript'}}}
    </body>
</html><commit_msg>Adjust order of JS so that page appears rendered faster<commit_after><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>{{title}}</title>
        <script type="text/javascript">
            for(var e,l='article aside footer header nav section time'.split(' ');e=l.pop();document.createElement(e));
        </script>

        <link href="/css/typeahead.js-bootstrap.css" media="all" type="text/css" rel="stylesheet">
        {{{block 'styles'}}}
        <!--<link rel="stylesheet/less" type="text/css" href="/css/style.less" />
        <script type="text/javascript">
            less = {
                env: "development", // or "production"
                     async: false,       // load imports async
                     fileAsync: false,   // load imports async when in a page under
                                         // a file protocol
                     poll: 1000,         // when in watch mode, time in ms between polls
                     functions: {},      // user functions, keyed by name
                     dumpLineNumbers: "comments", // or "mediaQuery" or "all"
                     relativeUrls: false,// whether to adjust url's to be relative
                                         // if false, url's are already relative to the
                                         // entry less file
            };
        </script>
        <script src="/lib/js/less.min.js"></script>-->
	<link rel="stylesheet" type="text/css" href="/css/style.css" />
        <!--[if lt IE 9]>
            <link rel="stylesheet" type="text/css" href="/css/style-ie.css" />
        <![endif]-->
    </head>

    <body class="show-help {{view}}-view">
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="brand" href="/">Biblionarrator</a>
                    <div class="navbar-controls">
                        <ul class="nav pull-left">
                            <li class="dropdown">
                                <a href="#" id="dropdown-new" data-toggle="dropdown" class="dropdown-toggle">New <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="/record/new" id="new-blank" class="new-record">Blank record</a></li>
                                    <li class="divider"></li>
                                    <li><span>Templates</span></li>
                                    {{#templates}}
                                        <li><a href="/record/new/template/{{id}}" id="new-template-{{id}}" class="new-record">{{name}}</a></li>
                                    {{/templates}}
                                </ul>
                            </li>
                            <li class=""><a class="caret-before" href="/search">Search</a></li>
                            <li class="hidden-phone dropdown">
                                <a href="#" class="dropdown-toggle caret-after" data-toggle="dropdown"><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><span>Saved searches</span></li>
                                </ul>
                            </li>
                            <li class="divider-vertical"></li>
                            <li class="visible-desktop visible-tablet"><form class="navbar-search" action="/search" method="get" accept-charset="UTF-8">
                                <input type="text" class="search-query" name="q" placeholder="Quick search" value="{{query}}"></input><button class="search-button" type="submit"><i class="icon-search icon-white"></i></button>
                            </form></li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="dropdown visible-desktop"><a class="show-bookmarks" href="#"><i class="icon-bookmark icon-white"></i><span class="bookmark-count">{{bookmarks.length}}</span></a>
                            <ul id="bookmark-dropdown" class="dropdown-menu"><li><span id="bookmark-message"></span></li></ul>
                            </li>
                            <li class="dropdown">
                                <a href="/user/login" class="hidden-desktop"><i class="icon-user icon-white"></i></a>
                                <a href="#" class="dropdown-toggle visible-desktop" data-toggle="dropdown">
                                    <i class="icon-user icon-white"></i><b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                        <form id="navbarLogin" action="/user/login" method="post" accept-charset="UTF-8">
                                            <input id="navbarLoginUser" type="text" name="username" placeholder="Username"></input>
                                            <input id="navbarLoginPassword" type="password" name="password" placeholder="Password"></input>
                                            <input type="hidden" name="redirect" value="{{url}}"></input>
                                            <button id="navbarLoginSubmit" class="btn btn-primary btn-small" type="submit">Sign in</button>
                                        </form>
                                    <li><span>{{user.email}}</span></li>
                                    <li><a href="/user/settings">Settings</a></li>
                                    <li><a href="/user/templates">My templates</a></li>
                                    <li class="divider"></li>
                                    <li><a href="/user/logout">Sign out</a></li>
                                </ul>
                            </li>
                            <li class="dropdown visible-desktop">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench icon-white"></i><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="/admin">Home</a></li>
                                    <li><a href="/admin/field">Fields</a></li>
                                    <li><a href="/admin/user">Users</a></li>
                                    <li><a href="/admin/collection">Collections</a></li>
                                    <li><a href="/admin/recordtype">Record types</a></li>
                                    <li><a href="/admin/settings">Settings</a></li>
                                    <li><a href="/admin/templates">Templates</a></li>
                                </ul>
                            </li>
                            <li class="dropdown visible-desktop">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-question-sign icon-white"></i><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><label class="checkbox"><input type="checkbox" id="show-help" checked="checked" data-toggle="cookie-view" data-default="enabled" data-cookie="show_help" data-class="show-help" data-target="body">Show help</input></label></li>
                                    <li><a href="/about">About</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </nav>

        {{{body}}}

        <!--<nav class="navbar navbar-fixed-bottom hidden-desktop">
            <div class="navbar-inner">
            <ul class="nav">
                <li><a class="show-bookmarks" href="#">Bookmarks
                    <span class="bookmark-count">{{bookmarks.length}}</span></a></li>

                <li><a href="/user">
                <! --@if (Auth::guest())
                    Log in
                @else
                    User settings
                @endif-- >
                </a></li>
                <li><a href="/admin">System administration</a></li>
                <li><span>{{user.email}}</span></li>
                <li><a href="/help">Help</a></li>
            </ul>
            </div>
        </nav>-->
        <!--<footer>
            <p class="copyright">&copy; C &amp; P Bibliography Services 2013</p>    
        </footer>-->
        <div id="confirm" data-autoclose="true" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="confirmLabel" aria-hidden="true">
            <div class="modal-header">
                <h3 id="confirmLabel"> confirmation</h3>
            </div>
            <div id="confirmBody" class="modal-body">
            </div>
            <div class="modal-footer">
                <button id="confirmCancel" class="btn" data-dismiss="modal" aria-hidden="true">No</button>
                <button id="confirmOK" class="btn btn-primary btn-ok">Yes</button>
            </div>
        </div>
        {{{block 'modals'}}}
        
        <script src="/lib/js/jquery.js"></script>
        <script src="/lib/js/jquery.history.js"></script>
        <script src="/lib/js/jquery.form.js"></script>
        <script src="/js/biblionarrator.js"></script>
        <script src="/js/bookmarks.js"></script>
        <script src="/lib/bootstrap/js/bootstrap.min.js"></script>
        <script src="/lib/js/typeahead.js"></script>
        <script src="/lib/js/modernizr-latest.js"></script>
        <script src="/lib/js/jquery.cookie.js"></script>
        <!--<script src="/lib/js/jquery.indexeddb.js"></script>-->
        {{{block 'javascript'}}}
        <script src="/js/generated/formathandlers.js"></script>
        <script src="/js/generated/templates.js"></script>
        <!--<script src="/svc/bndb_initializer.js"></script>-->
    </body>
</html>
{'fraction_non_alphanumeric': 0.16796953297253958, 'fraction_numerical': 0.0017037482461415114, 'mean_word_length': 1.3478823529411765, 'pattern_counts': {'":': 0, '<': 561, '<?xml version=': 0, '>': 561, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 98, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '336522', 'n_tokens_mistral': 5147, 'n_tokens_neox': 4864, 'n_words': 914}