ed9fb224f3aa4336d066cbbe4b9abf26b24f8535,python/edl/utils/watcher.py,Watcher,_watcher,#Watcher#,58

Before Change


            servers = self._etcd.get_service(ETCD_POD_RANK)
            ranks = {}
            for s in servers:
                ranks[int(s.server)] = s.info
            //logger.info("ranks:{}".format(ranks))

            new_cluster = Cluster()

After Change



            with self._lock:
                // update the cluster info.
                self._cluster = copy.copy(self._new_cluster)

            time.sleep(3)

    @property
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: PaddlePaddle/edl
Commit Name: ed9fb224f3aa4336d066cbbe4b9abf26b24f8535
Time: 2020-09-02
Author: weibao.gong@gmail.com
File Name: python/edl/utils/watcher.py
Class Name: Watcher
Method Name: _watcher


Project Name: autorope/donkeycar
Commit Name: c1eb9e7218672066fa33c264ba63650b9c748eba
Time: 2018-07-11
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/lidar.py
Class Name: RPLidar
Method Name: update


Project Name: techfort/pycv
Commit Name: c8ba6700d85c3be085e4c9b5e68251030e497b2c
Time: 2015-06-28
Author: joe.minichino@gmail.com
File Name: chapter9/digits_image_process.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: 3605a75eb927fb3fe9e52167f4f194ce5f9e1016
Time: 2020-02-28
Author: ahartikainen@users.noreply.github.com
File Name: arviz/plots/backends/bokeh/forestplot.py
Class Name:
Method Name: plot_forest