<commit_before>
$( document ).ready(function() {


            /*GLOBAL STATE VARS */
            mode = "none";
            pauseButtonState = "pause";
            hasCalib = false;
            log = [];
            inBetweenSpeech = 5; //seconds
            timeOut = 3; //seconds
            successCount = 0; //count of # of times in bounds
            loopRun = 0;
            loopSuccessRun = 0;
            wasInBounds = false;
            /*END GLOBAL STATE */

            /* BUTTON LISTENERS */


            $("#calibMode").click(function(){
                if(!hasCalib){
                    //var msg = new SpeechSynthesisUtterance('Move your cursor and follow it with your eyes');
                    //setTimeout(window.speechSynthesis.speak(msg), 2000);
                    //msg = new SpeechSynthesisUtterance('Click in various spots while looking at the cursor');
                    //setTimeout(window.speechSynthesis.speak(msg), 10000);
                    //msg = new SpeechSynthesisUtterance('Make sure you get points on and around the eyes and face');
                    //setTimeout(window.speechSynthesis.speak(msg), 10000);
                }
                mode = "calibration";
                $('#videobox').css({'display':'block','float':'right','width': '400px','height':'400px','color':'black'});
                webgazer.showPredictionPoints(true);
                $('#gazedot').css('opacity',0.7);
                hasCalib = true;
            });


            $("#useMode").click(function(){
                //if(!hasCalib){
                    //alert("Please calibrate first");
                  //  return false;
                //}
                else{
                    if(mode !== "use"){
                        loopRun= 0; //reset, so that speech doesn't go bonkers
                    }
                    mode = "use";
                    webgazer.showPredictionPoints(true);
                    //$('#gazedot').css('opacity',0);
                }
            });


            $("#pause").click(function(){
                if(pauseButtonState === "pause"){
                    mode = "pause";
                    pauseButtonState = "resume";<commit_msg>Bux fix for customer discovery<commit_after>
$( document ).ready(function() {


            /*GLOBAL STATE VARS */
            mode = "none";
            pauseButtonState = "pause";
            hasCalib = false;
            log = [];
            inBetweenSpeech = 5; //seconds
            timeOut = 3; //seconds
            successCount = 0; //count of # of times in bounds
            loopRun = 0;
            loopSuccessRun = 0;
            wasInBounds = false;
            /*END GLOBAL STATE */

            /* BUTTON LISTENERS */


            $("#calibMode").click(function(){
                if(!hasCalib){
                    //var msg = new SpeechSynthesisUtterance('Move your cursor and follow it with your eyes');
                    //setTimeout(window.speechSynthesis.speak(msg), 2000);
                    //msg = new SpeechSynthesisUtterance('Click in various spots while looking at the cursor');
                    //setTimeout(window.speechSynthesis.speak(msg), 10000);
                    //msg = new SpeechSynthesisUtterance('Make sure you get points on and around the eyes and face');
                    //setTimeout(window.speechSynthesis.speak(msg), 10000);
                }
                mode = "calibration";
                $('#videobox').css({'display':'block','float':'right','width': '400px','height':'400px','color':'black'});
                webgazer.showPredictionPoints(true);
                $('#gazedot').css('opacity',0.7);
                hasCalib = true;
            });


            $("#useMode").click(function(){
                if(!hasCalib){
                    alert("Please calibrate first");
                    return false;
                }
                else{
                    if(mode !== "use"){
                        loopRun= 0; //reset, so that speech doesn't go bonkers
                    }
                    mode = "use";
                    webgazer.showPredictionPoints(true);
                    $('#gazedot').css('opacity',0);
                }
            });


            $("#pause").click(function(){
                if(pauseButtonState === "pause"){
                    mode = "pause";
                    pauseButtonState = "resume";
{'fraction_non_alphanumeric': 0.13085804844917365, 'fraction_numerical': 0.013131084446456871, 'mean_word_length': 1.3388035997882477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2485030', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1043, 'n_words': 245}