4c78e4d91abe9e6a37723bc2a4cff7a203f64013,python/baseline/tf/embeddings.py,PositionalLookupTableEmbeddings,create,#Any#Any#Any#,339

Before Change



    @classmethod
    def create(cls, model, name, **kwargs):
        vsz = model.vsz
        dsz = model.dsz
        weights = model.weights
        finetune = kwargs.get("finetune", True)
        scope = kwargs.get("scope", "{}/LUT".format(name))
        unif = kwargs.get("unif", 0.1)

        return cls(name, vsz, dsz, scope, finetune, weights, unif)

After Change



    @classmethod
    def create(cls, model, name, **kwargs):
        return cls(name, vsz=model.vsz, dsz=model.dsz, weights=model.weights, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: PositionalLookupTableEmbeddings
Method Name: create


Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: PositionalLookupTableEmbeddings
Method Name: create


Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: LookupTableEmbeddings
Method Name: create


Project Name: studioml/studio
Commit Name: 9ff097f08b073a5c7b98299276da2a82b5ae6a1d
Time: 2020-12-15
Author: andrei.denissov@cognizant.com
File Name: studio/s3_provider.py
Class Name: S3Provider
Method Name: _get


Project Name: dpressel/mead-baseline
Commit Name: 7a4f4148317f7274c0c88095c037e93f95b1d00d
Time: 2018-09-25
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: LSTMModel
Method Name: make_input