fa6e93f0c7e78a3f83bf48ed12f8902dba90c5a0,homeassistant/components/sensor/glances.py,,setup_platform,#Any#Any#Any#Any#,58
Before Change
try:
response = requests.get(url, timeout=10)
if not response.ok:
_LOGGER.warning("Response status is "%s"", response.status_code)
except requests.exceptions.ConnectionError:
_LOGGER.warning("No route to resource/endpoint: %s", url)
rest = GlancesData(url)
After Change
var_conf = config.get(CONF_RESOURCES)
rest = GlancesData(url)
rest.update()
dev = []
for resource in var_conf:
dev.append(GlancesSensor(rest, name, resource))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: fa6e93f0c7e78a3f83bf48ed12f8902dba90c5a0
Time: 2017-06-27
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/glances.py
Class Name:
Method Name: setup_platform
Project Name: ray-project/ray
Commit Name: 52c94b7ee970da69721ca64f291e38556310482e
Time: 2021-02-02
Author: sven@anyscale.io
File Name: rllib/agents/sac/sac_tf_policy.py
Class Name:
Method Name: build_sac_model
Project Name: dmlc/gluon-nlp
Commit Name: f4275c0b80197e0f1bbd3a2a1a31cf07d85013b1
Time: 2019-01-09
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: