7044fc2be3ccab3e99029d86e6ec1b64e69a4bd5,bokeh/sphinxext/bokeh_palette.py,,bokeh_palette,#Any#Any#Any#Any#Any#Any#Any#,85

Before Change


        raise SphinxError("cannot evaluate palette expression "%r", reason: %s" % (text, e))
    p = _globals.get("palette", None)
    if not isinstance(p, (list, tuple)) or not all(isinstance(x, str) for x in p):
        raise SphinxError("palette expression "%r" generated invalid or no output: %s" % (text, p))
    w = 20 if len(p) < 15 else 10 if len(p) < 32 else 5 if len(p) < 64 else 2 if len(p) < 128 else 1
    html = PALETTE_DETAIL.render(palette=p, width=w)
    node = nodes.raw("", html, format="html")
    return [node], []

After Change


        raise SphinxError(f"cannot evaluate palette expression {text!r}, reason: {e}")
    p = _globals.get("palette", None)
    if not isinstance(p, (list, tuple)) or not all(isinstance(x, str) for x in p):
        raise SphinxError(f"palette expression {text!r} generated invalid or no output: {p}")
    w = 20 if len(p) < 15 else 10 if len(p) < 32 else 5 if len(p) < 64 else 2 if len(p) < 128 else 1
    html = PALETTE_DETAIL.render(palette=p, width=w)
    node = nodes.raw("", html, format="html")
    return [node], []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bokeh/bokeh
Commit Name: 7044fc2be3ccab3e99029d86e6ec1b64e69a4bd5
Time: 2020-11-02
Author: bryan@bokeh.org
File Name: bokeh/sphinxext/bokeh_palette.py
Class Name:
Method Name: bokeh_palette


Project Name: bokeh/bokeh
Commit Name: 7044fc2be3ccab3e99029d86e6ec1b64e69a4bd5
Time: 2020-11-02
Author: bryan@bokeh.org
File Name: bokeh/sphinxext/bokeh_palette_group.py
Class Name:
Method Name: html_visit_bokeh_palette_group


Project Name: bokeh/bokeh
Commit Name: 7044fc2be3ccab3e99029d86e6ec1b64e69a4bd5
Time: 2020-11-02
Author: bryan@bokeh.org
File Name: bokeh/sphinxext/bokeh_plot.py
Class Name:
Method Name: build_finished