Evaluating the Lifespan of Code Smells in a Software System using Software Repository Mining