d4914802364b33d8045f393656798d5ea4b8a0b4,recordlinkage/index.py,Block,_link_index,#Block#Any#Any#,119

Before Change



    def _link_index(self, df_a, df_b):

        if self.on is not None:
            if self.left_on is not None or self.right_on is not None:
                raise IndexError("Can only pass argument "on" OR "left_on" "
                                 "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
        // 1. make a dataframe

After Change



    def _link_index(self, df_a, df_b):

        left_on, right_on = self._get_left_and_right_on()
        left_on = listify(left_on)
        right_on = listify(right_on)

        blocking_keys = ["blocking_key_%d" % i for i, v in enumerate(left_on)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: J535D165/recordlinkage
Commit Name: d4914802364b33d8045f393656798d5ea4b8a0b4
Time: 2018-03-11
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: Block
Method Name: _link_index


Project Name: J535D165/recordlinkage
Commit Name: d4914802364b33d8045f393656798d5ea4b8a0b4
Time: 2018-03-11
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: SortedNeighbourhood
Method Name: __repr__


Project Name: J535D165/recordlinkage
Commit Name: d4914802364b33d8045f393656798d5ea4b8a0b4
Time: 2018-03-11
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: SortedNeighbourhood
Method Name: _link_index


Project Name: J535D165/recordlinkage
Commit Name: d4914802364b33d8045f393656798d5ea4b8a0b4
Time: 2018-03-11
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: Block
Method Name: _link_index


Project Name: J535D165/recordlinkage
Commit Name: d4914802364b33d8045f393656798d5ea4b8a0b4
Time: 2018-03-11
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: Block
Method Name: __repr__