Formal Definition and Automatic Generation of Semantic Metrics: An Empirical Study on Bug Prediction | IEEE Conference Publication | IEEE Xplore