# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots["test_public_compute_sample_sizes 1-vote margin"] = {
    "ballotComparison": {
        "0": 1999,
        "1": 1999,
        "10": 1999,
        "11": 1999,
        "12": 1999,
        "13": 1999,
        "14": 1999,
        "15": 1999,
        "16": 1999,
        "17": 1999,
        "18": 1999,
        "19": 1999,
        "2": 1999,
        "20": 1999,
        "3": 1999,
        "4": 1999,
        "5": 1999,
        "6": 1999,
        "7": 1999,
        "8": 1999,
        "9": 1999,
    },
    "ballotPolling": {
        "0": 1999,
        "1": 1999,
        "10": 1999,
        "11": 1999,
        "12": 1999,
        "13": 1999,
        "14": 1999,
        "15": 1999,
        "16": 1999,
        "17": 1999,
        "18": 1999,
        "19": 1999,
        "2": 1999,
        "20": 1999,
        "3": 1999,
        "4": 1999,
        "5": 1999,
        "6": 1999,
        "7": 1999,
        "8": 1999,
        "9": 1999,
    },
    "batchComparison": {
        "0": 1999,
        "1": 1999,
        "10": 1999,
        "11": 1999,
        "12": 1999,
        "13": 1999,
        "14": 1999,
        "15": 1999,
        "16": 1999,
        "17": 1999,
        "18": 1999,
        "19": 1999,
        "2": 1999,
        "20": 1999,
        "3": 1999,
        "4": 1999,
        "5": 1999,
        "6": 1999,
        "7": 1999,
        "8": 1999,
        "9": 1999,
    },
}

snapshots[
    "test_public_compute_sample_sizes 1-vote margin with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "ballotPolling": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "batchComparison": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
}

snapshots["test_public_compute_sample_sizes 10-vote margin"] = {
    "ballotComparison": {
        "0": 1990,
        "1": 1990,
        "10": 1171,
        "11": 1131,
        "12": 1095,
        "13": 1062,
        "14": 1031,
        "15": 1003,
        "16": 867,
        "17": 842,
        "18": 819,
        "19": 796,
        "2": 1945,
        "20": 775,
        "3": 1668,
        "4": 1549,
        "5": 1457,
        "6": 1382,
        "7": 1318,
        "8": 1263,
        "9": 1214,
    },
    "ballotPolling": {
        "0": 1990,
        "1": 1990,
        "10": 1990,
        "11": 1990,
        "12": 1990,
        "13": 1990,
        "14": 1990,
        "15": 1990,
        "16": 1990,
        "17": 1990,
        "18": 1990,
        "19": 1990,
        "2": 1990,
        "20": 1990,
        "3": 1990,
        "4": 1990,
        "5": 1990,
        "6": 1990,
        "7": 1990,
        "8": 1990,
        "9": 1990,
    },
    "batchComparison": {
        "0": 1990,
        "1": 919,
        "10": 461,
        "11": 442,
        "12": 424,
        "13": 409,
        "14": 394,
        "15": 380,
        "16": 367,
        "17": 355,
        "18": 344,
        "19": 333,
        "2": 781,
        "20": 323,
        "3": 700,
        "4": 643,
        "5": 599,
        "6": 562,
        "7": 532,
        "8": 505,
        "9": 482,
    },
}

snapshots[
    "test_public_compute_sample_sizes 10-vote margin with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000,
        "1": 2000,
        "10": 1176,
        "11": 1137,
        "12": 1101,
        "13": 1067,
        "14": 1037,
        "15": 1008,
        "16": 872,
        "17": 846,
        "18": 823,
        "19": 800,
        "2": 1955,
        "20": 779,
        "3": 1677,
        "4": 1557,
        "5": 1465,
        "6": 1389,
        "7": 1325,
        "8": 1269,
        "9": 1220,
    },
    "ballotPolling": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "batchComparison": {
        "0": 2000,
        "1": 924,
        "10": 463,
        "11": 444,
        "12": 427,
        "13": 411,
        "14": 396,
        "15": 382,
        "16": 369,
        "17": 357,
        "18": 345,
        "19": 335,
        "2": 785,
        "20": 324,
        "3": 704,
        "4": 646,
        "5": 602,
        "6": 565,
        "7": 534,
        "8": 508,
        "9": 484,
    },
}

snapshots["test_public_compute_sample_sizes 100-vote margin"] = {
    "ballotComparison": {
        "0": 1900,
        "1": 193,
        "10": 102,
        "11": 98,
        "12": 95,
        "13": 91,
        "14": 89,
        "15": 86,
        "16": 83,
        "17": 81,
        "18": 79,
        "19": 76,
        "2": 165,
        "20": 74,
        "3": 149,
        "4": 138,
        "5": 129,
        "6": 122,
        "7": 116,
        "8": 111,
        "9": 106,
    },
    "ballotPolling": {
        "0": 1900,
        "1": 1900,
        "10": 1900,
        "11": 1900,
        "12": 1900,
        "13": 1900,
        "14": 1900,
        "15": 1900,
        "16": 1900,
        "17": 1900,
        "18": 1900,
        "19": 1900,
        "2": 1900,
        "20": 1900,
        "3": 1900,
        "4": 1900,
        "5": 1900,
        "6": 1900,
        "7": 1900,
        "8": 1900,
        "9": 1900,
    },
    "batchComparison": {
        "0": 1900,
        "1": 90,
        "10": 46,
        "11": 44,
        "12": 43,
        "13": 41,
        "14": 40,
        "15": 39,
        "16": 37,
        "17": 36,
        "18": 35,
        "19": 34,
        "2": 77,
        "20": 33,
        "3": 69,
        "4": 64,
        "5": 59,
        "6": 56,
        "7": 53,
        "8": 50,
        "9": 48,
    },
}

snapshots[
    "test_public_compute_sample_sizes 100-vote margin with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000,
        "1": 203,
        "10": 107,
        "11": 103,
        "12": 100,
        "13": 96,
        "14": 93,
        "15": 90,
        "16": 88,
        "17": 85,
        "18": 83,
        "19": 80,
        "2": 174,
        "20": 78,
        "3": 157,
        "4": 145,
        "5": 136,
        "6": 128,
        "7": 122,
        "8": 116,
        "9": 112,
    },
    "ballotPolling": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "batchComparison": {
        "0": 2000,
        "1": 95,
        "10": 49,
        "11": 47,
        "12": 45,
        "13": 43,
        "14": 42,
        "15": 40,
        "16": 39,
        "17": 38,
        "18": 37,
        "19": 36,
        "2": 81,
        "20": 35,
        "3": 73,
        "4": 67,
        "5": 62,
        "6": 59,
        "7": 56,
        "8": 53,
        "9": 51,
    },
}

snapshots["test_public_compute_sample_sizes 500-vote margin"] = {
    "ballotComparison": {
        "0": 1500,
        "1": 31,
        "10": 16,
        "11": 16,
        "12": 15,
        "13": 15,
        "14": 14,
        "15": 14,
        "16": 14,
        "17": 13,
        "18": 13,
        "19": 12,
        "2": 27,
        "20": 12,
        "3": 24,
        "4": 22,
        "5": 21,
        "6": 20,
        "7": 19,
        "8": 18,
        "9": 17,
    },
    "ballotPolling": {
        "0": 1500,
        "1": 181,
        "10": 123,
        "11": 120,
        "12": 120,
        "13": 117,
        "14": 114,
        "15": 112,
        "16": 111,
        "17": 109,
        "18": 109,
        "19": 106,
        "2": 164,
        "20": 104,
        "3": 156,
        "4": 148,
        "5": 142,
        "6": 137,
        "7": 134,
        "8": 131,
        "9": 126,
    },
    "batchComparison": {
        "0": 1500,
        "1": 16,
        "10": 9,
        "11": 9,
        "12": 9,
        "13": 9,
        "14": 8,
        "15": 8,
        "16": 8,
        "17": 8,
        "18": 8,
        "19": 7,
        "2": 14,
        "20": 7,
        "3": 13,
        "4": 12,
        "5": 11,
        "6": 11,
        "7": 10,
        "8": 10,
        "9": 10,
    },
}

snapshots[
    "test_public_compute_sample_sizes 500-vote margin with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000,
        "1": 41,
        "10": 22,
        "11": 21,
        "12": 20,
        "13": 20,
        "14": 19,
        "15": 18,
        "16": 18,
        "17": 17,
        "18": 17,
        "19": 16,
        "2": 35,
        "20": 16,
        "3": 32,
        "4": 29,
        "5": 28,
        "6": 26,
        "7": 25,
        "8": 24,
        "9": 23,
    },
    "ballotPolling": {
        "0": 2000,
        "1": 240,
        "10": 163,
        "11": 159,
        "12": 159,
        "13": 155,
        "14": 151,
        "15": 148,
        "16": 147,
        "17": 144,
        "18": 144,
        "19": 140,
        "2": 218,
        "20": 138,
        "3": 207,
        "4": 196,
        "5": 188,
        "6": 182,
        "7": 178,
        "8": 174,
        "9": 167,
    },
    "batchComparison": {
        "0": 2000,
        "1": 21,
        "10": 12,
        "11": 11,
        "12": 11,
        "13": 11,
        "14": 10,
        "15": 10,
        "16": 10,
        "17": 10,
        "18": 9,
        "19": 9,
        "2": 18,
        "20": 9,
        "3": 17,
        "4": 15,
        "5": 14,
        "6": 14,
        "7": 13,
        "8": 13,
        "9": 12,
    },
}

snapshots["test_public_compute_sample_sizes Landslide"] = {
    "ballotComparison": {
        "0": 1000,
        "1": 11,
        "10": 6,
        "11": 6,
        "12": 5,
        "13": 5,
        "14": 5,
        "15": 5,
        "16": 5,
        "17": 5,
        "18": 5,
        "19": 4,
        "2": 9,
        "20": 4,
        "3": 8,
        "4": 8,
        "5": 7,
        "6": 7,
        "7": 7,
        "8": 6,
        "9": 6,
    },
    "ballotPolling": {
        "0": 1000,
        "1": 1,
        "10": 1,
        "11": 1,
        "12": 1,
        "13": 1,
        "14": 1,
        "15": 1,
        "16": 1,
        "17": 1,
        "18": 1,
        "19": 1,
        "2": 1,
        "20": 1,
        "3": 1,
        "4": 1,
        "5": 1,
        "6": 1,
        "7": 1,
        "8": 1,
        "9": 1,
    },
    "batchComparison": {
        "0": 1000,
        "1": 7,
        "10": 5,
        "11": 5,
        "12": 5,
        "13": 5,
        "14": 4,
        "15": 4,
        "16": 4,
        "17": 4,
        "18": 4,
        "19": 4,
        "2": 6,
        "20": 4,
        "3": 6,
        "4": 6,
        "5": 5,
        "6": 5,
        "7": 5,
        "8": 5,
        "9": 5,
    },
}

snapshots["test_public_compute_sample_sizes Landslide with additional ballots cast"] = {
    "ballotComparison": {
        "0": 1001,
        "1": 11,
        "10": 6,
        "11": 6,
        "12": 5,
        "13": 5,
        "14": 5,
        "15": 5,
        "16": 5,
        "17": 5,
        "18": 5,
        "19": 5,
        "2": 9,
        "20": 4,
        "3": 8,
        "4": 8,
        "5": 7,
        "6": 7,
        "7": 7,
        "8": 6,
        "9": 6,
    },
    "ballotPolling": {
        "0": 1001,
        "1": 1,
        "10": 1,
        "11": 1,
        "12": 1,
        "13": 1,
        "14": 1,
        "15": 1,
        "16": 1,
        "17": 1,
        "18": 1,
        "19": 1,
        "2": 1,
        "20": 1,
        "3": 1,
        "4": 1,
        "5": 1,
        "6": 1,
        "7": 1,
        "8": 1,
        "9": 1,
    },
    "batchComparison": {
        "0": 1001,
        "1": 7,
        "10": 5,
        "11": 5,
        "12": 5,
        "13": 5,
        "14": 4,
        "15": 4,
        "16": 4,
        "17": 4,
        "18": 4,
        "19": 4,
        "2": 6,
        "20": 4,
        "3": 6,
        "4": 6,
        "5": 5,
        "6": 5,
        "7": 5,
        "8": 5,
        "9": 5,
    },
}

snapshots[
    "test_public_compute_sample_sizes Large number of additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000000000,
        "1": 2000000000,
        "10": 2000000000,
        "11": 2000000000,
        "12": 2000000000,
        "13": 2000000000,
        "14": 2000000000,
        "15": 2000000000,
        "16": 2000000000,
        "17": 2000000000,
        "18": 2000000000,
        "19": 2000000000,
        "2": 2000000000,
        "20": 2000000000,
        "3": 2000000000,
        "4": 2000000000,
        "5": 2000000000,
        "6": 2000000000,
        "7": 2000000000,
        "8": 2000000000,
        "9": 2000000000,
    },
    "ballotPolling": {
        "0": 2000000000,
        "1": 2000000000,
        "10": 2000000000,
        "11": 2000000000,
        "12": 2000000000,
        "13": 2000000000,
        "14": 2000000000,
        "15": 2000000000,
        "16": 2000000000,
        "17": 2000000000,
        "18": 2000000000,
        "19": 2000000000,
        "2": 2000000000,
        "20": 2000000000,
        "3": 2000000000,
        "4": 2000000000,
        "5": 2000000000,
        "6": 2000000000,
        "7": 2000000000,
        "8": 2000000000,
        "9": 2000000000,
    },
    "batchComparison": {
        "0": 2000000000,
        "1": 92103406,
        "10": 46051704,
        "11": 44145501,
        "12": 42405273,
        "13": 40804419,
        "14": 39322260,
        "15": 37942402,
        "16": 36651632,
        "17": 35439139,
        "18": 34295971,
        "19": 33214627,
        "2": 78240463,
        "20": 32188761,
        "3": 70131160,
        "4": 64377519,
        "5": 59914648,
        "6": 56268217,
        "7": 53185203,
        "8": 50514575,
        "9": 48158915,
    },
}

snapshots["test_public_compute_sample_sizes Large number of votes"] = {
    "ballotComparison": {
        "0": 1900000000,
        "1": 193,
        "10": 102,
        "11": 98,
        "12": 95,
        "13": 91,
        "14": 89,
        "15": 86,
        "16": 83,
        "17": 81,
        "18": 79,
        "19": 76,
        "2": 165,
        "20": 74,
        "3": 149,
        "4": 138,
        "5": 129,
        "6": 122,
        "7": 116,
        "8": 111,
        "9": 106,
    },
    "ballotPolling": {
        "0": 1900000000,
        "1": 7552,
        "10": 5155,
        "11": 5052,
        "12": 4956,
        "13": 4868,
        "14": 4785,
        "15": 4709,
        "16": 4636,
        "17": 4567,
        "18": 4503,
        "19": 4442,
        "2": 6852,
        "20": 4383,
        "3": 6433,
        "4": 6134,
        "5": 5900,
        "6": 5707,
        "7": 5542,
        "8": 5398,
        "9": 5270,
    },
    "batchComparison": {
        "0": 1900000000,
        "1": 90,
        "10": 46,
        "11": 44,
        "12": 43,
        "13": 41,
        "14": 40,
        "15": 39,
        "16": 37,
        "17": 36,
        "18": 35,
        "19": 34,
        "2": 77,
        "20": 33,
        "3": 69,
        "4": 64,
        "5": 59,
        "6": 56,
        "7": 53,
        "8": 50,
        "9": 48,
    },
}

snapshots[
    "test_public_compute_sample_sizes Large number of votes with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 2000000000,
        "1": 203,
        "10": 107,
        "11": 103,
        "12": 100,
        "13": 96,
        "14": 93,
        "15": 90,
        "16": 88,
        "17": 85,
        "18": 83,
        "19": 80,
        "2": 174,
        "20": 78,
        "3": 157,
        "4": 145,
        "5": 136,
        "6": 128,
        "7": 122,
        "8": 116,
        "9": 112,
    },
    "ballotPolling": {
        "0": 2000000000,
        "1": 7949,
        "10": 5426,
        "11": 5317,
        "12": 5216,
        "13": 5124,
        "14": 5036,
        "15": 4956,
        "16": 4879,
        "17": 4807,
        "18": 4739,
        "19": 4675,
        "2": 7212,
        "20": 4613,
        "3": 6771,
        "4": 6456,
        "5": 6210,
        "6": 6007,
        "7": 5833,
        "8": 5682,
        "9": 5547,
    },
    "batchComparison": {
        "0": 2000000000,
        "1": 95,
        "10": 49,
        "11": 47,
        "12": 45,
        "13": 43,
        "14": 42,
        "15": 40,
        "16": 39,
        "17": 38,
        "18": 37,
        "19": 36,
        "2": 81,
        "20": 35,
        "3": 73,
        "4": 67,
        "5": 62,
        "6": 59,
        "7": 56,
        "8": 53,
        "9": 51,
    },
}

snapshots[
    "test_public_compute_sample_sizes Large number of votes with small margin"
] = {
    "ballotComparison": {
        "0": 1999999,
        "1": 1999999,
        "10": 1999999,
        "11": 1999999,
        "12": 1999999,
        "13": 1999999,
        "14": 1999999,
        "15": 1999999,
        "16": 1999999,
        "17": 1999999,
        "18": 1999999,
        "19": 1999999,
        "2": 1999999,
        "20": 1999999,
        "3": 1999999,
        "4": 1999999,
        "5": 1999999,
        "6": 1999999,
        "7": 1999999,
        "8": 1999999,
        "9": 1999999,
    },
    "ballotPolling": {
        "0": 1999999,
        "1": 1999999,
        "10": 1999999,
        "11": 1999999,
        "12": 1999999,
        "13": 1999999,
        "14": 1999999,
        "15": 1999999,
        "16": 1999999,
        "17": 1999999,
        "18": 1999999,
        "19": 1999999,
        "2": 1999999,
        "20": 1999999,
        "3": 1999999,
        "4": 1999999,
        "5": 1999999,
        "6": 1999999,
        "7": 1999999,
        "8": 1999999,
        "9": 1999999,
    },
    "batchComparison": {
        "0": 1999999,
        "1": 1999999,
        "10": 1999999,
        "11": 1999999,
        "12": 1999999,
        "13": 1999999,
        "14": 1999999,
        "15": 1999999,
        "16": 1999999,
        "17": 1999999,
        "18": 1999999,
        "19": 1999999,
        "2": 1999999,
        "20": 1999999,
        "3": 1999999,
        "4": 1999999,
        "5": 1999999,
        "6": 1999999,
        "7": 1999999,
        "8": 1999999,
        "9": 1999999,
    },
}

snapshots["test_public_compute_sample_sizes Many candidates"] = {
    "ballotComparison": {
        "0": 3400,
        "1": 344,
        "10": 182,
        "11": 175,
        "12": 169,
        "13": 163,
        "14": 158,
        "15": 153,
        "16": 149,
        "17": 144,
        "18": 140,
        "19": 136,
        "2": 296,
        "20": 133,
        "3": 267,
        "4": 247,
        "5": 231,
        "6": 218,
        "7": 207,
        "8": 198,
        "9": 189,
    },
    "ballotPolling": {
        "0": 3400,
        "1": 3400,
        "10": 3400,
        "11": 3400,
        "12": 3400,
        "13": 3400,
        "14": 3400,
        "15": 3400,
        "16": 3400,
        "17": 3400,
        "18": 3400,
        "19": 3400,
        "2": 3400,
        "20": 3400,
        "3": 3400,
        "4": 3400,
        "5": 3400,
        "6": 3400,
        "7": 3400,
        "8": 3400,
        "9": 3400,
    },
    "batchComparison": {
        "0": 3400,
        "1": 159,
        "10": 81,
        "11": 78,
        "12": 75,
        "13": 72,
        "14": 69,
        "15": 67,
        "16": 65,
        "17": 63,
        "18": 61,
        "19": 59,
        "2": 136,
        "20": 57,
        "3": 122,
        "4": 112,
        "5": 104,
        "6": 98,
        "7": 93,
        "8": 88,
        "9": 84,
    },
}

snapshots["test_public_compute_sample_sizes Many candidates with multiple winners"] = {
    "ballotComparison": {
        "0": 3400,
        "1": 344,
        "10": 182,
        "11": 175,
        "12": 169,
        "13": 163,
        "14": 158,
        "15": 153,
        "16": 149,
        "17": 144,
        "18": 140,
        "19": 136,
        "2": 296,
        "20": 133,
        "3": 267,
        "4": 247,
        "5": 231,
        "6": 218,
        "7": 207,
        "8": 198,
        "9": 189,
    },
    "ballotPolling": {
        "0": 3400,
        "1": 3400,
        "10": 2694,
        "11": 2584,
        "12": 2483,
        "13": 2391,
        "14": 2305,
        "15": 2225,
        "16": 2151,
        "17": 2081,
        "18": 2015,
        "19": 1952,
        "2": 3400,
        "20": 1893,
        "3": 3400,
        "4": 3400,
        "5": 3400,
        "6": 3284,
        "7": 3106,
        "8": 2952,
        "9": 2815,
    },
    "batchComparison": {
        "0": 3400,
        "1": 159,
        "10": 81,
        "11": 78,
        "12": 75,
        "13": 72,
        "14": 69,
        "15": 67,
        "16": 65,
        "17": 63,
        "18": 61,
        "19": 59,
        "2": 136,
        "20": 57,
        "3": 122,
        "4": 112,
        "5": 104,
        "6": 98,
        "7": 93,
        "8": 88,
        "9": 84,
    },
}

snapshots["test_public_compute_sample_sizes Small number of votes"] = {
    "ballotComparison": {
        "0": 3,
        "1": 3,
        "10": 3,
        "11": 3,
        "12": 3,
        "13": 3,
        "14": 3,
        "15": 3,
        "16": 3,
        "17": 3,
        "18": 3,
        "19": 3,
        "2": 3,
        "20": 3,
        "3": 3,
        "4": 3,
        "5": 3,
        "6": 3,
        "7": 3,
        "8": 3,
        "9": 3,
    },
    "ballotPolling": {
        "0": 3,
        "1": 3,
        "10": 3,
        "11": 3,
        "12": 3,
        "13": 3,
        "14": 3,
        "15": 3,
        "16": 3,
        "17": 3,
        "18": 3,
        "19": 3,
        "2": 3,
        "20": 3,
        "3": 3,
        "4": 3,
        "5": 3,
        "6": 3,
        "7": 3,
        "8": 3,
        "9": 3,
    },
    "batchComparison": {
        "0": 3,
        "1": 3,
        "10": 3,
        "11": 3,
        "12": 3,
        "13": 3,
        "14": 3,
        "15": 3,
        "16": 3,
        "17": 3,
        "18": 3,
        "19": 3,
        "2": 3,
        "20": 3,
        "3": 3,
        "4": 3,
        "5": 3,
        "6": 3,
        "7": 3,
        "8": 3,
        "9": 3,
    },
}

snapshots[
    "test_public_compute_sample_sizes Small number of votes with additional ballots cast"
] = {
    "ballotComparison": {
        "0": 10,
        "1": 10,
        "10": 10,
        "11": 10,
        "12": 10,
        "13": 10,
        "14": 10,
        "15": 10,
        "16": 10,
        "17": 10,
        "18": 10,
        "19": 10,
        "2": 10,
        "20": 10,
        "3": 10,
        "4": 10,
        "5": 10,
        "6": 10,
        "7": 10,
        "8": 10,
        "9": 10,
    },
    "ballotPolling": {
        "0": 10,
        "1": 10,
        "10": 10,
        "11": 10,
        "12": 10,
        "13": 10,
        "14": 10,
        "15": 10,
        "16": 10,
        "17": 10,
        "18": 10,
        "19": 10,
        "2": 10,
        "20": 10,
        "3": 10,
        "4": 10,
        "5": 10,
        "6": 10,
        "7": 10,
        "8": 10,
        "9": 10,
    },
    "batchComparison": {
        "0": 10,
        "1": 10,
        "10": 10,
        "11": 10,
        "12": 10,
        "13": 10,
        "14": 10,
        "15": 10,
        "16": 10,
        "17": 10,
        "18": 10,
        "19": 10,
        "2": 10,
        "20": 10,
        "3": 10,
        "4": 10,
        "5": 10,
        "6": 10,
        "7": 10,
        "8": 10,
        "9": 10,
    },
}

snapshots[
    "test_public_compute_sample_sizes Super large number of votes with small margin"
] = {
    "ballotComparison": {
        "0": 1999999999,
        "1": 1999999999,
        "10": 1999999999,
        "11": 1999999999,
        "12": 1999999999,
        "13": 1999999999,
        "14": 1999999999,
        "15": 1999999999,
        "16": 1999999999,
        "17": 1999999999,
        "18": 1999999999,
        "19": 1999999999,
        "2": 1999999999,
        "20": 1999999999,
        "3": 1999999999,
        "4": 1999999999,
        "5": 1999999999,
        "6": 1999999999,
        "7": 1999999999,
        "8": 1999999999,
        "9": 1999999999,
    },
    "ballotPolling": {
        "0": 1999999999,
        "1": 1999999999,
        "10": 1999999999,
        "11": 1999999999,
        "12": 1999999999,
        "13": 1999999999,
        "14": 1999999999,
        "15": 1999999999,
        "16": 1999999999,
        "17": 1999999999,
        "18": 1999999999,
        "19": 1999999999,
        "2": 1999999999,
        "20": 1999999999,
        "3": 1999999999,
        "4": 1999999999,
        "5": 1999999999,
        "6": 1999999999,
        "7": 1999999999,
        "8": 1999999999,
        "9": 1999999999,
    },
    "batchComparison": {
        "0": 1999999999,
        "1": 1999999999,
        "10": 1999999999,
        "11": 1999999999,
        "12": 1999999999,
        "13": 1999999999,
        "14": 1999999999,
        "15": 1999999999,
        "16": 1999999999,
        "17": 1999999999,
        "18": 1999999999,
        "19": 1999999999,
        "2": 1999999999,
        "20": 1999999999,
        "3": 1999999999,
        "4": 1999999999,
        "5": 1999999999,
        "6": 1999999999,
        "7": 1999999999,
        "8": 1999999999,
        "9": 1999999999,
    },
}

snapshots["test_public_compute_sample_sizes Tie"] = {
    "ballotComparison": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "ballotPolling": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
    "batchComparison": {
        "0": 2000,
        "1": 2000,
        "10": 2000,
        "11": 2000,
        "12": 2000,
        "13": 2000,
        "14": 2000,
        "15": 2000,
        "16": 2000,
        "17": 2000,
        "18": 2000,
        "19": 2000,
        "2": 2000,
        "20": 2000,
        "3": 2000,
        "4": 2000,
        "5": 2000,
        "6": 2000,
        "7": 2000,
        "8": 2000,
        "9": 2000,
    },
}

snapshots["test_public_compute_sample_sizes Tie with additional ballots cast"] = {
    "ballotComparison": {
        "0": 2001,
        "1": 2001,
        "10": 2001,
        "11": 2001,
        "12": 2001,
        "13": 2001,
        "14": 2001,
        "15": 2001,
        "16": 2001,
        "17": 2001,
        "18": 2001,
        "19": 2001,
        "2": 2001,
        "20": 2001,
        "3": 2001,
        "4": 2001,
        "5": 2001,
        "6": 2001,
        "7": 2001,
        "8": 2001,
        "9": 2001,
    },
    "ballotPolling": {
        "0": 2001,
        "1": 2001,
        "10": 2001,
        "11": 2001,
        "12": 2001,
        "13": 2001,
        "14": 2001,
        "15": 2001,
        "16": 2001,
        "17": 2001,
        "18": 2001,
        "19": 2001,
        "2": 2001,
        "20": 2001,
        "3": 2001,
        "4": 2001,
        "5": 2001,
        "6": 2001,
        "7": 2001,
        "8": 2001,
        "9": 2001,
    },
    "batchComparison": {
        "0": 2001,
        "1": 2001,
        "10": 2001,
        "11": 2001,
        "12": 2001,
        "13": 2001,
        "14": 2001,
        "15": 2001,
        "16": 2001,
        "17": 2001,
        "18": 2001,
        "19": 2001,
        "2": 2001,
        "20": 2001,
        "3": 2001,
        "4": 2001,
        "5": 2001,
        "6": 2001,
        "7": 2001,
        "8": 2001,
        "9": 2001,
    },
}
