跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2111.04473 (cs)
[提交于 2022年4月26日 (v1),最后修订于 2022年4月26日 (此版本, v2)]

标题:Senatus -- A Fast and Accurate Code-to-Code Recommendation Engine

作者:Fran Silavong, Sean Moran, Antonios Georgiadis, Rohan Saphal, Robert Otter
查看论文《Senatus -- A Fast and Accurate Code-to-Code Recommendation Engine》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Machine learning on source code (MLOnCode) is a popular research field that has been driven by the availability of large-scale code repositories and the development of powerful probabilistic and deep learning models for mining source code. Code-to-code recommendation is a task in MLOnCode that aims to recommend relevant, diverse and concise code snippets that usefully extend the code currently being written by a developer in their development environment (IDE). Code-to-code recommendation engines hold the promise of increasing developer productivity by reducing context switching from the IDE and increasing code-reuse. Existing code-to-code recommendation engines do not scale gracefully to large codebases, exhibiting a linear growth in query time as the code repository increases in size. In addition, existing code-to-code recommendation engines fail to account for the global statistics of code repositories in the ranking function, such as the distribution of code snippet lengths, leading to sub-optimal retrieval results. We address both of these weaknesses with \emph{Senatus}, a new code-to-code recommendation engine. At the core of Senatus is \emph{De-Skew} LSH a new locality sensitive hashing (LSH) algorithm that indexes the data for fast (sub-linear time) retrieval while also counteracting the skewness in the snippet length distribution using novel abstract syntax tree-based feature scoring and selection algorithms. We evaluate Senatus and find the recommendations to be of higher quality than competing baselines, while achieving faster search. For example on the CodeSearchNet dataset Senatus improves performance by 31.21\% F1 and 147.9\emph{x} faster query time compared to Facebook Aroma. Senatus also outperforms standard MinHash LSH by 29.2\% F1 and 51.02\emph{x} faster query time.
评论: Accepted to MSR 2022
主题: 软件工程 (cs.SE); 人工智能 (cs.AI)
引用方式: arXiv:2111.04473 [cs.SE]
  (或者 arXiv:2111.04473v2 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2111.04473
相关 DOI: https://doi.org/10.1145/3524842.3527947

提交历史

来自:Fanny Silavong
[v2] 2022年4月26日 星期二 09:46:42 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-04
切换浏览方式为:
cs.SE
cs.AI

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站