arrow
Return

Learning Code Context Information to Predict Comment Locations

delete2020-03-01
delete22
PRE
AI
黄袁 cover
黄袁 (Yuan Huang)
X
Xinyu Hu
N
Nan Jia
X
Xiangping Chen *
Y
Yingfei Xiong
Z
Zibin Zheng
DOI:10.1109/TR.2019.2931725delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code commenting is a common programming practice of practical importance to help developers review and comprehend source code. In our developer survey, commenting has become an important, yet often-neglected activity when programming. Moreover, there is a lack of formal and automatic way in current practice to remind developers where to comment in the source code. To provide informative guidance on commenting during development, we propose a novel method CommentSuggester to recommend developers regarding appropriate commenting locations in the source code. Because commenting is closely related to the context information of source code, we identify this important factor to determine comment positions and extract it as structural context features, syntactic context features, and semantic context features. Subsequently, machine learning techniques are applied to identify possible commenting locations in the source code. We evaluated CommentSuggester using large datasets from dozens of open-source software systems in GitHub. The encouraging experimental results and user study demonstrated the feasibility and effectiveness of our commenting suggestion method.
Keywords:
Feature extraction
Software
Semantics
Programming
Predictive models
Syntactics
Buildings
Code context information
code features extraction
comment location
comment quality
commenting decision
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Reliability cover
IEEE Transactions on Reliability
IF:
5.7
Papers:
2.7K
Citations:
8.5K

Organization

S
Sun Yat Sen University
Scholars:
9.9W
Papers: 7.2W
Citations: 95
H
Hebei GEO University
Scholars:
1.3K
Papers: 913
Citations: 943
P
peking university
Scholars:
11.7W
Papers: 8.7W
Citations: 146
researcher View more organizations