An analysis of correctness for API recommendation: are the unmatched results useless?

来源 :中国科学:信息科学(英文版) | 被引量 : 0次 | 上传用户:jijididixia
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
API recommendation is a promising approach which is widely used during software development.However,the evaluation of API recommendation is not explored with sufficient rigor.The current evaluation of API recommendation mainly focuses on correctness,the measurement is conducted by matching recommended results with ground-truth results.In most cases,there is only one set of ground-truth APIs for each recommendation attempt,but the object code can be implemented in dozens of ways.The neglect of code diversity results in a possible defect in the evaluation.To address the problem,we invite 15 developers to analyze the unmatched results in a user study.The online evaluation confirms that some unmatched APIs can also benefit to programming due to the functional correlation with ground-truth APIs.Then we measure the API functional correlation based on the relationships extracted from API knowledge graph,API method name,and API documentation.Furthermore,we propose an approach to improve the measurement of correctness based on API functional correlation.Our measurement is evaluated on a dataset of 6141 requirements and historical code fragments from related commits.The results show that 28.2% of unmatched APIs can contribute to correctness in our experiments.
其他文献
从近几年的高考命题趋势看,高考英语试题已经从偏重知识的考查转向侧重能力的考查。而在高考的所有的试题中,对于知识和能力的考查,完形填空的要求可能是最高的。它集词的用法及搭配、词语辨析、语法、单句理解、语篇理解等考查于一体,既考查的语言知识水平,又检测同学们的分析判断能力和综合运用语言知识的能力。  一篇200~300词的短文,被挖去20个单词或短语,要求同學们在有限的时间(18分钟左右)内,运用所学
在春秋天的“花粉季节”及气候突然变化时,支气管哮喘患者易于发病。发病后服些氨茶碱类药、祛痰药,症状多能减轻或消失。但也有部分病人虽然自已采取了许多措施,气喘不能缓
面对这一判决,睾丸自然更加不服,便写出了第二份上诉书:1、关于精子质量优劣的鉴定.精子质量应包括精子的形态即长象或模样是否正常,精子活率、活力和穿透力等项指标.必须经
现代生活是美好的.它是人类社会不断发展与高度文明的具体显现,与之相适应,生活在现代社会里的人应该都十分优秀,它依赖于进步的现代人用计划生育与优生、优育的措施来实现
介绍了绿色保水开采技术在哈拉沟煤矿的应用,哈拉沟煤矿浅埋深、薄基岩、富含水的厚松散层条件,在开采过程中顶板岩石的破断必然波及上覆潜水含水层,造成地下水资源流失与突
As an important branch of geophysical exploration method,the electromagnetic method with artificial source has advanced rapidly in the past decade.These methods
美国洛斯·阿拉莫斯国立实验室的研究人员正在设计一种星基激光雷达,它能在数十秒内精确测定导弹排放的喷气流的位置,并给出精确数据对上升期间导弹战斗部实施拦截及攻击地
牛奶虽是一种营养佳品,但因牛奶本身的过敏作用,对肠道的刺激作用以及要求体内有充足的乳糖酶加以消化等因素,某些人,持别是某些消化系统疾病患者应慎用或不饮牛奶。1、牛奶
目前已知,茶叶中的化学成分包括有机物450种以上,无机物营养素十余种,其中有些是人体必需营养成分。虽然人体通过饮茶得到的量不多,但营养成分较全,如蛋白质、碳水化合物、
本文分析了路天矿自燃厚煤层1604综放工作面的特点和火灾防治的难点,利用束管监测数据确定了该类煤层综放工作面采空区自燃"三带"位置及范围.据此通过技术集成与示范,建立了
会议