MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_stats_code_frequency

Method get_stats_code_frequency

github/Repository.py:3609–3621  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/stats/code_frequency `_ :rtype: None or list of :class:`github.StatsCodeFrequency.StatsCodeFrequency`

(self)

Source from the content-addressed store, hash-verified

3607 ]
3608
3609 def get_stats_code_frequency(self) -> list[StatsCodeFrequency] | None:
3610 """
3611 :calls: `GET /repos/{owner}/{repo}/stats/code_frequency <https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-activity>`_
3612 :rtype: None or list of :class:`github.StatsCodeFrequency.StatsCodeFrequency`
3613 """
3614 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/code_frequency")
3615 if not data:
3616 return None
3617 else:
3618 return [
3619 github.StatsCodeFrequency.StatsCodeFrequency(self._requester, headers, attributes)
3620 for attributes in data
3621 ]
3622
3623 def get_stats_participation(self) -> StatsParticipation | None:
3624 """

Callers 1

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected