332c35bac50551d9fcea0a78c6730d53ed063653,src/classifiers/classifier.py,Classifier,parse_defences,#Classifier#Any#,53

Before Change



    def parse_defences(self, defences):

        if "labsmooth" in defences:
            self.labsmooth = True
        else:
            self.labsmooth = False

After Change


        self.defences = defences

        if defences:
            pattern = re.compile("featsqueeze[1-8]?")

            for d in defences:

                if pattern.match(d):
                    self.feature_squeeze = True

                    try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 332c35bac50551d9fcea0a78c6730d53ed063653
Time: 2017-06-28
Author: valentina.zantedeschi@ibm.com
File Name: src/classifiers/classifier.py
Class Name: Classifier
Method Name: parse_defences


Project Name: chainer/chainer
Commit Name: f03d5ba6362a60773d4a2830f5ddf52bb42a3166
Time: 2019-07-15
Author: niboshi000@gmail.com
File Name: tests/chainer_tests/test_runnable.py
Class Name: TestRunnable
Method Name: test_runnable


Project Name: IDSIA/sacred
Commit Name: 181cb7a66f29fb40aa3dfec5c77d0aa5212fe7c9
Time: 2015-02-21
Author: qwlouse@gmail.com
File Name: sacred/host_info.py
Class Name:
Method Name: get_processor_name