Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 2 5200 1308507669

Comments
SecurePoll and OpenSTV agree on elected candidates.

Election setup

 * Candidates: 20
 * Seats: 2
 * Votes: 5200

Actual
Output from SecurePoll: 20_2_5200_1308507669/actual

Expected
Output from OpenSTV: Loading ballots from file 20_2_5200_1308507669.blt. Ballot file contains 20 candidates and 5200 ballots. No candidates have withdrawn. Ballot file contains 5200 non-empty ballots.

Counting votes for ElectionTitle using Meek STV. 20 candidates running for 2 seats.

R|1         |2          |3          |4          |5          |6 |---+---+---+---+---+--- |7          |8          |9          |10         |11         |12           |---+---+---+---+---+---  |13         |14         |15         |16         |17         |18           |---+---+---+---+---+---  |19         |20         |Exhausted  |Surplus    |Threshold

=
============================================================= 1|1734.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000  | 231.000000| 231.000000| 231.000000| 232.000000|   0.000000|   0.000000  |   0.000000|   0.000000|   0.000000|   0.666666|1733.333334  |---  | Count of first choices. Candidate 1 has reached the threshold and is | elected.

=
============================================================= 2|1734.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000  | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           |   0.000000|   0.666666|1733.333334  |---  | Count after eliminating 17, 18, 19, and 20 and transferring votes. All | losing candidates are eliminated.

=
============================================================= 3|1733.334144| 231.665856| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000  | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           |   0.000000|   0.000810|1733.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.999616.

=
============================================================= 4|1733.334144| 231.665856| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000| 231.000000  | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           |   0.000000|   0.000810|1733.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.999616.

=
============================================================= 5|1733.334144| 231.665856| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           | 231.000000|  77.000810|1656.333334  |---  | Count after eliminating 12 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 6, 7, 8, 9, 10, | 11, 12, 13, 14, and 15 were tied when choosing candidates to | eliminate. Candidate 12 was chosen by breaking the tie randomly.

=
============================================================= 6|1656.334140| 308.665860| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           | 231.000000|   0.000806|1656.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.955210.

=
============================================================= 7|1656.334140| 308.665860| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             | 231.000000| 231.000000| 231.000000| 232.000000|           |             |           |           | 231.000000|   0.000806|1656.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.955210.

=
============================================================= 8|1656.334140| 308.665860| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 462.000000|  77.000806|1579.333334  |---  | Count after eliminating 13 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 6, 7, 8, 9, 10, | 11, 13, 14, and 15 were tied when choosing candidates to eliminate. | Candidate 13 was chosen by breaking the tie randomly.

=
============================================================= 9|1579.334136| 385.665864| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 462.000000|   0.000802|1579.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.910804.

=
============================================================= 10|1579.334136| 385.665864| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000| 231.000000| 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 462.000000|   0.000802|1579.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.910804.

=
============================================================= 11|1579.334136| 385.665864| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000|           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 693.000000|  77.000802|1502.333334  |---  | Count after eliminating 10 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 6, 7, 8, 9, 10, | 11, 14, and 15 were tied when choosing candidates to eliminate. | Candidate 10 was chosen by breaking the tie randomly.

=
============================================================= 12|1502.334132| 462.665868| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000|           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 693.000000|   0.000798|1502.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.866398.

=
============================================================= 13|1502.334132| 462.665868| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000| 231.000000|           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 693.000000|   0.000798|1502.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.866398.

=
============================================================= 14|1502.334132| 462.665868| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 924.000000|  77.000798|1425.333334  |---  | Count after eliminating 9 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 6, 7, 8, 9, 11, | 14, and 15 were tied when choosing candidates to eliminate. Candidate | 9 was chosen by breaking the tie randomly.

=
============================================================= 15|1425.334128| 539.665872| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 924.000000|   0.000794|1425.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.821992.

=
============================================================= 16|1425.334128| 539.665872| 231.000000| 231.000000| 231.000000| 231.000000 | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           | 924.000000|   0.000794|1425.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.821992.

=
============================================================= 17|1425.334128| 539.665872| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           |1155.000000|  77.000794|1348.333334  |---  | Count after eliminating 6 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 6, 7, 8, 11, 14, | and 15 were tied when choosing candidates to eliminate. Candidate 6 | was chosen by breaking the tie randomly.

=
============================================================= 18|1348.334124| 616.665876| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           |1155.000000|   0.000790|1348.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.777586.

=
============================================================= 19|1348.334124| 616.665876| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           | 231.000000| 231.000000| 232.000000|           |             |           |           |1155.000000|   0.000790|1348.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.777586.

=
============================================================= 20|1348.334124| 616.665876| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1386.000000|  77.000790|1271.333334  |---  | Count after eliminating 14 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 7, 8, 11, 14, | and 15 were tied when choosing candidates to eliminate. Candidate 14 | was chosen by breaking the tie randomly.

=
============================================================= 21|1271.334120| 693.665880| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1386.000000|   0.000786|1271.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.733180.

=
============================================================= 22|1271.334120| 693.665880| 231.000000| 231.000000| 231.000000|            | 231.000000| 231.000000|           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1386.000000|   0.000786|1271.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.733180.

=
============================================================= 23|1271.334120| 693.665880| 231.000000| 231.000000| 231.000000|            | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1617.000000|  77.000786|1194.333334  |---  | Count after eliminating 8 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 7, 8, 11, and 15 | were tied when choosing candidates to eliminate. Candidate 8 was | chosen by breaking the tie randomly.

=
============================================================= 24|1194.334116| 770.665884| 231.000000| 231.000000| 231.000000|            | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1617.000000|   0.000782|1194.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.688774.

=
============================================================= 25|1194.334116| 770.665884| 231.000000| 231.000000| 231.000000|            | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1617.000000|   0.000782|1194.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.688774.

=
============================================================= 26|1194.334116| 770.665884| 231.000000|          | 231.000000|             | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1848.000000|  77.000782|1117.333334  |---  | Count after eliminating 4 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 4, 5, 7, 11, and 15 | were tied when choosing candidates to eliminate. Candidate 4 was | chosen by breaking the tie randomly.

=
============================================================= 27|1117.334112| 847.665888| 231.000000|          | 231.000000|             | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1848.000000|   0.000778|1117.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.644368.

=
============================================================= 28|1117.334112| 847.665888| 231.000000|          | 231.000000|             | 231.000000|           |           |           | 231.000000|             |           |           | 231.000000| 232.000000|           |             |           |           |1848.000000|   0.000778|1117.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.644368.

=
============================================================= 29|1117.334112| 847.665888| 231.000000|          | 231.000000|             | 231.000000|           |           |           |           |             |           |           | 231.000000| 232.000000|           |             |           |           |2079.000000|  77.000778|1040.333334  |---  | Count after eliminating 11 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 5, 7, 11, and 15 were | tied when choosing candidates to eliminate. Candidate 11 was chosen by | breaking the tie randomly.

=
============================================================= 30|1040.334108| 924.665892| 231.000000|          | 231.000000|             | 231.000000|           |           |           |           |             |           |           | 231.000000| 232.000000|           |             |           |           |2079.000000|   0.000774|1040.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.599962.

=
============================================================= 31|1040.334108| 924.665892| 231.000000|          | 231.000000|             | 231.000000|           |           |           |           |             |           |           | 231.000000| 232.000000|           |             |           |           |2079.000000|   0.000774|1040.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.599962.

=
============================================================= 32|1040.334108| 924.665892| 231.000000|          |           |             | 231.000000|           |           |           |           |             |           |           | 231.000000| 232.000000|           |             |           |           |2310.000000|  77.000774| 963.333334  |---  | Count after eliminating 5 and transferring votes. Candidates tied | within precision of computations. Candidates 3, 5, 7, and 15 were tied | when choosing candidates to eliminate. Candidate 5 was chosen by | breaking the tie randomly.

=
============================================================= 33| 963.334104|1001.665896| 231.000000|          |           |             | 231.000000|           |           |           |           |             |           |           | 231.000000| 232.000000|           |             |           |           |2310.000000|  38.333332| 963.333334  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.555556. Candidate 2 has reached the | threshold and is elected.

Winners are 1 and 2.

Files
array ( 13 =>   array ( 'count' => 231, 'rank' => array (     1 => 13,    ), ), 9 =>   array ( 'count' => 231, 'rank' => array (     1 => 9,    ), ), 8 =>   array ( 'count' => 231, 'rank' => array (     1 => 8,    ), ), 5 =>   array ( 'count' => 231, 'rank' => array (     1 => 5,    ), ), 14 =>   array ( 'count' => 231, 'rank' => array (     1 => 14,    ), ), 7 =>   array ( 'count' => 231, 'rank' => array (     1 => 7,    ), ), 16 =>   array ( 'count' => 232, 'rank' => array (     1 => 16,    ), ), '1_2' =>   array ( 'count' => 1734, 'rank' => array (     1 => 1,      2 => 2,    ), ), 4 =>   array ( 'count' => 231, 'rank' => array (     1 => 4,    ), ), 15 =>   array ( 'count' => 231, 'rank' => array (     1 => 15,    ), ), 10 =>   array ( 'count' => 231, 'rank' => array (     1 => 10,    ), ), 12 =>   array ( 'count' => 231, 'rank' => array (     1 => 12,    ), ), 3 =>   array ( 'count' => 231, 'rank' => array (     1 => 3,    ), ), 2 =>   array ( 'count' => 231, 'rank' => array (     1 => 2,    ), ), 11 =>   array ( 'count' => 231, 'rank' => array (     1 => 11,    ), ), 6 =>   array ( 'count' => 231, 'rank' => array (     1 => 6,    ), ), )
 * blt: https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_2_5200_1308507669.blt
 * php:

Environment

 * Where you tested: local docker using phpunit
 * Version of SecurePoll: commit 7456aea7198d58e058d56ed4c1fd550354803cd5 (patch 24 from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704454/)