Mercem:基于调用图嵌入的方法名推荐
Mercem: Method Name Recommendation Based on Call Graph Embedding
摘要:
源代码的可理解性受到标识符名称的强烈影响,因此软件开发人员需要为标识符提供好的(例如有意义但简短的)名称。另一方面,即使对于有经验的开发人员来说,给出一个好的名字有时也是一项困难和耗时的任务。为了支持命名标识符,已经提出了用于推荐标识符名称候选的若干技术。然而,这些技术仍然存在建议候选人的优点和适用情况的限制方面的挑战。本文提出了一种新的方法,推荐方法名称,通过应用图嵌入技术的方法调用图。评估实验证实,所提出的技术可以建议更合适的方法名称的候选人在困难的情况下比最先进的方法。
英文摘要:
Comprehensibility of source code is strongly affected by identifier names, therefore software developers need to give good (e.g. meaningful but short) names to identifiers. On the other hand, giving a good name is sometimes a difficult and time-consuming task even for experienced developers. To support naming identifiers, several techniques for recommending identifier name candidates have been proposed. These techniques, however, still have challenges on the goodness of suggested candidates and limitations on applicable situations. This paper proposes a new approach to recommending method names by applying graph embedding techniques to the method call graph. The evaluation experiment confirms that the proposed technique can suggest more appropriate method name candidates in difficult situations than the state of the art approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。