(self)
| 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: |
| 404 | return self.NA("GitHub forks") |
| 405 | |
| 406 | forks = self.github.repo["forks"] |
| 407 | normalized = log_scale(forks) |
| 408 | explanation = f"{forks} (+{normalized})" |
| 409 | return self.Value(forks, normalized, "GitHub forks", explanation) |
| 410 | |
| 411 | def score_github_contributors(self) -> Union[Value, NA]: |
| 412 | if self.github is None: |
no test coverage detected