798d71d25f579604bda909cf2297727f1bf3a1df,recordlinkage/indexing.py,BlockIndex,_link_index,#BlockIndex#Any#Any#,711

Before Change


        right_on = listify(self.right_on)

        if self.on:
            left_on, right_on = listify(self.on), listify(self.on)

        if not left_on or not right_on:
            raise ValueError("no column labels given")

After Change


                                 "and "right_on", not a combination of both.")
            left_on = right_on = listify(self.on)
        else:
            if self.left_on is None and self.right_on is None:
                raise IndexError("pass argument "on" OR "left_on" and "
                                 ""right_on" at class initalization.")
            elif self.left_on is None:
                raise IndexError("Argument "left_on" is missing "
                                 "at class initalization.")
            elif self.right_on is None:
                raise IndexError("Argument "right_on" is missing "
                                 "at class initalization.")
            else:
                left_on = listify(self.left_on)
                right_on = listify(self.right_on)

        blocking_keys = ["blocking_key_%d" % i for i, v in enumerate(left_on)]

        // make a dataset for the data on the left
        data_left = df_a[left_on].dropna(axis=0, how="any", inplace=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: J535D165/recordlinkage
Commit Name: 798d71d25f579604bda909cf2297727f1bf3a1df
Time: 2017-11-12
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: BlockIndex
Method Name: _link_index


Project Name: J535D165/recordlinkage
Commit Name: 798d71d25f579604bda909cf2297727f1bf3a1df
Time: 2017-11-12
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: BlockIndex
Method Name: _link_index


Project Name: scipy/scipy
Commit Name: cbc2e9b0fb5d757661381fd2e66dc3541f0da1e8
Time: 2011-02-04
Author: warren.weckesser@localhost
File Name: scipy/sparse/base.py
Class Name: spmatrix
Method Name: getcol


Project Name: scipy/scipy
Commit Name: cbc2e9b0fb5d757661381fd2e66dc3541f0da1e8
Time: 2011-02-04
Author: warren.weckesser@localhost
File Name: scipy/sparse/base.py
Class Name: spmatrix
Method Name: getrow