arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1807.02278cs.SE
收藏

使用众包知识为Source Code推荐有见地的评论

Recommending Insightful Comments for Source Code using Crowdsourced Knowledge

Mohammad Masudur Rahman, Chanchal K. Roy, Iman Keivanloo

摘要:

最近,自动代码注释生成被提出来促进程序理解。现有的代码注释生成技术集中于描述源代码的功能。然而,还有其他方面,例如对代码质量或问题的见解,这些都是早期方法所忽视的。在本文中,我们描述了一种挖掘方法,建议有见地的意见的质量,缺陷或范围进一步改进的源代码。首先,我们进行了一项探索性研究,激励众包知识从堆栈溢出讨论作为源代码评论推荐的潜在资源。其次,基于探索性研究的结果,我们提出了一种基于知识的技术,从Stack Overflow Q & A站点挖掘有见地的评论,用于源代码评论推荐。对292个Stack Overflow代码段和5,039个讨论评论的实验表明,该方法具有85.42%的召回率。我们还进行了一项补充用户研究,证实了推荐评论的准确性和实用性。

英文摘要:

Recently, automatic code comment generation is proposed to facilitate program comprehension. Existing code comment generation techniques focus on describing the functionality of the source code. However, there are other aspects such as insights about quality or issues of the code, which are overlooked by earlier approaches. In this paper, we describe a mining approach that recommends insightful comments about the quality, deficiencies or scopes for further improvement of the source code. First, we conduct an exploratory study that motivates crowdsourced knowledge from Stack Overflow discussions as a potential resource for source code comment recommendation. Second, based on the findings from the exploratory study, we propose a heuristic-based technique for mining insightful comments from Stack Overflow Q & A site for source code comment recommendation. Experiments with 292 Stack Overflow code segments and 5,039 discussion comments show that our approach has a promising recall of 85.42%. We also conducted a complementary user study which confirms the accuracy and usefulness of the recommended comments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑