首页> 外文期刊>Expert Systems with Application >MACs: Mining API code snippets for code reuse
【24h】

MACs: Mining API code snippets for code reuse

机译:MAC:挖掘API代码段以重复使用代码

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

摘要

We apply data mining to source code projects to guide developers through related API usage patterns: "Developers who code the program statement also code..." Given a set of source code files, the mined association rules suggest related code snippets to form the components of object-oriented programs. The mined sequential rules predict likely additional API sequences within a method. After an initial program statement is given, our MACs prototype can correctly predict useful related API code snippets. In our evaluation, we present two studies investigating the usefulness of MACs in software development tasks. One study evaluated the utility of MACs's association pattern recommendations. The other evaluated usefulness of sequential pattern recommendations, and both drew from a sample of eight source code projects from SourceForge.net. Our experimental evaluation shows that MACs has significant potential to assist developers, especially API newcomers, and provides an alternative method for code reuse.
机译:我们将数据挖掘应用于源代码项目,以指导开发人员选择相关的API使用模式:“对程序语句进行编码的开发人员还可以进行代码...”给定一组源代码文件,挖掘的关联规则会建议相关的代码段以构成组件面向对象程序。挖掘的顺序规则可以预测方法中可能的其他API序列。给出初始程序语句后,我们的MAC原型可以正确预测有用的相关API代码段。在我们的评估中,我们提出了两项​​研究,研究了MAC在软件开发任务中的有用性。一项研究评估了MAC关联模式建议的实用性。另一个评估了顺序模式建议的有用性,并且都来自SourceForge.net的八个源代码项目的样本。我们的实验评估表明,MAC具有极大的潜力来协助开发人员,尤其是API新手,并为代码重用提供了另一种方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号