paper-with-me

홈 › Papers

Associating Natural Language Comment and Source Code Entities

2019-12-13 · Sheena Panthaplackel, Milos Gligoric, Raymond J. Mooney, Junyi Jessy Li

Comments are an integral part of software development; they are natural language descriptions associated with source code elements. Understanding explicit associations can be useful in improving code comprehensibility and maintaining the consistency between code and comments. As an initial step towards this larger goal, we address the task of associating entities in Javadoc comments with elements in Java source code. We propose an approach for automatically extracting supervised data using revision histories of open source projects and present a manually annotated evaluation dataset for this task. We develop a binary classifier and a sequence labeling model by crafting a rich feature set which encompasses various aspects of code, comments, and the relationships between them. Experiments show that our systems outperform several baselines learning from the proposed supervision.

📄 PDF Abstract BibTeX arXiv:1912.06728

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Learning to Update Natural Language Comments Based on Code Changes

2020-04-25 · ACL 2020 6 · Sheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li 외

We formulate the novel task of automatically updating an existing natural language comment based on changes in the body of code it accompanies. We propose an approach that learns to correlate changes across two distinct …

Code Comment Inconsistency Detection with BERT and Longformer

2022-07-29 · Theo Steiner, Rui Zhang

Comments, or natural language descriptions of source code, are standard practice among software developers. By communicating important aspects of the code such as functionality and usage, comments help with software proj…

Natural Language Inference

Deep Just-In-Time Inconsistency Detection Between Comments and Source Code

2020-10-04 · Sheena Panthaplackel, Junyi Jessy Li, Milos Gligoric, Raymond J. Mooney

Natural language comments convey key aspects of source code such as implementation, usage, and pre- and post-conditions. Failure to update comments accordingly when the corresponding code is modified introduces inconsist…

High-quality data augmentation for code comment classification

2026-01-27 · Thomas Borsani, Andrea Rosani, Giuseppe Di Fatta arxiv

Code comments serve a crucial role in software development for documenting functionality, clarifying design choices, and assisting with issue tracking. They capture developers' insights about the surrounding source code,…

Data Augmentation

Retrieve and Refine: Exemplar-based Neural Comment Generation

2020-10-09 · Bolin Wei, Yongmin Li, Ge Li, Xin Xia 외

Code comment generation which aims to automatically generate natural language descriptions for source code, is a crucial task in the field of automatic software development. Traditional comment generation methods use man…

Code Comment GenerationComment GenerationInformation RetrievalRetrieval+2