...
首页> 外文期刊>The Journal of Systems and Software >API usage pattern recommendation for software development
【24h】

API usage pattern recommendation for software development

机译:用于软件开发的API使用模式建议

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Application Programming Interfaces (APIs) facilitate pragmatic reuse and improve the productivity of software development. An API usage pattern documents a set of method calls from multiple API classes to achieve a reusable functionality. Existing approaches often use frequent-sequence mining to extract API usage patterns. However, as reported by earlier studies, frequent-sequence mining may not produce a complete set of usage patterns. In this paper, we explore the possibility of mining API usage patterns without relying on frequent-pattern mining. Our approach represents the source code as a network of object usages where an object usage is a set of method calls invoked on a single API class. We automatically extract usage patterns by clustering the data based on the co-existence relations between object usages. We conduct an empirical study using a corpus of 11,510 Android applications. The results demonstrate that our approach can effectively mine API usage patterns with high completeness and low redundancy. We observe 18% and 38% improvement on F-measure and response time respectively comparing to usage pattern extraction using frequent-sequence mining.
机译:应用程序编程接口(API)促进了实用的重用,并提高了软件开发的生产率。 API使用模式记录了来自多个API类的一组方法调用,以实现可重用的功能。现有方法通常使用频繁序列挖掘来提取API使用模式。但是,如较早的研究所报道,频繁序列挖掘可能无法产生完整的使用模式集。在本文中,我们探索了不依赖频繁模式挖掘来挖掘API使用模式的可能性。我们的方法将源代码表示为对象用法的网络,其中对象用法是在单个API类上调用的一组方法调用。我们通过基于对象用法之间的共存关系对数据进行聚类来自动提取用法模式。我们使用11,510个Android应用程序的语料库进行了实证研究。结果表明,我们的方法可以有效地挖掘具有高度完整性和低冗余性的API使用模式。与使用频繁序列挖掘的使用模式提取相比,我们观察到F度量和响应时间分别提高了18%和38%。

著录项

  • 来源
    《The Journal of Systems and Software》 |2017年第7期|127-139|共13页
  • 作者单位

    Department of Electrical and Computer Engineering, Queen's University, Kingston, Ontario, Canada;

    Department of Electrical and Computer Engineering, Queen's University, Kingston, Ontario, Canada;

    Department of Electrical and Computer Engineering, Queen's University, Kingston, Ontario, Canada;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    Usage pattern; Object usage; Clustering;

    机译:使用方式;对象用法;聚类;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号