Annotation support for generic patches

Georg Dotzler, R. Veldema, M. Philippsen
{"title":"Annotation support for generic patches","authors":"Georg Dotzler, R. Veldema, M. Philippsen","doi":"10.1109/RSSE.2012.6233400","DOIUrl":null,"url":null,"abstract":"In large projects parallelization of existing programs or refactoring of source code is time consuming as well as error-prone and would benefit from tool support. However, existing automatic transformation systems are not extensively used because they either require tedious definitions of source code transformations or they lack general adaptability. In our approach, a programmer changes code inside a project, resulting in before and after source code versions. The difference (the generated transformation) is stored in a database. When presented with some arbitrary code, our tool mines the database to determine which of the generalized transformations possibly apply. Our system is different from a pure compiler based (semantics preserving) approach as we only suggest code modifications. Our contribution is a set of generalizing annotations that we have found by analyzing recurring patterns in open source projects. We show the usability of our system and the annotations by finding matches and applying generated transformations in real-world applications.","PeriodicalId":193223,"journal":{"name":"2012 Third International Workshop on Recommendation Systems for Software Engineering (RSSE)","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-06-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 Third International Workshop on Recommendation Systems for Software Engineering (RSSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/RSSE.2012.6233400","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

In large projects parallelization of existing programs or refactoring of source code is time consuming as well as error-prone and would benefit from tool support. However, existing automatic transformation systems are not extensively used because they either require tedious definitions of source code transformations or they lack general adaptability. In our approach, a programmer changes code inside a project, resulting in before and after source code versions. The difference (the generated transformation) is stored in a database. When presented with some arbitrary code, our tool mines the database to determine which of the generalized transformations possibly apply. Our system is different from a pure compiler based (semantics preserving) approach as we only suggest code modifications. Our contribution is a set of generalizing annotations that we have found by analyzing recurring patterns in open source projects. We show the usability of our system and the annotations by finding matches and applying generated transformations in real-world applications.
对通用补丁的注释支持
在大型项目中,现有程序的并行化或源代码的重构既耗时又容易出错,可以从工具支持中获益。然而,现有的自动转换系统并没有被广泛使用,因为它们要么需要对源代码转换进行繁琐的定义,要么缺乏一般的适应性。在我们的方法中,程序员在项目中更改代码,从而产生前后源代码版本。差异(生成的转换)存储在数据库中。当提供一些任意代码时,我们的工具挖掘数据库以确定可能应用的通用转换。我们的系统不同于纯基于编译器(保留语义)的方法,因为我们只建议修改代码。我们的贡献是通过分析开源项目中的重复模式发现的一组泛化注释。我们通过在实际应用程序中查找匹配和应用生成的转换来展示系统和注释的可用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信