Mining Source Code Improvement Patterns from Similar Code Review Works

Yuki Ueda, T. Ishio, Akinori Ihara, Ken-ichi Matsumoto
{"title":"Mining Source Code Improvement Patterns from Similar Code Review Works","authors":"Yuki Ueda, T. Ishio, Akinori Ihara, Ken-ichi Matsumoto","doi":"10.1109/IWSC.2019.8665852","DOIUrl":null,"url":null,"abstract":"Code review is key to ensuring the absence of potential issues in source code. Code reviewers spend a large amount of time to manually check submitted patches based on their knowledge. Since a number of patches sometimes have similar potential issues, code reviewers need to suggest similar source code changes to patch authors. If patch authors notice similar code improvement patterns by themselves before submitting to code review, reviewers’ cost would be reduced. In order to detect similar code changes patterns, this study employs a sequential pattern mining to detect source code improvement patterns that frequently appear in code review history. In a case study using a code review dataset of the OpenStack project, we found that the detected patterns by our proposed approach included effective examples to improve patches without reviewers’ manual check. We also found that the patterns have been changed in time series; our pattern mining approach timely achieves to track the effective code improvement patterns.","PeriodicalId":341328,"journal":{"name":"2019 IEEE 13th International Workshop on Software Clones (IWSC)","volume":"172 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE 13th International Workshop on Software Clones (IWSC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IWSC.2019.8665852","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Code review is key to ensuring the absence of potential issues in source code. Code reviewers spend a large amount of time to manually check submitted patches based on their knowledge. Since a number of patches sometimes have similar potential issues, code reviewers need to suggest similar source code changes to patch authors. If patch authors notice similar code improvement patterns by themselves before submitting to code review, reviewers’ cost would be reduced. In order to detect similar code changes patterns, this study employs a sequential pattern mining to detect source code improvement patterns that frequently appear in code review history. In a case study using a code review dataset of the OpenStack project, we found that the detected patterns by our proposed approach included effective examples to improve patches without reviewers’ manual check. We also found that the patterns have been changed in time series; our pattern mining approach timely achieves to track the effective code improvement patterns.
从类似的代码审查工作中挖掘源代码改进模式
代码审查是确保源代码中没有潜在问题的关键。代码审查者花费大量的时间根据他们的知识手工检查提交的补丁。由于许多补丁有时有类似的潜在问题,代码审查人员需要向补丁作者建议类似的源代码更改。如果补丁作者在提交代码审查之前自己注意到类似的代码改进模式,则会降低审查者的成本。为了检测相似的代码更改模式,本研究采用顺序模式挖掘来检测代码审查历史中经常出现的源代码改进模式。在使用OpenStack项目代码审查数据集的案例研究中,我们发现通过我们提出的方法检测到的模式包括有效的示例,可以在没有审查者手动检查的情况下改进补丁。我们还发现,这些模式在时间序列上发生了变化;我们的模式挖掘方法及时地实现了对有效代码改进模式的跟踪。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信