17613bb4266accef84d96d90cdfe89d11ee3e641,lib/matplotlib/_pylab_helpers.py,Gcf,destroy_fig,#Any#Any#,75

Before Change


    def destroy_fig(cls, fig):
        "*fig* is a Figure instance"
        num = None
        for manager in six.itervalues(cls.figs):
            if manager.canvas.figure == fig:
                num = manager.num
                break

After Change


    @classmethod
    def destroy_fig(cls, fig):
        "*fig* is a Figure instance"
        num = next((manager.num for manager in six.itervalues(cls.figs)
                    if manager.canvas.figure == fig), None)
        if num is not None:
            cls.destroy(num)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 17613bb4266accef84d96d90cdfe89d11ee3e641
Time: 2017-12-25
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/_pylab_helpers.py
Class Name: Gcf
Method Name: destroy_fig


Project Name: pymc-devs/pymc3
Commit Name: 78dfb2b5524b606bf5b1d9520b19981711137b7c
Time: 2007-10-09
Author: anand.prabhakar.patil@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: PyMC2/Node.py
Class Name: Node
Method Name: _set_parents


Project Name: acoular/acoular
Commit Name: 8665969f51679c3795063f142f135a29e3c9661f
Time: 2017-08-10
Author: adam.kujawski@campus.tu-berlin.de
File Name: acoular/h5cache.py
Class Name: H5cache_class
Method Name: get_cache


Project Name: deepmind/dm_control
Commit Name: ae2d628c1437e5cf47211b964fb4039ecb456d46
Time: 2018-10-15
Author: alimuldal@google.com
File Name: dm_control/autowrap/c_declarations.py
Class Name: Struct
Method Name: wrapper_class