c79669f77f9564fd035e7926b4423342db37b2c9,Orange/widgets/data/owmergedata.py,OWMergeData,_join_array_by_indices,#Any#Any#Any#Any#,362

Before Change


                (indices[0], arr[:, :left_width], left),
                (indices[1], arr[:, left_width:], right)):
            known = indices != -1
            to_change[known] = lookup[indices[known]]
        return arr

After Change


        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():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: reinforceio/tensorforce
Commit Name: 643b7511eccdaaaef63b9061bb16aa7c5bb3a9ed
Time: 2019-01-04
Author: alexkuhnle@t-online.de
File Name: tensorforce/tests/unittest_base.py
Class Name: UnittestBase
Method Name: unittest


Project Name: reinforceio/tensorforce
Commit Name: 91b4b8d0f63b52d51e019c06070c0d0195dd2005
Time: 2020-05-25
Author: alexkuhnle@t-online.de
File Name: test/test_saving.py
Class Name: TestSaving
Method Name: test_explicit