216c241e45e3f2fa472a8ada09d04ce631b724ef,lib/streamlit/delta_generator.py,DeltaGenerator,beta_columns,#DeltaGenerator#Any#,372

Before Change


        

        if isinstance(weights, int):
            if weights <= 0:
                raise StreamlitAPIException("You have to create at least one column!")
            if weights == 1:
                raise StreamlitAPIException(
                    "Instead of creating only one column, use st.beta_container."
                )

After Change


            // NOTE: A negative/zero spec will expand into an empty tuple.
            weights = (1,) * weights

        if len(weights) == 0 or any(weight <= 0 for weight in weights):
            raise weights_exception

        def column_proto(weight):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 216c241e45e3f2fa472a8ada09d04ce631b724ef
Time: 2020-10-01
Author: akrolsmir@gmail.com
File Name: lib/streamlit/delta_generator.py
Class Name: DeltaGenerator
Method Name: beta_columns


Project Name: uber/ludwig
Commit Name: 3e2f276459f976054b5c2ab8c55be994170345da
Time: 2020-08-27
Author: carlo.grisetti@dsgroup.it
File Name: ludwig/utils/defaults.py
Class Name:
Method Name: merge_with_defaults


Project Name: tryolabs/luminoth
Commit Name: fbcbb710c465da13ed6705fb8d904fe2795b246a
Time: 2018-02-08
Author: agustin@tryolabs.com
File Name: luminoth/models/base/truncated_base_network.py
Class Name: TruncatedBaseNetwork
Method Name: get_trainable_vars