arrow
Return

Automatic Source Code Summarization of Context for Java Methods

delete2016-02-01
delete129
PRE
AI
P
Paul W. McBurney *
C
Collin McMillan *
DOI:10.1109/TSE.2015.2465386delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Source code summarization is the task of creating readable summaries that describe the functionality of software. Source code summarization is a critical component of documentation generation, for example as Javadocs formed from short paragraphs attached to each method in a Java program. At present, a majority of source code summarization is manual, in that the paragraphs are written by human experts. However, new automated technologies are becoming feasible. These automated techniques have been shown to be effective in select situations, though a key weakness is that they do not explain the source code's context. That is, they can describe the behavior of a Java method, but not why the method exists or what role it plays in the software. In this paper, we propose a source code summarization technique that writes English descriptions of Java methods by analyzing how those methods are invoked. We then performed two user studies to evaluate our approach. First, we compared our generated summaries to summaries written manually by experts. Then, we compared our summaries to summaries written by a state-of-the-art automatic summarization tool. We found that while our approach does not reach the quality of human-written summaries, we do improve over the state-of-the-art summarization tool in several dimensions by a statistically-significant margin.
Keywords:
Source code summarization
automatic documentation
program comprehension
Autofolding for Source Code Summarization
err2017-12-01
err37
errOAAI
errFowkes, Jaroslav; Chanthirasegaran, Pankajan; Ranca, Razvan; Allamanis, Miltiadis; Lapata, Mirella; Sutton, Charles
errShare
errSave
A review of automatic source code summarization
err2024-10-07
err1
PREAI
errZhang, Xuejun; Hou, Xia; Qiao, Xiuming; Song, Wenfeng
errShare
errSave
An Eye-Tracking Study of Java Programmers and Application to Source Code Summarization
err2015-11-01
err47
PREAI
errRodeghero, Paige; Liu, Cheng; McBurney, Paul W.; McMillan, Collin
errShare
errSave
An Extractive-and-Abstractive Framework for Source Code Summarization
err2024-03-14
err5
errOAAI
errSun, Weisong; Fang, Chunrong; Chen, Yuchen; Zhang, Quanjun; Tao, Guanhong; You, Yudu; Han, Tingxu; Ge, Yifei; Hu, Yuling; Luo, Bin; Chen, Zhenyu
errShare
errSave
Function Call Graph Context Encoding for Neural Source Code Summarization
err2023-09-01
err5
PREAI
errBansal, Aakash; Eberhart, Zachary; Karas, Zachary; Huang, Yu; Mcmillan, Collin
errShare
errSave
Summarizing source code with hierarchical code representation
err2022-03-01
err14
PREAI
errZhou, Ziyi; Yu, Huiqun; Fan, Guisheng; Huang, Zijie; Yang, Xingguang
errShare
errSave
ClassSum: a deep learning model for class-level code summarization
err2022-10-10
err0
PREAI
errMingchen Li; Huiqun Yu; Guisheng Fan; Ziyi Zhou; Jiawen Huang
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

U
University of Notre Dame
Scholars:
1.4K
Papers: 389
Citations: 8.3K
Cited Papers

Cited Papers

Homeobox Gene Involvement in Normal Hematopoiesis and in the Pathogenesis of Childhood Leukemias
err2017-01-01
err0
PREAI
errMaria Adamaki; Maria Goulielmaki; Ioannis Christodoulou; Spiros Vlahopoulos; Vassilis Zoumpourlis
errShare
errSave
Unusual Photoisomerization Pathway in a Near-Infrared Light Absorbing Enzymerhodopsin
err2022-10-06
err0
PREAI
errMasahiro Sugiura; Kazuki Ishikawa; Kota Katayama; Yuji Sumii; Rei Abe-Yoshizumi; Satoshi P. Tsunoda; Yuji Furutani; Norio Shibata; Leonid S. Brown; Hideki Kandori
errShare
errSave
Investigation of coal fueled chemical looping combustion using Fe3O4 as oxygen carrier: Influence of variables
err2010-05-16
err0
PREAI
errXiaoyan Sun; Wenguo Xiang; Sha Wang; Wendong Tian; Xiang Xu; Yanji Xu; Yunhan Xiao
errShare
errSave
Detection and Avoidance of Fish Predators by Adult Enallagma Damselflies
err2006-03-15
err0
PREAI
errMerrylee Ann McGuffin; Robert L. Baker; Mark R. Forbes
errShare
errSave
Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
errShare
errSave
researcher View more