f1bc5b054e29f6d8e948fe7222936a2b0a975535,bokeh/server/views/autoload_js_handler.py,AutoloadJsHandler,get,#AutoloadJsHandler#,59
Before Change
script = script_for_render_items(None, render_items, app_path=app_path, absolute_url=absolute_url)
resources_param = self.get_argument("resources", "default")
if resources_param == "none":
js_urls = []
css_urls = []
else:
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
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)
self.set_header("Content-Type", "application/javascript")
self.write(encode_utf8(js))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: home-assistant/home-assistant
Commit Name: aa6a0523ef60f299d9c22333fdfe52687e902ee4
Time: 2016-08-20
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/camera/generic.py
Class Name: GenericCamera
Method Name: camera_image
Project Name: bokeh/bokeh
Commit Name: f14f475431d1a686ba2d29c4fc90ec649670f7fa
Time: 2017-08-17
Author: lcanavan@continuum.io
File Name: bokeh/embed.py
Class Name:
Method Name: notebook_div