(self)
| 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: |
| 413 | return self.NA("GitHub contributors") |
| 414 | |
| 415 | contributors = len(self.github.contributors) |
| 416 | normalized = log_scale(contributors) |
| 417 | explanation = f"{contributors} (+{normalized})" |
| 418 | return self.Value(contributors, normalized, "GitHub contributors", explanation) |
| 419 | |
| 420 | def score_last_commit(self) -> Union[Value, NA]: |
| 421 | if self.github is None: |
no test coverage detected