da83457d51b516d036b3373c6805443f76185451,lib/matplotlib/figure.py,Figure,set_size_inches,#Figure#Any#Any#Any#,875
Before Change
if h is None:
w, h = w
if not all (np.isfinite(_) for _ in (w, h) ):
raise ValueError ( "figure size must be finite not "
"({}, {})" .format(w, h))
self.bbox_inches.p1 = w, h
if forward:
After Change
if h is None:
w, h = w
size = w, h
if not np.isfinite(size).all() or (np.array(size) <= 0 ).any():
raise ValueError (f"figure size must be positive finite not {size}" )
self.bbox_inches.p1 = w, h
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: matplotlib/matplotlib
Commit Name: da83457d51b516d036b3373c6805443f76185451
Time: 2019-04-03
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: set_size_inches
Project Name: prody/ProDy
Commit Name: 7cd15d13d91e2de78d53a5cdac661e63f64d59e8
Time: 2021-01-05
Author: shz66@pitt.edu
File Name: prody/dynamics/adaptive.py
Class Name:
Method Name: calcStep
Project Name: deepfakes/faceswap
Commit Name: 5c17417d4d48afb07629d2dfe014cb4b46a736c7
Time: 2019-07-24
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: capture_loss