6637eb7ac808851f9902db6ad817e56ca44d0690,GPy/kern/_src/kern.py,Kern,add,#Kern#Any#Any#,133

Before Change


        else: kernels.append(self)
        if isinstance(other, Add): kernels.extend(other._parameters_)
        else: kernels.append(other)
        return Add(kernels, name=name)

    def __mul__(self, other):
         Here we overload the "*" operator. See self.prod for more information
        return self.prod(other)

After Change


        
        assert isinstance(other, Kern), "only kernels can be added to kernels..."
        from add import Add
        return Add([self, other], name=name)

    def __mul__(self, other):
         Here we overload the "*" operator. See self.prod for more information
        return self.prod(other)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SheffieldML/GPy
Commit Name: 6637eb7ac808851f9902db6ad817e56ca44d0690
Time: 2014-03-18
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/kern.py
Class Name: Kern
Method Name: add


Project Name: SheffieldML/GPy
Commit Name: 47e4026141b0712777eda3713b150f43d2756c11
Time: 2014-02-28
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/kern.py
Class Name: Kern
Method Name: add


Project Name: GPflow/GPflow
Commit Name: 75b6ddc28f88a22c7508f3bdc6e929e8203c8922
Time: 2016-02-25
Author: james.hensman@gmail.com
File Name: GPflow/kernels.py
Class Name: Kern
Method Name: __add__