05ad4c74996133f95c0d5100784ba84a3b8e8093,dashboard/datacenter.py,DataOrganizer,get_all_actors,#Any#,186

Before Change


    @classmethod
    async def get_all_actors(cls):
        all_actors = {}
        for node_id in DataSource.nodes.keys():
            all_actors.update(await cls.get_node_actors(node_id))
        return all_actors

After Change



    @classmethod
    async def get_all_actors(cls):
        return {
            actor_id: await cls._get_actor(actor)
            for actor_id, actor in DataSource.actors.items()
        }

    @staticmethod
    async def _get_actor(actor):
        actor = dict(actor)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 05ad4c74996133f95c0d5100784ba84a3b8e8093
Time: 2020-10-27
Author: fyrestone@outlook.com
File Name: dashboard/datacenter.py
Class Name: DataOrganizer
Method Name: get_all_actors


Project Name: dmlc/gluon-nlp
Commit Name: 8859c20eb97e803f66487c74615350b955efab4a
Time: 2018-06-30
Author: leonard@lausen.nl
File Name: gluonnlp/embedding/evaluation.py
Class Name:
Method Name: list_evaluation_functions


Project Name: NervanaSystems/coach
Commit Name: 49dea39d34a562a46daa562051a66846326f66f4
Time: 2018-11-07
Author: gal.leibovich@intel.com
File Name: rl_coach/core_types.py
Class Name: Batch
Method Name: info