paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Recommending related functions from API usage-based function clone structures

从基于 API 使用的函数克隆结构中推荐相关函数
FSE Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2019匹配度 2/10 · 该论文属于代码推荐/开发者工具方向,虽使用静态代码分析和数据挖掘,但核心不是面向 ML/Agentic 程序的静态分析,也不是用 LLM/Agent 改进静态分析或形式化验证,与用户当前关注的 PL 与 AI 交叉问题基本无关。引用 11 inbox
Shamsa Abid
crossref: 2026-09-12

AI 速览

一句话:提出 FACER 推荐系统,结合信息检索、静态分析与数据挖掘,向开发者推荐与任务功能相关的函数。

开发者需要高效找到可复用的代码,以支持机会式编程并提升开发效率。本文提出 FACER(Feature-driven API usage-based Code Examples Recommender)推荐系统,结合信息检索、静态代码分析和数据挖掘技术,基于 API 使用与函数克隆结构,为开发者推荐与其开发任务功能相关的函数。作者在 GitHub 上选取 122 个不同类别的项目进行实验,评估推荐函数对相关特征的准确性。结果显示,FACER 的推荐精确率在自动评估下为 54%,在人工评估下为 75%。

问题
开发者难以在机会式编程中快速找到与当前功能需求相关的可复用函数。
方法
提出 FACER,融合信息检索、静态代码分析和数据挖掘,基于 API 使用与函数克隆结构生成函数推荐。
评估
在 GitHub 122 个选定类别项目上评估相关函数检索准确性,自动与人工评估精确率分别为 54% 和 75%。
原文摘要(Abstract)

Developers need to be able to find reusable code for desired software features in a way that supports opportunistic programming for increased developer productivity. Our objective is to develop a recommendation system that provides a developer with function recommendations having functionality relevant to her development task. We employ a combination of information retrieval, static code analysis and data mining techniques to build the proposed recommendation system called FACER (Feature-driven API usage-based Code Examples Recommender). We performed an experimental evaluation on 122 projects from GitHub from selected categories to determine the accuracy of the retrieved code for related features. FACER recommended functions with a precision of 54% and 75% when evaluated using automated and manual methods respectively.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5118,
  title = {Recommending related functions from API usage-based function clone structures},
  author = {Shamsa Abid},
  booktitle = {FSE},
  year = {2019},
  doi = {10.1145/3338906.3342486}
}