<commit_before>mixin ie(condition)
    | <!--[!{condition}]>
    block
    | <![endif]-->

doctype html
html(lang="en")
    head
        meta(http-equiv="X-UA-Compatible", content="IE=edge; charset=UTF-8")
        meta(name="viewport", content="width=device-width", initial-scale=1)

        title NodeCG dashboard

        //Bootstrap YETI theme CSS
        link(rel='stylesheet', href='/css/bootstrap.yeti.min.css')

        //Font Awesome CSS
        link(rel='stylesheet', href='/components/fontawesome/css/font-awesome.min.css')

        //Custom styles for this template
        link(rel='stylesheet', href='/dashboard/dashboard.css')

        //Bundle CSS, re-write this and consider using mixins/includes/partials? or maybe just link to them lol???
        each bndl in bundles
            // only add the tag if there is a style, empty tags can cause long timeout delays
            if bndl.admin.css
                each style in bndl.admin.css
                    style(type='text/css')= style

        //HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
        +ie('if lt IE 9')
            script(src='/components/html5shiv/dist/html5shiv.min.js')
            script(src='/components/respond/dest/respond.min.js')

    body
        div(class='navbar navbar-inverse navbar-fixed-top', role='navigation')
            div.container
                div.navbar-header
                    a(class='navbar-brand', href='#') NodeCG dashboard

        //Spacer
        p

        //Bundle panels, re-write this and consider using mixins/includes/partials?
        div.container
            div.dashboard-panels
                each bndl in bundles
                    each markup in bndl.admin.html
                        !=markup


        //Core JavaScript
        //==================================================
        //Placed at the end of the document so the pages load faster
        script(src='/components/jquery/dist/jquery.min.js')
        script(src='/components/bootstrap/dist/js/bootstrap.min.js')
        script(src='/components/bootstrap/js/tooltip.js')
        script(src='/components/bootstrap/js/popover.js')
        script(src='/components/masonry/dist/masonry.pkgd.min.js')
        script(src='/components/imagesloaded/imagesloaded.pkgd.min.js')

        script(src='/socket.io/socket.io.js')
        script(src='/nodecg-api.js')

        include ../includes/dash-script

        //Bundle JS, re-write this and consider using mixins/includes/partials? or maybe just link to them lol???
        each bndl in bundles
            // only add the tag if there is a script, empty tags can cause long timeout delays
            if bndl.admin.js
                each script in bndl.admin.js
                    script(type='text/javascript').
                        try {
                            (function (nodecg) {
                                !{ script }
                            })(new NodeCG('#{ bndl.name }'));
                        } catch (err) {
                            console.error("[NODECG] Panel for bundle #{ bndl.name } threw error: "+ err.message);
                        }

<commit_msg>Fixed dashboard's CSS style injections<commit_after>mixin ie(condition)
    | <!--[!{condition}]>
    block
    | <![endif]-->

doctype html
html(lang="en")
    head
        meta(http-equiv="X-UA-Compatible", content="IE=edge; charset=UTF-8")
        meta(name="viewport", content="width=device-width", initial-scale=1)

        title NodeCG dashboard

        //Bootstrap YETI theme CSS
        link(rel='stylesheet', href='/css/bootstrap.yeti.min.css')

        //Font Awesome CSS
        link(rel='stylesheet', href='/components/fontawesome/css/font-awesome.min.css')

        //Custom styles for this template
        link(rel='stylesheet', href='/dashboard/dashboard.css')

        //Bundle CSS, re-write this and consider using mixins/includes/partials? or maybe just link to them lol???
        each bndl in bundles
            // only add the tag if there is a style, empty tags can cause long timeout delays
            if bndl.admin.css
                each style in bndl.admin.css
                    style(type='text/css').
                        !{ style }

        //HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
        +ie('if lt IE 9')
            script(src='/components/html5shiv/dist/html5shiv.min.js')
            script(src='/components/respond/dest/respond.min.js')

    body
        div(class='navbar navbar-inverse navbar-fixed-top', role='navigation')
            div.container
                div.navbar-header
                    a(class='navbar-brand', href='#') NodeCG dashboard

        //Spacer
        p

        //Bundle panels, re-write this and consider using mixins/includes/partials?
        div.container
            div.dashboard-panels
                each bndl in bundles
                    each markup in bndl.admin.html
                        !=markup


        //Core JavaScript
        //==================================================
        //Placed at the end of the document so the pages load faster
        script(src='/components/jquery/dist/jquery.min.js')
        script(src='/components/bootstrap/dist/js/bootstrap.min.js')
        script(src='/components/bootstrap/js/tooltip.js')
        script(src='/components/bootstrap/js/popover.js')
        script(src='/components/masonry/dist/masonry.pkgd.min.js')
        script(src='/components/imagesloaded/imagesloaded.pkgd.min.js')

        script(src='/socket.io/socket.io.js')
        script(src='/nodecg-api.js')

        include ../includes/dash-script

        //Bundle JS, re-write this and consider using mixins/includes/partials? or maybe just link to them lol???
        each bndl in bundles
            // only add the tag if there is a script, empty tags can cause long timeout delays
            if bndl.admin.js
                each script in bndl.admin.js
                    script(type='text/javascript').
                        try {
                            (function (nodecg) {
                                !{ script }
                            })(new NodeCG('#{ bndl.name }'));
                        } catch (err) {
                            console.error("[NODECG] Panel for bundle #{ bndl.name } threw error: "+ err.message);
                        }


{'fraction_non_alphanumeric': 0.12976860537836146, 'fraction_numerical': 0.0025015634771732333, 'mean_word_length': 1.8131046613896218, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4210326', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1696, 'n_words': 428}