arrow
返回

Learning to rank code examples for code search engines

delete2016-01-21
delete56
PRE
AI
H
Haoran Niu *
I
Iman Keivanloo
Y
Ying Zou
DOI:10.1007/s10664-015-9421-5delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Source code examples are used by developers to implement unfamiliar tasks by learning from existing solutions. To better support developers in finding existing solutions, code search engines are designed to locate and rank code examples relevant to user's queries. Essentially, a code search engine provides a ranking schema, which combines a set of ranking features to calculate the relevance between a query and candidate code examples. Consequently, the ranking schema places relevant code examples at the top of the result list. However, it is difficult to determine the configurations of the ranking schemas subjectively. In this paper, we propose a code example search approach that applies a machine learning technique to automatically train a ranking schema. We use the trained ranking schema to rank candidate code examples for new queries at run-time. We evaluate the ranking performance of our approach using a corpus of over 360,000 code snippets crawled from 586 open-source Android projects. The performance evaluation study shows that the learning-to-rank approach can effectively rank code examples, and outperform the existing ranking schemas by about 35.65 % and 48.42 % in terms of normalized discounted cumulative gain (NDCG) and expected reciprocal rank (ERR) measures respectively.
Keyword:
Learning to rank
Code example
Code search
Code recommendation
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Big Code Search: A Bibliography
err2023-08-26
err4
errOAAI
errKim, Kisub; Ghatpande, Sankalp; Kim, Dongsun; Zhou, Xin; Liu, Kui; Bissyande, Tegawende F.; Klein, Jacques; Le Traon, Yves
err分享
err收藏
Code Search: A Survey of Techniques for Finding Code
err2023-02-09
err17
errOAAI
errDi Grazia, Luca; Pradel, Michael
err分享
err收藏
Structured Learning of Binary Codes with Column Generation for Optimizing Ranking Measures
err2017-01-10
err7
PREAI
errLin, Guosheng; Liu, Fayao; Shen, Chunhua; Wu, Jianxin; Shen, Heng Tao
err分享
err收藏
Hermitian Rank Metric Codes and Duality
err2021-01-01
err5
PREAI
errLa Cruz, Javier De; Evilla, Jorge Robinson; Ozbudak, Ferruh
err分享
err收藏
FACER: An API usage-based code-example recommender for opportunistic reuse
err2021-08-18
err10
PREAI
errAbid, Shamsa; Shamail, Shafay; Basit, Hamid Abdul; Nadi, Sarah
err分享
err收藏
Survey of Code Search Based on Deep Learning
err2023-12-23
err1
errOAAI
errXie, Yutao; Lin, Jiayi; Dong, Hande; Zhang, Lei; Wu, Zhonghai
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

Q
queens university - canada
学者数:
1.8W
论文数: 1.7W
被引数: 2.1W
引用论文

引用论文

Dandruff and Seborrhea
err1938-04-01
err0
errOAAI
errGeorge M. MacKee; George M. Lewis
err分享
err收藏
Neuroscience research in Africa: Current status
err2016-06-01
err0
errOAAI
errFoad Abd-Allah; Najib Kissani; Anthony William; Mohammed Ibrahim Oraby; Ramez Reda Moustafa; Ehab Shaker; Mohamed Soliman El-Tamawy; Raad Shakir
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
学者 查看更多内容