52136a7dda72978004f6af8e90e9ebe7596c27b8,examples/misc/image_thumbnail_sgskip.py,,,#,20
Before Change
for fname in glob.glob(os.path.join(indir, "*.png")):
basedir, basename = os.path.split(fname)
outfile = os.path.join(outdir, basename)
fig = image.thumbnail(fname, outfile, scale=0.15)
print("saved thumbnail of %s to %s" % (fname, outfile))
After Change
sys.exit(f"Could not find input directory {args.imagedir}")
outdir = Path("thumbs")
outdir.mkdir(parents=True, exist_ok=True)
for path in args.imagedir.glob("*.png"):
outpath = outdir / path.name
fig = image.thumbnail(path, outpath, scale=0.15)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
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
Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: 394db7b4ef0a2801be7b7c5bb6df022498461296
Time: 2020-08-19
Author: Zhedong.Zheng@student.uts.edu.au
File Name: prepare_viper.py
Class Name:
Method Name: