Context-Aware Change Pattern for Code Transformation

被引:1
|
作者
LIU Zhiping [1 ]
机构
[1] College of Information Engineering,Jiangxi University of Technology
基金
中国国家自然科学基金;
关键词
code transformation; context-aware change pattern; code change;
D O I
暂无
中图分类号
TP311.1 [程序设计];
学科分类号
081202 ; 0835 ;
摘要
When source code is over-specific to some concrete contexts, developers have to manually change the source code retrieved from the Internet. To solve this problem, we propose the context-aware change pattern(CACP). For a piece of source code, we extract the changes and changes-relevant context from the past code changes, identifying CACP that is the abstract common part of the changes and context. By using CACP, the retrieved source code could be transformed into the suitable one according to different user needs. From the Github we extracted 7 topics, collected 5-6 code snippets per topic and performed 5 different experiments which illustrated that CACP improves code transformation accuracy by 73.84%.
引用
收藏
页码:355 / 361
页数:7
相关论文
共 50 条
  • [1] Context-aware code certification
    Eusterbrock, J
    [J]. 19TH INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2004, : 358 - 361
  • [2] Context-aware Code Optimization
    Bolat, Murat
    Li, Xiaoming
    [J]. 2009 IEEE 28TH INTERNATIONAL PERFORMANCE COMPUTING AND COMMUNICATIONS CONFERENCE (IPCC 2009), 2009, : 256 - 263
  • [3] Context-Aware Code Change Embedding for Better Patch Correctness Assessment
    Lin, Bo
    Wang, Shangwen
    Wen, Ming
    Mao, Xiaoguang
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (03)
  • [4] Code Search based on Context-aware Code Translation
    Sun, Weisong
    Fang, Chunrong
    Chen, Yuchen
    Tao, Guanhong
    Han, Tingxu
    Zhang, Quanjun
    [J]. 2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 388 - 400
  • [5] Context-Aware Change Pattern Detection in Event Attributes of Recurring Activities
    Cremerius, Jonas
    Weske, Mathias
    [J]. INTELLIGENT INFORMATION SYSTEMS, CAISE FORUM 2023, 2023, 477 : 1 - 8
  • [6] MLSmellHound: A Context-Aware Code Analysis Tool
    Kannan, Jai
    Barnett, Scott
    Cruz, Luis
    Simmons, Anj
    Agarwal, Akash
    [J]. 2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: NEW IDEAS AND EMERGING RESULTS (ICSE-NIER 2022), 2022, : 66 - 70
  • [7] Context-Aware Code Recommendation in Intellij IDEA
    Abid, Shamsa
    Basit, Hamid Abdul
    Shamail, Shafay
    [J]. PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 1647 - 1651
  • [8] Towards Context-Aware Code Comment Generation
    Yu, Xiaohan
    Huang, Quzhe
    Wang, Zheng
    Feng, Yansong
    Zhao, Dongyan
    [J]. FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, EMNLP 2020, 2020, : 3938 - 3947
  • [9] Context-aware privacy design pattern selection
    Pearson, Siani
    Shen, Yun
    [J]. HP Laboratories Technical Report, 2010, (74):
  • [10] Context-Aware Privacy Design Pattern Selection
    Pearson, Siani
    Shen, Yun
    [J]. TRUST, PRIVACY AND SECURITY IN DIGITAL BUSINESS, 2010, 6264 : 69 - 80