paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Data-driven extract method recommendations: a study at ING

数据驱动的 Extract Method 推荐:在 ING 的一项研究
FSE Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2021匹配度 2/10 · 论文主题是使用机器学习推荐 Extract Method 重构,属于软件工程中的重构推荐,与用户核心方向(面向 ML/Agent 程序的静态分析、LLM/Agent 改进静态分析与形式化验证、浮点程序分析、贝叶斯程序分析)无直接关联。虽然包含工业界落地案例,但研究问题和技术路线与用户画像匹配度低。引用 1 inbox
David van der Leij, Jasper Binda, Robbert van Dalen, Pieter Vallen, Yaping Luo, Maurício Aniche
crossref: 2026-09-12

AI 速览

一句话:在 ING 实践中检验机器学习模型推荐 Extract Method 重构的准确率,并对照专家判断。

识别重构机会仍是软件工程中的开放问题,已有研究表明机器学习模型可以推荐需要执行特定重构的方法。本文在大型金融机构 ING 的实际语境下开展此类实验,目标是识别应当进行 Extract Method(提取方法)重构的方法。研究包括:比较模型所用代码度量特征在开源系统与 ING 系统之间的分布差异;测量多种机器学习模型推荐 Extract Method 重构的准确率;将模型推荐结果与 ING 专家的意见进行对比。结果表明,ING 系统与开源系统的特征分布存在一定差异,机器学习模型能够以较高准确率推荐 Extract Method 重构,且专家总体上赞同模型给出的大部分推荐。

问题
如何可靠地识别代码中的重构机会仍是开放问题,尤其是机器学习方法能否在大型工业系统(如 ING)中有效推荐应做 Extract Method 重构的方法尚不清楚。
方法
以代码度量为特征训练多种机器学习模型来预测应进行 Extract Method 重构的方法,并比较这些特征分布在开源系统与 ING 系统间的差异。
评估
测量不同机器学习模型推荐 Extract Method 重构的准确率,并将模型推荐与 ING 专家的意见进行一致性对比。
原文摘要(Abstract)

The sound identification of refactoring opportunities is still an open problem in software engineering. Recent studies have shown the effectiveness of machine learning models in recommending methods that should undergo different refactoring operations. In this work, we experiment with such approaches to identify methods that should undergo an Extract Method refactoring, in the context of ING, a large financial organization. More specifically, we (i) compare the code metrics distributions, which are used as features by the models, between open-source and ING systems, (ii) measure the accuracy of different machine learning models in recommending Extract Method refactorings, (iii) compare the recommendations given by the models with the opinions of ING experts. Our results show that the feature distributions of ING systems and open-source systems are somewhat different, that machine learning models can recommend Extract Method refactorings with high accuracy, and that experts tend to agree with most of the recommendations of the model.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6289,
  title = {Data-driven extract method recommendations: a study at ING},
  author = {David van der Leij and Jasper Binda and Robbert van Dalen and Pieter Vallen and Yaping Luo and Maurício Aniche},
  booktitle = {FSE},
  year = {2021},
  doi = {10.1145/3468264.3473927}
}