跨GitHub的无参数概率API挖掘
Parameter-Free Probabilistic API Mining across GitHub
摘要:
现有的API挖掘算法可能很难使用,因为它们需要昂贵的参数调整,并且返回的API调用集可能很大,高度冗余并且难以理解。为了解决这个问题,我们提出了PAM(概率API矿工),一个接近无参数的概率算法挖掘最有趣的API调用模式。我们发现PAM在从GitHub检索相关API调用序列时的性能明显优于MAPO和UPMiner,达到了69%的测试集精度。此外,我们重点关注开发人员显式提供代码示例的库,从数据集中的967个客户端项目中产生了超过300,000个LOC的手写API示例代码。这个评估表明,手写的示例实际上对真实API用法的覆盖有限。
英文摘要:
Existing API mining algorithms can be difficult to use as they require expensive parameter tuning and the returned set of API calls can be large, highly redundant and difficult to understand. To address this, we present PAM (Probabilistic API Miner), a near parameter-free probabilistic algorithm for mining the most interesting API call patterns. We show that PAM significantly outperforms both MAPO and UPMiner, achieving 69% test-set precision, at retrieving relevant API call sequences from GitHub. Moreover, we focus on libraries for which the developers have explicitly provided code examples, yielding over 300,000 LOC of hand-written API example code from the 967 client projects in the data set. This evaluation suggests that the hand-written examples actually have limited coverage of real API usages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。