A collection of codes for evaluating stability of systems under contingency