58306568739f409d295cdf37bfd38a1ef0de7b3e,osmnx/plot.py,,_save_and_show,#Any#Any#Any#Any#Any#Any#Any#,674

Before Change



        // default filepath, if none provided
        if filepath is None:
            filepath = os.path.join(settings.imgs_folder, "image.png")

        // if save folder does not already exist, create it
        folder, _ = os.path.split(filepath)
        if not folder == "" and not os.path.exists(folder):
            os.makedirs(folder)

        // get the file extension and figure facecolor
        _, ext = os.path.splitext(filepath)
        ext = ext.strip(".")
        fc = fig.get_facecolor()

After Change


            filepath = Path(settings.imgs_folder) / "image.png"

        // if save folder does not already exist, create it
        filepath.parent.mkdir(parents=True, exist_ok=True)

        // get the file extension and figure facecolor
        ext = filepath.suffix.strip(".")
        fc = fig.get_facecolor()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: gboeing/osmnx
Commit Name: 58306568739f409d295cdf37bfd38a1ef0de7b3e
Time: 2020-12-04
Author: 6774676+eumiro@users.noreply.github.com
File Name: osmnx/plot.py
Class Name:
Method Name: _save_and_show


Project Name: gboeing/osmnx
Commit Name: 58306568739f409d295cdf37bfd38a1ef0de7b3e
Time: 2020-12-04
Author: 6774676+eumiro@users.noreply.github.com
File Name: osmnx/utils.py
Class Name:
Method Name: _get_logger


Project Name: gboeing/osmnx
Commit Name: 58306568739f409d295cdf37bfd38a1ef0de7b3e
Time: 2020-12-04
Author: 6774676+eumiro@users.noreply.github.com
File Name: osmnx/plot.py
Class Name:
Method Name: _save_and_show


Project Name: matplotlib/matplotlib
Commit Name: 52136a7dda72978004f6af8e90e9ebe7596c27b8
Time: 2019-11-26
Author: anntzer.lee@gmail.com
File Name: examples/misc/image_thumbnail_sgskip.py
Class Name:
Method Name: