636ca9b5b655136fa12332654d73bc22c76108f6,interim_vision_patch.py,,,#,4
Before Change
dummy_file_name = os.path.join(os.path.dirname(file_name), "mnist_dummy.py")
with open(file_name, "r") as fr:
firstline = fr.readline()
if firstline != "from six.moves import urllib\n":
with open(dummy_file_name, "w") as fw:
fw.writelines(["from six.moves import urllib\n",
"opener = urllib.request.build_opener()\n",
After Change
file_name = mnist.__file__
dummy_file_name = os.path.join(os.path.dirname(file_name), "mnist_dummy.py")
with open(file_name, "r") as fr, open(dummy_file_name, "w") as fw:
origin_text = fr.read()
mnist_head = origin_text.find("class MNIST(")
reasource_head = origin_text.find("resources = [", mnist_head)
reasource_tail = origin_text.find("]\n", reasource_head)
top = origin_text[:reasource_head]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: Microsoft/nni
Commit Name: 636ca9b5b655136fa12332654d73bc22c76108f6
Time: 2021-03-19
Author: 33053116+J-shang@users.noreply.github.com
File Name: interim_vision_patch.py
Class Name:
Method Name:
Project Name: snipsco/snips-nlu
Commit Name: fe26bca9c47ce1e609f7bcdf19fc2715c408e2e8
Time: 2018-06-19
Author: adrien.ball@snips.net
File Name: setup.py
Class Name:
Method Name:
Project Name: snipsco/snips-nlu
Commit Name: b605a4b84ca3f5e17cf106fe025f8a688ab8cc65
Time: 2018-06-21
Author: adrien.ball@snips.net
File Name: docs/source/conf.py
Class Name:
Method Name:
Project Name: horovod/horovod
Commit Name: c6ed366dda201c889c46839fddcbc81214afd025
Time: 2019-08-14
Author: taddair@uber.com
File Name: horovod/run/common/util/safe_shell_exec.py
Class Name:
Method Name: forward_stream