533026294dfe9f0f54b87b348d819d5c037aa619,pyemma/util/annotators.py,,fix_docs,#Any#,34

Before Change



def fix_docs(cls):
     copies docstrings of derived attributes (methods, properties, attrs) from parent classes.
    public_undocumented_members = {name: func for name, func in vars(cls).items()
                                   if not name.startswith("_") and not func.__doc__}

    for name, func in public_undocumented_members.items():

After Change


                                        fdel=func.fdel, doc=parfunc.__doc__)
                    setattr(cls, name, new_prop)
                else:
                    if hasattr(func, "__func__"):  // handle instancemethods
                        func.__func__.__doc__ = parfunc.__doc__
                    else:
                        func.__doc__ = parfunc.__doc__
                break
    return cls

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 533026294dfe9f0f54b87b348d819d5c037aa619
Time: 2017-02-16
Author: m.scherer@fu-berlin.de
File Name: pyemma/util/annotators.py
Class Name:
Method Name: fix_docs


Project Name: vatlab/SoS
Commit Name: a8a37622f0ef987ca83c9b401700d0fcbece9b70
Time: 2016-12-12
Author: ben.bog@gmail.com
File Name: sos/converter.py
Class Name:
Method Name: script_to_html


Project Name: pantsbuild/pants
Commit Name: 6376bc98b423073f22112e7307852ff472d4b165
Time: 2015-07-10
Author: benjyw@gmail.com
File Name: src/python/pants/option/parser.py
Class Name: Parser
Method Name: parse_args


Project Name: openai/baselines
Commit Name: bb403781182c6e31d3bf5de16f42b0cb0d8421f7
Time: 2017-10-25
Author: joschu@openai.com
File Name: baselines/ddpg/main.py
Class Name:
Method Name: parse_args