Commit pattern analysis and anti-pattern detection