aliyun / simai
Code health
Explore this codebase
- Code health map340files scored
- Ownership236sole-owned files: one author, no second reader
- Architecture4modules, 8 entry points
- Decisions2recorded, of which 0 in force and 2 background
- Refactoring50open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Aug 14, the last indexed commit, 1 of them now.
Now
- High
Start breaking up parse (CCN 78, 138 lines): first lift lines 174-252
astra-sim-alibabacloud/astra-sim/system/AstraParamParse.hh:174
parse is complex and keeps changing; function changed in 4 commits; its file is imported by 1 file.
- gain
- +0.9 health on this file(inferred)
- health recoverable
- +0.9(inferred)
- size
- CCN 78, 138 lines, nests 4 deep
- steps
- 1 (1 mechanical)
Medium effort
Worth planning
Start breaking up run (CCN 35, 300 lines): first lift lines 276-297
astra-sim-alibabacloud/astra-sim/system/collective/DoubleBinaryTreeAllReduce.cc:276
run is long; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 35, 300 lines
- steps
- 1 (0 mechanical)
Small effort, worth a checkAddress the finding in _get_next_batch
vidur-alibabacloud/vidur/scheduler/replica_scheduler/sarathi_replica_scheduler.py:86
_get_next_batch has a bumpy road finding; its file is imported by 1 file.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 15, 74 lines, nests 3 deep
- severity
- low
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health453 open findingsCriticalUntested hotspot · astra-sim-alibabacloud/astra-sim/workload/Layer.cc13 findings · 8.2 deducted
- Refactoring50 open opportunitiesMedium__init__+1.2 health, S effort · vidur-alibabacloud/vidur/entities/cluster.py
- Ownership236 sole-owned filesMediumastra-sim-alibabacloud/astra-sim/system/collective/NcclFlowModel.ccOne author, no second reader
- Dead code11LowStatDataUnreachable class (11 lines)