更准确的方法级变更建议
More Accurate Recommendations for Method-Level Changes
摘要:
在大型软件项目的生命周期中,开发人员经常将相同的代码更改应用到不同的代码位置,但略有不同。由于将这些更改应用于所有位置是耗时且容易出错的,因此存在从输入示例学习更改模式、搜索可能的模式应用并生成相应建议的工具。在许多情况下,由于输入示例中的代码移动,生成的建议在语法或语义上是错误的。因此,它们的准确性很低,开发人员无法直接将它们复制到他们的项目中而不进行调整。我们提出了准确的推荐系统(ARES),它比其他工具实现了更高的准确性,因为它的算法在创建模式和建议时会考虑代码移动。平均而言,ARES的建议对于开发人员在源代码归档提交中手动执行的代码更改具有96%的准确性。与此同时,ARES实现了与其他工具相当的精确度和召回率。
英文摘要:
During the life span of large software projects, developers often apply the same code changes to different code locations in slight variations. Since the application of these changes to all locations is time-consuming and error-prone, tools exist that learn change patterns from input examples, search for possible pattern applications, and generate corresponding recommendations. In many cases, the generated recommendations are syntactically or semantically wrong due to code movements in the input examples. Thus, they are of low accuracy and developers cannot directly copy them into their projects without adjustments. We present the Accurate REcommendation System (ARES) that achieves a higher accuracy than other tools because its algorithms take care of code movements when creating patterns and recommendations. On average, the recommendations by ARES have an accuracy of 96% with respect to code changes that developers have manually performed in commits of source code archives. At the same time ARES achieves precision and recall values that are on par with other tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。