c79669f77f9564fd035e7926b4423342db37b2c9,Orange/widgets/data/owmergedata.py,OWMergeData,_join_array_by_indices,#Any#Any#Any#Any#,362
Before Change
left_width, right_width = left.shape[1], right.shape[1]
arr = np.full((indices.shape[1], left_width + right_width), np.nan, tpe)
if string_cols:
arr[:, string_cols] = ""
for indices, to_change, lookup in (
(indices[0], arr[:, :left_width], left),
(indices[1], arr[:, left_width:], right)):
known = indices != -1
to_change[known] = lookup[indices[known]]
return arr
def test():
After Change
return newarr
left_width = left.shape[1]
str_left = [i for i in string_cols or () if i < left_width]
str_right = [i - left_width for i in string_cols or () if i >= left_width]
res = hstack((prepare(left, indices[0], str_left),
prepare(right, indices[1], str_right)))
return res
def main():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: biolab/orange3
Commit Name: c79669f77f9564fd035e7926b4423342db37b2c9
Time: 2017-05-26
Author: jerneju@gmail.com
File Name: Orange/widgets/data/owmergedata.py
Class Name: OWMergeData
Method Name: _join_array_by_indices
Project Name: biolab/orange3
Commit Name: 9b262f2dc9ea11ce93ea77d7a071873f2a09ba56
Time: 2017-11-09
Author: jerneju@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_scaled_data
Project Name: biolab/orange3
Commit Name: b7545b3317db0ebcee547d9b80e36ec6dff9d625
Time: 2017-11-17
Author: lan.zagar@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_scaled_data