f82ba26ddda1bf5ccffa2f40707c673f2ee1892f,bokeh/plotting/helpers.py,,_add_sigfunc_info,#Any#Any#Any#Any#,507

Before Change


        prop = getattr(glyphclass, kw)
        if prop.__doc__:
            typ = prop.__class__.__name__
            desc = " ".join(x.strip() for x in prop.__doc__.strip().split("\n\n")[0].split("\n"))
        else:
            typ = str(prop)
            desc = ""

After Change


    kws = glyphclass.properties() - set(argspecs)
    for kw in kws:
        // these are not really useful, and should also really be private, just skip them
        if kw in omissions: continue

        descriptor = getattr(glyphclass, kw)
        typ = descriptor.property._sphinx_type()
        if descriptor.__doc__:
            desc = "\n        ".join(textwrap.dedent(descriptor.__doc__).split("\n"))
        else:
            desc = ""
        kwlines.append(_arg_template % (kw, typ, desc, descriptor.class_default(glyphclass)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bokeh/bokeh
Commit Name: f82ba26ddda1bf5ccffa2f40707c673f2ee1892f
Time: 2017-06-20
Author: bryanv@continuum.io
File Name: bokeh/plotting/helpers.py
Class Name:
Method Name: _add_sigfunc_info


Project Name: pantsbuild/pants
Commit Name: e1deb52f98492921c958c6590153ce0b4d33961c
Time: 2015-01-07
Author: john.sirois@gmail.com
File Name: src/python/pants/goal/task_registrar.py
Class Name: TaskRegistrar
Method Name: __init__


Project Name: scipy/scipy
Commit Name: d2435a3d763594a8b124519421c9a8d74db33fca
Time: 2013-10-09
Author: pav@iki.fi
File Name: scipy/optimize/optimize.py
Class Name:
Method Name: show_options