Deep code comment generation

During software maintenance, code comments help developerscomprehend programs and reduce additional time spent on readingand navigating source code. Unfortunately, these comments areoften mismatched, missing or outdated in the software projects.Developers have to infer the functionality from the sou...

Full description

Saved in:
Bibliographic Details
Main Authors: HU, Xing, LI, Ge, XIA, Xin, LO, David, JIN, Zhi
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2018
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/4292
https://ink.library.smu.edu.sg/context/sis_research/article/5295/viewcontent/icpc182.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-5295
record_format dspace
spelling sg-smu-ink.sis_research-52952020-10-15T03:09:40Z Deep code comment generation HU, Xing LI, Ge XIA, Xin LO, David JIN, Zhi During software maintenance, code comments help developerscomprehend programs and reduce additional time spent on readingand navigating source code. Unfortunately, these comments areoften mismatched, missing or outdated in the software projects.Developers have to infer the functionality from the source code.This paper proposes a new approach named DeepCom to automatically generate code comments for Java methods. The generatedcomments aim to help developers understand the functionalityof Java methods. DeepCom applies Natural Language Processing(NLP) techniques to learn from a large code corpus and generatescomments from learned features. We use a deep neural networkthat analyzes structural information of Java methods for bettercomments generation. We conduct experiments on a large-scaleJava corpus built from 9,714 open source projects from GitHub. Weevaluate the experimental results on a machine translation metric. Experimental results demonstrate that our method DeepComoutperforms the state-of-the-art by a substantial margin. 2018-05-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/4292 info:doi/10.1145/3196321.3196334 https://ink.library.smu.edu.sg/context/sis_research/article/5295/viewcontent/icpc182.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University comment generation deep learning program comprehension Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic comment generation
deep learning
program comprehension
Software Engineering
spellingShingle comment generation
deep learning
program comprehension
Software Engineering
HU, Xing
LI, Ge
XIA, Xin
LO, David
JIN, Zhi
Deep code comment generation
description During software maintenance, code comments help developerscomprehend programs and reduce additional time spent on readingand navigating source code. Unfortunately, these comments areoften mismatched, missing or outdated in the software projects.Developers have to infer the functionality from the source code.This paper proposes a new approach named DeepCom to automatically generate code comments for Java methods. The generatedcomments aim to help developers understand the functionalityof Java methods. DeepCom applies Natural Language Processing(NLP) techniques to learn from a large code corpus and generatescomments from learned features. We use a deep neural networkthat analyzes structural information of Java methods for bettercomments generation. We conduct experiments on a large-scaleJava corpus built from 9,714 open source projects from GitHub. Weevaluate the experimental results on a machine translation metric. Experimental results demonstrate that our method DeepComoutperforms the state-of-the-art by a substantial margin.
format text
author HU, Xing
LI, Ge
XIA, Xin
LO, David
JIN, Zhi
author_facet HU, Xing
LI, Ge
XIA, Xin
LO, David
JIN, Zhi
author_sort HU, Xing
title Deep code comment generation
title_short Deep code comment generation
title_full Deep code comment generation
title_fullStr Deep code comment generation
title_full_unstemmed Deep code comment generation
title_sort deep code comment generation
publisher Institutional Knowledge at Singapore Management University
publishDate 2018
url https://ink.library.smu.edu.sg/sis_research/4292
https://ink.library.smu.edu.sg/context/sis_research/article/5295/viewcontent/icpc182.pdf
_version_ 1770574601961603072