1f09d1866cafb3e16e628f9f1bfd91471acc0988,lib/matplotlib/backends/backend_nbagg.py,FigureManagerNbAgg,get_javascript,#Any#Any#,108
Before Change
else:
output = stream
super().get_javascript(stream=output)
with io.open(os.path.join(
os.path.dirname(__file__),
"web_backend", "js",
"nbagg_mpl.js"), encoding="utf8") as fd:
output.write(fd.read())
After Change
else:
output = stream
super().get_javascript(stream=output)
output.write((Path(__file__).parent / "web_backend/js/nbagg_mpl.js")
.read_text(encoding="utf-8"))
if stream is None:
return output.getvalue()
def _create_comm(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_nbagg.py
Class Name: FigureManagerNbAgg
Method Name: get_javascript
Project Name: pantsbuild/pants
Commit Name: 06c733bcddc4523b7b9d18daf1487484817a5e06
Time: 2019-09-08
Author: ericarellano@me.com
File Name: tests/python/pants_test/tasks/test_changed_target_integration.py
Class Name: ChangedTargetGoalsIntegrationTest
Method Name: known_commits
Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_webagg_core.py
Class Name: FigureManagerWebAgg
Method Name: get_javascript