<commit_before>function getMessageType(message){
    if(message.fatal || message.severity === 2){
        return "Error";
    }
    else{
        return "Warning";
    }
}

module.exports = function(results){
    var output = "";
    var total = 0;

    results.forEach(function(result){
        var messages = result.messages;
        var messageType;

        total += messages.length;
        output += "<div style='margin-left: 20px;'> File Name : " + result.filePath + "</div>";
        output += "<table style='margin-left: 50px;'>";
        output += "<thead><tr><th>Line</th><th>Column</th><th>Type</th><th>Message</th><th>Rule</th></tr></thead>";
        messages.forEach(function(message){
            messageType = getMessageType(message);

            output += "<tr style='color:" + (messageType === "error" ? "red" : "blue") + "';>";
            output += "<td style='padding: 4px 8px 4px 8px;'>" + (message.line || 0) + "</td>";
            output += "<td style='padding: 4px 8px 4px 8px;'>" + (message.column || 0) + "</td>";<commit_msg>Fixed a typo<commit_after>function getMessageType(message){
    if(message.fatal || message.severity === 2){
        return "Error";
    }
    else{
        return "Warning";
    }
}

module.exports = function(results){
    var output = "";
    var total = 0;

    results.forEach(function(result){
        var messages = result.messages;
        var messageType;

        total += messages.length;
        output += "<div style='margin-left: 20px;'> File Name : " + result.filePath + "</div>";
        output += "<table style='margin-left: 50px;'>";
        output += "<thead><tr><th>Line</th><th>Column</th><th>Type</th><th>Message</th><th>Rule</th></tr></thead>";
        messages.forEach(function(message){
            messageType = getMessageType(message);

            output += "<tr style='color:" + (messageType === "Error" ? "red" : "blue") + "';>";
            output += "<td style='padding: 4px 8px 4px 8px;'>" + (message.line || 0) + "</td>";
            output += "<td style='padding: 4px 8px 4px 8px;'>" + (message.column || 0) + "</td>";
{'fraction_non_alphanumeric': 0.2004750593824228, 'fraction_numerical': 0.015201900237529691, 'mean_word_length': 2.7945945945945945, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '7563390', 'n_tokens_mistral': 682, 'n_tokens_neox': 635, 'n_words': 139}