DeepCommenter: A Deep Code Comment Generation Tool with Hybrid Lexical and Syntactical Information
As the scale of software projects increases, the code comments are more and more important for program comprehension. Unfortunately, many code comments are missing, mismatched or outdated due to tight development schedule or other reasons. Automatic code comment generation is of great help for developers to comprehend source code and reduce their workload. Thus, we propose a code comment generation tool (DeepCommenter) to generate descriptive comments for Java methods. DeepCommenter formulates the comment generation task as a machine translation problem and exploits a deep neural network that combines the lexical and structural information of Java methods.
We implement DeepCommenter in the form of an Integrated Development Environment (i.e., Intellij IDEA) plug-in. Such plug-in is built upon a Client/Server architecture. The client formats the code selected by the user, sends request to the server and inserts the comment generated by the server above the selected code. The server listens for client’s request, analyzes the requested code using the pre-trained model and sends back the generated comment to the client. The pre-trained model learns both the lexical and syntactical information from source code tokens and Abstract Syntax Trees (AST) respectively and combines these two types of information together to generate comments. To evaluate DeepCommenter, we conduct experiments on a large corpus built from a large number of open source Java projects on GitHub. The experimental results on different metrics show that DeepCommenter outperforms the state-of-the-art approaches by a substantial margin.
Fri 13 NovDisplayed time zone: (UTC) Coordinated Universal Time change
01:30 - 02:00 | DocumentationResearch Papers / Visions and Reflections / Paper Presentations / Journal First / Tool Demos at Virtual room 1 | ||
01:30 2mTalk | Beyond Accuracy: Assessing Software Documentation Quality Visions and Reflections Christoph Treude University of Adelaide, Australia, Justin Middleton North Carolina State University, USA, Thushari Atapattu The University of Adelaide DOI | ||
01:33 1mTalk | Contextual Documentation Referencing on Stack Overflow Journal First Sebastian Baltes QAware GmbH and The University of Adelaide, Christoph Treude University of Adelaide, Australia, Martin P. Robillard McGill University Pre-print | ||
01:35 1mTalk | DeepCommenter: A Deep Code Comment Generation Tool with Hybrid Lexical and Syntactical Information Tool Demos Boao Li Zhejiang University, China, Meng Yan Chongqing University, Xin Xia Monash University, Xing Hu Peking University, Ge Li Peking University, David Lo Singapore Management University DOI | ||
01:37 1mTalk | Docable: Evaluating the Executability of Software Tutorials Research Papers Samim Mirhosseini North Carolina State University, USA, Chris Parnin North Carolina State University, USA DOI Pre-print | ||
01:39 1mTalk | RulePad: Interactive Authoring of Checkable Design Rules Research Papers Sahar Mehrpour George Mason University, USA, Thomas LaToza George Mason University, USA, Hamed Sarvari George Mason University, USA DOI Pre-print | ||
01:41 1mTalk | Software Documentation and Augmented Reality: Love or Arranged Marriage? Visions and Reflections Sridhar Chimalakonda Indian Institute of Technology Tirupati, Akhila Sri Manasa Venigalla IIT Tirupati, India DOI | ||
01:43 17mTalk | Conversations on Documentation Paper Presentations Akhila Sri Manasa Venigalla , Christoph Treude University of Adelaide, Australia, Sahar Mehrpour George Mason University, USA, Samim Mirhosseini North Carolina State University, USA, Sridhar Chimalakonda Indian Institute of Technology Tirupati, M: Venera Arnaoudova Washington State University |