Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 6 5001 1851698519

Comments
SecurePoll elects candidates 1, 2, 3 and 4.

OpenSTV elects 1, 2, 3, 4, 19 and 20 (the last two being random).

This is a slightly modified version of 20_6_5000_1301235635.

Election setup

 * Candidates: 20
 * Seats: 6
 * Votes: 5001

Actual
Output from SecurePoll : https://phabricator.wikimedia.org/P16849

Elected
Election for 6 seats with 20 candidates. Total 5,001 votes.


 * 1) "2"
 * 2) "1"
 * 3) "3"
 * 4) "4"
 * 5) This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "19", "18", "17", "16", "15", "14", "20"
 * 6) This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "19", "18", "17", "16", "15", "14", "20"

Eliminated/Not elected

 * "10"
 * "9"
 * "12"
 * "13"
 * "8"
 * "7"
 * "6"
 * "5"
 * "11"
 * "19"
 * "18"
 * "17"
 * "16"
 * "15"
 * "14"
 * "20"

Rounds table
The following table describes the calculations that happened in order to achieve the result above. In each round of calculation, the candidate(s) who achieved more votes than the quota are declared elected. Their surplus votes above the quota are redistributed to the remaining candidates. If nobody achieves the quota, the lowest ranking candidate is eliminated and their votes are redistributed to the remaining candidates. To understand this better, please refer to this link. (Results from 14:17, 31 August 2021)

Expected
Output from OpenSTV: https://phabricator.wikimedia.org/P16850

Files
array ( 10 =>   array ( 'count' => 198, 'rank' => array (     1 => 10,    ), ), 13 =>   array ( 'count' => 198, 'rank' => array (     1 => 13,    ), ), 17 =>   array ( 'count' => 199, 'rank' => array (     1 => 17,    ), ), 12 =>   array ( 'count' => 198, 'rank' => array (     1 => 12,    ), ), 14 =>   array ( 'count' => 199, 'rank' => array (     1 => 14,    ), ), 11 =>   array ( 'count' => 198, 'rank' => array (     1 => 11,    ), ), 8 =>   array ( 'count' => 198, 'rank' => array (     1 => 8,    ), ), 6 =>   array ( 'count' => 198, 'rank' => array (     1 => 6,    ), ), 7 =>   array ( 'count' => 198, 'rank' => array (     1 => 7,    ), ), 15 =>   array ( 'count' => 199, 'rank' => array (     1 => 15,    ), ), 1 =>   array ( 'count' => 714, 'rank' => array (     1 => 1,    ), ), 19 =>   array ( 'count' => 199, 'rank' => array (     1 => 19,    ), ), 20 =>   array ( 'count' => 199, 'rank' => array (     1 => 20,    ), ), 16 =>   array ( 'count' => 199, 'rank' => array (     1 => 16,    ), ), 18 =>   array ( 'count' => 199, 'rank' => array (     1 => 18,    ), ), 5 =>   array ( 'count' => 198, 'rank' => array (     1 => 5,    ), ), 3 =>   array ( 'count' => 198, 'rank' => array (     1 => 3,    ), ), 4 =>   array ( 'count' => 198, 'rank' => array (     1 => 4,    ), ), '2_1' =>   array ( 'count' => 286, 'rank' => array (     1 => 2,      2 => 1,    ), ), '2_3' =>   array ( 'count' => 229, 'rank' => array (     1 => 2,      2 => 3,    ), ), '2_4' =>   array ( 'count' => 200, 'rank' => array (     1 => 2,      2 => 4,    ), ), 9 =>   array ( 'count' => 198, 'rank' => array (     1 => 9,    ), ), 2 =>   array ( 'count' => 1, 'rank' => array (     1 => 2,    ), ), )
 * blt: https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_6_5001_1851698519.blt
 * php:

Environment

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