<commit_before>def dictJoin(src, addition):
    if src==None:
        return None

    a = src.copy()

    if addition==None:
        return a#return a copy so that this function always
                #returns a new dict and never a reference to src
    a.update(addition)
    return a


def call(func, args):
     
    reqArgs = func.func_code.co_varnames[1:]
    passedArgs = map(args.get,reqArgs)
    #print "----- call -----"
#    print "  ",func
#    print "  ",args
#    print "  ",reqArgs
#    print "  ",passedArgs    
    r = func(*passedArgs)
#    print "  ",r
#    print "----------------"
    return r<commit_msg>fixed argument bug<commit_after>import inspect
def dictJoin(src, addition):
    if src==None:
        return None

    a = src.copy()

    if addition==None:
        return a#return a copy so that this function always
                #returns a new dict and never a reference to src
    a.update(addition)
    return a


def call(func, args):
    reqArgs = inspect.getargspec(func).args[1:]
    passedArgs = map(args.get,reqArgs)
    r = func(*passedArgs)
    return r
{'fraction_non_alphanumeric': 0.12431444241316271, 'fraction_numerical': 0.0018281535648994515, 'mean_word_length': 2.192419825072886, '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': '1702078', 'n_tokens_mistral': 348, 'n_tokens_neox': 332, 'n_words': 104}