Toward artificial intelligence that learns to write code