2013 · 256 citations · 17 references
ComputingComputer ScienceComputational LinguisticsNatural Language ProcessingSoftware EngineeringCode GenerationNatural Language GenerationQuestion AnsweringSoftware DesignText GenerationAutomated Comment GenerationCommenting SystemsMaintainabilityMaintainability ImprovementSoftware MaintainabilityUser Study Evaluation
Code comments improve software maintainability. To address the comment scarcity issue, we propose a new automatic comment generation approach, which mines comments from a large programming Question and Answer (Q&A) site. Q&A sites allow programmers to post questions and receive solutions, which contain code segments together with their descriptions, referred to as code-description mappings.We develop AutoComment to extract such mappings, and leverage them to generate description comments automatically for similar code segments matched in open-source projects. We apply AutoComment to analyze Java and Android tagged Q&A posts to extract 132,767 code-description mappings, which help AutoComment to generate 102 comments automatically for 23 Java and Android projects. The user study results show that the majority of the participants consider the generated comments accurate, adequate, concise, and useful in helping them understand the code.
17
George A. Miller · Communications of the ACM · 1995 · 14.1K citations · Full text
Towards automatically generating summary comments for Java methods
Giriprasad Sridhara, Emily Hill, Divya Muppaneni et al. · 2010 · 517 citations
Automatic generation of natural language summaries for Java classes
Laura Moreno, Jairo Aponte, Giriprasad Sridhara et al. · 2013 · 335 citations
Computing, Computer Science, Natural Language Processing +14
Automatically documenting program changes
Raymond P.L. Buse, Westley Weimer · 2010 · 219 citations