• Home
  • Search
  • Improving Just-In-Time Comment Updating via AST Edit Sequence
  • Cite Icon1
  • https://doi.org/10.1142/s0218194022500516Copy DOI Icon

Improving Just-In-Time Comment Updating via AST Edit Sequence

  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code comments are valuable for program comprehension and software maintenance. However, comments can be inconsistent or out-of-date after code changes. To tackle this problem, Just-In-Time (JIT) comment updating aims to automatically update comments with code changes. Existing approaches for this task use edit sequences of source code to model code changes. Meanwhile, recent researches indicate that neural models based on abstract syntax trees (AST) can help represent source code. In this paper, we propose a new method to learn code changes by combining code edit sequences with AST edit sequences, so that the generated new comment can be more accurate. Our approach utilizes three encoders to encode code edit sequences, AST edit sequences and old comment token sequences, respectively. The outputs of the encoders are then decoded into a sequence of edit actions, which is parsed to generate a new comment. The proposed method is evaluated on a public dataset using seven metrics, and the experimental results show that our approach outperforms the baselines. Furthermore, when the new comment has a larger edit distance than the old one, our model shows better performance.

Similar Papers
  • Conference Article
  • Citations3

Deep Just-In-Time Consistent Comment Update via Source Code Changes

  • Nov 25, 2022
  • Shikai Guo +3
  • Book Chapter
  • Citations17

Improving the Quality of Software by Quantifying the Code Change Metric and Predicting the Bugs

  • Jan 01, 2013
  • V B Singh +1
  • Conference Article
  • Citations12

Predicting Bugs in Software Code Changes Using Isolation Forest

  • Jul 01, 2017
  • Yueyang He +4
  • Research Article

Hybrid Attention Approach for Source Code Comment Generation

  • Jul 14, 2025
  • Information Technology and Control
  • Yao Meng
  • Conference Article
  • Citations22

A Survey on Research of Code Comment

  • Jan 12, 2019
  • Bai Yang +2
  • Conference Article
  • Citations1

Processing Large Datasets of Fined Grained Source Code Changes

  • Sep 01, 2019
  • Stanislav Levin +1
  • Research Article
  • Citations26

Predictive Comment Updating With Heuristics and AST-Path-Based Neural Learning: A Two-Phase Approach

  • Apr 01, 2023
  • IEEE Transactions on Software Engineering
  • Bo Lin +4
  • Research Article

Modification Patterns and Their Impact on Source Code Internal Quality: How Far Are We from Learning from Repository History?

  • May 05, 2026
  • Electronics
  • Rogério Eduardo Garcia +2
  • Research Article
  • Citations5

Regression test prioritization leveraging source code similarity with tree kernels

  • Feb 15, 2024
  • Journal of Software: Evolution and Process
  • Francesco Altiero +4
  • Conference Article
  • Citations97

Commit Message Generation for Source Code Changes

  • Aug 01, 2019
  • Shengbin Xu +5
  • Conference Article
  • Citations30

API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations

  • May 01, 2021
  • Ramin Shahbazi +2
  • Research Article
  • Citations17

Revisiting the Identification of the Co-evolution of Production and Test Code

  • Sep 30, 2023
  • ACM Transactions on Software Engineering and Methodology
  • Weifeng Sun +5
  • Research Article
  • Citations1

Model for Simulating the Financial Viability of a Just-in-Time Maintenance Program in an Agribusiness Company

  • Apr 26, 2021
  • Management:Journal of Sustainable Business and Management Solutions in Emerging Economies
  • Carlos Augusto Candeo Fontanini +1
  • Research Article
  • Citations94

Analyzing the co-evolution of comments and source code

  • Mar 26, 2009
  • Software Quality Journal
  • Beat Fluri +3
  • Research Article
  • Citations43

Augmenting commit classification by using fine-grained source code changes and a pre-trained deep neural language model

  • Mar 10, 2021
  • Information and Software Technology
  • Lobna Ghadhab +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.