Back to search

Institutional Repository of Vilnius University

Design and implementation of a tool aimed at identifying defect-prone functions using combined static, dynamic and evolutionary analysis /

Abstract

dc:description

Software defect prediction helps developers focus verification effort on the parts of a system most likely to contain faults. Existing tools typically rely on static and evolutionary metrics, rarely combine them with dynamic information such as test coverage and most often operate at the file or class level, which is too coarse to direct a developer to a specific function. Python, despite its widespread use, has received comparatively little attention in this domain. This thesis addresses these gaps by designing and implementing a function-level defect prediction tool for Python. The tool integrates five metrics: lines of code, cyclomatic complexity, coupling, code churn and test coverage, into a ranked risk score. Three models were trained and evaluated on a labeled dataset of 6195 functions from 16 open-source Python projects in the BugsInPy benchmark: a weighted linear scoring model trained with Differential Evolution, Logistic Regression and Random Forest. Under Leave-One-Project-Out cross-validation, the weighted linear scoring model trained with Differential Evolution achieved the best generalisation with AUC of 0.699 and Lift of 1.96 and was selected for the final tool. The learned weights identify code churn as the dominant predictor with 0.571, followed by lines of code with 0.183 and cyclomatic complexity with 0.167. The resulting command-line tool accepts a repository path and an optional coverage report, and outputs a ranked list of defect-prone functions configurable through command-line flags.

Degree

thesis:*
Grantor dc:publisher
Institutional Repository of Vilnius University
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Drungilaitė, Gabrielė,

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • info:eu-repo/semantics/openAccess
Language dc:language
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Vilnius University
Base URL
epublications.vu.lt/oai
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Drungilaitė, Gabrielė,. Design and implementation of a tool aimed at identifying defect-prone functions using combined static, dynamic and evolutionary analysis /. Institutional Repository of Vilnius University, 2026. https://repository.vu.lt/VU:ELABAETD308336676&prefLang=en_US