首页> 外文会议>IEEE International Conference on Software Maintenance >Automatically Extracting Instances of Code Change Patterns with AST Analysis
【24h】

Automatically Extracting Instances of Code Change Patterns with AST Analysis

机译:使用AST分析自动提取代码更改模式的实例

获取原文

摘要

A code change pattern represents a kind of recurrent modification in software. For instance, a known code change pattern consists of the change of the conditional expression of an if statement. Previous work has identified different change patterns. Complementary to the identification and definition of change patterns, the automatic extraction of pattern instances is essential to measure their empirical importance. For example, it enables one to count and compare the number of conditional expression changes in the history of different projects. In this paper we present a novel approach for search patterns instances from software history. Our technique is based on the analysis of Abstract Syntax Trees (AST) files within a given commit. We validate our approach by counting instances of 18 change patterns in 6 open-source Java projects.
机译:代码更改模式代表软件中的一种复发修改。例如,已知代码更改模式包括IF语句的条件表达式的更改。以前的工作已经确定了不同的变化模式。互补的变更模式的识别和定义,模式实例的自动提取对于测量其经验重要性至关重要。例如,它使其能够计算并比较不同项目历史记录的条件表达式变化的数量。在本文中,我们介绍了软件历史的搜索模式实例的新方法。我们的技术基于给定提交中的抽象语法树(AST)文件的分析。我们通过在6个开源Java项目中计算18个更改模式的实例来验证我们的方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号