<commit_before>function Err(type,message){
    this.type=type;//type of error
    this.message=message;//message
    return this;
}
function testConfig(config,initial){
    var res={};//create variable of returning
    if(config===undefined){
        config={};//set initialize value= Primitive Object/Dict
    }
    for(var i in initial){//enum
        if(config[i]!==undefined){//if defined
            res[i]=config[i];//get it
        }else{//if not
            if(initial[i][1]===false){
                res[i]=initial[i][0];//get initial value
            }else{<commit_msg>>add -method use string to input<commit_after>function Err(type,message){
    this.type=type;//type of error
    this.message=message;//message
    return this;
}
function makeConfig(conf){
    var a={};
    var b=conf.split("|");
    for(var i in b){
        var c=b[i].split("=");
        a[c[0]]=JSON.parse(c[1]);
    }
}
function testConfig(config,initial){
    var res={};//create variable of returning
    if(config===undefined){
        config={};//set initialize value= Primitive Object/Dict
    }
    if(typeof config==="string"||config instanceof String){
        config=makeConfig(config);
    }
    for(var i in initial){//enum
        if(config[i]!==undefined){//if defined
            res[i]=config[i];//get it
        }else{//if not
            if(initial[i][1]===false){
                res[i]=initial[i][0];//get initial value
            }else{
{'fraction_non_alphanumeric': 0.16920943134535368, 'fraction_numerical': 0.004160887656033287, 'mean_word_length': 2.5806451612903225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1809288', 'n_tokens_mistral': 446, 'n_tokens_neox': 443, 'n_words': 94}