mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Revert "fix: Add debug logging to get_ident_filename_matches method"
This reverts commit 55fcbc958d
.
This commit is contained in:
parent
793035b2e0
commit
a85ccc26bc
1 changed files with 0 additions and 5 deletions
|
@ -489,23 +489,18 @@ class Coder:
|
||||||
return words
|
return words
|
||||||
|
|
||||||
def get_ident_filename_matches(self, idents):
|
def get_ident_filename_matches(self, idents):
|
||||||
dump(idents)
|
|
||||||
|
|
||||||
all_fnames = defaultdict(set)
|
all_fnames = defaultdict(set)
|
||||||
for fname in self.get_all_relative_files():
|
for fname in self.get_all_relative_files():
|
||||||
base = Path(fname).with_suffix("").name.lower()
|
base = Path(fname).with_suffix("").name.lower()
|
||||||
if len(base) >= 5:
|
if len(base) >= 5:
|
||||||
all_fnames[base].add(fname)
|
all_fnames[base].add(fname)
|
||||||
|
|
||||||
dump(len(all_fnames))
|
|
||||||
|
|
||||||
matches = set()
|
matches = set()
|
||||||
for ident in idents:
|
for ident in idents:
|
||||||
if len(ident) < 5:
|
if len(ident) < 5:
|
||||||
continue
|
continue
|
||||||
matches.update(all_fnames[ident.lower()])
|
matches.update(all_fnames[ident.lower()])
|
||||||
|
|
||||||
dump(matches)
|
|
||||||
return matches
|
return matches
|
||||||
|
|
||||||
def get_repo_map(self):
|
def get_repo_map(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue