453269872f7e4dc9a6dc81a1c758ffc365cfc312,utilities/constraints_classes.py,ConstraintSearch,create_list_from_constraint,#ConstraintSearch#,134
Before Change
name_list_final = []
for p in self.list_paths:
for filename in os.listdir(p):
flag_possible = True
for c in self.list_contain:
if c not in filename:
flag_possible = False
break
for n in self.list_not_contain:
if n in filename:
flag_possible = False
break
After Change
name_list_final = []
for p in self.list_paths:
for filename in os.listdir(p):
if any(c not in filename for c in self.list_contain) :
continue
if any(c in filename for c in self.list_not_contain):
continue
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: NifTK/NiftyNet
Commit Name: 453269872f7e4dc9a6dc81a1c758ffc365cfc312
Time: 2017-05-22
Author: wenqi.li@ucl.ac.uk
File Name: utilities/constraints_classes.py
Class Name: ConstraintSearch
Method Name: create_list_from_constraint
Project Name: catalyst-team/catalyst
Commit Name: 2275ea902a701cc5b55e72a98f61acbbec4ed4c8
Time: 2020-09-06
Author: scitator@gmail.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_callbacks
Project Name: NifTK/NiftyNet
Commit Name: 453269872f7e4dc9a6dc81a1c758ffc365cfc312
Time: 2017-05-22
Author: wenqi.li@ucl.ac.uk
File Name: utilities/constraints_classes.py
Class Name: ConstraintSearch
Method Name: create_list_from_constraint