40298ad9b45f3d51e7fb4453301550d745ed98de,featuretools/primitives/base/utils.py,,inspect_function_args,#Any#Any#Any#,9

Before Change


            else:
                new_class.uses_calc_time = True
        if argspec.defaults is not None and i >= lowest_kwargs_position:
            kwargs[arg] = argspec.defaults[i - lowest_kwargs_position]
    return new_class, kwargs

After Change


def inspect_function_args(new_class, function, uses_calc_time):
    // inspect function to see if there are keyword arguments
    kwargs = {}
    args = signature(function).parameters.values()
    for arg in args:
        if arg.name == "time":
            if not uses_calc_time:
                raise ValueError(""time" is a restricted keyword.  Please"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Featuretools/featuretools
Commit Name: 40298ad9b45f3d51e7fb4453301550d745ed98de
Time: 2019-04-09
Author: inboxjeff@outlook.com
File Name: featuretools/primitives/base/utils.py
Class Name:
Method Name: inspect_function_args


Project Name: nltk/nltk
Commit Name: 549e3cabe4c770b59f9285506d6f1d82c49ca404
Time: 2019-08-11
Author: herve.nicol@gmail.com
File Name: nltk/decorators.py
Class Name:
Method Name: getinfo


Project Name: allenai/allennlp
Commit Name: 5ad7a33a04d8829ad3439b5f9390bd136105f986
Time: 2020-05-28
Author: tobiasr@allenai.org
File Name: allennlp/nn/beam_search.py
Class Name: BeamSearch
Method Name: search