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

Comments
SecurePoll and OpenSTV agree on elected candidates.

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

Election setup

 * Candidates: 9
 * Seats: 4
 * Votes: 405

Actual results latest
SecurePoll tally page (patch 28):

Elected
Election for 4 seats with 9 candidates. Total 405 votes.


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

Eliminated

 * "Candidate 8"
 * "Candidate 9"
 * "Candidate 5"
 * "Candidate 2"

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

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

Expected
Output from OpenSTV: https://math.stackexchange.com/election/4 Loading ballots from file math-stackexchange-com-2013-election-results.blt. Ballot file contains 9 candidates and 405 ballots. No candidates have withdrawn. Ballot file contains 405 non-empty ballots.

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

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

=
============================================================= 1| 50.000000|  23.000000| 115.000000|  65.000000|   8.000000|  72.000000  |  63.000000|   4.000000|   5.000000|   0.000000|  33.999999|  81.000001  |---  | Count of first choices. Candidate Candidate 3 has reached the | threshold and is elected.

=
============================================================= 2| 55.321736|  27.139128|  81.000020|  71.208692|   8.591304|  79.686952  |  71.869560|   4.000000|   5.000000|   1.182608|   0.236541|  80.763479  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 3, 0.704348.

=
============================================================= 3| 66.799996|           |  88.043500|  76.095648|           |  87.573908  |  81.234776|           |           |   5.252172|  17.003486|  79.949566  |---  | Count after eliminating Candidate 2, Candidate 5, Candidate 8, and | Candidate 9 and transferring votes. All losing candidates are | eliminated. Candidates Candidate 6 and Candidate 7 have reached the | threshold and are elected.

=
============================================================= 4| 69.284754|           |  81.217913|  80.141567|           |  81.948233  |  84.274120|           |           |   8.133413|  10.088561|  79.373318  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 3, 0.639597; Candidate 6, | 0.912939; and Candidate 7, 0.984180. Candidate Candidate 4 has reached | the threshold and is elected.

Winners are Candidate 3, Candidate 4, Candidate 6, and Candidate 7.

Files

 * blt: https://math.stackexchange.com/election/download-result/4
 * 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/)