• Home
  • Search
  • Python API Misuse Mining and Classification Based on Hybrid Analysis and Attention Mechanism
  • Cite Icon1
  • https://doi.org/10.1142/s0218194023500432Copy DOI Icon

Python API Misuse Mining and Classification Based on Hybrid Analysis and Attention Mechanism

  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

APIs play a crucial role in contemporary software development, streamlining implementation and maintenance processes. However, improper API usage can result in significant issues such as unexpected outcomes, security vulnerabilities and system crashes. To detect API misuses, current methods primarily rely on comparing established API usage patterns with target points for automated detection, mainly based on pre-validated datasets. Nonetheless, there is a scarcity of publicly available datasets on API misuses and their corresponding fixes, which hinders data-driven research. Moreover, most existing techniques concentrate on statically typed languages, such as Java and C, with only a few addressing dynamic languages like Python effectively, due to difficulties in handling dynamic features. Therefore, it is essential to identify Python API misuses and their fixes automatically and promptly. In this paper, we introduce HatPAM, a Hybrid Analysis and Attention-based Python API-Misuse Miner, which (a) provides a method for automatically mining true-positive commits related to Python API-misuse fixes from GitHub and (b) presents the subsequent processing for classifying Python API misuses in true-positive cases. Particularly, HatPAM applies hybrid static analysis and introduces a structure-based attention mechanism to examine syntax, semantics and structural features in Python code context, and considers the consistency between code and developers’ natural intent to significantly reduce false-positive cases. Evaluation on six popular Python projects reveals that HatPAM outperforms various state-of-the-art baselines, achieving up to 92.2% Precision, 86.7% Recall and 89.3% F1-score, indicating its capability to identify and classify Python API-misuse commits.

Similar Papers
  • Research Article
  • Citations11

Software metrics: fault content estimation and software process control

  • Sep 01, 1987
  • Microprocessors and Microsystems
  • Bo Lennselius +2
  • Research Article

The GUMP Process for Software Maintenance and Maintenance Education

  • Jul 01, 1996
  • Journal of Software Maintenance: Research and Practice
  • Norman Wilde +1
  • Research Article
  • Citations1

The GUMP Process for Software Maintenance and Maintenance Education

  • Jul 01, 1996
  • Journal of Software Maintenance: Research and Practice
  • Norman Wilde +1
  • Book Chapter

Software Measurement and Service Levels

  • Apr 25, 2012
  • Barbara Beech
  • Book Chapter
  • Citations1

Truly Parallel Model-Matching Algorithm in OpenCL

  • Jan 01, 2017
  • Tamás Fekete +1
  • Conference Article
  • Citations12

Automated API Documentation with Tutorials Generated From Stack Overflow

  • Sep 19, 2016
  • Adriano M Rocha +1
  • PDF
  • Research Article
  • Citations148

Software Bug Prediction using Machine Learning Approach

  • Jan 01, 2018
  • International Journal of Advanced Computer Science and Applications
  • Awni Hammouri +3
  • Research Article
  • Citations13

Metrics for evaluation of metaprogram complexity

  • Jan 01, 2010
  • Computer Science and Information Systems
  • Robertas Damasevicius +1
  • Research Article
  • Citations23

Uses and applications of Software & Systems Process Engineering Meta‐Model process models. A systematic mapping study

  • Apr 10, 2013
  • Journal of Software: Evolution and Process
  • Iván Ruiz‐Rube +4
  • Conference Article
  • Citations12

New perspectives on software maintenance processes

  • Jan 01, 1988
  • S.A Gamalel-Din +1
  • Conference Article
  • Citations5

A method for modeling and evaluating software maintenance process performances

  • Mar 11, 2002
  • Z Car +1
  • Research Article
  • Citations6

Regression Test Case Selection &PrioritizationUsing Dependence Graph and Genetic Algorithm

  • Jan 01, 2014
  • IOSR Journal of Computer Engineering
  • Samaila Musa +3
  • Research Article
  • Citations18

The process of software maintenance: a comparison of object‐oriented and third‐generation development languages

  • Jan 01, 2007
  • Journal of Software Maintenance and Evolution: Research and Practice
  • Michael A Eierman +1
  • Research Article
  • Citations5

Improving the Governance of Software Maintenance Process for Agile Software Development Team

  • Dec 09, 2018
  • International Journal of Engineering & Technology
  • Salfarina Abdullah +2
  • Book Chapter

REQUIREMENT ANALYSIS USING ARTIFICIAL INTELLIGENCE IN SOFTWARE ENGINEERING

  • Dec 01, 2023
  • R.D Budake +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.