TL;DR
This paper introduces Que2Code, a query-driven tool that retrieves the most relevant code snippets from Stack Overflow by semantically matching questions and recommending the best code examples, improving developer efficiency.
Contribution
The work presents a novel two-stage approach combining semantic question retrieval and code snippet recommendation, with comprehensive evaluation on Python and Java datasets.
Findings
High effectiveness in retrieving semantically similar questions
Accurate code snippet recommendation demonstrated by experiments
Positive developer feedback in human study
Abstract
Stack Overflow has been heavily used by software developers to seek programming-related information. More and more developers use Community Question and Answer forums, such as Stack Overflow, to search for code examples of how to accomplish a certain coding task. This is often considered to be more efficient than working from source documentation, tutorials or full worked examples. However, due to the complexity of these online Question and Answer forums and the very large volume of information they contain, developers can be overwhelmed by the sheer volume of available information. This makes it hard to find and/or even be aware of the most relevant code examples to meet their needs. To alleviate this issue, in this work we present a query-driven code recommendation tool, named Que2Code, that identifies the best code snippets for a user query from Stack Overflow posts. Our approach has…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
