<commit_before>var parseNessusResult = function(nessStr){
    var scoreReg = /CVSS Base Score : (\d\.\d)/

    var portReg = /\D+ \((\d{1,7})\D+\)/
    var splitNess = nessStr.split("|")
    var ip = splitNess[2]
    var code = splitNess[4]
    var holeNote = splitNess[5]
    if(scoreReg.test(nessStr)){
        var score = scoreReg.exec(nessStr)[1]
    }
    else{
        var score = "0.0"
    }
    if(portReg.test(nessStr)){
        var port = portReg.exec(nessStr)[1]
    }
    else{
        var port = "-1"
    }
    
    return {"ip":ip,
        "code":code,
        "holeNote":holeNote,
        "cvssScore":score,
        "port":port}
}
<commit_msg>Now makes ports and scores floats<commit_after>
var parseNessusResult = function(nessStr){
    var scoreReg = /CVSS Base Score : (\d\.\d)/

    var portReg = /\D+ \((\d{1,7})\D+\)/
    var splitNess = nessStr.split("|")
    var ip = splitNess[2]
    var code = splitNess[4]
    var holeNote = splitNess[5]
    if(scoreReg.test(nessStr)){
        var score = parseFloat(scoreReg.exec(nessStr)[1])
    }
    else{
        var score = 0.0
    }
    if(portReg.test(nessStr)){
        var port = parseFloat(portReg.exec(nessStr)[1])
    }
    else{
        var port = -1
    }
    
    return {"ip":ip,
        "code":code,
        "holeNote":holeNote,
        "cvssScore":score,
        "port":port}
}


{'fraction_non_alphanumeric': 0.16200294550810015, 'fraction_numerical': 0.014727540500736377, 'mean_word_length': 2.11697247706422, 'pattern_counts': {'":': 10, '<': 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': '7082621', 'n_tokens_mistral': 505, 'n_tokens_neox': 497, 'n_words': 100}