<commit_before><!DOCTYPE html>

<html> 
<head>
    <title>ACORE</title>
    <link rel="shortcut icon" href='surveys/favicon.ico' type="image/x-icon">
    <link rel="icon" href='surveys/favicon.ico' type="image/x-icon">
    <link rel="stylesheet" href='css/bootstrap.css'>
    <link rel="stylesheet" href='css/custom.css'>
    
    <script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
    <style>
    body{
        background-color:#ffffff;
    }
    * { 
        font-family: Helvetica, Arial;
    }
    .healthBar {
        color: green;
    }

</style>
        <script>
        //GLOBAL VARIABLE//
        var repeat = true; //Set true initially so that we get the repeat run
        var num_of_runs = 0; //This counts the number of runs
        var npcCount = 6;
        var nameList = ["Rossi", "Pankaj", "Davina", "Leona", "Jim", "Vince",
            "Cathleen", "Josh", "Nicole", "Stephanie", "Chris", "Tom", "Matt", "Nitya",
            "Jesse"];
        var anyone_passing = false;

//HELPER Functions
        // Returns a random integer between min (included) and max (excluded)
        // Using Math.round() will give you a non-uniform distribution!
        function getRandomInt(min, max) {
            return Math.floor(Math.random() * (max - min)) + min;
        }

        function getEmotionPercent(emotionString){ 
           return 200*emotionString;
        }

        function boost(emotionString){
            boostFactor = 2;
            return ((parseInt(emotionString)) * boostFactor).toString();
        }

        function getProtestText(){
            var protests = ['Stop!', 'Where are you going?', 'You shall not pass!'];
            counter = getRandomInt(0,protests.length);
            return protests[counter];
        }

        function getPassedText() {
            var passedText = ['Not fair!', 'I will get back at you'];
            counter = getRandomInt(0,passedText.length);
            return passedText[counter];
        }
        function clearCallouts () {
            for (var i = line.length - 1; i >= 0; i--) {
                $('#chat_' + line[i].name).text('');
                $('#chat_' + line[i].name).removeClass("callout");
            };
        }

        function removeAnimate () {
            for (var i = line.length; i >= 0; i--) {
                $('#npcParent' + i).removeClass('passAnimate');
            };   
        }
        function getDynamicFace(emotionList, charname){
            var joyEmo = parseInt(getEmotionPercent(emotionList[0]));
            var hopeEmo = parseInt(getEmotionPercent(emotionList[1]));
            var sorrowEmo = parseInt(getEmotionPercent(emotionList[2]));
            var fearEmo = parseInt(getEmotionPercent(emotionList[3]));

            var imagecounter = 5;
            // console.log("Joy Emo is " + joyEmo);
            // console.log("Hope Emo is " + hopeEmo);
            // console.log("Sorrow Emo is " + sorrowEmo);
            // console.log("Fear Emo is "  + fearEmo) ;

            if (charname == 'Davina'){
                imagecounter = 17;
            }else if (charname == 'Rossi'){
                imagecounter = 3;
            }else if (charname == 'Vince'){
                imagecounter = 5;
            }else if (charname == 'Chris'){
                imagecounter = 8;
            }else if (charname == 'Matt'){
                imagecounter = 9;
            }else if (charname == 'Tom'){
                imagecounter = 11;
            }else if (charname == 'Jesse'){
                imagecounter = 12;
            }else if (charname == 'Jim'){
                imagecounter = 13;
            }else if (charname == 'Josh'){
                imagecounter = 14;
            }else if (charname == 'Delia'){
                imagecounter = 18;
            }else if (charname == 'Cathleen'){
                imagecounter = 19;
            }else if (charname == 'Nitya'){
                imagecounter = 2;
            }else if (charname == 'Nicole'){
                imagecounter = 10;
            }else if (charname == 'Stephanie'){
                imagecounter = 15;
            }else if (charname == "Leona"){
                imagecounter = 16;
            }else if (charname == 'Pankaj'){
                imagecounter = 4;
            }
            
            var emotionalTable = [
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/normal' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/normal' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['surveys/normal' + imagecounter + '.jpg', 'surveys/normal' + imagecounter + '.jpg', 'surveys/normal' + imagecounter + '.jpg', 'surveys/normal' + imagecounter + '.jpg', 'surveys/normal' + imagecounter + '.jpg'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/normal' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/normal' + imagecounter + '.jpg', '"surveys/TEMP.jpg"'], ['"surveys/TEMP.jpg"']
            ]
            var x = 2;
            var y = 2;
            if ((joyEmo + hopeEmo) > (sorrowEmo + fearEmo)) {
                if (joyEmo > hopeEmo){
                if (joyEmo > 0) {
                    x = 3 
                    y = 2
                }else if (joyEmo > 20) {
                    x = 4
                    y = 2
                }}
            else {
                if (hopeEmo > 0) {
                    x = 2
                    y = 3
                }else if (hope > 20) {
                    x = 2
                    y = 4
                }}}
            else {
                if (sorrowEmo > fearEmo) {
                    if (sorrowEmo > 0) {
                        x = 1
                        y = 2
                    }else if (sorrowEmo > 20) {
                        x = 0<commit_msg>correction<commit_after><!DOCTYPE html>

<html> 
<head>
    <title>ACORE</title>
    <link rel="shortcut icon" href='surveys/favicon.ico' type="image/x-icon">
    <link rel="icon" href='surveys/favicon.ico' type="image/x-icon">
    <link rel="stylesheet" href='css/bootstrap.css'>
    <link rel="stylesheet" href='css/custom.css'>
    
    <script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
    <style>
    body{
        background-color:#ffffff;
    }
    * { 
        font-family: Helvetica, Arial;
    }
    .healthBar {
        color: green;
    }

</style>
        <script>
        //GLOBAL VARIABLE//
        var repeat = true; //Set true initially so that we get the repeat run
        var num_of_runs = 0; //This counts the number of runs
        var npcCount = 6;
        var nameList = ["Rossi", "Pankaj", "Davina", "Leona", "Jim", "Vince",
            "Cathleen", "Josh", "Nicole", "Stephanie", "Chris", "Tom", "Matt", "Nitya",
            "Jesse"];
        var anyone_passing = false;

//HELPER Functions
        // Returns a random integer between min (included) and max (excluded)
        // Using Math.round() will give you a non-uniform distribution!
        function getRandomInt(min, max) {
            return Math.floor(Math.random() * (max - min)) + min;
        }

        function getEmotionPercent(emotionString){ 
           return 200*emotionString;
        }

        function boost(emotionString){
            boostFactor = 2;
            return ((parseInt(emotionString)) * boostFactor).toString();
        }

        function getProtestText(){
            var protests = ['Stop!', 'Where are you going?', 'You shall not pass!'];
            counter = getRandomInt(0,protests.length);
            return protests[counter];
        }

        function getPassedText() {
            var passedText = ['Not fair!', 'I will get back at you'];
            counter = getRandomInt(0,passedText.length);
            return passedText[counter];
        }
        function clearCallouts () {
            for (var i = line.length - 1; i >= 0; i--) {
                $('#chat_' + line[i].name).text('');
                $('#chat_' + line[i].name).removeClass("callout");
            };
        }

        function removeAnimate () {
            for (var i = line.length; i >= 0; i--) {
                $('#npcParent' + i).removeClass('passAnimate');
            };   
        }
        function getDynamicFace(emotionList, charname){
            var joyEmo = parseInt(getEmotionPercent(emotionList[0]));
            var hopeEmo = parseInt(getEmotionPercent(emotionList[1]));
            var sorrowEmo = parseInt(getEmotionPercent(emotionList[2]));
            var fearEmo = parseInt(getEmotionPercent(emotionList[3]));

            var imagecounter = 5;
            // console.log("Joy Emo is " + joyEmo);
            // console.log("Hope Emo is " + hopeEmo);
            // console.log("Sorrow Emo is " + sorrowEmo);
            // console.log("Fear Emo is "  + fearEmo) ;

            if (charname == 'Davina'){
                imagecounter = 17;
            }else if (charname == 'Rossi'){
                imagecounter = 3;
            }else if (charname == 'Vince'){
                imagecounter = 5;
            }else if (charname == 'Chris'){
                imagecounter = 8;
            }else if (charname == 'Matt'){
                imagecounter = 9;
            }else if (charname == 'Tom'){
                imagecounter = 11;
            }else if (charname == 'Jesse'){
                imagecounter = 12;
            }else if (charname == 'Jim'){
                imagecounter = 13;
            }else if (charname == 'Josh'){
                imagecounter = 14;
            }else if (charname == 'Delia'){
                imagecounter = 18;
            }else if (charname == 'Cathleen'){
                imagecounter = 19;
            }else if (charname == 'Nitya'){
                imagecounter = 2;
            }else if (charname == 'Nicole'){
                imagecounter = 10;
            }else if (charname == 'Stephanie'){
                imagecounter = 15;
            }else if (charname == "Leona"){
                imagecounter = 16;
            }else if (charname == 'Pankaj'){
                imagecounter = 4;
            }
            
            var emotionalTable = [
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/sadB' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/sadB' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['surveys/afraidB' + imagecounter + '.jpg', 'surveys/afraidB' + imagecounter + '.jpg', 'surveys/normal' + imagecounter + '.jpg', 'surveys/hopeB' + imagecounter + '.jpg', 'surveys/hopeB' + imagecounter + '.jpg'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/happyB' + imagecounter + '.jpg', '"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"'],
                ['"surveys/TEMP.jpg"', '"surveys/TEMP.jpg"', 'surveys/happyB' + imagecounter + '.jpg', '"surveys/TEMP.jpg"'], ['"surveys/TEMP.jpg"']
            ]
            var x = 2;
            var y = 2;
            if ((joyEmo + hopeEmo) > (sorrowEmo + fearEmo)) {
                if (joyEmo > hopeEmo){
                if (joyEmo > 0) {
                    x = 3 
                    y = 2
                }else if (joyEmo > 20) {
                    x = 4
                    y = 2
                }}
            else {
                if (hopeEmo > 0) {
                    x = 2
                    y = 3
                }else if (hope > 20) {
                    x = 2
                    y = 4
                }}}
            else {
                if (sorrowEmo > fearEmo) {
                    if (sorrowEmo > 0) {
                        x = 1
                        y = 2
                    }else if (sorrowEmo > 20) {
                        x = 0
{'fraction_non_alphanumeric': 0.14514371909829885, 'fraction_numerical': 0.011396966395709378, 'mean_word_length': 1.5235779234510467, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 53, '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': '3766510', 'n_tokens_mistral': 3786, 'n_tokens_neox': 3541, 'n_words': 827}