f461e2b6cd7299691847fdfc1090f34a77862c02,sksurv/functions.py,StepFunction,__call__,#StepFunction#Any#,46

Before Change


            raise ValueError(
                "x must be within [%f; %f], but was %f" % (self.x[0], self.x[-1], x))
        i = numpy.searchsorted(self.x, x, side="left")
        if self.x[i] != x:
            i -= 1
        return self.a * self.y[i] + self.b

    def __repr__(self):
        return "StepFunction(x=%r, y=%r)" % (self.x, self.y)

After Change


        y : float|array-like, shape=(n_values,)
            Values of step function at `x`.
        
        x = numpy.atleast_1d(x)
        if not numpy.isfinite(x).all():
            raise ValueError("x must be finite")
        if numpy.min(x) < self.x[0] or numpy.max(x) > self.x[-1]:
            raise ValueError(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: sebp/scikit-survival
Commit Name: f461e2b6cd7299691847fdfc1090f34a77862c02
Time: 2020-06-27
Author: sebp@k-d-w.org
File Name: sksurv/functions.py
Class Name: StepFunction
Method Name: __call__


Project Name: matplotlib/matplotlib
Commit Name: 4d57690bbf478b91c34dd7aa58f75d4a7def5782
Time: 2018-02-10
Author: story645@gmail.com
File Name: lib/matplotlib/category.py
Class Name: UnitData
Method Name: update


Project Name: uqfoundation/mystic
Commit Name: 19ff37bfddbf24c85817e5d4d5cc468f0dc25691
Time: 2018-06-07
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/svr.py
Class Name:
Method Name: _euclidean_distance