f9cbef969781aa987b8bbe374442420f3d810eab,pwnagotchi/plugins/default/auto-update.py,,install,#,62

Before Change


        logging.info("[update] verifying %s for %s ..." % (checksum, source_path))

        with open(checksum, "rt") as fp:
            expected = fp.read().strip().lower()

        real = subprocess.getoutput("sha256sum "%s"" % source_path).split(" ")[0].strip().lower()

After Change


        logging.info("[update] verifying %s for %s ..." % (checksum, source_path))

        with open(checksum, "rt") as fp:
            expected = fp.read().split("=")[1].strip().lower()

        real = subprocess.getoutput("sha256sum "%s"" % source_path).split(" ")[0].strip().lower()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: evilsocket/pwnagotchi
Commit Name: f9cbef969781aa987b8bbe374442420f3d810eab
Time: 2019-10-20
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/auto-update.py
Class Name:
Method Name: install


Project Name: d2l-ai/d2l-zh
Commit Name: 8691f9705f0a7a033a52a1093d2d0f94d012c0ac
Time: 2018-10-14
Author: 35591503+XieGuochao@users.noreply.github.com
File Name: gluonbook/utils.py
Class Name:
Method Name: read_imdb


Project Name: chainer/chainercv
Commit Name: c692164df3d7b1c0a0b0d8a6f8213b68c60797b7
Time: 2019-03-06
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/image/read_image.py
Class Name:
Method Name: _read_image_cv2