An Empirical Study of API Misuses of Data-Centric Libraries
Akalanka Galappaththi, Sarah Nadi, Christoph Treude

TL;DR
This study empirically analyzes API misuses in five data-centric libraries across data processing, numerical computation, machine learning, and visualization, revealing common misuse patterns and challenges.
Contribution
It extends understanding of API misuses beyond deep learning libraries, highlighting issues in data-centric libraries through analysis of Stack Overflow and GitHub data.
Findings
Many misuses are similar to those in deep learning libraries.
Developers frequently misuse APIs regardless of documentation directives.
The study provides a foundation for future misuse reduction research.
Abstract
Developers rely on third-party library Application Programming Interfaces (APIs) when developing software. However, libraries typically come with assumptions and API usage constraints, whose violation results in API misuse. API misuses may result in crashes or incorrect behavior. Even though API misuse is a well-studied area, a recent study of API misuse of deep learning libraries showed that the nature of these misuses and their symptoms are different from misuses of traditional libraries, and as a result highlighted potential shortcomings of current misuse detection tools. We speculate that these observations may not be limited to deep learning API misuses but may stem from the data-centric nature of these APIs. Data-centric libraries often deal with diverse data structures, intricate processing workflows, and a multitude of parameters, which can make them inherently more challenging…
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.
