d2c0674541892e2d349e7dc5ff91ad96b201fa77,pandas/core/accessor.py,DirNamesMixin,_dir_additions,#DirNamesMixin#,23

Before Change


        
        Add additional __dir__ for this object.
        
        rv = set()
        for accessor in self._accessors:
            try:
                getattr(self, accessor)
                rv.add(accessor)
            except AttributeError:
                pass
        return rv

    def __dir__(self) -> List[str]:
        

After Change


        
        Add additional __dir__ for this object.
        
        return {accessor for accessor in self._accessors if hasattr(self, accessor)}

    def __dir__(self) -> List[str]:
        
        Provide method name lookup and completion.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pandas-dev/pandas
Commit Name: d2c0674541892e2d349e7dc5ff91ad96b201fa77
Time: 2020-10-28
Author: contribute@tensortable.com
File Name: pandas/core/accessor.py
Class Name: DirNamesMixin
Method Name: _dir_additions


Project Name: OpenMined/PySyft
Commit Name: 0d66931e6da93fda1c07388e6a2ed16d9a129040
Time: 2020-08-29
Author: jason.paumier@gmail.com
File Name: src/syft/core/store/store_memory.py
Class Name: MemoryStore
Method Name: get_objects_of_type


Project Name: inspirehep/magpie
Commit Name: b6dafdaf674e09dad523563909bb510935b5f655
Time: 2016-01-08
Author: jan.stypka@cern.ch
File Name: magpie/evaluation/utils.py
Class Name:
Method Name: remove_unguessable_answers