← all organisations

department-for-transport / Code

18 languages, 60.5 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

18
languages in use
60.5 MB of source
2.6k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
147.8 MB
largest repository
R-cookbook

What stands out

One archived repository holds 23% of all the bytes.

R-cookbook is 147.8 MB of git - a 2013 static snapshot of www.gov.uk, not source code. It single-handedly makes HTML the largest language by volume (69% 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.

42% 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: 41.7 MB41.7 MBJupyter NotebookJupyter Notebook: 14.4 MB14.4 MBJavaScriptJavaScript: 1.2 MB1.2 MBPythonPython: 1.1 MB1.1 MBRR: 1.1 MB1.1 MBTypeScriptTypeScript: 572.6 kB572.6 kBCSSCSS: 216.0 kB216.0 kBC++C++: 180.6 kB180.6 kBC#C#: 45.4 kB45.4 kBTSQLTSQL: 40.0 kB40.0 kBLuaLua: 31.8 kB31.8 kBShellShell: 5.7 kB5.7 kBTeXTeX: 4.6 kB4.6 kBVBScriptVBScript: 1.7 kB1.7 kB

By number of repositories

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

RR: 88HTMLHTML: 77PythonPython: 77JavaScriptJavaScript: 66CSSCSS: 55Jupyter NotebookJupyter Notebook: 44TeXTeX: 33ShellShell: 33TypeScriptTypeScript: 22VBScriptVBScript: 22C#C#: 11TSQLTSQL: 11MakoMako: 11C++C++: 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: 11RR: 44HTMLHTML: 11TypeScriptTypeScript: 22C++C++: 11C#C#: 00Jupyter NotebookJupyter Notebook: 00

Archived repositories

PythonPython: 44RR: 11HTMLHTML: 22TypeScriptTypeScript: 00C++C++: 00C#C#: 11Jupyter NotebookJupyter Notebook: 11

Scale

Repository size distribution

Git data per repository, log-ish buckets.

64.531.50< 10 kB: 0< 10 kB< 100 kB: 4< 100 kB< 1 MB: 4< 1 MB< 10 MB: 3< 10 MB< 100 MB: 6< 100 MB100 MB +: 2100 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.

3.2k839.5219.557.415.0620.268.0228.8770.0.github: 32 commits, 6 files, 5 authorsPython-for-Analysts: 15 commits, 151 files, 4 authorsR-cookbook: 435 commits, 100 files, 14 authorsValidatRKerasService: 38 commits, 6 files, 2 authorscoffee-and-coding: 355 commits, 393 files, 21 authorsdftlab-yolo-vehiclecounting: 91 commits, 15 files, 14 authorsds-r-training: 36 commits, 99 files, 5 authorsfile-existence-action: 32 commits, 20 files, 6 authorsgit-and-github-training: 395 commits, 19 files, 167 authorsgithub-copilot-billing-preview: 145 commits, 122 files, 3 authorsincubator-superset: 3,067 commits, 770 files, 248 authorslab-PQNeuralNet: 39 commits, 11 files, 3 authorslab-correspondencewebapp: 73 commits, 35 files, 3 authorslearn_r_by_doing: 41 commits, 39 files, 3 authorslight-rail-package: 68 commits, 111 files, 4 authorsodsconvertr: 24 commits, 28 files, 3 authorsreadODS: 263 commits, 135 files, 23 authorsrmarkdown: 3,211 commits, 498 files, 142 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

teststests: 55docsdocs: 44manman: 44RR: 44instinst: 44srcsrc: 33vignettesvignettes: 33DataData: 22OutputsOutputs: 22modelmodel: 22UtilsUtils: 11PageObjectsPageObjects: 11.ipynb_checkpoints.ipynb_checkpoints: 11imgimg: 11"img"img: 11datadata: 11imageimage: 11All_materialsAll_materials: 11

Most common file extensions

By total file count across the estate.

.png.png: 312312.jsx.jsx: 211211.ipynb.ipynb: 184184.r.r: 184184.py.py: 172172.md.md: 133133.js.js: 115115.rd.rd: 109109.css.css: 9191.rmd.rmd: 8989.gz.gz: 8989.html.html: 8383.ts.ts: 6969.xlsx.xlsx: 5151.csv.csv: 3838.ods.ods: 3636

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
R-cookbookHTML147.8 MB435100archived
lab-correspondencewebappPython125.0 MB7335active
lab-PQNeuralNetPython96.5 MB3911archived
coffee-and-codingHTML76.9 MB355393archived
incubator-supersetPython71.6 MB3,067770archived
dftlab-yolo-vehiclecountingPython56.5 MB9115archived
ds-r-trainingR48.7 MB3699archived
rmarkdownR12.0 MB3,211498active
Python-for-AnalystsJupyter Notebook6.9 MB15151archived
readODSC++1.3 MB263135active
learn_r_by_doingR1.1 MB4139active
github-copilot-billing-previewTypeScript514.0 kB145122active
light-rail-packageR264.2 kB68111active
git-and-github-trainingHTML247.8 kB39519active
file-existence-actionTypeScript149.5 kB3220active
odsconvertrR70.7 kB2428active
.github-33.8 kB326active
ValidatRKerasServicePython27.6 kB386archived
AutomationFrameworkDotNetCoreC#15.4 kB216archived