TL;DR
V2 is a fast method for detecting outdated Python code snippets caused by configuration drift, using feedback-directed search to efficiently identify breaking API changes and validate snippet correctness.
Contribution
V2 introduces a novel strategy employing feedback-directed search to efficiently detect configuration drift in Python code snippets, improving code reuse validation.
Findings
Identified 248 instances of configuration drift in Python snippets
Reduced validation effort through feedback-directed search
Effectively detects API-breaking changes over time
Abstract
Code snippets are prevalent, but are hard to reuse because they often lack an accompanying environment configuration. Most are not actively maintained, allowing for drift between the most recent possible configuration and the code snippet as the snippet becomes out-of-date over time. Recent work has identified the problem of validating and detecting out-of-date code snippets as the most important consideration for code reuse. However, determining if a snippet is correct, but simply out-of-date, is a non-trivial task. In the best case, breaking changes are well documented, allowing developers to manually determine when a code snippet contains an out-of-date API usage. In the worst case, determining if and when a breaking change was made requires an exhaustive search through previous dependency versions. We present V2, a strategy for determining if a code snippet is out-of-date by…
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.
