cdbb8791ec13d03fd1fcf2580111db677a3ebc29,autokeras/hypermodel/block.py,EmbeddingBlock,set_state,#EmbeddingBlock#Any#,564

Before Change


        return state

    def set_state(self, state):
        super().set_state(state)
        self.max_features = state["max_features"]
        self.pretraining = state["pretraining"]
        self.embedding_dim = state["embedding_dim"]

After Change


    def build(self, hp, inputs=None):
        inputs = nest.flatten(inputs)
        if len(inputs) == 1:
            return inputs

        merge_type = self.merge_type or hp.Choice("merge_type",
                                                  ["add", "concatenate"],
                                                  default="add")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: EmbeddingBlock
Method Name: set_state


Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/ScriptRunner.py
Class Name: ScriptRunner
Method Name: _run_script


Project Name: streamlit/streamlit
Commit Name: 9f1aecdae6c3405f745e2f3e671b3f165aceb742
Time: 2019-08-06
Author: tconkling@gmail.com
File Name: lib/streamlit/ScriptRunner.py
Class Name: ScriptRunner
Method Name: _run_script