跳到主要导航 跳到搜索 跳到主要内容

FACoY: A code-to-code search engine

  • Kisub Kim
  • , Dongsun Kim
  • , Tegawendé F. Bissyandé
  • , Eunjong Choi
  • , Li Li*
  • , Jacques Klein
  • , Yves Le Traon
  • *此作品的通讯作者
  • University of Luxembourg
  • Nara Institute of Science and Technology
  • Monash University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Code search is an unavoidable activity in software development. Various approaches and techniques have been explored in the literature to support code search tasks. Most of these approaches focus on serving user queries provided as natural language free-form input. However, there exists a wide range of use-case scenarios where a code-to-code approach would be most beneficial. For example, research directions in code transplantation, code diversity, patch recommendation can leverage a code-to-code search engine to find essential ingredients for their techniques. In this paper, we propose FaCoY, a novel approach for statically finding code fragments which may be semantically similar to user input code. FaCoY implements a query alternation strategy: instead of directly matching code query tokens with code in the search space, FaCoY first attempts to identify other tokens which may also be relevant in implementing the functional behavior of the input code. With various experiments, we show that (1) FaCoY is more effective than online code-to-code search engines; (2) FaCoY can detect more semantic code clones (i.e., Type-4) in BigCloneBench than the state-of-the-art; (3) FaCoY, while static, can detect code fragments which are indeed similar with respect to runtime execution behavior; and (4) FaCoY can be useful in code/patch recommendation.

源语言英语
主期刊名Proceedings of the 40th International Conference on Software Engineering, ICSE 2018
出版商IEEE Computer Society
946-957
页数12
ISBN(电子版)9781450356381
DOI
出版状态已出版 - 27 5月 2018
已对外发布
活动40th International Conference on Software Engineering, ICSE 2018 - Gothenburg, 瑞典
期限: 27 5月 20183 6月 2018

出版系列

姓名Proceedings - International Conference on Software Engineering
ISSN(印刷版)0270-5257

会议

会议40th International Conference on Software Engineering, ICSE 2018
国家/地区瑞典
Gothenburg
时期27/05/183/06/18

指纹

探究 'FACoY: A code-to-code search engine' 的科研主题。它们共同构成独一无二的指纹。

引用此