6d451d0aa31f5cf21bf26d3c3a618ce1934b281d,examples/howto/events_app.py,,display_event,#Any#Any#,16

Before Change


    in the div model.
    
    name = "cb_obj.event_name"
    attrs =  [(""{attr}="+ Number(cb_obj["{attr}"]).toFixed(2)"
               + " + ", "").format(attr=attr) for attr in attributes]
    args = "+".join(attrs) if attributes else repr("")
    l1 = "text = {name} + "(" + {args} + ")" + \
             div.text.replace("<b>JS Events (see console for Python events)</b>","");".format(name=name, args=args )
    l2 = "div.text = "<b>JS Events (see console for Python events)</b><br><font size=\"0.5pt\">" + text.split("<br>",20).join("<br>")+ "</font>""
    return CustomJS(code=l1+l2, args={"div": div})

def pprint(cls, attributes):

After Change


    in the div model.
    
    style = "float:left;clear:left;font_size=0.5pt"
    return CustomJS(args=dict(div=div), code=
        attrs = %s;
        args = [];
        for ( i=0; i<attrs.length; i++ ) {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: bokeh/bokeh
Commit Name: 6d451d0aa31f5cf21bf26d3c3a618ce1934b281d
Time: 2017-03-24
Author: bryanv@continuum.io
File Name: examples/howto/events_app.py
Class Name:
Method Name: display_event


Project Name: scikit-image/scikit-image
Commit Name: 2eb9e2686dabb686c8114760abec9d5546c24fc6
Time: 2017-12-20
Author: contact@kne42.me
File Name: doc/release/contribs.py
Class Name:
Method Name:


Project Name: bokeh/bokeh
Commit Name: 6d451d0aa31f5cf21bf26d3c3a618ce1934b281d
Time: 2017-03-24
Author: bryanv@continuum.io
File Name: examples/howto/js_events.py
Class Name:
Method Name: display_event