Neural Program Repair by Jointly Learning to Localize and Repair