Learning to fix code