Code and data for The Upshot's Senate model.