在开发人员社区中构建有意义的代码更改

Mengxuan Li, Shikai Guo, X. Ge, Hui Li, Rong Chen
{"title":"在开发人员社区中构建有意义的代码更改","authors":"Mengxuan Li, Shikai Guo, X. Ge, Hui Li, Rong Chen","doi":"10.1109/PAAP56126.2022.10010364","DOIUrl":null,"url":null,"abstract":"The rapid development of Open-Source Software (OSS) has resulted in a significant demand for code changes to maintain OSS. Symptoms of poor design and implementation choices in code changes often occur, thus heavily hindering code reviewers to verify correctness and soundness of code changes. Researchers have investigated how to learn meaningful code changes to assist developers in anticipating changes that code reviewers may suggest for the submitted code. However, there are two main limitations to be addressed, including the limitation of long-range dependencies of the source code and the missing syntactic structural information of the source code. To solve these limitations, we propose a novel method named GTCT. GTCT comprises two components: code graph embedding and code transformation learning. To address the missing syntactic structural information, we encoding the source code into a code graph structure from the lexical and syntactic representations of the source code. Subsequently, we uses the multi-head attention mechanism and positional encoding mechanism to address the long-range dependencies limitation. Extensive experiments are conducted to evaluate the performance of GTCT by both quantitative and qualitative analyses. For the quantitative analysis, GTCT relatively outperforms the baseline on six datasets by 210%, 342.86%, 135%, 29.41%, 109.09%, and 91.67% in terms of perfect prediction. Meanwhile, the qualitative analysis shows that each type of code change by GTCT outperforms that of the baseline method in terms of bug fixed, refactoring code, and others’ taxonomy of code changes.","PeriodicalId":336339,"journal":{"name":"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)","volume":"66 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Structuring Meaningful Code Changes in Developer Community\",\"authors\":\"Mengxuan Li, Shikai Guo, X. Ge, Hui Li, Rong Chen\",\"doi\":\"10.1109/PAAP56126.2022.10010364\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The rapid development of Open-Source Software (OSS) has resulted in a significant demand for code changes to maintain OSS. Symptoms of poor design and implementation choices in code changes often occur, thus heavily hindering code reviewers to verify correctness and soundness of code changes. Researchers have investigated how to learn meaningful code changes to assist developers in anticipating changes that code reviewers may suggest for the submitted code. However, there are two main limitations to be addressed, including the limitation of long-range dependencies of the source code and the missing syntactic structural information of the source code. To solve these limitations, we propose a novel method named GTCT. GTCT comprises two components: code graph embedding and code transformation learning. To address the missing syntactic structural information, we encoding the source code into a code graph structure from the lexical and syntactic representations of the source code. Subsequently, we uses the multi-head attention mechanism and positional encoding mechanism to address the long-range dependencies limitation. Extensive experiments are conducted to evaluate the performance of GTCT by both quantitative and qualitative analyses. For the quantitative analysis, GTCT relatively outperforms the baseline on six datasets by 210%, 342.86%, 135%, 29.41%, 109.09%, and 91.67% in terms of perfect prediction. Meanwhile, the qualitative analysis shows that each type of code change by GTCT outperforms that of the baseline method in terms of bug fixed, refactoring code, and others’ taxonomy of code changes.\",\"PeriodicalId\":336339,\"journal\":{\"name\":\"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)\",\"volume\":\"66 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-11-25\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/PAAP56126.2022.10010364\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/PAAP56126.2022.10010364","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

开源软件(OSS)的快速发展导致了对维护OSS的代码修改的巨大需求。在代码更改中经常出现设计和实现选择不良的症状,从而严重阻碍了代码审查者验证代码更改的正确性和可靠性。研究人员已经研究了如何学习有意义的代码更改,以帮助开发人员预测代码审查者可能对提交的代码建议的更改。然而,有两个主要的限制需要解决,包括源代码的远程依赖的限制和源代码的语法结构信息的缺失。为了解决这些限制,我们提出了一种新的方法GTCT。GTCT包括代码图嵌入和代码转换学习两个部分。为了解决缺少的语法结构信息,我们从源代码的词法和语法表示将源代码编码为代码图结构。随后,我们使用多头注意机制和位置编码机制来解决远程依赖限制。通过定量和定性分析,进行了大量的实验来评估GTCT的性能。在定量分析中,GTCT在6个数据集上的完美预测率分别比基线高出210%、342.86%、135%、29.41%、109.09%和91.67%。同时,定性分析表明,GTCT的每种类型的代码更改在修复bug、重构代码和其他代码更改分类方面都优于基线方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Structuring Meaningful Code Changes in Developer Community
The rapid development of Open-Source Software (OSS) has resulted in a significant demand for code changes to maintain OSS. Symptoms of poor design and implementation choices in code changes often occur, thus heavily hindering code reviewers to verify correctness and soundness of code changes. Researchers have investigated how to learn meaningful code changes to assist developers in anticipating changes that code reviewers may suggest for the submitted code. However, there are two main limitations to be addressed, including the limitation of long-range dependencies of the source code and the missing syntactic structural information of the source code. To solve these limitations, we propose a novel method named GTCT. GTCT comprises two components: code graph embedding and code transformation learning. To address the missing syntactic structural information, we encoding the source code into a code graph structure from the lexical and syntactic representations of the source code. Subsequently, we uses the multi-head attention mechanism and positional encoding mechanism to address the long-range dependencies limitation. Extensive experiments are conducted to evaluate the performance of GTCT by both quantitative and qualitative analyses. For the quantitative analysis, GTCT relatively outperforms the baseline on six datasets by 210%, 342.86%, 135%, 29.41%, 109.09%, and 91.67% in terms of perfect prediction. Meanwhile, the qualitative analysis shows that each type of code change by GTCT outperforms that of the baseline method in terms of bug fixed, refactoring code, and others’ taxonomy of code changes.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信