756bdd8eb891ee09af6340b7fef4bd883d9fcefb,distributed/dashboard/scheduler_html.py,PrometheusHandler,__init__,#PrometheusHandler#,198
Before Change
super(PrometheusHandler, self).__init__(*args, **kwargs)
self._init()
def _init(self):
if PrometheusHandler._initialized:
return
After Change
super(PrometheusHandler, self).__init__(*args, **kwargs)
if PrometheusHandler._initialized:
return
prometheus_client.REGISTRY.register(_PrometheusCollector(self.server))
PrometheusHandler._initialized = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dask/distributed
Commit Name: 756bdd8eb891ee09af6340b7fef4bd883d9fcefb
Time: 2019-06-07
Author: mrocklin@gmail.com
File Name: distributed/dashboard/scheduler_html.py
Class Name: PrometheusHandler
Method Name: __init__
Project Name: dask/distributed
Commit Name: 756bdd8eb891ee09af6340b7fef4bd883d9fcefb
Time: 2019-06-07
Author: mrocklin@gmail.com
File Name: distributed/dashboard/worker_html.py
Class Name: PrometheusHandler
Method Name: __init__
Project Name: dmlc/dgl
Commit Name: 01a4cc5b7b10da8a8bec669280f70188c1f0766c
Time: 2019-06-01
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: from_scipy_sparse_matrix