arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.01186cs.SE
收藏

通过source code摘要支持软件文档

Supporting software documentation with source code summarization

Ra'Fat Al-Msie'deen, Anas H. Blasi

摘要:

源代码摘要是生成描述软件代码的摘要的过程,大多数源代码摘要通常是手动生成的,其中摘要是由软件开发人员编写的。最近,新的自动化方法变得越来越有用。这些方法在某些情况下是有效的。这些方法的主要缺点是它们从不利用代码依赖性,并且总结软件类或方法,而不是两者。本文提出了一种源代码摘要方法(Suncode),它为软件系统中的每个类和方法产生一个简短的描述。为了验证该方法,它已被应用到几个案例研究。此外,将生成的摘要与人类专家编写的摘要以及最先进的解决方案编写的摘要进行比较。本文的研究结果发现,与其他研究相比,Suncode摘要提供了更好的代码依赖信息。此外,Suncode摘要可以改进和支持当前的软件文档。结果发现,手工编写的摘要更精确,也更简短。

英文摘要:

Source code summarization is a process of generating summaries that describe software code, the majority of source code summarization usually generated manually, where the summaries are written by software developers. Recently, new automated approaches are becoming more useful. These approaches have been found to be effective in some cases. The main weaknesses of these approaches are that they never exploit code dependencies and summarize either the software classes or methods but not both. This paper proposes a source code summarization approach (Suncode) that produces a short description for each class and method in the software system. To validate the approach, it has been applied to several case studies. Moreover, the generated summaries are compared to summaries that written by human experts and to summaries that written by a state-of-the-art solution. Results of this paper found that Suncode summaries provide better information about code dependencies comparing with other studies. In addition, Suncode summaries can improve and support the current software documentation. The results found that manually written summaries were more precise and short as well.

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

↑