Write a Blog >>
Fri 13 Nov 2020 01:35 - 01:36 at Virtual room 1 - Documentation

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 Nov

Displayed time zone: (UTC) Coordinated Universal Time change

01:30 - 02:00
01:30
2m
Talk
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
1m
Talk
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
1m
Talk
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
1m
Talk
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
1m
Talk
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
1m
Talk
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
17m
Talk
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