← all organisations

scottishgovernment / Code

17 languages, 7.7 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

17
languages in use
7.7 MB of source
6.6k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
89.5 MB
largest repository
economicactionplan.mygov.scot

What stands out

One archived repository holds 35% of all the bytes.

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

61% 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.

JavaJava: 3.4 MB3.4 MBJavaScriptJavaScript: 1.4 MB1.4 MBCSSCSS: 912.4 kB912.4 kBFreeMarkerFreeMarker: 850.8 kB850.8 kBNunjucksNunjucks: 538.7 kB538.7 kBHTMLHTML: 217.4 kB217.4 kBSCSSSCSS: 187.5 kB187.5 kBGroovyGroovy: 77.3 kB77.3 kBPythonPython: 57.4 kB57.4 kBShellShell: 50.8 kB50.8 kBMustacheMustache: 12.2 kB12.2 kBRubyRuby: 5.7 kB5.7 kBPuppetPuppet: 3.8 kB3.8 kBDockerfileDockerfile: 3.4 kB3.4 kB

By number of repositories

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

ShellShell: 2020JavaScriptJavaScript: 1111JavaJava: 1010HTMLHTML: 1010CSSCSS: 77RubyRuby: 44SCSSSCSS: 33DockerfileDockerfile: 33FreeMarkerFreeMarker: 33HandlebarsHandlebars: 22PythonPython: 22NunjucksNunjucks: 22GroovyGroovy: 22PuppetPuppet: 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

JavaJava: 77JavaScriptJavaScript: 55CSSCSS: 11ShellShell: 11PythonPython: 22GroovyGroovy: 11PuppetPuppet: 11

Archived repositories

JavaJava: 22JavaScriptJavaScript: 11CSSCSS: 33ShellShell: 22PythonPython: 00GroovyGroovy: 00PuppetPuppet: 00

Scale

Repository size distribution

Git data per repository, log-ish buckets.

107.552.50< 10 kB: 2< 10 kB< 100 kB: 10< 100 kB< 1 MB: 8< 1 MB< 10 MB: 6< 10 MB< 100 MB: 7< 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.

4.9k870.8155.927.95.0314.771.7350.61.7karch-capability: 5 commits, 12 files, 1 authorsarch-metamodel: 22 commits, 23 files, 2 authorsarch-reference-library: 73 commits, 72 files, 7 authorsarch-standards: 30 commits, 33 files, 2 authorsbusiness-rates: 238 commits, 55 files, 11 authorsconfig-weaver: 20 commits, 26 files, 6 authorsdecommission-tool: 243 commits, 71 files, 12 authorsdecommissioned-sites: 97 commits, 34 files, 2 authorseconomicactionplan.mygov.scot: 257 commits, 431 files, 8 authorsfunnelback: 14 commits, 16 files, 1 authorsfunnelback-config: 33 commits, 20 files, 1 authorsgeosearch: 55 commits, 33 files, 7 authorsgov-scot: 4,863 commits, 1,316 files, 29 authorshippo-checker: 45 commits, 9 files, 6 authorshippo-govscot: 473 commits, 240 files, 6 authorshousing: 884 commits, 251 files, 9 authorshousing-data: 234 commits, 53 files, 5 authorsjenkins: 1,002 commits, 62 files, 24 authorsmygov-assets: 316 commits, 267 files, 9 authorsmygov-parent: 27 commits, 3 files, 3 authorsos-codepoint: 16 commits, 27 files, 2 authorspayment: 111 commits, 65 files, 6 authorsproxette: 13 commits, 28 files, 2 authorspublications: 506 commits, 257 files, 7 authorspublishing: 3,584 commits, 1,714 files, 17 authorsrepo-clean: 27 commits, 29 files, 3 authorsresources.mygov.scot: 517 commits, 763 files, 24 authorssearch: 69 commits, 32 files, 5 authorssite-builder: 1,645 commits, 124 files, 22 authorstradingnation.mygov.scot: 91 commits, 525 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

srcsrc: 77debiandebian: 66testtest: 55binbin: 44assetsassets: 33_includes_includes: 33_layouts_layouts: 33scriptsscripts: 22pagespages: 22_site-furniture_site-furniture: 22_plugins_plugins: 22_sass_sass: 22commoncommon: 22repository-datarepository-data: 22sitesite: 22cmscms: 22imageprocessingimageprocessing: 22confconf: 22

Most common file extensions

By total file count across the estate.

.java.java: 1.2k1.2k.yaml.yaml: 1.1k1.1k.png.png: 1k1k.md.md: 549549.js.js: 438438.scss.scss: 343343.jpg.jpg: 322322.svg.svg: 223223.xml.xml: 217217.ftl.ftl: 201201.html.html: 109109.json.json: 8383.markdown.markdown: 5454.njk.njk: 4545.txt.txt: 4242.groovy.groovy: 3333

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
economicactionplan.mygov.scotCSS89.5 MB257431archived
housingJava41.5 MB884251active
publishingJavaScript25.2 MB3,5841,714active
gov-scotJava23.6 MB4,8631,316active
resources.mygov.scotCSS19.1 MB517763archived
decommission-toolJava17.5 MB24371active
tradingnation.mygov.scotCSS16.1 MB91525archived
publicationsJava5.9 MB506257active
os-codepoint-4.3 MB1627archived
arch-metamodel-2.8 MB2223active
arch-standards-2.6 MB3033active
arch-reference-library-2.4 MB7372active
hippo-govscotJava1.1 MB473240active
housing-dataJavaScript919.6 kB23453active
site-builderJavaScript877.6 kB1,645124archived
mygov-assetsCSS641.0 kB316267active
jenkinsGroovy590.8 kB1,00262active
decommissioned-sitesJavaScript568.3 kB9734active
business-ratesJava250.9 kB23855active
mygovscot-puppet-blogpostPuppet228.4 kB128active