05ad4c74996133f95c0d5100784ba84a3b8e8093,dashboard/datacenter.py,DataOrganizer,get_all_node_summary,#Any#,167

Before Change



    @classmethod
    async def get_all_node_summary(cls):
        all_nodes_summary = []
        for node_id in DataSource.nodes.keys():
            node_info = await cls.get_node_info(node_id)
            node_info.pop("workers", None)
            node_info.pop("actors", None)
            node_info["raylet"].pop("workersStats", None)
            node_info["raylet"].pop("viewData", None)
            all_nodes_summary.append(node_info)
        return all_nodes_summary

    @classmethod
    async def get_all_node_details(cls):
        node_details = []

After Change



    @classmethod
    async def get_all_node_summary(cls):
        return [
            await DataOrganizer.get_node_summary(node_id)
            for node_id in DataSource.nodes.keys()
        ]

    @classmethod
    async def get_all_node_details(cls):
        return [
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 10

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_node_summary


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_node_details


Project Name: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: subtract_params


Project Name: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: get_neutral


Project Name: hanxiao/bert-as-service
Commit Name: 72decbd377777c5448e2794a7bb6aa9e51aa93cc
Time: 2018-11-09
Author: hanhxiao@tencent.com
File Name: tokenization.py
Class Name:
Method Name: convert_tokens_to_ids


Project Name: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: add_params