baf110d82f60c51a5680e728cd3c5c6d3536117d,gpflow/params.py,ParamList,__init__,#ParamList#Any#Any#,494

Before Change


            raise ValueError("Not acceptable argument type for list_of_params.")
        for i, item in enumerate(list_of_params):
            if not isinstance(item, (Param, Parameterized)):
                raise ValueError("Not acceptable item type: {0}.".format(type(item)))
            item.set_parent(self)
            item.set_name("{index}/{name}".format(index=i, name=item.name))
        self._list = list_of_params

After Change


                try:
                    item = Param(_valid_input(item))
                except ValueError:
                    raise ValueError("A list item must be either parameter, "
                                     "tensorflow variable, an array or a scalar.")
            item.set_parent(self)
            item.set_name("{index}/{name}".format(index=i, name=item.name))
        self._list = list_of_params
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GPflow/GPflow
Commit Name: baf110d82f60c51a5680e728cd3c5c6d3536117d
Time: 2017-09-24
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: __init__


Project Name: GPflow/GPflow
Commit Name: eb0c98c7b15c839a42d929d884c2986d734a9ba5
Time: 2017-09-25
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: append


Project Name: ray-project/ray
Commit Name: 1f54acd27488f089f3211c08aef5d9927183d1c6
Time: 2020-08-23
Author: rkooo567@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: kill