<commit_before>const CharSize=8;
const CharsDict = {};
for(var i=0;i<16;i++){
    CharsDict[i.toString(16)]=i;
}
function parse(guid){
    var chars = guid.toLowerCase().match(/[0-9a-f]/g);
    var numberCharsCount = 0;
    var numbers=[];
    var number=0;
    for(var i=chars.length;i-->0;){
        number<<=4;
        number|=CharsDict[chars[i]];
        numberCharsCount++;

        if(numberCharsCount===8){
            numbers.push(number);
            if(numbers.length===4){
                break;
            }

            number=0;
            numberCharsCount=0;
        }
    }

    while(numbers.length<4){
        numbers.push(0);
    }

    return numbers;
}

module.exports = parse;<commit_msg>Check null for guid<commit_after>const CharSize=8;
const CharsDict = {};
for(var i=0;i<16;i++){
    CharsDict[i.toString(16)]=i;
}
function parse(guid){
    if(!guid)guid='';

    var chars = guid.toLowerCase().match(/[0-9a-f]/g);
    var numberCharsCount = 0;
    var numbers=[];
    var number=0;
    for(var i=chars.length;i-->0;){
        number<<=4;
        number|=CharsDict[chars[i]];
        numberCharsCount++;

        if(numberCharsCount===8){
            numbers.push(number);
            if(numbers.length===4){
                break;
            }

            number=0;
            numberCharsCount=0;
        }
    }

    while(numbers.length<4){
        numbers.push(0);
    }

    return numbers;
}

module.exports = parse;
{'fraction_non_alphanumeric': 0.16311080523055746, 'fraction_numerical': 0.02477632484514797, 'mean_word_length': 2.0936170212765957, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1011888', 'n_tokens_mistral': 514, 'n_tokens_neox': 477, 'n_words': 75}