30c22921d95bb66b6400c52fb19d640cbd0ee3e9,python/ray/serve/router.py,Router,_update_traffic_policies,#Router#Any#,192

Before Change


                traffic_policy)
            if endpoint in self._pending_endpoints:
                event = self._pending_endpoints.pop(endpoint)
                event.set()

    async def _update_replica_handles(self, replica_handles):
        for backend_tag, replica_handles in replica_handles.items():
            self.backend_replicas[backend_tag].update_worker_replicas(

After Change


                future.set_result(_PendingEndpointFound.ADDED)

        for endpoint, traffic_policy in removed.items():
            del self.endpoint_policies[endpoint]
            if endpoint in self._pending_endpoints:
                future = self._pending_endpoints.pop(endpoint)
                future.set_result(_PendingEndpointFound.REMOVED)

    async def _update_replica_handles(self, replica_handles):
        added, removed, updated = compute_dict_delta(self.backend_replicas,
                                                     replica_handles)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: ray-project/ray
Commit Name: 30c22921d95bb66b6400c52fb19d640cbd0ee3e9
Time: 2020-12-28
Author: simon.mo@hey.com
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: _update_traffic_policies


Project Name: ContextLab/hypertools
Commit Name: 529c4bc269f6c3a265d49b97393cbc6ecbcf5f94
Time: 2016-12-22
Author: andrew.heusser@gmail.com
File Name: python/hypertools/plot/plot.py
Class Name:
Method Name: plot


Project Name: ContextLab/hypertools
Commit Name: 7c2673280add4356814a56e5a4253bd959630e95
Time: 2016-12-22
Author: andrew.heusser@gmail.com
File Name: python/hypertools/plot/plot.py
Class Name:
Method Name: plot