The document presents a software bug prediction model. It aims to build a resilient bug prediction model through simulation on open source issue trackers like Jira and Bugzilla. It also aims to conduct a comparative study of the new model against existing competitive models. The model will make use of data from software repositories, bug reports, and code artifacts to predict bugs. Open source projects like Eclipse, Mozilla and Android will be used for simulations. Data mining tools like WEKA and RAPID MINER will be utilized extensively. The model also aims to facilitate code refactoring to improve software maintenance activities like modification and enhancement. Literature in the areas of bug prediction and code refactoring will be surveyed. The research will be conducted in