Task-Oriented API Usage Examples Prompting Powered By Programming Task Knowledge Graph
Jiamou Sun, Zhenchang Xing, Xin Peng, Xiwei Xu, Liming Zhu

TL;DR
This paper presents a knowledge graph-based approach to improve task-oriented API usage example prompting in IDEs, enhancing action coverage and relevance to assist developers more effectively.
Contribution
It introduces a method to expand knowledge graph actions, a code matching task search, and an IDE tool for better tutorial recommendation and code example highlighting.
Findings
High-quality knowledge graph constructed and validated.
Code matching improves relevance of recommended code solutions.
User study shows increased developer assistance in finding tutorials.
Abstract
Programming tutorials are often created to demonstrate programming tasks with code examples. However, our study of Stack Overflow questions reveals the low utilization of high-quality programming tutorials, which is caused task description mismatch and code information overload. Document search can find relevant tutorial documents, but they often cannot find specific programming actions and code solutions relevant to the developers' task needs. The recently proposed activity-centric search over knowledge graph supports direct search of programming actions, but it has limitations in action coverage, natural language based task search, and coarse-grained code example recommendation. In this work, we enhance action coverage in knowledge graph with actions extracted from comments in code examples and more forms of activity sentences. To overcome the task description mismatch problem, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Engineering Techniques and Practices · Online Learning and Analytics
