Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28,168 changes: 28,168 additions & 0 deletions datasets/00079 - act/00079-00000001.soi

Large diffs are not rendered by default.

30,010 changes: 30,010 additions & 0 deletions datasets/00079 - act/00079-00000002.soi

Large diffs are not rendered by default.

58,401 changes: 58,401 additions & 0 deletions datasets/00079 - act/00079-00000003.soi

Large diffs are not rendered by default.

25,978 changes: 25,978 additions & 0 deletions datasets/00079 - act/00079-00000004.soi

Large diffs are not rendered by default.

32,533 changes: 32,533 additions & 0 deletions datasets/00079 - act/00079-00000005.soi

Large diffs are not rendered by default.

54,169 changes: 54,169 additions & 0 deletions datasets/00079 - act/00079-00000006.soi

Large diffs are not rendered by default.

26,863 changes: 26,863 additions & 0 deletions datasets/00079 - act/00079-00000007.soi

Large diffs are not rendered by default.

29,060 changes: 29,060 additions & 0 deletions datasets/00079 - act/00079-00000008.soi

Large diffs are not rendered by default.

28,144 changes: 28,144 additions & 0 deletions datasets/00079 - act/00079-00000009.soi

Large diffs are not rendered by default.

26,985 changes: 26,985 additions & 0 deletions datasets/00079 - act/00079-00000010.soi

Large diffs are not rendered by default.

28,806 changes: 28,806 additions & 0 deletions datasets/00079 - act/00079-00000011.soi

Large diffs are not rendered by default.

27,329 changes: 27,329 additions & 0 deletions datasets/00079 - act/00079-00000012.soi

Large diffs are not rendered by default.

32,856 changes: 32,856 additions & 0 deletions datasets/00079 - act/00079-00000013.soi

Large diffs are not rendered by default.

30,251 changes: 30,251 additions & 0 deletions datasets/00079 - act/00079-00000014.soi

Large diffs are not rendered by default.

29,645 changes: 29,645 additions & 0 deletions datasets/00079 - act/00079-00000015.soi

Large diffs are not rendered by default.

29,064 changes: 29,064 additions & 0 deletions datasets/00079 - act/00079-00000016.soi

Large diffs are not rendered by default.

29,503 changes: 29,503 additions & 0 deletions datasets/00079 - act/00079-00000017.soi

Large diffs are not rendered by default.

34,674 changes: 34,674 additions & 0 deletions datasets/00079 - act/00079-00000018.soi

Large diffs are not rendered by default.

31,516 changes: 31,516 additions & 0 deletions datasets/00079 - act/00079-00000019.soi

Large diffs are not rendered by default.

32,573 changes: 32,573 additions & 0 deletions datasets/00079 - act/00079-00000020.soi

Large diffs are not rendered by default.

33,350 changes: 33,350 additions & 0 deletions datasets/00079 - act/00079-00000021.soi

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions datasets/00079 - act/00079-00000022.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
file_name,year,date,electorate,seats,ballots,papers,preference_rows,source_file,source_sha256,report_url
00079-00000001.soi,2008,2008-10-18,Brindabella,5,63334,63334,448008,BrindabellaTotal.txt,918502725ea5f19c39dc5091cfee60496da9783e1b93e8b7da2e8093e4a67a86,https://stv.vote/report/au/act/2008/10/brindabella
00079-00000002.soi,2008,2008-10-18,Ginninderra,5,60049,60049,455476,GinninderraTotal.txt,7219b7e6d8a32fecd6df3129729b0057a913c6a2e3c9212c5bf4867b719c768b,https://stv.vote/report/au/act/2008/10/ginninderra
00079-00000003.soi,2008,2008-10-18,Molonglo,7,88266,88266,856338,MolongloTotal.txt,6a70ae460eb96000c8580c5ad8968f860ddc3d9a66154871042d1f1185ba89d3,https://stv.vote/report/au/act/2008/10/molonglo
00079-00000004.soi,2012,2012-10-20,Brindabella,5,63562,63562,429100,BrindabellaTotal.txt,2bb8700031012e974fa268b1f1d502f7f096974b9373a76b78b56f3698a150b1,https://stv.vote/report/au/act/2012/10/brindabella
00079-00000005.soi,2012,2012-10-20,Ginninderra,5,66076,66076,480788,GinninderraTotal.txt,02bc09978723353f7877c141ceb004d8219c28b446c37038703cb39e50a171ff,https://stv.vote/report/au/act/2012/10/ginninderra
00079-00000006.soi,2012,2012-10-20,Molonglo,7,91534,91534,823960,MolongloTotal.txt,f9eb26cfcdffffeabe0d9b469111f33275bd49cef32b25dfc2113d18aa1980f6,https://stv.vote/report/au/act/2012/10/molonglo
00079-00000007.soi,2016,2016-10-15,Brindabella,5,46830,46830,368317,BrindabellaTotal.txt,6caab59e0191226d0961189515065f1b07b9c0914d2c078bb91239f4a8fa07fe,https://stv.vote/report/au/act/2016/10/brindabella
00079-00000008.soi,2016,2016-10-15,Ginninderra,5,47142,47142,389906,GinninderraTotal.txt,59dd2c1c152fbd023dfc20670b7b95ff099b6a14fb8191ca9e2ef1a21d4fce43,https://stv.vote/report/au/act/2016/10/ginninderra
00079-00000009.soi,2016,2016-10-15,Kurrajong,5,48848,48848,411743,KurrajongTotal.txt,c8df5981cad4b28628b91282859eaff725e8b0ccaad3be23aa5b837928643ec1,https://stv.vote/report/au/act/2016/10/kurrajong
00079-00000010.soi,2016,2016-10-15,Murrumbidgee,5,50055,50055,410648,MurrumbidgeeTotal.txt,8113f54507b78426d7bae0ce51e0afded138bf87bd0989afd7fdda8ebabe8fe7,https://stv.vote/report/au/act/2016/10/murrumbidgee
00079-00000011.soi,2016,2016-10-15,Yerrabi,5,51253,51253,374321,YerrabiTotal.txt,620473c51af0b360766c519166415ebee7035bb7c462887aab56270fe29c94ca,https://stv.vote/report/au/act/2016/10/yerrabi
00079-00000012.soi,2020,2020-10-17,Brindabella,5,55413,55413,376256,BrindabellaTotal.txt,11a3f3bacf99308dc08d5ab79f8700652ff7bf305a762593061f4100cd7f845e,https://stv.vote/report/au/act/2020/10/brindabella
00079-00000013.soi,2020,2020-10-17,Ginninderra,5,56025,56025,432313,GinninderraTotal.txt,269b8ddf991121f0e19e1b6cae4faff3dc252a155ddf9ca868a0ffe6e73bbc68,https://stv.vote/report/au/act/2020/10/ginninderra
00079-00000014.soi,2020,2020-10-17,Kurrajong,5,50600,50600,433224,KurrajongTotal.txt,34cc17bbf66fafdbee41d489c1c2c68c8582a8bbd370a7c6859ccd87f7845d14,https://stv.vote/report/au/act/2020/10/kurrajong
00079-00000015.soi,2020,2020-10-17,Murrumbidgee,5,53754,53754,418255,MurrumbidgeeTotal.txt,57e2cf3a6776b0a93ef490cb8b98025df9cf260d8d0ed19cd248980ace706a3a,https://stv.vote/report/au/act/2020/10/murrumbidgee
00079-00000016.soi,2020,2020-10-17,Yerrabi,5,53459,53459,355375,YerrabiTotal.txt,a917d5a6a45bdd830259f82e31bbad4778fad3d88523d1daf3977be93096fb44,https://stv.vote/report/au/act/2020/10/yerrabi
00079-00000017.soi,2024,2024-10-19,Brindabella,5,58246,58246,400670,BrindabellaTotal.txt,994e99de7bc7044cf367b9c048fc58496ccfefd4a6e9d86fd037e66f5a1dc78b,https://stv.vote/report/au/act/2024/10/brindabella
00079-00000018.soi,2024,2024-10-19,Ginninderra,5,56052,56052,424068,GinninderraTotal.txt,2998ed00716043db2d0bf4767363c64b0136791a8baf7c462653eca5e83530ee,https://stv.vote/report/au/act/2024/10/ginninderra
00079-00000019.soi,2024,2024-10-19,Kurrajong,5,48922,48922,415425,KurrajongTotal.txt,16f579bde73cad40dfd88ba2d58fb3005c6b4dba6fe5721a589c116adc209dd6,https://stv.vote/report/au/act/2024/10/kurrajong
00079-00000020.soi,2024,2024-10-19,Murrumbidgee,5,55849,55849,425316,MurrumbidgeeTotal.txt,5151cc15f7c0914ff0486ad4b0212b14aa1f90876275981e9d20cc0026569cc0,https://stv.vote/report/au/act/2024/10/murrumbidgee
00079-00000021.soi,2024,2024-10-19,Yerrabi,5,54954,54954,366841,YerrabiTotal.txt,1d30d40b9550cc563ddf5bfdf83b1e26bc4c0c915f90760fca6495da33312aa2,https://stv.vote/report/au/act/2024/10/yerrabi
39 changes: 39 additions & 0 deletions datasets/00079 - act/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Name: ACT Legislative Assembly Elections

Abbreviation: act

Tags: Election,Politics,STV

Series Number: 00079

Publication Date:

Description: <p>Ranked ballot profiles from the Australian Capital Territory Legislative Assembly elections of 2008, 2012, 2016, 2020 and 2024: 21 electorate contests containing 1,220,223 ballots. The Assembly is elected by Hare-Clark single transferable vote, with five seats per electorate (seven in Molonglo in 2008 and 2012). The source is the ballot paper preference data published by <a href="https://www.elections.act.gov.au/">Elections ACT</a> from its electronic counting system, which records the preferences on every formal ballot paper. Felix Sargent converted the files to PrefLib; interactive reports are hosted on <a href="https://stv.vote/">stv.vote</a>.</p><p>Each paper's preferences are read in order and stop at the first missing number, at a number given to two candidates, or at a candidate numbered twice, as in a Hare-Clark count. Identical rankings are combined with their exact multiplicities, and unranked candidates remain unranked. Candidate labels are the source names with their party group. 00079-00000022.dat is a CSV crosswalk giving seats, ballot and paper counts, source files, checksums and stv.vote report links. It is metadata, not a further election.</p>

Required Citations: Elections ACT. Ballot paper preference data, ACT Legislative Assembly elections 2008-2024. https://www.elections.act.gov.au/ ; Felix Sargent. stv.vote: ACT election reports and PrefLib conversion. https://stv.vote/

Selected Studies:

file_name, modification_type, relates_to, title, description, publication_date
00079-00000001.soi, original, , 2008 ACT Legislative Assembly - Brindabella, 5 seats; 63334 ballots,
00079-00000002.soi, original, , 2008 ACT Legislative Assembly - Ginninderra, 5 seats; 60049 ballots,
00079-00000003.soi, original, , 2008 ACT Legislative Assembly - Molonglo, 7 seats; 88266 ballots,
00079-00000004.soi, original, , 2012 ACT Legislative Assembly - Brindabella, 5 seats; 63562 ballots,
00079-00000005.soi, original, , 2012 ACT Legislative Assembly - Ginninderra, 5 seats; 66076 ballots,
00079-00000006.soi, original, , 2012 ACT Legislative Assembly - Molonglo, 7 seats; 91534 ballots,
00079-00000007.soi, original, , 2016 ACT Legislative Assembly - Brindabella, 5 seats; 46830 ballots,
00079-00000008.soi, original, , 2016 ACT Legislative Assembly - Ginninderra, 5 seats; 47142 ballots,
00079-00000009.soi, original, , 2016 ACT Legislative Assembly - Kurrajong, 5 seats; 48848 ballots,
00079-00000010.soi, original, , 2016 ACT Legislative Assembly - Murrumbidgee, 5 seats; 50055 ballots,
00079-00000011.soi, original, , 2016 ACT Legislative Assembly - Yerrabi, 5 seats; 51253 ballots,
00079-00000012.soi, original, , 2020 ACT Legislative Assembly - Brindabella, 5 seats; 55413 ballots,
00079-00000013.soi, original, , 2020 ACT Legislative Assembly - Ginninderra, 5 seats; 56025 ballots,
00079-00000014.soi, original, , 2020 ACT Legislative Assembly - Kurrajong, 5 seats; 50600 ballots,
00079-00000015.soi, original, , 2020 ACT Legislative Assembly - Murrumbidgee, 5 seats; 53754 ballots,
00079-00000016.soi, original, , 2020 ACT Legislative Assembly - Yerrabi, 5 seats; 53459 ballots,
00079-00000017.soi, original, , 2024 ACT Legislative Assembly - Brindabella, 5 seats; 58246 ballots,
00079-00000018.soi, original, , 2024 ACT Legislative Assembly - Ginninderra, 5 seats; 56052 ballots,
00079-00000019.soi, original, , 2024 ACT Legislative Assembly - Kurrajong, 5 seats; 48922 ballots,
00079-00000020.soi, original, , 2024 ACT Legislative Assembly - Murrumbidgee, 5 seats; 55849 ballots,
00079-00000021.soi, original, , 2024 ACT Legislative Assembly - Yerrabi, 5 seats; 54954 ballots,
00079-00000022.dat, original, , ACT Legislative Assembly contest crosswalk, CSV metadata and report links,
22 changes: 22 additions & 0 deletions datasets/00079 - act/metadata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
file;file_number;last_modif;md5;modification_type;numAlt;numVot;numUniq;isApproval;isStrict;isComplete;hasCondorcet;isSP;isSC;isSPTree
00079-00000001.soi;1;2026-11-22 11:40:46.816727;ecfa3ded0794b7b809b85c218e328cba;original;19;63334;28137;False;True;False;True;N/A;N/A;N/A
00079-00000002.soi;2;2026-11-22 11:40:46.932736;6ec1ada4f8c34a92b23ba82c9f1766cc;original;27;60049;29971;False;True;False;True;N/A;N/A;N/A
00079-00000003.soi;3;2026-11-22 11:40:47.184756;1852694273c5c5c334a784626deb20db;original;40;88266;58349;False;True;False;True;N/A;N/A;N/A
00079-00000004.soi;4;2026-11-22 11:40:47.284764;6ebb2d978c6d7a9fe2327818eb457edf;original;20;63562;25946;False;True;False;True;N/A;N/A;N/A
00079-00000005.soi;5;2026-11-22 11:40:47.412774;3748f32acb074ca0189582fd0765c43b;original;28;66076;32493;False;True;False;True;N/A;N/A;N/A
00079-00000006.soi;6;2026-11-22 11:40:47.640792;da1d1dda65ccd11e69a4c72999723aac;original;26;91534;54131;False;True;False;True;N/A;N/A;N/A
00079-00000007.soi;7;2026-11-22 11:40:47.744800;2492da77d3402fa0c63a514977219ff4;original;28;46830;26823;False;True;False;True;N/A;N/A;N/A
00079-00000008.soi;8;2026-11-22 11:40:47.860809;6fb3e68f20e317cb3bd454a15a42d448;original;33;47142;29015;False;True;False;True;N/A;N/A;N/A
00079-00000009.soi;9;2026-11-22 11:40:47.976818;bb9f3cc4d2035c0fb33f938ecdaac8c2;original;27;48848;28105;False;True;False;True;N/A;N/A;N/A
00079-00000010.soi;10;2026-11-22 11:40:48.084827;93499f0abf3ff7c88370d5e0d7e1f11e;original;29;50055;26944;False;True;False;True;N/A;N/A;N/A
00079-00000011.soi;11;2026-11-22 11:40:48.192835;e420e23971c7d9f53848a4328fe751e6;original;24;51253;28770;False;True;False;True;N/A;N/A;N/A
00079-00000012.soi;12;2026-11-22 11:40:48.296844;288ab5e9c13a19f175c04f7850b23929;original;23;55413;27294;False;True;False;True;N/A;N/A;N/A
00079-00000013.soi;13;2026-11-22 11:40:48.432854;f54b3d683fc1d63393006f39853a268c;original;32;56025;32812;False;True;False;True;N/A;N/A;N/A
00079-00000014.soi;14;2026-11-22 11:40:48.560864;1f64580647dcf07219af01df263f7296;original;28;50600;30211;False;True;False;True;N/A;N/A;N/A
00079-00000015.soi;15;2026-11-22 11:40:48.680874;8eeeef55efcf48c2a5948e383a4451ca;original;29;53754;29604;False;True;False;True;N/A;N/A;N/A
00079-00000016.soi;16;2026-11-22 11:40:48.788882;71f2af4a6041b1c383221253628a8977;original;25;53459;29027;False;True;False;True;N/A;N/A;N/A
00079-00000017.soi;17;2026-11-22 11:40:48.900891;2e593d89a0c5b38d1b74c63848d5bd8e;original;24;58246;29467;False;True;False;True;N/A;N/A;N/A
00079-00000018.soi;18;2026-11-22 11:40:49.036902;99954e1d372a1059508e20fa3184fd69;original;33;56052;34629;False;True;False;True;N/A;N/A;N/A
00079-00000019.soi;19;2026-11-22 11:40:49.188914;3ea2437fc1cbadab1d832f9b571fcc8e;original;34;48922;31470;False;True;False;True;N/A;N/A;N/A
00079-00000020.soi;20;2026-11-22 11:40:49.332925;4c2f414eec5b7d18ebad255596855037;original;27;55849;32534;False;True;False;True;N/A;N/A;N/A
00079-00000021.soi;21;2026-11-22 11:40:49.468936;478c859eb24b10907075876b3a62f194;original;31;54954;33307;False;True;False;True;N/A;N/A;N/A
74 changes: 74 additions & 0 deletions scripts/act/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# ACT Legislative Assembly elections, 2008–2024

21 partial-ranking profiles, one per electorate contest, with 1,220,223 ballots
across five Hare-Clark STV elections:

- 2008 and 2012: Brindabella and Ginninderra (5 seats each) and Molonglo (7 seats);
- 2016, 2020 and 2024: Brindabella, Ginninderra, Kurrajong, Murrumbidgee and Yerrabi (5 seats each).

## Sources

Elections ACT publishes the preferences on every formal ballot paper, captured by
its electronic counting system, as "ballot paper preference data". For each
election the builder reads:

- `Electorates.txt`
- `Groups.txt` (party groups)
- `Candidates.txt`
- one `<Electorate>Total.txt` per electorate (a row per preference: batch, paper index, preference number, party code, candidate code)

The 2024 files come from the [2024 election page](https://www.elections.act.gov.au/elections/previous-assembly-elections/2024-election).
The current Elections ACT site no longer links the 2008–2020 files. They were
retrieved byte for byte from Internet Archive captures of the original Elections
ACT URLs. `sources.json` gives each election's original page and the SHA-256 of
every file used. The builder refuses files that do not match.

## Conversion

A paper's preferences are read 1, 2, 3, … and stop at the first missing number,
at a number given to two candidates, or at a candidate numbered twice. This is
how a Hare-Clark paper is counted. Every paper in the data has a usable first
preference. Identical rankings are aggregated with exact multiplicities, and
unranked candidates stay unranked. Candidate order follows `Candidates.txt`. Each
label is the source name followed by its party group, or `UNGROUPED`.

The companion `.dat` file is UTF-8 CSV metadata. For each profile it gives:

- year and date;
- electorate and seats;
- ballots, source papers and preference rows;
- source file and its SHA-256;
- the [stv.vote](https://stv.vote/) report URL.

It is not another preference profile. Seats are recorded because SOI does not
say how many candidates are elected.

## Reproduction

From the repository root, with Python 3.10 or newer, and the five source folders
saved as `act-2008` … `act-2024` under one directory:

```sh
python3 -m venv /tmp/act-preflib-venv
/tmp/act-preflib-venv/bin/pip install -r scripts/act/requirements.txt
/tmp/act-preflib-venv/bin/python scripts/act/build.py --source-root <dir>
/tmp/act-preflib-venv/bin/python scripts/act/validate.py --source-root <dir> \
--stv-profiles <stv.vote checkout>/raw-data/au/act
```

`validate.py` compares every PrefLib file, parsed with preflibtools, against
stv.vote's own conversion of the same source files. That conversion is a separate
TypeScript implementation (`scripts/convert-act-preferences.ts` in
[stv.vote](https://github.com/ranked-vote/stv.vote)). The validator requires
identical ranking frequencies, candidate counts and ballot totals. It also
re-checks source and output checksums and runs the repository sanity checks with
warnings escalated, then writes `validation.json`.

stv.vote counts these profiles with its weighted inclusive Gregory tabulator, and
elects the official members in all 21 contests. Standard `metadata.csv` is
generated with `scripts/compute_metadata.py`.

Note: `metadata.csv` reports `hasCondorcet = True` for every contest. preflibtools
counts a head-to-head only when a ballot ranks both candidates. Counting a ranked
candidate as preferred to an unranked one gives no Condorcet winner in 2020
Yerrabi: Coe, Orr and Pettersson form a cycle.
Loading
Loading