f1bc5b054e29f6d8e948fe7222936a2b0a975535,bokeh/server/views/autoload_js_handler.py,AutoloadJsHandler,get,#AutoloadJsHandler#,59

Before Change


            js_urls = resources.js_files
            css_urls = resources.css_files

        js = AUTOLOAD_JS.render(
            js_urls = js_urls,
            css_urls = css_urls,
            js_raw = resources.js_raw + [bundle, script],
            css_raw = resources.css_raw_str,
            elementid = element_id,
        )

        self.set_header("Content-Type", "application/javascript")
        self.write(encode_utf8(js))

After Change


        bundle = bundle_for_objs_and_resources(None, resources)

        render_items = [RenderItem(sessionid=session.id, elementid=element_id, use_for_title=False)]
        bundle.add(Script(script_for_render_items(None, render_items, app_path=app_path, absolute_url=absolute_url)))

        js = AUTOLOAD_JS.render(bundle=bundle, elementid=element_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/server/views/autoload_js_handler.py
Class Name: AutoloadJsHandler
Method Name: get


Project Name: biolab/orange3
Commit Name: 0df515fe240365bfe130f94629f2c0c8a6286218
Time: 2017-08-18
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owpythonscript.py
Class Name: OWPythonScript
Method Name: OWPythonScript_2


Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/embed/standalone.py
Class Name:
Method Name: autoload_static