Skip to content
Year in Code

Methodology

Where the numbers come from

Every figure in a recap is taken from GitHub or calculated from GitHub’s data by a fixed rule. Nothing is estimated by a language model, and nothing is invented to fill a gap: when a statistic cannot be supported for a profile, the scene that needs it is left out.

Sources

Dates and periods

Days are GitHub’s contribution days, which GitHub assigns in UTC for the public calendar. A calendar-year recap runs from 1 January to 31 December, or to today if the year is still in progress; unfinished periods are labelled and their “current streak” is reported separately. “Last 12 months” is the 365 days ending today. Custom ranges are limited to 366 days because that is the most GitHub reports in one request.

How each statistic is calculated

What a recap cannot tell you

Wording

The sentences in a recap are picked from fixed templates by a seeded rule, so the same profile and period always produce the same words. A sentence is only eligible when the statistic it mentions is present and meets a threshold that makes the sentence true.

Freshness

Public recaps are cached for up to 24 hours. A recap of the current year can therefore lag GitHub by a day. Recaps that include private contributions are cached separately, per signed-in account, and are never served to anyone else.

See also the privacy policy.