Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions aider/repomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,11 @@ def get_ranked_tags(
progress(f"{UPDATING_REPO_MAP_MESSAGE}: {src}")

src_rank = ranked[src]
total_weight = sum(data["weight"] for _src, _dst, data in G.out_edges(src, data=True))
total_weight = sum(
data["weight"] for _src, _dst, _key, data in G.out_edges(src, data=True, keys=True)
)
# dump(src, src_rank, total_weight)
for _src, dst, data in G.out_edges(src, data=True):
for _src, dst, _key, data in G.out_edges(src, data=True, keys=True):
data["rank"] = src_rank * data["weight"] / total_weight
ident = data["ident"]
ranked_definitions[(dst, ident)] += data["rank"]
Expand Down