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



        // default filepath, if none provided
        if filepath is None:
            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: 8

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: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/misc/io/tools.py
Class Name:
Method Name: ensure_directory


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:


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