-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding sample ballots (blank and cast), doc strings (verify, tally, a…
…nd show), and ballot checks
- Loading branch information
1 parent
39ce13f
commit 4345218
Showing
7 changed files
with
567 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"active_ggos": [ | ||
".", | ||
"GGOs/states/Massachusetts", | ||
"GGOs/states/Massachusetts/GGOs/counties/Middlesex", | ||
"GGOs/states/Massachusetts/GGOs/towns/Concord" | ||
], | ||
"ballot_filename": "000,001,002,003,ballot.json", | ||
"ballot_node": "GGOs/states/Massachusetts/GGOs/towns/Concord", | ||
"ballot_subdir": "GGOs/states/Massachusetts/GGOs/towns/Concord", | ||
"contests": { | ||
"GGOs/states/Massachusetts": [ | ||
{ | ||
"U.S. President": { | ||
"choices": [ | ||
{ | ||
"name": "Circle Party Ticket", | ||
"ticket_names": [ | ||
"Rey Skywalker", | ||
"Obi-Wan Kenobi" | ||
] | ||
}, | ||
{ | ||
"name": "Square Party Ticket", | ||
"ticket_names": [ | ||
"Atticus Finch", | ||
"Hermione Granger" | ||
] | ||
}, | ||
{ | ||
"name": "Triangle Party Ticket", | ||
"ticket_names": [ | ||
"Evelyn Quan Wang", | ||
"Waymond Wang" | ||
] | ||
} | ||
], | ||
"contest_type": "ticket", | ||
"tally": "rcv", | ||
"ticket_offices": [ | ||
"President", | ||
"Vice President" | ||
], | ||
"uid": "0000" | ||
} | ||
}, | ||
{ | ||
"U.S. Senate": { | ||
"choices": [ | ||
{ | ||
"name": "Anthony Alpha", | ||
"party": "Circle Party" | ||
}, | ||
{ | ||
"name": "Betty Beta", | ||
"party": "Dyad Party" | ||
}, | ||
{ | ||
"name": "Gloria Gamma", | ||
"party": "Triangle Party" | ||
}, | ||
{ | ||
"name": "David Delta", | ||
"party": "Square Party" | ||
}, | ||
{ | ||
"name": "Emily Echo", | ||
"party": "Pentagon Party" | ||
}, | ||
{ | ||
"name": "Francis Foxtrot", | ||
"party": "Hexagon Party" | ||
} | ||
], | ||
"tally": "rcv", | ||
"uid": "0001" | ||
} | ||
}, | ||
{ | ||
"Governor": { | ||
"choices": [ | ||
{ | ||
"name": "Spencer Cogswell", | ||
"party": "Circle Party" | ||
}, | ||
{ | ||
"name": "Cosmo Spacely", | ||
"party": "Triangle Party" | ||
} | ||
], | ||
"tally": "plurality", | ||
"uid": "0002" | ||
} | ||
} | ||
], | ||
"GGOs/states/Massachusetts/GGOs/counties/Middlesex": [ | ||
{ | ||
"County Clerk": { | ||
"choices": [ | ||
"Jean-Luc Picard", | ||
"Katniss Everdeen", | ||
"James T. Kirk" | ||
], | ||
"tally": "plurality", | ||
"uid": "0003" | ||
} | ||
} | ||
], | ||
"GGOs/states/Massachusetts/GGOs/towns/Concord": [ | ||
{ | ||
"Question 1 - should the starting time of the annual town meeting be moved to 6:30 PM?": { | ||
"choices": [ | ||
"yes", | ||
"no" | ||
], | ||
"description": "Should the Town of Concord start the annual Town Meeting at 6:30 PM instead of 7:00 PM?\n", | ||
"tally": "plurality", | ||
"uid": "0004" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"active_ggos": [ | ||
".", | ||
"GGOs/states/Massachusetts", | ||
"GGOs/states/Massachusetts/GGOs/counties/Middlesex", | ||
"GGOs/states/Massachusetts/GGOs/towns/Concord" | ||
], | ||
"ballot_filename": "000,001,002,003,ballot.json", | ||
"ballot_node": "GGOs/states/Massachusetts/GGOs/towns/Concord", | ||
"ballot_subdir": "GGOs/states/Massachusetts/GGOs/towns/Concord", | ||
"contests": { | ||
"GGOs/states/Massachusetts": [ | ||
{ | ||
"U.S. President": { | ||
"choices": [ | ||
{ | ||
"name": "Circle Party Ticket", | ||
"ticket_names": [ | ||
"Rey Skywalker", | ||
"Obi-Wan Kenobi" | ||
] | ||
}, | ||
{ | ||
"name": "Square Party Ticket", | ||
"ticket_names": [ | ||
"Atticus Finch", | ||
"Hermione Granger" | ||
] | ||
}, | ||
{ | ||
"name": "Triangle Party Ticket", | ||
"ticket_names": [ | ||
"Evelyn Quan Wang", | ||
"Waymond Wang" | ||
] | ||
} | ||
], | ||
"contest_type": "ticket", | ||
"selection": [ | ||
"0: Circle Party Ticket", | ||
"1: Square Party Ticket", | ||
"2: Triangle Party Ticket" | ||
], | ||
"tally": "rcv", | ||
"ticket_offices": [ | ||
"President", | ||
"Vice President" | ||
], | ||
"uid": "0000" | ||
} | ||
}, | ||
{ | ||
"U.S. Senate": { | ||
"choices": [ | ||
{ | ||
"name": "Anthony Alpha", | ||
"party": "Circle Party" | ||
}, | ||
{ | ||
"name": "Betty Beta", | ||
"party": "Dyad Party" | ||
}, | ||
{ | ||
"name": "Gloria Gamma", | ||
"party": "Triangle Party" | ||
}, | ||
{ | ||
"name": "David Delta", | ||
"party": "Square Party" | ||
}, | ||
{ | ||
"name": "Emily Echo", | ||
"party": "Pentagon Party" | ||
}, | ||
{ | ||
"name": "Francis Foxtrot", | ||
"party": "Hexagon Party" | ||
} | ||
], | ||
"selection": [ | ||
"1: Betty Beta", | ||
"4: Emily Echo", | ||
"2: Gloria Gamma" | ||
], | ||
"tally": "rcv", | ||
"uid": "0001" | ||
} | ||
}, | ||
{ | ||
"Governor": { | ||
"choices": [ | ||
{ | ||
"name": "Spencer Cogswell", | ||
"party": "Circle Party" | ||
}, | ||
{ | ||
"name": "Cosmo Spacely", | ||
"party": "Triangle Party" | ||
} | ||
], | ||
"max": 1, | ||
"selection": [ | ||
"0: Spencer Cogswell" | ||
], | ||
"tally": "plurality", | ||
"uid": "0002" | ||
} | ||
} | ||
], | ||
"GGOs/states/Massachusetts/GGOs/counties/Middlesex": [ | ||
{ | ||
"County Clerk": { | ||
"choices": [ | ||
"Jean-Luc Picard", | ||
"Katniss Everdeen", | ||
"James T. Kirk" | ||
], | ||
"max": 1, | ||
"selection": [ | ||
"0: Jean-Luc Picard" | ||
], | ||
"tally": "plurality", | ||
"uid": "0003" | ||
} | ||
} | ||
], | ||
"GGOs/states/Massachusetts/GGOs/towns/Concord": [ | ||
{ | ||
"Question 1 - should the starting time of the annual town meeting be moved to 6:30 PM?": { | ||
"choices": [ | ||
"yes", | ||
"no" | ||
], | ||
"description": "Should the Town of Concord start the annual Town Meeting at 6:30 PM instead of 7:00 PM?\n", | ||
"max": 1, | ||
"selection": [ | ||
"0: yes" | ||
], | ||
"tally": "plurality", | ||
"uid": "0004" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
commit 8bef5f87658c40bbe7dcda814422a59e844b204d | ||
Author: Sandy Currier <[email protected]> | ||
Date: Sat Jan 1 12:00:00 2022 -0500 | ||
|
||
{ | ||
"CVR": { | ||
"cast_branch": "CVRs/0001/333ac2b1b0", | ||
"choices": [ | ||
{ | ||
"name": "Anthony Alpha", | ||
"party": "Circle Party" | ||
}, | ||
{ | ||
"name": "Betty Beta", | ||
"party": "Dyad Party" | ||
}, | ||
{ | ||
"name": "Gloria Gamma", | ||
"party": "Triangle Party" | ||
}, | ||
{ | ||
"name": "David Delta", | ||
"party": "Square Party" | ||
}, | ||
{ | ||
"name": "Emily Echo", | ||
"party": "Pentagon Party" | ||
}, | ||
{ | ||
"name": "Francis Foxtrot", | ||
"party": "Hexagon Party" | ||
} | ||
], | ||
"ggo": "GGOs/states/Massachusetts", | ||
"name": "U.S. Senate", | ||
"selection": [ | ||
"1: Betty Beta", | ||
"4: Emily Echo", | ||
"2: Gloria Gamma" | ||
], | ||
"tally": "rcv", | ||
"uid": "0001" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Scanned 304 contests for contest (U.S. President) uid=0000, tally=rcv, max=1, win-by>0.5 | ||
RCV: round 0 | ||
Total vote count: 304 | ||
[('Square Party Ticket', 106), ('Circle Party Ticket', 100), ('Triangle Party Ticket', 98)] | ||
RCV: round 1 | ||
Total vote count: 304 | ||
Final results for contest U.S. President (uid=0000): | ||
('Square Party Ticket', 155) | ||
('Circle Party Ticket', 149) | ||
('Triangle Party Ticket', 0) | ||
Scanned 303 contests for contest (U.S. Senate) uid=0001, tally=rcv, max=1, win-by>0.5 | ||
RCV: round 0 | ||
Total vote count: 303 | ||
[('Gloria Gamma', 65), ('Anthony Alpha', 53), ('David Delta', 47), ('Emily Echo', 47), ('Francis Foxtrot', 47), ('Betty Beta', 44)] | ||
RCV: round 1 | ||
Total vote count: 303 | ||
[('Gloria Gamma', 71), ('Anthony Alpha', 65), ('Francis Foxtrot', 57), ('David Delta', 55), ('Emily Echo', 55), ('Betty Beta', 0)] | ||
RCV: round 2 | ||
Total vote count: 303 | ||
[('Anthony Alpha', 106), ('Gloria Gamma', 102), ('Francis Foxtrot', 95), ('Emily Echo', 0), ('David Delta', 0), ('Betty Beta', 0)] | ||
RCV: round 3 | ||
Total vote count: 303 | ||
Final results for contest U.S. Senate (uid=0001): | ||
('Gloria Gamma', 152) | ||
('Anthony Alpha', 151) | ||
('Francis Foxtrot', 0) | ||
('Emily Echo', 0) | ||
('David Delta', 0) | ||
('Betty Beta', 0) | ||
Scanned 303 contests for contest (Governor) uid=0002, tally=plurality, max=1, win-by>0.5 | ||
Plurality - one round | ||
Final results for contest Governor (uid=0002): | ||
('Cosmo Spacely', 155) | ||
('Spencer Cogswell', 148) | ||
Scanned 304 contests for contest (County Clerk) uid=0003, tally=plurality, max=1, win-by>0.5 | ||
Plurality - one round | ||
Final results for contest County Clerk (uid=0003): | ||
('James T. Kirk', 109) | ||
('Jean-Luc Picard', 98) | ||
('Katniss Everdeen', 97) | ||
Scanned 304 contests for contest (Question 1 - should the starting time of the annual town meeting be moved to 6:30 PM?) uid=0004, tally=plurality, max=1, win-by>0.5 | ||
Plurality - one round | ||
Final results for contest Question 1 - should the starting time of the annual town meeting be moved to 6:30 PM? (uid=0004): | ||
('no', 157) | ||
('yes', 147) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Contest '0000 - U.S. President' (20ec3a9080ce8d4167b41843b1ffc6905a172263) is vote 304 out of 304 votes | ||
Contest '0001 - U.S. Senate' (8bef5f87658c40bbe7dcda814422a59e844b204d) is vote 303 out of 303 votes | ||
Contest '0002 - Governor' (f088442581dfac4332d8633239c0272f83f8ee2a) is vote 303 out of 303 votes | ||
Contest '0003 - County Clerk' (dacba213d14d28e5fb6dc4c5d8be88d37b6c8166) is vote 304 out of 304 votes | ||
Contest '0004 - Question 1 - should the starting time of the annual town meeting be moved to 6:30 PM?' (2cbf5011576f0a6dc49817c5619df237726358e0) is vote 304 out of 304 votes | ||
############ | ||
[GOOD]: ballot receipt VALID - no digest errors found | ||
############ |
Oops, something went wrong.