beaa111c9a9792a44b015fce23705586b79ceec0,scanpy/plotting/_tools/scatterplots.py,,_get_data_points,#Any#Any#Any#Any#,425
Before Change
n_dims = 3
if components == "all":
components = ["{},{}".format(*((i, i+1) if i % 2 == 1 else (i+1, i)))
for i in range(1, adata.obsm["X_{}".format(basis)].shape[1])]
components_list = []
offset = 0
if basis == "diffmap": offset = 1
After Change
from itertools import combinations
r_value = 3 if projection == "3d" else 2
_components_list = np.arange(adata.obsm["X_{}".format(basis)].shape[1]) + 1
components = [",".join(map(str, x)) for x in combinations(_components_list, r=r_value)]
components_list = []
offset = 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: theislab/scanpy
Commit Name: beaa111c9a9792a44b015fce23705586b79ceec0
Time: 2019-06-04
Author: fidel.ramirez@gmail.com
File Name: scanpy/plotting/_tools/scatterplots.py
Class Name:
Method Name: _get_data_points
Project Name: shenweichen/DeepCTR
Commit Name: adabf33fa59acb036ddda9a57a4fdf023c1dbaca
Time: 2018-12-19
Author: wcshen1994@163.com
File Name: deepctr/layers.py
Class Name: AFMLayer
Method Name: call
Project Name: tensorflow/datasets
Commit Name: 2fc860b576d5973a2d2cee10ed287380a683166f
Time: 2018-11-15
Author: pierrot@google.com
File Name: tensorflow_datasets/testing/dataset_builder_testing.py
Class Name: TestCase
Method Name: test_download_and_prepare_as_dataset