d1cc461c74c8c4b1e937583ca9adc1400c69a3f9,loudml/loudml/license.py,License,load,#License#Any#,16

Before 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)

    def has_expired(self):
        
        Check whether system clock is beyond license expiration date.

After 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.payload_raw = b64decode(lines[4])
        self.payload = json.loads(self.payload_raw.decode("ascii"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: regel/loudml
Commit Name: d1cc461c74c8c4b1e937583ca9adc1400c69a3f9
Time: 2018-08-27
Author: christophe@redmintnetwork.fr
File Name: loudml/loudml/license.py
Class Name: License
Method Name: load


Project Name: Qiskit/qiskit-aqua
Commit Name: a194557ba754f9b14d473ff9e39a2bc2449e58c1
Time: 2018-07-06
Author: chenrich@us.ibm.com
File Name: qiskit_acqua/ising/maxcut.py
Class Name:
Method Name: sample_most_likely


Project Name: Qiskit/qiskit-aqua
Commit Name: d892fb853c4c296539034d2dbaf304c0d06a357d
Time: 2018-07-06
Author: 34400304+liupibm@users.noreply.github.com
File Name: qiskit_acqua/ising/graphpartition.py
Class Name:
Method Name: sample_most_likely