845db182c394d74d2d3a588a1fa15a18b91e7efc,thinc/model.py,Model,from_dict,#Model#Any#,535

Before Change


            for attr, value in msg["attrs"][i].items():
                default_value = node.get_attr(attr) if node.has_attr(attr) else None
                loaded_value = deserialize_attr(default_value, value, attr, node)
                node.set_attr(attr, loaded_value)
            for param_name, value in msg["params"][i].items():
                node.set_param(param_name, value)
            for i, shim_bytes in enumerate(msg["shims"][i]):
                node.shims[i].from_bytes(shim_bytes)

After Change


                else:
                    node.set_ref(ref, nodes[ref_index])
            for attr, value in msg["attrs"][i].items():
                default_value = node.attrs.get(attr)
                loaded_value = deserialize_attr(default_value, value, attr, node)
                node.attrs[attr] = loaded_value
            for param_name, value in msg["params"][i].items():
                node.set_param(param_name, value)
            for i, shim_bytes in enumerate(msg["shims"][i]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: explosion/thinc
Commit Name: 845db182c394d74d2d3a588a1fa15a18b91e7efc
Time: 2020-01-24
Author: ines@ines.io
File Name: thinc/model.py
Class Name: Model
Method Name: from_dict


Project Name: explosion/thinc
Commit Name: 845db182c394d74d2d3a588a1fa15a18b91e7efc
Time: 2020-01-24
Author: ines@ines.io
File Name: thinc/model.py
Class Name: Model
Method Name: from_dict


Project Name: explosion/thinc
Commit Name: 845db182c394d74d2d3a588a1fa15a18b91e7efc
Time: 2020-01-24
Author: ines@ines.io
File Name: thinc/model.py
Class Name:
Method Name: set_dropout_rate


Project Name: explosion/thinc
Commit Name: 845db182c394d74d2d3a588a1fa15a18b91e7efc
Time: 2020-01-24
Author: ines@ines.io
File Name: thinc/model.py
Class Name:
Method Name: change_attr_values