Skip to content

Commit 59e6c8b

Browse files
committed
#154: Use numpy's public interface for creating bigram vector as part of the repo map cache busting strategy
1 parent c27271a commit 59e6c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aider/helpers/similarity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def create_bigram_vector(texts):
7979
chars = np.array(list(text_lower))
8080

8181
# Create bigrams by combining consecutive characters
82-
bigrams = np.core.defchararray.add(chars[:-1], chars[1:])
82+
bigrams = np.char.add(chars[:-1], chars[1:])
8383

8484
# Filter only alphabetic bigrams
8585
mask = np.array([bg.isalpha() for bg in bigrams])

0 commit comments

Comments
 (0)