Translation of Professor Slade's VOTE system from Lisp to Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of WEB3-GForce:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
database
log
src
test
v1
.gitignore
README.md
screenshot1.png
screenshot2.png

README.md

VOTE

Translation of Professor Slade's VOTE system from Lisp to Python

Requirements

  • Python 2.7
  • pymongo >= 3.2
  • MongoDB 3.0.7 (for Mac, just run 'brew install mongodb' in Terminal)

Running the code

  1. Open the Python 2 interpreter from the top level directory
  2. Run "from src.scripts.database import load_data"
  3. Run "load_data.load_data()"
  4. Run "from src.vote import vote"
  5. Run "vote.vote_all()" to see the outcome of all of the members voting on all bills
  6. Run "vote.vote('JORDAN', 'HR-4264')" to see what a specific member would vote on a specific bill.

List of sample members:

  • John Smith ("SMITH")
  • Jane Jordan ("JORDAN")
  • John Doe ("DOE")

List of sample bills:

  • AMD
  • HR-4800
  • HR-4264
  • HR-777

Screenshots (examples)

screenshot 1

screenshot 2