https://github.com/sanix-darker/raterepo
get a fair rate from a repository based on 20 statistics
https://github.com/sanix-darker/raterepo
Last synced: about 2 months ago
JSON representation
get a fair rate from a repository based on 20 statistics
- Host: GitHub
- URL: https://github.com/sanix-darker/raterepo
- Owner: Sanix-Darker
- License: mit
- Created: 2022-12-17T00:18:52.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T15:06:24.000Z (over 2 years ago)
- Last Synced: 2023-03-05T01:58:43.871Z (over 2 years ago)
- Language: JavaScript
- Size: 158 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RateRepo
A simple web extension that rate from you a github repository based on some elements and a small formula !
The rating for a GitHub repository is calculated using a weighted average of several factors. These factors are:
- `stars`: the number of stars the repository has received
- `commits`: the number of commits in the repository
- `commitFrequency`: the frequency of commits in the repository
- `contributors`: the number of contributors to the repository
- `forks`: the number of forks of the repository
- `releases`: the number of releases of the repository
- `issueFrequency`: the frequency of issues being opened and closed in the repository
- `watchers`: the number of users watching the repository
- `isArchived`: a binary value indicating whether the repository is archived (1) or not (0)
- `branches`: the number of branches in the repositoryEach of these factors is given a weight in the formula, and the resulting value is divided by the sum of all the weights to get the final rating. The weights are:
- stars: 5
- commits: 7
- commitFrequency: 5
- contributors: 4
- forks: 5
- releases: 3
- issueFrequency: 7
- watchers: 10
- isArchived: 1
- branches: 3So the formula for the rating is:
```javascript
const rating = (
(stars / 5) + (commits / 7) + (commitFrequency / 5) +
(contributors / 4) + (forks / 5) + (releases / 3) +
(issueFrequency / 7) + (watchers / 10) + isArchived + (branches / 3)
) / (stars + commits + commitFrequency + contributors + forks + releases +
issueFrequency + watchers + isArchived + branches)
```