paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Supporting Web-Based API Searches in the IDE Using Signatures

在 IDE 中使用签名支持基于 Web 的 API 搜索
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 2/10 · 论文关注IDE内利用API签名整合Web搜索结果以辅助开发者,属于软件工程/开发者工具方向,不涉及用户核心关注的PL与AI交叉、静态分析在ML/Agentic程序中的应用、浮点程序分析或贝叶斯程序分析。引用 0 inbox
Nick C. Bradley, Thomas Fritz, Reid Holmes
crossref: 2026-09-12

AI 速览

一句话:提出 Scout,从搜索结果中抽取 API 签名,在 IDE 内按 API 分组排序并展示示例,减少查询与网页浏览。

开发者常通过 Web(如 Stack Overflow)查找 API 示例,但只能搜索和浏览帖子,难以直接获取其中的 API 知识。本文提出 Scout:自动分析搜索结果并抽取 API 签名,用签名对示例分组和排序,提供以 API 为中心的简洁表示,并集成到 IDE 面板中,使开发者无需离开开发上下文即可搜索和查看 API 示例。Scout 还利用该集成自动用上下文信息扩充查询,并按开发者需求排序结果。对 40 名开发者的实验表明,Scout 将所需查询数减少 19%,约一半任务可直接通过 API 表示完成,完整查看 SO 帖子的数量减少约 64%。

问题
开发者在网上查找 API 示例时,需要搜索并浏览 Stack Overflow 等站点的大量结果和帖子,才能定位与任务相关的 API 信息,效率低且脱离开发上下文。
方法
Scout 自动分析搜索结果,抽取 API 签名,并基于签名分组、排序和呈现示例;同时集成到 IDE,利用开发上下文扩充查询并排序结果。
评估
对 40 名开发者进行实验,测量查询数、任务直接完成比例和查看完整 SO 帖子的数量。
原文摘要(Abstract)

Developers frequently use the web to locate API examples that help them solve their programming tasks. While sites like Stack Overflow (SO) contain API examples embedded within their textual descriptions, developers cannot access this API knowledge directly. Instead they need to search for and browse results to select relevant SO posts and then read through individual posts to figure out which answers contain information about the APIs that are relevant to their task. This paper introduces an approach, called Scout, that automatically analyzes search results to extract API signature information. These signatures are used to group and rank examples and allow for a unique API-based presentation that reduces the amount of information the developer needs to consider when looking for API information on the web. This succinct representation enables Scout to be integrated fully within an IDE panel so that developers can search and view API examples without losing context on their development task. Scout also uses this integration to automatically augment queries with contextual information that tailors the developer's queries, and ranks the results according to the developer's needs. In an experiment with 40 developers, we found that Scout reduces the number of queries developers need to perform by 19% and allows them to solve almost half their tasks directly from the API-based representation, reducing the number of complete SO posts viewed by approximately 64%.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11315,
  title = {Supporting Web-Based API Searches in the IDE Using Signatures},
  author = {Nick C. Bradley and Thomas Fritz and Reid Holmes},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639089}
}