453269872f7e4dc9a6dc81a1c758ffc365cfc312,utilities/constraints_classes.py,ConstraintSearch,create_list_from_constraint,#ConstraintSearch#,134

Before Change


            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


            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
                full_file_name = os.path.join(p, filename)
                list_final.append(full_file_name)
                name_list_final.append(
                        self.list_subjects_potential(filename))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: evilsocket/pwnagotchi
Commit Name: 90b0e10e81a5a0e03753715ec1034278bdd5f600
Time: 2019-10-07
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/api.py
Class Name:
Method Name: parse_pcap


Project Name: ClimbsRocks/auto_ml
Commit Name: 01e493ee23b9d65e37bcd20c3d8e3420977d9e35
Time: 2016-12-08
Author: ClimbsBytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: perform_grid_search_by_model_names