fe3ba731e7deb1317457a8c2015fd18688b59b5f,ilastik/applets/serverConfiguration/serverConfigGui.py,,_fetch_devices,#Any#,105

Before Change



        try:
            launcher.start()
            client = Client(INeuralNetworkAPI(), conn_conf)
            return client.get_available_devices()
        except Exception as e:
            logger.exception("Failed to fetch devices")
        finally:

After Change


            with grpc.insecure_channel(f"{addr}:{port1}") as chan:
                client = inference_pb2_grpc.InferenceStub(chan)
                resp = client.ListDevices(inference_pb2.Empty())
                return [(d.id, d.id) for d in resp.devices]
        except Exception as e:
            logger.exception("Failed to fetch devices")
        finally:
            try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: fe3ba731e7deb1317457a8c2015fd18688b59b5f
Time: 2020-02-14
Author: mnovikov.work@gmail.com
File Name: ilastik/applets/serverConfiguration/serverConfigGui.py
Class Name:
Method Name: _fetch_devices


Project Name: home-assistant/home-assistant
Commit Name: e95c50c7429d9111188f79e9f20013a93dc1bf31
Time: 2019-01-29
Author: MatteGary@users.noreply.github.com
File Name: homeassistant/components/sensor/transmission.py
Class Name:
Method Name: setup_platform


Project Name: dask/dask-xgboost
Commit Name: 05c71388912d25a2e11b2acacb2d6390b413517f
Time: 2017-10-10
Author: tom.w.augspurger@gmail.com
File Name: dask_xgboost/core.py
Class Name: XGBRegressor
Method Name: fit


Project Name: home-assistant/home-assistant
Commit Name: e95c50c7429d9111188f79e9f20013a93dc1bf31
Time: 2019-01-29
Author: MatteGary@users.noreply.github.com
File Name: homeassistant/components/switch/transmission.py
Class Name:
Method Name: setup_platform