62edb932fd14b3039ac996de4e89055003af06a0,pygsp/graphs/airfoil.py,Airfoil,__init__,#Airfoil#,21

Before Change


        j_inds = airfoil.j_inds

        A = sparse.coo_matrix((np.ones((12289)),
                              (np.reshape(i_inds - 1, (12289)),
                               np.reshape(j_inds - 1, (12289)))),
                              shape=(4253, 4253))
        W = (A + A.T) / 2.

After Change



        plotting = {"vertex_size": 30,
                    "limits": np.array([-1e-4, 1.01*data["x"].max(),
                                        -1e-4, 1.01*data["y"].max()])}

        super(Airfoil, self).__init__(W=W, coords=coords, plotting=plotting,
                                      gtype="Airfoil", **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: epfl-lts2/pygsp
Commit Name: 62edb932fd14b3039ac996de4e89055003af06a0
Time: 2017-08-16
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/airfoil.py
Class Name: Airfoil
Method Name: __init__


Project Name: rockyzhengwu/FoolNLTK
Commit Name: f0bccfe5ba2887bf99b458310326c80ea7f1dbda
Time: 2018-01-15
Author: zhengwu314@163.com
File Name: fool/model.py
Class Name: Model
Method Name: predict


Project Name: nipy/dipy
Commit Name: ba8bfb474b108565ac8f77544d0aeb8b1a9a0fdc
Time: 2011-02-09
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dandelion.py
Class Name: SphericalDandelion
Method Name: spherical_diffusivity