(self)
| 391 | return self.Value(dependencies, normalized, "Reverse dependencies", explanation) |
| 392 | |
| 393 | def score_github_stars(self) -> Union[Value, NA]: |
| 394 | if self.github is None: |
| 395 | return self.NA("GitHub stars") |
| 396 | |
| 397 | stars = self.github.repo["stargazers_count"] |
| 398 | normalized = log_scale(stars) |
| 399 | explanation = f"{stars} (+{normalized})" |
| 400 | return self.Value(stars, normalized, "GitHub stars", explanation) |
| 401 | |
| 402 | def score_github_forks(self) -> Union[Value, NA]: |
| 403 | if self.github is None: |
no test coverage detected