Clone-based code method usage pattern mining
When programmers retrieve a code method and want to reuse it, they need to understand the usage patterns of the retrieved method. However, it is difficult to obtain usage information of the retrieved method since this method may only have a brief comment and few available usage examples. In this paper, we propose an approach to mine the usage patterns of these methods, which are not widely appeared in code repository. The key idea of our approach is that the cloned code of the target method may have a similar usage pattern, and we can collect more usage information of the target method from cloned code usage examples. From the amplified usage examples, we mine the usage pattern of the target method by frequent subsequence mining after program slicing and code normalization. Our evaluation shows that our approach can mine four categories of usage patterns with an average precision of 0.65.
Tue 17 MayDisplayed time zone: Eastern Time (US & Canada) change
03:00 - 03:40 | Session 12: Search and Reuse: CodeResearch / Early Research Achievements (ERA) / Replications and Negative Results (RENE) at ICPC room Chair(s): Fuxiang Chen University of British Columbia | ||
03:00 7mTalk | CSRS: Code Search with Relevance Matching and Semantic Matching Research Media Attached | ||
03:07 4mTalk | Clone-based code method usage pattern mining Early Research Achievements (ERA) Zhipeng Xue National University of Defense Technology Media Attached | ||
03:11 7mTalk | Towards Exploring the Code Reuse from Stack Overflow during Software Development Research Yuan Huang School of Data and Computer Science, Sun Yat-sen University, Guangzhou, China, Furen Xu School of Software Engineering, Sun Yat-sen University, Zhuhai 519082, China, Haojie Zhou School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou 510006, China, Xiangping Chen Guangdong Key Laboratory for Big Data Analysis and Simulation of Public Opinion, School of Communication and Design, Sun Yat-sen University, Guangzhou 510006, China., Xiaocong Zhou School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou 510006, China, Tong Wang School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou 510006, China Pre-print Media Attached | ||
03:18 4mTalk | The Ineffectiveness of Domain-Specific Word Embedding Models for GUI Test Reuse Replications and Negative Results (RENE) Farideh Sadat Khalili Sharif University of Technology, Ali Mohebbi USI Lugano, Valerio Terragni University of Auckland, Mauro Pezze USI Lugano; Schaffhausen Institute of Technology, Leonardo Mariani University of Milano-Bicocca, Abbas Heydarnoori Sharif University of Technology Media Attached | ||
03:22 18mLive Q&A | Q&A-Paper Session 12 Research |