paper-with-me

홈 › Papers

Towards Context-Aware Code Comment Generation

2020-11-01 · Findings of the Association for Computational Linguistics 2020 · Xiaohan Yu, Quzhe Huang, Zheng Wang, Yansong Feng, Dongyan Zhao

Code comments are vital for software maintenance and comprehension, but many software projects suffer from the lack of meaningful and up-to-date comments in practice. This paper presents a novel approach to automatically generate code comments at a function level by targeting object-oriented programming languages. Unlike prior work that only uses information locally available within the target function, our approach leverages broader contextual information by considering all other functions of the same class. To propagate and integrate information beyond the scope of the target function, we design a novel learning framework based on the bidirectional gated recurrent unit and a graph attention network with a pointer mechanism. We apply our approach to produce code comments for Java methods and compare it against four strong baseline methods. Experimental results show that our approach outperforms most methods by a large margin and achieves a comparable result with the state-of-the-art method.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Code Comment GenerationComment GenerationGraph Attention

Similar Papers 제목 키워드 기반

Generating Pertinent and Diversified Comments with Topic-aware Pointer-Generator Networks

2020-05-09 · Junheng Huang, Lu Pan, Kang Xu, Weihua Peng 외

Comment generation, a new and challenging task in Natural Language Generation (NLG), attracts a lot of attention in recent years. However, comments generated by previous work tend to lack pertinence and diversity. In thi…

ArticlesComment GenerationDiversityText Generation

RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian

2026-01-03 · Kla Tantithamthavorn, Yaotian Zou, Andy Wong, Michael Gupta 외 arxiv

Large Language Models (LLMs)-powered code review automation has the potential to transform code review workflows. Despite the advances of LLM-powered code review comment generation approaches, several practical challenge…

Real-Time Generation of Game Video Commentary with Multimodal LLMs: Pause-Aware Decoding Approaches

2026-03-03 · Anum Afzal, Yuki Saito, Hiroya Takamura, Katsuhito Sudoh 외 arxiv

Real-time video commentary generation provides textual descriptions of ongoing events in videos. It supports accessibility and engagement in domains such as sports, esports, and livestreaming. Commentary generation invol…

Generating Diversified Comments via Reader-Aware Topic Modeling and Saliency Detection

2021-02-13 · Wei Wang, Piji Li, Hai-Tao Zheng

Automatic comment generation is a special and challenging task to verify the model ability on news content comprehension and language generation. Comments not only convey salient and interesting information in news artic…

ArticlesClusteringComment GenerationDecoder+3

APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation

2023-03-03 · Ramin Shahbazi, Fatemeh Fard

Code comments are significantly helpful in comprehending software programs and also aid developers to save a great deal of time in software maintenance. Code comment generation aims to automatically predict comments in n…

Code Comment GenerationComment GenerationDecoder