77796d63a9a04a5c7639e999f4fa78af62bac405,recordlinkage/comparing.py,,_compare_fuzzy,#Any#Any#Any#Any#Any#,331

Before Change


	if method == "jaro":
		approx = series.apply(lambda x: jellyfish.jaro_distance(x[0], x[1]) if pandas.notnull(x[0]) and pandas.notnull(x[1]) else np.nan, axis=1)
	
	elif method == "jarowinkler":
		approx = series.apply(lambda x: jellyfish.jaro_winkler(x[0], x[1]) if pandas.notnull(x[0]) and pandas.notnull(x[1]) else np.nan, axis=1)
	
	elif method == "levenshtein":
		approx = series.apply(lambda x: jellyfish.levenshtein_distance(x[0], x[1])/np.max([len(x[0]),len(x[1])]) if pandas.notnull(x[0]) and pandas.notnull(x[1]) else np.nan, axis=1)
		approx = 1 - approx

After Change


	elif method == "levenshtein":
		approx = levenshtein_similarity(s1, s2)

	elif method in ["dameraulevenshtein", "damerau_levenshtein"]:
		approx = damerau_levenshtein_similarity(s1, s2)

	elif method in ["qgram", "q_gram"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: J535D165/recordlinkage
Commit Name: 77796d63a9a04a5c7639e999f4fa78af62bac405
Time: 2016-05-06
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/comparing.py
Class Name:
Method Name: _compare_fuzzy


Project Name: pgmpy/pgmpy
Commit Name: 45a769eb8338eec6740781ab46e74376d680c515
Time: 2020-08-11
Author: tristandeleu@users.noreply.github.com
File Name: pgmpy/sampling/base.py
Class Name:
Method Name: _return_samples


Project Name: pytorch/pytorch
Commit Name: 0c60922fb0614132433779ad45ab8f30783db2ae
Time: 2021-02-03
Author: haichuan@fb.com
File Name: torch/quantization/_learnable_fake_quantize.py
Class Name: _LearnableFakeQuantize
Method Name: forward