paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Lancer: Your Code Tell Me What You Need

Lancer:你的代码告诉我你需要什么
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 2/10 · 该论文聚焦代码到代码推荐与开发者工具,属于机器学习与程序语言交叉,但并未涉及用户画像核心的静态分析、形式化验证、Agentic 程序、浮点程序分析或贝叶斯程序分析。其核心目标是代码复用推荐,而非 PL/AI 交叉中的分析或验证问题。引用 29 inbox
Shufan Zhou, Beijun Shen, Hao Zhong
crossref: 2026-09-12

AI 速览

一句话:提出上下文感知的代码到代码推荐工具 Lancer,结合 LSLM 与 BERT 实时推荐可复用代码。

编程通常困难且重复,程序员需要反复编写相似代码并解决无穷无尽的问题。为避免重复造轮子并提升生产力,作者提出上下文感知的代码到代码推荐工具 Lancer。该工具在库敏感语言模型(Library-Sensitive Language Model, LSLM)与 BERT 模型的支持下,能够自动分析不完整代码的意图,并实时推荐相关且可复用的代码样本。摘要中给出了 Lancer 的视频演示链接,并说明该工具已开源。摘要未报告定量实验结果或用户研究结果,因此其关键结果主要体现在工具功能演示与开源实现上。

问题
程序员在编程中经常遇到重复性问题,需要反复编写相似代码;如何根据当前不完整代码的上下文自动推荐可复用代码,从而减少重复劳动并提升效率。
方法
提出上下文感知的代码到代码推荐工具 Lancer,利用库敏感语言模型(LSLM)与 BERT 模型自动分析不完整代码的意图,并实时推荐相关且可复用的代码样本。
评估
摘要中未给出定量评估或用户研究结果,仅通过视频演示展示工具功能,并说明 Lancer 已开源。
原文摘要(Abstract)

Programming is typically a difficult and repetitive task. Programmers encounter endless problems during programming, and they often need to write similar code over and over again. To prevent programmers from reinventing wheels thus increase their productivity, we propose a context-aware code-to-code recommendation tool named Lancer. With the support of a Library-Sensitive Language Model (LSLM) and the BERT model, Lancer is able to automatically analyze the intention of the incomplete code and recommend relevant and reusable code samples in real-time. A video demonstration of Lancer can be found at https://youtu.be/tO9nhqZY35g. Lancer is open source and the code is available at https://github.com/sfzhou5678/Lancer.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5192,
  title = {Lancer: Your Code Tell Me What You Need},
  author = {Shufan Zhou and Beijun Shen and Hao Zhong},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00137}
}