756bdd8eb891ee09af6340b7fef4bd883d9fcefb,distributed/dashboard/worker_html.py,PrometheusHandler,__init__,#PrometheusHandler#,27

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, prometheus_client)
        )

        PrometheusHandler._initialized = True

    def get(self):
        import prometheus_client
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: 71cf78652d3b5ad2cf26cec9de1d82ce5926765a
Time: 2020-07-28
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/distributed/dist_graph.py
Class Name: DistGraph
Method Name: __init__


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__