6d7069d9a13c2e15b7c7fd67a092cf9738f00347,bokeh/embed.py,,autoload_static,#Any#Any#Any#,347

Before Change


    if resources.dev:
        raise ValueError("autoload_static() only works with non-dev resources")

    elementid = str(uuid.uuid4())

    js = AUTOLOAD.render(
        all_models = serialize_json(plot_object.dump()),
        js_url = resources.js_files[0],

After Change


        raise ValueError("autoload_static() only works with non-dev resources")

    plot_objects = _check_plot_objects(plot_object)
    if len(plot_objects) != 1:
        raise ValueError("Specify exactly one plot object for autoload_static")

    (docs_json, render_items) = _standalone_docs_json_and_render_items(plot_objects)
    item = render_items[0]

    model_id = ""
    if "modelid" in item:
        model_id = item["modelid"]
    doc_id = ""
    if "docid" in item:
        doc_id = item["docid"]

    js = AUTOLOAD_JS.render(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: bokeh/bokeh
Commit Name: 6d7069d9a13c2e15b7c7fd67a092cf9738f00347
Time: 2015-10-23
Author: hp@pobox.com
File Name: bokeh/embed.py
Class Name:
Method Name: autoload_static


Project Name: brian-team/brian2
Commit Name: 83d85d59c4cbb0e4d5efb8aee847849b141358b2
Time: 2015-08-05
Author: marcel.stimberg@inserm.fr
File Name: brian2/units/fundamentalunits.py
Class Name: DimensionMismatchError
Method Name: __str__


Project Name: mathics/Mathics
Commit Name: da735616b83af99dc3a16edee3055527e379d93d
Time: 2016-08-16
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/image.py
Class Name: RandomImage
Method Name: apply