bbc70825c6042af761aa816bdf5be153f8e7597c,loudml/loudml/license.py,License,load,#License#Any#,65
Before Change
with gzip.open(path, "r") as f:
lines = f.readlines()
self.version = int(lines[0])
self.public_key = b64decode(lines[1])
self.certificate = b64decode(lines[2])
self.digest = b64decode(lines[3])
self.data = b64decode(lines[4])
After Change
def load(self, path):
super().load(path)
self.limits = json.loads(self.data.decode("ascii"))
self.serial_num = self.limits.get("serial_num", 0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: regel/loudml
Commit Name: bbc70825c6042af761aa816bdf5be153f8e7597c
Time: 2018-08-27
Author: christophe@redmintnetwork.fr
File Name: loudml/loudml/license.py
Class Name: License
Method Name: load
Project Name: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightDimmer
Method Name: update
Project Name: openml/openml-python
Commit Name: f74b73a950062ddb210b97d7689a674bccdbaab0
Time: 2019-10-18
Author: p.gijsbers@tue.nl
File Name: openml/flows/flow.py
Class Name: OpenMLFlow
Method Name: publish