The reviewed record of science sign in
Pith

arxiv: 2109.13099 · v4 · pith:E3SBGPFI · submitted 2021-09-27 · cs.SE

Clone-based code method usage pattern mining

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:E3SBGPFIrecord.jsonopen to challenge →

classification cs.SE
keywords usagemethodcodepatternexampleslupinminemining
0
0 comments X
read the original abstract

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, called LUPIN (cLone-based Usage Pattern mIniNg), to mine the usage patterns of these methods, which do not widely appeared in the code repository. The key idea of LUPIN 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 LUPIN can mine four categories of usage patterns with an average precision of 0.65.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.