MIRROR:通过相关性分析提出多目标重构建议

IF 2 2区 计算机科学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Yang Zhang, Ke Guan, Lining Fang
{"title":"MIRROR:通过相关性分析提出多目标重构建议","authors":"Yang Zhang,&nbsp;Ke Guan,&nbsp;Lining Fang","doi":"10.1007/s10515-023-00400-1","DOIUrl":null,"url":null,"abstract":"<div><p>Refactoring is a critical but complex process to improve code quality by altering software structure without changing the observable behavior. Search-based approaches have been proposed to recommend refactoring solutions. However, existing works tend to leverage all the sub-attributes in an objective and ignore the relationship between the sub-attributes. Furthermore, the types of refactoring operations in the existing works can be further augmented. To this end, this paper proposes a novel approach, called <span>MIRROR</span>, to recommend refactoring by employing a multi-objective optimization across three objectives: (i) improving quality, (ii) removing code smell, and (iii) maximizing the similarity to refactoring history. Unlike previous works, <span>MIRROR</span> provides a way to further optimize attributes in each objective. To be more specific, given an objective, <span>MIRROR</span> investigates the possible correlations among attributes and selects those attributes with low correlations as the representation of this objective. <span>MIRROR</span> is evaluated on 6 real-world projects by answering 6 research questions. The experimental results demonstrate that <span>MIRROR</span> recommends an average of 43 solutions for each project. Furthermore, we compare <span>MIRROR</span> against existing tools <span>JMove</span> and <span>QMove</span>, and show that the F1 of <span>MIRROR</span> is 5.63% and 3.75% higher than that of <span>JMove</span> and <span>QMove</span>, demonstrating the effectiveness of <span>MIRROR</span>.</p></div>","PeriodicalId":55414,"journal":{"name":"Automated Software Engineering","volume":"31 1","pages":""},"PeriodicalIF":2.0000,"publicationDate":"2023-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"MIRROR: multi-objective refactoring recommendation via correlation analysis\",\"authors\":\"Yang Zhang,&nbsp;Ke Guan,&nbsp;Lining Fang\",\"doi\":\"10.1007/s10515-023-00400-1\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Refactoring is a critical but complex process to improve code quality by altering software structure without changing the observable behavior. Search-based approaches have been proposed to recommend refactoring solutions. However, existing works tend to leverage all the sub-attributes in an objective and ignore the relationship between the sub-attributes. Furthermore, the types of refactoring operations in the existing works can be further augmented. To this end, this paper proposes a novel approach, called <span>MIRROR</span>, to recommend refactoring by employing a multi-objective optimization across three objectives: (i) improving quality, (ii) removing code smell, and (iii) maximizing the similarity to refactoring history. Unlike previous works, <span>MIRROR</span> provides a way to further optimize attributes in each objective. To be more specific, given an objective, <span>MIRROR</span> investigates the possible correlations among attributes and selects those attributes with low correlations as the representation of this objective. <span>MIRROR</span> is evaluated on 6 real-world projects by answering 6 research questions. The experimental results demonstrate that <span>MIRROR</span> recommends an average of 43 solutions for each project. Furthermore, we compare <span>MIRROR</span> against existing tools <span>JMove</span> and <span>QMove</span>, and show that the F1 of <span>MIRROR</span> is 5.63% and 3.75% higher than that of <span>JMove</span> and <span>QMove</span>, demonstrating the effectiveness of <span>MIRROR</span>.</p></div>\",\"PeriodicalId\":55414,\"journal\":{\"name\":\"Automated Software Engineering\",\"volume\":\"31 1\",\"pages\":\"\"},\"PeriodicalIF\":2.0000,\"publicationDate\":\"2023-10-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Automated Software Engineering\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://link.springer.com/article/10.1007/s10515-023-00400-1\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Automated Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s10515-023-00400-1","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

摘要

重构是一个关键但复杂的过程,通过改变软件结构而不改变可观察的行为来提高代码质量。已经提出了基于搜索的方法来推荐重构解决方案。然而,现有的工作倾向于利用目标中的所有子属性,而忽略子属性之间的关系。此外,现有作品中的重构操作类型还可以进一步扩展。为此,本文提出了一种称为MIRROR的新方法,通过对三个目标进行多目标优化来推荐重构:(i)提高质量,(ii)去除代码气味,以及(iii)最大限度地提高与重构历史的相似性。与之前的工作不同,MIRROR提供了一种进一步优化每个目标中属性的方法。更具体地说,在给定目标的情况下,MIRROR调查属性之间可能的相关性,并选择相关性低的属性作为该目标的表示。MIRROR通过回答6个研究问题,对6个真实世界的项目进行了评估。实验结果表明,MIRROR为每个项目推荐了平均43个解决方案。此外,我们将MIRROR与现有工具JMove和QMove进行了比较,结果表明,MIRROR的F1比JMove、QMove分别高5.63%和3.75%,证明了MIRROR方法的有效性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。

MIRROR: multi-objective refactoring recommendation via correlation analysis

MIRROR: multi-objective refactoring recommendation via correlation analysis

Refactoring is a critical but complex process to improve code quality by altering software structure without changing the observable behavior. Search-based approaches have been proposed to recommend refactoring solutions. However, existing works tend to leverage all the sub-attributes in an objective and ignore the relationship between the sub-attributes. Furthermore, the types of refactoring operations in the existing works can be further augmented. To this end, this paper proposes a novel approach, called MIRROR, to recommend refactoring by employing a multi-objective optimization across three objectives: (i) improving quality, (ii) removing code smell, and (iii) maximizing the similarity to refactoring history. Unlike previous works, MIRROR provides a way to further optimize attributes in each objective. To be more specific, given an objective, MIRROR investigates the possible correlations among attributes and selects those attributes with low correlations as the representation of this objective. MIRROR is evaluated on 6 real-world projects by answering 6 research questions. The experimental results demonstrate that MIRROR recommends an average of 43 solutions for each project. Furthermore, we compare MIRROR against existing tools JMove and QMove, and show that the F1 of MIRROR is 5.63% and 3.75% higher than that of JMove and QMove, demonstrating the effectiveness of MIRROR.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Automated Software Engineering
Automated Software Engineering 工程技术-计算机:软件工程
CiteScore
4.80
自引率
11.80%
发文量
51
审稿时长
>12 weeks
期刊介绍: This journal details research, tutorial papers, survey and accounts of significant industrial experience in the foundations, techniques, tools and applications of automated software engineering technology. This includes the study of techniques for constructing, understanding, adapting, and modeling software artifacts and processes. Coverage in Automated Software Engineering examines both automatic systems and collaborative systems as well as computational models of human software engineering activities. In addition, it presents knowledge representations and artificial intelligence techniques applicable to automated software engineering, and formal techniques that support or provide theoretical foundations. The journal also includes reviews of books, software, conferences and workshops.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信