def votes_for_review(review):
    """Return a list of votes for the specified review."""
    return [int(x['value'])
            for x in review['currentPatchSet'].get('approvals', [])
            if x['type'] in ('Code-Review', 'Verified')]