← all organisations

best-practice-and-impact / Code

13 languages, 6.9 MB of source, and what the live estate is written in today.

Language figures come from GitHub's own per-repository byte counts, which measure source rather than a single headline label. File counts and repository sizes come from the mirrors themselves. The two tell different stories, and the difference is the point.

The codebase

13
languages in use
6.9 MB of source
1.9k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
35.6 MB
largest repository
ons-spark

What stands out

One archived repository holds 23% of all the bytes.

ons-spark is 35.6 MB of git - a 2013 static snapshot of www.gov.uk, not source code. It single-handedly makes HTML the largest language by volume (62% of all source bytes). Any size or language statistic that does not exclude it is measuring an archive, not a codebase.

Sizes here are GitHub's reported figures.

This organisation was harvested with blobless partial clones, which fetch every commit and file path but not file contents, so there is no local size to measure against. Checked elsewhere in this dataset against 1,526 fully mirrored repositories, GitHub's reported size is accurate to within about six percent.

Ruby is the house language, but its share is falling.

Ruby is the primary language of 0% of archived repositories but only 0% of live ones. Python, Go, TypeScript and HCL have taken the difference - the signature of a shift from monolithic Rails publishing apps toward data pipelines, infrastructure-as-code and platform tooling.

Most repositories are small; a handful are enormous.

47% of repositories are under a megabyte of git data. The estate is not a monolith - it is a very long tail of small services, gems and prototypes around a few large publishing applications.

Languages, two ways

By volume of source

Bytes of code. Dominated by archived static HTML.

HTMLHTML: 4.2 MB4.2 MBJupyter NotebookJupyter Notebook: 1.5 MB1.5 MBRR: 620.7 kB620.7 kBPythonPython: 293.5 kB293.5 kBJavaScriptJavaScript: 151.0 kB151.0 kBCSSCSS: 22.7 kB22.7 kBTeXTeX: 11.9 kB11.9 kBMakefileMakefile: 8.8 kB8.8 kBBatchfileBatchfile: 2.4 kB2.4 kBHCLHCL: 1.3 kB1.3 kBShellShell: 966 B966 BDockerfileDockerfile: 711 B711 BRezRez: 286 B286 B

By number of repositories

How many repositories name each language as their primary one. A better guide to what engineers actually work in.

PythonPython: 1313CSSCSS: 1212RR: 1010HTMLHTML: 55JavaScriptJavaScript: 33RezRez: 33Jupyter NotebookJupyter Notebook: 33TeXTeX: 33MakefileMakefile: 33BatchfileBatchfile: 22HCLHCL: 11DockerfileDockerfile: 11ShellShell: 11

Live estate versus archive

The same language ranking, split by whether the repository is still active. The shift is the clearest signal of technical direction in the whole dataset.

Active repositories

PythonPython: 99RR: 55HTMLHTML: 33CSSCSS: 22JavaScriptJavaScript: 22TeXTeX: 11Jupyter NotebookJupyter Notebook: 11

Archived repositories

PythonPython: 11RR: 22HTMLHTML: 00CSSCSS: 00JavaScriptJavaScript: 00TeXTeX: 11Jupyter NotebookJupyter Notebook: 00

Scale

Repository size distribution

Git data per repository, log-ish buckets.

1410.573.50< 10 kB: 1< 10 kB< 100 kB: 9< 100 kB< 1 MB: 5< 1 MB< 10 MB: 14< 10 MB< 100 MB: 3< 100 MB100 MB +: 0100 MB +

Commits against files

Each circle is a repository, sized by number of distinct authors. Both axes are logarithmic. The diagonal band is the normal relationship between codebase size and churn; outliers above it are long-lived apps with heavy iteration, below it are dumps and imports.

1.1k305.886.824.77.014.217.875.3318.0CARS: 689 commits, 234 files, 16 authorsCARS_dashboard: 473 commits, 14 files, 11 authorsData-Quality-Question-Bank: 63 commits, 96 files, 2 authorsONS_minimum_RAP: 50 commits, 52 files, 9 authorsQIP: 63 commits, 11 files, 6 authorsQuarto-QA-example: 16 commits, 20 files, 2 authorsRgovcookiecutter: 33 commits, 15 files, 5 authorsadmin-data-quality-stats: 32 commits, 215 files, 4 authorsafcharts: 476 commits, 115 files, 38 authorsafcharts-py: 603 commits, 53 files, 24 authorsafcolours: 52 commits, 39 files, 8 authorsaftables: 474 commits, 104 files, 10 authorsanalysis-self-asssesment: 13 commits, 35 files, 3 authorsanalysis_project_documentation: 251 commits, 83 files, 13 authorsapi_formatter: 87 commits, 26 files, 14 authorsaqua_book_revision: 759 commits, 85 files, 9 authorsassumptions: 101 commits, 40 files, 2 authorscookiecutter-guidance: 192 commits, 26 files, 8 authorsdataqualityforanalysts: 16 commits, 1 files, 1 authorsdqhub-resources: 15 commits, 7 files, 2 authorsgcc-wrappers: 8 commits, 9 files, 1 authorsgit-workshop: 17 commits, 4 files, 3 authorsgovcookiecutter: 939 commits, 115 files, 48 authorsgovcookiecutter-lite: 489 commits, 78 files, 28 authorsons-github-post: 7 commits, 1 files, 1 authorsons-spark: 1,077 commits, 318 files, 53 authorspy-af-colours: 144 commits, 38 files, 7 authorspython-pipeline-runner: 9 commits, 8 files, 2 authorsqa-of-code-guidance: 926 commits, 62 files, 77 authorsrap-rpg: 31 commits, 14 files, 8 authorsrap_mvp_maturity_guidance: 16 commits, 2 files, 5 authorsfiles at HEAD (log)commits (log)

The shape of a repository

Directory layout is the cheapest reliable signal of what a repository actually is. app/ with config/ and spec/ is a Rails application; src/ with test/ is Java or Node. Counted by how many repositories contain each top-level directory at HEAD.

Most common top-level directories

docsdocs: 1515teststests: 1212RR: 77manman: 55data-rawdata-raw: 44datadata: 44rmarkdownrmarkdown: 33srcsrc: 33hookshooks: 33pkgdownpkgdown: 22vignettesvignettes: 22.quarto.quarto: 22exampleexample: 22quartoquarto: 11analysisanalysis: 11configsconfigs: 11sitesite: 11quarto_filesquarto_files: 11

Most common file extensions

By total file count across the estate.

.md.md: 250250.r.r: 161161.css.css: 155155.js.js: 154154.png.png: 149149.py.py: 116116.html.html: 9191.rd.rd: 8888.ttf.ttf: 6969.qmd.qmd: 5757.yml.yml: 5353.svg.svg: 5050.yaml.yaml: 4747.csv.csv: 4545.ipynb.ipynb: 4545.rmd.rmd: 2828

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
ons-sparkJupyter Notebook35.6 MB1,077318active
analysis_project_documentationHTML28.9 MB25183active
qa-of-code-guidanceCSS18.0 MB92662active
Data-Quality-Question-BankHTML7.4 MB6396active
aftablesR7.0 MB474104active
CARS_dashboardR6.9 MB47314active
govcookiecutterPython6.8 MB939115active
afchartsR6.6 MB476115active
CARSR6.2 MB689234active
govcookiecutter-litePython6.1 MB48978active
cookiecutter-guidanceTeX5.6 MB19226archived
Quarto-QA-examplePython4.6 MB1620active
admin-data-quality-statsJavaScript3.5 MB32215active
aqua_book_revisionTeX3.1 MB75985active
dqhub-resourcesHTML1.8 MB157active
ONS_minimum_RAPCSS1.5 MB5052active
py-af-coloursPython1.4 MB14438archived
afcharts-pyPython672.8 kB60353active
afcoloursR505.9 kB5239archived
assumptionsPython210.9 kB10140active