MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / get_score_matrix

Method get_score_matrix

aura/package.py:502–509  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

500 return entries
501
502 def get_score_matrix(self) -> dict:
503 score_entries = self.get_score_entries()
504 total_score = sum(int(x) for x in score_entries)
505 score_matrix = {
506 "total": total_score,
507 "entries": [dataclasses.asdict(x) for x in score_entries]
508 }
509 return score_matrix
510
511 def get_score_table(self) -> table.Table:
512 score_table = table.Table(metadata={"title": f"Package score for '{self.package_name}'"})

Callers 4

test_package_scoreFunction · 0.95
test_bad_package_scoreFunction · 0.95
analyzeFunction · 0.80
output_typosquattingMethod · 0.80

Calls 2

get_score_entriesMethod · 0.95
asdictMethod · 0.45

Tested by 2

test_package_scoreFunction · 0.76
test_bad_package_scoreFunction · 0.76