Analysing Bug Prediction Capabilities of Static Code Metrics in Open Source Software

  • Authors:
  • Javed Ferzund;Syed Nadeem Ahsan;Franz Wotawa

  • Affiliations:
  • Institute for Software Technology, Technische Universität Graz, Austria;Institute for Software Technology, Technische Universität Graz, Austria;Institute for Software Technology, Technische Universität Graz, Austria

  • Venue:
  • IWSM/Metrikon/Mensura '08 Proceedings of the International Conferences on Software Process and Product Measurement
  • Year:
  • 2008

Quantified Score

Hi-index 0.01

Visualization

Abstract

Open Source Softwares provide a rich resource of empirical research in software engineering. Static code metrics are a good indicator of software quality and maintainability. In this work we have tried to answer the question whether bug predictors obtained from one project can be applied to a different project with reasonable accuracy. Two open source projects Firefox and Apache HTTP Server (AHS) are used for this study. Static code metrics are calculated for both projects using in-house software and the bug information is obtained from bug databases of these projects. The source code files are classified as clean or buggy using the Decision tree classifier. The classifier is trained on metrics and bug data of Firefox and tested on Apache HTTP Server and vice versa. The results obtained vary with different releases of these projects and can be as good as 92 % of the files correctly classified and as poor as 68 % of the files correctly classified by the trained classifier.