bbc70825c6042af761aa816bdf5be153f8e7597c,loudml/loudml/license.py,License,load,#License#Any#,65
Before Change
Path to file
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])
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: 4
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: biotite-dev/biotite
Commit Name: a768c01c1b71b7ea5163af0e40829df2da0489ea
Time: 2017-08-11
Author: patrick.kunzm@gmail.com
File Name: src/biopython/structure/io/pdbx/file.py
Class Name: PDBxFile
Method Name: read
Project Name: comic/grand-challenge.org
Commit Name: bbeb44e7b5ace198a2b5443b936dfc671e2dd9ef
Time: 2019-03-28
Author: code@jmsmkn.com
File Name: app/grandchallenge/container_exec/backends/docker.py
Class Name: Executor
Method Name: _pull_images
Project Name: recipy/recipy
Commit Name: f2a2dab9f3e604a7f4a9d7bb816d4bd0bd182136
Time: 2016-09-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/test_recipy.py
Class Name: TestRecipy
Method Name: setup_class