a887d221c8f04e5e5987a96c022b7e8b2300bf0a,distributed/bokeh/components.py,ProfileServer,__init__,#ProfileServer#Any#Any#,562

Before Change


                self.source.selected = old
                changing[0] = False

        self.source.on_change("selected", cb)

        self.profile_plot = figure(tools="tap", height=400, **kwargs)
        r = self.profile_plot.quad("left", "right", "top", "bottom", color="color",
                                   line_color="black", source=self.source)

After Change


                    self.source.selected = old
                changing[0] = False

        if bokeh.__version__ >= "1.0":
            self.source.selected.on_change("indices", cb)
        else:
            self.source.on_change("selected", cb)

        self.profile_plot = figure(tools="tap", height=400, **kwargs)
        r = self.profile_plot.quad("left", "right", "top", "bottom", color="color",
                                   line_color="black", source=self.source)
        r.selection_glyph = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: dask/distributed
Commit Name: a887d221c8f04e5e5987a96c022b7e8b2300bf0a
Time: 2018-11-15
Author: mrocklin@gmail.com
File Name: distributed/bokeh/components.py
Class Name: ProfileServer
Method Name: __init__


Project Name: dask/distributed
Commit Name: a887d221c8f04e5e5987a96c022b7e8b2300bf0a
Time: 2018-11-15
Author: mrocklin@gmail.com
File Name: distributed/bokeh/components.py
Class Name: ProfileTimePlot
Method Name: __init__


Project Name: dask/distributed
Commit Name: a887d221c8f04e5e5987a96c022b7e8b2300bf0a
Time: 2018-11-15
Author: mrocklin@gmail.com
File Name: distributed/bokeh/components.py
Class Name: ProfilePlot
Method Name: __init__