<commit_before>function tooltipHtml(n, d){ /* function to create html content string in tooltip div. */
  return "<h4>"+n+"</h4><table>"+
  "<tr><td>Percentage:</td><td>"+(d.feeling)+"%</td></tr>"
  "</table>";
}

function emo_score() {
		var dict = {
			
		};
		$.ajax({
        type:     "POST",
        async: 	  false,
        url:     "../get_sentiments.php",
        success: function(data) {
            var emos = $.parseJSON(data);

            for (var i = 0; i < 50; i++) {
            	for (var key in emos[i].state) {
            		if(key !== null) {
            			dict[key] = {};
            			console.log(1);
            		}
            	}
                
                
            }


        }
    });
} 

function getEmotionVals(emotion, state) {<commit_msg>still debugging<commit_after>function tooltipHtml(n, d){ /* function to create html content string in tooltip div. */
  return "<h4>"+n+"</h4><table>"+
  "<tr><td>Percentage:</td><td>"+(d.feeling)+"%</td></tr>"
  "</table>";
}

function emo_score() {
		var dict = {
			
		};
		$.ajax({
        type:     "POST",
        async: 	  false,
        url:     "../get_sentiments.php",
        success: function(data) {
            var emos = $.parseJSON(data);
            console.log(emos);

            /*for (var i = 0; i < 50; i++) {
            	for (var key in emos[i].state) {
            		if(key != null) {
            			dict[key] = {};
            			console.log(1);
            		}
            	}
                
                
            }*/


        }
    });
} 

function getEmotionVals(emotion, state) {
{'fraction_non_alphanumeric': 0.175625, 'fraction_numerical': 0.0075, 'mean_word_length': 1.418429003021148, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '1592379', 'n_tokens_mistral': 558, 'n_tokens_neox': 529, 'n_words': 104}