3687d15312590be127b43b43a651548df4f9ce0d,lib/streamlit/widgets.py,Widgets,get_widget_value,#Widgets#Any#,12

Before Change


            been set.

        
        return self._state.get(id)

    def set_state(self, state):
        Sets the state dictionary for all widgets

After Change


            been set.

        
        wstate = self._state.get(id, None)
        if wstate is None:
            return None

        value_type = wstate.WhichOneof("value")
        if value_type is None:
            return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: streamlit/streamlit
Commit Name: 3687d15312590be127b43b43a651548df4f9ce0d
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/widgets.py
Class Name: Widgets
Method Name: get_widget_value


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 8460dd1a57bb7c0390eaeac5ee0dd65ccab85594
Time: 2018-09-24
Author: huyenchip@alumni.stanford.edu
File Name: open_seq2seq/encoders/lm_encoders.py
Class Name: LMEncoder
Method Name: __init__


Project Name: streamlit/streamlit
Commit Name: 3687d15312590be127b43b43a651548df4f9ce0d
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/widgets.py
Class Name: Widgets
Method Name: get_widget_value


Project Name: tensorpack/tensorpack
Commit Name: adc9409fc29d36bf952a9562805797a0d4d754cd
Time: 2019-09-07
Author: ppwwyyxx@users.noreply.github.com
File Name: tensorpack/utils/serialize.py
Class Name:
Method Name: