292644e9a848148bb4a1d35b494262cf6dddedb7,cleverhans_tutorials/mnist_tutorial_tfe.py,,attack_selection,#Any#,58

Before Change


    if attack_string is None:
        error = "Attack type is not specified, list of available attacks\t"
        error += attacks_list
        raise AttributeError(error)
    if attack_string not in attacks_list:
        error = "Attack not available, list of available attacks\t"
        error += attacks_list
        raise AttributeError(error)

After Change


        raise AttributeError("Attack type is not specified, "
                             "list of available attacks\t".join(attacks_list))
    if attack_string not in attacks_list:
        raise AttributeError("Attack not available "
                             "list of available attacks\t".join(attacks_list))
    // Mapping attack from string to class.
    attack_class = AVAILABLE_ATTACKS[attack_string]
    return attack_class
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/cleverhans
Commit Name: 292644e9a848148bb4a1d35b494262cf6dddedb7
Time: 2018-07-24
Author: krishnaphaniiitg@gmail.com
File Name: cleverhans_tutorials/mnist_tutorial_tfe.py
Class Name:
Method Name: attack_selection


Project Name: neurosynth/neurosynth
Commit Name: 4867e69181cc65a39b317819825606e0ef9350b5
Time: 2015-01-08
Author: tyarkoni@gmail.com
File Name: neurosynth/analysis/cluster.py
Class Name: Clusterer
Method Name: _create_cluster_images


Project Name: sony/nnabla-examples
Commit Name: 9c936815ecfef87fab360dfb955dc9cd2f445a5e
Time: 2020-04-01
Author: Akio.Hayakawa@sony.com
File Name: utils/neu/misc.py
Class Name: AttrDict
Method Name: __getattr__