Dataset for PSASpotter: A Tool to Detect the Usage of Platform-Specific APIs in Python

View Dataset
Job, Ricardo;Hora, Andre

Description

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.

Citations (0)

Mentions (0)

Metrics

Dataset Index

0.6

FAIR Score

54%

Citations

0

Mentions

0

Metrics Over Time

Publication Details

DOI

Publisher

Zenodo

Assigned Domain

Subfield

Aerospace Engineering

Field

Engineering

Domain

Physical Sciences

Confidence Score

42%

Source

Scholar Data Model

Normalization Factors

FT

30.77

CTw

1.00

MTw

1.00