-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cdf Json Fixes #506
Merged
Cdf Json Fixes #506
Changes from 31 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
427c485
plumbing for xml cdf reading
moldover 36f53cc
add contestId to json and xml CDF parse logic
moldover 687b25b
dont parse Candidate data from CDF at runtime - this enforces the sam…
moldover 4f39417
Handle ContestSelections in XML correctly
moldover a4cf53d
Merge branch 'develop' into xml_cdf
moldover 6d74890
add NIST example 2 (seems to be correctly formed)
moldover b071b55
fill out CDF XML class definitions needed for tabulation
moldover 865d104
add some helpers
moldover f2a7791
cleanup pre-processing code
moldover e9d9b80
add more class fields around contest selections
moldover 05ff970
handle write-ins
moldover eae666a
get first 2 Unisyn regression tests working :)
moldover d504d23
fix first NIST CDF XML test
moldover 2bbfcdb
cleanup test names
moldover 3e1c591
parse GpUnit from CVRs
moldover 598f52a
remove un-used assets
moldover c5384ce
Merge branch 'develop' into xml_cdf
moldover a5638ec
updates for PR #504
moldover c6e0a52
updated data from Unisyn with GpUnit (precinct) parsing validated
moldover c86c840
add more Unisyn regression tests
moldover b25d4e3
tabulate all elections - in practice we should not see more than one
moldover d7bbc3e
updates for PR #504
moldover 0886035
better logging
moldover c7df230
first cut at fixing JSON CDF reader:
moldover ea1e69c
update ResultsWriter CVR generation code to create Candidate objects …
moldover 6583599
updates for PR #504
moldover 3d1e7e0
fix typo
moldover 5ab9ac9
update test asset with contest name
moldover 662ee9d
better handling for cdf reader parse errors
moldover 28246f3
Merge branch 'json_cdf' into xml_cdf
moldover fca0371
update all CDF json assets
moldover 57d5d89
Updates to CDF parsing logic:
moldover 83ba2b1
Merge branch 'develop' into json_cdf
moldover 41fb6e9
cleanup for PR #506
moldover 845baf2
updates for PR #505
moldover ca15c7a
Merge branch 'develop' into json_cdf
moldover b656d11
Throw if undeclared write-in is found but label has not been defined.
moldover File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
768 changes: 665 additions & 103 deletions
768
src/main/java/network/brightspots/rcv/CommonDataFormatReader.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please keep "Cdf" in this method's name for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sorry about that @tarheel! I did not give you much explanation.
Among the important things:
So to your second question: yes it would be possible for these methods to share an interface. I think the real move is for all reader objects to share an interface. I don't think what you propose would be difficult, nevertheless it's outside the scope of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a follow-up issue (not for this deadline) to refactor this class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we already have such a ticket: #251