<commit_before>/**
 * Created by apizzimenti on 1/1/17.
 */

function paramExist (param, type) {
    return (typeof(param) == type && param !== undefined && param !== null);
}

function argstring (argstring) {
    
    if (paramExist(argstring)) {
        this.argstring = argstring;
    }
}

function location (location) {
    
    if (paramExist(location, "object")) {
        
        apply(location, this);
    }
}

function apply (give, receive) {
    
    for (var prop in give) {
        if (give.hasOwnProperty(prop)) {
            receive[prop] = give[prop];
        }
    }
}

module.exports = {
    paramExist: paramExist,
    argstring: argstring,
    location: location
};<commit_msg>change property attribution method in weather<commit_after>/**
 * Created by apizzimenti on 1/1/17.
 */

function paramExist (param, type) {
    return (typeof(param) == type && param !== undefined && param !== null);
}

function argstring (argstring) {
    
    if (paramExist(argstring)) {
        this.argstring = argstring;
    }
}

function location (location) {
    
    if (paramExist(location, "object")) {
        apply(location, this);
    }
}

function weather (w) {
    
    if (paramExist(w, "object")) {
        apply(w, this);
    }
}

function apply (give, receive) {
    
    for (var prop in give) {
        if (give.hasOwnProperty(prop)) {
            receive[prop] = give[prop];
        }
    }
}

module.exports = {
    paramExist: paramExist,
    argstring: argstring,
    location: location,
    weather: weather
};
{'fraction_non_alphanumeric': 0.13745928338762214, 'fraction_numerical': 0.005211726384364821, 'mean_word_length': 2.4829931972789114, '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': '5732091', 'n_tokens_mistral': 500, 'n_tokens_neox': 493, 'n_words': 119}