DepRes: A Tool for Resolving Fully Qualified Names and Their Dependencies
Ali Shokri, Mehdi Mirakhorli

TL;DR
DepRes is a tool that accurately resolves fully qualified names and their dependencies in Java code snippets, addressing common issues faced by developers reusing code from forums like StackOverflow.
Contribution
It introduces a sketch-based approach to improve FQN resolution accuracy and automatically recommend correct dependencies, filling gaps left by existing tools.
Findings
High accuracy in resolving FQNs in Java snippets
Effective dependency recommendation for correct code execution
Open-source implementation available for community use
Abstract
Reusing code snippets shared by other programmers on Q&A forums (e.g., StackOverflow) is a common practice followed by software developers. However, lack of sufficient information about the fully qualified name (FQN) of identifiers in borrowed code snippets, results in serious compile errors. Programmers either have to manually search for the correct FQN of identifiers which is a tedious and error-prone process, or use tools developed to automatically identify correct FQNs. Despite the efforts made by researchers to automatically identify FQNs in code snippets, the current approaches suffer from low accuracy when it comes to practice. Moreover, while these tools focus on resolving the FQN for an identifier in a code snippet, they leave the challenge of finding the correct third-party library (i.e., dependency) implementing that FQN unresolved. Using an incorrect dependency or incorrect…
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
TopicsTopic Modeling · Natural Language Processing Techniques · Data Quality and Management
