Dataset for PSASpotter: A Tool to Detect the Usage of Platform-Specific APIs in Python
收藏NIAID Data Ecosystem2026-05-02 收录
下载链接:
https://zenodo.org/record/14029217
下载链接
链接失效反馈官方服务:
资源简介:
This dataset was utilized in the research paper titled "PSASpotter: A Tool to Detect the Usage of Platform-Specific APIs in Python" for publication in Mining Software Repositories (MSR). Herein, we present a concise abstract of the study.
A platform-specific API is implemented for a particular platform (e.g., operating system), thus, it may not work on other platforms than the target one. Detecting the usage of such APIs is important for supporting software maintenance, as it allows maintainers to be alerted about APIs that could pose potential risks. This paper proposes PSASpotter, a tool to detect the usage of platform-specific APIs in Python systems. PSASpotter also identifies whether the platform-specific APIs are used within a defensive code, such as try/except blocks or if blocks that check the current platform. PSASpotter can support the development of novel empirical studies about the usage of platformspecific APIs in the Python ecosystem. Moreover, the defensive code detected by PSASpotter may contain alternative solutions for unavailable APIs, which can provide insights for software development and testing across multiple platforms. PSASpotter is available at: https://github.com/ricardojob/PSASpotter.
PSASpotter is an AST-based tool that detects API usage at the function/method level. Given a Git project, PSASpotter analyzes all Python files and exports details of platform-specific API usage. Specifically, for each usage, PSASpotter reports information about the analyzed project (name and commit), the used API (name and availability), and the usage location (filename, line, and GitHub link). In addition, PSASpotter also reports whether the usage happens within defensive code.
The tool PSASpotter is publicly available at https://github.com/ricardojob/PSASpotter.
创建时间:
2024-11-30



