-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ranking: handle files with missing ranks (#555)
Even when a repo has ranking data, certain files will not have ranks, like Markdown or yaml files. Currently these have rank 0, which puts them at a big disadvantage and means they're usually ranked last. This PR proposes to use the mean repo rank instead of 0. The rules: * If we have a concrete rank for the file, always use it * If there's no rank, and it's a low priority file like a test, then use rank 0 * Otherwise use the mean rank for the repository We don't attempt to handle the case where an entire repo is missing ranks because it doesn't have precise code intel.
- Loading branch information
1 parent
250c2ef
commit 45754a7
Showing
4 changed files
with
144 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters