Description Reinforcement Based Code Search

Xuan LI,Qian-Xiang WANG,Zhi JIN
DOI: https://doi.org/10.13328/j.cnki.jos.005226
2017-01-01
Journal of Software
Abstract:Effectively searching code for specific programming task from code base has become an important research field of software engineering.This paper presents a description reinforcement based code search (DERECS) approach.DERECS first builds a code-description pair corpus,analyzes both code and its natural language description,and extracts features about method calls and code structure.DERECS reinforces the description of code based on the method calls and code structure features,reduces the gaps between code snippet and natural language query,and expands the search scope.Evaluation is conducted against real-world queries,and the results show DERECS is significantly better than SNIFF and Krugle.
What problem does this paper attempt to address?