1e05cf469de2a71529d5f6ce922a37e0a386c987,batchflow/models/tf/encoder_decoder.py,EncoderDecoder,body,#Any#Any#Any#,137

Before Change


        kwargs = cls.fill_params("body", **kwargs)
        encoder = kwargs.pop("encoder")
        embeddings = kwargs.get("embeddings")
        embeddings_common = embeddings.pop("common")
        embeddings_order = embeddings.pop("order") or [name for name in kwargs
                                                       if "embedding" in name]
        decoder = kwargs.pop("decoder")

After Change



            for i, embedding in enumerate(embeddings):
                embedding_args = {**kwargs, **embedding}
                x = cls.embedding(x, name="embedding"+str(i), **embedding_args)

            encoder_outputs.append(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: analysiscenter/batchflow
Commit Name: 1e05cf469de2a71529d5f6ce922a37e0a386c987
Time: 2019-07-12
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: body


Project Name: EducationalTestingService/skll
Commit Name: 9915d303aa025438a42a0d5f60f0ef154b45f77b
Time: 2019-03-11
Author: jbiggs@ets.org
File Name: skll/data/writers.py
Class Name: TSVWriter
Method Name: __init__


Project Name: MolSSI/QCEngine
Commit Name: e5fa5b3d6c77618aae53b450d549531942cadffa
Time: 2021-02-10
Author: max.scheurer@me.com
File Name: qcengine/programs/adcc.py
Class Name: AdccHarness
Method Name: compute


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: d9651881be87a8442e7c2763731bcd2a60dcdb64
Time: 2017-06-22
Author: elibixby@google.com
File Name: census/estimator/trainer/task.py
Class Name:
Method Name:


Project Name: prody/ProDy
Commit Name: c5b11b7668df61c3a5c3f927625430c56413d5fb
Time: 2012-11-14
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: openFile