使用示例代码挖掘API调用模式的方法

ZiHao Xia, Linhui Zhong, Chaoyi Yang, JunJie Mo, RongJing Gao, HaoRan Chen
{"title":"使用示例代码挖掘API调用模式的方法","authors":"ZiHao Xia, Linhui Zhong, Chaoyi Yang, JunJie Mo, RongJing Gao, HaoRan Chen","doi":"10.1109/ICSESS54813.2022.9930263","DOIUrl":null,"url":null,"abstract":"In the process of software development, developers usually use API to improve development efficiency and code reuse rate. API provides developers with a set of accessible services, and developers do not need to care about the internal source code of API, which greatly reduces the workload of developers. Due to the increasing scale and complexity of modern software, more and more APIs are used by developers in software. In order to solve the problem of insufficient recall rate in up miner, this paper proposes an API call pattern mining method based on examples, be miner, which collects data from some Q&A websites, such as stack Overflow, which extracts the API call sequences from some code examples, uses these API call sequences to mine the API call patterns that appear less frequently in the project, and does not produce a large number of redundant results. The experimental results show that the API call pattern mining method based on example can effectively mine the call patterns that appear less frequently in the project from the source program, and has higher recall rate and F-measure value than up-miner.","PeriodicalId":265412,"journal":{"name":"2022 IEEE 13th International Conference on Software Engineering and Service Science (ICSESS)","volume":"35 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Method for Mining API Call Pattern Using Sample Codes\",\"authors\":\"ZiHao Xia, Linhui Zhong, Chaoyi Yang, JunJie Mo, RongJing Gao, HaoRan Chen\",\"doi\":\"10.1109/ICSESS54813.2022.9930263\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In the process of software development, developers usually use API to improve development efficiency and code reuse rate. API provides developers with a set of accessible services, and developers do not need to care about the internal source code of API, which greatly reduces the workload of developers. Due to the increasing scale and complexity of modern software, more and more APIs are used by developers in software. In order to solve the problem of insufficient recall rate in up miner, this paper proposes an API call pattern mining method based on examples, be miner, which collects data from some Q&A websites, such as stack Overflow, which extracts the API call sequences from some code examples, uses these API call sequences to mine the API call patterns that appear less frequently in the project, and does not produce a large number of redundant results. The experimental results show that the API call pattern mining method based on example can effectively mine the call patterns that appear less frequently in the project from the source program, and has higher recall rate and F-measure value than up-miner.\",\"PeriodicalId\":265412,\"journal\":{\"name\":\"2022 IEEE 13th International Conference on Software Engineering and Service Science (ICSESS)\",\"volume\":\"35 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-10-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE 13th International Conference on Software Engineering and Service Science (ICSESS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICSESS54813.2022.9930263\",\"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 Conference on Software Engineering and Service Science (ICSESS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSESS54813.2022.9930263","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

在软件开发过程中,开发人员通常使用API来提高开发效率和代码重用率。API为开发人员提供了一组可访问的服务,开发人员不需要关心API的内部源代码,这大大减少了开发人员的工作量。由于现代软件的规模和复杂性不断增加,开发人员在软件中使用越来越多的api。为了解决up miner中召回率不足的问题,本文提出了一种基于实例的API调用模式挖掘方法——be miner,该方法从stack Overflow等问答网站收集数据,从一些代码示例中提取API调用序列,利用这些API调用序列挖掘项目中出现频率较低的API调用模式,不会产生大量冗余结果。实验结果表明,基于实例的API调用模式挖掘方法可以有效地从源程序中挖掘出项目中出现频率较低的调用模式,并且具有比向上挖掘更高的召回率和f -度量值。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A Method for Mining API Call Pattern Using Sample Codes
In the process of software development, developers usually use API to improve development efficiency and code reuse rate. API provides developers with a set of accessible services, and developers do not need to care about the internal source code of API, which greatly reduces the workload of developers. Due to the increasing scale and complexity of modern software, more and more APIs are used by developers in software. In order to solve the problem of insufficient recall rate in up miner, this paper proposes an API call pattern mining method based on examples, be miner, which collects data from some Q&A websites, such as stack Overflow, which extracts the API call sequences from some code examples, uses these API call sequences to mine the API call patterns that appear less frequently in the project, and does not produce a large number of redundant results. The experimental results show that the API call pattern mining method based on example can effectively mine the call patterns that appear less frequently in the project from the source program, and has higher recall rate and F-measure value than up-miner.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:481959085
Book学术官方微信