b7efa1f037f8adc94a28fc421dd7934b63b3043e,geomstats/_backend/numpy/__init__.py,,assignment,#Any#Any#Any#Any#,121
Before Change
if not isinstance(index, tuple):
index = (index,)
if len(index) < len(shape(x)):
for n_axis in range(shape(x)[axis]):
extended_index = index[:axis] + (n_axis,) + index[axis:]
x_new[extended_index] = values[nb_index]
else:
x_new[index] = values[nb_index]
return x_new
After Change
return x_new
zip_indices = _is_iterable(indices) and _is_iterable(indices[0])
if zip_indices:
indices = tuple(zip(*indices))
if not use_vectorization:
x_new[indices] = values
else:
indices = tuple(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: geomstats/geomstats
Commit Name: b7efa1f037f8adc94a28fc421dd7934b63b3043e
Time: 2020-04-22
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/_backend/numpy/__init__.py
Class Name:
Method Name: assignment
Project Name: reinforceio/tensorforce
Commit Name: 5b1a18c78f9b4c1a8efd0e0d1c08f2c6a4e7c761
Time: 2017-05-28
Author: k@ifricke.com
File Name: tensorforce/tests/test_preprocessing.py
Class Name: TestPreprocessing
Method Name: test_preprocessing_maximum
Project Name: reinforceio/tensorforce
Commit Name: 5b1a18c78f9b4c1a8efd0e0d1c08f2c6a4e7c761
Time: 2017-05-28
Author: k@ifricke.com
File Name: tensorforce/tests/test_preprocessing.py
Class Name: TestPreprocessing
Method Name: test_preprocessing_concat