Towards automatically generating summary comments for Java methods 论文

2010引用 516
Software Engineering ResearchSoftware Testing and Debugging TechniquesSoftware System Performance and Reliability

摘要

Studies have shown that good comments can help programmers quickly understand what a method does, aiding program comprehension and software maintenance. Unfortunately, few software projects adequately comment the code. One way to overcome the lack of human-written summary comments, and guard against obsolete comments, is to automatically generate them. In this paper, we present a novel technique to automatically generate descriptive summary comments for Java methods. Given the signature and body of a method, our automatic comment generator identifies the content for the summary and generates natural language text that summarizes the method's overall actions. According to programmers who judged our generated comments, the summaries are accurate, do not miss important content, and are reasonably concise.

相关技术

暂无数据

相关事件

暂无数据

相关文章

暂无数据