57591a23e73d3b2ca8132589e68c8a480f1686f5,baseline/tf/lm/model.py,LanguageModelBase,load,#Any#Any#,225

Before Change


            for key, class_name in embeddings_dict.items():
                md = read_json("{}-{}-md.json".format(basename, key))
                embed_args = dict({"vsz": md["vsz"], "dsz": md["dsz"]})
                Constructor = eval(class_name)
                embeddings[key] = Constructor(key, **embed_args)

            model = cls.create(embeddings, **_state)
            model._state = _state

After Change



            with _state["sess"].graph.as_default():
                embeddings = reload_embeddings(embeddings_info, basename)
                for k in embeddings_info:
                    if k in kwargs:
                        _state[k] = kwargs[k]

                _state["model_type"] = kwargs.get("model_type", "default")
                model = cls.create(embeddings, **_state)
                model._state = _state
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dpressel/mead-baseline
Commit Name: 57591a23e73d3b2ca8132589e68c8a480f1686f5
Time: 2020-04-28
Author: dpressel@gmail.com
File Name: baseline/tf/lm/model.py
Class Name: LanguageModelBase
Method Name: load


Project Name: rusty1s/pytorch_geometric
Commit Name: e7512f6bd434ef89296298a8bd16044917d7ce68
Time: 2020-09-23
Author: matthias.fey@tu-dortmund.de
File Name: examples/gcn2.py
Class Name:
Method Name: test


Project Name: idaholab/raven
Commit Name: 078b2512f26bfb20aa3ecbb6a065008bf7d45753
Time: 2020-06-30
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/fitness/fitness.py
Class Name:
Method Name: invLinear