52136a7dda72978004f6af8e90e9ebe7596c27b8,examples/misc/image_thumbnail_sgskip.py,,,#,20
Before Change
raise SystemExit
outdir = "thumbs"
if not os.path.exists(outdir):
os.makedirs(outdir)
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
for path in args.imagedir.glob("*.png"):
outpath = outdir / path.name
fig = image.thumbnail(path, outpath, scale=0.15)
print(f"saved thumbnail of {path} to {outpath}")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: bokeh/bokeh
Commit Name: 3e802d4f61abf9fb1b88add829b76f1e309f9957
Time: 2017-02-16
Author: mattpap@gmail.com
File Name: tests/examples/examples_report_plugin.py
Class Name: ExamplesTestReport
Method Name: pytest_sessionfinish
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: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cd3e85f75755a2d1f02e03b2d76b74179a64c622
Time: 2016-06-06
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/pipeline.py
Class Name:
Method Name: test_full