da3c3cfc1be373085e38485652fed6ac291fed20,sos/target.py,RuntimeInfo,validate,#RuntimeInfo#,562

Before Change


                try:
                    f, m = line.rsplit("\t", 1)
                    if "(" in f and ")" in f:
                        freal = eval(f)
                    else:
                        freal = FileTarget(f)
                    if freal.exists("target"):
                        fmd5 = freal.signature("target")

After Change


                                if entrypoint.name.strip() == target_type:
                                    target_class = entrypoint.load()
                                    break
                        if target_class is None:
                            raise ValueError("Failed to identify target class {}".format(target_type))
                        // parameter of class?
                        freal = eval(f, {target_type: target_class})
                    else:
                        freal = FileTarget(f)
                    if freal.exists("target"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: da3c3cfc1be373085e38485652fed6ac291fed20
Time: 2017-02-13
Author: ben.bog@gmail.com
File Name: sos/target.py
Class Name: RuntimeInfo
Method Name: validate


Project Name: ray-project/ray
Commit Name: 415be78cc0d1275a29d0ceda550d0d7a7a5224ea
Time: 2020-09-08
Author: amogkam@users.noreply.github.com
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: validate


Project Name: brian-team/brian2
Commit Name: bc809c7974b172e5fa5f89547034a539fa1c05a1
Time: 2013-08-13
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: GroupItemMapping
Method Name: __getitem__