Vulnerability Discovery and Patch Modeling