<commit_before>module.exports = function(obj, path, create){
    var keys = path.split('.');

    //lookup object
    keys.some(function(k){
        var nestedProp = obj[k];
        if (typeof nestedProp != 'undefined') {
            obj = nestedProp;
        } else if (create && typeof obj == 'object') {
            obj = {};
        } else {
            obj = undefined;
            return true;<commit_msg>Fixed a nested objects creation issue<commit_after>module.exports = function(obj, path, create){
    var keys = path.split('.');

    //lookup object
    keys.some(function(k){
        var nestedProp = obj[k];
        if (typeof nestedProp != 'undefined') {
            obj = nestedProp;
        } else if (create && typeof obj == 'object') {
            obj = obj[k] = {};
        } else {
            obj = undefined;
            return true;
{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.0, 'mean_word_length': 1.8918918918918919, 'pattern_counts': {'":': 0, '<': 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': '6766675', 'n_tokens_mistral': 233, 'n_tokens_neox': 231, 'n_words': 67}