05c103af9480d459ce7d1eb246c059e17e77e5f1,dashboard/agent.py,DashboardAgent,__init__,#DashboardAgent#Any#Any#Any#Any#Any#Any#Any#,27

Before Change


        Initialize the DashboardAgent object.
        self._agent_cls_list = dashboard_utils.get_all_modules(
            dashboard_utils.DashboardAgentModule)
        ip, port = redis_address.split(":")
        // Public attributes are accessible for all agent modules.
        self.redis_address = (ip, int(port))
        self.redis_password = redis_password
        self.temp_dir = temp_dir

After Change


        self.ip = ray.services.get_node_ip_address()
        self.server = aiogrpc.server(options=(("grpc.so_reuseport", 0), ))
        self.grpc_port = self.server.add_insecure_port("[::]:0")
        logger.info("Dashboard agent grpc address: %s:%s", self.ip,
                    self.grpc_port)
        self.aioredis_client = None
        self.aiogrpc_raylet_channel = aiogrpc.insecure_channel("{}:{}".format(
            self.ip, self.node_manager_port))
        self.http_session = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 05c103af9480d459ce7d1eb246c059e17e77e5f1
Time: 2020-08-24
Author: fyrestone@outlook.com
File Name: dashboard/agent.py
Class Name: DashboardAgent
Method Name: __init__


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 8a43360b5683edc8d8e4b9461b01a9d1f8dcd782
Time: 2019-05-21
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: deploy_project_resources


Project Name: ray-project/ray
Commit Name: 739933e5b84291dea54c29fc6acc982a3d42a52f
Time: 2020-08-12
Author: fyrestone@outlook.com
File Name: dashboard/agent.py
Class Name: DashboardAgent
Method Name: __init__