paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SnR

SnR
ICSE Proceedings of the 44th International Conference on Software Engineering2022匹配度 2/10 · 论文关注 Stack Overflow 代码片段的语法补全与依赖推断以使其可编译,属于开发者工具与程序修复方向;与用户核心关注的静态分析、Agentic 程序分析、LLM 与形式化验证/浮点/贝叶斯程序分析的交叉均无直接关联,仅可能边缘涉及程序分析技术。引用 23 inbox
Yiwen Dong, Tianxiao Gu, Yongqiang Tian, Chengnian Sun
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:针对代码片段因语法不完整且缺少依赖信息而难以编译使用的问题,提出 SnR 工具。

论文关注 Stack Overflow 等网站上代码片段难以直接使用的问题:这些片段虽然能简洁展示 API 用法,但通常语法不完整且缺少依赖信息,导致无法编译。以 Java 为例,只有 6.88% 的 Stack Overflow Java 片段包含编译所需的 import 语句。摘要由此引出 SnR,但未展开其具体方法、系统设计与评估结果;从标题和摘要看,工作目标应是帮助开发者修复或补全此类代码片段,使其更易于编译和使用。

问题
代码片段(如 Stack Overflow 上的 Java 片段)通常语法不完整且缺少依赖信息,因而无法直接编译和使用。
方法
摘要未给出具体方法;标题与摘要显示工作围绕 SnR 展开,目标是处理代码片段可编译性问题。
评估
摘要未报告评估方法与结果,仅以 6.88% 的 Java 片段包含 import 语句这一统计数据说明问题的普遍性。
原文摘要(Abstract)

Code snippets are prevalent on websites such as Stack Overflow and are effective in demonstrating API usages concisely. However they are usually difficult to be used directly because most code snippets not only are syntactically incomplete but also lack dependency information, and thus do not compile. For example, Java snippets usually do not have import statements or required library names; only 6.88% of Java snippets on Stack Overflow include import statements necessary for compilation.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{DongGTS22,
  title = {SnR},
  author = {Yiwen Dong and Tianxiao Gu and Yongqiang Tian and Chengnian Sun},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1145/3510003.3510061}
}