<commit_before><html>
    <head>
        <title>GRIFFIN Detector</title>

        <!--libraries-->
        <script src='scripts/HTMLImports.min.js' type="text/javascript"></script>
        <script src='scripts/mustache.js' type="text/javascript"></script>
        <script src="scripts/jquery1-11-3.min.js" type="text/javascript"></script>
        <script src="scripts/kinetic-5.0.1.hackfix.js" type="text/javascript"></script>

        <!--helpers-->
        <script src='scripts/helpers.js' type="text/javascript"></script>
        <script src='scripts/dataStore.js' type="text/javascript"></script>
        <script src='scripts/heartbeat.js' type="text/javascript"></script>
        <script src='scripts/colorScales.js' type="text/javascript"></script>
        <script src="templates/detectors/detector-helpers.js" type="text/javascript"></script>

        <!--style-->
        <link rel="stylesheet" href="css/global.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <script src="scripts/bootstrap3-3-5.min.js" type="text/javascript"></script>

        <!--html imports-->
        <link id='brand-header' rel="import" href="templates/brand-header/brand-header.html">
        <link id='run-status' rel="import" href="templates/run-status/run-status.html">
        <link id='detector-griffin' rel="import" href="templates/detectors/detector-griffin/detector-griffin.html">
        <link id='adc-sidebar' rel="import" href="templates/detectors/adc-sidebar/adc-sidebar.html">
        <link id='hv-sidebar' rel="import" href="templates/detectors/hv-sidebar/hv-sidebar.html">
    </head>

    <body>
        <div id='header'></div>

        <div class='sectionWrapper'>
            <div id='runStat' class='col-md-2'></div>
            <div id='detectorDisplay' class='col-md-8'></div>
            <div id='controlSidebar' class='col-md-2'>
                <h3>ADC / HV Control</h3>
                <p>Click on a channel to get started.</p>
            </div>
        </div>

        <script>
            ////////////////////////////////////////
            //detector-specific dataStore prep:
            ////////////////////////////////////////

            //get the ODB DAQ dir and set up adc requests:
            fetchScript('http://' + dataStore.host + '/?cmd=jcopy&odb=/DAQ&encoding=json-p-nokeys&callback=processDAQ');
            function processDAQ(payload){
                fetchDAQ(payload);
                determineADCrequests();
            }

            //set up HV requests
            dataStore.equipmentQuery = 'http://'+dataStore.host+'/?cmd=jcopy&odb0=Equipment&encoding=json-p-nokeys&callback=sortODBEquipment';

            window.addEventListener('HTMLImportsLoaded', function(e) {
                ///////////////////////////
                //handle templates
                ///////////////////////////
                templates = ['brand-header', 'run-status', 'detector-griffin', 'adc-sidebar', 'hv-sidebar'];
                dataStore.templates = prepareTemplates(templates);

                //inject templates
                //header
                document.getElementById('header').innerHTML = Mustache.to_html(
                    dataStore.templates['brand-header'], 
                    {
                        'title': 'GRIFFIN Detector Status',
                    }
                );
                //run control
                document.getElementById('runStat').innerHTML = Mustache.to_html(
                    dataStore.templates['run-status'], 
                    {

                    }
                );
                //GRIFFIN display
                parameterizeGRIFFIN();
                document.getElementById('detectorDisplay').innerHTML = Mustache.to_html(
                    dataStore.templates['detector-griffin'], 
                    {
                        'views': dataStore.detector.views
                    }
                );
                setupGRIFFIN();
                //ADC sidebar
                setupADCSidebar('controlSidebar');
                //HV sidebar
                setupHVSidebar('controlSidebar');

                //post-heartbeat callback:
                function dataUpdate(){
                    updateRunStatus();
                    summarizeData();
                    repaint();
                }

                ////////////////////////////
                //initiate heartbeat
                ////////////////////////////
                dataStore.heartbeat.scriptQueries = [dataStore.runSummaryQuery]
                dataStore.heartbeat.callback = dataUpdate
                heartbeat();
            });
        </script>

    </body>
</html><commit_msg>unbreaking things post-demo<commit_after><html>
    <head>
        <title>GRIFFIN Detector</title>

        <!--libraries-->
        <script src='scripts/HTMLImports.min.js' type="text/javascript"></script>
        <script src='scripts/mustache.js' type="text/javascript"></script>
        <script src="scripts/jquery1-11-3.min.js" type="text/javascript"></script>
        <script src="scripts/kinetic-5.0.1.hackfix.js" type="text/javascript"></script>

        <!--helpers-->
        <script src='scripts/helpers.js' type="text/javascript"></script>
        <script src='scripts/dataStore.js' type="text/javascript"></script>
        <script src='scripts/heartbeat.js' type="text/javascript"></script>
        <script src='scripts/colorScales.js' type="text/javascript"></script>
        <script src="templates/detectors/detector-helpers.js" type="text/javascript"></script>

        <!--style-->
        <link rel="stylesheet" href="css/global.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <script src="scripts/bootstrap3-3-5.min.js" type="text/javascript"></script>

        <!--html imports-->
        <link id='brand-header' rel="import" href="templates/brand-header/brand-header.html">
        <link id='run-status' rel="import" href="templates/run-status/run-status.html">
        <link id='detector-griffin' rel="import" href="templates/detectors/detector-griffin/detector-griffin.html">
        <link id='adc-sidebar' rel="import" href="templates/detectors/adc-sidebar/adc-sidebar.html">
        <link id='hv-sidebar' rel="import" href="templates/detectors/hv-sidebar/hv-sidebar.html">
    </head>

    <body>
        <div id='header'></div>

        <div class='sectionWrapper'>
            <div id='runStat' class='col-md-2'></div>
            <div id='detectorDisplay' class='col-md-8'></div>
            <div id='controlSidebar' class='col-md-2'>
                <h3>ADC / HV Control</h3>
                <p>Click on a channel to get started.</p>
            </div>
        </div>

        <script>
            ////////////////////////////////////////
            //detector-specific dataStore prep:
            ////////////////////////////////////////

            //get the ODB DAQ dir and set up adc requests:
            fetchScript('http://' + dataStore.host + '/?cmd=jcopy&odb=/DAQ&encoding=json-p-nokeys&callback=processDAQ');
            function processDAQ(payload){
                fetchDAQ(payload);
                determineADCrequests();
            }

            //set up HV requests
            dataStore.equipmentQuery = 'http://'+dataStore.host+'/?cmd=jcopy&odb0=Equipment&encoding=json-p-nokeys&callback=sortODBEquipment';

            window.addEventListener('HTMLImportsLoaded', function(e) {
                ///////////////////////////
                //handle templates
                ///////////////////////////
                templates = ['brand-header', 'run-status', 'detector-griffin', 'adc-sidebar', 'hv-sidebar'];
                dataStore.templates = prepareTemplates(templates);

                //inject templates
                //header
                document.getElementById('header').innerHTML = Mustache.to_html(
                    dataStore.templates['brand-header'], 
                    {
                        'title': 'GRIFFIN Detector Status',
                    }
                );
                //run control
                document.getElementById('runStat').innerHTML = Mustache.to_html(
                    dataStore.templates['run-status'], 
                    {

                    }
                );
                //GRIFFIN display
                parameterizeGRIFFIN();
                document.getElementById('detectorDisplay').innerHTML = Mustache.to_html(
                    dataStore.templates['detector-griffin'], 
                    {
                        'views': dataStore.detector.views
                    }
                );
                setupGRIFFIN();
                //ADC sidebar
                setupADCSidebar('controlSidebar');
                //HV sidebar
                setupHVSidebar('controlSidebar');

                //post-heartbeat callback:
                function dataUpdate(){
                    updateRunStatus();
                    summarizeData();
                    repaint();
                }

                ////////////////////////////
                //initiate heartbeat
                ////////////////////////////
                dataStore.heartbeat.scriptQueries = [dataStore.runSummaryQuery, dataStore.equipmentQuery]
                dataStore.heartbeat.callback = dataUpdate
                heartbeat();
            });
        </script>

    </body>
</html>
{'fraction_non_alphanumeric': 0.17357022708158115, 'fraction_numerical': 0.003994953742640875, 'mean_word_length': 1.5476700589180503, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 2, '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': '288041', 'n_tokens_mistral': 2549, 'n_tokens_neox': 2393, 'n_words': 358}