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:
canvas = getattr(self, "canvas")
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: 4
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: scipy/scipy
Commit Name: a480e07e4486f420ea7403849f8ac1d22ae517f4
Time: 2015-07-28
Author: n59_ru@hotmail.com
File Name: scipy/optimize/least_squares.py
Class Name:
Method Name: check_scaling
Project Name: tensorflow/agents
Commit Name: 5f708e7bdb2f37e3de10fbc1d61c929ecd8fdb0d
Time: 2020-09-28
Author: ebrevdo@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent.py
Class Name: BehavioralCloningAgent
Method Name: __init__