From c9e73ef27aa97decda8919e395ecae15b8aaaf8d Mon Sep 17 00:00:00 2001 From: Graeme Russell <62146826+graeme-russell@users.noreply.github.com> Date: Fri, 13 Jun 2025 14:25:27 -0400 Subject: [PATCH] Fix typos in code and tests --- dedupe/api.py | 2 +- dedupe/clustering.py | 2 +- tests/test_predicates.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dedupe/api.py b/dedupe/api.py index f89012cb..e8e36abe 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -89,7 +89,7 @@ def __init__( def fingerprinter(self) -> blocking.Fingerprinter: if self._fingerprinter is None: raise ValueError( - "the record fingerprinter is not intialized, " + "the record fingerprinter is not initialized, " "please run the train method" ) diff --git a/dedupe/clustering.py b/dedupe/clustering.py index f6e148ce..a1b7b423 100644 --- a/dedupe/clustering.py +++ b/dedupe/clustering.py @@ -201,7 +201,7 @@ def condensedDistance( N = len(candidate_set) - # alternate form thanks to wolfram alpa + # alternate form thanks to Wolfram Alpha index = row * (2 * N - row - 3) // 2 + col - 1 condensed_distances = numpy.ones(N * (N - 1) // 2, "f4") diff --git a/tests/test_predicates.py b/tests/test_predicates.py index 4df2c040..2f9b6c05 100644 --- a/tests/test_predicates.py +++ b/tests/test_predicates.py @@ -66,7 +66,7 @@ def test_precise_latlong(self): assert block_val == set() -class TestAlpaNumeric(unittest.TestCase): +class TestAlphaNumeric(unittest.TestCase): def test_alphanumeric(self): assert predicates.alphaNumericPredicate("a1") == {"a1"} assert predicates.alphaNumericPredicate("1a") == {"1a"}