Searching for just a few words should be enough to get started. If you need to make more complex queries, use the tips below to guide you.
Article type: Research Article
Authors: Yang, Yangrui
Affiliations: College of Information Engineering, North China University of Water Resources and Electric Power, Zhengzhou, Henan, China | E-mail: yangyangrui@ncwu.edu.cn
Abstract: With the popularity of code search, it is an important problem how to make the retrieved source code change automatically based on the user needs. However, none of the existing code transformation methods could solve this problem. They either fix compile bugs or depend on the formal specifications which lack the practicality. In this paper, we propose a novel generative transformation based on code change: we generate the abstract change script from code changes and apply the script to transform the retrieved source code. To evaluate our method, we extract 7 topics and collect 5–6 code snippets per topic from Github, and perform 5 different experiments in which we even explore 2 sensitivity-related rules and use the rules for raising the accuracy gradually. The experimental results show that our method is feasible and practical with 73.84% accuracy.
Keywords: Code reuse, code search, program transformation, code change, change script
DOI: 10.3233/KES-180391
Journal: International Journal of Knowledge-based and Intelligent Engineering Systems, vol. 22, no. 4, pp. 277-286, 2018
IOS Press, Inc.
6751 Tepper Drive
Clifton, VA 20124
USA
Tel: +1 703 830 6300
Fax: +1 703 830 2300
sales@iospress.com
For editorial issues, like the status of your submitted paper or proposals, write to editorial@iospress.nl
IOS Press
Nieuwe Hemweg 6B
1013 BG Amsterdam
The Netherlands
Tel: +31 20 688 3355
Fax: +31 20 687 0091
info@iospress.nl
For editorial issues, permissions, book requests, submissions and proceedings, contact the Amsterdam office info@iospress.nl
Inspirees International (China Office)
Ciyunsi Beili 207(CapitaLand), Bld 1, 7-901
100025, Beijing
China
Free service line: 400 661 8717
Fax: +86 10 8446 7947
china@iospress.cn
For editorial issues, like the status of your submitted paper or proposals, write to editorial@iospress.nl
如果您在出版方面需要帮助或有任何建, 件至: editorial@iospress.nl