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())
        if stream is None:
            return output.getvalue()

    def _create_comm(self):

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()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

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: 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


Project Name: silvandeleemput/memcnn
Commit Name: a07d352173f3590aef91348ca961cd3922f4b5b5
Time: 2019-12-08
Author: silvandeleemput@gmail.com
File Name: memcnn/trainers/tests/test_train.py
Class Name:
Method Name: test_run_experiment