Leveraging machine learning for enhancing code performance and programming productivity