<commit_before>/**
 * Created by apdun on 11/5/2016.
 */
//Makes the sentiment series array gloabl
var sentiemntSeries = [];
var sentimentScore;

$( document ).ready(function() {
    $('#posnegChart').hide();
});

function calcSetiment() {
    document.getElementById('welcomeDiv').style.display = "block";
    var positive = 0;
    var negative = 0;
    var average = 0;
    console.log("Inside calcSentiment");
    console.log(allScores);

    // Loops through the array
    for (var i = 0; i < allScores.length; i++)
    {

        // Determins if its positive, negative, or nutral
        console.log(allScores[i]);
        if (allScores[i] > 0) {
            console.log("Positive " + allScores[i]);<commit_msg>Fixed Anthony's shitty code.<commit_after>/**
 * Created by apdun on 11/5/2016.
 */
//Makes the sentiment series array gloabl
var sentiemntSeries = [];
var sentimentScore;

$( document ).ready(function() {
    $('#posnegChart').hide();
});

function calcSetiment() {
    var positive = 0;
    var negative = 0;
    var average = 0;
    console.log("Inside calcSentiment");
    console.log(allScores);

    // Loops through the array
    for (var i = 0; i < allScores.length; i++)
    {

        // Determins if its positive, negative, or nutral
        console.log(allScores[i]);
        if (allScores[i] > 0) {
            console.log("Positive " + allScores[i]);
{'fraction_non_alphanumeric': 0.14855072463768115, 'fraction_numerical': 0.017391304347826087, 'mean_word_length': 2.8467966573816157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4184680', 'n_tokens_mistral': 471, 'n_tokens_neox': 430, 'n_words': 118}