dbd720d48c8e36e62953feb269abb9d6ef1173c8,chainercv/utils/link.py,,prepare_link_initialization,#Any#Any#Any#,13

Before Change


        model = models[pretrained_model]

        for key, value in six.iteritems(model.get("default", {})):
            if key not in param or param[key] is None:
                param[key] = param

        for key, value in six.iteritems(model["param"]):

After Change


        model = models[pretrained_model]

        for key, value in six.iteritems(model.get("default", {})):
            if param.get(key, None) is None:
                param[key] = value

        for key, value in six.iteritems(model["param"]):
            if value is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: chainer/chainercv
Commit Name: dbd720d48c8e36e62953feb269abb9d6ef1173c8
Time: 2018-05-01
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/link.py
Class Name:
Method Name: prepare_link_initialization


Project Name: chainer/chainercv
Commit Name: dbd720d48c8e36e62953feb269abb9d6ef1173c8
Time: 2018-05-01
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/link.py
Class Name:
Method Name: prepare_link_initialization


Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/watcher/EventBasedFileWatcher.py
Class Name: _FolderEventHandler
Method Name: handle_file_change_event


Project Name: streamlit/streamlit
Commit Name: 0548aad44b5138ea0bbc96ef8964b986bebcb589
Time: 2019-06-18
Author: tconkling@gmail.com
File Name: lib/streamlit/watcher/EventBasedFileWatcher.py
Class Name: _FolderEventHandler
Method Name: handle_file_change_event