Anti-Harassment Tools/SecurePoll Improvements/Test Results/stackoverflow-com-2015-election-results 2

Comments
SecurePoll and OpenSTV agree on elected candidates.

Election setup

 * Candidates: 10
 * Seats: 3
 * Votes: 26994

Actual results latest
SecurePoll tally page (patch 27):

Elected

 * 1) "Candidate 8"
 * 2) "Candidate 5"
 * 3) "Candidate 4"

Eliminated

 * "Candidate 6"
 * "Candidate 3"
 * "Candidate 1"
 * "Candidate 7"
 * "Candidate 2"
 * "Candidate 9"

Rounds table
(Results from 13:24, 28 July 2021)

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

Expected
Output from OpenSTV: https://stackoverflow.com/election/7 Loading ballots from file stackoverflow-com-2015-election-results_2.blt. Ballot file contains 10 candidates and 26994 ballots. No candidates have withdrawn. Ballot file contains 26994 non-empty ballots.

Counting votes for Stack Overflow Moderator Election 2015 using Meek STV. 10 candidates running for 3 seats.

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

=
================================================================ 1|  2229.000000|   2210.000000|   1428.000000|   2844.000000|   3886.000000  |   1378.000000|   2423.000000|   5039.000000|   2751.000000|   2806.000000  |      0.000000|      0.000000|   6748.500001  |--  | Count of first choices.

=
================================================================ 2|  2343.000000|   2338.000000|   1533.000000|   2970.000000|   4065.000000  |              |   2577.000000|   5246.000000|   2878.000000|   2971.000000  |     73.000000|      0.000000|   6730.250001  |--  | Count after eliminating Candidate 6 and transferring votes. All losing | candidates are eliminated.

=
================================================================ 3|  2501.000000|   2545.000000|              |   3129.000000|   4267.000000  |              |   2710.000000|   5470.000000|   3069.000000|   3159.000000  |    144.000000|      0.000000|   6712.500001  |--  | Count after eliminating Candidate 3 and transferring votes. All losing | candidates are eliminated.

=
================================================================ 4|             |   2964.000000|              |   3562.000000|   4566.000000  |              |   2957.000000|   5872.000000|   3336.000000|   3391.000000  |    346.000000|      0.000000|   6662.000001  |--  | Count after eliminating Candidate 1 and transferring votes. All losing | candidates are eliminated.

=
================================================================ 5|             |   3216.000000|              |   4013.000000|   5203.000000  |              |              |   6461.000000|   3665.000000|   3744.000000  |    692.000000|      0.000000|   6575.500001  |--  | Count after eliminating Candidate 7 and transferring votes. All losing | candidates are eliminated.

=
================================================================ 6|             |              |              |   4417.000000|   5722.000000  |              |              |   7051.000000|   4020.000000|   4162.000000  |   1622.000000|    707.999999|   6343.000001  |--  | Count after eliminating Candidate 2 and transferring votes. All losing | candidates are eliminated. Candidate Candidate 8 has reached the | threshold and is elected.

=
================================================================ 7|             |              |              |   4542.413339|   5902.237745  |              |              |   6343.002039|   4127.640592|   4260.904835  |   1817.801450|     48.952401|   6294.049638  |--  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 8, 0.899589.

=
================================================================ 8|             |              |              |   5040.884853|   6590.842550  |              |              |   7187.716110|              |   4995.288268  |   3179.268219|   1871.192768|   5953.682946  |--  | Count after eliminating Candidate 9 and transferring votes. All losing | candidates are eliminated. Candidate Candidate 5 has reached the | threshold and is elected.

=
================================================================ 9|             |              |              |   5366.176343|   6239.694125  |              |              |   6085.292730|              |   5264.858500  |   4037.978302|    846.976005|   5739.005425  |--  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 5, 0.903327 and Candidate 8, | 0.745142.

=
================================================================ 10|             |              |              |   5508.877387|   5811.227160  |              |              |   5832.075567|              |   5381.257582  |   4460.562304|    376.583877|   5633.359425  |--  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 5, 0.830842 and Candidate 8, | 0.702740.

=
================================================================ 11|             |              |              |   5573.304586|   5672.893809  |              |              |   5664.900350|              |   5433.530508  |   4649.370747|    165.479531|   5586.157314  |--  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 5, 0.805412 and Candidate 8, | 0.678796.

=
================================================================ 12|             |              |              |   5601.424926|   5601.500445  |              |              |   5601.219510|              |   5456.275262  |   4733.579857|    108.829773|   5565.105036  |--  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: Candidate 5, 0.793098 and Candidate 8, | 0.669361. Candidate Candidate 4 has reached the threshold and is elected.

Winners are Candidate 4, Candidate 5, and Candidate 8.

Files

 * blt: https://stackoverflow.com/election/download-result/7
 * php:

Environment

 * Where you tested: local docker using phpunit
 * Latest version of SecurePoll tested:
 * commit 89ccd71c1af2a3e1cde1891ada0626ef6138d7e3 (patch 27 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704454/)
 * commit 851050be43c9376575d497f7c321902b42772562 (patch 15 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704210/)