Anti-Harassment Tools/SecurePoll Improvements/Test Results/math-stackexchange-com-2012-election-results

Comments
SecurePoll and OpenSTV agree on elected candidates.

SO lists two extra winners for that election, even though the .blt file only has 2 seats. I could not find any explanation of this.

I re-ran SecurePoll with 4 seats, and the elected candidates were the same as listed by stack overflow.

Election: https://math.stackexchange.com/election/3

Election setup

 * Candidates: 8
 * Seats: 4
 * Votes: 363

Actual results latest
SecurePoll tally page (patch 28):

Elected
Election for 4 seats with 8 candidates. Total 363 votes.


 * 1) "Candidate 1"
 * 2) "Candidate 2"
 * 3) "Candidate 6"
 * 4) "Candidate 7"

Eliminated

 * "Candidate 8"

Rounds table
(Results from 14:02, 29 July 2021)

Actual results archive
Patch 17: Output from SecurePoll: https://phabricator.wikimedia.org/P16885

Expected
Output from OpenSTV: https://math.stackexchange.com/election/3 Loading ballots from file math-stackexchange-com-2012-election-results.blt. Ballot file contains 8 candidates and 363 ballots. No candidates have withdrawn. Ballot file contains 363 non-empty ballots.

Counting votes for Mathematics Stack Exchange Moderator Election 2012 using Meek STV. 8 candidates running for 4 seats.

R|Candidate 1|Candidate 2|Candidate 3|Candidate 4|Candidate 5|Candidate 6 |          |           |           |           |           |             |---+---+---+---+---+---  |Candidate 7|Candidate 8|Exhausted  |Surplus    |Threshold |          |           |           |           |

=
============================================================= 1| 156.000000| 74.000000|   6.000000|  10.000000|  11.000000|  53.000000  |  52.000000|   1.000000|   0.000000|  84.799998|  72.600001  |---  | Count of first choices. Candidates Candidate 1 and Candidate 2 have | reached the threshold and are elected.

=
============================================================= 2| 72.758534| 109.315148|   7.098261|  13.370455|  14.447435|  69.735545  |  65.501089|   2.603845|   8.169688|  40.141556|  70.966063  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 1, 0.465385 and Candidate 2, | 0.981082.

=
============================================================= 3| 73.778193|  71.477270|   7.653530|  16.412962|  18.898795|  82.924691  |  78.084352|   2.638240|  11.131967|  24.770078|  70.373607  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 1, 0.453920 and Candidate 2, | 0.636907. Candidates Candidate 6 and Candidate 7 have reached the | threshold and are elected.

Winners are Candidate 1, Candidate 2, Candidate 6, and Candidate 7.

Files

 * blt: https://math.stackexchange.com/election/download-result/3
 * php:

Environment

 * Where you tested: local docker using phpunit
 * Latest version of SecurePoll tested:
 * commit 010a55df713367194b6772a07013cb667c333072 (patch 28 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704454/)
 * commit dedf92f6aa5d2a1c4ffe7935f1c695623587c26d (patch 18 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704210/)