mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
wip
This commit is contained in:
parent
fb8ed21b13
commit
f256b43043
8 changed files with 34 additions and 33 deletions
|
@ -68,6 +68,9 @@ class RepoMap:
|
|||
self.io.tool_error("Disabling repo map, git repo too large?")
|
||||
self.max_map_tokens = 0
|
||||
return
|
||||
|
||||
dump(chat_files, other_files)
|
||||
dump(files_listing)
|
||||
if not files_listing:
|
||||
return
|
||||
|
||||
|
@ -87,6 +90,7 @@ class RepoMap:
|
|||
|
||||
repo_content += files_listing
|
||||
|
||||
dump(repo_content)
|
||||
return repo_content
|
||||
|
||||
def get_rel_fname(self, fname):
|
||||
|
@ -258,8 +262,8 @@ class RepoMap:
|
|||
references[tag.name].append(rel_fname)
|
||||
|
||||
##
|
||||
# dump(defines)
|
||||
# dump(references)
|
||||
dump(defines)
|
||||
dump(references)
|
||||
|
||||
if not references:
|
||||
references = dict((k, list(v)) for k, v in defines.items())
|
||||
|
@ -287,6 +291,7 @@ class RepoMap:
|
|||
try:
|
||||
ranked = nx.pagerank(G, weight="weight", **pers_args)
|
||||
except ZeroDivisionError:
|
||||
dump(ZeroDivisionError)
|
||||
return []
|
||||
|
||||
# distribute the rank from each source node, across all of its out edges
|
||||
|
@ -334,6 +339,8 @@ class RepoMap:
|
|||
ranked_tags = self.get_ranked_tags(chat_fnames, other_fnames)
|
||||
num_tags = len(ranked_tags)
|
||||
|
||||
dump(num_tags)
|
||||
|
||||
lower_bound = 0
|
||||
upper_bound = num_tags
|
||||
best_tree = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue