ff6d412ad9251284645bc8cbd5fb786b107e0782,dashboard/datacenter.py,DataOrganizer,get_node_actors,#Any#Any#,55

Before Change


    @classmethod
    async def get_node_actors(cls, node_id):
        node_stats = DataSource.node_stats.get(node_id, {})
        node_worker_id_set = set()
        for worker_stats in node_stats.get("workersStats", []):
            node_worker_id_set.add(worker_stats["workerId"])
        node_actors = {}
        for actor_id, actor_table_data in DataSource.actors.items():
            if actor_table_data["address"]["workerId"] in node_worker_id_set:
                node_actors[actor_id] = actor_table_data

After Change


                worker_stats = worker_id_to_info[actor_table_data["address"][
                    "workerId"]]

                actor_constructor = worker_stats.get("coreWorkerStats", {})\
                    .get("actorTitle", "Unknown actor constructor")

                actor_table_data["actorConstructor"] = actor_constructor

                actor_class = actor_classname_from_task_spec(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: ray-project/ray
Commit Name: ff6d412ad9251284645bc8cbd5fb786b107e0782
Time: 2020-10-02
Author: maxfitton@anyscale.com
File Name: dashboard/datacenter.py
Class Name: DataOrganizer
Method Name: get_node_actors


Project Name: CyberReboot/NetworkML
Commit Name: 13f71c5eec807cbd8a368686fa7acd8d78be2303
Time: 2020-03-19
Author: josh@vandervecken.com
File Name: networkml/featurizers/funcs/host.py
Class Name: Host
Method Name: _row_keys


Project Name: quiltdata/quilt
Commit Name: 4f12e47e8a03a62e088acb555b485564be46331c
Time: 2017-06-02
Author: dima@gmail.com
File Name: scripts/dedupe_user_hashes.py
Class Name:
Method Name: main


Project Name: onnx/onnx-coreml
Commit Name: 7f7a30cae66e7d65917ceea966225292f582d809
Time: 2019-10-04
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: DeadCodeElimination
Method Name: __call__


Project Name: ray-project/ray
Commit Name: 1e39c403709b96d0bfa9c139e927441acc232426
Time: 2020-09-27
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_capture_child_tasks