99d24ca854659043651cc1ca4e83a3621deffd2d,nilearn/plotting/img_plotting.py,,_load_anat,#Any#Any#Any#,263

Before Change


                        data[:, :border_size, :].ravel(),
                        data[:, -border_size:, :].ravel(),
                        data[:, :, :border_size].ravel(),
                        data[:, :, -border_size:].ravel(),
                    ])
                background = np.median(border_data)
                if background > .5 * (vmin + vmax):
                    black_bg = False
                else:
                    black_bg = True

After Change


        if black_bg == "auto":
            // Guess if the background is rather black or light based on
            // the values of voxels near the border
            background = np.median(get_border_data(data, 2))
            if background > .5 * (vmin + vmax):
                black_bg = False
            else:
                black_bg = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: 99d24ca854659043651cc1ca4e83a3621deffd2d
Time: 2015-05-11
Author: abraham.alexandre@gmail.com
File Name: nilearn/plotting/img_plotting.py
Class Name:
Method Name: _load_anat


Project Name: pavlin-policar/openTSNE
Commit Name: 46379cefade313fee9fa99c8a6ebb62668918f82
Time: 2018-10-28
Author: pavlin.g.p@gmail.com
File Name: fastTSNE/tsne.py
Class Name: TSNEEmbedding
Method Name: generate_partial_coordinates


Project Name: etal/cnvkit
Commit Name: e4d2308740b9e99a0b7313a31072684cb224d2b4
Time: 2016-08-24
Author: eric.talevich@gmail.com
File Name: cnvlib/smoothing.py
Class Name:
Method Name: rolling_median