Research on mining software repositories to facilitate refactoring