9f488be9e08bb08a3aeb1346d52d981a2d3f1ca9,Orange/canvas/report/owreport.py,OWReport,get_html_img,#Any#,130

Before Change



    @staticmethod
    def get_html_img(scene):
        filename = OWReport._get_unique_filename(OWReport.get_instance(),
                                                 "img", "png")
        writer = PngFormat()
        writer.write(filename, scene)
        return "<ul><img src="%s%s"/></ul>" % (OWReport.report_url_pref,
                                               filename)

    @staticmethod
    def clip_string(s, limit=1000, sep=None):
        if len(s) < limit:

After Change


        filename.open(QIODevice.WriteOnly)
        writer = PngFormat()
        writer.write(filename, scene)
        img_encoded = byte_array.toBase64().data().decode("utf-8")
        return "<ul><img src="data:image/png;base64,%s"/></ul>" % img_encoded

    @staticmethod
    def clip_string(s, limit=1000, sep=None):
        if len(s) < limit:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: 9f488be9e08bb08a3aeb1346d52d981a2d3f1ca9
Time: 2015-10-30
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: get_html_img


Project Name: streamlit/streamlit
Commit Name: 4a5b5153ec136e445e74c5a3dbcdb9d0abf5acc3
Time: 2019-03-30
Author: thiagot@gmail.com
File Name: lib/streamlit/__init__.py
Class Name:
Method Name: _get_current_delta_generator


Project Name: biolab/orange3
Commit Name: 9296313084c86e7d2290862188d13487274468b6
Time: 2015-12-04
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: get_html_img