34b0c301dd2b57ecce97339d9ac7f0f29a7df825,starry/map/pybase.py,PythonMapBase,show,#PythonMapBase#Any#Any#Any#,148

Before Change


            if (gif is not None) and (gif != ""):
                if gif.endswith(".gif"):
                    gif = gif[:-4]
                ani.save("%s.gif" % gif, writer="imagemagick")
            else:
                plt.show()
            plt.close()
        else:

After Change


                plt.close()
            else:
                try:
                    if "zmqshell" in str(type(get_ipython())):
                        plt.close()
                        display(HTML(ani.to_jshtml()))
                    else:
                        raise NameError("")
                except NameError:
                    plt.show()
                    plt.close()
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rodluger/starry
Commit Name: 34b0c301dd2b57ecce97339d9ac7f0f29a7df825
Time: 2019-03-12
Author: rodluger@gmail.com
File Name: starry/map/pybase.py
Class Name: PythonMapBase
Method Name: show


Project Name: AlexsLemonade/refinebio
Commit Name: 30311fd91ecaea4bcaa380ed4ccc5018867d3ba4
Time: 2018-08-28
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/geo.py
Class Name: GeoSurveyor
Method Name: create_experiment_and_samples_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: 31053ed1871b65d445df519f2211c4ef7ea50c6d
Time: 2018-08-27
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_experiment_from_api