d746aeb3dd61ed15c1bb2315ee2891ddc805e4e1,umap/umap_.py,UMAP,fit,#UMAP#Any#Any#,1343

Before Change


            if len(X) != len(y):
                raise ValueError(
                    "Length of x = {len_x}, length of y = {len_y}, while it must be equal.".format(
                        len_x=len(X), len_y=len(y)
                    )
                )
            y_ = check_array(y, ensure_2d=False)

After Change


                // )

        if y is not None:
            len_X = len(X) if not scipy.sparse.issparse(X) else X.shape[0]
            if len_X != len(y):
                raise ValueError(
                    "Length of x = {len_x}, length of y = {len_y}, while it must be equal.".format(
                        len_x=len_X, len_y=len(y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: lmcinnes/umap
Commit Name: d746aeb3dd61ed15c1bb2315ee2891ddc805e4e1
Time: 2019-06-19
Author: znwilkins@gmail.com
File Name: umap/umap_.py
Class Name: UMAP
Method Name: fit


Project Name: RaRe-Technologies/gensim
Commit Name: 1524323f6cf1de9ce95c029cbdf264ac516b21d8
Time: 2010-04-11
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/matutils.py
Class Name:
Method Name: unitVec


Project Name: RaRe-Technologies/gensim
Commit Name: 4595a8b03d2735f78575a5206717fe1b92ec5d2a
Time: 2010-04-11
Author: radimrehurek@seznam.cz
File Name: src/gensim/matutils.py
Class Name:
Method Name: unitVec