MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / score_is_new_on_github

Method score_is_new_on_github

aura/package.py:435–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 return self.Value(val, val, "Recent commit", f"{note} (+{val})")
434
435 def score_is_new_on_github(self) -> Union[Value, NA]:
436 if self.github is None:
437 return self.NA("New on GitHub")
438
439 created = utils.parse_iso_8601(self.github.repo["created_at"])
440
441 if created + datetime.timedelta(days=31*6) <= self.now:
442 val = 1
443 note = "older than 6m"
444 else:
445 val = 0
446 note = "newer than 6m"
447
448 return self.Value(val, val, "New on GitHub", f"{note} (+{val})")
449
450 def has_multiple_releases(self) -> Value:
451 releases = len(self.pkg["releases"])

Callers 1

get_score_entriesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected