Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 4 5000 1685033555/archive

From mediawiki.org

Actual Tally: Secure Poll commit unknown[edit]

Elected[edit]

Election for 4 seats with 20 candidates. Total 5,000 votes.

  1. This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "1", "3", "4", "5", "2"
  2. This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "1", "3", "4", "5", "2"
  3. This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "1", "3", "4", "5", "2"
  4. This seat could not be filled because no candidates fulfill the criteria. The last eliminated candidates were: "1", "3", "4", "5", "2"

Eliminated/Not elected[edit]

  • "14"
  • "19"
  • "18"
  • "17"
  • "16"
  • "15"
  • "11"
  • "13"
  • "12"
  • "10"
  • "9"
  • "8"
  • "7"
  • "6"
  • "20"
  • "1"
  • "3"
  • "4"
  • "5"
  • "2"

Rounds table[edit]

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.

Round Number Tally Result
1
  1. "1": 1,000
  2. "3": 1,000
  3. "4": 1,000
  4. "5": 1,000
  5. "2": 1,000
  6. "14": 0
  7. "19": 0
  8. "18": 0
  9. "17": 0
  10. "16": 0
  11. "15": 0
  12. "11": 0
  13. "13": 0
  14. "12": 0
  15. "10": 0
  16. "9": 0
  17. "8": 0
  18. "7": 0
  19. "6": 0
  20. "20": 0
Quota: 1,000.000001
2
  1. "1": 1,000
  2. "3": 1,000
  3. "4": 1,000
  4. "5": 1,000
  5. "2": 1,000
  6. "14": 0
  7. "19": 0
  8. "18": 0
  9. "17": 0
  10. "16": 0
  11. "15": 0
  12. "11": 0
  13. "13": 0
  14. "12": 0
  15. "10": 0
  16. "9": 0
  17. "8": 0
  18. "7": 0
  19. "6": 0
  20. "20": 0
Quota: 1,000.000001

Eliminated: "14", "19", "18", "17", "16", "15", "11", "13", "12", "10", "9", "8", "7", "6", "20"

3
  1. "1": 1,000
  2. "3": 1,000
  3. "4": 1,000
  4. "5": 1,000
  5. "2": 1,000
Quota: 1,000.000001

Eliminated: "1", "3", "4", "5", "2"

(Results from 04:20, 1 September 2021)

Actual commit 7456aea7198d58e058d56ed4c1fd550354803cd5[edit]

Output of SecurePoll (var_export( $this->tallier->resultsLog );):

<?php return array (
  'elected' => 
  array (
  ),
  'eliminated' => 
  array (
    0 => 14,
    1 => 19,
    2 => 18,
    3 => 17,
    4 => 16,
    5 => 15,
    6 => 11,
    7 => 13,
    8 => 12,
    9 => 10,
    10 => 9,
    11 => 8,
    12 => 7,
    13 => 6,
    14 => 20,
    15 => 1,
    16 => 3,
    17 => 4,
    18 => 5,
    19 => 2,
  ),
  'rounds' => 
  array (
    0 => 
    array (
      'round' => 1,
      'surplus' => 0,
      'rankings' => 
      array (
        1 => 
        array (
          'votes' => 0,
          'earned' => 1000,
          'total' => 1000,
        ),
        2 => 
        array (
          'votes' => 0,
          'earned' => 1000,
          'total' => 1000,
        ),
        3 => 
        array (
          'votes' => 0,
          'earned' => 1000,
          'total' => 1000,
        ),
        4 => 
        array (
          'votes' => 0,
          'earned' => 1000,
          'total' => 1000,
        ),
        5 => 
        array (
          'votes' => 0,
          'earned' => 1000,
          'total' => 1000,
        ),
        6 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        7 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        8 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        9 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        10 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        11 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        12 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        13 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        14 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        15 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        16 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        17 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        18 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        19 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        20 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
      ),
      'totalVotes' => 5000,
      'keepFactors' => 
      array (
        1 => 1,
        2 => 1,
        3 => 1,
        4 => 1,
        5 => 1,
        6 => 1,
        7 => 1,
        8 => 1,
        9 => 1,
        10 => 1,
        11 => 1,
        12 => 1,
        13 => 1,
        14 => 1,
        15 => 1,
        16 => 1,
        17 => 1,
        18 => 1,
        19 => 1,
        20 => 1,
      ),
      'quota' => 1000.000001,
      'elected' => 
      array (
      ),
      'eliminated' => 
      array (
      ),
    ),
    1 => 
    array (
      'round' => 2,
      'elected' => 
      array (
      ),
      'eliminated' => 
      array (
        0 => 14,
        1 => 19,
        2 => 18,
        3 => 17,
        4 => 16,
        5 => 15,
        6 => 11,
        7 => 13,
        8 => 12,
        9 => 10,
        10 => 9,
        11 => 8,
        12 => 7,
        13 => 6,
        14 => 20,
      ),
      'surplus' => 0,
      'keepFactors' => 
      array (
        1 => 1,
        2 => 1,
        3 => 1,
        4 => 1,
        5 => 1,
        6 => 1,
        7 => 1,
        8 => 1,
        9 => 1,
        10 => 1,
        11 => 1,
        12 => 1,
        13 => 1,
        14 => 1,
        15 => 1,
        16 => 1,
        17 => 1,
        18 => 1,
        19 => 1,
        20 => 1,
      ),
      'quota' => 1000.000001,
      'rankings' => 
      array (
        1 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        2 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        3 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        4 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        5 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        6 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        7 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        8 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        9 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        10 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        11 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        12 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        13 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        14 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        15 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        16 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        17 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        18 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        19 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        20 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
      ),
      'totalVotes' => 5000,
    ),
    2 => 
    array (
      'round' => 3,
      'elected' => 
      array (
      ),
      'eliminated' => 
      array (
        0 => 1,
        1 => 3,
        2 => 4,
        3 => 5,
        4 => 2,
      ),
      'surplus' => 0,
      'keepFactors' => 
      array (
        1 => 1,
        2 => 1,
        3 => 1,
        4 => 1,
        5 => 1,
        6 => 0,
        7 => 0,
        8 => 0,
        9 => 0,
        10 => 0,
        11 => 0,
        12 => 0,
        13 => 0,
        14 => 0,
        15 => 0,
        16 => 0,
        17 => 0,
        18 => 0,
        19 => 0,
        20 => 0,
      ),
      'quota' => 1000.000001,
      'rankings' => 
      array (
        1 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        2 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        3 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        4 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        5 => 
        array (
          'votes' => 1000,
          'earned' => 0,
          'total' => 1000,
        ),
        6 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        7 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        8 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        9 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        10 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        11 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        12 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        13 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        14 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        15 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        16 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        17 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        18 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        19 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
        20 => 
        array (
          'votes' => 0,
          'earned' => 0,
          'total' => 0,
        ),
      ),
      'totalVotes' => 5000,
    ),
  ),
);