3d1d2ccbe616f84cd9c63e45e267f3b4fdb09c9e,bokeh/embed.py,,notebook_div,#Any#,267
 
Before Change
    """
    raise RuntimeError("TODO notebook_div needs to be ported to tornado")
    ref = plot_object.ref
    elementid = str(uuid.uuid4())
    plots = [{
        "modelid": ref["id"],
        "elementid": elementid,
        "modeltype": ref["type"]
    }]
    js = PLOT_JS.render(
        custom_models = _extract_custom_models(plot_object),
        all_models = serialize_json(plot_object.dump()),
        plots = plots
    )
    script = PLOT_SCRIPT.render(
        plot_js = _wrap_in_function(js),
    )
    div = PLOT_DIV.render(elementid=elementid)
    html = NOTEBOOK_DIV.render(
        plot_script = script,
        plot_div = div,
After Change
    """
    plot_object = _check_one_plot_object(plot_object)
    (docs_json, render_items) = _standalone_docs_json_and_render_items([plot_object])
    item = render_items[0]
    script = _script_for_render_items(docs_json, render_items, websocket_url=None)

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
 Project Name: bokeh/bokeh
 Commit Name: 3d1d2ccbe616f84cd9c63e45e267f3b4fdb09c9e
 Time: 2015-10-23
 Author: hp@pobox.com
 File Name: bokeh/embed.py
 Class Name: 
 Method Name: notebook_div
 Project Name: pantsbuild/pants
 Commit Name: 565ad232a3d49ed05d03ab346fee70b8d2d44d3a
 Time: 2015-01-19
 Author: benjyw@gmail.com
 File Name: tests/python/pants_test/task_test_base.py
 Class Name: TaskTestBase
 Method Name: setUp
 Project Name: GoogleCloudPlatform/PerfKitBenchmarker
 Commit Name: d6ef26173d1f2e65ec65570683e8ca43d054c8d4
 Time: 2016-09-20
 Author: nlavine@google.com
 File Name: perfkitbenchmarker/providers/azure/azure_network.py
 Class Name: AzureNetwork
 Method Name: __init__
 Project Name: cesium-ml/cesium
 Commit Name: 996d9b723da23d37df383ea3a9b60ea371811556
 Time: 2015-02-05
 Author: a.crellinquick@gmail.com
 File Name: mltsp/custom_feature_tools.py
 Class Name: 
 Method Name: docker_extract_features