6f868707240cc2aa84afaf0d80170f3e2cc1d420,chainer_chemistry/link_hooks/variable_monitor_link_hook.py,VariableMonitorLinkHook,add_process,#VariableMonitorLinkHook#Any#Any#,41
Before Change
def add_process(self, key, fn):
assert isinstance(key, str)
assert callable(fn)
// self.process.update({key: fn})
self.process_fns[key] = fn
def delete_process(self, key):
After Change
def add_process(self, key, fn):
if not isinstance(key, str):
raise TypeError("key must be str, actual {}".format(type(key)))
if not callable(fn):
raise TypeError("fn must be callable")
self.process_fns[key] = fn
def delete_process(self, key):
del self.process_fns[key]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: pfnet-research/chainer-chemistry
Commit Name: 6f868707240cc2aa84afaf0d80170f3e2cc1d420
Time: 2018-12-07
Author: acc1ssnn9terias@gmail.com
File Name: chainer_chemistry/link_hooks/variable_monitor_link_hook.py
Class Name: VariableMonitorLinkHook
Method Name: add_process
Project Name: tensorflow/cleverhans
Commit Name: 0b22b1c523cd06efd93d3999c5118986819ac98e
Time: 2018-11-06
Author: goodfellow@google.com
File Name: cleverhans/loss.py
Class Name: Loss
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 0e9c3e334c3377287792b6e99f210eafa2f8b4b5
Time: 2017-02-28
Author: w.j.engels@gmail.com
File Name: pymc3/gp/cov.py
Class Name: WarpedInput
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 0e9c3e334c3377287792b6e99f210eafa2f8b4b5
Time: 2017-02-28
Author: w.j.engels@gmail.com
File Name: pymc3/gp/cov.py
Class Name: Gibbs
Method Name: __init__