楠本研究室

Towards Accurate File Tracking Based on AST Differences

ホーム業績一覧

Towards Accurate File Tracking Based on AST Differences

Towards Accurate File Tracking Based on AST Differences
Proceedings of the 28th Asia-Pacific Software Engineering Conference (APSEC 2021), pp.569-574, 2021.
https://youtu.be/GTV4UHegvAk 概要: In the field of software development, version control systems such as Git are imperative tools that help software teams manage source code. Git can detect a change history of each file individually. Even if a file was renamed in the past, Git can identify and track the before renamed file based on content similarities, which are calculated as the ratio of lines that match pre- and post-change files to the total number of lines. However, line-based comparison techniques do not consider source code structures and have coarse granularity, which can result in misidentifying pre-change files and tracking interruptions. To resolve these problems, this paper proposes a technique that calculates file content similarities using source code differences based on an abstract syntax tree. In experiments conducted on 197 open source Java-based projects, we found that the number of rename detections increased 3.3%, and that, on average, our technique tracked commits 1.37 times more frequently than previous technique. We also measured accuracy levels and found that the maximum F-measure was 0.943, which is higher than the 0.926 maximum value of the line-based technique. タグ: accurate, ast, differences, file, towards, tracking
@inproceedings{AkiraFujimoto2021,
  author = {Akira Fujimoto and Yoshiki Higo and Shinji Kusumoto},
  title = {Towards Accurate File Tracking Based on AST Differences},
  booktitle = {Proceedings of the 28th Asia-Pacific Software Engineering Conference (APSEC 2021)},
  pages = {569--574},
  year = {2021},
  month = {dec}
}