798d71d25f579604bda909cf2297727f1bf3a1df,recordlinkage/indexing.py,SortedNeighbourhoodIndex,_link_index,#SortedNeighbourhoodIndex#Any#Any#,813
Before Change
left_on = listify(self.left_on)
right_on = listify(self.right_on)
if self.on:
left_on = listify(self.on)
right_on = listify(self.on)
if not left_on or not right_on:
raise ValueError("no column labels given")
if len(left_on) != len(right_on):
After 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)
window = self.window
// Check if window is an odd number
if not isinstance(window, int) or (window < 0) or not bool(window % 2):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: J535D165/recordlinkage
Commit Name: 798d71d25f579604bda909cf2297727f1bf3a1df
Time: 2017-11-12
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: SortedNeighbourhoodIndex
Method Name: _link_index
Project Name: albermax/innvestigate
Commit Name: fe50dfc3e52a9d31827e10a1ee4b2aec3ff087f7
Time: 2018-02-15
Author: alber.maximilian@gmail.com
File Name: innvestigate/utils/keras/graph.py
Class Name:
Method Name: get_layer_neuronwise_io
Project Name: tyarkoni/pliers
Commit Name: fd7b464bde98bab8d8ad1a0c4f2e43afdb6ff7e7
Time: 2018-03-06
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/clarifai.py
Class Name: ClarifaiAPIExtractor
Method Name: __init__